PageSourceSearch

https://www.manehookup.com/static/js/main.df9fdb96.js

js manehookup.com collected 2026-09-28 11:12:31 UTC 3,135,071 bytes, 3 lines download raw bytes

1/*! For license information please see main.df9fdb96.js.LICENSE.txt */
2(()=>{var __webpack_modules__={71594:(e,t,r)=>{"use strict";r.d(t,{VF:()=>P,DM:()=>T,Bz:()=>E,Ay:()=>S});var n=r(89379),i=(r(65043),r(24141)),o=r(98139),a=r.n(o),s=(r(44356),r(41233)),l=r(18689);const c="Avatar_root__v4fZq Avatar_avatarBase__d-fXU",u="Avatar_initials__j60AS textXSmall",d="Avatar_avatarImage__oqcH4",h="Avatar_smallAvatar__3IOYq Avatar_avatarBase__d-fXU",p="Avatar_initialsSmall__lQKtk",f="Avatar_mediumAvatar__x68eD Avatar_avatarBase__d-fXU",m="Avatar_initialsMedium__NZgkM textLarge",g="Avatar_largeAvatar__fYolZ Avatar_avatarBase__d-fXU",_="Avatar_initialsLarge__BFtyY h3",y="Avatar_bannedUserIcon__KEGZf";var v=r(70579);const b="40px",x="60px",w=["square-xsmall","square-xsmall2x","square-small","square-small2x"],A=(0,i.j4)((e=>{const{rootClassName:t=null,className:r=null,initialsClassName:i=null,user:o=null,renderSizes:h=b,disableProfileLink:p=!1,intl:f}=e,m=a()(t||c,r),g=o&&"currentUser"===o.type?(0,s.vs)(o):(0,s.yw)(o),_=g.attributes.banned,x=g.attributes.deleted,A=_?f.formatMessage({id:"Avatar.bannedUserDisplayName"}):x?f.formatMessage({id:"Avatar.deletedUserDisplayName"}):"",S=(0,s._l)(g,A),E=(0,s.EK)(g,""),T={className:m,title:S},P=g.id?{name:"ProfilePage",params:{id:g.id.uuid}}:{name:"ProfileBasePage"},C=g.profileImage&&g.profileImage.id,I=!p;return _||x?(0,v.jsx)("div",(0,n.A)((0,n.A)({},T),{},{children:(0,v.jsx)(l.Xw,{className:y})})):C&&I?(0,v.jsx)(l.GF,(0,n.A)((0,n.A)((0,n.A)({},T),P),{},{children:(0,v.jsx)(l.wF,{rootClassName:d,alt:S,image:g.profileImage,variants:w,sizes:h})})):C?(0,v.jsx)("div",(0,n.A)((0,n.A)({},T),{},{children:(0,v.jsx)(l.wF,{rootClassName:d,alt:S,image:g.profileImage,variants:w,sizes:h})})):I?(0,v.jsx)(l.GF,(0,n.A)((0,n.A)((0,n.A)({},T),P),{},{children:(0,v.jsx)("span",{className:i||u,children:E})})):(0,v.jsx)("div",(0,n.A)((0,n.A)({},T),{},{children:(0,v.jsx)("span",{className:i||u,children:E})}))})),S=A,E=e=>(0,v.jsx)(A,(0,n.A)({rootClassName:h,initialsClassName:p,renderSizes:x},e));E.displayName="AvatarSmall";const T=e=>(0,v.jsx)(A,(0,n.A)({rootClassName:f,initialsClassName:m,renderSizes:x},e));T.displayName="AvatarMedium";const P=e=>(0,v.jsx)(A,(0,n.A)({rootClassName:g,initialsClassName:_,renderSizes:"96px"},e));P.displayName="AvatarLarge"},37842:(e,t,r)=>{"use strict";r.d(t,{bG:()=>S,jn:()=>b,gv:()=>x,tA:()=>w,Ev:()=>A,nm:()=>E,Ay:()=>v});var n=r(89379),i=r(80045),o=r(65043),a=r(98139),s=r.n(a),l=r(76732),c=r(57302),u=r(18689);const d={root:"Button_root__j5CKF buttonDefault",primaryButtonRoot:"Button_primaryButtonRoot__xQMAW buttonPrimary",primaryButtonInlineRoot:"Button_primaryButtonInlineRoot__FbL8P buttonPrimaryInline",secondaryButtonRoot:"Button_secondaryButtonRoot__JYDaF buttonSecondary",secondaryButtonInlineRoot:"Button_secondaryButtonInlineRoot__dcJXO buttonSecondaryInline",inlineTextButtonRoot:"Button_inlineTextButtonRoot__FdeOh a textSmall",primaryButton:"Button_primaryButton__jkoez",secondaryButton:"Button_secondaryButton__vvOGb",secondaryButtonInline:"Button_secondaryButtonInline__rmFDC",inProgress:"Button_inProgress__8u3ZK",ready:"Button_ready__hgq8+",spinner:"Button_spinner__RnmNO",checkmark:"Button_checkmark__XLpQ1",checkmarkAnimation:"Button_checkmarkAnimation__CbNZt",socialButtonRoot:"Button_socialButtonRoot__Ad5do",socialButton:"Button_socialButton__oahsa"};var h=r(70579);const p=["children","className","rootClassName","spinnerClassName","checkmarkClassName","inProgress","ready","disabled","enforcePagePreloadFor"],f=["enforcePagePreloadFor"],m=["enforcePagePreloadFor"],g=e=>{const[t,r]=(0,o.useState)(!1),a=(0,l.Z6)();(0,o.useEffect)((()=>{r(!0)}),[]);const{children:f,className:m,rootClassName:g,spinnerClassName:_,checkmarkClassName:y,inProgress:v,ready:b,disabled:x,enforcePagePreloadFor:w}=e,A=(0,i.A)(e,p),S=g||d.root,E=s()(S,m,{[d.ready]:b,[d.inProgress]:v});let T;T=v?(0,h.jsx)(u.X1,{rootClassName:_||d.spinner}):b?(0,h.jsx)(u.Vs,{rootClassName:y||d.checkmark}):f;const P=w?(C=w,()=>{const{component:e}=(0,c.yY)(C,a);e.preload&&e.preload()}):null;var C;const I=P?{onMouseOver:P,onTouchStart:P}:{},M=!t||x;return(0,h.jsx)("button",(0,n.A)((0,n.A)((0,n.A)({className:E},I),A),{},{disabled:M,children:T}))},_=e=>{const t=(0,l.Z6)(),{enforcePagePreloadFor:r}=e,o=(0,i.A)(e,f),a=r?(s=r,()=>{const{component:e}=(0,c.yY)(s,t);e.preload&&e.preload()}):null;var s;const u=a?{onMouseOver:a,onTouchStart:a}:{};return(0,h.jsx)(g,(0,n.A)((0,n.A)({},o),u))},y=e=>{const{enforcePagePreloadFor:t}=e,r=(0,i.A)(e,m);return t?(0,h.jsx)(_,(0,n.A)({},e)):(0,h.jsx)(g,(0,n.A)({},r))};y.defaultProps={rootClassName:null,className:null,spinnerClassName:null,checkmarkClassName:null,inProgress:!1,ready:!1,disabled:!1,enforcePagePreloadFor:null,children:null};const v=y,b=e=>{const t=s()(e.rootClassName||d.primaryButtonRoot,d.primaryButton);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};b.displayName="PrimaryButton";const x=e=>{const t=s()(e.rootClassName||d.primaryButtonInlineRoot,d.primaryButton);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};x.displayName="PrimaryButtonInline";const w=e=>{const t=s()(e.rootClassName||d.secondaryButtonRoot,d.secondaryButton);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};w.displayName="SecondaryButton";const A=e=>{const t=s()(e.rootClassName||d.secondaryButtonInlineRoot,d.secondaryButtonInline);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};w.displayName="SecondaryButton";const S=e=>{const t=s()(e.rootClassName||d.inlineTextButtonRoot,d.inlineTextButton);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};S.displayName="InlineTextButton";const E=e=>{const t=s()(e.rootClassName||d.socialButtonRoot,d.socialButton);return(0,h.jsx)(y,(0,n.A)((0,n.A)({},e),{},{rootClassName:t}))};E.displayName="SocialLoginButton"},83853:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var n,i,o=r(89379),a=r(65043),s="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>
2-1&&(n.splice(t,1),i.splice(t,1))}}),l=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(n){l=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){var t=s.get(e);t&&t.destroy()}function u(e){var t=s.get(e);t&&t.update()}var d=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((d=function(e){return e}).destroy=function(e){return e},d.update=function(e){return e}):((d=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!s.has(e)){var t,r=null,n=null,i=null,o=function(){e.clientWidth!==n&&d()},a=function(t){window.removeEventListener("resize",o,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(r){e.style[r]=t[r]})),s.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",o,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",s.set(e,{destroy:a,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),r="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(r)&&(r=0),d()}function c(t){var r=e.style.width;e.style.width="0px",e.style.width=r,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&(e.parentNode.style.scrollBehavior="auto",t.push([e.parentNode,e.parentNode.scrollTop])),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0];t.scrollTop=e[1],t.style.scrollBehavior=null}))}}(e);e.style.height="",e.style.height=e.scrollHeight+r+"px",n=e.clientWidth,t()}}function d(){u();var t=Math.round(parseFloat(e.style.height)),r=window.getComputedStyle(e,null),n="content-box"===r.boxSizing?Math.round(parseFloat(r.height)):e.offsetHeight;if(n<t?"hidden"===r.overflowY&&(c("scroll"),u(),n="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==r.overflowY&&(c("hidden"),u(),n="content-box"===r.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),i!==n){i=n;var o=l("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],c),e},d.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],u),e});const h=d;var p=r(70579);class f extends a.Component{constructor(e){super(e),this.timeoutId=null,this.textarea=null,this.update=this.update.bind(this)}componentDidMount(){this.timeoutId=window.setTimeout((()=>{h(this.textarea),window.addEventListener("resize",this.update)}),100)}componentDidUpdate(){this.update()}componentWillUnmount(){h.destroy(this.textarea),window.clearTimeout(this.timeoutId),window.removeEventListener("resize",this.update)}update(){h.update(this.textarea)}render(){return(0,p.jsx)("textarea",(0,o.A)((0,o.A)({},this.props),{},{ref:e=>{this.textarea=e}}))}}const m=f},10704:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(89379),i=r(80045),o=(r(65043),r(24141)),a=r(18689),s=r(70579);const l=["placeholder","intl"],c=(0,o.j4)((e=>{const{placeholder:t,intl:r}=e,o=(0,i.A)(e,l),c=r.formatMessage({id:"FieldBoolean.yes"}),u=r.formatMessage({id:"FieldBoolean.no"}),d=(0,n.A)((0,n.A)({},o),{},{format:e=>!0===e?"true":!1===e?"false":"",parse:e=>"true"===e||"false"!==e&&""});return(0,s.jsxs)(a.HU,(0,n.A)((0,n.A)({},d),{},{children:[(0,s.jsx)("option",{value:"",children:t}),(0,s.jsx)("option",{value:"true",children:c}),(0,s.jsx)("option",{value:"false",children:u})]}))}))},13675:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(89379),i=r(80045),o=(r(65043),r(98139)),a=r.n(o),s=r(77775);const l="FieldCheckbox_root__aJbdF",c="FieldCheckbox_input__cy3VF",u="FieldCheckbox_box__FrjsV",d="FieldCheckbox_boxSuccess__OSfJh",h="FieldCheckbox_boxDisabled__DTzox",p="FieldCheckbox_checked__26qhH",f="FieldCheckbox_checkedSuccess__E2Se-",m="FieldCheckbox_checkedDisabled__zELCZ",g="FieldCheckbox_text__qC7gv",_="FieldCheckbox_label__tcYTL",y="FieldCheckbox_checkboxWrapper__rMgRN",v="FieldCheckbox_textRoot__H6b8A marketplaceListingAttributeFontStyles";var b=r(70579);const x=["rootClassName","className","svgClassName","textClassName","id","label","useSuccessColor"],w=e=>{const{className:t,checkedClassName:r,boxClassName:n}=e;return(0,b.jsx)("svg",{className:t,width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,b.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,b.jsxs)("g",{transform:"translate(2 2)",children:[(0,b.jsx)("path",{className:r||p,d:"M9.9992985 1.5048549l-.0194517 6.9993137C9.977549 9.3309651 9.3066522 10 8.4798526 10H1.5001008c-.8284271 0-1.5-.6715729-1.5-1.5l-.000121-7c0-.8284271.6715728-1.5 1.5-1.5h.000121l6.9993246.0006862c.8284272.000067 1.4999458.671694 1.499879 1.5001211a1.5002208 1.5002208 0 0 1-.0000059.0040476z"}),(0,b.jsx)("path",{className:n||u,strokeWidth:"2",d:"M10.9992947 1.507634l-.0194518 6.9993137C10.9760133 9.8849417 9.8578519 11 8.4798526 11H1.5001008c-1.3807119 0-2.5-1.1192881-2.5-2.4999827L-1.0000202 1.5c0-1.3807119 1.119288-2.5 2.500098-2.5l6.9994284.0006862c1.3807118.0001115 2.4999096 1.11949 2.4997981 2.5002019-.0000018.003373-.0000018.003373-.0000096.0067458z"})]}),(0,b.jsx)("path",{d:"M5.636621 10.7824771L3.3573694 8.6447948c-.4764924-.4739011-.4764924-1.2418639 0-1.7181952.4777142-.473901 1.251098-.473901 1.7288122 0l1.260291 1.1254782 2.8256927-4.5462307c.3934117-.5431636 1.1545778-.6695372 1.7055985-.278265.5473554.3912721.6731983 1.150729.2797866 1.6951077l-3.6650524 5.709111c-.2199195.306213-.5803433.5067097-.9920816.5067097-.3225487 0-.6328797-.1263736-.8637952-.3560334z",fill:"#FFF"})]})})};w.defaultProps={className:null,checkedClassName:null,boxClassName:null};const A=e=>{const{rootClassName:t,className:r,svgClassName:o,textClassName:u,id:p,label:A,useSuccessColor:S}=e,E=(0,i.A)(e,x),T=a()(t||l,r),P=S?{checkedClassName:f,boxClassName:d}:{},C=E.disabled?{checkedClassName:m,boxClassName:h}:{};return(0,b.jsxs)("span",{className:T,children:[(0,b.jsx)(s.D0,(0,n.A)((0,n.A)({type:"checkbox"},E),{},{children:e=>{const{input:t,disabled:r}=e;return(0,b.jsx)("input",(0,n.A)((0,n.A)({id:p,className:c},t),{},{onChange:e=>((e,t)=>{const{onBlur:r,onChange:n}=e;n(t),r(t),E.onChange&&E.onChange(t)}
2)(t,e),disabled:r}))}})),(0,b.jsxs)("label",{htmlFor:p,className:_,children:[(0,b.jsx)("span",{className:y,children:(0,b.jsx)(w,(0,n.A)((0,n.A)({className:o},P),C))}),(0,b.jsx)("span",{className:a()(g,u||v),children:A})]})]})};A.defaultProps={className:null,rootClassName:null,svgClassName:null,textClassName:null,label:null};const S=A},68045:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(89379),i=(r(65043),r(98139)),o=r.n(i),a=r(56747),s=r(18689);const l="FieldCheckboxGroup_root__I-Rn1",c="FieldCheckboxGroup_list__X2M5S",u="FieldCheckboxGroup_twoColumns__kqfd3",d="FieldCheckboxGroup_item__h4QUl";var h=r(70579);const p=e=>{const{className:t,rootClassName:r,label:i,optionLabelClassName:a,twoColumns:p,id:f,fields:m,options:g,meta:_}=e,y=o()(r||l,t),v=p?o()(c,u):c;return(0,h.jsxs)("fieldset",{className:y,children:[i?(0,h.jsx)("legend",{children:i}):null,(0,h.jsx)("ul",{className:v,children:g.map(((e,t)=>{const r="".concat(f,".").concat(e.key),i=a?{textClassName:a}:{};return(0,h.jsx)("li",{className:d,children:(0,h.jsx)(s.Gt,(0,n.A)({id:r,name:m.name,label:e.label,value:e.key},i))},r)}))}),(0,h.jsx)(s.yI,{fieldMeta:(0,n.A)({},_)})]})};p.defaultProps={rootClassName:null,className:null,label:null,twoColumns:!1};const f=e=>(0,h.jsx)(a.ED,(0,n.A)({component:p},e))},2686:(e,t,r)=>{"use strict";r.d(t,{U:()=>w,A:()=>S});var n=r(89379),i=r(80045),o=r(65043),a=r(77775),s=r(98139),l=r.n(s),c=r(77217),u=r(24141),d=r(55346),h=r(61254),p=(r(44356),r(85506)),f=r(18689);const m={root:"FieldCurrencyInput_root__JuXIG"};var g=r(70579);const _=["currencyConfig","defaultValue","intl","input","meta"],y=["rootClassName","className","id","label","input","meta","hideErrorMessage"],{Money:v}=d.gK,b=(e,t)=>{const r=""===e;try{return r?null:new v((0,h.H5)(e,(0,h.Ft)(t.currency)),t.currency)}catch(n){return null}};class x extends o.Component{constructor(e){super(e);const{currencyConfig:t,defaultValue:r,input:n,intl:i}=e,o=n.value instanceof v;if(o&&n.value.currency!==t.currency){const e=new Error("Value currency different from marketplace currency");throw p.z3(e,"currency-input-invalid-currency",{currencyConfig:t,inputValue:n.value}),e}const a=o?(0,h.ot)(n.value):r,s="number"===typeof a&&!isNaN(a),l=i.formatNumber("1.1",t).indexOf(",")>=0;try{const e=s?(0,h.eJ)((0,h.Gj)(a.toString(),l),(0,h.Ft)(t.currency),l):"",r=s?i.formatNumber((0,h.zz)(e),t):"";this.state={formattedValue:r,unformattedValue:e,value:r,usesComma:l}}catch(c){throw p.z3(c,"currency-input-init-failed",{currencyConfig:t,defaultValue:r,initialValue:a}),c}this.onInputChange=this.onInputChange.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.updateValues=this.updateValues.bind(this)}onInputChange(e){e.preventDefault(),e.stopPropagation();const{unformattedValue:t}=this.updateValues(e),r=b((0,h.zz)(t),this.props.currencyConfig);this.props.input.onChange(r)}onInputBlur(e){e.preventDefault(),e.stopPropagation();const{currencyConfig:t,input:{onBlur:r}}=this.props;this.setState((e=>{if(r){const n=b((0,h.zz)(e.unformattedValue),t);r(n)}return{value:e.formattedValue}}))}onInputFocus(e){e.preventDefault(),e.stopPropagation();const{currencyConfig:t,input:{onFocus:r}}=this.props;this.setState((e=>{if(r){const n=b((0,h.zz)(e.unformattedValue),t);r(n)}return{value:e.unformattedValue}}))}updateValues(e){try{const{currencyConfig:t,intl:r}=this.props,n=e.target.value.trim(),i=""===n,o=i?"0":n,a=i?null:new c.A((0,h.zz)(n));if(!(i||a.isPositive()&&(0,h.Lz)(a)))throw new Error("Unsafe money value: ".concat(n));const s=(0,h.eJ)(o,(0,h.Ft)(t.currency),this.state.usesComma),l=i?"":s,u=i?"":r.formatNumber((0,h.zz)(s),t);return this.setState({formattedValue:u,value:l,unformattedValue:l}),{formattedValue:u,value:l,unformattedValue:l}}catch(t){console.warn("Not a valid value.",t);const{formattedValue:e,unformattedValue:r,value:n}=this.state;return{formattedValue:e,unformattedValue:r,value:n}}}render(){const{className:e,currencyConfig:t,defaultValue:r,placeholder:o,intl:a}=this.props,s=o||a.formatNumber(r,t);return(0,g.jsx)("input",(0,n.A)((0,n.A)({className:e},(e=>{const{currencyConfig:t,defaultValue:r,intl:n,input:o,meta:a}=e;return(0,i.A)(e,_)})(this.props)),{},{value:this.state.value,onChange:this.onInputChange,onBlur:this.onInputBlur,onFocus:this.onInputFocus,type:"text",placeholder:s}))}}x.defaultProps={className:null,defaultValue:null,input:null,placeholder:null};const w=(0,u.j4)(x),A=e=>
2{const{rootClassName:t,className:r,id:o,label:a,input:s,meta:c,hideErrorMessage:u}=e,d=(0,i.A)(e,y);if(a&&!o)throw new Error("id required when a label is given");const{valid:h,invalid:p,touched:_,error:v}=c,b=_&&p&&v,x=l()(m.input,{[m.inputSuccess]:h,[m.inputError]:b}),A=(0,n.A)({className:x,id:o,input:s},d),S=l()(t,r);return(0,g.jsxs)("div",{className:S,children:[a?(0,g.jsx)("label",{htmlFor:o,children:a}):null,(0,g.jsx)(w,(0,n.A)({},A)),u?null:(0,g.jsx)(f.yI,{fieldMeta:c})]})};A.defaultProps={rootClassName:null,className:null,id:null,label:null,hideErrorMessage:!1};const S=e=>(0,g.jsx)(a.D0,(0,n.A)({component:A},e))},11343:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(89379),i=(r(65043),r(18689));const o=e=>{const t=e||"",r=!!t.match(/^\+/g);const n=(e=>e.replace(/[^\d]/g,""))(t),i=n.length>0&&"0"===n.charAt(0)?n.slice(1):n;return r&&i.length>15?"+".concat(i.slice(0,15)):r?"+".concat(i):t},a=e=>e?o(e):"",s=e=>o(e);var l=r(70579);const c=e=>{const t=(0,n.A)({type:"text",format:a,parse:s},e);return(0,l.jsx)(i.k7,(0,n.A)({},t))}},96883:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(89379),i=r(80045),o=(r(65043),r(98139)),a=r.n(o),s=r(77775);const l="FieldRadioButton_root__nls9F",c="FieldRadioButton_input__7xixX",u="FieldRadioButton_checked__vMf68",d="FieldRadioButton_notChecked__pnVCh",h="FieldRadioButton_required__JTDIm",p="FieldRadioButton_text__2buFn marketplaceListingAttributeFontStyles",f="FieldRadioButton_label__QUdMi",m="FieldRadioButton_radioButtonWrapper__46kQN",g="FieldRadioButton_checkedStyle__h5fYD";var _=r(70579);const y=["rootClassName","className","svgClassName","checkedClassName","id","label","showAsRequired"],v=e=>{const{checkedClassName:t}=e;return(0,_.jsx)("div",{children:(0,_.jsxs)("svg",{className:e.className,width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:[(0,_.jsx)("circle",{className:e.showAsRequired?h:d,cx:"5",cy:"19",r:"6",transform:"translate(2 -12)",strokeWidth:"2",fill:"none",fillRule:"evenodd"}),(0,_.jsxs)("g",{className:a()(u,t||g),transform:"translate(2 -12)",fill:"none",fillRule:"evenodd",children:[(0,_.jsx)("circle",{strokeWidth:"2",cx:"5",cy:"19",r:"6"}),(0,_.jsx)("circle",{fill:"#FFF",fillRule:"nonzero",cx:"5",cy:"19",r:"3"})]})]})})};v.defaultProps={className:null};const b=e=>{const{rootClassName:t,className:r,svgClassName:o,checkedClassName:u,id:d,label:h,showAsRequired:g}=e,b=(0,i.A)(e,y),x=a()(t||l,r),w=(0,n.A)({id:d,className:c,component:"input",type:"radio"},b);return(0,_.jsxs)("span",{className:x,children:[(0,_.jsx)(s.D0,(0,n.A)({},w)),(0,_.jsxs)("label",{htmlFor:d,className:f,children:[(0,_.jsx)("span",{className:m,children:(0,_.jsx)(v,{className:o,checkedClassName:u,showAsRequired:g})}),(0,_.jsx)("span",{className:p,children:h})]})]})};b.defaultProps={className:null,rootClassName:null,svgClassName:null,checkedClassName:null,label:null};const x=b},34853:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(89379),i=r(80045),o=(r(65043),r(65173)),a=r.n(o),s=r(24141),l=r(77775),c=r(98139),u=r.n(c),d=r(18689);const h={ratingFieldSet:"FieldReviewRating_ratingFieldSet__zeQo1",rating:"FieldReviewRating_rating__Qbmue",rateInput:"FieldReviewRating_rateInput__rMTmK",label:"FieldReviewRating_label__IsYU6",star:"FieldReviewRating_star__NhyOb"};var p=r(70579);const f=["rootClassName","className","inputRootClass","customErrorText","id","intl","label","input","meta"],m=["value","checked"],g=e=>{const{rootClassName:t,className:r,inputRootClass:o,customErrorText:a,id:s,intl:l,label:c,input:g,meta:_}=e,y=(0,i.A)(e,f),{touched:v,error:b}=_,x={touched:v,error:a||b},{value:w,checked:A}=g,S=(0,i.A)(g,m),E=(0,n.A)((0,n.A)({},S),{},{type:"radio",name:"rating"},y),T=u()(t||h.root,r);return(0,p.jsxs)("div",{className:T,children:[(0,p.jsxs)("fieldset",{className:h.ratingFieldSet,children:[c?(0,p.jsx)("legend",{children:c}):null,(0,p.jsx)("div",{className:h.rating,children:(e=>{let t=[];for(let r=e;r>0;r--){const e="".concat(r),i="star".concat(r),o="".concat(s,".").concat(i);t.push((0,p.jsx)("input",(0,n.A)({id:o,className:h.rateInput,value:e,checked:"undefined"!==typeof A?A:w===e},E),o)),t.push((0,p.jsx)("label",{className:h.label,htmlFor:o,title:l.formatMessage({id:"FieldReviewRating.".concat(i)}),children:(0,p.jsx)(d.Mv,{rootClassName:h.star})},"label.".concat(o)))}return t})(5)})]}),(0,p.jsx)(d.yI,{fieldMeta:x})]})};g.defaultProps={rootClassName:null,className:null,customErrorText:null,label:null};const{string:_,shape:y,func:v,object:b}=a(),x=(0,s.j4)((e=>(0,p.jsx)(l.D0,(0,n.A)({component:g},e))))},7990:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(89379),i=r(80045),o=(r(65043),r(65173)),a=r.n(o),s=r(77775),l=r(98139),c=r.n(l),u=r(18689);const d="FieldSelect_root__iKZgB",h="FieldSelect_selectError__UY5Sv";var p=r(70579);const f=["rootClassName","className","selectClassName","id","label","input","meta","children","onChange"],m=e=>{const{rootClassName:t,className:r,selectClassName:o,id:a,label:s,input:l,meta:m,children:g,onChange:_}=e,y=(0,i.A)(e,f);if(s&&!a)throw new Error("id required when a label is given");const{valid:v,invalid:b,touched:x,error:w}=m,A=x&&b&&w,S=c()({[o]:o,[h]:A}),E=(0,n.A)((0,n.A)({className:S,id:a},l),{},{onChange:e=>{l.onChange(e),_&&_(e.currentTarget.value)}},y),T=c()(t||d,r);return(0,p.jsxs)("div",{className:T,children:[s?(0,p.jsx)("label",{htmlFor:a,children:s}):null,(0,p.jsx)("select",(0,n.A)((0,n.A)({},E),{},{children:g})),(0,p.jsx)(u.yI,{fieldMeta:m})]})};m.defaultProps={rootClassName:null,className:null,selectClassName:null,id:null,label:null,children:null};const{string:g,object:_,node:y}=a(),v=e=>(0,p.jsx)(s.D0,(0,n.A)({component:m},e))},89694:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(80045),i=r(89379),o=(r(65043),r(65173)),a=r(77775),s=r(98139),l=r.n(s),c=r(77232),u=r(18689);const d="FieldSelectTree_root__UQcND",h="FieldSelectTree_optionList__V3QOh",p="FieldSelectTree_option__Oj1rW",f="FieldSelectTree_optionBtn__6ZxQr h4",m="FieldSelectTree_optionBtnSelected__lAM8k FieldSelectTree_optionBtn__6ZxQr h4",g="FieldSelectTree_optionBtnSelectedLowest__XXA3N",_="FieldSelectTree_longWord__Bek7d";var y=r(70579);const v=["config","level","handleChange","branchPath"],b=["options"],x=["className","rootClassName","label","name","options"],w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=e=>"string"===typeof e;return e.reduce(((e,n)=>{const{option:o,label:a,suboptions:s}=n,l=r(o)&&r(a),c=(u=s,Array.isArray(u)?{suboptions:w(s,t+1)}:{});var u;return[...e,...l?[(0,i.A)({option:o,label:a,level:t},c)]:[]]}),[])},A=e=>{var t;return(null===(t=(e=>e.suboptions)(e))||void 0===t?void 0:t.length)>0},S=e=>{const{config:t,level:r,handleChange:o,branchPath:a}=e,s=(0,n.A)(e,v),{option:u,label:d,suboptions:h}
2=t,b=a.find((e=>e.option===u)),x=!!b,w=a.filter((e=>e.level>(null===b||void 0===b?void 0:b.level))).length>0,S=!x||x&&w,E=S?{cursor:"pointer"}:{cursor:"default"},P=(0,c.YD)(d||u,{longWordMinLength:16,longWordClass:_}),C=l()({[f]:!x,[m]:x,[g]:x&&!w});return(0,y.jsxs)("li",{className:p,style:(0,i.A)({paddingLeft:"".concat(12,"px")},E),children:[(0,y.jsx)("button",{className:C,onClick:e=>{e.preventDefault(),e.stopPropagation(),S&&o(u,r)},children:P}),A(t)&&x?(0,y.jsx)(T,(0,i.A)({options:h,level:r+1,handleChange:o,branchPath:a},s)):null]})},E=e=>{const{hasOptions:t,children:r}=e;return t?(0,y.jsx)("ul",{className:h,children:r}):null},T=e=>{const{options:t}=e,r=(0,n.A)(e,b);return(0,y.jsx)(E,{hasOptions:(null===t||void 0===t?void 0:t.length)>0,children:t.map((e=>(0,y.jsx)(S,(0,i.A)({config:e},r),e.option)))})},P=(e,t)=>Object.entries(t).sort((e=>{let[t,r]=e;return t})).reduce(((t,r)=>{const[n,o]=r,a=(t.length>0?t[t.length-1].suboptions:e).find((e=>e.option===o)),s=a?[(0,i.A)((0,i.A)({},a),{},{levelKey:n})]:[];return[...t,...s]}),[]),C=(e,t,r,n)=>(o,a)=>{const s=P(e,t).reduce(((e,t)=>{const{level:n,option:s}=t,l="".concat(r).concat(n);return n<a?(0,i.A)((0,i.A)({},e),{},{[l]:s}):n===a?(0,i.A)((0,i.A)({},e),{},{[l]:o}):e}),{}),l="".concat(r).concat(a),c=null==s[l]?(0,i.A)((0,i.A)({},s),{},{[l]:o}):s;n(c)},I=e=>{const{className:t,rootClassName:r,label:o,name:s,options:c}=e,h=(0,n.A)(e,x),p=s,f=w(c),m=l()(r||d,t);return(0,y.jsx)(a.D0,(0,i.A)((0,i.A)({name:s},h),{},{children:e=>{const{value:t,onChange:r}=(null===e||void 0===e?void 0:e.input)||{},n=t||{},i=P(f,n),a=null===e||void 0===e?void 0:e.meta;return(0,y.jsxs)("div",{className:m,children:[o?(0,y.jsx)("label",{children:o}):null,(0,y.jsx)(T,{options:f,level:1,handleChange:C(f,n,p,r),branchPath:i}),(0,y.jsx)(u.yI,{fieldMeta:a})]})}}))};I.defaultProps={rootClassName:null,className:null};const M={option:o.string.isRequired,label:o.string};M.suboptions=(0,o.arrayOf)((0,o.shape)(M));const k=I},76905:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(89379),i=r(80045),o=r(65043),a=r(77775),s=r(98139),l=r.n(s),c=r(18689);const u="FieldTextInput_root__PUugK",d="FieldTextInput_input__e+PIN",h="FieldTextInput_textarea__sCUF7",p="FieldTextInput_inputSuccess__6Co6C",f="FieldTextInput_inputError__wX8-m";var m=r(70579);const g=["rootClassName","className","inputRootClass","customErrorText","id","label","input","meta","onUnmount","isUncontrolled","inputRef","hideErrorMessage"],_=["type"],y=["value"],v=e=>{const{rootClassName:t,className:r,inputRootClass:o,customErrorText:a,id:s,label:v,input:b,meta:x,onUnmount:w,isUncontrolled:A,inputRef:S,hideErrorMessage:E}=e,T=(0,i.A)(e,g);if(v&&!s)throw new Error("id required when a label is given");const{valid:P,invalid:C,touched:I,error:M}=x,k="textarea"===b.type,O=!!a||!!(I&&C&&M),R={touched:O,error:a||M},{type:L}=b,D=(0,i.A)(b,_),{value:N}=b,F=(0,i.A)(b,y),z=S?{ref:S}:{},j=o||l()(d,{[p]:P,[f]:O,[h]:k}),B=k?(0,n.A)((0,n.A)((0,n.A)({className:j,id:s,rows:1,maxLength:5e3},z),D),T):A?(0,n.A)((0,n.A)((0,n.A)({className:j,id:s,type:L,defaultValue:N},z),F),T):(0,n.A)((0,n.A)((0,n.A)({className:j,id:s,type:L},z),b),T),U=l()(t||u,r);return(0,m.jsxs)("div",{className:U,children:[v?(0,m.jsx)("label",{htmlFor:s,children:v}):null,k?(0,m.jsx)(c.vf,(0,n.A)({},B)):(0,m.jsx)("input",(0,n.A)({},B)),E?null:(0,m.jsx)(c.yI,{fieldMeta:R})]})};v.defaultProps={rootClassName:null,className:null,inputRootClass:null,onUnmount:null,customErrorText:null,id:null,label:null,isUncontrolled:!1,inputRef:null};class b extends o.Component{componentWillUnmount(){this.props.onUnmount&&this.props.onUnmount()}render(){return(0,m.jsx)(a.D0,(0,n.A)({component:v},this.props))}}const x=b},76787:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconAdd_root__UdgIn";var l=r(70579);const c=e=>{const{className:t,rootClassName:r}=e,n=a()(r||s,t);return(0,l.jsx)("svg",{className:n,width:"12",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M6.89 10.4V6.888h3.509a.889.889 0 1 0 0-1.779H6.89V1.6a.89.89 0 0 0-1.778 
20v3.511h-3.51a.888.888 0 1 0 0 1.778h3.51v3.51a.889.889 0 1 0 1.778 0",fillRule:"evenodd"})})},{string:u}=i();c.defaultProps={className:null,rootClassName:null};const d=c},42139:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(65043);var n=r(65173),i=r.n(n);const o="IconBannedUser_backgroundLight__8zeya",a="IconBannedUser_backgroundDark__q6H4N",s="IconBannedUser_foregroundFill__H1VYA",l="IconBannedUser_foregroundStroke__8rSQq";var c=r(70579);const u=e=>{const{className:t}=e;return(0,c.jsxs)("svg",{className:t,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"background",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,c.jsx)("stop",{offset:"0%",className:o}),(0,c.jsx)("stop",{offset:"100%",className:a})]})}),(0,c.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c.jsx)("circle",{fill:"url(#background)",cx:"20",cy:"20",r:"20"}),(0,c.jsx)("circle",{className:l,strokeWidth:"3",cx:"20",cy:"20",r:"13"}),(0,c.jsx)("path",{className:s,d:"M28.34 9.04l2.12 2.12-19.8 19.8-2.12-2.12z"})]})]})};u.defaultProps={className:null};const{string:d}=i(),h=u},64091:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconCheckMark_root__DXzi-";var l=r(70579);const c=e=>{const{rootClassName:t,className:r,size:n}=e,i=a()(t||s,r);return"small"===n?(0,l.jsx)("svg",{className:i,width:"16",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M14 2l-8 8-4-4",strokeWidth:"2.5",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})}):"big"===n?(0,l.jsx)("svg",{className:i,strokeWidth:"2",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M22.6 1.2c-.4-.3-1-.2-1.3.2L7.8 19l-5.2-5c-.4-.4-1-.4-1.3 0-.4.3-.4.8 0 1l6 5.6.6.2s.2 0 .4-.4l14.3-18c.3-.5.2-1-.2-1"})}):void 0};c.defaultProps={rootClassName:null,className:null,size:"big"};const{string:u}=i(),d=c},41683:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconClose_root__Qz91Q";var l=r(70579);const c=e=>{const{className:t,rootClassName:r,size:n}=e,i=a()(r||s,t);return"small"===n?(0,l.jsx)("svg",{className:i,width:"9",height:"9",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M2.175 8.396l2.482-2.482 2.482 2.482a.889.889 0 1 0 1.258-1.257L5.914 4.657l2.482-2.483A.89.89 0 0 0 7.139.917L4.657 3.4 2.175.918A.888.888 0 1 0 .917 2.174L3.4 4.657.918 7.139a.889.889 0 1 0 1.257 1.257",fillRule:"evenodd"})}):(0,l.jsx)("svg",{className:i,width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{transform:"translate(-1 -1)",fillRule:"evenodd",children:[(0,l.jsx)("rect",{transform:"rotate(45 7 7)",x:"-1",y:"6",width:"16",height:"2",rx:"1"}),(0,l.jsx)("rect",{transform:"rotate(-45 7 7)",x:"-1",y:"6",width:"16",height:"2",rx:"1"})]})})},{string:u}=i();c.defaultProps={className:null,rootClassName:null};const d=c},89053:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});r(65043);var n=r(98139),i=r.n(n);const o="IconDelete_root__-HsLA";var a=r(70579);const s=e=>{const{className:t,rootClassName:r}=e,n=i()(r||o,t);return(0,a.jsx)("svg",{className:n,width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.5 14h-7a1 1 0 0 1-1-1V4h9v9a1 1 0 0 1-1 1Zm-5-3V7m3 4V7m-8-3h13m-5-2h-3a1 1 0 0 0-1 1v1h5V3a1 1 0 0 0-1-1Z",strokeWidth:"1.5",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})})};s.defaultProps={className:null};const l=s},44339:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconDisputeOrder_root__Qjv2l";var l=r(70579);const c=e=>{const{className:t,rootClassName:r}=e,n=a()(r||s,t);return(0,l.jsx)("svg",{className:n,width:"45",height:"45",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{strokeWidth:"2.75",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("path",{d:"M9.063 33.25H7.718a5.375 5.375 0 01-5.375-5.375V22.5a5.375 5.375 0 015.375-5.375h1.343c.743 0 1.344.602 1.344 1.344v13.437c0 .742-.601 1.344-1.344 1.344zm28.218 0h-1.343a1.344 1.344 0 01-1.344-1.344V18.47c0-.742.601-1.344 1.343-1.344h1.344a5.375 5.375 0 015.375 5.375v5.375a5.375 5.375 0 01-5.375 5.375zM7.719 17.125c0-8.163 6.618-14.781 14.781-14.781h0a14.781 14.781 0 0114.781 14.781"}),(0,l.jsx)("path",{d:"M27.875 39.969h4.031a5.375 5.375 0 005.375-5.375h0V33.25"}),(0,l.jsx)("path",{d:"M25.188 42.656H22.5a2.687 2.687 0 01-2.688-2.687h0A2.687 2.687 0 0122.5 37.28h2.688a2.687 2.687 0 012.687 2.688h0a2.687 2.687 0 01-2.688 2.687zm-8.063-13.989a7.98 7.98 0 0010.75 0m-10.75-9.777v2.35m10.75-2.35v2.35"})]})})};c.defaultProps={className:null,rootClassName:null};const{string:u}=i(),d=c},7602:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconEdit_root__fCz2s",l="IconEdit_pencil__SxkMG";var c=r(70579);const u=e=>{const{rootClassName:t,className:r,pencilClassName:n}=e,i=a()(t||s,r);return(0,c.jsx)("svg",{className:i,width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("g",{className:n||l,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:(0,c.jsx)("path",{d:"M5.307 11.155L1 13l1.846-4.308L10.539 1 13 3.461zM11 5L9 3M5 11L3 9"})})})};u.defaultProps={rootClassName:null,className:null,pencilClassName:null};const{string:d}=i(),h=u},47539:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconEmailAttention_root__8DKR5",l="IconEmailAttention_marketplaceStroke__mRtZ3",c="IconEmailAttention_attentionStroke__ZLNfC";var u=r(70579);const d=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,u.jsx)("svg",{className:n,width:"52",height:"45",viewBox:"0 0 52 45",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsxs)("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,u.jsx)("path",{className:c,d:"M50 30.5C50 37.406 44.406 43 37.5 43S25 37.406 25 30.5C25 23.596 30.594 18 37.5 18S50 23.596 50 30.5z",strokeWidth:"2.5"}),(0,u.jsx)("path",{className:c,strokeWidth:"2.5",d:"M44 28l-8 8-4-4"}),(0,u.jsx)("path",{className:l,d:"M20.43 32H5.07C3.377 32 2 30.558 2 28.786V5.214C2 3.438 3.376 2 5.07 2h36.86C43.623 2 45 3.438 45 5.214v9.643",strokeWidth:"2.75"}),(0,u.jsx)("path",{className:l,strokeWidth:"2.75",d:"M43 4.026L23.015 17 3 4"})]})})};d.defaultProps={rootClassName:null,className:null};const{string:h}=i(),p=d},34687:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconEmailSent_root__rGryN";var l=r(70579);const c=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,l.jsx)("svg",{className:n,width:"70",height:"33",viewBox:"0 0 70 33",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{strokeWidth:"3",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("path",{d:"M59.592 26.65c-.958 2.4-3.67 4.35-6.056 4.35H18.93c-2.387 0-3.552-1.95-2.595-4.35l8.075-20.3C25.364 3.95 28.078 2 30.466 2H65.07c2.39 0 3.55 1.95 2.596 4.35l-8.074 20.3z"}),(0,l.jsx)("path",{d:"M62 8L41.345 19 30 8M22 26l10-7M54 26l-4.5-5.5M17 5H2M6.528 25H2M11.513 15.5H2"})]})})};c.defaultProps={rootClassName:null,className:null};const{string:u}=i(),d=c},39808:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconEmailSuccess_root__2Kd53",l="IconEmailSuccess_marketplaceStroke__hv5aG",c="IconEmailSuccess_successFill__l0Bcl",u="IconEmailSuccess_checkStroke__QmyEk";var d=r(70579);const h=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,d.jsx)("svg",{className:n,width:"51",height:"44",viewBox:"0 0 51 44",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsxs)("g",{transform:"translate(2 2)",fill:"none",fillRule:"evenodd",children:[(0,d.jsx)("circle",{className:c,cx:"35.5",cy:"28.5",r:"13.5"}),(0,d.jsx)("path",{className:u,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",d:"M42 26l-8 8-4-4"}),(0,d.jsx)("path",{d:"M18.43 30H3.07C1.377 30 0 28.558 0 26.786V3.214C0 1.438 1.376 0 3.07 0h36.86C41.623 0 43 1.438 43 3.214v9.643",className:l,strokeWidth:"2.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,d.jsx)("path",{className:l,strokeWidth:"2.75",strokeLinecap:"round",strokeLinejoin:"round",d:"M41 2.026L21.015 15 1 2"})]})})};h.defaultProps={rootClassName:null,className:null};const{string:p}=i(),f=h},7782:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(65043);var n=r(98139),i=r.n(n);const o="IconInquiry_root__YOXkQ",a="IconInquiry_marketplaceColorStroke__fhVXd";var s=r(70579);const l=e=>{const{rootClassName:t,className:r}=e,n=i()(t||o,r);return(0,s.jsx)("svg",{className:n,width:"47",height:"46",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{className:a,fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M37.522 17L45 22.22v19.933C45 43.724 43.744 45 42.196 45H4.804C3.256 45 2 43.724 2 42.153V22.22L9.478 17",strokeWidth:"2"}),(0,s.jsx)("path",{strokeWidth:"2.5",d:"M8 40l9.412-8h13.176L40 40M45 23l-11 8M2 23l11 8M38 27V2H10v25M15 8h4M19 13h13M15 19h17M15 24h17"})]})})};l.defaultProps={rootClassName:null,className:null};const c=l},26571:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(65043);var n=r(65173),i=r.n(n);const o="IconKeys_strokeMarketplaceColor__Kjuoa";var a=r(70579);const s=e=>{const{className:t}=e;return(0,a.jsx)("svg",{className:t,width:"50px",height:"57px",viewBox:"0 0 50 57",ver
2sion:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("g",{className:o,transform:"translate(-538.000000, -240.000000)",children:(0,a.jsx)("g",{transform:"translate(540.000000, 242.000000)",children:(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M25,19.65 C25,12.6626 19.4022727,7 12.5,7 C5.59772727,7 0,12.6626 0,19.65 C0,25.4391 3.84772727,30.3082 9.09090909,31.8101 L9.09090909,34.6 L6.81818182,36.8977 L9.09090909,39.2 L9.09090909,41.5 L6.81818182,43.8 L9.09090909,46.1 L9.09090909,49.55 L12.5,53 L15.9090909,49.55 L15.9090909,31.8101 C21.1522727,30.3082 25,25.4391 25,19.65 L25,19.65 Z",strokeWidth:"2.5"}),(0,a.jsx)("path",{d:"M16,15.5 C16,17.432 14.432,19 12.5,19 C10.568,19 9,17.432 9,15.5 C9,13.568 10.568,12 12.5,12 C14.432,12 16,13.568 16,15.5 L16,15.5 Z",strokeWidth:"2"}),(0,a.jsx)("path",{d:"M16,33.460821 C19.8584615,35.6660894 24.6353846,35.6843714 28.5192308,33.5362343 L31,35.7163649 L31,39.1442433 L34.4615385,39.1442433 L35.6153846,40.3440007 L35.6153846,43.7147478 L38.6546154,43.7147478 L41.1053846,46 L46,46 L46,41.15298 L33.4138462,28.6892143 C36.1138462,23.9061813 35.4192308,17.7474266 31.3138462,13.6819628 C28.42,10.8162565 24.4784615,9.62335484 20.71,10.1032578",strokeWidth:"2.5"}),(0,a.jsx)("path",{d:"M13,15 L13,4.61538462 C13,2.06769231 15.016,0 17.5,0 C19.984,0 22,2.06769231 22,4.61538462 L22,9.81230769",strokeWidth:"2.5"})]})})})})})};s.defaultProps={className:null};const{string:l}=i(),c=s},87684:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconKeysSuccess_strokeMarketplaceColor__bSEdP",l="IconKeysSuccess_fillSuccessColor__VBmfM",c="IconKeysSuccess_strokeLightColor__pC2UY";var u=r(70579);const d=e=>{const{className:t}=e;return(0,u.jsx)("svg",{className:t,width:"52",height:"60",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsxs)("g",{transform:"translate(2 2)",fill:"none",fillRule:"evenodd",children:[(0,u.jsx)("path",{className:s,d:"M25 19.6C25 12.6 19.4 7 12.5 7 5.5 7 0 12.7 0 19.6c0 5.8 3.8 10.7 9 12.2v2.8L7 37 9 39v2.3L7 43.8 9 46v3.5l3.5 3.5 3.4-3.5V31.8c5.2-1.5 9-6.4 9-12.2z",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{className:s,d:"M16 15.5c0 2-1.6 3.5-3.5 3.5-2 0-3.5-1.6-3.5-3.5 0-2 1.6-3.5 3.5-3.5 2 0 3.5 1.6 3.5 3.5z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{className:s,d:"M16 33.5c4 2.2 8.6 2.2 12.5 0l2.5 2.2V39h3.5l1 1.3v3.4h3.2L41 46h5v-4.8L33.4 28.7c2.7-4.8 2-11-2-15-3-3-7-4-10.7-3.6",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{className:s,d:"M13 15V4.6C13 2 15 0 17.5 0S22 2 22 4.6v5.2",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("circle",{className:a()(c,l),strokeWidth:"2",cx:"35.5",cy:"43.5",r:"13.5"}),(0,u.jsx)("path",{className:c,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",d:"M42 41l-8 8-4-4"})]})})};d.defaultProps={className:null};const{string:h}=i(),p=d},79134:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconReviewStar_root__NkRWj",l="IconReviewStar_filled__YwO4D";var c=r(70579);const u=e=>{const{className:t,rootClassName:r,isFilled:n}=e,i=n?l:s,o=a()(r||i,t);return(0,c.jsx)("svg",{className:o,width:"23",height:"23",viewBox:"0 0 23 23",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{d:"M22.938 8.008c-.15-.412-.544-.69-.985-.69H14.38L12.507.758C12.377.31 11.967 0 11.5 0c-.467 0-.88.31-1.006.76L8.618 7.317H1.046c-.442 0-.833.278-.983.69-.15.414-.025.876.314 1.16l5.7 4.75L3.2 21.59c-.16.43-.02.916.346 1.196.362.28.87.29 1.242.02l6.71-4.79 6.713 4.79c.375.27.88.26 1.245-.02.366-.28.504-.765.343-1.196l-2.875-7.67 5.7-4.75c.34-.284.463-.746.315-1.16",fillRule:"evenodd"})})};u.defaultProps={className:null,rootClassName:null,isFilled:!1};const{bool:d,string:h}=i(),p=u},64062:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconReviewUser_root__NPB4X";var l=r(70579);const c=e=>{const{className:t,rootClassName:r}=e,n=a()(r||s,t);return(0,l.jsx)("svg",{className:n,width:"46",height:"47",viewBox:"0 0 46 47",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("path",{strokeWidth:"2.75",d:"M8 45h32V2H8z"}),(0,l.jsx)("path",{d:"M8 2H4c-1.1 0-2 .84-2 1.87v39.26C2 44.16 2.9 45 4 45h4",strokeWidth:"2.5"}),(0,l.jsx)("path",{d:"M26.35 24v2.77l4.822 1.34c1.005.278 1.828 1.336 1.828 2.352V36H14v-5.538c0-1.016.823-2.074 1.826-2.352l4.824-1.34V24M29 18c0 3.315-2.464 6-5.5 6-3.038 0-5.5-2.685-5.5-6 0-3.313 2.462-6 5.5-6 3.036 0 5.5 2.687 5.5 6z",strokeWidth:"2"}),(0,l.jsx)("path",{d:"M28.5 17.01c-.847 1-3.27.996-4.183-1.01-1.694 2-4.447 2-5.817.858M41 5h1.333C43.8 5 45 6.62 45 8.6V14h-4M41 14h4v9h-4M41 23h4v10h-4M41 33h4v5.4c0 1.98-1.2 3.6-2.667 3.6H41",strokeWidth:"1.5"})]})})};c.defaultProps={className:null,rootClassName:null};const{string:u}=i(),d=c},61177:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconSearch_root__WSfIl";var l=r(70579);const c=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,l.jsx)("svg",{className:n,width:"21",height:"22",viewBox:"0 0 21 22",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsxs)("g",{transform:"matrix(-1 0 0 1 20 1)",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,l.jsx)("path",{d:"M13 14l5.241 5.241"}),(0,l.jsx)("circle",{cx:"7.5",cy:"7.5",r:"7.5"})]})})};c.defaultProps={rootClassName:null,className:null};const{string:u}=i(),d=c},79065:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconSocialMediaFacebook_root__zq5u4";var l=r(70579);const c=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,l.jsx)("svg",{className:n,width:"10",height:"17",viewBox:"0 0 10 17",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M8.65 1.108C8.413 1.072 7.59 1 6.633 1c-2 0-3.374 1.244-3.374 3.525V6.49H1v2.668h2.258v6.84h2.71V9.16h2.25l.345-2.668H5.968V4.786c0-.766.204-1.298 1.293-1.298h1.39v-2.38z",fillRule:"evenodd"})})};c.defaultProps={rootClassName:null,className:null};const{string:u}=i(),d=c},476:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconSocialMediaInstagram_root__CH-NJ";var l=r(70579);const c=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,l.jsx)("svg",{className:n,width:"16",height:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M10.286 8.57C10.286 7.156 9.13 6 7.714 6c-1.416 0-2.57 1.155-2.57 2.57s1.154 2.573 2.57 2.573c1.417 0 2.572-1.155 2.572-2.572zm1.386 0c0 2.19-1.768 3.96-3.958 3.96-2.19 0-3.957-1.77-3.957-3.96 0-2.188 1.768-3.956 3.957-3.956 2.19 0 3.958 1.768 3.958 3.957zm1.085-4.117c0 .512-.412.924-.924.924-.513 0-.925-.412-.925-.924s.412-.924.925-.924c.512 0 .924.41.924.923zm-5.043-2.21c-1.125 0-3.535-.09-4.55.312-.352.14-.613.31-.884.582-.27.27-.442.533-.582.884-.402 1.016-.312 3.426-.312 4.55 0 1.126-.09 3.537.312 4.552.14.35.31.612.582.884.27.27.533.442.884.582 1.015.402 3.425.312 4.55.312s3.536.09 4.55-.312c.352-.14.613-.31.884-.582.272-.272.442-.533.583-.884.403-1.015.312-3.426.312-4.55 0-1.126.09-3.536-.31-4.55-.142-.352-.312-.614-.584-.885-.27-.27-.532-.442-.883-.582-1.015-.402-3.426-.312-4.55-.312zM15.43 8.57c0 1.066.01 2.12-.052 3.186-.06 1.235-.34 2.33-1.245 3.234-.904.904-2 1.185-3.235 1.245-1.064.06-2.12.05-3.184.05s-2.12.01-3.184-.05c-1.235-.06-2.33-.34-3.234-1.245-.904-.904-1.186-2-1.246-3.234C-.01 10.69 0 9.636 0 8.57c0-1.063-.01-2.118.05-3.183.06-1.235.342-2.33 1.246-3.234C2.2 1.25 3.296.968 4.53.907c1.065-.06 2.12-.05 3.184-.05 1.065 0 2.12-.01 3.184.05 1.236.06 2.33.342 3.235 1.246.904.904 1.185 2 1.245 3.234.06 1.065.05 2.12.05 3.184z",fillRule:"evenodd"})})};c.defaultProps={rootClassName:null,className:null};const{string:u}=i(),d=c},2591:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o);const s="IconSocialMediaTwitter_root__35uTi";var l=r(70579);const c=e=>{const{rootClassName:t,className:r}=e,n=a()(t||s,r);return(0,l.jsx)("svg",{className:n,width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M14.956 2.37c-.513.225-1.07.388-1.647.45.592-.36 1.044-.928 1.257-1.604-.55.334-1.17.577-1.816.703-.52-.568-1.265-.92-2.09-.92C9.077 1 7.8 2.307 7.8 3.912c0 .225.028.45.072.667C5.5 4.45 3.382 3.3 1.974 1.53c-.248.433-.39.928-.39 1.47 0 1.01.505 1.9 1.276 2.424-.47-.018-.912-.153-1.293-.37v.036c0 1.416.983 2.587 2.293 2.858-.24.063-.496.1-.752.1-.186 0-.363-.02-.54-.046.362 1.154 1.416 1.992 2.674 2.02-.983.783-2.214 1.243-3.55 1.243-.24 0-.462-.01-.692-.036 1.266.83 2.772 1.308 4.392 1.308 5.26 0 8.138-4.435 8.138-8.284 0-.126 0-.252-.008-.38.557-.413 1.045-.927 1.434-1.504z",fillRule:"evenodd"})})};c.defaultProps={rootClassName:null,className:null};const{string:u}=i(),d=c},8214:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});
2var n=r(89379),i=r(80045),o=r(65043),a=r(98139),s=r.n(a);const l="IconSpinner_root__6JFKA";var c=r(70579);const u=["delay"],d=["delay"],h=e=>{const{rootClassName:t,className:r}=e,n=s()(t||l,r);return(0,c.jsx)("svg",{className:n,viewBox:"0 0 30 30",preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("circle",{cx:"15",cy:"15",r:"12",fill:"none",strokeLinecap:"round",children:[(0,c.jsx)("animateTransform",{attributeName:"transform",type:"rotate",calcMode:"linear",values:"0 15 15;180 15 15;720 15 15",keyTimes:"0;0.5;1",dur:"0.9s",begin:"0s",repeatCount:"indefinite"}),(0,c.jsx)("animate",{attributeName:"stroke-dasharray",calcMode:"linear",values:"9 56;46 14;9 56",keyTimes:"0;0.5;1",dur:"0.9s",begin:"0s",repeatCount:"indefinite"})]})})},p=e=>{const[t,r]=(0,o.useState)(!1),{delay:a=600}=e,s=(0,i.A)(e,u);return(0,o.useEffect)((()=>{const e=setTimeout((()=>r(!0)),a);return()=>clearTimeout(e)})),t?(0,c.jsx)(h,(0,n.A)({},s)):null},f=e=>{const{delay:t}=e,r=(0,i.A)(e,d);return null!=t?(0,c.jsx)(p,(0,n.A)({},e)):(0,c.jsx)(h,(0,n.A)({},r))};f.defaultProps={rootClassName:null,className:null,delay:null};const m=f},6299:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});r(65043);var n=r(98139),i=r.n(n);const o="IconSuccess_root__2FvOj",a="IconSuccess_fillColor__TRCpk";var s=r(70579);const l=e=>{const{rootClassName:t,className:r,fillColor:n}=e,l=i()(t||o,r);return(0,s.jsx)("svg",{className:l,width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("circle",{className:n||a,cx:"12",cy:"12",r:"12"}),(0,s.jsx)("path",{stroke:"#FFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",d:"M16 8l-5.184 8L8 12.439"})]})})};l.defaultProps={rootClassName:null,className:null,fillColor:null};const c=l},21563:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(89379),i=r(80045),o=r(65043),a=r(70579);const s=["as","style"],l=["children","style","areas","responsiveAreas","display","as"],c={},u=e=>{if(c.hasOwnProperty(e))return c[e];const t=(r=e,r.trim().split("\n").filter(Boolean)).map((e=>e.split(/\s+/).filter(Boolean))).reduce(((e,t)=>(t.forEach((t=>{const r=o.forwardRef(((e,r)=>{const{as:o,style:l}=e,c=(0,i.A)(e,s),u=o||"div";return(0,a.jsx)(u,(0,n.A)((0,n.A)({},c),{},{style:(0,n.A)((0,n.A)({},l),{},{gridArea:t}),ref:r}))})),l=(e=>e.replace(/-(.)/g,(e=>e[1].toUpperCase())))("".concat((c=t).charAt(0).toUpperCase()).concat(c.substr(1)));var c;r.displayName="LayoutArea.".concat(l),e.components[l]=r})),e.gridTemplateAreas+="'".concat(t.join(" "),"' "),e)),{components:{},gridTemplateAreas:""});var r;return c[e]=t,t},d=(e,t)=>{let r=[];return Object.entries(e).forEach((e=>{let[n,i]=e;const{mediaQuery:o,areas:a}=i,s=window.matchMedia(o);s.matches&&t(u(a));const l=((e,t)=>r=>{r.matches&&t(u(e.areas))})(i,t);r.push({mediaQueryList:s,resizeListener:l}),s.addEventListener("change",l)})),r},h=o.forwardRef(((e,t)=>{const[r,s]=(0,o.useState)((e=>{const{areas:t,responsiveAreas:r}=e;if(t)return u(t);if(r){var n;const e=Object.keys(r)[0],t=null===r||void 0===r||null===(n=r[e])||void 0===n?void 0:n.areas;if(t)return u(t)}throw new Error('LayoutComposer needs to have either "areas" or "responsiveAreas" included into props.')})(e));(0,o.useEffect)((()=>{let e=[];return g&&(e=d(g,s)),()=>{e.forEach((e=>{const{mediaQueryList:t,resizeListener:r}=e;t.removeEventListener("change",r)}))}}),[]);const{components:c,gridTemplateAreas:h}=r,{children:p,style:f={},areas:m,responsiveAreas:g,display:_,as:y}=e,v=(0,i.A)(e,l),b=y||"div";return(0,a.jsx)(b,(0,n.A)((0,n.A)({},v),{},{style:(0,n.A)((0,n.A)({},f),{},{gridTemplateAreas:h,display:"inline"===_?"grid-inline":"grid"}),ref:t,children:p(c)}))}));h.displayName="LayoutComposer",h.defaultProps={areas:null,responsiveAreas:null,display:"grid",as:null};const p=h},68737:(e,t,r)=>{"use strict";r.d(t,{A:()=>j});var n=r(89379),i=r(65043),o=r(98139),a=r.n(o),s=r(63775),l=r(24141),c=r(79818),u=(r(44356),r(41233)),d=r(77232),h=r(32423),p=r(65173),f=r.n(p);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var _=(0,i.forwardRef)((function(e,t){var r=e.color,n=void 0===r?"currentColor":r,o=e.size,a=void 0===o?24:o,s=g(e,["color","size"]);return i.createElement("svg",m({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),i.createElement("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),i.createElement("circle",{cx:"12",cy:"10",r:"3"}))}));_.propTypes={color:f().string,size:f().oneOfType([f().string,f().number])},_.displayName="MapPin";const y=_;var v=r(49254),b=r(34535),x=r(18689);const w="ListingCard_root__-aAY3",A="ListingCard_locationOnly__nH6Yx",S="ListingCard_aspectRatioWrapper__OXEU4",E="ListingCard_rootForImage__WvDSv",T="ListingCard_secondaryImage__TjV0p",P="ListingCard_info__H2jxp",C="ListingCard_infoWithoutBorder__VeG+F",I="ListingCard_mainInfo__M661G",M="ListingCard_headingRow__l-ab5",k="ListingCard_title__oZ39J textLarge",O="ListingCard_authorInfo__Yvv+b",R="ListingCard_longWord__VzDGy",L="ListingCard_providerAvatar__Oh7Bh",D="ListingCard_ratingStars__T55g4";var N=r(28287),F=r(70579);const z=(0,c.EA)(x.wF,{loadAfterInitialRendering:3e3}),j=(0,l.j4)((e=>{var t,r,i,o,l,c;const{listing:p=null,reviews:f=null,displayReview:m=!1,locationOnly:g=!1}=e,_=(0,s._r)(),{className:j=null,rootClassName:B=null,renderSizes:U=null,setActiveListing:V=null}=e,q=a()(B||w,j,g&&A),H=(0,u.$r)(p),G=H.id.uuid,{title:W="",description:Y=""}=H.attributes,Z=(0,h.e9)(W),K=(0,u.yw)(p.author),X=H.images&&(null===(t=H.images)||void 0===t?void 0:t.length)>0?H.images[0]:null,J=H.images&&(null===(r=H.images)||void 0===r?void 0:r.length)>1?H.images[1]:null,Q=K.attributes.profile.publicData.stylistqualifications,$=K.attributes.profile.publicData.hairstylisttime,ee=null===(i=H.attributes)||void 0===i||null===(o=i.publicData)||void 0===o||null===(l=o.location)||void 0===l?void 0:l.address,{aspectWidth:te=1,aspectHeight:re=1,variantPrefix:ne="listing-card"}=(K.attributes.profile.publicData.Acuity_yes_no,_.layout.listingImage),ie=X?Object.keys(null===X||void 0===X||null===(c=X.attributes)||void 0===c?void 0:c.variants).filter((e=>e.startsWith(ne))):[],oe=V?{onMouseEnter:()=>V(H.id),onMouseLeave:()=>V(null)}:null;return g?(0,F.jsx)(x.GF,{className:q,name:"ListingPage",params:{id:G,slug:Z},children:(0,F.jsx)("div",{className:a()(P,C),children:(0,F.jsxs)("div",{className:I,children:[(0,F.jsx)("div",{className:M,children:(0,F.jsx)("div",{className:k,children:(0,d.YD)(W,{longWordMinLength:10,longWordClass:R})})}),(0,F.jsxs)("div",{className:O,children:[(0,F.jsx)(y,{color:"white",size:18,style:{fill:"#E25E38",marginTop:6}}),ee?(0,F.jsx)("div",{className:O,children:ee}):"Mobile"]})]})})}):(0,F.jsxs)(x.GF,{className:q,name:"ListingPage",params:{id:G,slug:Z},children:[(0,F.jsxs)(x.Vh,(0,n.A)((0,n.A)({className:S,width:te,height:re},oe),{},{children:[(0,F.jsx)(z,{rootClassName:E,alt:W,image:X,variants:ie,sizes:U}),J?(0,F.jsx)(z,{rootClassName:a()(E,T),alt:W,image:J,variants:ie,sizes:U}):null]})),(0,F.jsx)("div",{className:a()(P),children:(0,F.jsxs)("div",{className:I,children:[(0,F.jsxs)("div",{className:M,children:[(0,F.jsx)(x.Bz,{user:K,className:L,disableProfileLink:!0}),(0,F.jsx)("div",{className:k,children:(0,d.YD)(W,{longWordMinLength:10,longWordClass:R})})]}),m&&f&&(0,F.jsx)(x.zB,{className:D,reviews:f,listingId:G}),(null===Q||void 0===Q?void 0:Q.length)>0?Q.map(((e,t)=>(0,F.jsxs)("div",{className:O,children:[(0,F.jsx)(v.A,{color:"white",size:18,style:{fill:"#E25E38",marginTop:6}}),(0,N.a)(e)||e]},t))):null,$?(0,F.jsxs)("div",{className:O,children:[(0,F.jsx)(b.A,{color:"white",size:18,style:{fill:"#E25E38",marginTop:6}}),$," years of experience"]}):null,(0,F.jsxs)("div",{className:O,children:[(0,F.jsx)(y,{color:"white",size:18,style:{fill:"#E25E38",marginTop:6}}),ee?(0,F.jsx)("div",{className:O,children:ee.split(",")[0]}):"Mobile"]})]})})]})}))},31222:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,I:()=>m});var n=r(89379),i=r(80045),o=r(65043),a=r(77775),s=r(56356),l=r(18689),c=r(70579);const u=["rootClassName","labelClassName","hideErrorMessage"],d=["input","label","meta","valueFromForm"],h=(0,s.Ay)((()=>r.e(2808).then(r.bind(r,64615))));class p extends o.Component{render(){const e=this.props,{rootClassName:t,labelClassName:r,hideErrorMessage:o}=e,a=(0,i.A)(e,u),{input:s,label:p,meta:f,valueFromForm:m}=a,g=(0,i.A)(a,d),_="undefined"!==typeof m?m:s.value,y=(0,n.A)((0,n.A)({label:p,meta:f},g),{},{input:(0,n.A)((0,n.A)({},s),{},{value:_})}),v=p?(0,c.jsx)("label",{className:r,htmlFor:s.name,children:p}):null;return(0,c.jsxs)("div",{className:t,children:[v,(0,c.jsx)(h,(0,n.A)({},y)),o?null:(0,c.jsx)(l.yI,{fieldMeta:f})]})}}p.defaultProps={rootClassName:null,labelClassName:null,type:null,label:null};const f=h,m=e=>(0,c.jsx)(a.D0,(0,n.A)({component:p},e))},32851:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(89379),i=r(80045),o=(r(65043),r(98139)),a=r.n(o),s=r(18689),l=r(43495),c=r(70579);const u=["className","rootClassName","logoClassName","logoImageClassName","layout","linkToExternalSite","alt"],d=e=>{const{className:t,rootClassName:r,logoClassName:o,logoImageClassName:d,layout:h,linkToExternalSite:p,alt:f}=e,m=(0,i.A)(e,u),g=a()(r||l.A.root,t);return null!==p&&void 0!==p&&p.href?(0,c.jsx)(s.Gr,(0,n.A)((0,n.A)({className:g,href:p.href,target:"_self"},m),{},{children:(0,c.jsx)(s.gu,{layout:h,className:o,logoImageClassName:d,alt:f})})):(0,c.jsx)(s.GF,(0,n.A)((0,n.A)({className:g,name:"LandingPage"},m),{},{children:(0,c.jsx)(s.gu,{layout:h,className:o,logoImageClassName:d,alt:f})}))};d.defaultProps={className:null,rootClassName:null,logoClassName:null,logoImageClassName:null,layout:"desktop",linkToExternalSite:null};const h=d},72452:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b,A:()=>w});var n=r(89379),i=r(80045),o=(r(65043),r(98139)),a=r.n(o),s=r(63775),l=r(18689);const c="Logo_root__-5mu7",u="Logo_logo__vDBPO",d="Logo_logo24__18E6b",h="Logo_logo36__yXrz1",p="Logo_logo48__bK5oy";var f=r(70579);const m=["className","logoImageClassName","layout","marketplaceName","logoImageDesktop","logoImageMobile","logoSettings"],g=[24,36,48],_=e=>"imageAsset"===(null===e||void 0===e?void 0:e.type),y=e=>Object.keys(e)||[],v=e=>e.scaled,b=e=>{const{className:t,logoImageClassName:r,layout:o,marketplaceName:s,logoImageDesktop:b,logoImageMobile:x,logoSettings:w}=e,A=(0,i.A)(e,m),S="image"===(null===(E=w)||void 0===E?void 0:E.format)&&g.includes(null===E||void 0===E?void 0:E.height);var E;const T=t||c,P=a()(r||u,48===(C=null===w||void 0===w?void 0:w.height)?p:36===C?h:d);var C;if(_(b)&&S&&"desktop"===o){const e=b.attributes.variants,t=y(e),{width:r}=v(e);return(0,f.jsx)("div",{className:T,style:{width:"".concat(r,"px")},children:(0,f.jsx)(l.wF,{rootClassName:P,alt:s,image:b,variants:t,sizes:"".concat(r,"px"),width:r,height:null===w||void 0===w?void 0:w.height})})}if(_(x)&&S&&"mobile"===o){const e=x.attributes.variants,t=y(e),{width:r}=v(e),n=r<=188?"".concat(r,"px"):"(max-width: 500px) calc(100vw - 132px), ".concat(r,"px");return(0,f.jsx)("div",{className:T,children:(0,f.jsx)(l.wF,{rootClassName:P,alt:s,image:x,variants:t,sizes:n,width:r})})}return"desktop"===o?(0,f.jsx)("div",{className:T,children:(0,f.jsx)("img",(0,n.A)({className:P,src:b,alt:s},A))}):(0,f.jsx)("div",{className:T,children:(0,f.jsx)("img",(0,n.A)({className:P,src:x,alt:s},A))})},x=e=>{const t=(0,s._r)(),{logoImageDesktop:r,logoImageMobile:i,logoSettings:o}=t.branding;return(0,f.jsx)(b,(0,n.A)((0,n.A)({},e),{},{logoImageDesktop:r,logoImageMobile:i,logoSettings:o,marketplaceName:t.marketplaceName}))};x.defaultProps={className:null,layout:"desktop"};const w=x},22015:(e,t,r)=>{"use strict";r.d(t,{A:()=>U});var n=r(65043),i=r(98139),o=r.n(i),a=r(63775),s=(r(44356),r(63690)),l=r(57812),c=r(80111),u=r.n(c),d=r(70579);const h=(e,t,r)=>
2({id:r,type:"fill",source:{type:"geojson",data:{type:"Feature",geometry:{type:"Polygon",coordinates:[(0,s.hk)(e,t.fuzzy.offset).map((e=>{let[t,r]=e;return[r,t]}))]}}},paint:{"fill-color":t.fuzzy.circleColor,"fill-opacity":.2}}),p=()=>u()("fuzzy_layer_");class f extends n.Component{constructor(e){super(e),this.mapContainer=null,this.map=null,this.centerMarker=null,this.fuzzyLayerId=p(),this.updateFuzzyCirclelayer=this.updateFuzzyCirclelayer.bind(this)}componentDidMount(){const{center:e,zoom:t,mapsConfig:r}=this.props,n=[e.lng,e.lat];this.map=new window.mapboxgl.Map({container:this.mapContainer,style:"mapbox://styles/mapbox/streets-v10",center:n,zoom:t,scrollZoom:!1}),this.map.addControl(new window.mapboxgl.NavigationControl({showCompass:!1}),"top-left"),this.map.addControl(new l.A),r.fuzzy.enabled?this.map.on("load",(()=>{this.map.addLayer(h(e,r,this.fuzzyLayerId))})):(this.centerMarker=new window.mapboxgl.Marker,this.centerMarker.setLngLat(n).addTo(this.map))}componentWillUnmount(){this.map&&(this.centerMarker=null,this.map.remove(),this.map=null)}componentDidUpdate(e){if(!this.map)return;const{center:t,zoom:r,mapsConfig:n}=this.props,{lat:i,lng:o}=t,a=[o,i];r!==e.zoom&&this.map.setZoom(this.props.zoom);const s=i!==e.center.lat||o!==e.center.lng;this.centerMarker&&s&&(this.centerMarker.setLngLat(a),this.map.setCenter(a)),n.fuzzy.enabled&&s&&(this.map.loaded()?this.updateFuzzyCirclelayer():this.map.on("load",this.updateFuzzyCirclelayer))}updateFuzzyCirclelayer(){if(!this.map)return;const{center:e,mapsConfig:t}=this.props,{lat:r,lng:n}=e,i=[n,r];this.map.removeLayer(this.fuzzyLayerId),this.fuzzyLayerId=p(),this.map.addLayer(h(e,t,this.fuzzyLayerId)),this.map.setCenter(i)}render(){const{containerClassName:e,mapClassName:t}=this.props;return(0,d.jsx)("div",{className:e,children:(0,d.jsx)("div",{className:t,ref:e=>this.mapContainer=e})})}}f.defaultProps={address:"",center:null};const m=f;var g=r(51809),_=r.n(g),y=r(79818);const v=e=>e.replace(/^#/,""),b=(e,t)=>t.fuzzy.enabled?((e,t)=>{const r=t.fuzzy.circleColor,n=t.fuzzy.circleColor,i=(0,s.hk)(e,t.fuzzy.offset),o="-".concat(1,"+").concat(v(r),"-").concat(.5,"+").concat(v(n),"-").concat(.2);return"path".concat(o,"(").concat(encodeURIComponent(_().encode(i)),")")})(e,t):(e=>"pin-s(".concat(e.lng,",").concat(e.lat,")"))(e),x=e=>{const{address:t,center:r,zoom:n,mapsConfig:i,dimensions:o,pageWidth:a}=e,{width:s,height:l}=o;if(!("undefined"!==typeof window&&window.mapboxgl))return null;const c=b(r,i),u="https://api.mapbox.com/styles/v1/mapbox/streets-v10/static"+(c?"/".concat(c):"")+"/".concat(r.lng,",").concat(r.lat,",").concat(n)+"/".concat(a||s,"x").concat(l)+"?access_token=".concat(i.mapboxAccessToken);return(0,d.jsx)("img",{src:u,alt:t,crossOrigin:"anonymous"})};x.defaultProps={address:"",center:null};const w=(0,y.EA)(x,{maxWidth:"640px"}),A=()=>"undefined"!==typeof window&&window.mapboxgl;class S extends n.Component{constructor(e){super(e),this.map=null,this.mapContainer=null,this.initializeMap=this.initializeMap.bind(this)}componentDidMount(e){!this.map&&this.mapContainer&&this.initializeMap()}initializeMap(){const{offsetHeight:e,offsetWidth:t}=this.mapContainer;if(e>0&&t>0){const{center:e,zoom:t,address:r,mapsConfig:n}=this.props,i=window.google.maps,o={center:e,zoom:t,mapTypeControl:!1,scrollwheel:!1,fullscreenControl:!1,streetViewControl:!1,zoomControlOptions:{position:window.google.maps.ControlPosition.LEFT_TOP}};if(this.map=new i.Map(this.mapContainer,o),n.fuzzy.enabled){const t=window.google.maps.LatLng,r={lat:e.lat,lng:e.lng},i=n.fuzzy.offset,o=(0,s.hk)(r,i).map((e=>new t(e[0],e[1]))),a={options:{fillColor:n.fuzzy.circleColor,fillOpacity:.2,strokeColor:n.fuzzy.circleColor,strokeOpacity:.5,strokeWeight:1,clickable:!1},path:o,map:this.map};new(0,window.google.maps.Polygon)(a)}else new window.google.maps.Marker({position:e,map:this.map,title:r})}}render(){const{containerClassName:e,mapClassName:t}=this.props;return(0,d.jsx)("div",{className:e,children:(0,d.jsx)("div",{className:t,ref:e=>this.mapContainer=e})})}}S.defaultProps={address:"",center:null};const E=S;var T=r(89379),P=r(22616),C=r.n(P),I=r(19853),M=r.n(I),k=r(32423);const O=e=>"string"===typeof e&&/^#[0-9A-F]{6}$/i.test(e)?e.substring(1).toUpperCase():"string"===typeof e?e.toUpperCase():"FF0000",R=e=>{if("number"===typeof e&&!isNaN(e)&&e>=0&&e<=1)return Math.floor(255*e).toString(16).toUpperCase()},L=(e,t)=>{if(!e||"object"!==typeof e||!t||"object"!==typeof t)return"";const r=e.fuzzy.circleColor,n=e.fuzzy.circleColor,i=e.fuzzy.offset||500,o=O(n),a=R(.3),l=O(r),c=R(.2),u=_().encode((0,s.hk)(t,i));return["color:0x".concat(o).concat(a),"fillcolor:0x".concat(l).concat(c),"weight:".concat(1),"enc:".concat(u)].join("|")};class D extends n.Component{shouldComponentUpdate(e,t){const r=C()(this.props,["center","zoom","dimensions"]),n=C()(e,["center","zoom","dimensions"]);return!M()(r,n)}render(){const{center:e,zoom:t,address:r,mapsConfig:n,dimensions:i}=this.props,{lat:o,lng:a}=e||{},{width:s,height:l}=i,c=n.fuzzy.enabled?{path:L(n,e)}:{markers:"".concat(o,",").concat(a)},u=(0,k.As)((0,T.A)({center:(0,k.Xo)(e),zoom:t,size:"".concat(s,"x").concat(l),maptype:"roadmap",key:n.googleMapsAPIKey},c));
2return(0,d.jsx)("img",{src:"https://maps.googleapis.com/maps/api/staticmap?".concat(u),alt:r,crossOrigin:"anonymous"})}}D.defaultProps={className:null,rootClassName:null,address:"",center:null};const N=(0,y.EA)(D,{maxWidth:"640px"}),F=()=>"undefined"!==typeof window&&window.google&&window.google.maps,z="Map_root__nPlUN",j="Map_mapRoot__olXmS",B=e=>{const t=(0,a._r)(),{className:r,rootClassName:n,mapRootClassName:i,address:l,center:c,obfuscatedCenter:u,zoom:h,mapsConfig:p,useStaticMap:f,pageWidth:g}=e,_=p||t.maps,y=!!(0,s.UT)(_),v="googleMaps"===_.mapProvider,b=v?N:w,x=v?E:m,S=v?F:A,T=o()(n||z,r),P=i||j;if(_.fuzzy.enabled&&!u)throw new Error("Map: obfuscatedCenter prop is required when config.maps.fuzzy.enabled === true");if(!_.fuzzy.enabled&&!c)throw new Error("Map: center prop is required when config.maps.fuzzy.enabled === false");const C=_.fuzzy.enabled?u:c,I=h||_.fuzzy.enabled?_.fuzzy.defaultZoomLevel:11;return y&&S()?f?(0,d.jsx)(b,{center:C,zoom:I,address:l,mapsConfig:_,pageWidth:g}):(0,d.jsx)(x,{containerClassName:T,mapClassName:P,center:C,zoom:I,address:l,mapsConfig:_}):(0,d.jsx)("div",{className:T})};B.defaultProps={className:null,rootClassName:null,mapRootClassName:null,address:"",zoom:null,mapsConfig:null,useStaticMap:!1};const U=B},67200:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(89379),i=r(65043),o=r(65173),a=r.n(o),s=r(98139),l=r.n(s),c=r(18689);const u="Menu_root__yISLg";var d=r(70579);const h=(e,t)=>null!==e&&null!==t;class p extends i.Component{constructor(e){super(e),this.state={isOpen:!1,ready:!1};const{isOpen:t,onToggleActive:r}=e;if(!(null===t&&null===r)&&!h(t,r))throw new Error("Menu has invalid props:\n          Both isOpen and onToggleActive need to be defined (controlled menu),\n          or neither of them (menu uses its own state management).");this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.toggleOpen=this.toggleOpen.bind(this),this.prepareChildren=this.prepareChildren.bind(this),this.positionStyleForMenuContent=this.positionStyleForMenuContent.bind(this),this.positionStyleForArrow=this.positionStyleForArrow.bind(this),this.menu=null,this.menuContent=null}componentDidMount(){this.setState({ready:!0})}onBlur(e){if(!this.menu.contains(e.relatedTarget)){const{isOpen:e,onToggleActive:t}=this.props;h(e,t)?t(!1):this.setState({isOpen:!1})}}onKeyDown(e){27===e.keyCode&&this.toggleOpen(!1)}toggleOpen(e){const{isOpen:t,onToggleActive:r}=this.props;if(h(t,r)){r(null!=e?e:!t)}else this.setState((t=>({isOpen:null!=e?e:!t.isOpen})))}positionStyleForMenuContent(e){if(this.menu&&this.menuContent){const t=window.innerWidth,r=this.menu.getBoundingClientRect(),n=t-r.right,i=this.menu.offsetWidth,o=this.menuContent.offsetWidth-i,a="left"===e,s=this.props.contentPlacementOffset;return t<=767?{left:-1*(r.left-24),width:"calc(100vw - 48px)"}:a||n<o?{right:s,minWidth:i}:{left:s,minWidth:i}}return this.state.isOpen?{}:{left:"-10000px"}}positionStyleForArrow(e){if(this.menu){const t=this.menu.offsetWidth,r=this.props.contentPlacementOffset;return e?Math.floor(t/2)-r:Math.floor(t/2)}return 0}prepareChildren(){if(2!==i.Children.count(this.props.children))throw new Error("Menu needs to have two children: MenuLabel and MenuContent.");return i.Children.map(this.props.children,(e=>{const{isOpen:t,onToggleActive:r}=this.props,o=h(t,r)?t:this.state.isOpen;if(e.type===c.Wq)return i.cloneElement(e,{isOpen:o,onToggleActive:this.toggleOpen});if(e.type===c.rm){const{contentPosition:t,useArrow:r}=this.props,a=this.positionStyleForMenuContent(t),s=r?this.positionStyleForArrow(null!=a.right):null;return i.cloneElement(e,{arrowPosition:s,contentRef:e=>{this.menuContent=e},isOpen:o,style:(0,n.A)((0,n.A)({},e.props.style),a)})}throw new Error("Menu has an unknown child. Only MenuLabel and MenuContent are allowed.")}))}render(){const{id:e,className:t,rootClassName:r}=this.props,n=r||u,i=l()(n,t),o=this.state.ready?this.prepareChildren():null;return(0,d.jsx)("div",{id:e,className:i,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:e=>{this.menu=e},children:o})}}p.defaultProps={className:null,rootClassName:"",contentPlacementOffset:0,contentPosition:"right",isOpen:null,onToggleActive:null,useArrow:!0};const{bool:f,func:m,node:g,number:_,string:y}=a(),v=p},93558:(e,t,r)=>{"use strict";r.d(t,{A:()=>I});var n=r(65043),i=r(97950),o=r(65173),a=r.n(o),s=r(98139),l=r.n(s),c=r(24141),u=r(18689);const d="Modal_scrollLayer__4TCDK",h="Modal_container__Ha+Ky",p="Modal_isOpenInPlace__YxzNf Modal_isOpen__zYv3o",f="Modal_isOpenInPortal__r+fP- Modal_isOpen__zYv3o",m="Modal_content__gGb69",g="Mod
2al_isClosed__X+8DH",_="Modal_close__V34Fj marketplaceModalCloseStyles",y="Modal_closeText__hOmap marketplaceModalCloseText",v="Modal_closeIcon__9I0vC marketplaceModalCloseIcon",b="Modal_closeLight__vy8UR",x="Modal_focusedDiv__kimxJ";var w=r(70579);class A extends n.Component{constructor(e){super(e),this.el=document.createElement("div")}componentDidMount(){this.props.portalRoot.appendChild(this.el)}componentWillUnmount(){this.props.portalRoot.removeChild(this.el)}render(){return i.createPortal(this.props.children,this.el)}}class S extends n.Component{constructor(e){super(e),this.handleBodyKeyUp=this.handleBodyKeyUp.bind(this),this.handleClose=this.handleClose.bind(this),this.handleResize=this.handleResize.bind(this),this.refDiv=n.createRef(),this.vh=null,this.state={portalRoot:null}}componentDidMount(){const{id:e,isOpen:t,onManageDisableScrolling:r}=this.props;r(e,t),window.document.body.addEventListener("keyup",this.handleBodyKeyUp),this.vh=.01*window.innerHeight,window.document.documentElement.style.setProperty("--vh","".concat(this.vh,"px")),window.addEventListener("resize",this.handleResize),this.setState({portalRoot:document.getElementById("portal-root")})}componentDidUpdate(e){const{id:t,isOpen:r,onManageDisableScrolling:n}=e;this.props.isOpen!==r&&(n(t,this.props.isOpen),this.props.usePortal&&this.props.isOpen&&this.refDiv.current.focus())}componentWillUnmount(){const{id:e,onManageDisableScrolling:t}=this.props;window.document.body.removeEventListener("keyup",this.handleBodyKeyUp),window.document.body.removeEventListener("resize",this.handleResize),t(e,!1)}handleBodyKeyUp(e){const{isOpen:t}=this.props;27===e.keyCode&&t&&this.handleClose(e)}handleClose(e){const{id:t,onClose:r,onManageDisableScrolling:n}=this.props;n(t,!1),r(e)}handleResize(){this.vh=.01*window.innerHeight,window.document.documentElement.style.setProperty("--vh","".concat(this.vh,"px"))}render(){const{children:e,className:t,scrollLayerClassName:r,closeButtonMessage:n,
2containerClassName:i,contentClassName:o,lightCloseButton:a,intl:s,isClosedClassName:g,isOpen:S,usePortal:E}=this.props,T=s.formatMessage({id:"Modal.closeModal"}),P=l()(_,{[b]:a}),C=S?(0,w.jsxs)(u.$n,{onClick:this.handleClose,rootClassName:P,title:T,children:[(0,w.jsx)("span",{className:y,children:n||(0,w.jsx)(c.sA,{id:"Modal.close"})}),(0,w.jsx)(u.gz,{rootClassName:v})]}):null,I=S?E?f:p:g,M=l()(I,t),k=r||d,O=i||h,R=this.state.portalRoot;return E?R?(0,w.jsx)(A,{portalRoot:R,children:(0,w.jsx)("div",{className:M,children:(0,w.jsx)("div",{className:k,children:(0,w.jsxs)("div",{className:l()(O,x),ref:this.refDiv,tabIndex:"-1",children:[C,(0,w.jsx)("div",{className:l()(o||m),children:e})]})})})}):null:(0,w.jsx)("div",{className:M,children:(0,w.jsx)("div",{className:k,children:(0,w.jsxs)("div",{className:O,children:[C,(0,w.jsx)("div",{className:l()(o||m),children:e})]})})})}}S.defaultProps={children:null,className:null,scrollLayerClassName:null,closeButtonMessage:null,containerClassName:null,contentClassName:null,lightCloseButton:!1,isClosedClassName:g,isOpen:!1,onClose:null,usePortal:!1};const{bool:E,func:T,node:P,string:C}=a(),I=(0,c.j4)(S)},7380:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(65043),i=r(65173),o=r.n(i),a=r(98139),s=r.n(a),l=r(18689),c=r(79818);const u="ModalInMobile_root__kifJE",d="ModalInMobile_modalHidden__sh3z2",h="ModalInMobile_modalContainer__hEI1m marketplaceModalInMobileBaseStyles",p="ModalInMobile_modalContent__K5C6+";var f=r(70579);class m extends n.Component{constructor(e){super(e),this.state={isOpen:!1},this.handleClose=this.handleClose.bind(this),this.changeOpenStatus=this.changeOpenStatus.bind(this)}componentDidMount(){const{isModalOpenOnMobile:e,showAsModalMaxWidth:t,viewport:r}=this.props;r.width<=t&&e&&this.changeOpenStatus(e)}componentDidUpdate(){const{isModalOpenOnMobile:e,showAsModalMaxWidth:t,viewport:r}=this.props,n=e!==this.state.isOpen,i=r.width<=t;n&&(i||!i&&!e)&&this.changeOpenStatus(e)}changeOpenStatus(e){this.setState({isOpen:e})}handleClose(e){const{onClose:t}=this.props;this.changeOpenStatus(!1),t&&t(e)}render(){const{children:e,className:t,containerClassName:r,id:n,showAsModalMaxWidth:i,closeButtonMessage:o,onManageDisableScrolling:a,viewport:c,usePortal:m}=this.props,g=c.width<=i,_=this.state.isOpen,y=_&&g,v=g&&!_?d:null,b=s()(u,t);return(0,f.jsx)(l.aF,{className:b,containerClassName:r||h,contentClassName:p,id:n,isOpen:y,isClosedClassName:v,onClose:this.handleClose,closeButtonMessage:o,onManageDisableScrolling:a,usePortal:m&&y,children:e})}}m.defaultProps={children:null,className:"",containerClassName:null,onClose:null,showAsModalMaxWidth:0,closeButtonMessage:null};const{bool:g,func:_,node:y,number:v,string:b,shape:x}=o(),w=(0,c.LK)(m)},11114:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(89379),i=(r(65043),r(62582)),o=r(91688),a=r(98139),s=r.n(a),l=r(76732),c=r(57302),u=r(70579);const d=e=>{const t=(0,l.Z6)(),{name:r,params:o,title:a}=e,d=()=>{const{component:e}=(0,c.yY)(r,t);e.preload&&e.preload()},{to:h,children:p}=e,f=(0,c.pL)(r,t,o),{match:m}=e,g=m.url&&m.url===f,{className:_,style:y,activeClassName:v}=e,b={className:s()(_,{[v]:g}),style:y,title:a};return(0,u.jsx)(i.N_,(0,n.A)((0,n.A)({onMouseOver:d,onTouchStart:d,to:(0,n.A)({pathname:f},h)},b),{},{children:p}))};d.defaultProps={params:{},to:{},children:null,className:"",style:{},activeClassName:"NamedLink_active",title:null,match:{}},d.displayName="NamedLink";const h=(0,o.y)(d);h.displayName="NamedLink";const p=h},5139:(e,t,r)=>{"use strict";r.d(t,{A:()=>$});var n=r(65043),i=r(98139),o=r.n(i),a=r(24141),s=r(44356),l=r(89379),c=r(2376);const u="OrderBreakdown_root__KysVD",d="OrderBreakdown_lineItem__M7UyK h4",h="OrderBreakdown_bookingPeriod__BXqaQ",p="OrderBreakdown_bookingPeriodSectionLeft__SQOdT",f="OrderBreakdown_bookingPeriodSectionRight__C4AmI",m="OrderBreakdown_dayLabel__O1ySL textSmall",g="OrderBreakdown_dayInfo__Vq85I p",_="OrderBreakdown_totalPrice__G78J1 p",y="OrderBreakdown_subTotalLineItem__4zQ++ h4",v="OrderBreakdown_lineItemTotal__icyu1 h4",b="OrderBreakdown_itemLabel__o-lUL marketplaceSmallFontStyles",x="OrderBreakdown_itemValue__k0jJ7 marketplaceSmallFontStyles",w="OrderBreakdown_totalDivider__N6131",A="OrderBreakdown_totalLabel__v-CHD marketplaceSmallFontStyles",S="OrderBreakdown_feeInfo__lM9F0 marketplaceTinyFontStyles";var E=r(70579);const T=e=>{const{startDate:t,endDate:r,dateType:n,timeZone:i}=e,o=i?{timeZone:i}:null,c=n===s.bC?{weekday:"long"}:{weekday:"short",hour:"numeric",minute:"numeric"},u={month:"short",day:"numeric"};return(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:h,children:[(0,E.jsxs)("div",{className:p,children:[(0,E.jsx)("div",{className:m,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.bookingStart"})}),(0,E.jsx)("div",{className:g,children:(0,E.jsx)(a.XU,(0,l.A)((0,l.A)({value:t},c),o))}),(0,E.jsx)("div",{className:b,children:(0,E.jsx)(a.XU,(0,l.A)((0,l.A)({value:t},u),o))})]}),(0,E.jsxs)("div",{className:f,children:[(0,E.jsx)("div",{className:m,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.bookingEnd"})}),(0,E.jsx)("div",{className:g,children:(0,E.jsx)(a.XU,(0,l.A)((0,l.A)({value:r},c),o))}),(0,E.jsx)("div",{className:b,children:(0,E.jsx)(a.XU,(0,l.A)((0,l.A)({value:r},u),o))})]})]})})},P=e=>{const{booking:t,code:r,dateType:n,timeZone:i}=e;if(!t)return null;const{start:o,end:a,displayStart:l,displayEnd:u}=t.attributes,h=l||o,p=u||a,f=r===s.se,m=r===s.er,g=f||m?p:(0,c.YP)(p,1,"days");return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:d,children:(0,E.jsx)(T,{startDate:h,endDate:g,dateType:n,timeZone:i})}),(0,E.jsx)("hr",{className:w})]})};P.defaultProps={booking:null,dateType:null};const C=P;var I=r(61254);const M=e=>{const{lineItems:t,code:r,intl:n}=e,i=r===s.se,o=r===s.Mi,l=r===s.er,c=i?"OrderBreakdown.baseUnitNight":o?"OrderBreakdown.baseUnitDay":l?"OrderBreakdown.baseUnitHour":"OrderBreakdown.baseUnitQuantity",u=t.find((e=>e.code===r&&!e.reversal)),h=u?u.quantity.toString():null,p=u?(0,I.up)(n,u.unitPrice):null,f=u?(0,I.up)(n,u.lineTotal):null;return h&&f?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:c,values:{unitPrice:p,quantity:h}})}),(0,E.jsx)("span",{className:x,children:f})]}):null};var k=r(77217),O=r(55346);const{Money:R}=O.gK,L=e=>e.filter((e=>{return!((t=e).code===s.zU||t.code===s.SI)&&!e.reversal;var t})),D=e=>{const{lineItems:t,code:r,userRole:n,intl:i,marketplaceCurrency:o}=e,l=t.find((e=>e.code===r&&e.reversal)),c=((e,t)=>{let r=null;return"customer"===t?r=e.find((e=>e.code===s.SI)):"provider"===t&&(r=e.find((e=>e.code===s.zU))),!!r}
2)(t,n)||l,u=L(t),d=((e,t)=>{const r=e.reduce(((e,t)=>e.plus(t.lineTotal.amount)),new k.A(0)),n=e[0]?e[0].lineTotal.currency:t;return new R(r,n)})(u,o),h=u.length>0?(0,I.up)(i,d):null;return h&&c?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("hr",{className:w}),(0,E.jsxs)("div",{className:y,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.subTotal"})}),(0,E.jsx)("span",{className:x,children:h})]})]}):null},N=e=>{const{lineItems:t,intl:r}=e,n=t.find((e=>e.code===s.RI&&!e.reversal));return n?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.shippingFee"})}),(0,E.jsx)("span",{className:x,children:(0,I.up)(r,n.lineTotal)})]}):null},F=e=>{const{lineItems:t,intl:r}=e,n=t.find((e=>e.code===s.X6&&!e.reversal));return n?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.pickupFee"})}),(0,E.jsx)("span",{className:x,children:(0,I.up)(r,n.lineTotal)})]}):null},{Money:z}=O.gK,j=e=>{const{lineItems:t,isCustomer:r,marketplaceName:n,intl:i}=e,o=t.find((e=>e.code===s.SI&&!e.reversal));let l=null;if(r&&o){if(!((c=o)&&c.lineTotal instanceof z&&c.lineTotal.amount>=0))throw console.error("invalid commission line item:",o),new Error("Commission should be present and the value should be zero or positive");const e=o.lineTotal,t=e?(0,I.up)(i,e):null;l=(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.commission",values:{marketplaceName:n,role:"customer"}})}),(0,E.jsx)("span",{className:x,children:t})]})}var c;return l},B=e=>{const{lineItems:t,isCustomer:r,marketplaceName:n,intl:i}=e,o=t.find((e=>e.code===s.SI&&e.reversal));return r&&o?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.refundCustomerFee",values:{marketplaceName:n}})}),(0,E.jsx)("span",{className:x,children:(0,I.up)(i,o.lineTotal)})]}):null},{Money:U}=O.gK,V=e=>{const{lineItems:t,isProvider:r,marketplaceName:n,intl:i}=e,o=t.find((e=>e.code===s.zU&&!e.reversal));let l=null;if(r&&o){if(!((c=o).lineTotal instanceof U&&c.lineTotal.amount<=0))throw console.error("invalid commission line item:",o),new Error("Commission should be present and the value should be zero or negative");const e=o.lineTotal,t=e?(0,I.up)(i,e):null;l=(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.commission",values:{marketplaceName:n,role:"provider"}})}),(0,E.jsx)("span",{className:x,children:t})]})}var c;return l},q=e=>{const{lineItems:t,isProvider:r,marketplaceName:n,intl:i}=e,o=t.find((e=>e.code===s.zU&&e.reversal));return r&&o?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.refundProviderFee",values:{marketplaceName:n}})}),(0,E.jsx)("span",{className:x,children:(0,I.up)(i,o.lineTotal)})]}):null},{Money:H}=O.gK,G=e=>e.filter((e=>{return!((t=e).code===s.zU||t.code===s.SI)&&e.reversal;var t})),W=e=>{const{lineItems:t,intl:r,marketplaceCurrency:n}=e,i=G(t),o=((e,t)=>{const r=e.reduce(((e,t)=>e.plus(t.lineTotal.amount)),new k.A(0)),n=e[0]?e[0].lineTotal.currency:t;return new H(r,n)})(i,n),s=i.length>0?(0,I.up)(r,o):null;return s?(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.refund"})}),(0,E.jsx)("span",{className:x,children:s})]}):null};var Y=r(89413);const Z=e=>{var t,r,n;const{transaction:i,isProvider:o,intl:s}=e,l=(0,Y.GN)(null===i||void 0===i||null===(t=i.attributes)||void 0===t?void 0:t.processName);if(!l)return null;const c=(0,Y.wz)(l),u=c.isCompleted(null===i||void 0===i||null===(r=i.attributes)||void 0===r?void 0:r.lastTransition),d=c.isRefunded(null===i||void 0===i||null===(n=i.attributes)||void 0===n?void 0:n.lastTransition);let h="OrderBreakdown.providerTotalDefault";u?h="OrderBreakdown.providerTotalReceived":d&&(h="OrderBreakdown.providerTotalRefunded");const p=o?(0,E.jsx)(a.sA,{id:h}):(0,E.jsx)(a.sA,{id:"OrderBreakdown.total"}),f=o?i.attributes.payoutTotal:i.attributes.payinTotal,m=(0,I.up)(s,f);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("hr",{className:w}),(0,E.jsxs)("div",{className:v,children:[(0,E.jsx)("div",{className:A,children:p}),(0,E.jsx)("div",{className:_,children:m})]})]})};var K=r(41233);const X=e=>{const{lineItems:t,isProvider:r,intl:i}=e,o=t.filter((e=>-1===s.Uz.indexOf(e.code)&&!e.reversal)),a=r?o.filter((e=>e.includeFor.includes("provider"))):o.filter((e=>e.includeFor.includes("customer")));return a.length>0?(0,E.jsx)(n.Fragment,{children:a.map(((e,t)=>{const r=e.quantity,n=r&&r>1?"".concat((0,K.e0)(e.code)," x ").concat(r):(0,K.e0)(e.code),o=(0,I.up)(i,e.lineTotal);return(0,E.jsxs)("div",{className:d,children:[(0,E.jsx)("span",{className:b,children:n}),(0,E.jsx)("span",{className:x,children:o})]},"".concat(t,"-item.code"))}))}):null},J=e=>{const{rootClassName:t,className:r,userRole:n,transaction:i,booking:l,intl:c,dateType:d,timeZone:h,currency:p,marketplaceName:f}=e,m="customer"===n,g="provider"===n,_=(i.attributes.lineItems||[]).filter((e=>e.includeFor.includes(n))),y=_.find((e=>s.gB.includes(e.code)&&!e.reversal)),v=null===y||void 0===y?void 0:y.code,b=_.find((e=>{const t=m&&e.code===s.SI,r=g&&e.code===s.zU;return(t||r)&&!e.reversal})),x=o()(t||u,r);return(0,E.jsxs)("div",{className:x,children:[(0,E.jsx)(C,{booking:l,code:v,dateType:d,timeZone:h}),(0,E.jsx)(M,{lineItems:_,code:v,intl:c}),(0,E.jsx)(N,{lineItems:_,intl:c}),(0,E.jsx)(F,{lineItems:_,intl:c}),(0,E.jsx)(X,{lineItems:_,isProvider:g,intl:c}),(0,E.jsx)(D,{lineItems:_,code:v,userRole:n,intl:c,marketplaceCurrency:p}),(0,E.jsx)(W,{lineItems:_,intl:c,marketplaceCurrency:p}),(0,E.jsx)(j,{lineItems:_,isCustomer:m,marketplaceName:f,intl:c}),(0,E.jsx)(B,{lineItems:_,isCustomer:m,marketplaceName:f,intl:c}),(0,E.jsx)(V,{lineItems:_,isProvider:g,marketplaceName:f,intl:c}),(0,E.jsx)(q,{lineItems:_,isProvider:g,marketplaceName:f,intl:c}),(0,E.jsx)(Z,{transaction:i,isProvider:g,intl:c}),b?(0,E.jsx)("span",{className:S,children:(0,E.jsx)(a.sA,{id:"OrderBreakdown.commissionFeeNote"})}):null]})};J.defaultProps={rootClassName:null,className:null,booking:null,dateType:null};const Q=(0,a.j4)(J);Q.displayName="OrderBreakdown";const $=Q},34952:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});
2var n=r(89379),i=(r(65043),r(50805)),o=r(91688),a=r(56356),s=r(98139),l=r.n(s),c=r(1488),u=r.n(c),d=r(24141),h=r(86770),p=r(44356),f=r(61254),m=r(32423),g=r(41233),_=r(5208),y=r(89413),v=r(18689),b=r(23220),x=r(70579);const w=(0,a.Ay)((()=>Promise.all([r.e(3536),r.e(6915),r.e(3769)]).then(r.bind(r,21150)))),A=(0,a.Ay)((()=>r.e(6869).then(r.bind(r,56544)))),S=(0,a.Ay)((()=>r.e(4894).then(r.bind(r,20485)))),E=(0,a.Ay)((()=>r.e(566).then(r.bind(r,69602)))),T=new Date,P=(e,t,r,i,o,a)=>r?()=>i({}):()=>((e,t,r,i)=>{if(e||t)window.scrollTo(0,0);else{const{pathname:e,search:t,state:o}=i,a="?".concat((0,m.As)((0,n.A)((0,n.A)({},(0,m.qg)(t)),{},{orderOpen:!0})));r.push("".concat(e).concat(a),o)}})(e,t,o,a),C={month:"short",day:"numeric",weekday:"short"},I=e=>{const{price:t,publicData:r,validListingTypes:n,intl:i,marketplaceCurrency:o,showCurrencyMismatch:a=!1}=e,{listingType:s,unitType:l}=r||{},c=n.find((e=>e.listingType===s));if(!(0,h.OX)(c)||!t)return null;const{formattedPrice:u,priceTitle:p}=((e,t,r)=>{if(e&&e.currency===t){const t=(0,f.up)(r,e);return{formattedPrice:t,priceTitle:t}}return e?{formattedPrice:"(".concat(e.currency,")"),priceTitle:"Unsupported currency (".concat(e.currency,")")}:{}})(t,o,i);return a?(0,x.jsxs)("div",{className:b.A.priceContainerInCTA,children:[(0,x.jsx)("div",{className:b.A.priceValue,title:p,children:u}),(0,x.jsx)("div",{className:b.A.perUnitInCTA,children:(0,x.jsx)(d.sA,{id:"OrderPanel.perUnit",values:{unitType:l}})})]}):(0,x.jsxs)("div",{className:b.A.priceContainer,children:[(0,x.jsx)("p",{className:b.A.price,children:(0,f.up)(i,t)}),(0,x.jsx)("div",{className:b.A.perUnit,children:(0,x.jsx)(d.sA,{id:"OrderPanel.perUnit",values:{unitType:l}})})]})},M=e=>{var t,r,n,i,o,a,s,c,f,M,k,O;const{rootClassName:R,className:L,titleClassName:D,listing:N,validListingTypes:F,lineItemUnitType:z,isOwnListing:j,onSubmit:B,title:U,titleDesktop:V,author:q,authorLink:H,onManageDisableScrolling:G,onFetchTimeSlots:W,monthlyTimeSlots:Y,history:Z,location:K,intl:X,onFetchTransactionLineItems:J,onContactUser:Q,lineItems:$,marketplaceCurrency:ee,dayCountAvailableForBooking:te,marketplaceName:re,fetchLineItemsInProgress:ne,fetchLineItemsError:ie,payoutDetailsWarning:oe,price:ae,pricePerHour:se,duration:le,serviceName:ce}=e,ue=(null===N||void 0===N||null===(t=N.attributes)||void 0===t?void 0:t.publicData)||{},{listingType:de,unitType:he,transactionProcessAlias:pe=""}=ue||{},fe=(0,y.GN)(pe.split("/")[0]),me=(y.Gd,fe===y.Gd),ge="Yes"===(null===q||void 0===q||null===(r=q.attributes)||void 0===r||null===(n=r.profile)||void 0===n||null===(i=n.publicData)||void 0===i?void 0:i.Acuity_yes_no),_e=me||ge&&(0,y.zn)(fe),ye=_e?ae:se,ve=z||"line-item/".concat(he),be=!_e&&!ye,xe=()=>(0,x.jsx)("p",{className:b.A.error,children:(0,x.jsx)(d.sA,{id:"OrderPanel.listingPriceMissing"})}),we=!_e&&(null===ye||void 0===ye?void 0:ye.currency)!==ee,Ae=()=>(0,x.jsx)("p",{className:b.A.error,children:(0,x.jsx)(d.sA,{id:"OrderPanel.listingCurrencyInvalid"})}),Se=null===N||void 0===N||null===(o=N.attributes)||void 0===o||null===(a=o.availabilityPlan)||void 0===a?void 0:a.timezone,Ee=(null===N||void 0===N||null===(s=N.attributes)||void 0===s?void 0:s.state)===p.iz,Te=(0,y.zn)(fe),Pe=Te&&[p.er].includes(ve)&&!Ee&&Se,Ce=Te&&[p.Mi,p.se].includes(ve)&&!Ee&&Se,Ie=(0,y.Le)(fe),Me=null===(c=N.currentStock)||void 0===c||null===(f=c.attributes)||void 0===f?void 0:f.quantity,ke=Ie&&ve===p.jI&&0===Me,Oe=Ie&&"number"===typeof Me,Re=(0,y.ot)().map((e=>e.name)).includes(fe),{pickupEnabled:Le,shippingEnabled:De}=(null===N||void 0===N||null===(M=N.attributes)||void 0===M?void 0:M.publicData)||{},Ne=F.find((e=>e.listingType===de)),Fe=(0,h.Zr)(Ne),ze=(0,h.XT)(Ne),je=[p.Vg,p.sX].includes(null===Ne||void 0===Ne?void 0:Ne.stockType),Be=N.id&&Ee,Ue=!!(0,m.qg)(K.search).orderOpen,Ve=Be?X.formatMessage({id:"OrderPanel.subTitleClosedListing"}):null,qe=null===q||void 0===q||null===(k=q.attributes)||void 0===k||null===(O=k.profile)||void 0===O?void 0:O.publicData,He="mobilestylist"===(null===qe||void 0===qe?void 0:qe.stylisttype)?(0,_.w)(null===qe||void 0===qe?void 0:qe.traveltime):null,Ge=(0,g._l)(q,""),We=l()(R||b.A.root,L),Ye=l()(D||b.A.orderTitle),Ze=Number(le),Ke=Number.isFinite(Ze)?60*Ze*60*1e3:0;return ye||_e?(0,x.jsxs)("div",{className:We,children:[(0,x.jsxs)(v.pV,{containerClassName:b.A.modalContainer,id:"OrderFormInModal",isModalOpenOnMobile:Ue,onClose:()=>((e,t)=>{const{pathname:r,search:n,state:i}=t,o=u()((0,m.qg)(n),"orderOpen"),a="?".concat((0,m.As)(o));e.push("".concat(r).concat(a),i)})(Z,K),showAsModalMaxWidth:1023,onManageDisableScrolling:G,usePortal:!0,children:[(0,x.jsx)("div",{className:b.A.modalHeading,children:(0,x.jsx)(v.H1,{className:b.A.heading,children:U})}
2),(0,x.jsxs)("div",{className:b.A.orderHeading,children:[V||(0,x.jsx)(v.H2,{className:Ye,children:U}),ce&&(0,x.jsx)(v.H2,{className:Ye,children:ce}),Ve?(0,x.jsx)("div",{className:b.A.orderHelp,children:Ve}):null]}),(0,x.jsx)(I,{price:ye,publicData:ue,validListingTypes:F,intl:X,marketplaceCurrency:ee}),(0,x.jsxs)("div",{className:b.A.author,children:[(0,x.jsx)(v.Bz,{user:q,className:b.A.providerAvatar}),(0,x.jsx)("span",{className:b.A.providerNameLinked,children:(0,x.jsx)(d.sA,{id:"OrderPanel.author",values:{name:H}})}),(0,x.jsx)("span",{className:b.A.providerNamePlain,children:(0,x.jsx)(d.sA,{id:"OrderPanel.author",values:{name:Ge}})})]}),be?(0,x.jsx)(xe,{}):we?(0,x.jsx)(Ae,{}):_e?(0,x.jsx)(S,{formId:"OrderPanelInquiryForm",onSubmit:B}):Pe?(0,x.jsx)(w,{className:b.A.bookingForm,formId:"OrderPanelBookingTimeForm",lineItemUnitType:ve,onSubmit:B,price:ye,serviceDuration:Ke,mobileStylistTravelTime:He,marketplaceCurrency:ee,dayCountAvailableForBooking:te,listingId:N.id,isOwnListing:j,monthlyTimeSlots:Y,onFetchTimeSlots:W,startDatePlaceholder:X.formatDate(T,C),endDatePlaceholder:X.formatDate(T,C),timeZone:Se,marketplaceName:re,onFetchTransactionLineItems:J,lineItems:$,fetchLineItemsInProgress:ne,fetchLineItemsError:ie,payoutDetailsWarning:oe}):Ce?(0,x.jsx)(A,{className:b.A.bookingForm,formId:"OrderPanelBookingDatesForm",lineItemUnitType:ve,onSubmit:B,price:ye,marketplaceCurrency:ee,dayCountAvailableForBooking:te,listingId:N.id,isOwnListing:j,monthlyTimeSlots:Y,onFetchTimeSlots:W,timeZone:Se,marketplaceName:re,onFetchTransactionLineItems:J,lineItems:$,fetchLineItemsInProgress:ne,fetchLineItemsError:ie,payoutDetailsWarning:oe}):Oe?(0,x.jsx)(E,{formId:"OrderPanelProductOrderForm",onSubmit:B,price:ye,marketplaceCurrency:ee,currentStock:Me,allowOrdersOfMultipleItems:je,pickupEnabled:Le&&ze,shippingEnabled:De&&Fe,displayDeliveryMethod:ze||Fe,listingId:N.id,isOwnListing:j,marketplaceName:re,onFetchTransactionLineItems:J,onContactUser:Q,lineItems:$,fetchLineItemsInProgress:ne,fetchLineItemsError:ie,payoutDetailsWarning:oe}):_e?(0,x.jsx)(S,{formId:"OrderPanelInquiryForm",onSubmit:B}):Re?null:(0,x.jsx)("p",{className:b.A.errorSidebar,children:(0,x.jsx)(d.sA,{id:"OrderPanel.unknownTransactionProcess"})})]}),(0,x.jsxs)("div",{className:b.A.openOrderForm,children:[(0,x.jsx)(I,{price:ye,publicData:ue,validListingTypes:F,intl:X,marketplaceCurrency:ee,showCurrencyMismatch:!0}),Ee?(0,x.jsx)("div",{className:b.A.closedListingButton,children:(0,x.jsx)(d.sA,{id:"OrderPanel.closedListingButtonText"})}):(0,x.jsx)(v.jn,{onClick:P(j,Ee,_e,B,Z,K),disabled:ke,children:_e?(0,x.jsx)(d.sA,{id:"OrderPanel.ctaButtonMessageInquiry"}):Te?(0,x.jsx)(d.sA,{id:"OrderPanel.ctaButtonMessageBooking"}):ke?(0,x.jsx)(d.sA,{id:"OrderPanel.ctaButtonMessageNoStock"}):Ie?(0,x.jsx)(d.sA,{id:"OrderPanel.ctaButtonMessagePurchase"}):(0,x.jsx)(d.sA,{id:"OrderPanel.ctaButtonMessageInquiry"})})]})]}):null};M.defaultProps={rootClassName:null,className:null,titleClassName:null,isOwnListing:!1,authorLink:null,payoutDetailsWarning:null,titleDesktop:null,subTitle:null,monthlyTimeSlots:null,lineItems:null,fetchLineItemsError:null,price:null,pricePerHour:null,duration:null,serviceName:null};const k=(0,i.Zz)(o.y,d.j4)(M)},77800:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(65043),i=r(98139),o=r.n(i);const a="OutsideClickHandler_root__UzuFm";var s=r(70579);class l extends n.Component{constructor(e){super(e),this.handleClick=this.handleClick.bind(this)}componentDidMount(){document.addEventListener("mousedown",this.handleClick,!1)}componentWillUnmount(){document.removeEventListener("mousedown",this.handleClick,!1)}handleClick(e){this.node.contains(e.target)||this.props.onOutsideClick()}render(){const{rootClassName:e,className:t,children:r}=this.props,n=o()(e||a,t);return(0,s.jsx)("div",{className:n,ref:e=>this.node=e,children:r})}}l.defaultProps={rootClassName:null,className:null}},62094:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(89379),i=(r(65043),r(65173)),o=r.n(i),a=r(24141),s=r(98139),l=r.n(s),c=r(96604),u=r.n(c),d=r(18689),h=r(32423);r(44356);const p={root:"PaginationLinks_root__7-ZsX",prev:"PaginationLinks_prev__PM+jR",next:"PaginationLinks_next__lnJbD",arrowIcon:"PaginationLinks_arrowIcon__fkbLK",disabled:"PaginationLinks_disabled__FAjCZ",pageNumberList:"PaginationLinks_pageNumberList__VRo53",pageNumberList1Items:"PaginationLinks_pageNumberList1Items__lgd7I",pageNumberList2Items:"PaginationLinks_pageNumberList2Items__Xw4a4",pageNumberList3Items:"PaginationLinks_pageNumberList3Items__skOF-",pageNumberList4Items:"PaginationLinks_pageNumberList4Items__JPS6R",pageNumberList5Items:"PaginationLinks_pageNumberList5Items__mMZBl",pageNumberList6Items:"PaginationLinks_pageNumberList6Items__vyDbN",pageNumberList7Items:"PaginationLinks_pageNumberList7Items__4Fny7",toPageLink:"PaginationLinks_toPageLink__-KLVC",currentPage:"PaginationLinks_currentPage__eRhK3",paginationGap:"PaginationLinks_paginationGap__qCaA1"};var f=r(70579);const{string:m,object:g}=o();let _=0;const y=e=>{const{className:t,rootClassName:r,intl:i,pageName:o,pagePathParams:a,pageSearchParams:s,pagination:c}=e,m=l()(r||p.root,t),{page:g,totalPages:y,paginationLimit:v,paginationUnsupported:b}=c,x=b?1:!!v?v:y,w=g>1?g-1:null,A=g<x?g+1:null,S=(0,n.A)((0,n.A)({},s),{},{page:w}),E=(0,n.A)((0,n.A)({},s),{},{page:A}),T=(0,f.jsx)(d.GF,{className:p.prev,name:o,params:a,to:{search:(0,h.As)(S)},title:i.formatMessage({id:"PaginationLinks.previous"}),children:(0,f.jsx)(d.N1,{direction:"left",size:"big",rootClassName:p.arrowIcon})}),P=(0,f.jsx)("div",{className:p.prev,children:(0,f.jsx)(d.N1,{direction:"left",size:"big",rootClassName:l()(p.arrowIcon,p.disabled)})}),C=(0,f.jsx)(d.GF,{className:p.next,name:o,params:a,to:{search:(0,h.As)(E)},title:i.formatMessage({id:"PaginationLinks.next"}),children:(0,f.jsx)(d.N1,{direction:"right",size:"big",rootClassName:p.arrowIcon})}),I=(0,f.jsx)("div",{className:p.next,children:(0,f.jsx)(d.N1,{direction:"right",size:"big",rootClassName:l()(p.arrowIcon,p.disabled)})}),M=((e,t)=>u()(1,t+1).filter((r=>1===r||Math.abs(r-e)<=1||r===t)).reduce(((e,t)=>1===t||e[e.length-1]+1===t?e.concat([t]):e.concat(["\u2026",t])),[]))(g,x).map((e=>{const t=e===g,r=l()(p.toPageLink,{[p.currentPage]:t});return"number"===typeof e?(0,f.jsx)(d.GF,{className:r,name:o,params:a,to:{search:(0,h.As)((0,n.A)((0,n.A)({},s),{},{page:e}))},title:i.formatMessage({id:"PaginationLinks.toPage"},{page:e}),children:e},e):(0,f.jsx)("span",{className:p.paginationGap,children:e},"pagination_gap_".concat((_+=1,_)))})),k=l()(p.pageNumberList,p["pageNumberList".concat(M.length,"Items")]);return(0,f.jsxs)("nav",{className:m,children:[w?T:P,(0,f.jsx)("div",{className:k,children:M}),A?C:I]})};y.defaultProps={className:"",rootClassName:"",pagePathParams:{},pageSearchParams:{}};const v=(0,a.j4)(y)},96324:(e,t,r)=>{"use strict";r.d(t,{A:()=>I});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o),s=r(84048),l=r.n(s);const c="PropertyGroup_root__U2eyN",u="PropertyGroup_twoColumns__VAZgl",d="PropertyGroup_item__KJ9zY",h="PropertyGroup_checkIcon__KZuas",p="PropertyGroup_hidden__a+7ST",f="PropertyGroup_marketplaceFill__hXgdn",m="PropertyGroup_iconWrapper__FnGMO",g="PropertyGroup_labelWrapper__ursF-",_="PropertyGroup_selectedLabel__UXUGS marketplaceBodyFontStyles",y="PropertyGroup_notSelectedLabel__pPTtK marketplaceBodyFontStyles";var v=r(70579);const b=(e,t)=>e.map((e=>({key:e.key,label:e.label,isSelected:l()(t,e.key)}))),x=e=>{const t=e.isVisible?h:a()(h,p);return(0,v.jsx)("svg",{width:"9",height:"9",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,v.jsx)("path",{className:f,d:"M2.636621 7.7824771L.3573694 5.6447948c-.4764924-.4739011-.4764924-1.2418639 0-1.7181952.4777142-.473901 1.251098-.473901 1.7288122 0l1.260291 1.1254783L6.1721653.505847C6.565577-.0373166 7.326743-.1636902 7.8777637.227582c.5473554.3912721.6731983 1.150729.2797866 1.6951076L4.4924979 7.631801c-.2199195.306213-.5803433.5067096-.9920816.5067096-.3225487 0-.6328797-.1263736-.8637952-.3560334z",fillRule:"evenodd"})})},w=e=>{const{label:t,isSelected:r}=e,n=r?_:y;return(0,v.jsxs)("li",{className:d,children:[(0,v.jsx)("span",{className:m,children:(0,v.jsx)(x,{isVisible:r})}),(0,v.jsx)("div",{className:g,children:(0,v.jsx)("span",{className:n,children:t})})]})},A=e=>{const{rootClassName:t,className:r,id:n,options:i,selectedOptions:o,twoColumns:s,showUnselectedOptions:l}=e,d=a()(t||c,r),h=s?a()(d,u):d,p=l?b(i,o):b(i,o).filter((e=>e.isSelected));return(0,v.jsx)("ul",{className:h,children:p.map((e=>(0,v.jsx)(w,{label:e.label,isSelected:e.isSelected},"".concat(n,".").concat(e.key))))})};A.defaultProps={rootClassName:null,className:null,selectedOptions:[],twoColumns:!1};const{arrayOf:S,bool:E,node:T,shape:P,string:C}=i(),I=A},97728:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});
2var n=r(89379),i=r(80045),o=r(65043),a=r(98139),s=r.n(a),l=r(79818);const c="Handle_rootTouchBuffer__AZNE4",u="Handle_visibleHandle__PUvS4",d="Handle_dragged__jeLu6";var h=r(70579);class p extends o.Component{constructor(e){super(e),this.state={dragging:!1,relativePos:null},this.handleRef=o.createRef(),this._isMounted=!1,this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onStart=this.onStart.bind(this),this.onMove=this.onMove.bind(this),this.onEnd=this.onEnd.bind(this)}componentDidMount(){this._isMounted=!0,this.onMouseMoveListener=window.addEventListener("mousemove",this.onMouseMove,!1),this.onMouseUpListener=window.addEventListener("mouseup",this.onMouseUp,!1)}componentWillUnmount(){this._isMounted=!1,window.removeEventListener("mousemove",this.onMouseMoveListener,!1),window.removeEventListener("mouseup",this.onMouseUpListener,!1)}onMouseDown(e){e.stopPropagation(),e.preventDefault(),this.onStart(e.pageX)}onMouseMove(e){this.state.dragging&&this.onMove(e.pageX)}onMouseUp(e){e.stopPropagation(),e.preventDefault(),this.onEnd()}onTouchStart(e){e.stopPropagation(),e.preventDefault();const t=e.touches[0].pageX;this.onStart(t)}onTouchMove(e){this.state.dragging&&this.onMove(e.touches[0].pageX)}onTouchEnd(e){e.stopPropagation(),e.preventDefault(),this.onEnd()}onStart(e){const{offsetLeft:t,offsetWidth:r}=this.handleRef.current;this.setState({dragging:!0,relativePos:e-t-r/2}),this.props.changeActive()}onMove(e){const{min:t,max:r,positionToValue:n}=this.props,i=n(e-this.state.relativePos),o=i<t?t:i>r?r:i;this.props.onChange(o)}onEnd(){this._isMounted&&this.setState({dragging:!1})}render(){const{rootClassName:e,className:t,value:r,valueToPosition:n}=this.props,i=n(r),o=s()(e||c,t);return(0,h.jsx)("div",{className:o,ref:this.handleRef,style:{left:"".concat(i,"px")},onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,role:"button",children:(0,h.jsx)("div",{className:s()(u,{[d]:this.state.dragging})})})}}p.defaultProps={rootClassName:null,className:null};const f=p,m="Track_root__1M+ju",g="Track_track__WgmqE",_="Track_range__q5dTw",y=e=>{const{rootClassName:t,className:r,children:n,handles:i,valueToPosition:o}=e,a=e=>o(i[e]),l=s()(t||m,r);return(0,h.jsxs)("div",{className:l,children:[(0,h.jsx)("div",{className:g}),i.reduce(((e,t,r)=>r<i.length-1?[...e,(0,h.jsx)("div",{className:_,style:{left:"".concat(o(t),"px"),width:"".concat(a(r+1)-o(t),"px")}},"range_".concat(r,"-").concat(r+1))]:e),[]),n]})};y.defaultProps={rootClassName:null,className:null,children:null,handles:[]};const v=y,b="RangeSlider_root__qRb1L",x="RangeSlider_activeHandle__asZpE",w=["rootClassName","className"];class A extends o.Component{constructor(e){super(e);const{min:t,max:r,handles:n}=e;n.forEach(((e,i)=>{if(e<t||e>r||i<n.length-1&&e>n[i+1])throw new Error("RangeSlider error: handles need to be given in ascending order and they need to be within min and max values")})),this.state={activeHandle:0},this.toPosition=this.toPosition.bind(this),this.toValue=this.toValue.bind(this),this.changeActive=this.changeActive.bind(this),this.onChange=this.onChange.bind(this)}toPosition(e){const{dimensions:t,min:r,max:n}=this.props,i=t.width,o=e-r,a=n-r;return Math.round(o/a*i)}toValue(e){const{dimensions:t,min:r,max:n,step:i}=this.props,o=t.width,a=n-r,s=Math.round(e/o*a)+r;return Math.ceil(s/i)*i}changeActive(e){this.setState({activeHandle:e})}onChange(e,t){this.props.onChange(Object.assign([...this.props.handles],{[t]:e}))}render(){const{handles:e,min:t,max:r}=this.props;return(0,h.jsx)(v,{handles:e,valueToPosition:this.toPosition,children:e.map(((n,i)=>{const o=s()({[x]:this.state.activeHandle===i});return(0,h.jsx)(f,{className:o,value:n,min:0===i?t:e[i-1],max:i===e.length-1?r:e[i+1],valueToPosition:this.toPosition,positionToValue:this.toValue,changeActive:()=>this.changeActive(i),onChange:e=>this.onChange(e,i)},i)}))})}}A.defaultProps={min:0,max:1e7,step:1};const S=(0,l.I3)(A),E=e=>{const{rootClassName:t,className:r}=e,o=(0,i.A)(e,w),a=s()(t||b,r);
2return(0,h.jsx)("div",{className:a,children:(0,h.jsx)(S,(0,n.A)({},o))})};E.defaultProps={rootClassName:null,className:null};const T=E},10286:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(89379),i=r(80045),o=(r(65043),r(98139)),a=r.n(o),s=r(24141),l=(r(44356),r(65173)),c=r.n(l),u=r(70579);const d=e=>{const{className:t}=e;return(0,u.jsx)("svg",{className:t,width:"48",height:"49",viewBox:"0 -1 48 49",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,u.jsx)("path",{strokeWidth:"2",strokeLinejoin:"round",d:"M13.6 9.6L24 .8l10.4 8.8z"}),(0,u.jsx)("path",{strokeWidth:"2",d:"M.8 46.4h46.4V9.6H.8z"}),(0,u.jsx)("path",{strokeWidth:"2",d:"M5.6 41.6h36.8V14.4H5.6z"}),(0,u.jsx)("path",{d:"M19.998 31.636l.835-.835a4.035 4.035 0 0 1 2.853-1.183h.693c1.07 0 2.097.426 2.853 1.183l.835.835",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M21.599 23.983a1.009 1.009 0 1 0 0 2.018 1.009 1.009 0 0 0 0-2.018M26.402 23.983a1.009 1.009 0 1 0 0 2.018 1.009 1.009 0 0 0 0-2.018"})]})})},{string:h}=c();d.defaultProps={className:null};const p=d,f="ResponsiveImage_root__mqOdb",m="ResponsiveImage_noImageContainer__r9LiB",g="ResponsiveImage_noImageWrapper__35zWK",_="ResponsiveImage_noImageIcon__vmda0",y="ResponsiveImage_noImageText__6Br1D h6",v=["className","rootClassName","alt","noImageMessage","image","variants","dimensions"],b=e=>{const{className:t,rootClassName:r,alt:o,noImageMessage:l,image:c,variants:d,dimensions:h}=e,b=(0,i.A)(e,v),x=a()(r||f,t);if(null==c||0===d.length){const e=a()(r||f,m,t),n=l||(0,u.jsx)(s.sA,{id:"ResponsiveImage.noImage"});return(0,u.jsx)("div",{className:e,children:(0,u.jsxs)("div",{className:g,children:[(0,u.jsx)(p,{className:_}),(0,u.jsx)("div",{className:y,children:n})]})})}const w=c.attributes.variants,A=d.map((e=>{const t=w[e];return t?"".concat(t.url," ").concat(t.width,"w"):null})).filter((e=>null!=e)).join(", "),S=(0,n.A)({className:x,srcSet:A},b);return(0,u.jsx)("img",(0,n.A)({alt:o},S))};b.defaultProps={className:null,rootClassName:null,image:null,sizes:null,noImageMessage:null};const x=b},54010:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});r(65043);var n=r(65173),i=r.n(n),o=r(98139),a=r.n(o),s=r(18689),l=r(44356),c=r(70579);const u=e=>{const{className:t,rootClassName:r,reviewStarClassName:n,rating:i}=e,o=a()(r,t),u=l.yS;return(0,c.jsx)("span",{className:o,title:"".concat(i,"/5"),children:u.map((e=>(0,c.jsx)(s.Mv,{className:n,isFilled:e<=i},"star-".concat(e))))})};u.defaultProps={rootClassName:null,className:null,reviewStarClassName:null};const{string:d,oneOf:h}=i(),p=u},70621:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});r(65043);var n=r(24141),i=r(98139),o=r.n(i),a=r(18689);r(44356);const s="Reviews_root__SG4Eq",l="Reviews_reviewItem__ax7Fo",c="Reviews_review__sHbuN",u="Reviews_avatar__aE2Wu",d="Reviews_reviewContent__oX1fD textSmall",h="Reviews_reviewInfo__L5-dS h5",p="Reviews_separator__1XKlc",f="Reviews_desktopSeparator__ZAeNU",m="Reviews_mobileReviewRating__75Ozw",g="Reviews_desktopReviewRatingWrapper__GOR-w",_="Reviews_desktopReviewRating__Utb5P",y="Reviews_reviewRatingStar__frR1E";var v=r(70579);const b=e=>{const{review:t,intl:r}=e,n=t.attributes.createdAt,i=r.formatDate(n,{month:"long",year:"numeric"});return(0,v.jsxs)("div",{className:c,children:[(0,v.jsx)(a.eu,{className:u,user:t.author}),(0,v.jsxs)("div",{children:[(0,v.jsx)(a.Un,{rating:t.attributes.rating,className:m,reviewStarClassName:y}),(0,v.jsx)("p",{className:d,children:t.attributes.content}),(0,v.jsxs)("p",{className:h,children:[(0,v.jsx)(a.fs,{user:t.author,intl:r}),(0,v.jsx)("span",{className:p,children:"\u2022"}),i,(0,v.jsx)("span",{className:f,children:"\u2022"}),(0,v.jsx)("span",{className:g,children:(0,v.jsx)(a.Un,{rating:t.attributes.rating,className:_,reviewStarClassName:y})})]})]})]})},x=e=>{const{className:t,rootClassName:r,reviews:n,intl:i}=e,a=o()(r||s,t);return(0,v.jsx)("ul",{className:a,children:n.map((e=>(0,v.jsx)("li",{className:l,children:(0,v.jsx)(b,{review:e,intl:i})},"Review_".concat(e.id.uuid))))})};x.defaultProps={className:null,rootClassName:null,reviews:[]};const w=(0,n.j4)(x)},11360:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(65043),i=r(98139),o=r.n(i),a=r(24141),s=r(18689);const l="IconCard_root__KqlVh";var c=r(70579);const u=e=>{const{className:t,rootClassName:r,brand:n}=e,i=o()(r||l,t);switch(n){case"amex":return(0,c.jsx)("svg",{className:i,height:"16",viewBox:"0 0 24 16",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c.jsx)("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),(0,c.jsx)("path",{d:"M13.764 13.3939V7.6925l10.1476.009v1.575l-1.1729 1.2534 1.1729 1.2648v1.6083H22.039l-.9952-1.0981-.9881 1.1023z",fill:"#fffffe"}),(0,c.jsx)("path",{d:"M14.4418 12.7688V8.3199h3.7723v1.0249h-2.5509v.6957h2.49v1.0078h-2.49v.6833h2.5509v1.0372z",fill:"#016fd0"}),(0,c.jsx)("path",{d:"M18.1953 12.7688l2.0873-2.227L18.1952 8.32h1.6156l1.2755 1.41 1.2791-1.41h1.5462v.035l-2.0429 2.1868 2.0429 2.1639v.0631h-1.5617l-1.2981-1.4242-1.2848 1.4242z",fill:"#016fd0"}),(0,c.jsx)("path",{d:"M14.2373 2.632h2.4461l.8591 1.9508V2.632h3.0199l.5207 1.4615.5226-1.4615h2.3059v5.7013H11.7251z",fill:"#fffffe"}),(0,c.jsxs)("g",{fill:"#016fd0",children:[(0,c.jsx)("path",{d:"M14.7005 3.2514l-1.974 4.4451h1.3539l.3724-.8901h2.018l.372.89
201h1.3877l-1.9658-4.4451zm.1696 2.5574l.592-1.415.5916 1.415z"}),(0,c.jsx)("path",{d:"M18.212 7.6957v-4.445l1.903.0065.9794 2.7327.9856-2.7392h1.8316v4.445l-1.1786.0105V4.6528l-1.1126 3.043h-1.0758L19.409 4.6423v3.0533z"})]})]})});case"diners":return(0,c.jsx)("svg",{className:i,width:"24",height:"16",viewBox:"0 0 24 16",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,c.jsx)("path",{d:"M21.9972 15.75h.0022c.955.0081 1.7387-.7727 1.7506-1.7458V2.0063c-.0038-.4706-.1911-.9201-.5203-1.2495a1.7197 1.7197 0 0 0-1.2325-.5067H2.0006C1.5411.246 1.0986.4283.7703.7568.441 1.0862.2538 1.5357.25 2.0043v11.9894c.0038.4706.1911.9201.5203 1.2495a1.7197 1.7197 0 0 0 1.2325.5067h19.9944zm-.001.5h-.0011.0021-.001z",strokeOpacity:".2",stroke:"#000",strokeWidth:".5",fill:"#FFF"}),(0,c.jsx)("path",{d:"M10.0021 2.0518v-.016h4v.016c3.1354.2294 5.5621 2.8402 5.5621 5.984s-2.4267 5.7546-5.562 5.984v.016h-4v-.016C6.8666 13.7904 4.44 11.1796 4.44 8.0358s2.4267-5.7546 5.5621-5.984z",fill:"#0165AC"}),(0,c.jsx)("path",{d:"M11.6021 11.4278a3.6 3.6 0 0 0 0-6.784v6.784zm-2.4-6.784a3.6 3.6 0 0 0 0 6.784v-6.784zm1.2 8.592c-2.8719 0-5.2-2.3281-5.2-5.2s2.3281-5.2 5.2-5.2 5.2 2.3281 5.2 5.2-2.3281 5.2-5.2 5.2z",fill:"#FFF"})]})});case"discovery":return(0,c.jsx)("svg",{className:i,width:"24",height:"16",viewBox:"0 0 24 16",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,c.jsx)("path",{d:"M21.9972 15.75h.0022c.955.0081 1.7387-.7727 1.7506-1.7458V2.0063c-.0038-.4706-.1911-.9201-.5203-1.2495a1.7197 1.7197 0 0 0-1.2325-.5067H2.0006C1.5411.246 1.0986.4283.7703.7568.441 1.0862.2538 1.5357.25 2.0043v11.9894c.0038.4706.1911.9201.5203 1.2495a1.7197 1.7197 0 0 0 1.2325.5067h19.9944zm-.001.5h-.0011.0021-.001z",strokeOpacity:".2",stroke:"#000",strokeWidth:".5",fill:"#FFF"}),(0,c.jsx)("path",{d:"M12.6124 16h9.3848A1.9862 1.9862 0 0 0 24 14.0302v-2.3586a38.7393 38.7393 0 0 1-11.3876 4.3282z",fill:"#F27712"}),(0,c.jsx)("path",{d:"M23.1724 9.2965H22.32l-.96-1.2662h-.091v1.2662h-.6952V6.1517H21.6c.8028 0 1.2662.331 1.2662.9268 0 .4883-.2896.8028-.811.9021l1.1172 1.3159zm-1.0262-2.1931c0-.3062-.2317-.4635-.662-.4635h-.2152v.9518h.1986c.4469 0 .6786-.1656.6786-.4883zm-4.0055-.9517h1.9696v.5296H18.836v.7035h1.2248v.5379h-1.2248v.8524h1.2744v.5297h-1.9696V6.1517zm-2.2345 3.2275L14.4 6.1434h.7614l.9517 2.1186.96-2.1186h.7448l-1.5227 3.2358h-.389zm-6.298-.0082c-1.0592 0-1.8868-.72-1.8868-1.6552 0-.9104.8441-1.647 1.9034-1.647.298 0 .5462.058.8524.1904v.7283a1.2414 1.2414 0 0 0-.869-.3558c-.662 0-1.1668.48-1.1668 1.084 0 .6373.4965 1.0925 1.2 1.0925.3145 0 .5545-.0993.8358-.3476v.7283c-.3144.1324-.5793.182-.869.182zm-2.102-1.0345c0 .6124-.5048 1.0345-1.2331 1.0345-.5297 0-.9103-.1821-1.2331-.5959l.4552-.389c.1572.2814.422.4221.753.4221.3146 0 .538-.1903.538-.4386 0-.1407-.0662-.2483-.2069-.331a2.88 2.88 0 0 0-.48-.1821c-.6538-.207-.8772-.4304-.8772-.869 0-.513.48-.902 1.109-.902.3972 0 .753.124 1.051.3558l-.3642.4138a.7614.7614 0 0 0-.5627-.2483c-.298 0-.5131.149-.5131.3476 0 .1655.1241.2566.5379.3973.7945.2482 1.0262.48 1.0262.993v-.0082zm-3.418-2.1848h.6952v3.153h-.6951v-3.153zm-2.2344 3.153H.8276v-3.153h1.0262c1.1255 0 1.9034.6455 1.9034 1.5724 0 .4717-.2317.9186-.6372 1.2165-.3476.2483-.7366.3642-1.2745.3642h.0083zm.811-2.3668c-.2317-.1821-.4965-.2483-.9517-.2483h-.1903V8.775h.1903c.4469 0 .7283-.0828.9517-.2483.24-.1986.3807-.4965.3807-.8027 0-.3062-.1407-.5959-.3807-.7862z",fill:"#000"}),(0,c.jsx)("path",{d:"M12.4138 6.0689c-.9104 0-1.6552.7283-1.6552 1.6303 0 .96.7117 1.68 1.6552 1.68.9269 0 1.6552-.7282 1.6552-1.6551 0-.927-.72-1.6552-1.6552-1.6552z",fill:"#F27712"})]})});case"jcb":return(0,c.jsx)("svg",{className:i,height:"16",viewBox:"0 0 23 16",width:"23",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fill:"none",children:[(0,c.jsx)("path",{d:"M.2054 16h4.5178c1.0278 0 2.259-1.1947 2.259-2.1333V0h-4.518C1.4366 0 .2055 1.1947.2055 3.2z",fill:"#047ab1"}),(0,c.jsx)("path",{d:"M2.7692 10.816a9.7709 9.7709 0 0 1-2.5638-.3413V9.3013c.6467.3777 1.386.5909 2.146.6187.8696 0 1.3553-.576 1.3553-1.3653V5.3333h2.146v3.2214c0 1.2586-.7003 2.2613-3.0835 2.2613z",fill:"#fff"}),(0,c.jsx)("path",{d:"M8.1116 16h4.5179c1.0278 0 2.2589-1.1947 2.2589-2.1333V0h-4.5179C9.3427 0 8.1116 1.1947 8.1116 3.2z",fill:"#d42d06"}),(0,c.jsx)("path",{d:"M8.1116 6.08c.6551-.5973 1.7846-.9707 3.6143-.8853.994.0426 2.033.32 2.033.32v1.184c-.5943-.3395-1.2623-.5474-1.954-.608C10.4158 5.9733 9.5687 6.7093 9.5687 8s.8471 2.0267 2.2364 1.92c.692-.066 1.3596-.2774 1.954-.6187v1.1734s-1.0392.288-2.0331.3306c-1.8297.0854-2.9592-.288-3.6143-.8853z",fill:"#fff"}),(0,c.jsx)("path",{d:"M16.0179 16h4.5178c1.0278 0 2.259-1.1947 2.259-2.1333V0h-4.518C17.249 0 16.018 1.1947 16.018 3.2z",fill:"#67b637"}
2),(0,c.jsx)("path",{d:"M21.6652 9.28c0 .8533-.7003 1.3867-1.6377 1.3867h-4.0096V5.3333h3.6481l.2598.0107c.8245.0427 1.4344.5013 1.4344 1.2907 0 .6186-.4179 1.152-1.1746 1.28v.032c.8358.0533 1.4796.5546 1.4796 1.3333zM18.785 6.176a1.0871 1.0871 0 0 0-.1468-.0107H17.283v1.344h1.5021c.2824-.064.5196-.3093.5196-.672 0-.3626-.2372-.608-.5196-.6613zm.1695 2.176a1.0276 1.0276 0 0 0-.1808-.0107H17.283v1.4614h1.4908l.1808-.0214c.2823-.064.5195-.3413.5195-.7146 0-.3734-.2259-.64-.5195-.7147z",fill:"#fff"})]})});case"mastercard":return(0,c.jsx)("svg",{className:i,height:"16",viewBox:"0 0 24 16",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c.jsx)("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),(0,c.jsx)("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),(0,c.jsx)("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),(0,c.jsx)("path",{d:"M12 3.9996c1.2144.9122 2 2.3646 2 4.0004s-.7856 3.0882-2 4.0004C10.7856 11.0882 10 9.6358 10 8s.7856-3.0882 2-4.0004z",fill:"#ff5f00"})]})});case"unionpay":return(0,c.jsx)("svg",{className:i,height:"16",viewBox:"0 0 24 16",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fill:"none",children:[(0,c.jsx)("path",{d:"M4.5459 0h5.7938c.8087 0 1.3117.7257 1.123 1.619L8.7655 14.3675c-.1904.8902-1.0002 1.6165-1.8095 1.6165H1.1627c-.8076 0-1.3118-.7263-1.1231-1.6165L2.7381 1.619C2.9268.7257 3.7361 0 4.546 0",fill:"#dd2423"}),(0,c.jsx)("path",{d:"M9.8576 0h6.6627c.8086 0 .444.7257.2537 1.619l-2.697 12.7485c-.1892.8902-.1302 1.6165-.9405 1.6165H6.4738c-.8103 0-1.3118-.7263-1.1214-1.616
25L8.0493 1.619C8.2408.7257 9.0483 0 9.8576 0",fill:"#16315e"}),(0,c.jsx)("path",{d:"M16.256 0h5.7938c.8098 0 1.3129.7257 1.1226 1.619l-2.697 12.7485c-.1903.8902-1.0006 1.6165-1.8104 1.6165h-5.791c-.8104 0-1.313-.7263-1.1232-1.6165L14.4482 1.619C14.637.7257 15.4457 0 16.256 0",fill:"#036862"}),(0,c.jsx)("path",{d:"M6.059 4.0856c-.5958.0067-.7717 0-.828-.0146-.0216.113-.4236 2.1546-.4247 2.1563-.0866.413-.1496.7075-.3635.8976-.1215.1105-.2633.1639-.4276.1639-.2643 0-.4182-.1445-.444-.4184l-.005-.094s.0805-.5533.0805-.5564c0 0 .422-1.8605.4975-2.1064a.1945.1945 0 0 0 .0061-.028c-.8213.008-.967 0-.977-.0146-.0055.02-.0258.1354-.0258.1354l-.4308 2.097-.037.1778-.0716.5817c0 .1725.0307.3134.092.4325.1963.3776.7563.4342 1.073.4342.4081 0 .791-.0955 1.0497-.2698.449-.292.5666-.7486.6713-1.1544l.0486-.2081s.4347-1.9323.5085-2.1837c.0029-.014.004-.0213.0078-.028zm1.479 1.5588c-.1048 0-.2963.028-.4683.1208-.0624.0353-.1215.076-.1838.1166l.0562-.2234-.0307-.0376c-.3648.0813-.4464.0922-.7834.1444l-.0282.0207c-.0391.357-.0739.6255-.219 1.3274a90.3116 90.3116 0 0 1-.17.778l.0156.0327c.3453-.02.45-.02.7502-.0146l.0242-.029c.0382-.215.0431-.2654.1276-.7009.0396-.2064.1224-.66.1632-.8215.075-.0383.149-.0759.2196-.0759.1682 0 .1477.1615.1412.2259-.0072.108-.0685.4609-.1313.7639l-.042.1955c-.0292.1445-.0612.2848-.0905.428l.0127.0286c.3404-.02.4442-.02.7348-.0146l.0342-.029c.0525-.3358.0679-.4257.1611-.9146l.0469-.2246c.091-.4397.1368-.6626.068-.8442-.073-.2035-.2478-.2526-.4083-.2526zm1.6521.4603c-.181.0383-.2963.0637-.411.0802-.1136.02-.2245.0383-.3993.065l-.0139.0138-.0127.011c-.0182.1434-.0309.2673-.055.413-.0205.1506-.052.3218-.1033.5677-.0397.1882-.0601.2538-.0827.32-.022.0663-.0463.1307-.091.3158l.0105.0171.0087.0157c.1634-.0085.2703-.0146.3802-.0157.1097-.0043.2234 0 .3994.001l.0154-.0137.0165-.0153c.0254-.167.0292-.2119.0447-.2933.0154-.0874.042-.2083.107-.5314.0309-.1517.0652-.303.0971-.4578.0332-.1542.068-.306.101-.4578l-.005-.0183zm.0039-.6206c-.1644-.1068-.453-.0729-.6471.0746-.1936.1446-.2157.3498-.0518.458.1615.1038.4512.0729.6436-.0759.1932-.1477.2174-.351.0553-.4567zm.994 2.4734c.3326 0 .6735-.101.9301-.4003.1974-.2428.288-.6041.3193-.7529.1021-.4931.0226-.7233-.0772-.8635-.1517-.2138-.4197-.2824-.6978-.2824-.1672 0-.5654.0182-.8765.334-.2234.2277-.3267.5368-.389.833-.0628.302-.135.8454.319 1.0477.14.0662.342.0844.4722.0844zm-.026-1.1095c.0768-.3734.1673-.6868.3983-.6868.181 0 .1942.2332.1137.6078-.0144.0832-.0805.3924-.1699.524-.0624.0972-.1363.1561-.2179.1561-.0243 0-.1688 0-.171-.2361-.0011-.1166.0205-.2357.0469-.365zm2.1068 1.0615l.026-.0291c.0368-.215.0429-.2655.1245-.7008.0408-.2065.1253-.66.165-.8216.075-.0384.1478-.076.2207-.076.167 0 .1467.1615.14.2259-.006.1082-.0673.4609-.1313.7639l-.0396.1955c-.0304.1446-.0635.2848-.0927.4282l.0127.0286c.3415-.02.4413-.02.7337-.0146l.0353-.0291c.0512-.336.065-.4258.161-.9146l.0458-.2247c.0916-.4397.1379-.6624.07-.844-.0749-.2035-.2509-.2526-.4092-.2526-.1049 0-.2974.0278-.4684.1208a3.0577 3.0577 0 0 0-.1826.1166l.0524-.2234-.028-.0378c-.3647.0814-.448.0923-.7846.1446l-.0258.0206c-.0408.3571-.074.6254-.219 1.3275a95.9633 95.9633 0 0 1-.17.7779l.0155.0328c.3458-.02.449-.02.7486-.0146zm2.5088.0145c.0215-.1154.149-.799.1501-.799 0 0 .1086-.5017.1152-.5199 0 0 .0342-.0522.0684-.0729h.0503c.4743 0 1.01 0 1.4298-.34.2857-.2332.481-.5775.5681-.996a1.6492 1.6492 0 0 0 .0393-.3466c0-.1603-.0292-.3189-.1137-.4428-.214-.3297-.6404-.3358-1.1326-.3383l-.2426.0025c-.63.0086-.8826.0061-.9864-.0079-.0088.0505-.0253.1404-.0253.1404s-.2256 1.1513-.2256 1.1531l-.5655 2.5632c.55-.0073.7756-.0073.8705.0042zm.4181-2.0452s.24-1.149.2388-1.1446l.0078-.059.0034-.0448.0959.0108s.4948.0468.5064.048c.1953.0832.2758.2976.2196.5774-.0513.2558-.202.4708-.3956.5746-.1594.088-.3547.0953-.556.0953h-.1301zm1.494.9905c-.0635.2975-.1364.841.3154 1.0347.144.0674.2731.0875.4043.0802.1385-.0082.2669-.0847.3858-.1948l-.0322.1359.0205.029c.325-.015.4258-.015.7778-.012l.032-.0268c.0513-.3327.0998-.6557.2334-1.2922.065-.3048.13-.6067.1968-.9103l-.0104-.0334c-.3635.0741-.4607.09-.8103.1445l-.0266.0238c-.0035.031-.0072.0607-.0106.0904-.0543-.0967-.1331-.1793-.2547-.23
207-.1555-.0674-.5207.0194-.8346.334-.2206.2247-.3265.5325-.3867.8277zm.7633.0182c.0778-.3668.1672-.677.3988-.677.1465 0 .2236.1487.208.4024-.0125.0633-.026.13-.0419.2054-.0232.109-.0483.217-.0727.3252-.0249.074-.0538.1438-.0856.1903-.0596.093-.2014.1506-.283.1506-.0232 0-.166 0-.171-.232-.0011-.1154.0205-.2344.0474-.365zm3.9867-1.2109l-.0281-.0353c-.3597.0802-.4248.093-.7552.1421l-.0243.0267c-.0012.0044-.0021.011-.0038.0171l-.0012-.006c-.246.6248-.2388.49-.439.9818-.0011-.0224-.0011-.0363-.0023-.0601l-.0501-1.0663-.0315-.0353c-.3768.0802-.3857.093-.7336.1421l-.0271.0267c-.0039.0128-.0039.0268-.0061.042l.0022.0055c.0435.2446.033.19.0767.5762.0204.1895.0475.3801.0678.5673.0343.3132.0535.4674.0955.9455-.235.4268-.2907.5884-.5169.963l.0016.0037-.1593.2774c-.0182.0292-.0348.0492-.058.0578-.0253.0138-.0584.0163-.1043.0163h-.0882l-.1312.4804.45.0085c.2642-.0012.4303-.1372.5197-.32l.283-.5339h-.0045l.0298-.0376c.1904-.4511 1.6384-3.1856 1.6384-3.1856zm-4.7501 6.3088h-.191l.7067-2.573h.2344l.0745-.265.0072.2947c-.0088.1822.1214.3437.4634.317h.3956l.1361-.4954h-.1488c-.0856 0-.1253-.0238-.1203-.0748l-.0072-.2999h-.7325v.0016c-.2369.0054-.944.025-1.0873.067-.1732.049-.3558.1937-.3558.1937l.0717-.2654h-.6852l-.1428.5265-.716 2.6123h-.139l-.1363.4919h1.3647l-.0457.164h.6724l.0447-.164h.1886zm-.56-2.0502c-.1097.0334-.3139.1348-.3139.1348l.1816-.6576h.5444l-.1313.4791s-.1682.011-.2807.0437zm.0105.9394s-.171.0237-.2836.0516c-.1108.037-.3187.1536-.3187.1536l.1876-.6843h.5472zm-.305 1.1168h-.5461l.1583-.5775h.5444zm1.315-1.5959h.7872l-.113.4033h-.7977l-.1197.4408h.6979l-.5285.8191c-.037.0602-.0702.0815-.107.0984-.037.0207-.0856.045-.1418.045h-.1936l-.133.4828h.5064c.2632 0 .4187-.1318.5335-.3048l.3624-.546.0778.5544c.0165.1038.0843.1646.1302.1882.0507.028.103.076.
2177.0832.0794.0037.1368.0067.1749.0067h.2488l.1494-.5404h-.0981c-.0564 0-.1534-.0104-.1699-.0298-.0165-.0237-.0165-.06-.0254-.1154l-.079-.5556h-.3232l.1418-.1858h.796l.1225-.4408h-.737l.1148-.4033h.7347l.1363-.4973h-2.1906zm-6.6482 1.7082l.1837-.6728h.7551l.138-.5004h-.7558l.1153-.4141h.7386l.1369-.4846h-1.848l-.134.4846h.4198l-.112.414h-.421l-.1395.509h.4197l-.2449.8902c-.033.1178.0156.1627.0464.2175.0315.0533.0634.0886.1351.1086.074.0182.1247.0291.1936.0291h.8513l.1517-.5544-.3774.0571c-.0729 0-.2747-.0096-.2526-.0838zm.0866-3.2208l-.1914.3807c-.041.0831-.0778.1348-.111.1585-.0292.02-.0871.0285-.171.0285h-.0998l-.1335.487h.3316c.1594 0 .2819-.0643.3403-.0965.0629-.037.0794-.0159.128-.0675l.112-.1068h1.0354l.1374-.507h-.758l.1324-.277zm1.5286 3.2306c-.0177-.028-.005-.0773.022-.1799l.283-1.0311h1.0068c.1467-.0023.2526-.0042.3215-.0096.074-.0086.1545-.0377.2422-.0899.0905-.0547.1369-.1124.176-.1786.0436-.066.1137-.2107.1738-.4336l.3557-1.3049-1.0447.0067s-.3217.0522-.4633.11c-.143.0643-.3471.244-.3471.244l.0943-.3577h-.6454l-.9035 3.2986c-.032.128-.0535.221-.0585.2769-.0017.0601.069.1197.1147.1646.054.0449.134.0376.2107.0449.0806.0067.1953.0109.3536.0109h.496l.1522-.5659-.444.0462a.1138.1138 0 0 1-.096-.0516zm.4876-1.9074h1.0575l-.0673.2319c-.0094.0054-.032-.0115-.1396.0025h-.9157zm.2118-.778h1.0664l-.0767.2794s-.5026-.0054-.583.0109c-.3543.0675-.5611.2758-.5611.2758zm.8021 1.7866c-.0087.0347-.0226.0558-.042.0717-.0214.0152-.0561.0206-.108.0206h-.1506l.0089-.2824H12.7l-.0254 1.3809c-.001.0996.0078.1573.074.2035.0662.0576.2703.065.545.065h.3927l.1418-.517-.342.0207-.1136.0073c-.0155-.0073-.0304-.014-.0469-.0321-.0144-.0157-.0387-.0061-.0347-.1057l.0027-.354.3585-.0163c.1936 0 .2764-.0694.347-.1354.0674-.0633.0894-.136.1148-.2345l.0602-.3134h-.4927z",fill:"#fefefe"})]})});case"visa":return(0,c.jsx)("svg",{className:i,width:"24",height:"16",viewBox:"0 0 24 16",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,c.jsx)("rect",{strokeOpacity:".2",stroke:"#000",strokeWidth:".5",fill:"#FFF",x:".25",y:".25",width:"23.5",height:"15.5",rx:"2"}),(0,c.jsx)("path",{d:"M2.78773262 5.91443732C2.26459089 5.62750595 1.6675389 5.39673777 1 5.23659312l.0280005-.12471102h2.73697872c.37098332.01300346.67201191.12462375.76996714.51882925l.59482061 2.83587917.18221641.85413565L6.97796639 5.1118821h1.79882257l-2.67390785 6.1656463H4.30396552l-1.5162329-5.36309108zm7.31224258 5.36963648H8.39882877l1.06401886-6.1721917H11.163901l-1.0639258 6.1721917zm6.1668069-6.02129922l-.2313529 1.3328108-.1538632-.06554092c-.3078194-.12479829-.7141522-.2495093-1.2671852-.2363313-.6716398 0-.9728545.26905813-.9798314.53174543 0 .28895604.3643786.47938251.9593659.76179318.9801104.43993579 1.4347231.97831385 1.4279323 1.68093694-.0137677 1.28044789-1.1758348 2.10786929-2.9607967 2.10786929-.7631763-.0066327-1.4982591-.1579615-1.8972429-.3284901l.2380507-1.38552277.224004.09861682c.5530331.23004776.9169465.32831555 1.5961213.32831555.4897761 0 1.0149017-.19060107 1.0215995-.60409358 0-.26923267-.2237249-.46637906-.8818761-.76842582-.6439184-.29558867-1.5048639-.78797464-1.4909101-1.67447884C11.8780532 5.84042483 13.0610509 5 14.7409877 5c.6580581 0 1.1902536.13788902 1.5257944.26277458zm2.2609703 3.83471102h1.4139786c-.0699548-.30859213-.3921-1.78601186-.3921-1.78601186l-.1188858-.5318327c-.0840015.22978594-.2308878.60409353-.2238179.59091553 0 0-.5390794 1.3723448-.6791749 1.72692903zm2.0998512-3.9856035L22 11.2839865h-1.5750977s-.1541422-.7091684-.2029803-.9258637h-2.1841317c-.0631639.1640705-.3570296.9258637-.3570296.9258637h-1.7849619l2.5268355-5.65999506c.1750729-.40057632.4833574-.51210934.889132-.51210934h1.3158373z",fill:"#171E6C"})]})});default:return(0,c.jsx)("svg",{className:i,width:"29",height:"19",viewBox:"0 0 29 19",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c.jsx)("path",{d:"M26.58 19H2.42A2.4004 2.4004 0 0 1 0 16.62V2.38A2.4 2.4 0 0 1 2.42 0h24.16A2.4004 2.4004 0 0 1 29 2.38v14.25c-.0165 1.3216-1.0984 2.3811-2.42 2.37zM10 5.83c0-.46-.35-.83-.78-.83H3.78c-.43 0-.78.37-.78.83v3.34c0 .46.35.83.78.83h5.44c.43 0 .78-.37.78-.83V5.83z",fill:"#DADDE2"}),(0,c.jsx)("path",{d:"M25 15h-3c-.65 0-1-.3-1-1s.35-1 1-1h3c.65 0 1 .3 1 1s-.35 1-1 1zm-6 0h-3c-.65 0-1-.3-1-1s.35-1 1-1h3c.65 0 1 .3 1 1s-.35 1-1 1zm-6 0h-3c-.65 0-1-.3-1-1s.35-1 1-1h3c.65 0 1 .3 1 1s-.35 1-1 1zm-6 0H4c-.65 0-1-.3-1-1s.35-1 1-1h3c.65 0 1 .3 1 1s-.35 1-1 1z",fill:"#B2B6C1"})]})})}};u.defaultProps={className:null,rootClassName:null,brand:"default"};
2const d=u,h={root:"SavedCardDetails_root__T4TjG",savedPaymentMethodTitle:"SavedCardDetails_savedPaymentMethodTitle__VPPMI h4",savedPaymentMethod:"SavedCardDetails_savedPaymentMethod__3WU2h",paymentMethodPlaceholderDesktop:"SavedCardDetails_paymentMethodPlaceholderDesktop__pIKea",paymentMethodPlaceholderMobile:"SavedCardDetails_paymentMethodPlaceholderMobile__tklCl",cardIcon:"SavedCardDetails_cardIcon__oCGgK",closeIcon:"SavedCardDetails_closeIcon__6IwGw marketplaceModalCloseIcon",iconCheckmark:"SavedCardDetails_iconCheckmark__YZdC6",iconCheckmarkHidden:"SavedCardDetails_iconCheckmarkHidden__uO0E6",expirationDate:"SavedCardDetails_expirationDate__WJRFK",expirationDateExpired:"SavedCardDetails_expirationDateExpired__Ae-K5",cardExpiredText:"SavedCardDetails_cardExpiredText__sYj5H h4",menu:"SavedCardDetails_menu__rMkdr",menuLabel:"SavedCardDetails_menuLabel__s8nYy",menuLabelWrapper:"SavedCardDetails_menuLabelWrapper__wo4aM",menuLabelWrapperExpired:"SavedCardDetails_menuLabelWrapperExpired__STp1D",menuContent:"SavedCardDetails_menuContent__p6BUN",menuItem:"SavedCardDetails_menuItem__15ZIj",menuText:"SavedCardDetails_menuText__EQg-v marketplaceMessageFontStyles",menuTextReplaceCard:"SavedCardDetails_menuTextReplaceCard__iImfC marketplaceMessageFontStyles",menuDivider:"SavedCardDetails_menuDivider__ZIE47 h5",savedPaymentMethodDelete:"SavedCardDetails_savedPaymentMethodDelete__zqIJg h4",modalButtonsWrapper:"SavedCardDetails_modalButtonsWrapper__1bI+r",modalTitle:"SavedCardDetails_modalTitle__T2xjv marketplaceModalTitleStyles",modalMessage:"SavedCardDetails_modalMessage__Wd-Pw marketplaceModalParagraphStyles",cancelCardDelete:"SavedCardDetails_cancelCardDelete__6xUt6"},p="defaultCard",f="replaceCard",m=e=>{const[t,r]=(0,n.useState)(!1),[i,a]=(0,n.useState)(!1),[l,u]=(0,n.useState)(p),{rootClassName:m,className:g,intl:_,card:y,onChange:v,onDeleteCard:b,onManageDisableScrolling:x,deletePaymentMethodInProgress:w}=e,{last4Digits:A,expirationMonth:S,expirationYear:E,brand:T}=y||{},P=o()(m||h.root,g),C=_.formatMessage({id:"SavedCardDetails.savedPaymentMethodPlaceholderDesktop"},{last4Digits:A}),I=_.formatMessage({id:"SavedCardDetails.savedPaymentMethodPlaceholderMobile"},{last4Digits:A}),M=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:h.paymentMethodPlaceholderDesktop,children:C}),(0,c.jsx)("span",{className:h.paymentMethodPlaceholderMobile,children:I})]}),k=_.formatMessage({id:"SavedCardDetails.replaceCardText"}),O=(0,c.jsxs)("span",{children:[(0,c.jsx)(d,{brand:"none",className:h.cardIcon})," ",k]}),R=_.formatMessage({id:"SavedCardDetails.expiredCardText"},{last4Digits:A}),L=(0,c.jsx)("div",{className:h.cardExpiredText,children:R}),D=S&&E&&((e,t)=>{const r=new Date,n=r.getFullYear(),i=r.getMonth()+1;return t<n||t===n&&e<i})(S,E),N=(0,c.jsxs)("div",{className:h.savedPaymentMethod,children:[(0,c.jsx)(d,{brand:T,className:h.cardIcon}),M,(0,c.jsxs)("span",{className:D?h.expirationDateExpired:h.expirationDate,children:[S,"/",E.toString().substring(2)]})]}),F=e=>t=>{t.preventDefault(),t.stopPropagation(),u(e),a(!1),v&&v(e)},z=_.formatMessage({id:"SavedCardDetails.replaceCardTitle"}),j=_.formatMessage({id:"SavedCardDetails.removeCardModalTitle"}),B=_.formatMessage({id:"SavedCardDetails.removeCardModalContent"},{last4Digits:A}),U=_.formatMessage({id:"SavedCardDetails.cancel"}),V=_.formatMessage({id:"SavedCardDetails.removeCard"}),q=_.formatMessage({id:"SavedCardDetails.deletePaymentMethod"}),H=D&&l===p;return(0,c.jsxs)("div",{className:P,children:[(0,c.jsxs)(s.W1,{className:h.menu,isOpen:i,onToggleActive:e=>{a(e)},useArrow:!1,children:[(0,c.jsx)(s.Wq,{className:h.menuLabel,children:(0,c.jsx)("div",{className:H?h.menuLabelWrapperExpired:h.menuLabelWrapper,children:l===p?N:O})}),(0,c.jsxs)(s.rm,{rootClassName:h.menuContent,children:[(0,c.jsxs)(s.Dr,{className:h.menuItem,children:[(0,c.jsx)(s.Vs,{className:l===p?h.iconCheckmark:h.iconCheckmarkHidden,size:"small"}),(0,c.jsx)(s.bG,{className:h.menuText,onClick:F(p),children:N})]},"first item"),(0,c.jsx)(s.Dr,{className:h.menuDivider,children:z},"divider"),(0,c.jsxs)(s.Dr,{className:h.menuItem,children:[(0,c.jsx)(s.Vs,{className:l===f?h.iconCheckmark:h.iconCheckmarkHidden,size:"small"}),(0,c.jsx)(s.bG,{className:h.menuTextReplaceCard,onClick:F(f),children:O})]},"second item")]})]}),H&&!i?L:null,b&&l!==f?(0,c.jsxs)(s.bG,{onClick:()=>{r(!0)},className:h.savedPaymentMethodDelete,children:[(0,c.jsx)(s.gz,{rootClassName:h.closeIcon,size:"small"}),q]}):null,x?(0,c.jsx)(s.aF,{id:"VerifyDeletingPaymentMethod",isOpen:t,onClose:()=>{r(!1)},usePortal:!0,contentClassName:h.modalContent,onManageDisableScrolling:x,children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:h.modalTitle,children:j}),(0,c.jsx)("p",{className:h.modalMessage,children:B}),(0,c.jsxs)("div",{className:h.modalButtonsWrapper,children:[(0,c.jsx)("div",{onClick:()=>r(!1),className:h.cancelCardDelete,tabIndex:"0",children:U}),(0,c.jsx)(s.$n,{onClick:b,inProgress:w,children:V})]})]})}):null]})};m.defaultProps={rootClassName:null,className:null,card:null,onChange:null,onDeleteCard:null,deletePaymentMethodInProgress:!1,onManageDisableScrolling:null};const g=(0,a.j4)(m)},9331:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(89379),i=r(65043),o=r(77775),a=r(98139),s=r.n(a),l=r(93950),c=r.n(l),u=r(63775),d=r(24141),h=r(10006),p=r(65173),f=r.n(p);const m={unsupportedCountryError:"StripeBankAccountTokenInputField_unsupportedCountryError__t-4B-",root:"StripeBankAccountTokenInputField_root__UEbj-",input:"StripeBankAccountTokenInputField_input__236gv",error:"StripeBankAccountTokenInputField_error__M0c-d",inputError:"StripeBankAccountTokenInputField_inputError__LIrr+",longForm:"StripeBankAccountTokenInputField_longForm__27bAS"};var g=r(70579);const _=e=>{const{className:t,rootClassName:r,inputType:i,formName:o,value:a,placeholder:l,onChange:c,onFocus:u,onBlur:h,isTouched:p,showStripeError:f,inputError:_,disabled:y,showInColumns:v}=e,b=p&&!!_,x=s()(r||m.input,t,{[m.inputSuccess]:!!a,[m.inputError]:b||f}),w=v?m.longForm:null,A={className:x,id:"".concat(o,".bankAccountToken.").concat(i),value:a,placeholder:l,onChange:c,onFocus:u,onBlur:h,disabled:y},S=(0,g.jsx)("p",{className:m.error,children:_});return(0,g.jsxs)("div",{className:s()(x,w),children:[(0,g.jsx)("label",{htmlFor:A.id,children:(0,g.jsx)(d.sA,{id:"StripeBankAccountTokenInputField.".concat(i,".label")})}),(0,g.jsx)("input",(0,n.A)({},A)),b?S:null]})},{bool:y,func:v,string:b}=f();_.defaultProps={rootClassName:null,className:null,inputError:null,disabled:!1};const x=_;class w extends i.Component{constructor(e){super(e);const t=e.intl;this.initialState={stripeError:null},h.Tp.forEach((e=>{this.initialState[e]={value:"",touched:!1,error:(0,h.zz)(t,e,"required")}})),this.state=this.initialState,this.blurTimeoutId=null,this._isMounted=!1,this.requestToken=c()(this.requestToken.bind(this),1e3),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this)}componentDidMount(){if(!window.Stripe)throw new Error("Stripe must be loaded for StripeBankAccountTokenInputField");this.stripe=window.Stripe(this.props.config.stripe.publishableKey),this._isMounted=!0}
2componentDidUpdate(e){const t=this.props.country!==e.country,r=this.props.currency!==e.currency;(t||r)&&(this.setState(this.initialState),this.props.input.onChange(""))}componentWillUnmount(){this._isMounted=!1,window.clearTimeout(this.blurTimeoutId)}requestToken(e){const{country:t,currency:r,input:{onChange:i},intl:o,config:a}=this.props;i("");const s=a.stripe.supportedCountries,l=(0,h.ZI)(t,s),c=l.filter((t=>!e[t])),u=l.filter((e=>!!this.state[e].error)),d=c.length>0,p=u.length>0;if(d||p)return;let f={country:t,currency:r};const m=(0,h.LQ)(t,e);f=(0,n.A)((0,n.A)({},f),m),this.stripe.createToken("bank_account",f).then((e=>{if(e.error){const t=new Error(e.error.message);throw t.stripeError=e.error,t}return e.token.id})).then((t=>{const r=0===l.filter((t=>e[t]!==this.state[t].value)).length;this._isMounted&&r&&(this.setState((e=>({stripeError:null}))),i(t))})).catch((e=>{if(!e.stripeError)throw e;this._isMounted&&this.setState({stripeError:(0,h.IQ)(t,s,o,e.stripeError)})}))}handleInputChange(e,t,r,i,o){const a=e.target.value;let s=null;a||(s=o.formatMessage({id:"StripeBankAccountTokenInputField.".concat(t,".required")})),this.setState((e=>{const r=(0,n.A)((0,n.A)({},e[t]),{},{value:a,error:s});return{[t]:r,stripeError:null}}));const l=(0,h.ZI)(r,i).reduce(((e,t)=>(0,n.A)((0,n.A)({},e),{},{[t]:this.state[t].value})),{});this.requestToken((0,n.A)((0,n.A)({},l),{},{[t]:a}))}handleInputFocus(){window.clearTimeout(this.blurTimeoutId)}handleInputBlur(e){this.setState((t=>{const r=(0,n.A)((0,n.A)({},t[e]),{},{touched:!0});return{[e]:r}})),window.clearTimeout(this.blurTimeoutId),this.blurTimeoutId=window.setTimeout(this.props.input.onBlur,100)}render(){const{rootClassName:e,className:t,country:r,formName:n,meta:i,intl:o,disabled:a,config:l}=this.props;if(!(0,h.Nl)(l.stripe.supportedCountries).includes(r))return(0,g.jsx)("div",{className:m.unsupportedCountryError,children:(0,g.jsx)(d.sA,{id:"StripeBankAccountTokenInputField.unsupportedCountry",values:{country:r}})});const c=l.stripe.supportedCountries,u=(0,h.ZI)(r,c),p=u.some((e=>(this.state[e].touched||i.touched)&&!!this.state[e].error)),f=!(!this.state.stripeError||p||!i.touched),_=!(!i.touched||!i.error||p||f),y=u.length>=6;return(0,g.jsxs)("div",{className:s()(e||m.root,t),children:[u.map((e=>(0,g.jsx)(x,{disabled:a,inputType:e,formName:n,value:this.state[e].value,placeholder:(0,h.zz)(o,e,"placeholder"),onChange:t=>this.handleInputChange(t,e,r,c,o),onFocus:this.handleInputFocus,onBlur:()=>this.handleInputBlur(e),isTouched:this.state[e].touched||i.touched,showStripeError:f,inputError:this.state[e].error,showInColumns:y},e))),f?(0,g.jsx)("span",{className:m.error,children:this.state.stripeError}):null,_?(0,g.jsx)("span",{className:m.error,children:i.error}):null]})}}const A=e=>{const t=(0,u._r)(),r=(0,d.tz)();return(0,g.jsx)(w,(0,n.A)({config:t,intl:r},e))};A.defaultProps={rootClassName:null,className:null,disabled:!1};const S=e=>(0,g.jsx)(o.D0,(0,n.A)({component:A},e))},10006:(e,t,r)=>{"use strict";r.d(t,{IQ:()=>b,LQ:()=>x,Nl:()=>_,Tp:()=>g,Xt:()=>y,ZI:()=>v,zz:()=>w});const n="accountNumber",i="accountOwnerName",o="institutionNumber",a="transitNumber",s="clearingCode",l="branchCode",c="branchName",u="bankName",d="bankCode",h="clabe",p="iban",f="routingNumber",m="sortCode",g=["bsb",a,o,s,u,d,c,l,m,f,i,n,p,h],_=e=>e.map((e=>e.code)),y=(e,t)=>{const r=t.find((t=>t.code===e));if(!r)throw new Error("Country code not found in Stripe config ".concat(e));return r},v=(e,t)=>{const r=y(e,t).accountConfig;return g.filter((e=>r[e]))},b=(e,t,r,n)=>{console.error("Stripe error:",n);const i=v(e,t);if(i[p])return r.formatMessage({id:"StripeBankAccountTokenInputField.genericStripeErrorIban",defaultMessage:n.message},{country:e});{const t=i.map((e=>((e,t)=>{if(g.includes(e))return t.formatMessage({id:"StripeBankAccountTokenInputField.".concat(e,".inline")});throw new Error("Unknown inputType (".concat(e,") given to validator"))})(e,r))),o=r.formatMessage({id:"StripeBankAccountTokenInputField.andBeforeLastItemInAList"}),a=t.length>1?t.join(", ").replace(/,([^,]*)$/,"".concat(o," $1")):t[0];return r.formatMessage({id:"StripeBankAccountTokenInputField.genericStripeError",defaultMessage:n.message}
2,{country:e,inputs:a})}},x=(e,t)=>{switch(e){case"AT":case"BE":case"BG":case"CY":case"CZ":case"DK":case"EE":case"FI":case"FR":case"DE":case"GR":case"IE":case"IT":case"LV":case"LT":case"LU":case"MT":case"NL":case"PL":case"PT":case"RO":case"SK":case"SI":case"ES":case"SE":case"CH":case"NO":return{account_number:A(t[p])};case"NZ":return{account_number:A(t[n]).replace(/-/g,"")};case"AU":return{routing_number:A(t.bsb),account_number:A(t[n])};case"CA":return{routing_number:A(t[a]).concat(A(t[o])),account_number:A(t[n])};case"GB":return{routing_number:A(t[m]),account_number:A(t[n])};case"US":return{routing_number:A(t[f]),account_number:A(t[n])};case"SG":return{routing_number:A(t[d]).concat("-",A(t[l])),account_number:A(t[n])};case"HK":return{routing_number:A(t[s]).concat("-",A(t[l])),account_number:A(t[n])};case"JP":return{bank_name:t[u],branch_name:t[c],routing_number:A(t[d]).concat(t[l]),account_number:A(t[n]),account_holder_name:t[i]};case"MX":return{account_number:A(t[h])};default:throw new Error("Not supported country (".concat(e,") given to validator"))}},w=(e,t,r)=>{if(!g.includes(t))throw new Error("inputType (".concat(t,") must be one of ").concat(g));return e.formatMessage({id:"StripeBankAccountTokenInputField.".concat(t,".").concat(r)})},A=e=>e?e.replace(/\s/g,""):""},2406:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(89379),i=(r(65043),r(65173)),o=r.n(i),a=r(98139),s=r.n(a),l=r(18689);const c="TabNav_root__gjNfb",u="TabNav_tab__eA3Af",d="TabNav_link__PL7ZZ textSmall",h="TabNav_selectedLink__l6az3",p="TabNav_disabled__11EDF";var f=r(70579);const m=e=>{const{className:t,id:r,disabled:i,text:o,selected:a,linkProps:c}=e,u=s()(d,{[h]:a,[p]:i});return(0,f.jsx)("div",{id:r,className:t,children:(0,f.jsx)(l.GF,(0,n.A)((0,n.A)({className:u},c),{},{children:o}))})};m.defaultProps={className:null,disabled:!1,selected:!1};const{arrayOf:g,bool:_,node:y,object:v,string:b}=o(),x=e=>{const{className:t,rootClassName:r,tabRootClassName:i,tabs:o}=e,a=s()(r||c,t),l=i||u;return(0,f.jsx)("nav",{className:a,children:o.map(((e,t)=>{const r="string"===typeof e.id?e.id:"".concat(t);return(0,f.jsx)(m,(0,n.A)({id:r,className:l},e),r)}))})};x.defaultProps={className:null,rootClassName:null,tabRootClassName:null,tabClassName:null};const w=x},10308:(e,t,r)=>{"use strict";r.d(t,{F2:()=>k,$r:()=>O});var n=r(89379),i=(r(65043),r(65173)),o=r.n(i),a=r(98139),s=r.n(a),l=r(18689);const c="TabNavHorizontal_root__w9c6h",u="TabNavHorizontal_darkSkin__fh2NW",d="TabNavHorizontal_tab__OQtqJ",h="TabNavHorizontal_tabContent__hfgS3 a",p="TabNavHorizontal_button__tUGBp",f="TabNavHorizontal_selectedTabContent__Me8gj",m="TabNavHorizontal_disabled__C5APk",g="TabNavHorizontal_tabContentDarkSkin__KsP2y",_="TabNavHorizontal_selectedTabContentDarkSkin__2lwUF",y="TabNavHorizontal_disabledDarkSkin__96JW3";var v=r(70579);const b="light",{arrayOf:x,bool:w,func:A,node:S,object:E,oneOf:T,string:P,shape:C}=o(),I=e=>{const{className:t,disabled:r,text:i,selected:o,onClick:a,linkProps:c,isDark:u}=e,d=u?s()(g,{[_]:o,[y]:r}):null,b=s()(h,{[f]:o,[m]:r},d),x=s()(h,p,{[f]:o,[m]:r},d),w=!!a;return(0,v.jsx)("div",{className:t,children:w?(0,v.jsx)(l.bG,{rootClassName:x,onClick:a,children:i}):(0,v.jsx)(l.GF,(0,n.A)((0,n.A)({className:b},c),{},{children:i}))})};I.defaultProps={className:null,disabled:!1,selected:!1};const M=e=>{const{className:t,rootClassName:r,tabRootClassName:i,tabs:o,skin:a}=e,l="dark"===a,h=s()(r||c,{[u]:l},t),p=i||d;return(0,v.jsx)("nav",{className:h,children:o.map(((e,t)=>{const r="string"===typeof e.text?e.text:t;return(0,v.jsx)(I,(0,n.A)((0,n.A)({className:p},e),{},{isDark:l}),r)}))})},k=e=>(0,v.jsx)(M,(0,n.A)({},e));k.defaultProps={className:null,rootClassName:null,tabRootClassName:null,tabClassName:null,skin:b};const O=e=>(0,v.jsx)(M,(0,n.A)({},e));O.defaultProps={className:null,rootClassName:null,tabRootClassName:null,tabClassName:null,skin:b}},84260:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(65043),i=r(65173),o=r.n(i),a=r(98139),s=r.n(a),l=r(18689);const c="Tabs_root__K3Fjs";var u=r(70579);const d=e=>{const{children:t,className:r,rootClassName:i,navRootClassName:o,tabRootClassName:a}=e,d=i||c,h=s()(d,r),p=n.Children.map(t,(e=>{const{tabId:t,tabLabel:r,tabLinkProps:n}=e.props;if(!t||!r||!n)throw new Error("Tabs component: a child component is missing required props.\n        tabId: (".concat(t,")\n        tabLabel: (").concat(r,")\n        tabLinkProps: (").concat(n,")"));return{id:t,text:e.props.tabLabel,linkProps:e.props.tabLinkProps,disabled:e.props.disabled,selected:e.props.selected}})),f=n.Children.toArray(t).find((e=>e.props.selected));if(!f)throw new Error("Tabs component: one Child should have 'selected' prop.");return(0,u.jsxs)("div",{className:h,children:[(0,u.jsx)(l.jl,{rootClassName:o,tabs:p,tabRootClassName:a}),f]})}
2,{node:h,string:p}=o();d.defaultProps={className:null,rootClassName:null,navRootClassName:null,tabRootClassName:null};const f=d},73827:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(89379),i=(r(65043),r(98139)),o=r.n(i),a=r(2376),s=r(24141),l=r(44356);const c="TimeRange_root__HwImA",u="TimeRange_dateSection__Fhe-C";var d=r(70579);const h="\u2013",p=e=>{const{rootClassName:t,className:r,startDate:i,endDate:s,dateType:p,timeZone:f,intl:m}=e,g=(0,a.iN)(i,m,{timeZone:f}),_=(0,a.iN)(s,m,{timeZone:f}),y=(0,a.ro)(i,s,f),v={month:"short",day:"numeric",timeZone:f},b=o()(t||c,r);if(y&&p===l.bC)return(0,d.jsx)("div",{className:b,children:(0,d.jsx)("span",{className:u,children:"".concat(g.date)})});if(p===l.bC){const e=m.formatDateTimeRange(i,s,v),t=e.length>27?e.split(h).map(((e,t)=>(0,d.jsxs)("span",{className:u,children:[e,0==t?h:null]},"datespan".concat(t)))):(0,d.jsx)("span",{className:u,children:e});return(0,d.jsx)("div",{className:b,children:t})}if(y&&p===l.Yq)return(0,d.jsx)("div",{className:b,children:(0,d.jsx)("span",{className:u,children:"".concat(g.time," - ").concat(_.time)})});if(p===l.Yq){const e={hour:"numeric",minute:"numeric"},t=m.formatDateTimeRange(i,s,(0,n.A)((0,n.A)({},v),e)),r=t.length>27?t.split(h).map(((e,t)=>(0,d.jsxs)("span",{className:u,children:[e,0==t?" ".concat(h," "):null]},"datespan".concat(t)))):(0,d.jsx)("span",{className:u,children:t});return(0,d.jsx)("div",{className:b,children:r})}return y&&p===l.ko?(0,d.jsx)("div",{className:b,children:(0,d.jsx)("span",{className:u,children:"".concat(g.date,", ").concat(g.time," - ").concat(_.time)})}):(0,d.jsxs)("div",{className:b,children:[(0,d.jsx)("span",{className:u,children:"".concat(g.dateAndTime," - ")}),(0,d.jsx)("span",{className:u,children:"".concat(_.dateAndTime)})]})};p.defaultProps={rootClassName:null,className:null,dateType:null,timeZone:null};const f=(0,s.j4)(p)},95586:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});r(65043);var n=r(98139),i=r.n(n),o=(r(44356),r(70579));const a=e=>{const{rootClassName:t,className:r,user:n,intl:a,deletedUserDisplayName:s,bannedUserDisplayName:l}=e,c=n&&n.attributes,u=c&&n.attributes.deleted,d=c&&n.attributes.banned,h=c&&n.attributes.profile&&n.attributes.profile.displayName,p=s||a.formatMessage({id:"UserDisplayName.deleted"}),f=l||a.formatMessage({id:"UserDisplayName.banned"}),m=h||(u?p:d?f:null),g=i()(t,r);return(0,o.jsx)("span",{className:g,children:m})};a.defaultProps={rootClassName:null,className:null,user:null,deletedUserDisplayName:null,bannedUserDisplayName:null};const s=a},18689:(e,t,r)=>{"use strict";r.d(t,{Vh:()=>te,u8:()=>Ji,eu:()=>Tr.Ay,VF:()=>Tr.VF,DM:()=>Tr.DM,Bz:()=>Tr.Bz,$n:()=>mt.Ay,F2:()=>yr.F2,hu:()=>Nr,vf:()=>oe.A,Gr:()=>ie,FW:()=>hr.A,Gt:()=>or.A,tu:()=>pr.A,ym:()=>ar.A,Tb:()=>_o,W4:()=>yo,iY:()=>vo,Ib:()=>mr.I,aA:()=>fr.A,St:()=>sr.A,Ay:()=>lr.A,HU:()=>cr.A,Pe:()=>ur.A,k7:()=>dr.A,lV:()=>fe,H1:()=>G,H2:()=>W,H3:()=>Y,H4:()=>Z,H5:()=>K,H6:()=>X,DZ:()=>q,N1:()=>d,Xw:()=>h.A,Vs:()=>p.A,gz:()=>f.A,xV:()=>m.A,WG:()=>g.A,GI:()=>_.A,S1:()=>y.A,Sb:()=>v.A,Xy:()=>b.A,Dn:()=>x.A,Ev:()=>w.A,FD:()=>A.A,Mv:()=>S.A,FH:()=>E.A,X1:()=>T.A,lv:()=>P.A,SI:()=>vt,bG:()=>mt.bG,$X:()=>ii,oM:()=>ni,JI:()=>qn,R6:()=>Ie,$r:()=>yr.$r,lh:()=>bt.A,l:()=>jr.A,hB:()=>Et,eN:()=>mr.A,gu:()=>Me.A,JH:()=>si,T5:()=>Br.A,W1:()=>rr.A,rm:()=>Wt,Dr:()=>Ot,Wq:()=>tr,aF:()=>nr.A,pV:()=>ir.A,iM:()=>xi,GF:()=>ke.A,M0:()=>Fe,vd:()=>Ve,KL:()=>zi,Qs:()=>Fr.A,r6:()=>zr.A,sT:()=>qe.A,YW:()=>$r,cc:()=>Tt.A,jn:()=>mt.jn,gv:()=>mt.gv,As:()=>Ye,Zf:()=>Ze.A,F1:()=>Ke.A,zB:()=>Ii,Lg:()=>at,wF:()=>Xe.A,Un:()=>Pt.A,Kf:()=>en.A,Ep:()=>tn.A,tA:()=>mt.tA,l_:()=>mt.Ev,nm:()=>mt.nm,m7:()=>gr.A,Y0:()=>Nn,eU:()=>gn,a1:()=>wn,o0:()=>go,jl:()=>_r.A,tU:()=>vr.A,zJ:()=>st.A,fs:()=>lt.A,pJ:()=>Er,yI:()=>ft});var n=r(56356),i=(r(76787),r(65043)),o=r(98139),a=r.n(o);const s="IconArrowHead_root__yhjgu";var l=r(70579);const c="small",u=e=>{const{className:t,rootClassName:r,direction:n,size:i}=e,o=a()(r||s,t),u="right"===n,d="left"===n,h="down"===n,p="up"===n,f="big"===i,m=i===c;return u&&m?(0,l.jsx)("svg",{className:o,width:"9",height:"13",viewBox:"0 0 9 13",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M7.472 6.97c.26-.26.26-.68 0-.94
2L2.14.694c-.263-.26-.684-.26-.944 0-.26.26-.26.683 0 .943L6.056 6.5l-4.86 4.862c-.26.26-.26.683 0 .943.26.26.68.26.943 0L7.47 6.97z",fillRule:"evenodd"})}):d&&m?(0,l.jsx)("svg",{className:o,width:"9",height:"13",viewBox:"0 0 9 13",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1.195 6.03c-.26.26-.26.68 0 .94l5.333 5.335c.262.26.683.26.943 0 .262-.26.262-.683 0-.943L2.61 6.5l4.86-4.862c.262-.26.262-.683 0-.943-.26-.26-.68-.26-.942 0L1.195 6.03z",fillRule:"evenodd"})}):h&&m?(0,l.jsx)("svg",{className:o,width:"13",height:"9",viewBox:"0 0 13 9",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M6.03 6.805c.26.26.68.26.94 0l5.335-5.333a.668.668 0 0 0-.943-.943L6.5 5.39 1.638.53a.666.666 0 1 0-.943.942L6.03 6.805z",fillRule:"evenodd"})}):p&&m?(0,l.jsx)("svg",{className:o,width:"13",height:"9",viewBox:"0 0 13 9",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M6.97.195a.664.664 0 0 0-.94 0L.695 5.528a.668.668 0 0 0 .943.943L6.5 1.61l4.862 4.86a.666.666 0 1 0 .943-.942L6.97.195z",fillRule:"evenodd"})}):u&&f?(0,l.jsx)("svg",{className:o,width:"11",height:"15",viewBox:"0 0 11 15",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1.6 14c-.17 0-.34-.065-.458-.192-.214-.228-.182-.57.07-.764L8.472 7.5 1.21 1.955c-.252-.194-.284-.535-.07-.763.214-.23.592-.257.846-.064l7.8 5.958c.135.104.212.255.212.414 0 .16-.077.31-.212.414l-7.8 5.958c-.113.086-.25.128-.388.128",fillRule:"evenodd"})}):d&&f?(0,l.jsx)("svg",{className:o,width:"11",height:"15",viewBox:"0 0 11 15",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M9.4 1c.17 0 .34.065.458.192.214.228.182.57-.07.764L2.528 7.5l7.26 5.545c.252.194.284.535.07.763-.214.23-.592.257-.846.064l-7.8-5.958C1.077 7.81 1 7.66 1 7.5c0-.16.077-.31.212-.414l7.8-5.958C9.125 1.042 9.262 1 9.4 1",fillRule:"evenodd"})}):h&&f?(0,l.jsx)("svg",{className:o,width:"15",height:"11",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M.5 1.1C.5.93.565.76.692.642a.508.508 0 0 1 .764.07L7 7.972 12.545.71a.506.506 0 0 1 .763-.07c.23.214.257.592.064.846l-5.958 7.8A.524.524 0 0 1 7 9.498a.522.522 0 0 1-.414-.212l-5.958-7.8A.638.638 0 0 1 .5 1.098",fillRule:"evenodd"})}):p&&f?(0,l.jsx)("svg",{className:o,width:"15",height:"11",viewBox:"0 0 15 11",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M13.5 8.9c0 .17-.065.34-.192.458a.508.508 0 0 1-.764-.07L7 2.028 1.455 9.29a.506.506 0 0 1-.763.07.644.644 0 0 1-.064-.846l5.958-7.8A.524.524 0 0 1 7 .502c.16 0 .31.077.414.212l5.958 7.8c.086.113.128.25.128.388",fillRule:"evenodd"})}):void 0};u.defaultProps={className:null,rootClassName:null,size:c};const d=u;var h=r(42139),p=r(64091),f=r(41683),m=r(89053),g=r(44339),_=r(7602),y=r(47539),v=r(34687),b=r(39808),x=r(7782),w=r(26571),A=r(87684),S=r(79134),E=r(64062),T=(r(61177),r(79065),r(476),r(2591),r(8214)),P=r(6299),C=r(89379),I=r(80045);const M="Heading_h1__qmdpO h1",k="Heading_h2__OoAJS h2",O="Heading_h3__5I2Dd h3",R="Heading_h4__ZxpHm h4",L="Heading_h5__F5HFm h5",D="Heading_h6__yeSTR h6",N=["className","rootClassName","as","styledAs","tagRef"],F=["rootClassName","as"],z=["rootClassName","as"],j=["rootClassName","as"],B=["rootClassName","as"],U=["rootClassName","as"],V=["rootClassName","as"],q=e=>{const{className:t,rootClassName:r,as:n,styledAs:i,tagRef:o}=e,s=(0,I.A)(e,N),c=n||"h2",u=r||("h1"===i?M:"h2"===i?k:"h3"===i?O:"h4"===i?R:"h5"===i?L:"h6"===i?D:null),d=a()(u,t);return(0,l.jsx)(c,(0,C.A)({className:d,ref:o}
2,s))},H={rootClassName:null,className:null,children:null,as:null};q.displayName="Heading",q.defaultProps=H;const G=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,F);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||M,as:n||"h1",tagRef:t},i))}));G.displayName="H1",G.defaultProps=H;const W=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,z);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||k,as:n||"h2",tagRef:t},i))}));W.displayName="H2",W.defaultProps=H;const Y=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,j);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||O,as:n||"h3",tagRef:t},i))}));Y.displayName="H3",Y.defaultProps=H;const Z=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,B);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||R,as:n||"h4",tagRef:t},i))}));Z.displayName="H4",Z.defaultProps=H;const K=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,U);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||L,as:n||"h5",tagRef:t},i))}));K.displayName="H5",K.defaultProps=H;const X=i.forwardRef(((e,t)=>{const{rootClassName:r,as:n}=e,i=(0,I.A)(e,V);return(0,l.jsx)(q,(0,C.A)({rootClassName:r||D,as:n||"h6",tagRef:t},i))}));X.displayName="H6",X.defaultProps=H;const J="AspectRatioWrapper_root__8ihQp",Q="AspectRatioWrapper_aspectPadding__6PSJw",$="AspectRatioWrapper_aspectBox__8deA4",ee=["children","className","rootClassName","width","height"],te=e=>{let{children:t=null,className:r=null,rootClassName:n=null,width:i,height:o}=e,s=(0,I.A)(e,ee);const c=a()(n||J,r),u="".concat(o/i*100,"%");return(0,l.jsx)("div",(0,C.A)((0,C.A)({className:c},s),{},{children:(0,l.jsx)("div",{className:Q,style:{paddingBottom:u},children:(0,l.jsx)("div",{className:$,children:t})})}))},re=["children","target"],ne=e=>{const{children:t,target:r}=e,n=(0,I.A)(e,re),i=r||"_blank",o="_blank"===i?{target:"_blank",rel:"noopener noreferrer"}:{target:i};return(0,l.jsx)("a",(0,C.A)((0,C.A)((0,C.A)({},n),o),{},{children:t}))};ne.defaultProps={children:null,target:"_blank"};const ie=ne;var oe=r(83853),ae=r(76732),se=r(57302);const le=["children","contentRef"],ce=["enforcePagePreloadFor"],ue=["enforcePagePreloadFor"],de=e=>{const{children:t,contentRef:r}=e,n=(0,I.A)(e,le),i=(0,C.A)({method:"post",action:"/",ref:r},n);return(0,l.jsx)("form",(0,C.A)((0,C.A)({},i),{},{children:t}))},he=e=>{const t=(0,ae.Z6)(),{enforcePagePreloadFor:r}=e,n=(0,I.A)(e,ce),i=(o=r,()=>{const{component:e}=(0,se.yY)(o,t);e.preload&&e.preload()});var o;const a={onMouseOver:i,onTouchStart:i};return(0,l.jsx)(de,(0,C.A)((0,C.A)({},n),a))},pe=e=>{const{enforcePagePreloadFor:t}=e,r=(0,I.A)(e,ue);return t?(0,l.jsx)(he,(0,C.A)({},e)):(0,l.jsx)(de,(0,C.A)({},r))};pe.defaultProps={children:null,contentRef:null,enforcePagePreloadFor:null};const fe=pe;var me=r(65173),ge=r.n(me),_e=r(24141),ye=r(44356),ve=r(41233);const be="LimitedAccessBanner_root__gWKB9",xe="LimitedAccessBanner_text__zDBY+",we="LimitedAccessBanner_button__hWxD0",Ae=["SearchPage"],Se=e=>{const{rootClassName:t,className:r,isAuthenticated:n,isLoggedInAs:i,authScopes:o,currentUser:s,onLogout:c,currentPage:u}=e,d=a()(t||be,r),h=(0,ve.vs)(s),p=h.id&&n&&i&&!Ae.includes(u),{firstName:f,lastName:m}=h.attributes.profile,g=(null===o||void 0===o?void 0:o.indexOf("user:limited"))>=0,_=(null===o||void 0===o?void 0:o.indexOf("user"))>=0;return p?(0,l.jsxs)("div",{className:d,children:[(0,l.jsx)("p",{className:xe,children:g?(0,l.jsx)(_e.sA,{id:"LimitedAccessBanner.message",values:{firstName:f,lastName:m}}):_?(0,l.jsx)(_e.sA,{id:"LimitedAccessBanner.fullRightsMessage",values:{firstName:f,lastName:m}}):(0,l.jsx)(_e.sA,{id:"LimitedAccessBanner.fallbackMessage",values:{firstName:f,lastName:m}})}),(0,l.jsx)(mt.Ay,{rootClassName:we,onClick:c,children:(0,l.jsx)(_e.sA,{id:"LimitedAccessBanner.logout"})})]}):null};Se.defaultProps={rootClassName:null,className:null,currentUser:null,authScopes:[],currentPage:null};const{array:Ee,bool:Te,func:Pe,string:Ce}=ge(),Ie=Se;var Me=r(72452),ke=r(11114),Oe=r(91688);const Re=e=>{const t=(0,ae.Z6)(),{name:r,search:n,state:i,params:o,push:a}=e,s=(0,se.pL)(r,t,o);return(0,l.jsx)(Oe.rd,{to:{pathname:s,search:n,state:i},push:a})},{bool:Le,object:De,string:Ne}=ge();Re.defaultProps={search:"",state:{},push:!1,params:{}};const Fe=Re,ze="NotificationBadge_root__Fxlz6 h6",je=e=>{const{className:t,rootClassName:r,count:n}=e,i=a()(r||ze,t);return(0,l.jsx)("span",{className:i,children:n})},{number:Be,string:Ue}=ge();je.defaultProps={className:null,rootClassName:null};const Ve=je;var qe=r(77800);class He extends i.Component{constructor(e){super(e),this.state={value:"",error:null},this._isMounted=!1}componentDidMount(){this._isMounted=!0,this.props.promise.then((e=>{this._isMounted&&this.setState({value:e})})).catch((e=>{this._isMounted&&this.setState({error:e})}))}componentWillUnmount(){this._isMounted=!1}render(){const{renderFulfilled:e,renderRejected:t}=this.props;return this.state.error?t(this.state.error):e(this.state.value)}}He.defaultProps={renderRejected:e=>e};const{func:Ge,shape:We}=ge(),Ye=He;var Ze=r(96324),Ke=r(97728),Xe=r(10286),Je=r(97),Qe=r(55346);
2const $e="ResponsiveBackgroundImageContainer_root__EtH41",et="ResponsiveBackgroundImageContainer_overlay__BCvdC",tt="ResponsiveBackgroundImageContainer_backgroundImageWrapper__y5uy8",rt="ResponsiveBackgroundImageContainer_backgroundImage__5fyrd",nt=["className","rootClassName","as","children","childrenWrapperClassName","image","alt","sizes","useOverlay"],{UUID:it}=Qe.gK,ot=e=>{var t;const r=(0,Je.A)(),{className:n,rootClassName:i,as:o,children:s,childrenWrapperClassName:c,image:u,alt:d,sizes:h,useOverlay:p}=e,f=(0,I.A)(e,nt),m=o||"div",g="string"===typeof u?(_=u,{id:new it("empty"),type:"image",attributes:{variants:{scaled:{name:"scaled",width:1200,height:800,url:_}}}}):u;var _;const y=(null===g||void 0===g||null===(t=g.attributes)||void 0===t?void 0:t.variants)||{},v=Object.keys(y),b=a()(i||$e,n),x=p?(0,l.jsx)("div",{className:et}):null,w=c?{className:c}:{};return(0,l.jsxs)(m,(0,C.A)((0,C.A)({className:b},f),{},{children:[(0,l.jsxs)("div",{className:tt,children:[g?(0,l.jsx)(Xe.A,{className:rt,image:g,alt:d||r.formatMessage({id:"ResponsiveBackgroundImageContainer.backgroundImageAlt"}),variants:v,sizes:h}):null,x]}),(0,l.jsx)("div",(0,C.A)((0,C.A)({},w),{},{children:s}))]}))};ot.defaultProps={className:null,rootClassName:null,as:"div",children:null,image:null,alt:null,sizes:null,useOverlay:!0};const at=ot;var st=r(73827),lt=r(95586);const ct="ValidationError_root__LVczR h4",ut=e=>{const{rootClassName:t,className:r,fieldMeta:n}=e,{touched:i,error:o}=n,s=a()(t||ct,r);return i&&o?(0,l.jsx)("div",{className:s,children:o}):null};ut.defaultProps={rootClassName:null,className:null};const{shape:dt,bool:ht,string:pt}=ge(),ft=ut;var mt=r(37842);const gt="ImageFromFile_root__aUdt5",_t="ImageFromFile_rootForImage__uZb39",yt=e=>{const[t,r]=(0,i.useState)((e=>
2new Promise(((t,r)=>{const n=new FileReader;n.onload=e=>t(e.target.result),n.onerror=t=>{console.error("Error (",t,") happened while reading ".concat(e.name,": ").concat(t.target.result)),r(new Error("Error reading ".concat(e.name,": ").concat(t.target.result)))},n.readAsDataURL(e)})))(e.file)),{className:n,rootClassName:o,aspectWidth:s,aspectHeight:c,file:u,id:d,children:h}=e,p=a()(o||gt,n);return(0,l.jsx)(Ye,{promise:t,renderFulfilled:e=>(0,l.jsxs)("div",{className:p,children:[(0,l.jsx)(te,{width:s,height:c,children:(0,l.jsx)("img",{src:e,alt:u.name,className:_t})}),h]}),renderRejected:()=>(0,l.jsx)("div",{className:p,children:(0,l.jsx)(_e.sA,{id:"ImageFromFile.couldNotReadFile"})})},d)};yt.defaultProps={className:null,children:null,rootClassName:null,aspectWidth:1,aspectHeight:1};const vt=yt;var bt=r(32851),xt=r(77232),wt=r(32423);const At="ListingLink_longWord__mck7p",St=e=>{const{className:t,listing:r,children:n}=e;if(!(r&&r.id))return null;const i=r.id.uuid,{title:o,state:a}=r.attributes,s=(0,wt.e9)(o),c=(0,l.jsx)("span",{children:(0,xt.YD)(o,{longWordMinLength:16,longWordClass:At})}),u=a===ye.tu,d=a===ye.pe,h=u?wt.bP:d?wt.Ln:null,p=h?{name:"ListingPageVariant",params:{id:i,slug:s,variant:h}}:{name:"ListingPage",params:{id:i,slug:s}};return(0,l.jsx)(ke.A,(0,C.A)((0,C.A)({className:t},p),{},{children:n||(c||"")}))};St.defaultProps={className:null,listing:null,children:null};const Et=St;var Tt=r(62094),Pt=r(54010);const Ct="MenuItem_root__f7RR0",It=e=>{const{children:t,className:r,rootClassName:n}=e,i=n||Ct,o=a()(i,r);return(0,l.jsx)("li",{className:o,role:"menuitem",children:t})};It.defaultProps={className:null,rootClassName:""};const{node:Mt,string:kt}=ge(),Ot=It,Rt="MenuContent_root__2WHDs",Lt="MenuContent_isClosed__bWI18",Dt="MenuContent_isOpen__HjE+i",Nt="MenuContent_content__YNhh6",Ft="MenuContent_arrowTop__M3bom",zt="MenuContent_arrowBelow__Ry33o",jt=e=>{const{arrowPosition:t,children:r,className:n,contentClassName:o,contentRef:s,isOpen:c,rootClassName:u,style:d}=e,h=u||Rt,p=c?Dt:Lt,f=a()(h,n,p),m=a()(o||Nt),g=t&&null!=d.right?{position:"absolute",right:t,top:0}:{position:"absolute",left:t,top:0},_=t?(0,l.jsxs)("div",{style:g,children:[(0,l.jsx)("div",{className:zt}),(0,l.jsx)("div",{className:Ft})]}):null;return i.Children.forEach(r,(e=>{if(e.type!==Ot)throw new Error("All children of MenuContent must be MenuItems.");if(null==e.key)throw new Error('All children of MenuContent must have a "key" prop.')})),(0,l.jsxs)("div",{className:f,ref:s,style:d,children:[_,(0,l.jsx)("ul",{className:m,children:r})]})};jt.defaultProps={arrowPosition:null,className:null,contentClassName:null,contentRef:null,isOpen:!1,rootClassName:"",style:null};const{bool:Bt,func:Ut,node:Vt,number:qt,object:Ht,string:Gt}=ge(),Wt=jt,Yt="MenuLabel_root__vC8Wv",Zt="MenuLabel_clickedWithMouse__n+C1n",Kt="MenuLabel_isOpen__gDCZN";class Xt extends i.Component{constructor(e){super(e),this.state={clickedWithMouse:!1},this.onClick=this.onClick.bind(this),this.onBlur=this.onBlur.bind(this)}onClick(e){e.stopPropagation(),e.preventDefault(),this.props.onToggleActive();const t=e.nativeEvent;!(0===t.clientX&&0===t.clientY)&&this.setState({clickedWithMouse:!0})}onBlur(){this.setState((()=>({clickedWithMouse:!1})))}render(){const{children:e,className:t,rootClassName:r,isOpen:n,isOpenClassName:i}=this.props,o=r||Yt,s=i||Kt,c=a()(o,t,{[Zt]:this.state.clickedWithMouse,[s]:n});return(0,l.jsx)("button",{className:c,onClick:this.onClick,onBlur:this.onBlur,children:e})}}Xt.defaultProps={className:null,isOpenClassName:null,isOpen:!1,onToggleActive:null,rootClassName:""};const{bool:Jt,func:Qt,node:$t,string:er}=ge(),tr=Xt;var rr=r(67200),nr=r(93558),ir=r(7380),or=r(13675),ar=r(2686),sr=r(96883),lr=r(34853),cr=r(7990),ur=r(89694),dr=r(76905),hr=r(10704),pr=r(68045),fr=r(11343),mr=r(31222),gr=r(9331),_r=r(2406),yr=r(10308),vr=r(84260),br=r(82532);const xr="UserNav_root__iVs5Y",wr="UserNav_tab__GhBRF",Ar=e=>{const{className:t,rootClassName:r,currentPage:n,isStylist:i=!1}=e,o=a()(r||xr,t),s=[...i?[{text:(0,l.jsx)(_e.sA,{id:"UserNav.yourListings"}),selected:"ManageListingsPage"===n,linkProps:{name:"ManageListingsPage"}}]:[],{text:(0,l.jsx)(_e.sA,{id:"UserNav.profileSettings"}),selected:"ProfileSettingsPage"===n,disabled:!1,linkProps:{name:"ProfileSettingsPage"}},{text:(0,l.jsx)(_e.sA,{id:"UserNav.accountSettings"}),selected:br.p.includes(n),disabled:!1,linkProps:{name:"ContactDetailsPage"}}];return(0,l.jsx)(yr.$r,{className:o,tabRootClassName:wr,tabs:s,skin:"dark"})};Ar.defaultProps={className:null,rootClassName:null};const{string:Sr}=ge(),Er=Ar;var Tr=r(71594),Pr=r(23526);
2const Cr="CustomExtendedDataField_customField__qwZyL",Ir=e=>e.map((e=>({key:"".concat(e.option),label:e.label}))),Mr=e=>{var t;return(null===e||void 0===e||null===(t=e.saveConfig)||void 0===t?void 0:t.label)||(null===e||void 0===e?void 0:e.label)},kr=e=>{const{name:t,fieldConfig:r,defaultRequiredMessage:n,formId:i,intl:o}=e,{enumOptions:a=[],saveConfig:s}=r||{},{placeholderMessage:c,isRequired:u,requiredMessage:d}=s||{},h=u?{validate:(0,Pr.mw)(d||n)}:{},p=c||o.formatMessage({id:"CustomExtendedDataField.placeholderSingleSelect"}),f=Ir(a),m=Mr(r);return f?(0,l.jsxs)(cr.A,(0,C.A)((0,C.A)({className:Cr,name:t,id:i?"".concat(i,".").concat(t):t,label:m},h),{},{children:[(0,l.jsx)("option",{disabled:!0,value:"",children:p}),f.map((e=>{const t=e.key;return(0,l.jsx)("option",{value:t,children:e.label},t)}))]})):null},Or=e=>{const{name:t,fieldConfig:r,defaultRequiredMessage:n,formId:i}=e,{enumOptions:o=[],saveConfig:a}=r||{},{isRequired:s,requiredMessage:c}=a||{},u=Mr(r),d=s?{validate:(0,Pr.OR)(c||n)}:{};return o?(0,l.jsx)(pr.A,(0,C.A)({className:Cr,id:i?"".concat(i,".").concat(t):t,name:t,label:u,options:Ir(o)},d)):null},Rr=e=>{const{name:t,fieldConfig:r,defaultRequiredMessage:n,formId:i}=e,{placeholderMessage:o,isRequired:a,requiredMessage:s}=(null===r||void 0===r?void 0:r.saveConfig)||{},c=Mr(r),u=a?{validate:(0,Pr.mw)(s||n)}:{},d=o||"";return(0,l.jsx)(dr.A,(0,C.A)({className:Cr,id:i?"".concat(i,".").concat(t):t,name:t,type:"textarea",label:c,placeholder:d},u))},Lr=e=>{const{name:t,fieldConfig:r,defaultRequiredMessage:n,formId:i,intl:o}=e,{minimum:a,maximum:s,saveConfig:c}=r,{placeholderMessage:u,isRequired:d,requiredMessage:h}=c||{},p=Mr(r),f=u||o.formatMessage({id:"CustomExtendedDataField.placeholderLong"}),m=o.formatMessage({id:"CustomExtendedDataField.numberTooSmall"},{min:a}),g=o.formatMessage({id:"CustomExtendedDataField.numberTooBig"},{max:s});return(0,l.jsx)(dr.A,{className:Cr,id:i?"".concat(i,".").concat(t):t,name:t,type:"number",step:"1",parse:e=>{const t=Number.parseInt(e,10);return Number.isNaN(t)?null:t},label:p,placeholder:f,validate:e=>((e,t,r)=>d&&null==e?h||n:(0,Pr.L6)(e,r,t,m,g))(e,a,s)})},Dr=e=>{const{name:t,fieldConfig:r,defaultRequiredMessage:n,formId:i,intl:o}=e,{placeholderMessage:a,isRequired:s,requiredMessage:c}=(null===r||void 0===r?void 0:r.saveConfig)||{},u=Mr(r),d=s?{validate:(0,Pr.mw)(c||n)}:{},h=a||o.formatMessage({id:"CustomExtendedDataField.placeholderBoolean"});return(0,l.jsx)(hr.A,(0,C.A)({className:Cr,id:i?"".concat(i,".").concat(t):t,name:t,label:u,placeholder:h},d))},Nr=e=>{const t=(0,_e.tz)(),{enumOptions:r=[],schemaType:n}=(null===e||void 0===e?void 0:e.fieldConfig)||{},i=(e,r)=>(0,l.jsx)(e,(0,C.A)((0,C.A)({},r),{},{intl:t}));return n===ye.bd&&r?i(kr,e):n===ye.Pm&&r?i(Or,e):n===ye.Zz?i(Rr,e):n===ye.Sh?i(Lr,e):n===ye.IL?i(Dr,e):null};var Fr=r(5139),zr=r(34952),jr=r(68737),Br=r(22015),Ur=r(29490),Vr=r(63775),qr=r(30496);const Hr=e=>"en"===e?"en_US":e,Gr=(e,t)=>{const{marketplaceRootURL:r,facebookAppId:n,marketplaceName:i,siteTwitterHandle:o,googleSearchConsole:a}=t,s=e.author||i,l=null===a||void 0===a?void 0:a.googleSiteVerification,c=l?[{name:"google-site-verification",content:l}]:[],u=[{name:"description",content:e.description},{name:"author",content:s},...c],d=(e=>{const{openGraphType:t,socialSharingTitle:r,socialSharingDescription:n,published:i,updated:o,url:a,locale:s,facebookImages:l,facebookAppId:c,marketplaceName:u}=e;if(!(r&&n&&t&&a&&l))return console&&console.warn&&console.warn("Can't create Open Graph meta tags:\n        socialSharingTitle, socialSharingDescription, openGraphType, url, and facebookImages are needed."),[];const d=[{property:"og:description",content:n},{property:"og:title",content:r},{property:"og:type",content:t},{property:"og:url",content:a},{property:"og:locale",content:Hr(s)}];return l&&l.length>0&&l.forEach((e=>{d.push({property:"og:image",content:e.url}),e.width&&e.height&&(d.push({property:"og:image:width",content:e.width}),d.push({property:"og:image:height",content:e.height}))})),u&&d.push({property:"og:site_name",content:u}),c&&d.push({property:"fb:app_id",content:c}),i&&d.push({property:"article:published_time",content:i}),o&&d.push({property:"article:modified_time",content:o}),d})((0,C.A)((0,C.A)({},e),{},{facebookAppId:n,marketplaceName:i})),h=(e=>{const{socialSharingTitle:t,socialSharingDescription:r,twitterHandle:n,twitterImages:i,url:o,marketplaceRootURL:a,siteTwitterHandle:s}=e;if(!(t&&r&&o))return console&&console.warn&&console.warn("Can't create twitter card meta tags:\n        socialSharingTitle, socialSharingDescription, and url are needed."),[];const l=[{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:t},{name:"twitter:description",content:r},{name:"twitter:url",content:o}];return s&&l.push({name:"twitter:site",content:s}),i&&i.length>
20&&i.forEach((e=>{l.push({name:"twitter:image",content:e.url})})),n&&l.push({name:"twitter:creator",content:n}),a&&l.push({name:"twitter:domain",content:a}),l})((0,C.A)((0,C.A)({},e),{},{marketplaceRootURL:r,siteTwitterHandle:o}));return[...u,...d,...h]};var Wr=r(95565);const Yr="Page_root__cFSIj",Zr="Page_content__AW2GK",Kr="Page_scrollingDisabled__9bMgr",Xr=e=>{e.preventDefault()},Jr=e=>{const t=(0,Wr.tj)(e);return"".concat(t,"/site.webmanifest")};class Qr extends i.Component{constructor(e){super(e),this.scrollPosition=0,this.contentDiv=null,this.scrollingDisabledChanged=this.scrollingDisabledChanged.bind(this)}componentDidMount(){document.addEventListener("dragover",Xr),document.addEventListener("drop",Xr);const e=document.getElementById("page-schema");e&&e.remove()}componentWillUnmount(){document.removeEventListener("dragover",Xr),document.removeEventListener("drop",Xr)}scrollingDisabledChanged(e){e&&e!==this.scrollingDisabled?(this.scrollPosition=window.pageYOffset||document.documentElement.scrollTop,this.scrollingDisabled=e):e!==this.scrollingDisabled&&(this.scrollingDisabled=e)}render(){var e;const{className:t,rootClassName:r,children:n,location:i,intl:o,scrollingDisabled:s,referrer:c,author:u,openGraphType:d,description:h,facebookImages:p,published:f,schema:m,socialSharing:g,title:_,twitterHandle:y,twitterImages:v,updated:b,config:x,routeConfiguration:w}=this.props,A=a()(r||Yr,t,{[Kr]:s});this.scrollingDisabledChanged(s);const S=x.marketplaceRootURL,E=c&&"unsafe-url"!==c,T=(0,se.JA)(w,i,E),P="".concat(S).concat(T),I=x.marketplaceName,M=o.formatMessage({id:"Page.schemaTitle"},{marketplaceName:I}),k=o.formatMessage({id:"Page.schemaDescription"}),O=_||M,R=h||k,{title:L,description:D,images1200:N,images600:F}=g||{},z=[{name:"facebook",url:x.branding.facebookImage,width:1200,height:630}],j=x.branding.twitterImage,B=Gr({author:u,openGraphType:d,socialSharingTitle:L||O,socialSharingDescription:D||R,description:R,facebookImages:N||p||z,twitterImages:F||v||[{name:"twitter",url:j,width:600,height:314}],twitterHandle:y,published:f,updated:b,url:P,locale:o.locale},x);var U;const V=[x.siteFacebookPage,(U=x.siteTwitterHandle)&&"@"===U.charAt(0)?"https://twitter.com/".concat(U.substring(1)):U?"https://twitter.com/".concat(U):null,x.siteInstagramPage].filter((e=>null!=e)),q=null!=m,H=q&&Array.isArray(m)?m:q?[m]:[],G=null!==(e=x.address)&&void 0!==e&&e.streetAddress?{address:x.address}:{},W=JSON.stringify([...H,(0,C.A)({"@context":"http://schema.org","@type":"Organization","@id":"".concat(S,"#organization"),url:S,name:I,sameAs:V,logo:x.branding.logoImageMobileURL},G),{"@context":"http://schema.org","@type":"WebSite",url:S,description:k,name:M}]),Y=s?{marginTop:"".concat(-1*this.scrollPosition,"px")}:{},Z=this.contentDiv&&this.contentDiv.style.marginTop;!s&&Z&&window.requestAnimationFrame((()=>{window.scrollTo(0,this.scrollPosition)}));const K=(e=>{const t=e.branding.favicon;return"imageAsset"===(null===t||void 0===t?void 0:t.type)?Object.values(t.attributes.variants):[]})(x),X=(e=>{const t=e.branding.appIcon,r=("imageAsset"===(null===t||void 0===t?void 0:t.type)?Object.values(t.attributes.variants):[]).find((e=>180===e.width&&180===e.height));return null===r||void 0===r?void 0:r.url})(x),J=(0,qr.q)(x.branding);return(0,l.jsxs)("div",{className:A,style:J,id:"page",children:[(0,l.jsxs)(Ur.mg,{htmlAttributes:{lang:o.locale},children:[(0,l.jsx)("title",{children:O}),c?(0,l.jsx)("meta",{name:"referrer",content:c}):null,(0,l.jsx)("link",{rel:"canonical",href:P}),K.map((e=>(0,l.jsx)("link",{rel:"icon",type:"image/png",sizes:"".concat(e.width,"x").concat(e.height),href:e.url},"icon_".concat(e.width)))),X?(0,l.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:X}):null,(0,l.jsx)("link",{rel:"manifest",href:Jr(S)}),(0,l.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,l.jsx)("meta",{httpEquiv:"Content-Language",content:o.locale}),B.map(((e,t)=>(0,l.jsx)("meta",(0,C.A)({},e),t))),(0,l.jsx)("script",{id:"page-schema",type:"application/ld+json",children:W.replace(/</g,"\\u003c")})]}),(0,l.jsx)("div",{className:Zr,style:Y,ref:e=>{this.contentDiv=e},children:n})]})}}Qr.defaultProps={className:null,rootClassName:null,children:null,author:null,openGraphType:"website",description:null,facebookImages:null,twitterImages:null,published:null,referrer:null,schema:null,socialSharing:null,twitterHandle:null,updated:null};const $r=e=>{const t=(0,Vr._r)(),r=(0,ae.Z6)(),n=(0,Oe.zy)(),i=(0,_e.tz)();return(0,l.jsx)(Qr,(0,C.A)({config:t,routeConfiguration:r,location:n,intl:i},e))};var en=r(70621),tn=r(11360);const rn="StripeConnectAccountStatusBox_verificiationBox__jaIeN",nn="StripeConnectAccountStatusBox_verificiationBoxTextWrapper__8At4K",on="StripeConnectAccountStatusBox_verificationBoxTitle__BLpLZ h5",an="StripeConnectAccountStatusBox_verificationBoxText__SXBnT h5",sn="StripeConnectAccountStatusBox_getVerifiedButton__yU
2QIH h5",ln="StripeConnectAccountStatusBox_verficiationNeededBox__rmeRW",cn="StripeConnectAccountStatusBox_verficiationErrorBox__5qeJV",un="StripeConnectAccountStatusBox_verficiationSuccessBox__JDzmZ",dn="StripeConnectAccountStatusBox_verificationBoxSuccessTextWrapper__FOprA",hn="StripeConnectAccountStatusBox_editVerificationButton__cjFC7 h4",pn="StripeConnectAccountStatusBox_icon__5bt67",fn="StripeConnectAccountStatusBox_iconEditPencil__6w5pg",mn="StripeConnectAccountStatusBox_spinner__IlqXe",gn=e=>{const{type:t,onGetStripeConnectAccountLink:r,inProgress:n,disabled:i}=e;if("verificationNeeded"===t)return(0,l.jsxs)("div",{className:a()(rn,ln),children:[(0,l.jsxs)("div",{className:nn,children:[(0,l.jsx)("div",{className:on,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.verificationNeededTitle"})}),(0,l.jsx)("div",{className:an,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.verificationNeededText"})})]}),(0,l.jsx)(mt.jn,{className:sn,spinnerClassName:mn,type:"button",inProgress:n,disabled:i,onClick:r,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.getVerifiedButton"})})]});if("verificationSuccess"===t)return(0,l.jsxs)("div",{className:a()(rn,un),children:[(0,l.jsx)("div",{className:a()(nn,dn),children:(0,l.jsxs)("div",{className:on,children:[(0,l.jsx)(P.A,{className:pn}),(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.verificationSuccessTitle"})]})}),(0,l.jsxs)(mt.bG,{className:hn,spinnerClassName:mn,type:"button",inProgress:n,disabled:i,onClick:r,children:[(0,l.jsx)(_.A,{className:pn,pencilClassName:fn}),(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.editAccountButton"})]})]});if("verificationError"===t)return(0,l.jsxs)("div",{className:a()(rn,cn),children:[(0,l.jsxs)("div",{className:nn,children:[(0,l.jsx)("div",{className:on,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.verificationFailedTitle"})}),(0,l.jsx)("div",{className:an,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.verificationFailedText"})})]}),(0,l.jsx)(mt.jn,{className:sn,spinnerClassName:mn,type:"button",inProgress:n,disabled:i,onClick:r,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountStatusBox.getVerifiedButton"})})]});throw new Error("Unknown type ".concat(t," for StripeConnectAccountStatusBox"))};var _n=r(58285);const yn="StripePaymentAddress_root__-+3o-",vn="StripePaymentAddress_formRow__9lDrK",bn="StripePaymentAddress_field__mdaKh",xn=e=>{const{className:t,intl:r,disabled:n,form:i,fieldId:o,card:a,locale:s}=e,c=r.formatMessage({id:"StripePaymentAddress.optionalText"}),u=r.formatMessage({id:"StripePaymentAddress.addressLine1Label"}),d=r.formatMessage({id:"StripePaymentAddress.addressLine1Placeholder"}),h=Pr.mw(r.formatMessage({id:"StripePaymentAddress.addressLine1Required"})),p=r.formatMessage({id:"StripePaymentAddress.addressLine2Label"},{optionalText:c}),f=r.formatMessage({id:"StripePaymentAddress.addressLine2Placeholder"}),m=r.formatMessage({id:"StripePaymentAddress.postalCodeLabel"}),g=r.formatMessage({id:"StripePaymentAddress.postalCodePlaceholder"}),_=Pr.mw(r.formatMessage({id:"StripePaymentAddress.postalCodeRequired"})),y=r.formatMessage({id:"StripePaymentAddress.cityLabel"}),v=r.formatMessage({id:"StripePaymentAddress.cityPlaceholder"}),b=Pr.mw(r.formatMessage({id:"StripePaymentAddress.cityRequired"})),x=r.formatMessage({id:"StripePaymentAddress.stateLabel"},{optionalText:c}),w=r.formatMessage({id:"StripePaymentAddress.statePlaceholder"}),A=r.formatMessage({id:"StripePaymentAddress.countryLabel"}),S=r.formatMessage({id:"StripePaymentAddress.countryPlaceholder"}),E=Pr.mw(r.formatMessage({id:"StripePaymentAddress.countryRequired"})),T=(0,_n.A)(s);return(0,l.jsxs)("div",{className:t||yn,children:[(0,l.jsxs)("div",{className:vn,children:[(0,l.jsx)(dr.A,{id:"".concat(o,".addressLine1"),name:"addressLine1",disabled:n,className:bn,type:"text",autoComplete:"billing address-line1",label:u,placeholder:d,validate:h,onUnmount:()=>i.change("addressLine1",void 0)}),(0,l.jsx)(dr.A,{id:"".concat(o,".addressLine2"),name:"addressLine2",disabled:n,className:bn,type:"text",autoComplete:"billing address-line2",label:p,placeholder:f,onUnmount:()=>i.change("addressLine2",void 0)})]}),(0,l.jsxs)("div",{className:vn,children:[(0,l.jsx)(dr.A,{id:"".concat(o,".postalCode"),name:"postal",disabled:n,className:bn,type:"text",autoComplete:"billing postal-code",label:m,placeholder:g,validate:_,onUnmount:()=>i.change("postal",void 0),onChange:e=>(e=>{const t=e.target.value;i.change("postal",t),a.update({value:{postalCode:t}})})(e)}),(0,l.jsx)(dr.A,{id:"".concat(o,".city"),name:"city",disabled:n,className:bn,type:"text",autoComplete:"billing address-level2",label:y,placeholder:v,validate:b,onUnmount:()=>i.change("city",void 0)})]}),(0,l.jsxs)("div",{className:vn,children:[(0,l.jsx)(dr.A,{id:"".concat(o,".state"),name:"state",disabled:n,className:bn,type:"text",autoComplete:"billing address-level1",label:x,placeholder:w,onUnmount:()=>i.change("state",void 0)}),(0,l.jsxs)(cr.A,{id:"".concat(o,".country"),name:"country",disabled:n,className:bn,label:A,validate:E,children:[(0,l.jsx)("option",{disabled:!0,value:"",children:S}),T.map((e=>(0,l.jsx)("option",{value:e.code,children:e.name},e.code)))]})]})]})};xn.defaultProps={country:null,disabled:!1,fieldId:null};const wn=xn;var An=r(50805),Sn=r(77775),En=r(1863),Tn=r(16882);const Pn={root:"StripeConnectAccountForm_root__BOHD8",disabled:"StripeConnectAccountForm_disabled__VA8P-",sectionContainer:"StripeConnectAccountForm_sectionContainer__JAn+j",formRow:"StripeConnectAccountForm_formRow__doQGz",radioButtonRow:"StripeConnectAccountForm_radioButtonRow__+D8Sp",selectCountry:"StripeConnectAccountForm_selectCountry__NGt2x",error:"StripeConnectAccountForm_error__89Oy1 marketplaceModalPasswordMargins",termsText:"Str
2ipeConnectAccountForm_termsText__-FCMb marketplaceModalHelperText",termsLink:"StripeConnectAccountForm_termsLink__f7TUd marketplaceModalHelperLink",bankDetailsStripeField:"StripeConnectAccountForm_bankDetailsStripeField__+Rvh5",missingStripeKey:"StripeConnectAccountForm_missingStripeKey__QSYR9",accountInformationTitle:"StripeConnectAccountForm_accountInformationTitle__ZrDNY",savedCountry:"StripeConnectAccountForm_savedCountry__LJxgq",savedInformation:"StripeConnectAccountForm_savedInformation__lvlxr",savedBankAccount:"StripeConnectAccountForm_savedBankAccount__eVZ95 marketplaceInputStyles"},Cn=["onSubmit"],In=e=>e.map((e=>e.code)),Mn=(e,t)=>{const r=((e,t)=>{const r=t.find((t=>t.code===e));if(!r)throw new Error("Country code not found in Stripe config ".concat(e));return r})(e,t);return r.currency},kn=e=>{const{name:t}=e;return(0,l.jsx)(Sn.D0,{id:t,name:t,type:"hidden",className:Pn.unitTypeHidden,children:e=>(0,l.jsx)("input",(0,C.A)({},null===e||void 0===e?void 0:e.input))})},On=e=>{const t=(0,ae.Z6)(),{disabled:r,countryLabel:n,showAsRequired:o,form:a,values:s,intl:c,currentUserId:u,marketplaceRootURL:d,supportedCountries:h,defaultMCC:p}=e;(0,i.useEffect)((()=>{if(!(s&&s.businessProfileURL)&&u){const e=e=>(0,se.__)("ProfilePage",t,{id:e},{}),r=!!d,n=r?d.replace(/\/$/,""):null,i=r&&!n.includes("localhost")?"".concat(n).concat(e(u.uuid)):"https://test-marketplace.com".concat(e(u.uuid));a.change("businessProfileURL",i)}!(s&&s.businessProfileMCC)&&p&&a.change("businessProfileMCC",p)}),[]);const f=s.country;return(0,l.jsxs)("div",{className:Pn.sectionContainer,children:[(0,l.jsx)(Z,{as:"h3",children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.accountTypeTitle"})}),(0,l.jsxs)("div",{className:Pn.radioButtonRow,children:[(0,l.jsx)(sr.A,{id:"individual",name:"accountType",label:c.formatMessage({id:"StripeConnectAccountForm.individualAccount"}),value:"individual",showAsRequired:o}),(0,l.jsx)(sr.A,{id:"company",name:"accountType",label:c.formatMessage({id:"StripeConnectAccountForm.companyAccount"}),value:"company",showAsRequired:o})]}),(0,l.jsx)(kn,{name:"businessProfileURL"}),(0,l.jsx)(kn,{name:"businessProfileMCC"}),(0,l.jsxs)(cr.A,{id:"country",name:"country",disabled:r,className:Pn.selectCountry,autoComplete:"country",label:n,validate:Pr.mw(c.formatMessage({id:"StripeConnectAccountForm.countryRequired"})),children:[(0,l.jsx)("option",{disabled:!0,value:"",children:c.formatMessage({id:"StripeConnectAccountForm.countryPlaceholder"})}),In(h).map((e=>(0,l.jsx)("option",{value:e,children:c.formatMessage({id:"StripeConnectAccountForm.countryNames.".concat(e)})},e)))]}),f?(0,l.jsx)(gr.A,{className:Pn.bankDetailsStripeField,disabled:r,name:"bankAccountToken",formName:"StripeConnectAccountForm",country:f,currency:Mn(f,h),validate:Pr.mw(" ")}):null]})},Rn=e=>{const{disabled:t,countryLabel:r,savedCountry:n,showCardUpdateInput:i,submitInProgress:o,setShowCardUpdateInput:a,stripeBankAccountLastDigits:s,supportedCountries:c}=e;return(0,l.jsxs)("div",{className:Pn.savedInformation,children:[(0,l.jsx)("label",{className:Pn.accountInformationTitle,children:r}),(0,l.jsx)("div",{className:Pn.savedCountry,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.countryNames.".concat(n)})}),(0,l.jsx)("label",{className:Pn.accountInformationTitle,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.bankAccountLabel"})}),i&&n?(0,l.jsx)(gr.A,{className:Pn.bankDetailsStripeField,disabled:t,name:"bankAccountToken",formName:"StripeConnectAccountForm",country:n,currency:Mn(n,c),validate:Pr.mw(" ")}):o?null:(0,l.jsxs)(mt.bG,{className:Pn.savedBankAccount,onClick:()=>a(!0),children:["\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022 ",s]})]})},Ln=e=>{const{stripeAccountError:t,stripeAccountLinkError:r}=e,n=(0,Tn.q1)(t)?(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.createStripeAccountFailedWithStripeError",values:{stripeMessage:t.apiErrors[0].meta.stripeMessage}}):t?(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.createStripeAccountFailed"}):(0,Tn.q1)(r)?(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.createStripeAccountLinkFailedWithStripeError",values:{stripeMessage:r.apiErrors[0].meta.stripeMessage}}):r?(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.createStripeAccountLinkFailed"}):null;return n?(0,l.jsx)("div",{className:Pn.error,children:n}):null},Dn=e=>{const[t,r]=(0,i.useState)(!1),n=(0,Vr._r)(),{onSubmit:o}=e,s=(0,I.A)(e,Cn),c=e.stripeConnected,u=n.stripe.publishableKey,d=n.stripe.supportedCountries;return(0,l.jsx)(Sn.lV,(0,C.A)((0,C.A)({},s),{},{onSubmit:e=>o((0,C.A)((0,C.A)({},e),{},{stripePublishableKey:u}),c),mutators:(0,C.A)({},En.A),render:e=>{const{rootClassName:i,className:o,children:s,stripeAccountError:c,stripeAccountLinkError:u,disabled:h,handleSubmit:p,inProgress:f,intl:m,invalid:g,pristine:_,ready:y,savedCountry:v,stripeAccountFetched:b,stripeBankAccountLastDigits:x,submitButtonText:w,form:A,values:S,stripeConnected:E,currentUser:T}=e,P=E&&b&&v,C=f,I=_||g||h||C,M=m.formatMessage({id:"StripeConnectAccountForm.countryLabel"}),k=a()(i||Pn.root,o,{[Pn.disabled]:h}),O=_,R=T?T.id:null,L=E?(0,l.jsx)(Rn,{disabled:h,countryLabel:M,supportedCountries:d,savedCountry:v,stripeBankAccountLastDigits:x,showCardUpdateInput:t,values:S,submitInProgress:C,setShowCardUpdateInput:r,intl:m}):(0,l.jsx)(On,{stripeConnected:E,disabled:h,showAsRequired:O,countryLabel:M,supportedCountries:d,marketplaceRootURL:n.marketplaceRootURL,defaultMCC:n.stripe.defaultMCC,currentUserId:R,form:A,values:S,intl:m}),D=(0,l.jsx)(ie,{href:"https://stripe.com/connect-account/legal",className:Pn.termsLink,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.stripeConnectedAccountTermsLink"})}),N=!E||P?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:Pn.termsText,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.stripeToSText",values:{stripeConnectedAccountTermsLink:D}})}),(0,l.jsx)(mt.Ay,{type:"submit",inProgress:C,disabled:I,ready:y,children:w||(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.submitButtonText"})})]}):null;return n.stripe.publishableKey?(0,l.jsxs)(fe,{className:k,onSubmit:e=>{r(!1),p(e)},children:[!E||P?L:(0,l.jsx)("div",{className:Pn.savedInformation,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.loadingStripeAccountData"})}),(0,l.jsx)(Ln,{stripeAccountError:c,stripeAccountLinkError:u}),s,N]}):(0,l.jsx)("div",{className:Pn.missingStripeKey,children:(0,l.jsx)(_e.sA,{id:"StripeConnectAccountForm.missingStripeKey"})})}}))};Dn.defaultProps={className:null,currentUser:null,stripeAccountError:null,disabled:!1,inProgress:!1,ready:!1,savedCountry:null,
2stripeBankAccountLastDigits:null,submitButtonText:null,fieldRenderProps:null};const Nn=(0,An.Zz)(_e.j4)(Dn);var Fn=r(21563);const zn="LayoutSingleColumn_root__A2vUK",jn="LayoutSingleColumn_topbar__hJg2i",Bn="LayoutSingleColumn_main__Nyvu9",Un=["className","rootClassName","mainColumnClassName","children","topbar","footer"],Vn=e=>{const{className:t,rootClassName:r,mainColumnClassName:n,children:i,topbar:o,footer:s}=e,c=(0,I.A)(e,Un),u=a()(r||zn,t);return(0,l.jsx)(Fn.A,(0,C.A)((0,C.A)({areas:"\n    topbar\n    main\n    footer\n  ",className:u},c),{},{children:e=>{const{Topbar:t,Main:r,Footer:c}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{as:"header",className:jn,children:o}),(0,l.jsx)(r,{as:"main",className:a()(Bn,n),children:i}),(0,l.jsx)(c,{children:s})]})}}))};Vn.displayName="LayoutSingleColumn",Vn.defaultProps={className:null,rootClassName:null,footer:null};const qn=Vn;var Hn=r(79818);const Gn="LayoutSideNavigation_root__I37Sb",Wn="LayoutSideNavigation_topbar__aO7a1",Yn="LayoutSideNavigation_container__hJKl1",Zn="LayoutSideNavigation_main__xRnNu",Kn="LayoutSideNavigation_sideNav__DtD6t",Xn="LayoutSideNavigation_tabs__QIDZ1",Jn="LayoutSideNavigation_tab__6O1i0",{useGlobalState:Qn}=(e=>{let t=e;const r=Object.fromEntries(Object.keys(e).map((e=>[e,new Set]))),n=(e,n)=>{t=(0,C.A)((0,C.A)({},t),{},{[e]:n}),r[e].forEach((e=>e()))};return{setGlobalState:n,useGlobalState:e=>{const[o,a]=(0,i.useState)(t[e]);return(0,i.useEffect)((()=>{const n=()=>{a(t[e])};return r[e].add(n),n(),()=>r[e].delete(n)}),[]),[o,t=>n(e,t)]}}})({scrollLeft:0}),$n=e=>{const[t,r]=Qn("scrollLeft");(0,i.useEffect)((()=>{const{currentPage:n,viewport:i}=e;let o=null;const{width:a}=i;return a>0&&a<=1023&&(o=window.setTimeout((()=>{((e,t,r)=>{const n=document.querySelector("#".concat(e,"Tab"));if(n){const e=n.parentElement,i=e.getBoundingClientRect(),o=e.scrollWidth-i.width,a=e.scrollLeft>0,s=a?e.scrollLeft:t,l=n.getBoundingClientRect().left-i.left,c=e.scrollLeft+l>o?o:e.scrollLeft+l;(!a||a&&s!==c)&&(e.scrollTo({left:s}),e.scrollTo({left:c,behavior:"smooth"})),r(c)}})(n,t,r)}),300)),()=>{var e;const t=document.querySelector("#".concat(n,"Tab"));r(null===t||void 0===t||null===(e=t.parentElement)||void 0===e?void 0:e.scrollLeft),o&&clearTimeout(o)}}));const{currentPage:n}=e,o=[{text:(0,l.jsx)(_e.sA,{id:"LayoutWrapperAccountSettingsSideNav.contactDetailsTabTitle"}),selected:"ContactDetailsPage"===n,id:"ContactDetailsPageTab",linkProps:{name:"ContactDetailsPage"}},{text:(0,l.jsx)(_e.sA,{id:"LayoutWrapperAccountSettingsSideNav.passwordTabTitle"}),selected:"PasswordChangePage"===n,id:"PasswordChangePageTab",linkProps:{name:"PasswordChangePage"}},{text:(0,l.jsx)(_e.sA,{id:"LayoutWrapperAccountSettingsSideNav.paymentsTabTitle"}),selected:"StripePayoutPage"===n,id:"StripePayoutPageTab",linkProps:{name:"StripePayoutPage"}},{text:(0,l.jsx)(_e.sA,{id:"LayoutWrapperAccountSettingsSideNav.paymentMethodsTabTitle"}),selected:"PaymentMethodsPage"===n,id:"PaymentMethodsPageTab",linkProps:{name:"PaymentMethodsPage"}}];return(0,l.jsx)(_r.A,{rootClassName:Xn,tabRootClassName:Jn,tabs:o})};$n.defaultProps={className:null,rootClassName:null,children:null,currentPage:null};const ei=(0,An.Zz)(Hn.LK)($n),ti=["className","rootClassName","containerClassName","mainColumnClassName","sideNavClassName","children","topbar","footer","sideNav","useAccountSettingsNav","currentPage"],ri=e=>{const{className:t,rootClassName:r,containerClassName:n,mainColumnClassName:i,sideNavClassName:o,children:s,topbar:c,footer:u,sideNav:d,useAccountSettingsNav:h,currentPage:p}=e,f=(0,I.A)(e,ti),m=a()(r||Gn,t),g=n||Yn;return(0,l.jsx)(Fn.A,(0,C.A)((0,C.A)({areas:"\n    topbar\n    main\n    footer\n  ",className:m},f),{},{children:e=>{const{Topbar:t,Main:r,Footer:n}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{as:"header",className:Wn,children:c}),(0,l.jsxs)(r,{as:"div",className:g,children:[(0,l.jsxs)("aside",{className:a()(Kn,o),children:[h?(0,l.jsx)(ei,{currentPage:p}):null,d]}),(0,l.jsx)("main",{className:a()(Zn,i),children:s})]}),(0,l.jsx)(n,{children:u})]})}}))};ri.displayName="LayoutSideNavigation",ri.defaultProps={className:null,rootClassName:null,sideNav:null,footer
2:null,useAccountSettingsNav:!1,currentPage:null};const ni=ri,ii=Fn.A;var oi=r(73682);const ai={root:"MaintenanceMode_root__XHuot",header:"MaintenanceMode_header__Zeq8o",content:"MaintenanceMode_content__Vxx-W"},si=e=>{const t=oi.A.dev;return(0,l.jsx)(qn,{mainColumnClassName:ai.layoutWrapperMain,topbar:(0,l.jsx)("div",{className:ai.header,title:"Maintenance mode"}),footer:null,children:(0,l.jsx)("section",{id:"content",className:ai.root,children:(0,l.jsxs)("div",{className:ai.content,children:[(0,l.jsx)("h2",{children:(0,l.jsx)(_e.sA,{id:"MaintenanceMode.title",defaultMessage:"Maintenance mode"})}),(0,l.jsx)("p",{children:(0,l.jsx)(_e.sA,{id:"MaintenanceMode.info",defaultMessage:"The marketplace is not fully operational at the moment."})}),t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{children:"Check that all the configuration assets are added to your marketplace environment through the Marketplace Console."}),(0,l.jsx)("p",{children:"Check also browser's developer tools for printed errors."})]}):(0,l.jsx)("p",{children:(0,l.jsx)(_e.sA,{id:"MaintenanceMode.howToProceed",defaultMessage:"Try refreshing the page and if that does not solve the issue, contact the marketplace admins."})})]})})})},li="ModalMissingInformation_root__VY+RD",ci="ModalMissingInformation_modalTitle__2t2Ec marketplaceModalTitleStyles",ui="ModalMissingInformation_modalMessage__eyZQ3 marketplaceModalParagraphStyles",di="ModalMissingInformation_email__VqFCO",hi="ModalMissingInformation_helperLink__ph3M6 a marketplaceModalHelperLink",pi="ModalMissingInformation_helperText__Ao8Ox marketplaceModalHelperText",fi="ModalMissingInformation_error__6QpF7 marketplaceModalPasswordMargins",mi="ModalMissingInformation_bottomWrapper__T2rHB marketplaceModalBottomWrapper",gi="ModalMissingInformation_modalIcon__7NcCM marketplaceModalIconStyles",_i=e=>{const{className:t,user:r,sendVerificationEmailInProgress:n,sendVerificationEmailError:i,onResendVerificationEmail:o}=e,a=r.id?(0,l.jsx)("span",{className:di,children:r.attributes.email}):"",s=(0,l.jsx)(mt.bG,{rootClassName:hi,onClick:o,children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.resendEmailLinkText"})}),c=(0,l.jsx)(ke.A,{className:hi,name:"ContactDetailsPage",children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.fixEmailLinkText"})}),u=(0,Tn.Lg)(i)?"ModalMissingInformation.resendFailedTooManyRequests":"ModalMissingInformation.resendFailed",d=i?(0,l.jsx)("p",{className:fi,children:(0,l.jsx)(_e.sA,{id:u})}):null;return(0,l.jsxs)("div",{className:t,children:[(0,l.jsx)(y.A,{className:gi}),(0,l.jsx)("p",{className:ci,children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.verifyEmailTitle"})}),(0,l.jsx)("p",{className:ui,children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.verifyEmailText"})}),(0,l.jsx)("p",{className:ui,children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.checkInbox",values:{email:a}})}),d,(0,l.jsxs)("div",{className:mi,children:[(0,l.jsx)("p",{className:pi,children:n?(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.sendingEmail"}):(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.resendEmail",values:{resendEmailLink:s}})}),(0,l.jsx)("p",{className:pi,children:(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.fixEmail",values:{fixEmailLink:c}})})]})]})},yi=["LoginPage","SignupPage","ContactDetailsPage","EmailVerificationPage","PasswordResetPage","StripePayoutPage"],vi="EMAIL_VERIFICATION";class bi extends i.Component{constructor(e){super(e),this.state={showMissingInformationReminder:null,hasSeenMissingInformationReminder:!1},this.handleMissingInformationReminder=this.handleMissingInformationReminder.bind(this)}componentDidUpdate(){const{currentUser:e,currentUserHasListings:t,currentUserHasOrders:r,location:n}=this.props,i=(0,ve.vs)(e);this.handleMissingInformationReminder(i,t,r,n)}handleMissingInformationReminder(e,t,r,n){const i=this.props.routeConfiguration,o=yi.map((e=>(0,se.pL)(e,i))).includes(n.pathname),a=n.pathname!==this.props.location.pathname,s=!this.state.showMissingInformationReminder&&!this.state.hasSeenMissingInformationReminder;if(!o&&(s||a)){const n=t||!0===r,i=!!e.id&&!e.attributes.emailVerified;n&&i&&this.setState({showMissingInformationReminder:vi})}}render(){const{rootClassName:e,className:t,containerClassName:r,currentUser:n,sendVerificationEmailInProgress:i,sendVerificationEmailError:o,onManageDisableScrolling:s,onResendVerificationEmail
2:c}=this.props,u=(0,ve.vs)(n),d=a()(e||li,t);let h=null;u&&u.id&&this.state.showMissingInformationReminder===vi&&(h=(0,l.jsx)(_i,{className:d,user:u,onResendVerificationEmail:c,sendVerificationEmailInProgress:i,sendVerificationEmailError:o}));const p=(0,l.jsx)(_e.sA,{id:"ModalMissingInformation.closeVerifyEmailReminder"});return(0,l.jsx)(nr.A,{id:"MissingInformationReminder",containerClassName:r,isOpen:!!this.state.showMissingInformationReminder,onClose:()=>{this.setState({showMissingInformationReminder:null,hasSeenMissingInformationReminder:!0})},usePortal:!0,onManageDisableScrolling:s,closeButtonMessage:p,children:h})}}bi.defaultProps={className:null,rootClassName:null,currentUser:null};const xi=e=>{const t=(0,ae.Z6)();return(0,l.jsx)(bi,(0,C.A)({routeConfiguration:t},e))};var wi=r(879);r.n(wi)().accessToken="pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw";const Ai="RatingStars_root__0bJG4",Si="RatingStars_star__zIJNJ",Ei="RatingStars_fullStar__ALVBO",Ti="RatingStars_halfStar__WjccJ",Pi="RatingStars_rating__4EW+L",Ci="RatingStars_reviewCount__536WB",Ii=e=>{let{className:t="",reviews:r,listingId:n}=e;if(!r||!n)return null;const i=r[n]||[],o=i.length,s=o>0?i.reduce(((e,t)=>e+t.attributes.rating),0)/o:0;if(0===o)return null;const c=Math.round(2*s)/2,u=Math.floor(c),d=c%1!==0;return(0,l.jsxs)("div",{className:a()(Ai,t),children:[[...Array(5)].map(((e,t)=>(0,l.jsx)("span",{className:a()(Si,{[Ei]:t<u,[Ti]:t===u&&d}),children:"\u2605"},t))),(0,l.jsx)("span",{className:Pi,children:c.toFixed(1)}),(0,l.jsxs)("span",{className:Ci,children:["(",o,")"]})]})},Mi="OpeningHours_root__cMgSX",ki="OpeningHours_title__Jjge1",Oi="OpeningHours_list__WBCKX",Ri="OpeningHours_listItem__HAZTC",Li="OpeningHours_day__5hYhX",Di="OpeningHours_dots__Llvky",Ni="OpeningHours_hours__4Od-q",Fi="OpeningHours_closed__WHe9t",zi=e=>{let{timeSlots:t}=e;if(!t||0===Object.keys(t).length)return null;const r=t[Object.keys(t)[0]];if(r.fetchTimeSlotsInProgress)return(0,l.jsxs)("div",{className:Mi,children:[(0,l.jsx)("h3",{className:ki,children:(0,l.jsx)(_e.sA,{id:"OpeningHours.title",defaultMessage:"This week's availability"})}),(0,l.jsx)("p",{children:"Loading availability..."})]});if(r.fetchTimeSlotsError)return(0,l.jsxs)("div",{className:Mi,children:[(0,l.jsx)("h3",{className:ki,children:(0,l.jsx)(_e.sA,{id:"OpeningHours.title",defaultMessage:"This week's availability"})}),(0,l.jsx)("p",{children:"Error loading opening hours. Please try again later."})]});if(!r.timeSlots||0===r.timeSlots.length)return(0,l.jsxs)("div",{className:Mi,children:[(0,l.jsx)("h3",{className:ki,children:(0,l.jsx)(_e.sA,{id:"OpeningHours.title",defaultMessage:"This week's availability"})}),(0,l.jsx)("p",{children:"Time slots unavailable."})]});const n=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"].map((e=>{const t=r.timeSlots.filter((t=>new Date(t.attributes.start).toLocaleString("en-us",{weekday:"long"})===e));if(0===t.length)return{day:e,hours:"No availability"};const n=new Date(t[0].attributes.start).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),i=new Date(t[t.length-1].attributes.end).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return{day:e,hours:"".concat(n," - ").concat(i)}}));return(0,l.jsxs)("div",{className:Mi,children:[(0,l.jsx)("h3",{className:ki,children:(0,l.jsx)(_e.sA,{id:"OpeningHours.title",defaultMessage:"This week's availability"})}),(0,l.jsx)("ul",{className:Oi,children:n.map((e=>{let{day:t,hours:r}=e;return(0,l.jsxs)("li",{className:Ri,children:[(0,l.jsx)("span",{className:Li,children:t}),(0,l.jsx)("span",{className:Di}),(0,l.jsx)("span",{className:a()(Ni,{[Fi]:"Closed"===r}),children:r})]},t)}))})]})};var ji=r(49254),Bi=r(34535),Ui=r(28287);const Vi="AuthorCard_rootContainer__qpdH2",qi="AuthorCard_root__AvfH3",Hi="AuthorCard_content__FYozC",Gi="AuthorCard_avatar__oVIkA",Wi="AuthorCard_info__6wOaq",Yi="AuthorCard_name__CUMSC",Zi="AuthorCard_qualifications__IEWgB",Ki="AuthorCard_qualification__kez1B",Xi="AuthorCard_experience__PNHtW",Ji=e=>{let{className:t=null,rootClassName:r=null,listing:n}=e;const i=a()(r||qi,t),o=(0,ve.yw)(n.author),s=o.attributes.profile.displayName,c=o.attributes.profile.publicData.stylistqualifications,u=o.attributes.profile.publicData.hairstylisttime;return(0,l.jsx)(ke.A,{className:i,name:"ProfilePage",params:{id:o.id.uuid},children:(0,l.jsx)("div",{className:Vi,children:(0,l.jsxs)("div",{className:Hi,children:[(0,l.jsx)(Tr.VF,{user:o,className:Gi,disableProfileLink:!0}),(0,l.jsxs)("div",{className:Wi,children:[(0,l.jsx)("div",{className:Yi,children:s}),(null===c||void 0===c?void 0:c.length)>0&&(0,l.jsx)("div",{className:Zi,children:c.map(((e,t)=>(0,l.jsxs)("div",{className:Ki,children:[(0,l.jsx)(ji.A,{color:"white",size:18,style:{fill:"#E25E38"}}),(0,l.jsx)("span",{children:(0,Ui.a)(e)||e})]},t)))}),u&&(0,l.jsxs)("div",{className:Xi,children:[(0,l.jsx)(Bi.A,{color:"white",size:18,style:{fill:"#E25E38"}}),(0,l.jsxs)("span",{children:[u," years of experience"]})]})]})]})})})},Qi="SubscriptionAlert_subscriptionAlert__unqkQ",$i="SubscriptionAlert_subscriptionBar__Q2a74",eo="SubscriptionAlert_subscriptionBarContent__T+N+z",to="SubscriptionAlert_subscriptionBarLeft__3TdRj",ro="SubscriptionAlert_alertIcon__mJiNc",no="SubscriptionAlert_subscriptionMessage__CkWT5 h5",io="SubscriptionAlert_subscriptionBarRight__hNxoQ",oo="SubscriptionAlert_chooseText__Gnoee",ao="SubscriptionAlert_arrow__am
2ss5",so="SubscriptionAlert_expanded__Oq08t",lo="SubscriptionAlert_subscriptionOptions__-ZCSg",co="SubscriptionAlert_subscriptionLink__L1nq-",uo="SubscriptionAlert_subscriptionLinkYearly__Kjmv5",ho="SubscriptionAlert_subscriptionLinkContent__yDfyS",po="SubscriptionAlert_subscriptionLinkTitle__3uBgH",fo="SubscriptionAlert_subscriptionLinkSubtitle__U9onQ",mo="SubscriptionAlert_subscriptionLinkArrow__qaf2r",go=()=>{const[e,t]=(0,i.useState)(!0);return(0,l.jsxs)("div",{className:Qi,children:[(0,l.jsx)("button",{className:$i,onClick:()=>t(!e),"aria-expanded":e,"aria-controls":"subscription-options","aria-label":"Toggle subscription options",children:(0,l.jsxs)("div",{className:eo,children:[(0,l.jsxs)("div",{className:to,children:[(0,l.jsx)("div",{className:ro,children:"\u26a0\ufe0f"}),(0,l.jsx)("p",{className:no,children:"Please subscribe to start accepting inquiries."})]}),(0,l.jsxs)("div",{className:io,children:[(0,l.jsx)("span",{className:oo,children:"Choose subscription"}),(0,l.jsx)("span",{className:a()(ao,{[so]:e}),"aria-hidden":"true",children:"\u25bc"})]})]})}),e&&(0,l.jsxs)("div",{id:"subscription-options",className:lo,children:[(0,l.jsxs)("a",{href:"https://buy.stripe.com/28o15kcvW5eU7TO7sv",target:"_blank",rel:"noopener noreferrer",className:co,onClick:()=>{},children:[(0,l.jsxs)("span",{className:ho,children:[(0,l.jsx)("span",{className:po,children:"Monthly Subscription"}),(0,l.jsx)("span",{className:fo,children:"Billed monthly"})]}),(0,l.jsx)("span",{className:mo,children:"\u2192"})]}),(0,l.jsxs)("a",{href:"https://buy.stripe.com/aEUg0ecvWePu7TOeUW",target:"_blank",rel:"noopener noreferrer",className:a()(co,uo),onClick:()=>{},children:[(0,l.jsxs)("span",{className:ho,children:[(0,l.jsx)("span",{className:po,children:"Yearly Subscription"}),(0,l.jsx)("span",{className:fo,children:"Best value - Save more"})]}),(0,l.jsx)("span",{className:mo,children:"\u2192"})]})]})]})},_o=(0,n.Ay)((()=>Promise.all([r.e(6367),r.e(8179)]).then(r.bind(r,12255)))),yo=(0,n.Ay)((()=>Promise.all([r.e(6367),r.e(1328)]).then(r.bind(r,88426)))),vo=(0,n.Ay)((()=>Promise.all([r.e(6367),r.e(6212)]).then(r.bind(r,82265))))},69625:(e,t,r)=>{"use strict";r.d(t,{A:()=>Z});var n={};r.r(n),r.d(n,{dayCountAvailableForBooking:()=>h,defaultMCC:()=>p,publishableKey:()=>d,supportedCountries:()=>f});var i={};r.r(i),r.d(i,{enforceValidListingType:()=>_,listingFields:()=>m,listingTypes:()=>g});var o={};r.r(o),r.d(o,{dateRangeFilter:()=>v,mainSearch:()=>y,priceFilter:()=>b,sortConfig:()=>x});var a={};r.r(a),r.d(a,{fuzzy:()=>I,googleMapsAPIKey:()=>T,mapProvider:()=>P,mapboxAccessToken:()=>E,search:()=>C});var s={};r.r(s),r.d(s,{brandImageURL:()=>z,facebookImageURL:()=>j,logoImageDesktopURL:()=>D,logoImageMobileURL:()=>N,logoSettings:()=>F,marketplaceColor:()=>L,twitterImageURL:()=>B});var l={};r.r(l),r.d(l,{listingImage:()=>q,listingPage:()=>V,searchPage:()=>U});var c={};r.r(c),r.d(c,{googleAnalyticsId:()=>H,plausibleDomains:()=>G});var u={};r.r(u),r.d(u,{userFields:()=>W,userTypes:()=>Y});const d="pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",h=90,p="5734",f=[{code:"AU",currency:"AUD",accountConfig:{bsb:!0,accountNumber:!0}},{code:"AT",currency:"EUR",accountConfig:{iban:!0}},{code:"BE",currency:"EUR",accountConfig:{iban:!0}},{code:"BG",currency:"BGN",accountConfig:{iban:!0}},{code:"CA",currency:"CAD",accountConfig:{transitNumber:!0,institutionNumber:!0,accountNumber:!0}},{code:"CY",currency:"EUR",accountConfig:{iban:!0}},{code:"CZ",currency:"CZK",accountConfig:{iban:!0}},{code:"DK",currency:"DKK",accountConfig:{iban:!0}},{code:"EE",currency:"EUR",accountConfig:{iban:!0}},{code:"FI",currency:"EUR",accountConfig:{iban:!0}},{code:"FR",currency:"EUR",accountConfig:{iban:!0}},{code:"DE",currency:"EUR",accountConfig:{iban:!0}},{code:"GR",currency:"EUR",accountConfig:{iban:!0}},{code:"HK",currency:"HKD",accountConfig:{clearingCode:!0,branchCode:!0,accountNumber:!0}},{code:"IE",currency:"EUR",accountConfig:{iban:!0}},{code:"IT",currency:"EUR",accountConfig:{iban:!0}},{code:"JP",currency:"JPY",accountConfig:{bankName:!0,branchName:!0,bankCode:!0,branchCode:!0,accountNumber:!0,accountOwnerName:!0}},{code:"LV",currency:"EUR",accountConfig:{iban:!0}},{code:"LT",currency:"EUR",accountConfig:{iban:!0}},{code:"LU",currency:"EUR",accountConfig:{iban:!0}},{code:"MT",currency:"EUR",accountConfig:{iban:!0}},{code:"MX",currency:"MXN",accountConfig:{clabe:!0}},{code:"NL",currency:"EUR",accountConfig:{iban:!0}},{code:"NZ",currency:"NZD",accountConfig:{accountNumber:!0}},{code:"NO",currency:"NOK",accountConfig:{iban:!0}},{code:"PL",currency:"PLN",accountConfig:{iban:!0}},{code:"PT",currency:"EUR",accountConfig:{iban:!0}},{code:"RO",currency:"RON",accountConfig:{iban:!0}},{code:"SG",currency:"SGD",accountConfig:{bankCode:!0,branchCode:!0,accountNumber:!0}},{code:"SK",currency:"EUR",accountConfig:{iban:!0}},{code:"SI",currency:"EUR",accountConfig:{iban:!0}},{code:"ES",currency:"EUR",accountConfig:{iban:!0}},{code:"SE",currency:"SEK",accountConfig:{iban:!0}},{code:"CH",currency:"CHF",accountConfig:{iban:!0}},{code:"GB",currency:"GBP",accountConfig:{sortCode:!0,accountNumber:!0}},{code:"US",currency:"USD",accountConfig:{routingNumber:!0,accountNumber:!0}}],m=[],g=[{listingType:"daily-booking",label:"Daily booking",transactionType:{process:"default-booking",alias:"default-booking/release-1",unitType:"day"},defaultListingFields:{location:!0,payoutDetails:!0}}],_=!1,y={searchType:"location"},v={schemaType:"dates",availability:"time-full",dateRangeMode:"day"},b={schemaType:"price",min:0,max:1e3,step:5},x={active:!0,queryParamName:"sort",relevanceKey:"relevance",relevanceFilter:"keywords",conflictingFilters:[],options:[{key:"createdAt",labelTranslationKey:"SortBy.newest"},{key:"-createdAt",labelTranslationKey:"SortBy.oldest"},{key:"relevance",labelTranslationKey:"SortBy.relevance",labelTranslationKeyLong:"SortBy.relevanceLong"}]};var w=r(55346);const{LatLng:A,LatLngBounds:S}=w.gK,E="pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",T={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLl
2w62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_GOOGLE_MAPS_API_KEY,P="mapbox",C={suggestCurrentLocation:!0,currentLocationBoundsDistance:1e3,defaults:[]||[],sortSearchByDistance:!1},I={enabled:!1,offset:500,defaultZoomLevel:13,circleColor:"#c0392b"},M=r.p+"static/media/biketribe-logo-desktop.c130ff2b233ec5e2ef55.png",k=r.p+"static/media/biketribe-brandImage-1500.ec1b40e5a91c583c7295.jpg",O=r.p+"static/media/biketribe-facebook-sharing-1200x630.e244f01f60dd7ddc16c1.jpg",R=r.p+"static/media/biketribe-twitter-sharing-600x314.d1d46bae577cac2c840a.jpg",L="#7c3aed",D=M,N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAeGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAEgAAAABAAAASAAAAAEAAqACAAQAAAABAAAAMqADAAQAAAABAAAAMgAAAADJOUoaAAAACXBIWXMAAAsTAAALEwEAmpwYAAABWWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgoZXuEHAAAT3klEQVRoBbVaC5hU1X3/n3Nfc2dm2eUpT4FVURfFB6CiKBhTjWk/UmvRKDGJ+Qza2mCbxrQClokiYomtsaIFTfz8Wq1xo0bb+OinBo2KsgtREZ/AykvRdYVld+fO3Mc5/f3PzF2GdVn5Entgdu499zz+v//7f+4IQps/VTur14vopmldxwlh/UyQLhNZf3NdS2ZrgbQskFA8rrbNnautuei4qFkkaf/y6eXJSkTThJbHa6KJ6B9FJPKYrkmLTtzv0lpvEZZ4zdFi/bXr/LZ0bmH2b+1RXbPFlaDj5mnlC7VIFuPZS2HR/2FhkwgJC2AtLNt/s1cBBE++aXp4ohDx7zzp511J1BUH92DKV/pOY4p+MpusQrOIm/Fw2anlJtJqHj5zNCWTMzInsKPZVuEi3ZlJwLKGFMCisg7KN08P1ivSj2ibHly8JruL91p6avE0i+xfCXIpa9OJnbr0IbqXFXjPNRTzmP6aXeFAz0ma4hdt4WXLSSlItOeDghxPqJVGYba2xRoRExa8+dRwqlLxIlLJn/uWj06iyAqo5AQxsfzKQFEG3WVwknnpAUpGa/IMNCEi6Tkqc7pFdHoQBzcsm16817KslUkS3yOlpFCXukOVyYMVQ5mOSju4VOzlp3SfoEi+YAs3G6sy0+Na4Gms1R08+fYjtbdgsyjPn9rqFNaI6JYzdF0SlVaArCsBgEo6oMArxiBcUosUOiSbJUKTFInD8RkEwgFM70Xv+5DJLqsipdFah40BttZalu2sK9yrS0npaiFsClWQ2NLLF6OgG6TfxsuN6jLswGJaFMCXWgbzcwFObHWkPzFSAfSQwCCCCjsyVuHbtiXO/YdXsztTMMtOCc4krR/I2v7YYhxoyuqEuqSlN0ghxickLymRnFYkOSEgMRTL+TAfm8UDEBE+PTapdo/0Zp/U2iypO3GNZ+I0KJtDCQVkk2B71EIKBxfhBQvX5X59+5Hvg5lHwW73S6RABdhugRc3jYEklmCrIHKkReUkgPwpyVi+XVLBNkvQTAaz9JSeqxxy7xLAGltBBLS2ehEAzorJnr+PrNP3khgZEHnVtdlADjASbCCxMn/wnwKL1PYsJb8dTMnyOtI7JcnZAFTEM23MLMK4c69r9degh26aXrxIkrgBNtpJ0rp84aveW4UaRwQgwfcx898wdhsmPi2l9QN4FlyqMsB4sJmNuHncsTOLorhEOqtj6oD8N0F8qzvJ/rN2EoeVKkRH4AcTz+1gDoaZys0CGoeZj7225Sh6YAQl/wQHdxr6JCkZOYCc8L85GHqyZ2cLkUrIty3qDov/u7A1d16hAI9aqHhUubDFv5uEPyYv/ekLW7ML4EWucqSHnYRXSoIYIj7eA4gwCpTOgWO/l7YYk5C7fic539tBYhhUKLCJQiPU/Vxnevv71EqlBE0OoU3ji+T++ANyn/6YaCvmdQqpvEgJgHaE+7htZQughRId9bDHIymN99q0qbnKFXRxPFi4TnQseFXsK0ze5C5cl1kV6jLAZDCD7ESHqhSXYsprqZ+HG/hmidx720ietJeoBACs+0xc75I87RCbmYe5ZTAhkWT9ycfkPruDqAFS+RhgMrFOVKRhv+igxLczOdjm1iQRC3iHyc1zGZZpZnuODXwHs9NpXFk2rfi3ru3/axgHkCcUYYMgOS8kd9kHJOojbA5uMiFfZmO1zMJ7b85R+J3xRN0AWAcMoVCWdGWiwl+Hef8yeM/uwmTtNjVB89A4KIOlFQD8zW1wI5zlelwIPcmgc3HdARBnQJ2WbP//A8GbM2Pg2eSRPeT++y4KTxhHNANUwC84wgIQ+RSDYMYLjvaw00qreIf0jh6CmjG6ZdO7ZrlWfk0ED4YAS/olIdzXd5A8DlkG28OXLYleCqpkQTIiG1Hy1GEUfv0wErOUkkVbKop7tFRHSCcX6jC4HP5kJmzmoUWt2QeNRNJ13mqGfzLNup6djoZ31M9L27nvM4CATQTOlw+C1Yk3M+Kv7C6YUbA/6+x2shbnSS3NSTUzVlbo5mAzz+pyMMK3/eFMbaLpApjBjqqrISONArK7WzjXEe45ZQED+4xs+acRWee3E4JHZcMU9R/7DSIM8T4ckAs74PvaxgDBN/tbn1T21STZ8SDiT5bCHo60BrlUqeiCLAxo7AXyFsIBdyVafNdFYERepPRGi6wrEOiGIqhyjEi5xpvUbtz3nhcaqBkisUAoSG0YTOp9pFScAfD66bosFTgU2dhD1opuqDf2zxAyjlKiEMoQ4zIZK5PtjkrPhDrzcJW0SugvTNVZVwbvWJY7LolDzoOk98hWEiMQK9jNcmPoLpxFgvsYH97QwYfvo0OQGoPwEuReDkU3HU7JbT4WRIZy/x6y536INbEBg8EwE1wz8GJvNFB48jgSZymtAxP1QZBGhqzuva4l/wxGIrdBe2guyYuaKXGt0lSbvHGxXVb6FcT45d0khlelwSs7AFCSlLw6jJINOdLtCGY+8B5dJmvGHhKjkaKwW2Yi+mu1IBaPp2RVhuyjQRLy7GjeEIAAQZfsqqgxg2EmQRNkI+i4LCS91iE5Ai4sjnsgkSt+uFYEBaQpS7CEAZKqFVLyGY4tKbY1ByBpndyDleHsoAIiAy7uzlC0fCwlKyFjUIstwDxNETx2fEwDOSs/IeusjkqU7wumBkTIIB7xyAVzd1y5m+q2Zqlh9yDEjsEG/gFgNCSUi0nOLFL8Hw1CjY6Uk2QHl+PyLAx+imaT5NLCAGky9o9uIaeY0Ag1QpWINBwcBgGCwXQ6FF57OKkHXbInwt2fWaSu4+DvOxxq+E0dz6XwnFHkvqjJOg1gOOozR7n1BfHfANEuafttH9Ed39lAJ3YMojmfTqXcaz7AQDJo9iVVNeOQByzyKNBCDXytUCfISKgmdDyFj2kGyNxmrhhMm8B7Ug+S6XMSEg1QRdZ9G6nbEyMrII7VtOVHu+iJ89+lnZkINiro3G+MpNOWHktO0aVoxXCSP0fxkIee8FxusCljEyyJxwBiN0DcDhDzXqMJkUfvDemhx5a20pzrp1EeacQBYFgizEzYKTPX2CUvq6nRrF39g1EcFYXmnAt9QzV8uu5G12gURZySY5Lucih+Ms/FAn36l3tp9QUbKYbLnBA5NC5x6IkTttMbf7eF5GcY+xhqjnfhhUxmi8lIXXW3TdESgLjbI2+3Rdt/VgE
2xVtkcB2gEEsd3hvbQ4ze2Us+UgNzxMA1IJn4YJT97M6iJYQyYCD02CRWuRjKGVJsApNJm7EQMF+QjfSeBmkBwjsOpNqsH1EpvtvAYOj0Dfh2Qs4grEUDHYM2oIENvH9VO5VnMNdjNh5w9Y0OWMwAla4dQcmeGrMlEW1btoDu/9RoYALaA00hxkThjjbJDbUOK9MjyFur8WjdZx2HtHw3GWvBqDAbqTUPwgafEX+wisrxHGsR7gXCnaVVtSG/NN89kotBY0ua78lW9weIsSQA303l8b8NNVcW4sI/hehUIl+AyZtSOAq0CNT+eu9yP53CYxr56Rx38ohfI2rEE/0YBjnJIgwmaM08mAFyjQTGJI6DnWGdMyzA8hKeyFAIyzjqw+Ud+iSa1DaXMCx7wAswo2BYa7B+qgKA6AynOZWWK4QOO/u4EuvJXU2ibG8LdsIw5sAvqcGMa0e3SxUtOocGPDqL4TQjznztJjIGRc2zhmLUHH0iG54AIriWpaW7lFiME12iiuXI+1cHFjKhD14cAxHUCqBf1IVnn9kCNFI14YAhd/kQTdUJv2ryQtnhl+sp7I+nE248iVY+x58FVHt1V2RxSYmaIhojcW7aTPCeicGJCR3x/LMAcT9udELFU0mcAMbbLowtvnE71zyGF34kAeedesi9FTGFGsrSRFdNbuEbawsuioQpDVzUjMV6rGQGREBDRvw1SPwMHQVo/i9OOvTAbPkRA0cMlrfp6npJnHDpm0QRa8OIw6mzqJm+PQ0MfbyCJCjHZDO6uxspDMKfW/SJIihFlcm/dRuHfj4dtOQAzjq4E01Zd/Bo17cnTBUunUf0zAPEBaAUI53s7wUQwkrUCR0j6E5dljVAAHYeKAksbA0mbAZKiwrjXgfZSTjlwSEN6B6rEo7pIoyRlQO4dOyi8fgzF93tUd+cgqsc/jAQHYND4dv8HAXEm9Kdv0cUOg9eoBQNvd8T8sXQV6KrfnKf65jyFnRVJ9IJgu+S5+K/e51QGDYlEzF1CbeTb1GsZIOkNDPCVSGF2YrQbCV0OkfpT6DpmguNiHGrrO9ooQTqhWnKUtMN9ZRRZx5bJPgvJ5cRujDtIipKCQcrTK5luhybeOoY0zr76BcHGwB8+RnrZJ9EI9sa2jFRpn0O51xlI6rV4GHPVxJIVU3Qu8kzSODaJIoWjHek1I2nkAwY2Nm7skjlGcBLJRPM9PBGWqILA/UCNdZ6TRpxvhYuRKfyi4qrt1VCnb1fViSXB2/FYTho31aNaPJzozCTxoqyFI6tnF7Zkv1qA7hXgxHk7KCHPEbqA49Br3xBIrsSTLgeKOqX0ywhYrUgLENkNobw46yxXiQpTOevlvjLu+RSlaoW8Zm9jXExQ+mHJsM0Mg2RWtJH7wofkbdhBzrdh2GwTKQhegNfGffJcA2sX3/MINP2w+ZpdoZ+vK/24SNULxnFfiPMjKuGwbzJSk19gkT3gmomwGMiLMzHcql8GAPf3bfycpcfFU/phsDwfWa3IJWSd0UFyCqpPAxTj03X4HqmN+gAO5ic47zpd8dGqXUyKe8OyMkCWrDEOyuzaC4Rr9QIA42zrJVRiazztSxpOsXoMZ5lPDwdBVan0JXage6id3unD042g+DcjKVmHhLDWEaTSZQ/HLQXB1wwWW8Y4uKO9IBMHnJ5wwXlxX+GNuk9Yg1iTeCi3XiB8kwYXIcSNRsJFJI+nI0WfhyrubQQJ5ipz6osa2wskobbkqNzYSOF5h1E0ZziFMxB1V47drz68FBOcSjhdlwHCNpLnUfcUUKzMQt1aspxAlbqR2awww9YYJUxnHAiEpcInKdet85/DodgvM9KHsSBNm4Q/1482BmoMm1EO1JhPIE53VH3/+cikOZuegrj/Dvpqy+a+6zCjUH+odwZRdPkIEqdis5KIfZvXSpYuXpvdxdIoVI08nX6ARLgzdWcUJz8IkqDDilxHjNSJfhSl6dLDSe+DGrCRM7Ff1Ew6gYFcSgQgkJMKTkZZEv01XpM92gdZiq6G5OqhPMhNPfLx1iV4ZdG6/C08rVBjG+kynwPCSBnxwt/XtUsh56HgBQE4ez870ckdPsWrsQFveDBi0pX522SqmM+uGnP0Znx/Ai2vHZNe85rsyrvwfmTxONItYNgwpazYc/B2qzsW4aU8lDUGm/PoA9rngPBTnObFDOYf12Wehopdg8MI5DrIwk6CF3khY+oLo9efW666Nu+DRE9OQjq+dF/FcwGJvACF2HwULXz80596QoKqHes/4JCYiqO3AKfVusz16jeuX9fQxjSx+h+AIN2yv85K3/43Q3iH0uI6/rSws5SISbHl3o0gmVaA/bIXKzBIEMaZMudsxt3mURXlQQfbSN/G4wFQbUWqMn080XE69rVvB1Hp5wtb/Sv4gL2waTIic/+tnxXTgUIvqZDDNO1foD9OplNqvxkgZwMInGJwVHmHghOX3tcPtWP7XrMtVRkEGQE92vCmAXeuOnAzdKA/AwCumcZcZdfLqsWEVImppDfpDfrZM6Vjaqb3dymkrJnY34hK3yEBwUpM4sCNR7Dus8FyusKxICUh/eYxHOlZ5bhYYieQPjvo6gMKonfWoXG6d/gAF2yoW5BO/G4YXDSqH2MfNeOrIPRHGRPo9G6kPQyK+7+E9ocBqd08jeIbccB2zHgKZ42maAniTRFekiM2j+UPiNYf4ajn4gkUnj3afPN9v2D+AKoOaQqkX0t6RR0YADeWPPQ92ZjHIBj2HJw73oXXzkjTjZoZIBgLlVNteCX9ClzrhRiD40++N2PYZlLAbDv7XQtOYvrmL2bXz/0ZEMhFc5vNc1Qre03WXw9X+rRN+lO4U+RCxrDZLmAP+l0PqTmuexgg7neiuuREk42AacFrGrWF30vieh+PAbCtuEe/AcPjMN7M4+te1VQoOb+4DQhkcvtc3pG3fLnqOxSnDfHKUSiDmZsgAj/ViB8dRWo51OQYEMlA+Ezq1uGk3kQtw2MQS5Lnh+N9en0ldwIQzqGSm+vRj+wWz3kcj49/ikwb83ndKhteZhp6ywy+6acZQvvpN12FagWGlz9jEyXew+Gbjxoh0e8iA2pE8XxOGYAgof+EhPB+XCQCB4dMFFi6B+VyF5TtUhxOFXEQh1850Ml4hqoVQ8w5Ag4RJOElq/hr/GiFjwb/C2PqQNJgHbnad/A++U28Pj++Ql/q1/undkAgPMVkmkhZbp5emu/b3ir8PgSJHTJilOm0HnI6EuwciUK/hHfiyJZZcnGCFNyO+JcLlt4EQHXQoEb83AMnz5Z2HQs/mkkwJRblGAcqQm0FY1DuiyZzNhlbysURHYCpaCbXR+m7zf4hVHq/EIgBU5UMfkZxjRTWbRnpwh5BrIWIjcjtKA8g8DY5CR6Dyv8Sb+RXZq3s4JCJtfknQgLVcob4hyI9cXEj6p0lkE0hZ/lT8DoJb/XwiwoYuR3jgBsgi3Fpn9bqm4tac08eCgim8ZCA1IK5YWr38bawroEBfw1MG4XSqwgdb4WC3HNdi38/j73lpJ7RsS0WgO6/AMGNeIYTHL0Ju92PFzR38Quaf5mhffya4a+wxjxMwamw4HqyDdePwJ/d9uOW/O5DBcF7/h9l1CXYyBetegAAAABJRU5ErkJggg==",F={he
2ight:24,format:"image"},z=k,j=O,B=R,U={variantType:"map"},V={variantType:"carousel"},q={variantType:"cropImage",aspectRatio:"4/3",variantPrefix:"listing-card"},H={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_GOOGLE_ANALYTICS_ID,G={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_PLAUSIBLE_DOMAINS,W=[{key:"cuisine",scope:"public",schemaType:"enum",enumOptions:[{option:"italian",label:"Italian"},{option:"chinese",label:"Chinese"},{option:"thai",label:"Thai"}],showConfig:{label:"Favorite cuisine"},saveConfig:{label:"Favorite cuisine",displayInSignUp:!0,isRequired:!0},userTypeConfig:{limitToUserTypeIds:!0,userTypeIds:["a","b","c"]}},{key:"canCook",scope:"public",schemaType:"boolean",showConfig:{label:"Can you cook?"},saveConfig:{label:"Can you cook?",displayInSignUp:!0,isRequired:!0,placeholderMessage:"Select..."},userTypeConfig:{limitToUserTypeIds:!0,userTypeIds:["a","b","c"]}},{key:"numberOfCookbooks",scope:"public",schemaType:"long",showConfig:{label:"How many cookbooks do you have"},saveConfig:{label:"How many cookbooks do you have",displayInSignUp:!0,isRequired:!0},userTypeConfig:{limitToUserTypeIds:!0,userTypeIds:["a","b","c"]}},{key:"kitchenDescription",scope:"public",schemaType:"text",showConfig:{label:"Description of your kitchen"},saveConfig:{label:"Description of your kitchen",displayInSignUp:!0,isRequired:!0,placeholderMessage:"Describe your kitchen..."},userTypeConfig:{label:"Description of your kitchen",limitToUserTypeIds:!0,userTypeIds:["a","b","c"]}},{key:"arrivalInstructions",scope:"protected",schemaType:"text",showConfig:{label:"How do people arrive at your kitchen?"},saveConfig:{label:"How do people arrive at your kitchen?",displayInSignUp:!0,isRequired:!0},userTypeConfig:{limitToUserTypeIds:!1,userTypeIds:["a","b","c"]}},{key:"dietaryPreferences",scope:"public",schemaType:"multi-enum",enumOptions:[{option:"vegan",label:"Vegan"},{option:"vegetarian",label:"Vegetarian"},{option:"gluten-free",label:"Gluten free"},{option:"dairy-free",label:"Dairy free"},{option:"nut-free",label:"Nut free"},{option:"egg-free",label:"Egg free"},{option:"low-carb",label:"Low carb"},{option:"low-fat",label:"Low fat"}],showConfig:{label:"Dietary preferences"},saveConfig:{displayInSignUp:!0,label:"Dietary preferences",isRequired:!0},userTypeConfig:{limitToUserTypeIds:!0,userTypeIds:["a","b","c"]}}],Y=[{userType:"a",label:"Seller"},{userType:"b",label:"Buyer"},{userType:"c",label:"Guest"},{userType:"d",label:"Host"}],Z={marketplaceRootURL:"https://www.manehookup.com",currency:"USD",listingMinimumPriceSubUnits:500,marketplaceName:"Mane Hook-Up",stripe:n,listing:i,user:u,search:o,maps:a,branding:s,layout:l,analytics:c,facebookAppId:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_FACEBOOK_APP_ID,localization:{locale:"en-US",firstDayOfWeek:1}
2,appCdnAssets:{translations:"/content/translations.json",footer:"/content/footer.json",topbar:"/content/top-bar.json",branding:"/design/branding.json",layout:"/design/layout.json",listingTypes:"/listings/listing-types.json",listingFields:"/listings/listing-fields.json",search:"/listings/listing-search.json",transactionSize:"/transactions/minimum-transaction-size.json",analytics:"/integrations/analytics.json",googleSearchConsole:"/integrations/google-search-console.json",maps:"/integrations/map.json",categories:"/listings/listing-categories.json",localization:"/general/localization.json",userTypes:"/users/user-types.json",userFields:"/users/user-fields.json"},siteFacebookPage:null,siteInstagramPage:null,siteTwitterHandle:null,googleSearchConsole:{googleSiteVerification:null},address:{addressCountry:null,addressRegion:null,postalCode:null,streetAddress:null}}},73682:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(86957);const i={env:"production",dev:!1,verbose:!1,sdk:{clientId:"296de226-d883-4167-a64c-61c9c273d498",baseUrl:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_SHARETRIBE_SDK_BASE_URL,assetCdnBaseUrl:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_SHARETRIBE_SDK_ASSET_CDN_BASE_URL,transitVerbose:"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_SHARETRIBE_SDK_TRANSIT_VERBOSE},getCurrencyFormatting:n.d,subUnitDivisors:n.i,sentryDsn:{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_SENTRY_DSN,usingSSL:"true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_SHARETRIBE_USING_SSL}},86957:(e,t,r)=>{"use strict";r.d(t,{d:()=>i,i:()=>n});const n={AUD:100,BGN:100,CAD:100,CHF:100,CNY:100,CZK:100,DKK:100,EUR:100,GBP:100,HKD:100,INR:100,JPY:1,MXN:100,NOK:100,NZD:100,PLN:100,RON:100,SEK:100,SGD:100,USD:100},i=(e,t)=>{const{enforceSupportedCurrencies:r=!0}=t||{};if(r&&!n[e]){const t=Object.keys(n);throw new Error("Configuration missing for currency: ".concat(e,". Supported currencies: ").concat(t.join(", "),"."))}return 1===n[e]?{style:"currency",currency:e,currencyDisplay:"symbol",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:0}:{style:"currency",currency:e,currencyDisplay:"symbol",useGrouping:!0,minimumFractionDigits:2,maximumFractionDigits:2}}},3891:(e,t,r)=>{"use strict";r.d(t,{XR:()=>o,Ze:()=>a,_4:()=>i});var n=r(86092);const i="terms-of-service",o="privacy-policy",a=(e,t)=>e=>{const t={termsOfService:"content/pages/".concat(i,".json"),privacyPolicy:"content/pages/".concat(o,".json")};return e((0,n.rt)(t,!0))}},86083:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>O,F3:()=>j,JE:()=>z,K7:()=>D,To:()=>N,WM:()=>B,_z:()=>F,x1:()=>R});var n=r(80045),i=r(89379),o=r(22616),a=r.n(o),s=r(95565),l=r(41233),c=r(16882),u=r(85506),d=r(2376),h=r(92943);const p=["deliveryMethod","quantity","bookingDates"],f=["deliveryMethod","quantity","bookingDates"],m="app/CheckoutPage/SET_INITIAL_VALUES",g="app/CheckoutPage/INITIATE_ORDER_REQUEST",_="app/CheckoutPage/INITIATE_ORDER_SUCCESS",y="app/CheckoutPage/INITIATE_ORDER_ERROR",v="app/CheckoutPage/CONFIRM_PAYMENT_REQUEST",b="app/CheckoutPage/CONFIRM_PAYMENT_SUCCESS",x="app/CheckoutPage/CONFIRM_PAYMENT_ERROR",w="app/CheckoutPage/SPECULATE_TRANSACTION_REQUEST",A="app/CheckoutPage/SPECULATE_TRANSACTION_SUCCESS",S="app/CheckoutPage/SPECULATE_TRANSACTION_ERROR",E="app/CheckoutPage/STRIPE_CUSTOMER_REQUEST",T="app/CheckoutPage/STRIPE_CUSTOMER_SUCCESS",P="app/CheckoutPage/STRIPE_CUSTOMER_ERROR",C="app/CheckoutPage/INITIATE_INQUIRY_REQUEST",I="app/CheckoutPage/INITIATE_INQUIRY_SUCCESS",M="app/CheckoutPage/INITIATE_INQUIRY_ERROR",k={listing:null,orderData:null,speculateTransactionInProgress:!1,speculateTransactionError:null,speculatedTransaction:null,isClockInSync:!1,transaction:null,initiateOrderError:null,confirmPaymentError:null,stripeCustomerFetched:!1,initiateInquiryInProgress:!1,initiateInquiryError:null};function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:n}=t;switch(r){case m:return(0,i.A)((0,i.A)({},k),n);case w:return(0,i.A)((0,i.A)({},e),{},{speculateTransactionInProgress:!0,speculateTransactionError:null,speculatedTransaction:null});case A:{var o,a;const t=null===(o=n.transaction)||void 0===o||null===(a=o.attributes)||void 0===a?void 0:a.lastTransitionedAt,r=new Date,s=6e4;return(0,i.A)((0,i.A)({},e),{},{speculateTransactionInProgress:!1,speculatedTransaction:n.transaction,isClockInSync:Math.abs((null===t||void 0===t?void 0:t.getTime())-r.getTime())<s})}case S:return console.error(n),(0,i.A)((0,i.A)({},e),{},{speculateTransactionInProgress:!1,speculateTransactionError:n});case g:return(0,i.A)((0,i.A)({},e),{},{initiateOrderError:null});case _:return(0,i.A)((0,i.A)({},e),{},{transaction:n});case y:return console.error(n),(0,i.A)((0,i.A)({},e),{},{initiateOrderError:n});case v:return(0,i.A)((0,i.A)({},e),{},{confirmPaymentError:null});case b:return e;case x:return console.error(n),(0,i.A)((0,i.A)({},e),{},{confirmPaymentError:n});case E:return(0,i.A)((0,i.A)({},e),{},{stripeCustomerFetched:!1});case T:return(0,i.A)((0,i.A)({},e),{},{stripeCustomerFetched:!0});case P:return console.error(n),(0,i.A)((0,i.A)({},e),{},{stripeCustomerFetchError:n});case C:return(0,i.A)((0,i.A)({},e),{},{initiateInquiryInProgress:!0,initiateInquiryError:null});case I:return(0,i.A)((0,i.A)({},e),{},{initiateInquiryInProgress:!1});case M:return(0,i.A)((0,i.A)({},e),{},{initiateInquiryInProgress:!1,initiateInquiryError:n});default:return e}}const R=e=>({type:m,payload:a()(e,Object.keys(k))}),L=e=>({type:M,error:!0,payload:e}),D=(e,t,r,o,a)=>(f,m,v)=>{f({type:g});const b=!!r,{deliveryMethod:x,quantity:w,bookingDates:A}=e,S=(0,n.A)(e,p),E=w?{stockReservationQuantity:w}:{};let T={};A&&(T=(0,i.A)((0,i.A)({},A),{},{bookingEnd:e.protectedData.bufferMinutes?(0,d.GN)(A.bookingEnd,e.protectedData.bufferMinutes):A.bookingEnd,bookingDisplayEnd:A.bookingEnd,bookingDisplayStart:A.bookingStart}));const P=x?{deliveryMethod:x}:{},C=(0,i.A)((0,i.A)((0,i.A)({},E),T),S),I=b?{id:r,transition:o,params:C}:{processAlias:t,transition:o,params:C},M={include:["booking","provider"],expand:!0},k=e=>{const t=(0,l.Uf)(e)[0];return f((e=>({type:_,payload:e}))(t)),f((0,h.xb)(!0)),t},O=t=>{f((e=>({type:y,error:!0,payload:e}))((0,c.jy)(t)));const n=r?{transactionId:r.uuid}:{};throw u.z3(t,"initiate-order-failed",(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},n),{},{listingId:e.listingId.uuid},E),T),P)),t};return b&&a?(0,s.v_)({isSpeculative:!1,orderData:P,bodyParams:I,queryParams:M}).then(k).catch(O):b?v.transactions.transition(I,M).then(k).catch(O):a?(0,s.rq)({isSpeculative:!1,orderData:P,bodyParams:I,queryParams:M}).then(k).catch(O):v.transactions.initiate(I,M).then(k).catch(O)},N=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(n,o,a)=>{n({type:v});const s={id:e,transition:t,params:r};return a.transactions.transition(s,{include:["booking","provider"],expand:!0}).then((e=>{const t=e.data.data;var r;return n((r=t.id,{type:b,payload:r})),t})).catch((t=>{n((e=>({type:x,error:!0,payload:e}))((0,c.jy)(t)));const r=e?{transactionId:e.uuid}:{};throw u.z3(t,"initiate-order-failed",(0,i.A)({},r)),t}))}},F=e=>(t,r,n)=>{const i=e.message,o=e.id;return i?n.messages.send({transactionId:o,content:i}).then((()=>({orderId:o,messageSuccess:!0}))).catch((e=>(u.z3(e,"initial-message-send-failed",{txId:o}),{orderId:o,messageSuccess:!1}))):Promise.resolve({orderId:o,messageSuccess:!0})},z=(e,t,r)=>(n,i,o)=>
2{if(n({type:C}),!t){const t=new Error("No transaction process attached to listing");return u.z3(t,"listing-process-missing",{listingId:null===e||void 0===e?void 0:e.listingId}),n(L((0,c.jy)(t))),Promise.reject(t)}const a={transition:r,processAlias:t,params:e};return o.transactions.initiate(a,{include:["provider"],expand:!0}).then((e=>{const t=e.data.data.id;return n({type:I}),t})).catch((e=>{throw n(L((0,c.jy)(e))),e}))},j=(e,t,r,o,a)=>(d,h,p)=>{d({type:w});const m=!!r,{deliveryMethod:g,quantity:_,bookingDates:y}=e,v=(0,n.A)(e,f),b=_?{stockReservationQuantity:_}:{},x=y||{},E=g?{deliveryMethod:g}:{},T=(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},b),x),v),{},{cardToken:"CheckoutPage_speculative_card_token"}),P=m?{id:r,transition:o,params:T}:{processAlias:t,transition:o,params:T},C={include:["booking","provider"],expand:!0},I=e=>{const t=(0,l.Uf)(e);if(1!==t.length)throw new Error("Expected a resource in the speculate response");const r=t[0];d({type:A,payload:{transaction:r}})},M=e=>(u.z3(e,"speculate-transaction-failed",(0,i.A)((0,i.A)((0,i.A)({listingId:T.listingId.uuid},b),x),E)),d((e=>({type:S,error:!0,payload:e}))((0,c.jy)(e))));return m&&a?(0,s.v_)({isSpeculative:!0,orderData:E,bodyParams:P,queryParams:C}).then(I).catch(M):m?p.transactions.transitionSpeculative(P,C).then(I).catch(M):a?(0,s.rq)({isSpeculative:!0,orderData:E,bodyParams:P,queryParams:C}).then(I).catch(M):p.transactions.initiateSpeculative(P,C).then(I).catch(M)},B=()=>(e,t,r)=>(e({type:E}),e((0,h.rQ)({include:["stripeCustomer.defaultPaymentMethod"]})).then((t=>{e({type:T})})).catch((t=>{e((e=>({type:P,error:!0,payload:e}))((0,c.jy)(t)))})))},61391:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y,Ov:()=>A,Ze:()=>E,bq:()=>b,xw:()=>S});var n=r(89379),i=r(34677),o=r.n(i),a=r(41233),s=r(16882),l=r(92943);const c="app/ContactDetailsPage/SAVE_CONTACT_DETAILS_REQUEST",u="app/ContactDetailsPage/SAVE_CONTACT_DETAILS_SUCCESS",d="app/ContactDetailsPage/SAVE_EMAIL_ERROR",h="app/ContactDetailsPage/SAVE_PHONE_NUMBER_ERROR",p="app/ContactDetailsPage/SAVE_CONTACT_DETAILS_CLEAR",f="app/ContactDetailsPage/RESET_PASSWORD_REQUEST",m="app/ContactDetailsPage/RESET_PASSWORD_SUCCESS",g="app/ContactDetailsPage/RESET_PASSWORD_ERROR",_={saveEmailError:null,savePhoneNumberError:null,saveContactDetailsInProgress:!1,contactDetailsChanged:!1,resetPasswordInProgress:!1,resetPasswordError:null};function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case c:return(0,n.A)((0,n.A)({},e),{},{saveContactDetailsInProgress:!0,saveEmailError:null,savePhoneNumberError:null,contactDetailsChanged:!1});case u:return(0,n.A)((0,n.A)({},e),{},{saveContactDetailsInProgress:!1,contactDetailsChanged:!0});case d:return(0,n.A)((0,n.A)({},e),{},{saveContactDetailsInProgress:!1,saveEmailError:i});case h:return(0,n.A)((0,n.A)({},e),{},{saveContactDetailsInProgress:!1,savePhoneNumberError:i});case p:return(0,n.A)((0,n.A)({},e),{},{saveContactDetailsInProgress:!1,saveEmailError:null,savePhoneNumberError:null,contactDetailsChanged:!1});case f:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!0,resetPasswordError:null});case m:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1});case g:return console.error(i),(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1,resetPasswordError:i});default:return e}}const v=()=>({type:u}),b=()=>({type:p}),x=e=>(t,r,n)=>{const i=e.phoneNumber;return n.currentUser.updateProfile({protectedData:{phoneNumber:i}},{expand:!0,include:["profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{const t=(0,a.Uf)(e);if(1!==t.length)throw new Error("Expected a resource in the sdk.currentUser.updateProfile response");return t[0]})).catch((e=>{var r;throw t((r=(0,s.jy)(e),{type:h,payload:r,error:!0})),e}))},w=e=>(t,r,n)=>{const{email:i,currentPassword:o}=e;return n.currentUser.changeEmail({email:i,currentPassword:o},{expand:!0,include:["profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{const t=(0,a.Uf)(e);if(1!==t.length)throw new Error("Expected a resource in the sdk.currentUser.changeEmail response");return t[0]})).catch((e=>{var r;throw t((r=(0,s.jy)(e),{type:d,payload:r,error:!0})),e}))},A=e=>(t,r,n)=>{t({type:c});const{email:i,currentEmail:a,phoneNumber:s,currentPhoneNumber:u,currentPassword:d}=e,h=i!==a,p=s!==u;return h&&p?t((e=>(t,r,n)=>{const{email:i,phoneNumber:a,currentPassword:s}=e,c=[t(w({email:i,currentPassword:s})),t(x({phoneNumber:a}))];return Promise.all(c).then((e=>{const r=e[0],n={attributes:{profile:{protectedData:e[1].attributes.profile.protectedData}}},i=o()(r,n);t((0,l.fK)(i)),t(v())})).catch((e=>null))})({email:i,currentPassword:d,phoneNumber:s})):h?t((e=>(t,r,n)=>t(w(e)).then((e=>{t((0,l.fK)(e)),t(v())})).catch((e=>null)))({email:i,currentPassword:d})):p?t((e=>(t,r,n)=>t(x(e)).then((e=>{t((0,l.fK)(e)),t(v())})).catch((e=>null)))({phoneNumber:s})):void 0},S=e=>(t,r,n)=>(t({type:f}),n.passwordReset.request({email:e}).then((()=>t({type:m}))).catch((e=>t((e=>({type:g,error:!0,payload:e}))((0,s.jy)(e)))))),E=()=>(0,l.rQ)()},87523:(e,t,r)=>{"use strict";r.d(t,{$M:()=>Qe,Ay:()=>he,DE:()=>et,Iz:()=>rt,SB:()=>Je,Te:()=>$e,Ze:()=>nt,Zg:()=>Ze,en:()=>Xe,m0:()=>fe,nZ:()=>Ke});var n=r(80045),i=r(89379),o=r(1488),a=r.n(o),s=r(55346),l=r(41233),c=r(2376),u=r(56903),d=r(16882),h=r(85506),p=r(32423),f=r(89413),m=r(703),g=r(79290),_=r(92943);const y=["id"],v=["stockUpdate","images"],b=["id","stockUpdate","images"],{UUID:x}=s.gK,w=e=>e?e.map((e=>e.imageId||e.id)):null,A=(e,t)=>
2{var r,n,i;const{uploadedImages:o,uploadedImagesOrder:a}=e,s=((null===t||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.relationships)||void 0===n||null===(i=n.images)||void 0===i?void 0:i.data)||[]).map((e=>e.id.uuid));return Object.values(e.uploadedImages).filter((e=>{var t;return s.includes(null===(t=e.imageId)||void 0===t?void 0:t.uuid)})).length>0?{uploadedImages:{},uploadedImagesOrder:[]}:{uploadedImages:o,uploadedImagesOrder:a}},S=e=>{const{aspectWidth:t=1,aspectHeight:r=1,variantPrefix:n="listing-card"}=e,o=r/t;return{fieldsImage:["variants.".concat(n),"variants.".concat(n,"-2x")],imageVariants:(0,i.A)((0,i.A)({},(0,s.vf)("".concat(n),400,o)),(0,s.vf)("".concat(n,"-2x"),800,o))}},E=(e,t)=>e.attributes.start.getTime()-t.attributes.start.getTime(),T=(e,t,r)=>t?{weeklyExceptionQueries:(0,i.A)((0,i.A)({},e),{},{[t]:(0,i.A)((0,i.A)({},e[t]),r)})}:{},P=(e,t,r)=>t?{monthlyExceptionQueries:(0,i.A)((0,i.A)({},e),{},{[t]:(0,i.A)((0,i.A)({},e[t]),r)})}:{},C=e=>t=>({type:e,payload:{params:t}}),I=e=>t=>({type:e,payload:t.data}),M=e=>t=>({type:e,payload:t,error:!0}),k="app/EditListingPage/MARK_TAB_UPDATED",O="app/EditListingPage/CLEAR_UPDATED_TAB",R="app/EditListingPage/CREATE_LISTING_DRAFT_REQUEST",L="app/EditListingPage/CREATE_LISTING_DRAFT_SUCCESS",D="app/EditListingPage/CREATE_LISTING_DRAFT_ERROR",N="app/EditListingPage/PUBLISH_LISTING_REQUEST",F="app/EditListingPage/PUBLISH_LISTING_SUCCESS",z="app/EditListingPage/PUBLISH_LISTING_ERROR",j="app/EditListingPage/UPDATE_LISTING_REQUEST",B="app/EditListingPage/UPDATE_LISTING_SUCCESS",U="app/EditListingPage/UPDATE_LISTING_ERROR",V="app/EditListingPage/SHOW_LISTINGS_REQUEST",q="app/EditListingPage/SHOW_LISTINGS_SUCCESS",H="app/EditListingPage/SHOW_LISTINGS_ERROR",G="app/EditListingPage/FETCH_AVAILABILITY_EXCEPTIONS_REQUEST",W="app/EditListingPage/FETCH_AVAILABILITY_EXCEPTIONS_SUCCESS",Y="app/EditListingPage/FETCH_AVAILABILITY_EXCEPTIONS_ERROR",Z="app/EditListingPage/FETCH_EXTRA_AVAILABILITY_EXCEPTIONS_SUCCESS",K="app/EditListingPage/ADD_AVAILABILITY_EXCEPTION_REQUEST",X="app/EditListingPage/ADD_AVAILABILITY_EXCEPTION_SUCCESS",J="app/EditListingPage/ADD_AVAILABILITY_EXCEPTION_ERROR",Q="app/EditListingPage/DELETE_AVAILABILITY_EXCEPTION_REQUEST",$="app/EditListingPage/DELETE_AVAILABILITY_EXCEPTION_SUCCESS",ee="app/EditListingPage/DELETE_AVAILABILITY_EXCEPTION_ERROR",te="app/EditListingPage/SET_STOCK_REQUEST",re="app/EditListingPage/SET_STOCK_SUCCESS",ne="app/EditListingPage/SET_STOCK_ERROR",ie="app/EditListingPage/UPLOAD_IMAGE_REQUEST",oe="app/EditListingPage/UPLOAD_IMAGE_SUCCESS",ae="app/EditListingPage/UPLOAD_IMAGE_ERROR",se="app/EditListingPage/REMOVE_LISTING_IMAGE",le="app/EditListingPage/SAVE_PAYOUT_DETAILS_REQUEST",ce="app/EditListingPage/SAVE_PAYOUT_DETAILS_SUCCESS",ue="app/EditListingPage/SAVE_PAYOUT_DETAILS_ERROR",de={createListingDraftError:null,listingId:null,publishListingError:null,updateListingError:null,showListingsError:null,uploadImageError:null,setStockError:null,setStockInProgress:!1,createListingDraftInProgress:!1,submittedListingId:null,redirectToListing:!1,uploadedImages:{},uploadedImagesOrder:[],removedImageIds:[],addExceptionError:null,addExceptionInProgress:!1,weeklyExceptionQueries:{},monthlyExceptionQueries:{},allExceptions:[],deleteExceptionError:null,deleteExceptionInProgress:!1,listingDraft:null,updatedTab:null,updateInProgress:!1,payoutDetailsSaveInProgress:!1,payoutDetailsSaved:!1};function he(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:o}=t;switch(r){case k:return(0,i.A)((0,i.A)({},e),{},{updatedTab:o});case O:return(0,i.A)((0,i.A)({},e),{},{updatedTab:null,updateListingError:null});case R:return(0,i.A)((0,i.A)({},e),{},{createListingDraftInProgress:!0,createListingDraftError:null,submittedListingId:null,listingDraft:null});case L:return(0,i.A)((0,i.A)((0,i.A)({},e),A(e,o)),{},{createListingDraftInProgress:!1,submittedListingId:o.data.id,listingDraft:o.data});case D:return(0,i.A)((0,i.A)({},e),{},{createListingDraftInProgress:!1,createListingDraftError:o});case N:return(0,i.A)((0,i.A)({},e),{},{listingId:o.listingId,publishListingError:null});case F:return(0,i.A)((0,i.A)({},e),{},{redirectToListing:!0,createListingDraftError:null,updateListingError:null,showListingsError:null,uploadImageError:null,createListingDraftInProgress:!1,updateInProgress:!1});case z:return console.error(o),(0,i.A)((0,i.A)({},e),{},{publishListingError:{listingId:e.listingId,error:o}});case j:return(0,i.A)((0,i.A)({},e),{},{updateInProgress:!0,updateListingError:null});case B:return(0,i.A)((0,i.A)((0,i.A)({},e),A(e,o)),{},{updateInProgress:!1});case U:return(0,i.A)((0,i.A)({},e),{},{updateInProgress:!1,updateListingError:o});case V:return(0,i.A)((0,i.A)({},e),{},{showListingsError:null});case q:{var s;const t=o.data.id,{listingId:r,allExceptions:n,weeklyExceptionQueries:a,monthlyExceptionQueries:l}=e;return(null===t||void 0===t?void 0:t.uuid)===(null===(s=e.listingId)||void 0===s?void 0:s.uuid)?(0,i.A)((0,i.A)({},de),{},{listingId:r,allExceptions:n,weeklyExceptionQueries:a,monthlyExceptionQueries:l}):(0,i.A)((0,i.A)({},de),{},{listingId:t})}case H:return console.error(o),(0,i.A)((0,i.A)({},e),{},{showListingsError:o,redirectToListing:!1});case G:{const{monthId:t,weekStartId:r}=o.params,n={fetchExceptionsError:null,fetchExceptionsInProgress:!0},a=t?P(e.monthlyExceptionQueries,t,n):r?T(e.weeklyExceptionQueries,r,n):{};return(0,i.A)((0,i.A)({},e),a)}case W:{const{exceptions:t,monthId:r,weekStartId:n}=o,a=e.allExceptions.concat(t),s=e=>e.id.uuid,l=(0,u.pD)(a,s).sort(E),c={fetchExceptionsInProgress:!1},d=r?P(e.monthlyExceptionQueries,r,c):n?T(e.weeklyExceptionQueries,n,c):{};return(0,i.A)((0,i.A)({},e),{},{allExceptions:l},d)}case Y:{const{monthId:t,weekStartId:r,error:n}=o,a={fetchExceptionsInProgress:!1,fetchExceptionsError:n},s=t?P(e.monthlyExceptionQueries,t,a):r?T(e.weeklyExceptionQueries,r,a):{};return(0,i.A)((0,i.A)({},e),s)}case Z:{const t=e.allExceptions.concat(o.exceptions),r=e=>e.id.uuid,n=(0,u.pD)(t,r).sort(E);return(0,i.A)((0,i.A)({},e),{},{allExceptions:n})}case K:return(0,i.A)((0,i.A)({},e),{},{addExceptionError:null,addExceptionInProgress:!0});case X:{const t=o,r=e.allExceptions.concat(t).sort(E);return(0,i.A)((0,i.A)({},e),{},{allExceptions:r,addExceptionInProgress:!1})}case J:return(0,i.A)((0,i.A)({},e),{},{addExceptionError:o.error,addExceptionInProgress:!1});case Q:return(0,i.A)((0,i.A)({},e),{},{deleteExceptionError:null,deleteExceptionInProgress:!0});
2case $:{const t=o.id.uuid,r=e.allExceptions.filter((e=>e.id.uuid!==t));return(0,i.A)((0,i.A)({},e),{},{allExceptions:r,deleteExceptionInProgress:!1})}case ee:return(0,i.A)((0,i.A)({},e),{},{deleteExceptionError:o.error,deleteExceptionInProgress:!1});case ie:{const t=(0,i.A)((0,i.A)({},e.uploadedImages),{},{[o.params.id]:(0,i.A)({},o.params)});return(0,i.A)((0,i.A)({},e),{},{uploadedImages:t,uploadedImagesOrder:e.uploadedImagesOrder.concat([o.params.id]),uploadImageError:null})}case oe:{const{id:t}=o,r=(0,n.A)(o,y),a=(0,i.A)((0,i.A)({},e.uploadedImages),{},{[t]:(0,i.A)({id:t},r)});return(0,i.A)((0,i.A)({},e),{},{uploadedImages:a})}case ae:{const{id:t,error:r}=o,n=e.uploadedImagesOrder.filter((e=>e!==t)),s=a()(e.uploadedImages,t);return(0,i.A)((0,i.A)({},e),{},{uploadedImagesOrder:n,uploadedImages:s,uploadImageError:r})}case se:{const t=o.imageId,r=e.uploadedImages[t]?e.removedImageIds:e.removedImageIds.concat(t),n=a()(e.uploadedImages,t),s=e.uploadedImagesOrder.filter((e=>e!==t));return(0,i.A)((0,i.A)({},e),{},{uploadedImages:n,uploadedImagesOrder:s,removedImageIds:r})}case te:return(0,i.A)((0,i.A)({},e),{},{setStockInProgress:!0,setStockError:null});case re:return(0,i.A)((0,i.A)({},e),{},{setStockInProgress:!1});case ne:return(0,i.A)((0,i.A)({},e),{},{setStockInProgress:!1,setStockError:o});case le:return(0,i.A)((0,i.A)({},e),{},{payoutDetailsSaveInProgress:!0});case ue:return(0,i.A)((0,i.A)({},e),{},{payoutDetailsSaveInProgress:!1});case ce:return(0,i.A)((0,i.A)({},e),{},{payoutDetailsSaveInProgress:!1,payoutDetailsSaved:!0});default:return e}}const pe=e=>({type:k,payload:e}),fe=e=>({type:se,payload:{imageId:e}}),me=C(R),ge=I(L),_e=M(D),ye=C(N),ve=I(F),be=M(z),xe=C(j),we=I(B),Ae=M(U),Se=C(V),Ee=I(q),Te=M(H),Pe=C(ie),Ce=I(oe),Ie=M(ae),Me=C(te),ke=I(re),Oe=M(ne),Re=C(G),Le=I(W),De=M(Y),Ne=I(Z),Fe=C(K),ze=I(X),je=M(J),Be=C(Q),Ue=I($),Ve=M(ee),qe=C(le),He=I(ce),Ge=M(ue);function We(e,t){return(r,n,o)=>{const a=S(t.layout.listingImage),s=(0,i.A)({include:["author","images","currentStock"],"fields.image":a.fieldsImage},a.imageVariants);return r(Se(e)),o.ownListings.show((0,i.A)((0,i.A)({},e),s)).then((e=>(r((0,m.Id)(e)),r(Ee(e)),e))).catch((e=>r(Te((0,d.jy)(e)))))}}const Ye=(e,t,r)=>{const{oldTotal:n,newTotal:i}=t||{};return e&&(i>=0&&"undefined"!==typeof n)?r(function(e,t,r){return(n,i,o)=>(n(Me()),o.stock.compareAndSet({listingId:e,oldTotal:t,newTotal:r},{expand:!0}).then((e=>{n((0,m.Id)(e)),n(ke(e))})).catch((i=>(h.z3(i,"update-stock-failed",{listingId:e,oldTotal:t,newTotal:r}),n(Oe((0,d.jy)(i)))))))}(e,n,i)):Promise.resolve()};function Ze(e,t){return(r,o,a)=>{r(me(e));const{stockUpdate:s,images:l}=e,c=(0,n.A)(e,v),u="undefined"!==typeof l?{images:w(l)}:{},p=(0,i.A)((0,i.A)({},u),c),f=S(t.layout.listingImage),m=(0,i.A)({expand:!0,include:["author","images","currentStock"],"fields.image":f.fieldsImage},f.imageVariants);let g=null;return a.ownListings.createDraft(p,m).then((e=>{g=e;const t=e.data.data.id;return Ye(t,s,r)})).then((()=>(r(ge(g)),g))).catch((t=>(h.z3(t,"create-listing-draft-failed",{listingData:e}),r(_e((0,d.jy)(t))))))}}function Ke(e,t,r){return(o,a,s)=>{var l,c,u,p;o(xe(t));const{id:f,stockUpdate:g,images:_}=t,y=(0,n.A)(t,b),v="undefined"!==typeof _?{images:w(_)}:{},x=(0,i.A)((0,i.A)({id:f},v),y),A=S(r.layout.listingImage),E=(0,i.A)({expand:!0,include:["author","images","currentStock"],"fields.image":A.fieldsImage},A.imageVariants),T=null===(l=a().marketplaceData.entities.ownListing[f.uuid])||void 0===l||null===(c=l.attributes)||void 0===c||null===(u=c.availabilityPlan)||void 0===u?void 0:u.timezone,P=null===y||void 0===y||null===(p=y.availabilityPlan)||void 0===p?void 0:p.timezone;return Ye(f,g,o).then((()=>s.ownListings.update(x,E))).then((t=>{if(o(we(t)),o((0,m.Id)(t)),o(pe(e)),P&&P!==T){const e="",n=r.localization.firstDayOfWeek,i=t.data.data;tt(o,i,e,n)}return t})).catch((e=>(h.z3(e,"update-listing-failed",{listingData:t}),o(Ae((0,d.jy)(e))))))}}const Xe=e=>(t,r,n)=>(t(ye(e)),n.ownListings.publishDraft({id:e},{expand:!0}).then((e=>(t((0,m.Id)(e)),t(ve(e)),e))).catch((e=>{t(be((0,d.jy)(e)))})));function Je(e,t){return(r,n,o)=>{const a=e.id,s=S(t),l=(0,i.A)({expand:!0,"fields.image":s.fieldsImage},s.imageVariants);return r(Pe(e)),o.images.upload({image:e.file},l).then((t=>{const n=t.data.data;return r(Ce({data:(0,i.A)((0,i.A)({},n),{},{id:a,imageId:n.id,file:e.file})}))})).catch((e=>r(Ie({id:a,error:(0,d.jy)(e)}))))}}const Qe=e=>(t,r,n)=>(t(Fe(e)),n.availabilityExceptions.create(e,{expand:!0}).then((e=>{const r=e.data.data;return t(ze({data:r}))})).catch((e=>{throw t(je({error:(0,d.jy)(e)})),e}))),$e=e=>(t,r,n)=>(t(Be(e)),n.availabilityExceptions.delete(e,{expand:!0}).then((e=>{const r=e.data.data;return t(Ue({data:r}))})).catch((e=>{throw t(Ve({error:(0,d.jy)(e)})),e}))),et=e=>(t,r,n)=>{const{listingId:o,start:a,end:s,timeZone:u,page:h,isWeekly:p}=e,f={listingId:o,start:a,end:s},m=p?{weekStartId:(0,c.Vm)(a)}:{monthId:(0,c.B)(a,u)};return t(Re(m)),n.availabilityExceptions.query(f).then((e=>{const r=(0,l.Uf)(e),o=e.data.meta.totalPages;if(o>1&&!h){const e=Array(o).fill().map(((e,t)=>t+1)).slice(1);Promise.all(e.map((e=>n.availabilityExceptions.query((0,i.A)((0,i.A)({},f),{},{page:e}))))).then((e=>{const r=e.reduce(((e,t)=>e.concat((0,l.Uf)(t))),[]);t(Ne({data:(0,i.A)((0,i.A)({},m),{},{exceptions:r})}))}))}return t(Le({data:(0,i.A)((0,i.A)({},m),{},{exceptions:r})}))})).catch((e=>t(De((0,i.A)((0,i.A)({},m),{},{error:(0,d.jy)(e)})))))},tt=(e,t,r,n)=>{var o,a;const s="undefined"!==typeof window,l=null===t||void 0===t||null===(o=t.attributes)||void 0===o||null===(a=o.availabilityPlan)||void 0===a?void 0:a.timezone;if(s&&t.id&&l){var u;const o=t.id,a=(null===(u=t.attributes.availabilityPlan)||void 0===u?void 0:u.timezone)||(0,c.iv)(),s=(0,c.uI)(new Date,"day",a),l=(0,p.qg)(r),d=null!==l&&void 0!==l&&l.d?(0,c.uA)(l.d,a):s,h=(0,c.mK)(d,a,n),f=(0,c.uI)(h,"day",a,-7,"days"),m=(0,c.uI)(h,"day",a,7,"days"),g=(0,c.uI)(m,"day",a,7,"days"),_=(0,c.uI)(s,"month",a,1,"months"),y=(0,c.uI)(_,"month",a,1,"months"),v={listingId:o,timeZone:a};return Promise.all([e(et((0,i.A)((0,i.A)({},v),{},{isWeekly:!0,start:f,end:h}))),e(et((0,i.A)((0,i.A)({},v),{},{isWeekly:!0,start:h,end:m}))),e(et((0,i.A)((0,i.A)({},v),{},{isWeekly:!0,start:m,end:g}))),e(et((0,i.A)((0,i.A)({},v),{},{start:s,end:_}))),e(et((0,i.A)((0,i.A)({},v),{},{start:_,end:y})))])}return Promise.all([])},rt=(e,t)=>(r,n,i)=>{const o=t?g.CG:g.LQ;return r(qe()),r(o(e,{expand:!0})).then((e=>(r(He()),e))).catch((()=>
2r(Ge())))},nt=(e,t,r)=>(n,i,o)=>{n({type:O});const{id:a,type:s}=e;if("new"===s)return Promise.all([n((0,_.rQ)())]).then((e=>{const t=i().user.currentUser;return t&&t.stripeAccount&&n((0,g.z5)()),e})).catch((e=>{throw e}));const l={id:new x(a)};return Promise.all([n(We(l,r)),n((0,_.rQ)())]).then((e=>{var o,a,s,l;const c=i().user.currentUser;c&&c.stripeAccount&&n((0,g.z5)());const u=null===(o=e[0])||void 0===o||null===(a=o.data)||void 0===a?void 0:a.data,d=null===u||void 0===u||null===(s=u.attributes)||void 0===s||null===(l=s.publicData)||void 0===l?void 0:l.transactionProcessAlias;return u&&(0,f.pv)(d)&&tt(n,u,t,r.localization.firstDayOfWeek),e})).catch((e=>{throw e}))}},37614:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(89379),i=(r(65043),r(63775)),o=r(56356),a=r(70579);const s=(0,o.Ay)((()=>Promise.all([r.e(4814),r.e(1517),r.e(8027)]).then(r.bind(r,30310))),{resolveComponent:e=>e.SectionBuilder}),l=e=>{let{pageType:t}=e;const{footer:r={},topbar:o}=(0,i._r)();if(0===Object.keys(r).length)return null;const l=(0,n.A)((0,n.A)({},r),{},{sectionId:"footer",sectionType:"footer",linkLogoToExternalSite:null===o||void 0===o?void 0:o.logoLink});return(0,a.jsx)(s,{sections:[l],pageType:t})}},8747:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>y,Ze:()=>v});var n=r(89379),i=r(60651),o=r.n(i),a=r(87424),s=r.n(a),l=r(16882),c=r(32423),u=r(89413),d=r(703);const h=e=>o()(s()(e,(e=>e.attributes?e.attributes.lastTransitionedAt:null))),p="app/InboxPage/FETCH_ORDERS_OR_SALES_REQUEST",f="app/InboxPage/FETCH_ORDERS_OR_SALES_SUCCESS",m="app/InboxPage/FETCH_ORDERS_OR_SALES_ERROR",g=e=>e.map((e=>({id:e.id,type:e.type}))),_={fetchInProgress:!1,fetchOrdersOrSalesError:null,pagination:null,transactionRefs:[]};function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case p:return(0,n.A)((0,n.A)({},e),{},{fetchInProgress:!0,fetchOrdersOrSalesError:null});case f:{const t=h(i.data.data);return(0,n.A)((0,n.A)({},e),{},{fetchInProgress:!1,transactionRefs:g(t),pagination:i.data.meta})}case m:return console.error(i),(0,n.A)((0,n.A)({},e),{},{fetchInProgress:!1,fetchOrdersOrSalesError:i});default:return e}}const v=(e,t)=>(r,n,i)=>{const{tab:o}=e,a={orders:"order",sales:"sale",calendar:"sale"}[o];if(!a)return Promise.reject(new Error("Invalid tab for InboxPage: ".concat(o)));r({type:p});const{page:s=1}=(0,c.qg)(t),h={only:a,lastTransitions:(0,u.VU)(),include:["listing","provider","provider.profileImage","customer","customer.profileImage","booking"],"fields.transaction":["processName","lastTransition","lastTransitionedAt","transitions","payinTotal","payoutTotal","lineItems","protectedData"],"fields.listing":["title","availabilityPlan","publicData.listingType"],"fields.user":["profile.displayName","profile.abbreviatedName"],"fields.image":["variants.square-small","variants.square-small2x"],page:s,perPage:10};return i.transactions.query(h).then((e=>(r((0,d.Id)(e)),r((e=>({type:f,payload:e}))(e)),e))).catch((e=>{throw r((e=>({type:m,error:!0,payload:e}))((0,l.jy)(e))),e}))}},28683:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,j:()=>i});var n=r(86092);const i="landing-page",o=(e,t)=>e=>{const t={landingPage:"content/pages/".concat(i,".json")};return e((0,n.rt)(t,!0))}},70923:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>L,Ze:()=>V,Zu:()=>U,ac:()=>B,r_:()=>j,x1:()=>D});var n=r(89379),i=r(22616),o=r.n(i),a=r(55346),s=r(16882),l=r(703),c=r(95565),u=r(85506),d=r(41233),h=r(2376),p=r(32423),f=r(89413),m=r(92943);const{UUID:g}=a.gK,_="app/ListingPage/SET_INITIAL_VALUES",y="app/ListingPage/SHOW_LISTING_REQUEST",v="app/ListingPage/SHOW_LISTING_SUCCESS",b="app/ListingPage/SHOW_LISTING_ERROR",x="app/ListingPage/FETCH_REVIEWS_REQUEST",w="app/ListingPage/FETCH_REVIEWS_SUCCESS",A="app/ListingPage/FETCH_REVIEWS_ERROR",S="app/ListingPage/FETCH_TIME_SLOTS_REQUEST",E="app/ListingPage/FETCH_TIME_SLOTS_SUCCESS",T="app/ListingPage/FETCH_TIME_SLOTS_ERROR",P="app/ListingPage/FETCH_LINE_ITEMS_REQUEST",C="app/ListingPage/FETCH_LINE_ITEMS_SUCCESS",I="app/ListingPage/FETCH_LINE_ITEMS_ERROR",M="app/ListingPage/SEND_INQUIRY_REQUEST",k="app/ListingPage/SEND_INQUIRY_SUCCESS",O="app/ListingPage/SEND_INQUIRY_ERROR",R={id:null,loadedListingId:null,showListingError:null,reviews:[],fetchReviewsError:null,monthlyTimeSlots:{},lineItems:null,fetchLineItemsInProgress:!1,fetchLineItemsError:null,sendInquiryInProgress:!1,sendInquiryError:null,inquiryModalOpenForListingId:null},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:R,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case _:return(0,n.A)((0,n.A)({},R),i);case y:return(0,n.A)((0,n.A)({},e),{},{id:i.id,loadedListingId:null,showListingError:null});case v:return(0,n.A)((0,n.A)({},e),{},{loadedListingId:i});case b:return(0,n.A)((0,n.A)({},e),{},{showListingError:i});case x:return(0,n.A)((0,n.A)({},e),{},{fetchReviewsError:null});case w:return(0,n.A)((0,n.A)({},e),{},{reviews:i});case A:return(0,n.A)((0,n.A)({},e),{},{fetchReviewsError:i});case S:{const t=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[i]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[i]),{},{fetchTimeSlotsError:null,fetchTimeSlotsInProgress:!0})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:t})}case E:{const t=i.monthId,r=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[t]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[t]),{},{fetchTimeSlotsInProgress:!1,timeSlots:i.timeSlots})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:r})}case T:{const t=i.monthId,r=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[t]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[t]),{},{fetchTimeSlotsInProgress:!1,fetchTimeSlotsError:i.error})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:r})}case P:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!0,fetchLineItemsError:null});case C:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!1,lineItems:i});case I:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!1,fetchLineItemsError:i});case M:return(0,n.A)((0,n.A)({},e),{},{sendInquiryInProgress:!0,sendInquiryError:null});case k:return(0,n.A)((0,n.A)({},e),{},{sendInquiryInProgress:!1});case O:return(0,n.A)((0,n.A)({},e),{},{sendInquiryInProgress:!1,sendInquiryError:i});default:return e}},D=e=>({type:_,payload:o()(e,Object.keys(R))}),N=e=>({type:O,error:!0,payload:e}),F=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(i,o,c)=>{const{aspectWidth:u=1,aspectHeight:d=1,variantPrefix:h="listing-card"}=t.layout.listingImage,p=d/u;i((e=>({type:y,payload:{id:e}}))(e)),i((0,m.rQ)());const f=(0,n.A)((0,n.A)((0,n.A)((0,n.A)({id:e,include:["author","author.profileImage","images","currentStock"],"fields.image":["variants.scaled-small","variants.scaled-medium","variants.scaled-large","variants.scaled-xlarge","variants.".concat(h),"variants.".concat(h,"-2x"),"variants.".concat(h,"-4x"),"variants.".concat(h,"-6x"),"variants.facebook","variants.twitter","variants.square-small","variants.square-small2x"]},(0,a.vf)("".concat(h),400,p)),(0,a.vf)("".concat(h,"-2x"),800,p)),(0,a.vf)("".concat(h,"-4x"),1600,p)),(0,a.vf)("".concat(h,"-6x"),2400,p));return(r?c.ownListings.show(f):c.listings.show(f)).then((r=>{var n,o,a,s,c;const u={listingFields:null===t||void 0===t||null===(n=t.listing)||void 0===n?void 0:n.listingFields};i((0,l.Id)(r,u));const d=null!==(o=null===r||void 0===r||null===(a=r.data)||void 0===a||null===(s=a.data)||void 0===s||null===(c=s.id)||void 0===c?void 0:c.uuid)&&void 0!==o?o:null===e||void 0===e?void 0:e.uuid;return d&&i((e=>({type:v,payload:e}))(d)),r})).catch((e=>{i((e=>({type:b,error:!0,payload:e}))((0,s.jy)(e)))}))}},z=e=>(t,r,n)=>(t({type:x}),n.reviews.query({listing_id:e,state:"public",include:["author","author.profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{const r=(0,d.Uf)(e);t((e=>({type:w,payload:e}))(r))})).catch((e=>{var r;t((r=(0,s.jy)(e),{type:A,error:!0,payload:r}))}))),j=(e,t,r,i)=>(o,a,l)=>{const c=(0,h.B)(t,i);o((e=>({type:S,payload:e}))(c));return o((u=(0,n.A)({listingId:e,start:t,end:r},{perPage:500,page:1}),(e,t,r)=>r.timeslots.query(u).then((e=>(0,d.Uf)(e))))).then((e=>{o(((e,t)=>({type:E,payload:{timeSlots:t,monthId:e}}))(c,e))})).catch((e=>{o(((e,t)=>({type:T,error:!0,payload:{monthId:e,error:t}}))(c,(0,s.jy)(e)))}));var u},B=(e,t)=>(r,n,i)=>{var o,a,l;r({type:M});const c=null===e||void 0===e||null===(o=e.attributes)||void 0===o||null===(a=o.publicData)||void 0===a?void 0:a.transactionProcessAlias;if(!c){var d;const t=new Error("No transaction process attached to listing");
2return u.z3(t,"listing-process-missing",{listingId:null===e||void 0===e||null===(d=e.id)||void 0===d?void 0:d.uuid}),r(N((0,s.jy)(t))),Promise.reject(t)}const h=null===e||void 0===e?void 0:e.id,[p,g]=c.split("/"),_={transition:(null===(l=(0,f.wz)(p))||void 0===l?void 0:l.transitions).INQUIRE,processAlias:c,params:{listingId:h}};return i.transactions.initiate(_).then((e=>{const n=e.data.data.id;return i.messages.send({transactionId:n,content:t}).then((()=>(r({type:k}),r((0,m.xb)(!0)),n)))})).catch((e=>{throw r(N((0,s.jy)(e))),e}))},U=e=>{let{orderData:t,listingId:r,isOwnListing:n,servicePrice:i}=e;return e=>{e({type:P}),(0,c.FV)({orderData:t,listingId:r,isOwnListing:n,servicePrice:i}).then((t=>{const r=t.data;e((e=>({type:C,payload:e}))(r))})).catch((n=>{var i;e((i=(0,s.jy)(n),{type:I,error:!0,payload:i})),u.z3(n,"fetching-line-items-failed",{listingId:r.uuid,orderData:t})}))}},V=(e,t,r)=>t=>{const n=new g(e.id);t(D({lineItems:null}));return[p.Ln,p.bP].includes(e.variant)?t(F(n,r,!0)):Promise.all([t(F(n,r)),t(z(n))]).then((e=>{var r,n;const i=e[0].data.data,o=(null===i||void 0===i||null===(r=i.attributes)||void 0===r||null===(n=r.publicData)||void 0===n?void 0:n.transactionProcessAlias)||"";return(0,f.pv)(o)&&((e,t)=>{const r="undefined"!==typeof window,n=t.attributes,i=n&&n.availabilityPlan&&n.availabilityPlan.timezone;if(r&&t.id&&i){var o;const r=t.attributes.availabilityPlan.timezone,i="hour"===(null===n||void 0===n||null===(o=n.publicData)||void 0===o?void 0:o.unitType)?"hour":"day",a=(0,h.jB)(new Date,i,r),s=(0,h.uI)(a,"month",r,1,"months"),l=(0,h.uI)(s,"month",r,1,"months");return Promise.all([e(j(t.id,a,s,r)),e(j(t.id,s,l,r))])}Promise.all([])})(t,i),e}))}},37379:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>w,Bz:()=>T,Ou:()=>A,Ze:()=>P,tU:()=>E});var n=r(80045),i=r(89379),o=r(41233),a=r(16882),s=r(55346),l=r(32423);const c=["perPage"],u="app/ManageListingsPage/FETCH_LISTINGS_REQUEST",d="app/ManageListingsPage/FETCH_LISTINGS_SUCCESS",h="app/ManageListingsPage/FETCH_LISTINGS_ERROR",p="app/ManageListingsPage/OPEN_LISTING_REQUEST",f="app/ManageListingsPage/OPEN_LISTING_SUCCESS",m="app/ManageListingsPage/OPEN_LISTING_ERROR",g="app/ManageListingsPage/CLOSE_LISTING_REQUEST",_="app/ManageListingsPage/CLOSE_LISTING_SUCCESS",y="app/ManageListingsPage/CLOSE_LISTING_ERROR",v="app/ManageListingsPage/ADD_OWN_ENTITIES",b={pagination:null,queryParams:null,queryInProgress:!1,queryListingsError:null,currentPageResultIds:[],ownEntities:{},openingListing:null,openingListingError:null,closingListing:null,closingListingError:null},x=(e,t)=>{const r=e.ownEntities.ownListing[t.id.uuid],n=(0,i.A)((0,i.A)({},r),{},{attributes:t.attributes}),o=(0,i.A)((0,i.A)({},e.ownEntities.ownListing),{},{[t.id.uuid]:n});return(0,i.A)((0,i.A)({},e),{},{ownEntities:(0,i.A)((0,i.A)({},e.ownEntities),{},{ownListing:o})})},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:n}=t;switch(r){case u:return(0,i.A)((0,i.A)({},e),{},{queryParams:n.queryParams,queryInProgress:!0,queryListingsError:null,currentPageResultIds:[]});case d:return(0,i.A)((0,i.A)({},e),{},{currentPageResultIds:(a=n.data,a.data.map((e=>e.id))),pagination:n.data.meta,queryInProgress:!1});case h:return console.error(n),(0,i.A)((0,i.A)({},e),{},{queryInProgress:!1,queryListingsError:n});case p:return(0,i.A)((0,i.A)({},e),{},{openingListing:n.listingId,openingListingError:null});case f:return(0,i.A)((0,i.A)({},x(e,n.data)),{},{openingListing:null});case m:return console.error(n),(0,i.A)((0,i.A)({},e),{},{openingListing:null,openingListingError:{listingId:e.openingListing,error:n}});case g:return(0,i.A)((0,i.A)({},e),{},{closingListing:n.listingId,closingListingError:null});case _:return(0,i.A)((0,i.A)({},x(e,n.data)),{},{closingListing:null});case y:return console.error(n),(0,i.A)((0,i.A)({},e),{},{closingListing:null,closingListingError:{listingId:e.closingListing,error:n}});case v:return((e,t)=>{const r=t.data;return(0,i.A)((0,i.A)({},e),{},{ownEntities:(0,o.fQ)((0,i.A)({},e.ownEntities),r)})})(e,n);default:return e}var a},A=(e,t)=>
2{const{ownEntities:r}=e.ManageListingsPage,n=t.map((e=>({id:e,type:"ownListing"})));return(0,o.nQ)(r,n,!1)},S=e=>(t,r,o)=>{t((e=>({type:u,payload:{queryParams:e}}))(e));const{perPage:s}=e,l=(0,n.A)(e,c),p=(0,i.A)((0,i.A)({},l),{},{perPage:s});return o.ownListings.query(p).then((e=>(t({type:v,payload:e}),t((e=>({type:d,payload:{data:e.data}}))(e)),e))).catch((e=>{throw t((e=>({type:h,error:!0,payload:e}))((0,a.jy)(e))),e}))},E=e=>(t,r,n)=>(t((e=>({type:g,payload:{listingId:e}}))(e)),n.ownListings.close({id:e},{expand:!0}).then((e=>(t((e=>({type:_,payload:e.data}))(e)),e))).catch((e=>{t((e=>({type:y,error:!0,payload:e}))((0,a.jy)(e)))}))),T=e=>(t,r,n)=>(t((e=>({type:p,payload:{listingId:e}}))(e)),n.ownListings.open({id:e},{expand:!0}).then((e=>(t((e=>({type:f,payload:e.data}))(e)),e))).catch((e=>{t((e=>({type:m,error:!0,payload:e}))((0,a.jy)(e)))}))),P=(e,t,r)=>{const n=(0,l.qg)(t),o=n.page||1,{aspectWidth:a=1,aspectHeight:c=1,variantPrefix:u="listing-card"}=r.layout.listingImage,d=c/a;return S((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},n),{},{page:o,perPage:42,include:["images","currentStock"],"fields.image":["variants.".concat(u),"variants.".concat(u,"-2x")]},(0,s.vf)("".concat(u),400,d)),(0,s.vf)("".concat(u,"-2x"),800,d)),{},{"limit.images":1}))}},87982:(e,t,r)=>{"use strict";r.d(t,{A:()=>G});var n=r(89379),i=r(65043),o=r(50805),a=r(97508),s=r(91688),l=r(63775),c=r(76732),u=r(24141),d=(r(44356),r(57302)),h=r(80137),p=r(44104),f=r(18689),m=r(71702),g=r(37614),_=r(80045),y=r(77775),v=r(98139),b=r.n(v);const x="SearchForm_root__wH7L7",w="SearchForm_searchInputIcon__91H99",A="SearchForm_searchInput__0BmsZ",S="SearchForm_searchPredictions__roO8P",E="SearchForm_keywordSearchWra
2pper__TQdAa",T="SearchForm_keywordInput__nRfmP",P="SearchForm_searchSubmit__XeVUZ",C="SearchForm_iconSvgGroup__8DvRP",I="SearchForm_iconSvg__4tWSI";var M=r(70579);const k=()=>(0,M.jsx)("svg",{className:I,width:"21",height:"22",viewBox:"0 0 21 22",xmlns:"http://www.w3.org/2000/svg",children:(0,M.jsxs)("g",{className:C,transform:"matrix(-1 0 0 1 20 1)",strokeWidth:"2",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,M.jsx)("path",{d:"M13 14l5.241 5.241"}),(0,M.jsx)("circle",{cx:"7.5",cy:"7.5",r:"7.5"})]})}),O=["onChange"],R=e=>e,L=e=>{const{intl:t,inputRef:r}=e;return(0,M.jsxs)("div",{className:E,children:[(0,M.jsx)("button",{className:P,children:(0,M.jsx)("div",{className:w,children:(0,M.jsx)(k,{})})}),(0,M.jsx)(y.D0,{name:"keywords",render:e=>{let{input:r,meta:i}=e;return(0,M.jsx)("input",(0,n.A)((0,n.A)({className:T},r),{},{id:"keyword-search-404",type:"text",placeholder:t.formatMessage({id:"NotFoundPage.SearchForm.placeholder"}),autoComplete:"off"}))}})]})},D=e=>{const{intl:t,handleChange:r}=e;return(0,M.jsx)(y.D0,{name:"location",format:R,render:e=>{let{input:i,meta:o}=e;const{onChange:a}=i,s=(0,_.A)(i,O),l=(0,n.A)((0,n.A)({},s),{},{onChange:e=>{a(e),r(e)}});return(0,M.jsx)(f.eN,{placeholder:t.formatMessage({id:"NotFoundPage.SearchForm.placeholder"}),iconClassName:w,inputClassName:A,predictionsClassName:S,input:l,meta:o})}})},N=e=>{const t=t=>{t.selectedPlace&&e.onSubmit({location:t})};return(0,M.jsx)(y.lV,(0,n.A)((0,n.A)({},e),{},{render:e=>{const{rootClassName:r,className:n,isKeywordSearch:i,intl:o,handleSubmit:a}=e,s=b()(r||x,n),l=i?a:e=>e.preventDefault();return(0,M.jsx)(f.lV,{className:s,onSubmit:l,children:i?(0,M.jsx)(L,{intl:o}):(0,M.jsx)(D,{intl:o,handleChange:t})})}}))};N.defaultProps={rootClassName:null,className:null};const F=(0,u.j4)(N),z="NotFoundPage_root__YGzGn",j="NotFoundPage_content__U8EUs",B="NotFoundPage_number__enByC marketplaceHeroTitleFontStyles",U="NotFoundPage_heading__t9v0e marketplaceModalTitleStyles",V="NotFoundPage_description__0OC04",q="NotFoundPage_searchForm__nQP3P";class H extends i.Component{constructor(e){super(e),this.props.staticContext.notfound=!0}render(){const{history:e,routeConfiguration:t,marketplaceName:r,isKeywordSearch:n,intl:i,scrollingDisabled:o}=this.props,a=i.formatMessage({id:"NotFoundPage.title"});return(0,M.jsx)(f.YW,{title:a,scrollingDisabled:o,children:(0,M.jsx)(f.JI,{topbar:(0,M.jsx)(m.A,{}),footer:(0,M.jsx)(g.A,{}),children:(0,M.jsx)("div",{className:z,children:(0,M.jsxs)("div",{className:j,children:[(0,M.jsx)("div",{className:B,children:"404"}),(0,M.jsx)(f.DZ,{as:"h1",rootClassName:U,children:(0,M.jsx)(u.sA,{id:"NotFoundPage.heading"})}),(0,M.jsx)("p",{className:V,children:(0,M.jsx)(u.sA,{id:"NotFoundPage.description",values:{marketplaceName:r}})}),(0,M.jsx)(F,{className:q,isKeywordSearch:n,onSubmit:r=>{const{keywords:n,location:i}=r,{search:o,selectedPlace:a}=i||{},{origin:s,bounds:l}=a||{},c=n?{keywords:n}:{address:o,origin:s,bounds:l};e.push((0,d.__)("SearchPage",t,{},c))}})]})})})})}}H.defaultProps={staticContext:{}};const G=(0,o.Zz)((0,a.Ng)((e=>({scrollingDisabled:(0,p.kl)(e)}))))((e=>{const t=(0,c.Z6)(),r=(0,l._r)(),i=(0,s.W6)(),o=(0,u.tz)();return(0,M.jsx)(H,(0,n.A)({routeConfiguration:t,marketplaceName:r.marketplaceName,isKeywordSearch:(0,h.Ej)(r),history:i,intl:o},e))}))},96241:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,ec:()=>m,n3:()=>f,xw:()=>g});var n=r(89379),i=r(16882);const o="app/PasswordChangePage/CHANGE_PASSWORD_REQUEST",a="app/PasswordChangePage/CHANGE_PASSWORD_SUCCESS",s="app/PasswordChangePage/CHANGE_PASSWORD_ERROR",l="app/PasswordChangePage/CHANGE_PASSWORD_CLEAR",c="app/PasswordChangePage/RESET_PASSWORD_REQUEST",u="app/PasswordChangePage/RESET_PASSWORD_SUCCESS",d="app/PasswordChangePage/RESET_PASSWORD_ERROR",h={changePasswordError:null,changePasswordInProgress:!1,passwordChanged:!1,resetPasswordInProgress:!1,resetPasswordError:null};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case o:return(0,n.A)((0,n.A)({},e),{},{changePasswordInProgress:!0,changePasswordError:null,passwordChanged:!1});case a:return(0,n.A)((0,n.A)({},e),{},{changePasswordInProgress:!1,passwordChanged:!0});case s:return(0,n.A)((0,n.A)({},e),{},{changePasswordInProgress:!1,changePasswordError:i});case l:return(0,n.A)({},h);case c:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!0,resetPasswordError:null});case u:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1});case d:return console.error(i),(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1,resetPasswordError:i});default:return e}}const f=()=>({type:l}),m=e=>(t,r,n)=>{t({type:o});const{newPassword:l,currentPassword:c}=e;return n.currentUser.changePassword({newPassword:l,currentPassword:c}).then((()=>t({type:a}))).catch((e=>{var r;throw t((r=(0,i.jy)((0,i.jy)(e)),{type:s,payload:r,error:!0})),e}))},g=e=>(t,r,n)=>(t({type:c}),n.passwordReset.request({email:e}).then((()=>t({type:u}))).catch((e=>t((e=>({type:d,error:!0,payload:e}))((0,i.jy)(e))))))},15827:(e,t,r)=>{"use strict";r.d(t,{Aw:()=>f,Ay:()=>d,e5:()=>h,ks:()=>p});var n=r(89379),i=r(16882);const o="app/PasswordRecoveryPage/RECOVERY_REQUEST",a="app/PasswordRecoveryPage/RECOVERY_SUCCESS",s="app/PasswordRecoveryPage/RECOVERY_ERROR",l="app/PasswordRecoveryPage/RETYPE_EMAIL",c="app/PasswordRecoveryPage/CLEAR_RECOVERY_ERROR",u={initialEmail:null,submittedEmail
2:null,recoveryError:null,recoveryInProgress:!1,passwordRequested:!1};function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case o:return(0,n.A)((0,n.A)({},e),{},{submittedEmail:null,recoveryInProgress:!0,recoveryError:null});case a:return(0,n.A)((0,n.A)({},e),{},{submittedEmail:i.email,initialEmail:i.email,recoveryInProgress:!1,passwordRequested:!0});case s:return(0,n.A)((0,n.A)({},e),{},{recoveryInProgress:!1,recoveryError:i.error,initialEmail:i.email});case l:return(0,n.A)((0,n.A)({},e),{},{initialEmail:e.submittedEmail,submittedEmail:null,passwordRequested:!1});case c:return(0,n.A)((0,n.A)({},e),{},{recoveryError:null});default:return e}}const h=()=>({type:l}),p=()=>({type:c}),f=e=>(t,r,n)=>(t({type:o}),n.passwordReset.request({email:e}).then((()=>t((e=>({type:a,payload:{email:e}}))(e)))).catch((r=>t(((e,t)=>({type:s,payload:{error:e,email:t},error:!0}))((0,i.jy)(r),e)))))},43579:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>c,xw:()=>u});var n=r(89379),i=r(16882);const o="app/PasswordResetPage/RESET_PASSWORD_REQUEST",a="app/PasswordResetPage/RESET_PASSWORD_SUCCESS",s="app/PasswordResetPage/RESET_PASSWORD_ERROR",l={resetPasswordInProgress:!1,resetPasswordError:null};function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case o:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!0,resetPasswordError:null});case a:return(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1});case s:return console.error(i),(0,n.A)((0,n.A)({},e),{},{resetPasswordInProgress:!1,resetPasswordError:i});default:return e}}const u=(e,t,r)=>(n,l,c)=>{n({type:o});const u={email:e,passwordResetToken:t,newPassword:r};return c.passwordReset.reset(u).then((()=>n({type:a}))).catch((e=>n((e=>({type:s,error:!0,payload:e}))((0,i.jy)(e)))))}},42299:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,WM:()=>_,Ze:()=>y,rk:()=>g});var n=r(89379),i=r(92943),o=r(43798),a=r(16882),s=r(85506);const l="app/PaymentMethodsPage/SETUP_INTENT_REQUEST",c="app/PaymentMethodsPage/SETUP_INTENT_SUCCESS",u="app/PaymentMethodsPage/SETUP_INTENT_ERROR",d="app/PaymentMethodsPage/STRIPE_CUSTOMER_REQUEST",h="app/PaymentMethodsPage/STRIPE_CUSTOMER_SUCCESS",p="app/PaymentMethodsPage/STRIPE_CUSTOMER_ERROR",f={setupIntentInProgress:!1,setupIntentError:null,setupIntent:null,stripeCustomerFetched:!1};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case l:return(0,n.A)((0,n.A)({},e),{},{setupIntentInProgress:!0,setupIntentError:null});case c:return(0,n.A)((0,n.A)({},e),{},{setupIntentInProgress:!1,setupIntentError:null,setupIntent:i});case u:return console.error(i),(0,n.A)((0,n.A)({},e),{},{setupIntentInProgress:!1,setupIntentError:null});case d:return(0,n.A)((0,n.A)({},e),{},{stripeCustomerFetched:!1});case h:return(0,n.A)((0,n.A)({},e),{},{stripeCustomerFetched:!0});case p:return console.error(i),(0,n.A)((0,n.A)({},e),{},{stripeCustomerFetchError:i});default:return e}}const g=()=>(e,t,r)=>(e({type:l}),r.stripeSetupIntents.create().then((t=>{const r=t.data.data;return e({type:c}),r})).catch((t=>{const r=(0,a.jy)(t);return s.z3(r,"create-setup-intent-failed"),e((e=>({type:u,error:!0,payload:e}))(r)),{createStripeSetupIntentSuccess:!1}}))),_=()=>(e,t,r)=>(e({type:d}),e((0,i.rQ)({include:["stripeCustomer.defaultPaymentMethod"]})).then((t=>{e({type:h})})).catch((t=>{const r=(0,a.jy)(t);s.z3(r,"fetch-stripe-customer-failed"),e((e=>({type:p,error:!0,payload:e}))(r))}))),y=()=>(e,t,r)=>(e((0,o.x1)()),e(_()))},7147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,j:()=>i});var n=r(86092);const i="privacy-policy",o=(e,t)=>e=>{const t={privacyPolicy:"content/pages/".concat(i,".json")};return e((0,n.rt)(t,!0))}},75387:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>x,Ze:()=>E});var n=r(89379),i=r(703),o=r(92943),a=r(55346),s=r(41233),l=r(16882);const{UUID:c}=a.gK,u="app/ProfilePage/SET_INITIAL_STATE",d="app/ProfilePage/SHOW_USER_REQUEST",h="app/ProfilePage/SHOW_USER_SUCCESS",p="app/ProfilePage/SHOW_USER_ERROR",f="app/ProfilePage/QUERY_LISTINGS_REQUEST",m="app/ProfilePage/QUERY_LISTINGS_SUCCESS",g="app/ProfilePage/QUERY_LISTINGS_ERROR",_="app/ProfilePage/QUERY_REVIEWS_REQUEST",y="app/ProfilePage/QUERY_REVIEWS_SUCCESS",v="app/ProfilePage/QUERY_REVIEWS_ERROR",b={userId:null,userListingRefs:[],userShowError:null,queryListingsError:null,reviews:[],queryReviewsError:null};function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case u:return(0,n.A)({},b);case d:return(0,n.A)((0,n.A)({},e),{},{userShowError:null,userId:i.userId});case h:return e;case p:return(0,n.A)((0,n.A)({},e),{},{userShowError:i});case f:return(0,n.A)((0,n.A)({},e),{},{userListingRefs:i.userId===e.userId?e.userListingRefs:[],queryListingsError:null});case m:return(0,n.A)((0,n.A)({},e),{},{userListingRefs:i.listingRefs});case g:return(0,n.A)((0,n.A)({},e),{},{userListingRefs:[],queryListingsError:i});case _:return(0,n.A)((0,n.A)({},e),{},{queryReviewsError:null});case y:return(0,n.A)((0,n.A)({},e),{},{reviews:i});case v:return(0,n.A)((0,n.A)({},e),{},{reviews:[],queryReviewsError:i});default:return e}}const w=(e,t)=>(r,o,s)=>{r((e=>({type:f,payload:{userId:e}}))(e));const{aspectWidth:c=1,aspectHeight:u=1,variantPrefix:d="listing-card"}=t.layout.listingImage,h=u/c;return s.listings.query((0,n.A)((0,n.A)({author_id:e,include:["author","images"],"fields.image":["variants.".concat(d),"variants.".concat(d,"-2x")]},(0,a.vf)("".concat(d),400,h)),(0,a.vf)("".concat(d,"-2x"),800,h))).then((e=>{const t=e.data.data.map((e=>{let{id:t,type:r}=e;return{id:t,type:r}}));return r((0,i.Id)(e)),r((e=>({type:m,payload:{listingRefs:e}}))(t)),e})).catch((e=>r((e=>({type:g,error:!0,payload:e}))((0,l.jy)(e)))))},A=e=>(t,r,n)=>{n.reviews.query({subject_id:e,state:"public",include:["author","author.profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{const r=(0,s.Uf)(e);t((e=>({type:y,payload:e}))(r))})).catch((e=>t((e=>({type:v,error:!0,payload:e}))(e))))},S=(e,t)=>(r,n,o)=>(r((e=>({type:d,payload:{userId:e}}))(e)),o.users.show({id:e,include:["profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{var n;const o={userFields:null===t||void 0===t||null===(n=t.user)||void 0===n?void 0:n.userFields};return r((0,i.Id)(e,o)),r({type:h}),e})).catch((e=>r((e=>({type:p,error:!0,payload:e}))((0,l.jy)(e)))))),E=(e,t,r)=>(t,n,i)=>{const a=new c(e.id);return t({type:u}),Promise.all([t((0,o.rQ)()),t(S(a,r)),t(w(a,r)),t(A(a))])}},11851:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,V6:()=>v,r7:()=>b});
2var n=r(89379),i=r(41233),o=r(16882),a=r(92943);const s="app/ProfileSettingsPage/CLEAR_UPDATED_FORM",l="app/ProfileSettingsPage/UPLOAD_IMAGE_REQUEST",c="app/ProfileSettingsPage/UPLOAD_IMAGE_SUCCESS",u="app/ProfileSettingsPage/UPLOAD_IMAGE_ERROR",d="app/ProfileSettingsPage/UPDATE_PROFILE_REQUEST",h="app/ProfileSettingsPage/UPDATE_PROFILE_SUCCESS",p="app/ProfileSettingsPage/UPDATE_PROFILE_ERROR",f={image:null,uploadImageError:null,uploadInProgress:!1,updateInProgress:!1,updateProfileError:null};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case l:return(0,n.A)((0,n.A)({},e),{},{image:(0,n.A)({},i.params),uploadInProgress:!0,uploadImageError:null});case c:{const{id:t,uploadedImage:r}=i,{file:o}=e.image||{},a={id:t,imageId:r.id,file:o,uploadedImage:r};return(0,n.A)((0,n.A)({},e),{},{image:a,uploadInProgress:!1})}case u:return(0,n.A)((0,n.A)({},e),{},{image:null,uploadInProgress:!1,uploadImageError:i.error});case d:return(0,n.A)((0,n.A)({},e),{},{updateInProgress:!0,updateProfileError:null});case h:return(0,n.A)((0,n.A)({},e),{},{image:null,updateInProgress:!1});case p:return(0,n.A)((0,n.A)({},e),{},{image:null,updateInProgress:!1,updateProfileError:i});case s:return(0,n.A)((0,n.A)({},e),{},{updateProfileError:null,uploadImageError:null});default:return e}}const g=e=>({type:l,payload:{params:e}}),_=e=>({type:c,payload:e.data}),y=e=>({type:u,payload:e,error:!0});function v(e){return(t,r,n)=>{const i=e.id;t(g(e));const a={image:e.file};return n.images.upload(a,{expand:!0,"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{const r=e.data.data;t(_({data:{id:i,uploadedImage:r}}))})).catch((e=>t(y({id:i,error:(0,o.jy)(e)}))))}}const b=e=>(t,r,n)=>{var s;t({type:d,payload:{params:s}});return n.currentUser.updateProfile(e,{expand:!0,include:["profileImage"],"fields.image":["variants.square-small","variants.square-small2x"]}).then((e=>{t({type:h,payload:e.data});const r=(0,i.Uf)(e);if(1!==r.length)throw new Error("Expected a resource in the sdk.currentUser.updateProfile response");const n=r[0];t((0,a.fK)(n))})).catch((e=>{return t((r=(0,o.jy)(e),{type:p,payload:r,error:!0}));var r}))}},7467:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S,Ze:()=>C,jA:()=>T});var n=r(80045),i=r(89379),o=r(16882),a=r(61254),s=r(2376),l=r(55346),c=r(80137),u=r(41233),d=r(32423),h=r(703);const p=["perPage","price","dates","sort","mapSearch"],f=["page","address","origin"],{UUID:m}=l.gK,g="app/SearchPage/SEARCH_LISTINGS_REQUEST",_="app/SearchPage/SEARCH_LISTINGS_SUCCESS",y="app/SearchPage/SEARCH_LISTINGS_ERROR",v="app/SearchPage/SEARCH_MAP_SET_ACTIVE_LISTING",b="app/SearchPage/FETCH_REVIEWS_REQUEST",x="app/SearchPage/FETCH_REVIEWS_SUCCESS",w="app/SearchPage/FETCH_REVIEWS_ERROR",A={pagination:null,searchParams:null,searchInProgress:!1,searchListingsError:null,currentPageResultIds:[],reviews:{}},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:n}=t;switch(r){case g:return(0,i.A)((0,i.A)({},e),{},{searchParams:n.searchParams,searchInProgress:!0,searchMapListingIds:[],searchListingsError:null});case _:return(0,i.A)((0,i.A)({},e),{},{currentPageResultIds:(o=n.data,o.data.map((e=>e.id))),pagination:n.data.meta,searchInProgress:!1});case y:return console.error(n),(0,i.A)((0,i.A)({},e),{},{searchInProgress:!1,searchListingsError:n});case v:return(0,i.A)((0,i.A)({},e),{},{activeListingId:n});case b:return(0,i.A)((0,i.A)({},e),{},{fetchReviewsError:null});case x:return(0,i.A)((0,i.A)({},e),{},{reviews:(0,i.A)((0,i.A)({},e.reviews),{},{[n.listingId]:n.reviews})});case w:return(0,i.A)((0,i.A)({},e),{},{fetchReviewsError:n});default:return e}var o},E=(e,t)=>(r,l,u)=>{r((e=>({type:g,payload:{searchParams:e}}))(e));const{perPage:d,price:f,dates:m,sort:v,mapSearch:b}=e,x=(0,n.A)(e,p),w=(e=>{const r=e=>(0,a.H5)(e,(0,a.Ft)(t.currency)),n=e?e.split(","):[];return e&&2===n.length?{price:[r(n[0]),r(n[1])+1].join(",")}:{}})(f),A=(e=>{const r="Etc/UTC",n=t.search.defaultFilters.find((e=>"dates"===e.key)),i=e?e.split(","):[],o=n&&e&&2===i.length,{dateRangeMode:a,availability:l}=n||{},c="night"===a,u="time-full"===l,d=o?(0,s.uA)(i[0],r):null,h=o?(0,s.uA)(i[1],r):null,p=o&&c?h:o?(0,s.Cf)(h,r):null,f=(0,s.uI)(new Date,"day",r),m=(0,s.YP)(f,14,"hours",r),g=o&&d.getTime()>=m.getTime()&&d.getTime()<=p.getTime(),_=u?(0,s.YM)(d,p):1,y=u?1440*_-60:60;return g?{start:(v=d,(0,s.YP)(v,14,"hours",r)),end:(e=>(0,s.tY)(e,12,"hours",r))(p),availability:"time-partial",minDuration:y}:{};var v})(m),S=(e=>Object.keys(e).length>0?{}:{minStock:1,stockMode:"match-undefined"})(A),E=v===t.search.sortConfig.relevanceKey?{}:{sort:v},T=(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(e=>{var r;const n=null===(r=t.search.defaultFilters)||void 0===r?void 0:r.find((e=>"category"===e.schemaType)),o=t.categoryConfiguration.categories,{key:a,scope:s}=n||{},l=(0,c.Ap)(a,s),u=(e,t,r,n)=>{const o="".concat(l).concat(r),a=null===n||void 0===n?void 0:n[o],s=t.find((e=>e.id===a)),c=(null===s||void 0===s?void 0:s.subcategories)||[];return s&&c.length>0?(0,i.A)({[o]:a},u(e,c,r+1,n)):s?{[o]:a}:{}}
2,d=u(a,o,1,e),h=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return r.startsWith(l)?e:(0,i.A)((0,i.A)({},e),{},{[r]:n})}),{});return(0,i.A)((0,i.A)({},h),d)})(x)),w),A),S),E),(P=t.listing.listingTypes,t.listing.enforceValidListingType?{pub_listingType:P.map((e=>e.listingType))}:{})),{},{perPage:d});var P;return u.listings.query(T).then((e=>{var n;const i={listingFields:null===t||void 0===t||null===(n=t.listing)||void 0===n?void 0:n.listingFields};return r((0,h.Id)(e,i)),r((e=>({type:_,payload:{data:e.data}}))(e)),e})).catch((e=>{throw r((e=>({type:y,error:!0,payload:e}))((0,o.jy)(e))),e}))},T=e=>({type:v,payload:e}),P=e=>(t,r,n)=>(t({type:b}),n.reviews.query({listing_id:new m(e),state:"public",include:["author","listing"]}).then((r=>{const n=(0,u.Uf)(r);return t(((e,t)=>({type:x,payload:{listingId:e,reviews:t}}))(e,n)),n})).catch((e=>{var r;throw console.error("Error fetching reviews:",e),t((r=(0,o.jy)(e),{type:w,payload:r,error:!0})),e}))),C=(e,t,r)=>(e,o,a)=>{const s=(0,d.qg)(t,{latlng:["origin"],latlngBounds:["bounds"]}),{page:u=1,address:h,origin:p}=s,m=(0,n.A)(s,f),g=(0,c.fC)(r)&&p?{origin:p}:{},{aspectWidth:_=1,aspectHeight:y=1,variantPrefix:v="listing-card"}=r.layout.listingImage,b=y/_,x=E((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},m),g),{},{page:u,perPage:20,include:["author","author.profileImage","images"],"fields.listing":["title","geolocation","description","publicData.listingType","publicData.transactionProcessAlias","publicData.unitType","publicData.location","publicData.pickupEnabled","publicData.shippingEnabled"],"fields.user":["profile.displayName","profile.abbreviatedName","profile.publicData"],"fields.image":["variants.scaled-small","variants.scaled-medium","variants.".concat(v),"variants.".concat(v,"-2x"),"variants.square-small","variants.square-small2x"]},(0,l.vf)("".concat(v),400,b)),(0,l.vf)("".concat(v,"-2x"),800,b)),{},{"limit.images":2}),r);return e(x).then((t=>{const r=t.data.data.map((e=>e.id.uuid)),n=[...new Set(r)].map((t=>e(P(t))));return Promise.all(n)}))}},98841:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,Iz:()=>f,Ze:()=>m});var n=r(89379),i=r(22616),o=r.n(i),a=r(79290),s=r(92943);const l="app/StripePayoutPage/SET_INITIAL_VALUES",c="app/StripePayoutPage/SAVE_PAYOUT_DETAILS_REQUEST",u="app/StripePayoutPage/SAVE_PAYOUT_DETAILS_SUCCESS",d="app/StripePayoutPage/SAVE_PAYOUT_DETAILS_ERROR",h={payoutDetailsSaveInProgress:!1,payoutDetailsSaved:!1,fromReturnURL:!1};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case l:return(0,n.A)((0,n.A)({},h),i);case c:return(0,n.A)((0,n.A)({},e),{},{payoutDetailsSaveInProgress:!0});case d:return(0,n.A)((0,n.A)({},e),{},{payoutDetailsSaveInProgress:!1});case u:return(0,n.A)((0,n.A)({},e),{},{payoutDetailsSaveInProgress:!1,payoutDetailsSaved:!0});default:return e}}const f=(e,t)=>(r,n,i)=>{const o=t?a.CG:a.LQ;return r({type:c}),r(o(e,{expand:!0})).then((e=>(r({type:u}),e))).catch((()=>r({type:d})))},m=()=>(e,t,r)=>{var n;return e({type:l,payload:o()(n,Object.keys(h))}),e((0,s.rQ)()).then((r=>{const n=t().user.currentUser;return n&&n.stripeAccount&&e((0,a.z5)()),r}))}},51945:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,j:()=>i});var n=r(86092);const i="terms-of-service",o=(e,t)=>e=>{const t={termsOfService:"content/pages/".concat(i,".json")};return e((0,n.rt)(t,!0))}},71702:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var n=r(89379),i=r(80045),o=(r(65043),r(50805)),a=r(97508),s=r(91688),l=r(56356),c=(r(44356),r(92943)),u=r(94532),d=r(44104),h=r(70579);const p=["authInProgress","currentPage","currentSearchParams","currentUser","currentUserHasListings","currentUserHasOrders","history","isAuthenticated","isLoggedInAs","authScopes","hasGenericError","location","notificationCount","onLogout","onManageDisableScrolling","sendVerificationEmailInProgress","sendVerificationEmailError","onResendVerificationEmail"],f=(0,l.Ay)((()=>r.e(8347).then(r.bind(r,79937)))),m=e=>{const{authInProgress:t,currentPage:r,currentSearchParams:o,currentUser:a,currentUserHasListings:s,currentUserHasOrders:l,history:c,isAuthenticated:u,isLoggedInAs:d,authScopes:m,hasGenericError:g,location:_,notificationCount:y,onLogout:v,onManageDisableScrolling:b,sendVerificationEmailInProgress:x,sendVerificationEmailError:w,onResendVerificationEmail
2:A}=e,S=(0,i.A)(e,p);return(0,h.jsx)(f,(0,n.A)({authInProgress:t,currentPage:r,currentSearchParams:o,currentUser:a,currentUserHasListings:s,currentUserHasOrders:l,history:c,isAuthenticated:u,isLoggedInAs:d,authScopes:m,location:_,notificationCount:y,onLogout:v,onManageDisableScrolling:b,onResendVerificationEmail:A,sendVerificationEmailInProgress:x,sendVerificationEmailError:w,showGenericError:g},S))};m.defaultProps={currentPage:null,currentSearchParams:null,currentUser:null,currentUserHasOrders:null,notificationCount:0,sendVerificationEmailError:null,authScopes:null};const g=(0,o.Zz)(s.y,(0,a.Ng)((e=>{const{isAuthenticated:t,isLoggedInAs:r,logoutError:n,authScopes:i}=e.auth,{currentUser:o,currentUserHasListings:a,currentUserHasOrders:s,currentUserNotificationCount:l,sendVerificationEmailInProgress:d,sendVerificationEmailError:h}=e.user,p=!(!n&&!(0,c.yM)(e));return{authInProgress:(0,u.TV)(e),currentUser:o,currentUserHasListings:a,currentUserHasOrders:s,notificationCount:l,isAuthenticated:t,isLoggedInAs:r,authScopes:i,sendVerificationEmailInProgress:d,sendVerificationEmailError:h,hasGenericError:p}}),(e=>({onLogout:t=>e((0,u.ri)(t)),onManageDisableScrolling:(t,r)=>e((0,d.l)(t,r)),onResendVerificationEmail:()=>e((0,c.kH)())}))))(m)},46067:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Z,Ze:()=>pe,Zu:()=>he,_z:()=>se,g$:()=>ie,mh:()=>ae,rU:()=>ce,r_:()=>$,x1:()=>K});var n=r(89379),i=r(22616),o=r.n(i),a=r(57273),s=r.n(a),l=r(54320),c=r.n(l),u=r(55346),d=r(2376),h=r(16882),p=r(95565),f=r(85506),m=r(41233),g=r(89413),_=r(703),y=r(92943);const{UUID:v}=u.gK,b=["reviews","reviews.author","reviews.subject"],x="app/TransactionPage/SET_INITIAL_VALUES",w="app/TransactionPage/FETCH_TRANSACTION_REQUEST",A="app/TransactionPage/FETCH_TRANSACTION_SUCCESS",S="app/TransactionPage/FETCH_TRANSACTION_ERROR",E="app/TransactionPage/FETCH_TRANSITIONS_REQUEST",T="app/TransactionPage/FETCH_TRANSITIONS_SUCCESS",P="app/TransactionPage/FETCH_TRANSITIONS_ERROR",C="app/TransactionPage/MARK_RECEIVED_REQUEST",I="app/TransactionPage/TRANSITION_SUCCESS",M="app/TransactionPage/TRANSITION_ERROR",k="app/TransactionPage/FETCH_MESSAGES_REQUEST",O="app/TransactionPage/FETCH_MESSAGES_SUCCESS",R="app/TransactionPage/FETCH_MESSAGES_ERROR",L="app/TransactionPage/SEND_MESSAGE_REQUEST",D="app/TransactionPage/SEND_MESSAGE_SUCCESS",N="app/TransactionPage/SEND_MESSAGE_ERROR",F="app/TransactionPage/SEND_REVIEW_REQUEST",z="app/TransactionPage/SEND_REVIEW_SUCCESS",j="app/TransactionPage/SEND_REVIEW_ERROR",B="app/TransactionPage/FETCH_TIME_SLOTS_REQUEST",U="app/TransactionPage/FETCH_TIME_SLOTS_SUCCESS",V="app/TransactionPage/FETCH_TIME_SLOTS_ERROR",q="app/TransactionPage/FETCH_LINE_ITEMS_REQUEST",H="app/TransactionPage/FETCH_LINE_ITEMS_SUCCESS",G="app/TransactionPage/FETCH_LINE_ITEMS_ERROR",W={fetchTransactionInProgress:!1,fetchTransactionError:null,transactionRef:null,transitionInProgress:null,transitionError:null,fetchMessagesInProgress:!1,fetchMessagesError:null,totalMessages:0,totalMessagePages:0,oldestMessagePageFetched:0,messages:[],initialMessageFailedToTransaction:null,savePaymentMethodFailed:!1,sendMessageInProgress:!1,sendMessageError:null,sendReviewInProgress:!1,sendReviewError:null,monthlyTimeSlots:{},fetchTransitionsInProgress:!1,fetchTransitionsError:null,processTransitions:null,lineItems:null,fetchLineItemsInProgress:!1,fetchLineItemsError:null},Y=(e,t)=>e.filter((e=>!t.find((t=>e.id.uuid===t.id.uuid)))).concat(t);function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case x:return(0,n.A)((0,n.A)({},W),i);case w:return(0,n.A)((0,n.A)({},e),{},{fetchTransactionInProgress:!0,fetchTransactionError:null});case A:{const t={id:i.data.data.id,type:"transaction"};return(0,n.A)((0,n.A)({},e),{},{fetchTransactionInProgress:!1,transactionRef:t})}case S:return console.error(i),(0,n.A)((0,n.A)({},e),{},{fetchTransactionInProgress:!1,fetchTransactionError:i});case E:return(0,n.A)((0,n.A)({},e),{},{fetchTransitionsInProgress:!0,fetchTransitionsError:null});case T:return(0,n.A)((0,n.A)({},e),{},{fetchTransitionsInProgress:!1,processTransitions:i});case P:return console.error(i),(0,n.A)((0,n.A)({},e),{},{fetchTransitionsInProgress:!1,fetchTransitionsError:i});case C:return(0,n.A)((0,n.A)({},e),{},{transitionInProgress:i,transitionError:null});case I:return(0,n.A)((0,n.A)({},e),{},{transitionInProgress:null});case M:return(0,n.A)((0,n.A)({},e),{},{transitionInProgress:null,transitionError:i});case k:return(0,n.A)((0,n.A)({},e),{},{fetchMessagesInProgress:!0,fetchMessagesError:null});
2case O:{const t=e.oldestMessagePageFetched>i.page?e.oldestMessagePageFetched:i.page;return(0,n.A)((0,n.A)({},e),{},{fetchMessagesInProgress:!1,messages:Y(e.messages,i.messages),totalMessages:i.totalItems,totalMessagePages:i.totalPages,oldestMessagePageFetched:t})}case R:return(0,n.A)((0,n.A)({},e),{},{fetchMessagesInProgress:!1,fetchMessagesError:i});case L:return(0,n.A)((0,n.A)({},e),{},{sendMessageInProgress:!0,sendMessageError:null,initialMessageFailedToTransaction:null});case D:return(0,n.A)((0,n.A)({},e),{},{sendMessageInProgress:!1});case N:return(0,n.A)((0,n.A)({},e),{},{sendMessageInProgress:!1,sendMessageError:i});case F:return(0,n.A)((0,n.A)({},e),{},{sendReviewInProgress:!0,sendReviewError:null});case z:return(0,n.A)((0,n.A)({},e),{},{sendReviewInProgress:!1});case j:return(0,n.A)((0,n.A)({},e),{},{sendReviewInProgress:!1,sendReviewError:i});case B:{const t=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[i]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[i]),{},{fetchTimeSlotsError:null,fetchTimeSlotsInProgress:!0})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:t})}case U:{const t=i.monthId,r=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[t]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[t]),{},{fetchTimeSlotsInProgress:!1,timeSlots:i.timeSlots})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:r})}case V:{const t=i.monthId,r=(0,n.A)((0,n.A)({},e.monthlyTimeSlots),{},{[t]:(0,n.A)((0,n.A)({},e.monthlyTimeSlots[t]),{},{fetchTimeSlotsInProgress:!1,fetchTimeSlotsError:i.error})});return(0,n.A)((0,n.A)({},e),{},{monthlyTimeSlots:r})}case q:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!0,fetchLineItemsError:null});case H:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!1,lineItems:i});case G:return(0,n.A)((0,n.A)({},e),{},{fetchLineItemsInProgress:!1,fetchLineItemsError:i});default:return e}}const K=e=>({type:x,payload:o()(e,Object.keys(W))}),X=()=>({type:D}),J=()=>({type:z}),Q=e=>({type:j,error:!0,payload:e}),$=(e,t,r,i)=>(o,a,s)=>{const l=(0,d.B)(t,i);o((e=>({type:B,payload:e}))(l));return o((c=(0,n.A)({listingId:e,start:t,end:r},{perPage:500,page:1}),(e,t,r)=>r.timeslots.query(c).then((e=>(0,m.Uf)(e))))).then((e=>{o(((e,t)=>({type:U,payload:{timeSlots:t,monthId:e}}))(l,e))})).catch((e=>{o(((e,t)=>({type:V,error:!0,payload:{monthId:e,error:t}}))(l,(0,h.jy)(e)))}));var c},ee=e=>{const{aspectWidth:t=1,aspectHeight:r=1,variantPrefix:i="listing-card"}=e,o=r/t;return(0,n.A)((0,n.A)({"fields.image":["variants.square-small","variants.square-small2x","variants.".concat(i),"variants.".concat(i,"-2x")]},(0,u.vf)("".concat(i),400,o)),(0,u.vf)("".concat(i,"-2x"),800,o))},te=(e,t,r)=>(i,o,a)=>{i({type:w});let s=null;return a.transactions.show((0,n.A)({id:e,include:["customer","customer.profileImage","provider","provider.profileImage","listing","listing.currentStock","booking","reviews","reviews.author","reviews.subject"]},ee(r.layout.listingImage)),{expand:!0}).then((o=>{s=o;const l=(e=>e.data.data.relationships.listing.data)(o).id,c=(0,m.fQ)({},o.data),u={id:l,type:"listing"},h={id:e,type:"transaction"},p=(0,m.nQ)(c,[u,h]),f=p[0],_=p[1],y=(0,g.GN)(_.attributes.processName);try{const e=(0,g.wz)(y),r=e.getState(_)===e.states.INQUIRY;"customer"===t&&(0,g.zn)(y)&&r&&((e,t)=>{const r="undefined"!==typeof window,n=t.attributes,i=n&&n.availabilityPlan&&n.availabilityPlan.timezone;if(r&&t.id&&i){const r=t.attributes.availabilityPlan.timezone,n=(0,d.jB)(new Date,"hour",r),i=(0,d.uI)(n,"month",r,1,"months"),o=(0,d.uI)(i,"month",r,1,"months");return Promise.all([e($(t.id,n,i,r)),e($(t.id,i,o,r))])}Promise.all([])})(i,f)}catch(v){console.log("transaction process (".concat(y,") was not recognized"))}return f&&f.attributes&&!f.attributes.deleted?a.listings.show((0,n.A)({id:l,include:["author","author.profileImage","images"]},ee(r.layout.listingImage))):o})).then((e=>{var t;const n={listingFields:null===r||void 0===r||null===(t=r.listing)||void 0===t?void 0:t.listingFields};return i((0,_.Id)(s,n)),i((0,_.Id)(e,n)),i((e=>({type:A,payload:e}))(s)),e})).catch((e=>{throw i((e=>({type:S,error:!0,payload:e}))((0,h.jy)(e))),e}))},re=e=>new Promise((t=>window.setTimeout(t,e))),ne=(e,t)=>e.transactions.show({id:t},{expand:!0}),ie=(e,t,r)=>(n,i,o)=>i().TransactionPage.transitionInProgress?Promise.reject(new Error("Transition already in progress")):(n((e=>({type:C,payload:e}))(t)),o.transactions.transition({id:e,transition:t,params:r},{expand:!0}).then((t=>(n((0,_.Id)(t)),n({type:I}),n((0,y.vH)()),((e,t,r)=>{re(3e3).then((()=>ne(e,t))).then((n=>{var i,o,a;if(r((0,_.Id)(n)),"transition/mark-received-from-purchased"===(null===n||void 0===n||null===(i=n.data)||void 0===i||null===(o=i.data)||void 0===o||null===(a=o.attributes)||void 0===a?void 0:a.lastTransition))return re(8e3).then((()=>ne(e,t))).then((e=>{r((0,_.Id)(e))}))})).catch((e=>{console.log("error",e)}))})(o,e,n),t))).catch((r=>{throw n((e=>({type:M,error:!0,payload:e}))((0,h.jy)(r))),f.z3(r,"".concat(t,"-failed"),{txId:e,transition:t}),r}))),oe=(e,t,r)=>(i,o,a)=>{const s={page:t,perPage:100};return i({type:k}),a.messages.query((0,n.A)((0,n.A)({transaction_id:e,include:["sender","sender.profileImage"]},ee(r.layout.listingImage)),s)).then((a=>{const s=(0,m.Uf)(a),{totalItems:l,totalPages:c,page:u}=a.data.meta,d={totalItems:l,totalPages:c,page:u},h=o().TransactionPage.totalMessages;i(((e,t)=>({type:O,payload:(0,n.A)({messages:e},t)}))(s,d)),l>h&&t>1&&i(oe(e,1,r)).then((()=>{})).catch((()=>{}))})).catch((e=>{throw i((e=>({type:R,error:!0,payload:e}))((0,h.jy)(e))),e}))},ae=(e,t)=>(r,n,i)=>{const o=n(),{oldestMessagePageFetched:a,totalMessagePages:s}=o.TransactionPage;return r(oe(e,s>a?a+1:a,t))},se=(e,t,r)=>(n,i,o)=>(n({type:L}),o.messages.send({transactionId:e,content:t}).then((t=>{const i=t.data.data.id;return n(oe(e,1,r)).then((()=>
2(n(X()),i))).catch((()=>n(X())))})).catch((e=>{throw n((e=>({type:N,error:!0,payload:e}))((0,h.jy)(e))),e}))),le=(e,t,r,i,o,a)=>{const s=b;return o.transactions.transition({id:e,transition:t,params:r},(0,n.A)({expand:!0,include:s},ee(a.layout.listingImage))).then((e=>(i((0,_.Id)(e)),i(J()),e))).catch((e=>{throw i(Q((0,h.jy)(e))),e}))},ce=(e,t,r,i)=>(o,a,s)=>{const{reviewAsFirst:l,reviewAsSecond:c,hasOtherPartyReviewedFirst:u}=t;return o({type:F}),u?le(null===e||void 0===e?void 0:e.id,c,r,o,s,i):((e,t,r,i,o,a)=>{const s=b;return o.transactions.transition({id:e,transition:t,params:r},(0,n.A)({expand:!0,include:s},ee(a.layout.listingImage))).then((e=>(i((0,_.Id)(e)),i(J()),e))).catch((e=>{if((0,h.Zi)(e))return le(id,r,role,i,o);throw i(Q((0,h.jy)(e))),e}))})(null===e||void 0===e?void 0:e.id,l,r,o,s,i)},ue=e=>"object"===typeof e||Array.isArray(e)?!c()(e):!!e,de=e=>(t,r,n)=>(t({type:E}),n.processTransitions.query({transactionId:e}).then((e=>{var r;t((r=e.data.data,{type:T,payload:r}))})).catch((e=>{t((e=>({type:P,error:!0,payload:e}))((0,h.jy)(e)))}))),he=e=>{let{orderData:t,listingId:r,isOwnListing:n}=e;return e=>{e({type:q}),(0,p.FV)({orderData:t,listingId:r,isOwnListing:n}).then((t=>{const r=t.data;e((e=>({type:H,payload:e}))(r))})).catch((n=>{var i;e((i=(0,h.jy)(n),{type:G,error:!0,payload:i})),f.z3(n,"fetching-line-items-failed",{listingId:r.uuid,orderData:t})}))}},pe=(e,t,r)=>(t,n)=>{const i=new v(e.id),o=n().TransactionPage,a=o.transactionRef,l=e.transactionRole,c=a?{}:s()(o,ue);return t(K(c)),Promise.all([t(te(i,l,r)),t(oe(i,1,r)),t(de(i))])}},63775:(e,t,r)=>{"use strict";r.d(t,{S2:()=>o,_r:()=>a});var n=r(65043);const i=(0,n.createContext)(),o=i.Provider,a=()=>(0,n.useContext)(i)},76732:(e,t,r)=>{"use strict";r.d(t,{Z6:()=>a,j3:()=>o});var n=r(65043);const i=(0,n.createContext)(),o=i.Provider,a=()=>(0,n.useContext)(i)},94532:(e,t,r)=>{"use strict";r.d(t,{$5:()=>R,Ay:()=>P,TV:()=>C,bx:()=>E,iD:()=>k,kn:()=>L,lj:()=>M,ri:()=>O});var n=r(89379),i=r(92943),o=r(95565),a=r(16882),s=r(85506),l=r(57302);const c=e=>!1===(null===e||void 0===e?void 0:e.isAnonymous),u=e=>!0===(null===e||void 0===e?void 0:e.isLoggedInAs),d="app/auth/AUTH_INFO_REQUEST",h="app/auth/AUTH_INFO_SUCCESS",p="app/auth/LOGIN_REQUEST",f="app/auth/LOGIN_SUCCESS",m="app/auth/LOGIN_ERROR",g="app/auth/LOGOUT_REQUEST",_="app/auth/LOGOUT_SUCCESS",y="app/auth/LOGOUT_ERROR",v="app/auth/SIGNUP_REQUEST",b="app/auth/SIGNUP_SUCCESS",x="app/auth/SIGNUP_ERROR",w="app/auth/CONFIRM_REQUEST",A="app/auth/CONFIRM_SUCCESS",S="app/auth/CONFIRM_ERROR",E="app/USER_LOGOUT",T={isAuthenticated:!1,isLoggedInAs:!1,authScopes:[],authInfoLoaded:!1,loginError:null,loginInProgress:!1,logoutError:null,logoutInProgress:!1,signupError:null,signupInProgress:!1,confirmError:null,confirmInProgress:!1};function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case d:return e;case h:return(0,n.A)((0,n.A)({},e),{},{authInfoLoaded:!0,isAuthenticated:c(i),isLoggedInAs:u(i),authScopes:i.scopes});case p:return(0,n.A)((0,n.A)({},e),{},{loginInProgress:!0,loginError:null,logoutError:null,signupError:null});case f:return(0,n.A)((0,n.A)({},e),{},{loginInProgress:!1,isAuthenticated:!0});case m:return(0,n.A)((0,n.A)({},e),{},{loginInProgress:!1,loginError:i});case g:return(0,n.A)((0,n.A)({},e),{},{logoutInProgress:!0,loginError:null,logoutError:null});case _:return(0,n.A)((0,n.A)({},e),{},{logoutInProgress:!1,isAuthenticated:!1,isLoggedInAs:!1,authScopes:[]});case y:return(0,n.A)((0,n.A)({},e),{},{logoutInProgress:!1,logoutError:i});case v:return(0,n.A)((0,n.A)({},e),{},{signupInProgress:!0,loginError:null,signupError:null});case b:return(0,n.A)((0,n.A)({},e),{},{signupInProgress:!1});case x:return(0,n.A)((0,n.A)({},e),{},{signupInProgress:!1,signupError:i});case w:return(0,n.A)((0,n.A)({},e),{},{confirmInProgress:!0,loginError:null,confirmError:null});case A:return(0,n.A)((0,n.A)({},e),{},{confirmInProgress:!1,isAuthenticated:!0});case S:return(0,n.A)((0,n.A)({},e),{},{confirmInProgress:!1,confirmError:i});default:return e}}const C=e=>{const{loginInProgress:t,logoutInProgress:r,signupInProgress:n}=e.auth;return t||r||n},I=e=>({type:h,payload:e}),M=()=>(e,t,r)=>(e({type:d}),r.authInfo().then((t=>e(I(t)))).catch((t=>{s.z3(t,"auth-info-failed"),e(I(null))}))),k=(e,t)=>(r,n,o)=>C(n())?Promise.reject(new Error("Login or logout already in progress")):(r({type:p}),o.login({username:e,password:t}).then((()=>r({type:f}))).then((()=>r((0,i.rQ)()))).catch((e=>{return r((t=(0,a.jy)(e),{type:m,payload:t,error:!0}));var t}))),O=()=>(e,t,r)=>C(t())?Promise.reject(new Error("Login or logout already in progress")):(e({type:g}),r.logout().then((()=>{e({type:_}),e((0,i.g$)()),s.Ar(),e({type:E}
2)})).catch((t=>{return e((r=(0,a.jy)(t),{type:y,payload:r,error:!0}));var r}))),R=(e,t,r)=>(n,i,o)=>C(i())?Promise.reject(new Error("Login or logout already in progress")):(n({type:v}),o.currentUser.create(e).then((()=>n({type:b}))).then((()=>n(k(e.email,e.password)))).then((()=>{if(t&&r){if("stylist"===e.publicData.userType){const e=(0,l.yY)("NewListingPage",r);t.push(e.path)}}})).catch((t=>{var r;n((r=(0,a.jy)(t),{type:x,payload:r,error:!0})),s.z3(t,"signup-failed",{email:e.email,firstName:e.firstName,lastName:e.lastName})}))),L=e=>(t,r,n)=>(t({type:w}),(0,o.Tb)(e).then((e=>t({type:A}))).then((()=>t((0,i.rQ)()))).catch((r=>{return s.z3(r,"create-user-with-idp-failed",{params:e}),t((n=(0,a.jy)(r),{type:S,payload:n,error:!0}));var n})))},96723:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>u,MX:()=>d});var n=r(89379),i=r(16882),o=r(92943);const a="app/emailVerification/VERIFICATION_REQUEST",s="app/emailVerification/VERIFICATION_SUCCESS",l="app/emailVerification/VERIFICATION_ERROR",c={isVerified:!1,verificationError:null,verificationInProgress:!1};function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case a:return(0,n.A)((0,n.A)({},e),{},{verificationInProgress:!0,verificationError:null});case s:return(0,n.A)((0,n.A)({},e),{},{verificationInProgress:!1,isVerified:!0});case l:return(0,n.A)((0,n.A)({},e),{},{verificationInProgress:!1,verificationError:i});default:return e}}const d=e=>(t,r,n)=>r().emailVerification.verificationInProgress?Promise.reject(new Error("Email verification already in progress")):(t({type:a}),n.currentUser.verifyEmail({verificationToken:e}).then((()=>t({type:s}))).then((()=>t((0,o.rQ)()))).catch((e=>{return t((r=(0,i.jy)(e),{type:l,payload:r,error:!0}));var r})))},86092:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>x,R9:()=>w,rt:()=>A});var n=r(80045),i=r(89379),o=r(41233),a=r(16882),s=r(85506);const l=["termsOfService","privacyPolicy","landingPage"],c=e=>{var t,r,n;return null===e||void 0===e||null===(t=e.data)||void 0===t||null===(r=t.data[0])||void 0===r||null===(n=r.attributes)||void 0===n?void 0:n.data},u=e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.data},d=e=>{var t;return null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.included},h=(e,t)=>e.find((e=>"jsonAsset"===e.type&&e.attributes.assetPath===t)),p=e=>"/"!==e.charAt(0)?"/".concat(e):e,f="app/assets/REQUEST",m="app/assets/SUCCESS",g="app/assets/ERROR",_="app/assets/PAGE_ASSETS_REQUEST",y="app/assets/PAGE_ASSETS_SUCCESS",v="app/assets/PAGE_ASSETS_ERROR",b={appAssets:{},pageAssetsData:null,currentPageAssets:[],version:null,inProgress:!1,error:null};function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:n}=t;switch(r){case f:return(0,i.A)((0,i.A)({},e),{},{inProgress:!0,error:null});case m:return(0,i.A)((0,i.A)({},e),{},{appAssets:n.assets,version:e.version||n.version,googleAnalyticsId:n.googleAnalyticsId,inProgress:!1});case g:return(0,i.A)((0,i.A)({},e),{},{inProgress:!1,error:n});case _:return(0,i.A)((0,i.A)({},e),{},{currentPageAssets:n,inProgress:!0,error:null});case y:return(0,i.A)((0,i.A)({},e),{},{pageAssetsData:n,inProgress:!1});case v:return(0,i.A)((0,i.A)({},e),{},{inProgress:!1,error:n});default:return e}}const w=(e,t)=>(r,n,l)=>{r({type:f});const _=e.translations,y=e.footer,v=Object.entries(e),b=["translations","footer"],x=((e,t)=>e.reduce(((e,r)=>
2{let[n,i]=r;return t.includes(n)?e:[...e,i]}),[]))(v,b),w=e=>t?l.assetsByVersion({paths:e,version:t}):l.assetsByAlias({paths:e,alias:"latest"}),A=[w([_]),w([y]),w(x)];return Promise.all(A).then((n=>{let[a,s,l]=n;const f=e=>{var t,r;return null===e||void 0===e||null===(t=e.data)||void 0===t||null===(r=t.meta)||void 0===r?void 0:r.version},g=f(a),_=f(s),y=f(l);t||g===_&&_===y||console.warn("Asset versions between calls don't match.");const x=((e,t)=>{var r,n;if(!e||!t)return null;const i=u(e),o=h(i,p(t)),{enabled:a,measurementId:s}=(null===o||void 0===o||null===(r=o.attributes)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.googleAnalytics)||{};return a?s:null})(l,e.analytics);return r(((e,t,r)=>({type:m,payload:{assets:e,version:t,googleAnalyticsId:r}}))(e,g,x)),v.reduce(((e,t,r)=>{var n;const[f,m]=t;if(b.includes(f)){const t="translations"===f?a:s;return(0,i.A)((0,i.A)({},e),{},{[f]:{path:m,data:c(t)}})}const g=u(l),_=h(g,p(m)),y=(0,o.vm)({data:null===_||void 0===_||null===(n=_.attributes)||void 0===n?void 0:n.data,included:d(l)});return(0,i.A)((0,i.A)({},e),{},{[f]:{path:m,data:y}})}),{})})).catch((n=>{var i;s.z3(n,"app-asset-fetch-failed",{assets:e,version:t}),r((i=(0,a.jy)(n),{type:g,payload:i}))}))},A=(e,t)=>(r,c,u)=>{var d,h;const p=null===(d=c())||void 0===d||null===(h=d.hostedAssets)||void 0===h?void 0:h.version;if("undefined"===typeof p)throw new Error("App-wide assets were not fetched first. Asset version missing from Redux store.");var f;r((f=Object.keys(e),{type:_,payload:f}));const m=p?e=>u.assetByVersion({path:e,version:p}):e=>u.assetByAlias({path:e,alias:"latest"}),g=Object.entries(e),b=g.map((e=>{let[t,r]=e;return m(r)}));return Promise.all(b).then((e=>{var t;const a=null===(t=c())||void 0===t?void 0:t.hostedAssets,s=(null===a||void 0===a?void 0:a.pageAssetsData)||{},{termsOfService:u,privacyPolicy:d,landingPage:h}=s,p=(0,n.A)(s,l),f={termsOfService:u,privacyPolicy:d,landingPage:h},m=null===a||void 0===a?void 0:a.currentPageAssets.reduce(((e,t)=>{const r=p[t];return r?(0,i.A)((0,i.A)({},e),{},{[t]:r}):e}),{}),_=g.reduce(((t,r,n)=>{const[a,s]=r,l=(0,o.vm)(e[n].data);return(0,i.A)((0,i.A)({},t),{},{[a]:{path:s,data:l}})}),(0,i.A)((0,i.A)({},f),m));return r((e=>({type:y,payload:e}))(_)),_})).catch((n=>{var i;(t||!t&&404===n.status)&&s.z3(n,"page-asset-fetch-failed",{assets:e,version:p}),r((i=(0,a.jy)(n),{type:v,payload:i}))}))}},703:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l,F4:()=>u,Id:()=>d,k_:()=>c});var n=r(89379),i=r(41233);const o="app/marketplaceData/ADD_MARKETPLACE_ENTITIES",a={entities:{}},s=(e,t)=>{const{sdkResponse:r,sanitizeConfig:o}=t,a=r.data;return(0,n.A)((0,n.A)({},e),{},{entities:(0,i.fQ)((0,n.A)({},e.entities),a,o)})};function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:n}=t;return r===o?s(e,n):e}const c=(e,t)=>{const{entities:r}=e.marketplaceData,n=t.map((e=>({id:e,type:"listing"})));return(0,i.nQ)(r,n,!1)},u=(e,t)=>{const{entities:r}=e.marketplaceData;return(0,i.nQ)(r,t,!1)},d=(e,t)=>({type:o,payload:{sdkResponse:e,sanitizeConfig:t}})},43798:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>v,PF:()=>A,fs:()=>S,x1:()=>b});var n=r(89379),i=r(22616),o=r.n(i),a=r(16882),s=r(85506);const l="app/paymentMethods/SET_INITIAL_VALUES",c="app/paymentMethods/CREATE_STRIPE_CUSTOMER_REQUEST",u="app/paymentMethods/CREATE_STRIPE_CUSTOMER_SUCCESS",d="app/paymentMethods/CREATE_STRIPE_CUSTOMER_ERROR",h="app/paymentMethods/ADD_PAYMENT_METHOD_REQUEST",p="app/paymentMethods/ADD_PAYMENT_METHOD_SUCCESS",f="app/paymentMethods/ADD_PAYMENT_METHOD_ERROR",m="app/paymentMethods/DELETE_PAYMENT_METHOD_REQUEST",g="app/paymentMethods/DELETE_PAYMENT_METHOD_SUCCESS",_="app/paymentMethods/DELETE_PAYMENT_METHOD_ERROR",y={addPaymentMethodInProgress:null,addPaymentMethodError:null,deletePaymentMethodInProgress:null,deletePaymentMethodError:null,createStripeCustomerInProgress:null,createStripeCustomerError:null,stripeCustomer:null};function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case l:return(0,n.A)((0,n.A)({},y),i);case c:return(0,n.A)((0,n.A)({},e),{},{createStripeCustomerError:null,createStripeCustomerInProgress:!0});case u:return(0,n.A)((0,n.A)({},e),{},{createStripeCustomerInProgress:!1,stripeCustomer:i});case d:return console.error(i),(0,n.A)((0,n.A)({},e),{},{createStripeCustomerError:i,createStripeCustomerInProgress:!1});case h:return(0,n.A)((0,n.A)({},e),{},{addPaymentMethodError:null,addPaymentMethodInProgress:!0});case p:return(0,n.A)((0,n.A)({},e),{},{addPaymentMethodInProgress:!1,stripeCustomer:i});case f:return console.error(i),(0,n.A)((0,n.A)({},e),{},{addPaymentMethodError:i,addPaymentMethodInProgress:!1});case m:return(0,n.A)((0,n.A)({},e),{},{deletePaymentMethodError:null,deletePaymentMethodInProgress:!0});case g:return(0,n.A)((0,n.A)({},e),{},{deletePaymentMethodInProgress:!1});case _:return console.error(i),(0,n.A)((0,n.A)({},e),{},{deletePaymentMethodError:i,deletePaymentMethodInProgress:!1});default:return e}}const b=e=>({type:l,payload:o()(e,Object.keys(y))}),x=e=>(t,r,n)=>(t({type:c}),n.stripeCustomer.create({stripePaymentMethodId:e}
2,{expand:!0,include:["defaultPaymentMethod"]}).then((e=>{const r=e.data.data;return t((e=>({type:u,payload:e}))(r)),r})).catch((e=>{s.z3((0,a.jy)(e),"create-stripe-user-failed"),t((e=>({type:d,payload:e,error:!0}))((0,a.jy)(e)))}))),w=e=>(t,r,n)=>(t({type:h}),n.stripeCustomer.addPaymentMethod({stripePaymentMethodId:e},{expand:!0}).then((e=>{const r=e.data.data;return t((e=>({type:p,payload:e}))(r)),r})).catch((e=>{s.z3((0,a.jy)(e),"add-payment-method-failed"),t((e=>({type:f,payload:e,error:!0}))((0,a.jy)(e)))}))),A=()=>(e,t,r)=>(e({type:m}),r.stripeCustomer.deletePaymentMethod({},{expand:!0}).then((t=>{const r=t.data.data;return e((e=>({type:g,payload:e}))(r)),r})).catch((t=>{s.z3((0,a.jy)(t),"add-payment-method-failed"),e((e=>({type:_,payload:e,error:!0}))((0,a.jy)(t)))}))),S=(e,t)=>(r,n,i)=>{const o=e&&e.defaultPaymentMethod&&e.defaultPaymentMethod.id,l=e&&e.id?r(o?(e=>(t,r,n)=>t(A()).then((()=>t(w(e)))).catch((e=>{s.z3((0,a.jy)(e),"updating-payment-method-failed")})))(t):w(t)):r(x(t));return l.then((e=>{const{createStripeCustomerError:t,addPaymentMethodError:r,deletePaymentMethodError:i}=n().paymentMethods;return t||r||i?{errors:{createStripeCustomerError:t,addPaymentMethodError:r,deletePaymentMethodError:i}}:e})).catch((e=>{}))}},28233:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>E,Ii:()=>M,nY:()=>C,tw:()=>I,vb:()=>P});var n=r(89379),i=r(16882),o=r(85506);const a=["processing","requires_capture","canceled","succeeded"],s="app/stripe/STRIPE_ACCOUNT_CLEAR_ERROR",l="app/stripe/ACCOUNT_OPENER_CREATE_REQUEST",c="app/stripe/ACCOUNT_OPENER_CREATE_SUCCESS",u="app/stripe/ACCOUNT_OPENER_CREATE_ERROR",d="app/stripe/PERSON_CREATE_REQUEST",h="app/stripe/PERSON_CREATE_SUCCESS",p="app/stripe/PERSON_CREATE_ERROR",f="app/stripe/HANDLE_CARD_PAYMENT_REQUEST",m="app/stripe/HANDLE_CARD_PAYMENT_SUCCESS",g="app/stripe/HANDLE_CARD_PAYMENT_ERROR",_="app/stripe/HANDLE_CARD_SETUP_REQUEST",y="app/stripe/HANDLE_CARD_SETUP_SUCCESS",v="app/stripe/HANDLE_CARD_SETUP_ERROR",b="app/stripe/CLEAR_HANDLE_CARD_PAYMENT",x="app/stripe/RETRIEVE_PAYMENT_INTENT_REQUEST",w="app/stripe/RETRIEVE_PAYMENT_INTENT_SUCCESS",A="app/stripe/RETRIEVE_PAYMENT_INTENT_ERROR",S={confirmCardPaymentInProgress:!1,confirmCardPaymentError:null,handleCardSetupInProgress:!1,handleCardSetupError:null,paymentIntent:null,setupIntent:null,retrievePaymentIntentInProgress:!1,retrievePaymentIntentError:null};function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case s:return(0,n.A)({},S);case l:return(0,n.A)((0,n.A)({},e),{},{createAccountOpenerError:null,createAccountOpenerInProgress:!0});case c:return(0,n.A)((0,n.A)({},e),{},{createAccountOpenerInProgress:!1,personAccountOpener:i});case u:return console.error(i),(0,n.A)((0,n.A)({},e),{},{createAccountOpenerError:i,createAccountOpenerInProgress:!1});case d:return(0,n.A)((0,n.A)({},e),{},{persons:[...e.persons,(0,n.A)((0,n.A)({},i),{},{createStripePersonError:null,createStripePersonInProgress:!0})]});case h:return(0,n.A)((0,n.A)({},e),{},{persons:e.persons.map((e=>e.personToken===i.personToken?(0,n.A)((0,n.A)({},i),{},{createStripePersonInProgress:!1}):e))});case p:return console.error(i),(0,n.A)((0,n.A)({},e),{},{persons:e.persons.map((e=>e.personToken===i.personToken?(0,n.A)((0,n.A)({},e),{},{createStripePersonInProgress:!1,createStripePersonError:i.error}):e))});case f:return(0,n.A)((0,n.A)({},e),{},{confirmCardPaymentError:null,confirmCardPaymentInProgress:!0});case m:return(0,n.A)((0,n.A)({},e),{}
2,{paymentIntent:i,confirmCardPaymentInProgress:!1});case g:return console.error(i),(0,n.A)((0,n.A)({},e),{},{confirmCardPaymentError:i,confirmCardPaymentInProgress:!1});case _:return(0,n.A)((0,n.A)({},e),{},{handleCardSetupError:null,handleCardSetupInProgress:!0});case y:return(0,n.A)((0,n.A)({},e),{},{setupIntent:i,handleCardSetupInProgress:!1});case v:return console.error(i),(0,n.A)((0,n.A)({},e),{},{handleCardSetupError:i,handleCardSetupInProgress:!1});case b:return(0,n.A)((0,n.A)({},e),{},{confirmCardPaymentInProgress:!1,confirmCardPaymentError:null,paymentIntent:null});case x:return(0,n.A)((0,n.A)({},e),{},{retrievePaymentIntentError:null,retrievePaymentIntentInProgress:!0});case w:return(0,n.A)((0,n.A)({},e),{},{paymentIntent:i,retrievePaymentIntentInProgress:!1});case A:return console.error(i),(0,n.A)((0,n.A)({},e),{},{retrievePaymentIntentError:i,retrievePaymentIntentInProgress:!1});default:return e}}const T=e=>({type:m,payload:e}),P=()=>({type:b}),C=e=>t=>{const{stripe:r,stripePaymentIntentClientSecret:n}=e;return t({type:x}),r.retrievePaymentIntent(n).then((e=>{return e.error?Promise.reject(e):(t((r=e.paymentIntent,{type:w,payload:r})),e);var r})).catch((e=>{const r=e.error||(0,i.jy)(e);t({type:A,payload:r,error:!0});const{code:n,doc_url:a,message:s,payment_intent:l}=e.error||{},c=e.error?{code:n,message:s,doc_url:a,paymentIntentStatus:l?l.status:"no payment_intent included"}:r;throw o.z3(c,"stripe-retrieve-payment-intent-failed",{stripeMessage:c.message}),e}))},I=e=>t=>{const{stripe:r,paymentParams:s,stripePaymentIntentClientSecret:l}=e,c=e.orderId;t({type:f});const u=s?[l,s]:[l];return r.retrievePaymentIntent(l).then((e=>{var i;return e.error?Promise.reject(e):a.includes(null===e||void 0===e||null===(i=e.paymentIntent)||void 0===i?void 0:i.status)?(t(T(e)),(0,n.A)((0,n.A)({},e),{},{transactionId:c})):r.confirmCardPayment(...u).then((e=>e.error?Promise.reject(e):(t(T(e)),(0,n.A)((0,n.A)({},e),{},{transactionId:c}))))})).catch((e=>{const r=e.error||(0,i.jy)(e);t({type:g,payload:r,error:!0});const n=e.error&&e.error.payment_intent,{code:a,doc_url:s,message:l,payment_intent:c}=n?e.error:{},u=n?{code:a,message:l,doc_url:s,paymentIntentStatus:c.status}:r;throw o.z3(u,"stripe-handle-card-payment-failed",{stripeMessage:u.message}),r}))},M=e=>t=>{const{stripe:r,card:n,setupIntentClientSecret:a,paymentParams:s}=e;return t({type:_}),r.handleCardSetup(a,n,s).then((e=>e.error?Promise.reject(e):(t({type:y,payload:e}),e))).catch((e=>{const r=e.error||(0,i.jy)(e);t({type:v,payload:r,error:!0});const n=e.error&&e.error.setup_intent,{code:a,doc_url:s,message:l,setup_intent:c}=n?e.error:{},u=n?{code:a,message:l,doc_url:s,paymentIntentStatus:c.status}:r;throw o.z3(u,"stripe-handle-card-setup-failed",{stripeMessage:u.message}),r}))}},79290:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>b,CG:()=>S,Ho:()=>T,LQ:()=>A,cY:()=>w,yR:()=>x,z5:()=>E});var n=r(89379),i=r(16882),o=r(85506);const a="app/stripe/STRIPE_ACCOUNT_CREATE_REQUEST",s="app/stripe/STRIPE_ACCOUNT_CREATE_SUCCESS",l="app/stripe/STRIPE_ACCOUNT_CREATE_ERROR",c="app/stripe/STRIPE_ACCOUNT_UPDATE_REQUEST",u="app/stripe/STRIPE_ACCOUNT_UPDATE_SUCCESS",d="app/stripe/STRIPE_ACCOUNT_UPDATE_ERROR",h="app/stripe/STRIPE_ACCOUNT_FETCH_REQUEST",p="app/stripe/STRIPE_ACCOUNT_FETCH_SUCCESS",f="app/stripe/STRIPE_ACCOUNT_FETCH_ERROR",m="app/stripe/STRIPE_ACCOUNT_CLEAR_ERROR",g="app/stripeConnectAccount.duck.js/GET_ACCOUNT_LINK_REQUEST",_="app/stripeConnectAccount.duck.js/GET_ACCOUNT_LINK_SUCCESS",y="app/stripeConnectAccount.duck.js/GET_ACCOUNT_LINK_ERROR",v={createStripeAccountInProgress:!1,createStripeAccountError:null,updateStripeAccountInProgress:!1,updateStripeAccountError:null,fetchStripeAccountInProgress:!1,fetchStripeAccountError:null,getAccountLinkInProgress:!1,getAccountLinkError:null,stripeAccount:null,stripeAccountFetched:!1};function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case a:return(0,n.A)((0,n.A)({},e),{},{createStripeAccountError:null,createStripeAccountInProgress:!0});case s:return(0,n.A)((0,n.A)({},e),{},{createStripeAccountInProgress:!1,stripeAccount:i,stripeAccountFetched:!0});case l:return console.error(i),(0,n.A)((0,n.A)({},e),{},{createStripeAccountError:i,createStripeAccountInProgress:!1});case c:return(0,n.A)((0,n.A)({},e),{},{updateStripeAccountError:null,updateStripeAccountInProgress:!0});case u:return(0,n.A)((0,n.A)({},e),{},{updateStripeAccountInProgress:!1,stripeAccount:i,stripeAccountFetched:!0});case d:return console.error(i),(0,n.A)((0,n.A)({},e),{},{updateStripeAccountError:i,createStripeAccountInProgress:!1});case h:return(0,n.A)((0,n.A)({},e),{},{fetchStripeAccountError:null,fetchStripeAccountInProgress:!0});case p:return(0,n.A)((0,n.A)({},e),{},{fetchStripeAccountInProgress:!1,stripeAccount:i,stripeAccountFetched:!0});case f:return console.error(i),(0,n.A)((0,n.A)({},e),{},{fetchStripeAccountError:i,fetchStripeAccountInProgress:!1});case m:return(0,n.A)({},v);case g:return(0,n.A)((0,n.A)({},e),{},{getAccountLinkError:null,getAccountLinkInProgress:!0});case y:return console.error(i),(0,n.A)((0,n.A)({},e),{},{getAccountLinkInProgress:!1,getAccountLinkError:i});case _:return(0,n.A)((0,n.A)({},e),{},{getAccountLinkInProgress:!1});default:return e}}const x=e=>({type:s,payload:e}),w=()=>({type:m}),A=e=>(t,r,n)=>{if("undefined"===typeof window||!window.Stripe)throw new Error("Stripe must be loaded for submitting PayoutPreferences");const{country:s,accountType:c,bankAccountToken:u,businessProfileMCC:d,businessProfileURL:h,stripePublishableKey:p}=e,f=window.Stripe(p),m=["card_payments","transfers"],g={business_type:c,tos_shown_and_accepted:!0};return t({type:a}),f.createToken("account",g).then((e=>{const t=e.token.id;return n.stripeAccount.create({country:s,accountToken:t,bankAccountToken:u,requestedCapabilities:m,businessProfileMCC:d,businessProfileURL:h},{expand:!0})})).then((e=>{const r=e.data.data;return t(x(r)),r})).catch((e=>{const r=(0,i.jy)(e);t((e=>({type:l,payload:e,error:!0}))(r));const n=r.apiErrors&&r.apiErrors.length>0&&r.apiErrors[0].meta?r.apiErrors[0].meta.stripeMessage:null;
2throw o.z3(e,"create-stripe-account-failed",{stripeMessage:n}),r}))},S=e=>(t,r,n)=>{const{bankAccountToken:a}=e;return t({type:c}),n.stripeAccount.update({bankAccountToken:a,requestedCapabilities:["card_payments","transfers"]},{expand:!0}).then((e=>{const r=e.data.data;return t((e=>({type:u,payload:e}))(r)),r})).catch((e=>{const r=(0,i.jy)(e);t((e=>({type:d,payload:e,error:!0}))(r));const n=r.apiErrors&&r.apiErrors.length>0&&r.apiErrors[0].meta?r.apiErrors[0].meta.stripeMessage:null;throw o.z3(e,"update-stripe-account-failed",{stripeMessage:n}),r}))},E=e=>(e,t,r)=>(e({type:h}),r.stripeAccount.fetch().then((t=>{const r=t.data.data;return e((e=>({type:p,payload:e}))(r)),r})).catch((t=>{const r=(0,i.jy)(t);e((e=>({type:f,payload:e,error:!0}))(r));const n=r.apiErrors&&r.apiErrors.length>0&&r.apiErrors[0].meta?r.apiErrors[0].meta.stripeMessage:null;throw o.z3(t,"fetch-stripe-account-failed",{stripeMessage:n}),r}))),T=e=>(t,r,n)=>{const{failureURL:a,successURL:s,type:l}=e;return t({type:g}),n.stripeAccountLinks.create({failureURL:a,successURL:s,type:l,collectionOptions:{fields:"currently_due",future_requirements:"include"}}).then((e=>e.data.data.attributes.url)).catch((e=>{const r=(0,i.jy)(e);t((e=>({type:y,payload:e,error:!0}))(r));const n=r.apiErrors&&r.apiErrors.length>0&&r.apiErrors[0].meta?r.apiErrors[0].meta.stripeMessage:null;throw o.z3(e,"get-stripe-account-link-failed",{stripeMessage:n}),r}))}},44104:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>a,kl:()=>l,l:()=>s});var n=r(89379);const i="app/ui/DISABLE_SCROLLING",o={disableScrollRequests:[]};function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:a}=t;if(r===i){const{componentId:t,disableScrolling:r}=a,i=e.disableScrollRequests;if(i.find((e=>e.componentId===t))){const o=i.map((e=>e.componentId===t?(0,n.A)((0,n.A)({},e),{},{disableScrolling:r}):e));return(0,n.A)((0,n.A)({},e),{},{disableScrollRequests:[...o]})}const o=[...i,{componentId:t,disableScrolling:r}];return(0,n.A)((0,n.A)({},e),{},{disableScrollRequests:o})}return e}const s=(e,t)=>({type:i,payload:{componentId:e,disableScrolling:t}}),l=e=>{const{disableScrollRequests:t}=e.ui;return t.some((e=>e.disableScrolling))}},92943:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>R,fK:()=>D,g$:()=>N,kH:()=>q,rQ:()=>V,vH:()=>U,xb:()=>z,yM:()=>L});var n=r(89379),i=r(80045),o=r(41233),a=r(16882),s=r(44356),l=r(85506),c=r(89413),u=r(94532),d=r(79290),h=r(55346);const p=["id","type","attributes"],f=["id","type","attributes"],m="app/user/CURRENT_USER_SHOW_REQUEST",g="app/user/CURRENT_USER_SHOW_SUCCESS",_="app/user/CURRENT_USER_SHOW_ERROR",y="app/user/CLEAR_CURRENT_USER",v="app/user/FETCH_CURRENT_USER_HAS_LISTINGS_REQUEST",b="app/user/FETCH_CURRENT_USER_HAS_LISTINGS_SUCCESS",x="app/user/FETCH_CURRENT_USER_HAS_LISTINGS_ERROR",w="app/user/FETCH_CURRENT_USER_NOTIFICATIONS_REQUEST",A="app/user/FETCH_CURRENT_USER_NOTIFICATIONS_SUCCESS",S="app/user/FETCH_CURRENT_USER_NOTIFICATIONS_ERROR",E="app/user/FETCH_CURRENT_USER_HAS_ORDERS_REQUEST",T="app/user/FETCH_CURRENT_USER_HAS_ORDERS_SUCCESS",P="app/user/FETCH_CURRENT_USER_HAS_ORDERS_ERROR",C="app/user/SEND_VERIFICATION_EMAIL_REQUEST",I="app/user/SEND_VERIFICATION_EMAIL_SUCCESS",M="app/user/SEND_VERIFICATION_EMAIL_ERROR",k=(e,t)=>{const r=e||{},{id:o,type:a,attributes:s}=r,l=(0,i.A)(r,p),c=t||{},{id:u,type:d,attributes:h}=c,m=(0,i.A)(c,f);return null===t?null:null===e?t:(0,n.A)((0,n.A)({id:u,type:d,attributes:h},l),m)},O={currentUser:null,currentUserShowError:null,currentUserHasListings:!1,currentUserHasListingsError:null,currentUserNotificationCount:0,currentUserNotificationCountError:null,currentUserHasOrders:null,currentUserHasOrdersError:null,sendVerificationEmailInProgress:!1,sendVerificationEmailError:null};function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:r,payload:i}=t;switch(r){case m:return(0,n.A)((0,n.A)({},e),{},{currentUserShowError:null});case g:return(0,n.A)((0,n.A)({},e),{},{currentUser:k(e.currentUser,i)});case _:return console.error(i),(0,n.A)((0,n.A)({},e),{},{currentUserShowError:i});case y:return(0,n.A)((0,n.A)({},e),{},{currentUser:null,currentUserShowError:null,currentUserHasListings:!1,currentUserHasListingsError:null,currentUserNotificationCount:0,currentUserNotificationCountError:null});case v:return(0,n.A)((0,n.A)({},e),{},{currentUserHasListingsError:null});case b:return(0,n.A)((0,n.A)({},e),{},{currentUserHasListings:i.hasListings});case x:return console.error(i),(0,n.A)((0,n.A)({},e),{},{currentUserHasListingsError:i});case w:return(0,n.A)((0,n.A)({},e),{},{currentUserNotificationCountError:null});case A:return(0,n.A)((0,n.A)({},e),{},{currentUserNotificationCount:i.transactions.length});case S:return console.error(i),(0,n.A)((0,n.A)({},e),{},{currentUserNotificationCountError:i});case E:return(0,n.A)((0,n.A)({},e),{},{currentUserHasOrdersError:null});case T:return(0,n.A)((0,n.A)({},e),{},{currentUserHasOrders:i.hasOrders});case P:return console.error(i),(0,n.A)((0,n.A)({},e),{},{currentUserHasOrdersError:i});case C:return(0,n.A)((0,n.A)({},e),{},{sendVerificationEmailInProgress:!0,sendVerificationEmailError:null});case I:return(0,n.A)((0,n.A)({},e),{},{sendVerificationEmailInProgress:!1});case M:return(0,n.A)((0,n.A)({},e),{},{sendVerificationEmailInProgress:!1,sendVerificationEmailError:i});default:return e}}const L=e=>{const{user:t}=e;return t.currentUserShowError||t.currentUserHasListingsError||t.currentUserNotificationCountError||t.currentUserHasOrdersError},D=e=>({type:g,payload:e}),N=()=>({type:y}),F=e=>({type:b,payload:{hasListings:e}}),z=e=>({type:T,payload:{hasOrders:e}}),j=()=>(e,t,r)=>{e({type:v});const{currentUser:n}=t().user;if(!n)return e(F(!1)),Promise.resolve(null);const i={authorId:n.id.uuid,page:1,perPage:1};return r.listings.query(i).then((t=>{const r=t.data.data&&t.data.data.length>0&&(0,o.Z9)(t.data.data[0]).attributes.state!==s.pe;e(F(!!r))})).catch((t=>e((e=>({type:x,error:!0,payload:e}))((0,a.jy)(t)))))},B=()=>(e,t,r)=>{if(e({type:E}
2),!t().user.currentUser)return e(z(!1)),Promise.resolve(null);return r.transactions.query({only:"order",page:1,perPage:1}).then((t=>{const r=t.data.data&&t.data.data.length>0;e(z(!!r))})).catch((t=>e((e=>({type:P,error:!0,payload:e}))((0,a.jy)(t)))))},U=()=>(e,t,r)=>{const n=(0,c.Mz)();if(0===n.length)return;const i={only:"sale",last_transitions:n,page:1,perPage:100};e({type:w}),r.transactions.query(i).then((t=>{const r=t.data.data;e((e=>({type:A,payload:{transactions:e}}))(r))})).catch((t=>e((e=>({type:S,error:!0,payload:e}))((0,a.jy)(t)))))},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(t,r,n)=>{t({type:m});const{isAuthenticated:i}=r().auth;if(!i)return t(D(null)),Promise.resolve({});const s=e||{include:["profileImage","stripeAccount"],"fields.image":["variants.square-small","variants.square-small2x","variants.square-xsmall","variants.square-xsmall2x"],"imageVariant.square-xsmall":h.ZS.objectQueryString({w:40,h:40,fit:"crop"}),"imageVariant.square-xsmall2x":h.ZS.objectQueryString({w:80,h:80,fit:"crop"})};return n.currentUser.show(s).then((e=>{const r=(0,o.Uf)(e);if(1!==r.length)throw new Error("Expected a resource in the sdk.currentUser.show response");const n=r[0];return n.stripeAccount&&t((0,d.yR)(n.stripeAccount)),l.do(n.id.uuid),t(D(n)),n})).then((e=>{t(j()),t(U()),e.attributes.emailVerified||t(B()),t((0,u.lj)())})).catch((e=>{t((0,u.lj)()),l.z3(e,"fetch-current-user-failed"),t((e=>({type:_,payload:e,error:!0}))((0,a.jy)(e)))}))}},q=()=>(e,t,r)=>t().user.sendVerificationEmailInProgress?Promise.reject(new Error("Verification email sending already in progress")):(e({type:C}),r.currentUser.sendVerificationEmail().then((()=>e({type:I}))).catch((t=>e((e=>({type:M,error:!0,payload:e}))((0,a.jy)(t))))))},82532:(e,t,r)=>{"use strict";r.d(t,{p:()=>re,A:()=>ie});var n=r(89379),i=(r(65043),r(56356)),o=r(3891),a=r(28683),s=r(86083),l=r(86092);const c=(e,t)=>t=>{const r=e.pageId,n={[r]:"content/pages/".concat(r,".json")};return t((0,l.rt)(n,!1))};var u=r(61391),d=r(87523),h=r(32423),p=r(96723);const f=(e,t)=>{const r=(0,h.qg)(t).t,n=r?"".concat(r):null;return(0,p.MX)(n)};var m=r(8747),g=r(70923),_=r(37379),y=r(42299),v=r(7147),b=r(75387),x=r(7467),w=r(98841),A=r(51945),S=r(46067);const E=()=>({AuthenticationPage:{loadData:o.Ze},LandingPage:{loadData:a.Z},CheckoutPage:{setInitialValues:s.x1},CMSPage:{loadData:c},ContactDetailsPage:{loadData:u.Ze},EditListingPage:{loadData:d.Ze},EmailVerificationPage:{loadData:f},InboxPage:{loadData:m.Ze},ListingPage:{loadData:g.Ze},ManageListingsPage:{loadData:_.Ze},PaymentMethodsPage:{loadData:y.Ze},PrivacyPolicyPage:{loadData:v.Z},ProfilePage:{loadData:b.Ze},SearchPage:{loadData:x.Ze},StripePayoutPage:{loadData:w.Ze},TermsOfServicePage:{loadData:A.Z},TransactionPage:{loadData:S.Ze,setInitialValues:S.x1}});var T=r(87982),P=r(91688),C=r(18689),I=r(70579);const M=(0,P.y)((e=>{var t;const r=null===e||void 0===e||null===(t=e.location)||void 0===t?void 0:t.search,n=(0,h.qg)(r),i=(e=>{const t=new RegExp("content/pages/(.*).json"),r=e.match(t);return null===r||void 0===r?void 0:r[1]})((null===n||void 0===n?void 0:n["asset-path"])||""),o=!!i,a=(0,I.jsx)(C.M0,{name:"TermsOfServicePage"}),s=(0,I.jsx)(C.M0,{name:"PrivacyPolicyPage"}),l=(0,I.jsx)(C.M0,{name:"CMSPage",params:{pageId:i}}),c=(0,I.jsx)(C.M0,{name:"LandingPage"}),u=null===n||void 0===n?void 0:n.listingId,d=!!u,p=null===n||void 0===n?void 0:n.listingStatus,f=["draft","pending-approval"].includes(p)?(0,I.jsx)(C.M0,{name:"ListingPageVariant",params:{id:u,slug:"from-console",variant:p}}):(0,I.jsx)(C.M0,{name:"ListingPage",params:{id:u,slug:"from-console"}});return"terms-of-service"===i?a:"privacy-policy"===i?s:"landing-page"===i?c:o?l:d?f:c})),k=E(),O=(0,i.Ay)((()=>Promise.all([r.e(74),r.e(2118)]).then(r.bind(r,29116)))),R=(0,i.Ay)((()=>Promise.all([r.e(8496),r.e(7230)]).then(r.bind(r,41177)))),L=(0,i.Ay)((()=>r.e(6419).then(r.bind(r,33526)))),D=(0,i.Ay)((()=>r.e(5208).then(r.bind(r,83321)))),N=(0,i.Ay)((()=>Promise.all([r.e(2393),r.e(5720)]).then(r.bind(r,94909)))),F=(0,i.Ay)((()=>r.e(6849).then(r.bind(r,29291)))),z=(0,i.Ay)((()=>Promise.all([r.e(1546),r.e(6176)]).then(r.bind(r,39358)))),j=(0,i.Ay)((()=>Promise.all([r.e(4814),r.e(1517),r.e(6149)]).then(r.bind(r,89238)))),B=(0,i.Ay)((()=>Promise.all([r.e(3536),r.e(7179),r.e(8337),r.e(667)]).then(r.bind(r,39942)))),U=(0,i.Ay)((()=>Promise.all([r.e(3536),r.e(7179),r.e(8337),r.e(8314)]).then(r.bind(r,78705)))),V=(0,i.Ay)((()=>r.e(1508).then(r.bind(r,56120)))),q=(0,i.Ay)((()=>r.e(5969).then(r.bind(r,46110)))),H=(0,i.Ay)((()=>r.e(1324).then(r.bind(r,57850)))),G=(0,i.Ay)((()=>r.e(1668).then(r.bind(r,30156)))),W=(0,i.Ay)((()=>r.e(3314).then(r.bind(r,42534)))),Y=(0,i.Ay)((()=>r.e(5454).then(r.bind(r,72085)))),Z=(0,i.Ay)((()=>r.e(5007).then(r.bind(r,68620)))),K=(0,i.Ay)((()=>r.e(3968).then(r.bind(r,60978)))),X=(0,i.Ay)((()=>Promise.all([r.e(6572),r.e(237),r.e(3680)]).then(r.bind(r,39355)))),J=(0,i.Ay)((()=>Promise.all([r.e(6572),r.e(237),r.e(7498)]).then(r.bind(r,70678)))),Q=(0,i.Ay)((()=>r.e(9447).then(r.bind(r,50473)))),$=(0,i.Ay)((()=>r.e(6373).then(r.bind(r,4847)))),ee=(0,i.Ay)((()=>Promise.all([r.e(3510),r.e(4872)]).then(r.bind(r,67335)))),te=(0,i.Ay)((()=>Promise.all([r.e(6367),r.e(4814),r.e(7179),r.e(1546),r.e(1517),r.e(6572),r.e(8027),r.e(2393),r.e(74),r.e(6176),r.e(3510),r.e(8496),r.e(6915),r.e(5743)]).then(r.bind(r,12052)))),re=["ContactDetailsPage","PasswordChangePage","StripePayoutPage","PaymentMethodsPage"],ne=()=>(0,I.jsx)(C.M0,{name:"LandingPage"}),ie=e=>{var t,r;const i="map"===(null===(t=e.searchPage)||void 0===t?void 0:t.variantType)?X:J,o="carousel"===(null===(r=e.listingPage)||void 0===r?void 0:r.variantType)?U:B;return[{path:"/",name:"LandingPage",component:j,loadData:k.LandingPage.loadData},{path:"/p/:pageId",name:"CMSPage",component:L,loadData:k.CMSPage.loadData},{path:"/s",name:"SearchPage",component:i,loadData:k.SearchPage.loadData},{path:"/l",name:"ListingBasePage",component:ne},{path:"/l/:slug/:id",name:"ListingPage",component:o,loadData:k.ListingPage.loadData},{path:"/l/:slug/:id/checkout",name:"CheckoutPage",auth:!0,component:R,setInitialValues:k.CheckoutPage.setInitialValues},{path:"/l/:slug/:id/:variant",name:"ListingPageVariant",auth:!0,authPage:"LoginPage",component:o,loadData:k.ListingPage.loadData},{path:"/l/new",name:"NewListingPage",auth:!0,component:()=>(0,I.jsx)(C.M0,{name:"EditListingPage",params:{slug:"draft",id:"00000000-0000-0000-0000-000000000000",type:"new",tab:"details"}})},{path:"/l/:slug/:id/:type/:tab",name:"EditListingPage",auth:!0,component:N,loadData:k.EditListingPage.loadData},{path:"/l/:slug/:id/:type/:tab/:returnURLType",name:"EditListingStripeOnboardingPage",auth:!0,component:N,loadData:k.EditListingPage.loadData},{path:"/l/:id",name:"ListingPageCanonical",component:o,loadData:k.ListingPage.loadData}
2,{path:"/u",name:"ProfileBasePage",component:ne},{path:"/u/:id",name:"ProfilePage",component:Z,loadData:k.ProfilePage.loadData},{path:"/profile-settings",name:"ProfileSettingsPage",auth:!0,authPage:"LoginPage",component:K},{path:"/login",name:"LoginPage",component:O,extraProps:{tab:"login"}},{path:"/signup",name:"SignupPage",component:O,extraProps:{tab:"signup"},loadData:k.AuthenticationPage.loadData},{path:"/signup/stylist",name:"SignupForStylistPage",component:O,extraProps:{tab:"signup"},loadData:k.AuthenticationPage.loadData},{path:"/signup/:userType",name:"SignupForUserTypePage",component:O,extraProps:{tab:"signup"},loadData:k.AuthenticationPage.loadData},{path:"/confirm",name:"ConfirmPage",component:O,extraProps:{tab:"confirm"},loadData:k.AuthenticationPage.loadData},{path:"/recover-password",name:"PasswordRecoveryPage",component:H},{path:"/bookings",name:"InboxBasePage",auth:!0,authPage:"LoginPage",component:()=>(0,I.jsx)(C.M0,{name:"InboxPage",params:{tab:"orders"}})},{path:"/bookings/:tab",name:"InboxPage",auth:!0,authPage:"LoginPage",component:z,loadData:k.InboxPage.loadData},{path:"/order/:id",name:"OrderDetailsPage",auth:!0,authPage:"LoginPage",component:ee,extraProps:{transactionRole:"customer"},loadData:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return k.TransactionPage.loadData((0,n.A)((0,n.A)({},e),{},{transactionRole:"customer"}),...r)},setInitialValues:k.TransactionPage.setInitialValues},{path:"/order/:id/details",name:"OrderDetailsPageRedirect",auth:!0,authPage:"LoginPage",component:e=>{var t;return(0,I.jsx)(C.M0,{name:"OrderDetailsPage",params:{id:null===(t=e.params)||void 0===t?void 0:t.id}})}},{path:"/sale/:id",name:"SaleDetailsPage",auth:!0,authPage:"LoginPage",component:ee,extraProps:{transactionRole:"provider"},loadData:k.TransactionPage.loadData},{path:"/sale/:id/details",name:"SaleDetailsPageRedirect",auth:!0,authPage:"LoginPage",component:e=>{var t;return(0,I.jsx)(C.M0,{name:"SaleDetailsPage",params:{id:null===(t=e.params)||void 0===t?void 0:t.id}})}},{path:"/listings",name:"ManageListingsPage",auth:!0,authPage:"LoginPage",component:V,loadData:k.ManageListingsPage.loadData},{path:"/account",name:"AccountSettingsPage",auth:!0,authPage:"LoginPage",component:()=>(0,I.jsx)(C.M0,{name:"ContactDetailsPage"})},{path:"/account/contact-details",name:"ContactDetailsPage",auth:!0,authPage:"LoginPage",component:D,loadData:k.ContactDetailsPage.loadData},{path:"/account/change-password",name:"PasswordChangePage",auth:!0,authPage:"LoginPage",component:q},{path:"/account/payments",name:"StripePayoutPage",auth:!0,authPage:"LoginPage",component:Q,loadData:k.StripePayoutPage.loadData},{path:"/account/payments/:returnURLType",name:"StripePayoutOnboardingPage",auth:!0,authPage:"LoginPage",component:Q,loadData:k.StripePayoutPage.loadData},{path:"/account/payment-methods",name:"PaymentMethodsPage",auth:!0,authPage:"LoginPage",component:W,loadData:k.PaymentMethodsPage.loadData},{path:"/terms-of-service",name:"TermsOfServicePage",component:$,loadData:k.TermsOfServicePage.loadData},{path:"/privacy-policy",name:"PrivacyPolicyPage",component:Y,loadData:k.PrivacyPolicyPage.loadData},{path:"/styleguide",name:"Styleguide",component:te},{path:"/styleguide/g/:group",name:"StyleguideGroup",component:te},{path:"/styleguide/c/:component",name:"StyleguideComponent",component:te},{path:"/styleguide/c/:component/:example",name:"StyleguideComponentExample",component:te},{path:"/styleguide/c/:component/:example/raw",name:"StyleguideComponentExampleRaw",component:te,extraProps:{raw:!0}},{path:"/notfound",name:"NotFoundPage",component:e=>(0,I.jsx)(T.A,(0,n.A)({},e))},{path:"/reset-password",name:"PasswordResetPage",component:G},{path:"/verify-email",name:"EmailVerificationPage",auth:!0,authPage:"LoginPage",component:F,loadData:k.EmailVerificationPage.loadData},{path:"/preview",name:"PreviewResolverPage",component:M}]}},89413:(e,t,r)=>{"use strict";r.d(t,{AR:()=>H,V6:()=>me,hO:()=>ge,d_:()=>U,Gd:()=>G,C7:()=>q,U7:()=>pe,CG:()=>ce,SO:()=>he,NQ:()=>ue,HP:()=>de,VU:()=>re,wz:()=>ee,ot:()=>te,Mz:()=>le,Wu:()=>fe,zn:()=>oe,pv:()=>ae,ke:()=>se,Le:()=>ne,$X:()=>ie,GN:()=>$});var n={};r.r(n),r.d(n,{graph:()=>h,isCompleted:()=>_,isCustomerReview:()=>f,isPrivileged:()=>g,isProviderReview:()=>m,isRefunded:()=>y,isRelevantPastTransition:()=>p,states:()=>d,statesNeedingProviderAttention:()=>v,transitions:()=>u});var i={};r.r(i),r.d(i,{graph:()=>w,isCompleted:()=>P,isCustomerReview:()=>S,isPrivileged:()=>T,isProviderReview:()=>E,isRefunded:()=>C,isRelevantPastTransition:()=>A,states:()=>x,statesNeedingProviderAttention:()=>I,transitions:()=>b});var o={};r.r(o),r.d(o,{graph:()=>O,isCompleted:()=>F,isCustomerReview:()=>L,isPrivileged:()=>N,isProviderReview:()=>D,isRefunded:()=>z,isRelevantPastTransition:()=>R,states:()=>k,statesNeedingProviderAttention:()=>j,transitions:()=>M});var a=r(80045),s=r(89379),l=r(85506),c=r(41233);const u={REQUEST_PAYMENT:"transition/request-payment",INQUIRE:"transition/inquire",REQUEST_PAYMENT_AFTER_INQUIRY:"transition/request-payment-after-inquiry",CONFIRM_PAYMENT:"transition/confirm-payment",EXPIRE_PAYMENT:"transition/expire-payment",MARK_DELIVERED:"transition/mark-delivered",OPERATOR_MARK_DELIVERED:"transition/operator-mark-delivered",MARK_RECEIVED_FROM_PURCHASED:"transition/mark-received-from-purchased",AUTO_CANCEL:"transition/auto-cancel",CANCEL:"transition/cancel",MARK_RECEIVED:"transition/mark-received",AUTO_MARK_RECEIVED:"transition/auto-mark-received",DISPUTE:"transition/dispute",OPE
2RATOR_DISPUTE:"transition/operator-dispute",AUTO_CANCEL_FROM_DISPUTED:"transition/auto-cancel-from-disputed",CANCEL_FROM_DISPUTED:"transition/cancel-from-disputed",MARK_RECEIVED_FROM_DISPUTED:"transition/mark-received-from-disputed",AUTO_COMPLETE:"transition/auto-complete",REVIEW_1_BY_PROVIDER:"transition/review-1-by-provider",REVIEW_2_BY_PROVIDER:"transition/review-2-by-provider",REVIEW_1_BY_CUSTOMER:"transition/review-1-by-customer",REVIEW_2_BY_CUSTOMER:"transition/review-2-by-customer",EXPIRE_CUSTOMER_REVIEW_PERIOD:"transition/expire-customer-review-period",EXPIRE_PROVIDER_REVIEW_PERIOD:"transition/expire-provider-review-period",EXPIRE_REVIEW_PERIOD:"transition/expire-review-period"},d={INITIAL:"initial",INQUIRY:"inquiry",PENDING_PAYMENT:"pending-payment",PAYMENT_EXPIRED:"payment-expired",PURCHASED:"purchased",DELIVERED:"delivered",RECEIVED:"received",DISPUTED:"disputed",CANCELED:"canceled",COMPLETED:"completed",REVIEWED:"reviewed",REVIEWED_BY_CUSTOMER:"reviewed-by-customer",REVIEWED_BY_PROVIDER:"reviewed-by-provider"},h={id:"default-purchase/release-1",initial:d.INITIAL,states:{[d.INITIAL]:{on:{[u.INQUIRE]:d.INQUIRY,[u.REQUEST_PAYMENT]:d.PENDING_PAYMENT}},[d.INQUIRY]:{on:{[u.REQUEST_PAYMENT_AFTER_INQUIRY]:d.PENDING_PAYMENT}},[d.PENDING_PAYMENT]:{on:{[u.EXPIRE_PAYMENT]:d.PAYMENT_EXPIRED,[u.CONFIRM_PAYMENT]:d.PURCHASED}},[d.PAYMENT_EXPIRED]:{},[d.PURCHASED]:{on:{[u.MARK_DELIVERED]:d.DELIVERED,[u.OPERATOR_MARK_DELIVERED]:d.DELIVERED,[u.MARK_RECEIVED_FROM_PURCHASED]:d.RECEIVED,[u.AUTO_CANCEL]:d.CANCELED,[u.CANCEL]:d.CANCELED}},[d.CANCELED]:{},[d.DELIVERED]:{on:{[u.MARK_RECEIVED]:d.RECEIVED,[u.AUTO_MARK_RECEIVED]:d.RECEIVED,[u.DISPUTE]:d.DISPUTED,[u.OPERATOR_DISPUTE]:d.DISPUTED}},[d.DISPUTED]:{on:{[u.AUTO_CANCEL_FROM_DISPUTED]:d.CANCELED,[u.CANCEL_FROM_DISPUTED]:d.CANCELED,[u.MARK_RECEIVED_FROM_DISPUTED]:d.RECEIVED}},[d.RECEIVED]:{on:{[u.AUTO_COMPLETE]:d.COMPLETED}},[d.COMPLETED]:{on:{[u.EXPIRE_REVIEW_PERIOD]:d.REVIEWED,[u.REVIEW_1_BY_CUSTOMER]:d.REVIEWED_BY_CUSTOMER,[u.REVIEW_1_BY_PROVIDER]:d.REVIEWED_BY_PROVIDER}},[d.REVIEWED_BY_CUSTOMER]:{on:{[u.REVIEW_2_BY_PROVIDER]:d.REVIEWED,[u.EXPIRE_PROVIDER_REVIEW_PERIOD]:d.REVIEWED}},[d.REVIEWED_BY_PROVIDER]:{on:{[u.REVIEW_2_BY_CUSTOMER]:d.REVIEWED,[u.EXPIRE_CUSTOMER_REVIEW_PERIOD]:d.REVIEWED}},[d.REVIEWED]:{type:"final"}}},p=e=>[u.CONFIRM_PAYMENT,u.AUTO_CANCEL,u.CANCEL,u.MARK_DELIVERED,u.OPERATOR_MARK_DELIVERED,u.DISPUTE,u.OPERATOR_DISPUTE,u.AUTO_COMPLETE,u.AUTO_CANCEL_FROM_DISPUTED,u.CANCEL_FROM_DISPUTED,u.REVIEW_1_BY_CUSTOMER,u.REVIEW_1_BY_PROVIDER,u.REVIEW_2_BY_CUSTOMER,u.REVIEW_2_BY_PROVIDER].includes(e),f=e=>[u.REVIEW_1_BY_CUSTOMER,u.REVIEW_2_BY_CUSTOMER].includes(e),m=e=>[u.REVIEW_1_BY_PROVIDER,u.REVIEW_2_BY_PROVIDER].includes(e),g=e=>[u.REQUEST_PAYMENT,u.REQUEST_PAYMENT_AFTER_INQUIRY].includes(e),_=e=>[u.AUTO_COMPLETE,u.REVIEW_1_BY_CUSTOMER,u.REVIEW_1_BY_PROVIDER,u.REVIEW_2_BY_CUSTOMER,u.REVIEW_2_BY_PROVIDER,u.EXPIRE_REVIEW_PERIOD,u.EXPIRE_CUSTOMER_REVIEW_PERIOD,u.EXPIRE_PROVIDER_REVIEW_PERIOD].includes(e),y=e=>[u.EXPIRE_PAYMENT,u.CANCEL,u.AUTO_CANCEL,u.AUTO_CANCEL_FROM_DISPUTED,u.CANCEL_FROM_DISPUTED].includes(e),v=[d.PURCHASED],b={REQUEST_PAYMENT:"transition/request-payment",INQUIRE:"transition/inquire",REQUEST_PAYMENT_AFTER_INQUIRY:"transition/request-payment-after-inquiry",CONFIRM_PAYMENT:"transition/confirm-payment",EXPIRE_PAYMENT:"transition/expire-payment",ACCEPT:"transition/accept",DECLINE:"transition/decline",OPERATOR_ACCEPT:"transition/operator-accept",OPERATOR_DECLINE:"transition/operator-decline",EXPIRE:"transition/expire",CANCEL:"transition/cancel",COMPLETE:"transition/complete",OPERATOR_COMPLETE:"transition/operator-complete",REVIEW_1_BY_PROVIDER:"transition/review-1-by-provider",REVIEW_2_BY_PROVIDER:"transition/review-2-by-provider",REVIEW_1_BY_CUSTOMER:"transition/review-1-by-customer",REVIEW_2_BY_CUSTOMER:"transition/review-2-by-customer",EXPIRE_CUSTOMER_REVIEW_PERIOD:"transition/expire-customer-review-period",EXPIRE_PROVIDER_REVIEW_PERIOD:"transition/expire-provider-review-period",EXPIRE_REVIEW_PERIOD:"transition/expire-review-period"},x={INITIAL:"initial",INQUIRY:"inquiry",PENDING_PAYMENT:"pending-payment",PAYMENT_EXPIRED:"payment-expired",PREAUTHORIZED:"preauthorized",DECLINED:"declined",ACCEPTED:"accepted",EXPIRED:"expired",CANCELED:"canceled",DELIVERED:"delivered",REVIEWED:"reviewed",REVIEWED_BY_CUSTOMER:"reviewed-by-customer",REVIEWED_BY_PROVIDER:"reviewed-by-provider"},w={id:"default-booking/release-1",initial:x.INITIAL,states:{[x.INITIAL]:{on:{[b.INQUIRE]:x.INQUIRY,[b.REQUEST_PAYMENT]:x.PEND
2ING_PAYMENT}},[x.INQUIRY]:{on:{[b.REQUEST_PAYMENT_AFTER_INQUIRY]:x.PENDING_PAYMENT}},[x.PENDING_PAYMENT]:{on:{[b.EXPIRE_PAYMENT]:x.PAYMENT_EXPIRED,[b.CONFIRM_PAYMENT]:x.PREAUTHORIZED}},[x.PAYMENT_EXPIRED]:{},[x.PREAUTHORIZED]:{on:{[b.DECLINE]:x.DECLINED,[b.OPERATOR_DECLINE]:x.DECLINED,[b.EXPIRE]:x.EXPIRED,[b.ACCEPT]:x.ACCEPTED,[b.OPERATOR_ACCEPT]:x.ACCEPTED}},[x.DECLINED]:{},[x.EXPIRED]:{},[x.ACCEPTED]:{on:{[b.CANCEL]:x.CANCELED,[b.COMPLETE]:x.DELIVERED,[b.OPERATOR_COMPLETE]:x.DELIVERED}},[x.CANCELED]:{},[x.DELIVERED]:{on:{[b.EXPIRE_REVIEW_PERIOD]:x.REVIEWED,[b.REVIEW_1_BY_CUSTOMER]:x.REVIEWED_BY_CUSTOMER,[b.REVIEW_1_BY_PROVIDER]:x.REVIEWED_BY_PROVIDER}},[x.REVIEWED_BY_CUSTOMER]:{on:{[b.REVIEW_2_BY_PROVIDER]:x.REVIEWED,[b.EXPIRE_PROVIDER_REVIEW_PERIOD]:x.REVIEWED}},[x.REVIEWED_BY_PROVIDER]:{on:{[b.REVIEW_2_BY_CUSTOMER]:x.REVIEWED,[b.EXPIRE_CUSTOMER_REVIEW_PERIOD]:x.REVIEWED}},[x.REVIEWED]:{type:"final"}}},A=e=>[b.ACCEPT,b.OPERATOR_ACCEPT,b.CANCEL,b.COMPLETE,b.OPERATOR_COMPLETE,b.CONFIRM_PAYMENT,b.DECLINE,b.OPERATOR_DECLINE,b.EXPIRE,b.REVIEW_1_BY_CUSTOMER,b.REVIEW_1_BY_PROVIDER,b.REVIEW_2_BY_CUSTOMER,b.REVIEW_2_BY_PROVIDER].includes(e),S=e=>[b.REVIEW_1_BY_CUSTOMER,b.REVIEW_2_BY_CUSTOMER].includes(e),E=e=>[b.REVIEW_1_BY_PROVIDER,b.REVIEW_2_BY_PROVIDER].includes(e),T=e=>[b.REQUEST_PAYMENT,b.REQUEST_PAYMENT_AFTER_INQUIRY].includes(e),P=e=>[b.COMPLETE,b.OPERATOR_COMPLETE,b.REVIEW_1_BY_CUSTOMER,b.REVIEW_1_BY_PROVIDER,b.REVIEW_2_BY_CUSTOMER,b.REVIEW_2_BY_PROVIDER,b.EXPIRE_REVIEW_PERIOD,b.EXPIRE_CUSTOMER_REVIEW_PERIOD,b.EXPIRE_PROVIDER_REVIEW_PERIOD].includes(e),C=e=>[b.EXPIRE_PAYMENT,b.EXPIRE,b.CANCEL,b.DECLINE].includes(e),I=[x.PREAUTHORIZED],M={INQUIRE_WITHOUT_PAYMENT:"transition/inquire-without-payment"},k={INITIAL:"initial",FREE_INQUIRY:"free-inquiry"},O={id:"default-inquiry/release-1",initial:k.INITIAL,states:{[k.INITIAL]:{on:{[M.INQUIRE_WITHOUT_PAYMENT]:k.FREE_INQUIRY}},[k.FREE_INQUIRY]:{type:"final"}}},R=e=>[M.INQUIRE_WITHOUT_PAYMENT].includes(e),L=e=>!1,D=e=>!1,N=e=>!1,F=e=>!1,z=e=>!1,j=[],B=["process"],U="day",V="night",q="default-purchase",H="default-booking",G="default-inquiry",W=[{name:q,alias:"".concat(q,"/release-1"),process:n,unitTypes:["item"]},{name:H,alias:"".concat(H,"/release-1"),process:i,unitTypes:[U,V,"hour"]},{name:G,alias:"".concat(G,"/release-1"),process:o,unitTypes:["inquiry"]}],Y=e=>e.states||{},Z=e=>t=>{var r,n;const i=Y(e.graph),o=Object.keys(i).find((e=>{var r;return Object.keys((null===(r=i[e])||void 0===r?void 0:r.on)||{}).includes(t)}));return o&&t&&null!==(r=i[o])&&void 0!==r&&r.on[t]?null===(n=i[o])||void 0===n?void 0:n.on[t]:null},K=e=>t=>Z(e)((e=>{var t;return null===e||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.lastTransition})(t)),X=(e,t)=>Object.values(Y(e.graph)).reduce(((e,r)=>((e,t,r)=>e.reduce(((e,r)=>{const[n,i]=r;return i===t?[...e,n]:e}),r))(Object.entries(r.on||{}),t,e)),[]),J=e=>t=>t.reduce(((t,r)=>[...t,...X(e,r)]),[]),Q=e=>(t,r)=>X(e,t).filter((e=>((e,t)=>!!(e=>{var t;return(null===e||void 0===e||null===(t=e.attributes)||void 0===t?void 0:t.transitions)||[]})(t).find((t=>t.transition===e)))(e,r))).length>0,$=e=>{switch(e){case"flex-product-default-process":case"default-buying-products":case q:return q;case"flex-default-process":case"flex-hourly-default-process":case"flex-booking-default-process":case H:return H;case G:return G;default:return e}},ee=e=>{const t=$(e),r=W.find((e=>e.name===t));if(r)return(0,s.A)((0,s.A)({},r.process),{},{getState:K(r.process),getStateAfterTransition:Z(r.process),getTransitionsToStates:J(r.process),hasPassedState:Q(r.process)});{const t=new Error("Unknown transaction process name: ".concat(e));throw l.z3(t,"unknown-transaction-process",{processName:e}),t}},te=()=>W.map((e=>{const{process:t}=e;return(0,a.A)(e,B)})),re=()=>W.reduce(((e,t)=>[...e,...Object.values(t.process.transitions)]),[]),ne=e=>{const t=$(e),r=W.find((e=>e.name===t));return[q].includes(null===r||void 0===r?void 0:r.name)},ie=e=>{const t=e?e.split("/")[0]:null;return!!e&&ne(t)},oe=e=>{const t=$(e),r=W.find((e=>e.name===t));return[H].includes(null===r||void 0===r?void 0:r.name)},ae=e=>{const t=e?e.split("/")[0]:null;return!!e&&oe(t)},se=e=>[U,V].includes(e),le=()=>W.reduce(((e,t)=>{const r=Object.values(t.process.statesNeedingProviderAttention),n=t.process,i=r.reduce(((e,t)=>[...e,...X(n,t)]),[]);return[...new Set([...e,...i])]}),[]),ce="customer",ue="provider",de="system",he="operator",pe=[ce,ue,de,he],fe=(e,t)=>
2{const r=(0,c.RO)(t),n=r.customer;if(e&&e.uuid&&r.id&&n.id)return e.uuid===n.id.uuid?ce:ue;throw new Error('Parameters for "userIsCustomer" function were wrong.\n      currentUserId: '.concat(e,", transaction: ").concat(t))},me="*";class ge{constructor(e){this.data=e,this.resolver=null,this.defaultResolver=null}cond(e,t){if((null===e||void 0===e?void 0:e.length)===this.data.length&&null==this.resolver){const r=e=>"undefined"!==typeof e,n=e=>e===me,i=e.reduce(((e,t,i)=>e&&r(t)&&(n(t)||t===this.data[i])),!0);this.resolver=i?t:null}return this}default(e){return this.defaultResolver=e,this}resolve(){return this.resolver?this.resolver():this.defaultResolver?this.defaultResolver():null}}},58285:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});const n=[{code:"AF",en:"Afghanistan",fr:"Afghanistan",es:"Afganist\xe1n",de:"Afghanistan"},{code:"AX",en:"\xc5land Islands",fr:"\xceles \xc5land",es:"Islas \xc1land",de:"\xc5land"},{code:"AL",en:"Albania",fr:"Albanie",es:"Albania",de:"Albanien"},{code:"DZ",en:"Algeria",fr:"Alg\xe9rie",es:"Argel",de:"Algerien"},{code:"AS",en:"American Samoa",fr:"Samoa am\xe9ricaines",es:"Samoa Americana",de:"Amerikanisch-Samoa"},{code:"AD",en:"Andorra",fr:"Andorre",es:"Andorra",de:"Andorra"},{code:"AO",en:"Angola",fr:"Angola",es:"Angola",de:"Angola"},{code:"AI",en:"Anguilla",fr:"Anguilla",es:"Anguila",de:"Anguilla"},{code:"AQ",en:"Antarctica",fr:"Antarctique",es:"Ant\xe1rtida",de:"Antarktika"},{code:"AG",en:"Antigua and Barbuda",fr:"Antigua-et-Barbuda",es:"Antigua y Barbuda",de:"Antigua und Barbuda"},{code:"AR",en:"Argentina",fr:"Argentine",es:"Argentina",de:"Argentinien"},{code:"AM",en:"Armenia",fr:"Arm\xe9nie",es:"Armenia",de:"Armenien"},{code:"AW",en:"Aruba",fr:"Aruba",es:"Aruba",de:"Aruba"},{code:"AU",en:"Australia",fr:"Australie",es:"Australia",de:"Australien"},{code:"AT",en:"Austria",fr:"Autriche",es:"Austria",de:"\xd6sterreich"},{code:"AZ",en:"Azerbaijan",fr:"Azerba\xefdjan",es:"Azerbaiy\xe1n",de:"Aserbaidschan"},{code:"BS",en:"Bahamas",fr:"Bahamas",es:"Bahamas",de:"Bahamas"},{code:"BH",en:"Bahrain",fr:"Bahre\xefn",es:"Bahr\xe9in",de:"Bahrain"},{code:"BD",en:"Bangladesh",fr:"Bangladesh",es:"Bangladesh",de:"Bangladesch"},{code:"BB",en:"Barbados",fr:"Barbade",es:"Barbados",de:"Barbados"},{code:"BY",en:"Belarus",fr:"Bi\xe9lorussie",es:"Belar\xfas",de:"Belarus"},{code:"BE",en:"Belgium",fr:"Belgique",es:"B\xe9lgica",de:"Belgien"},{code:"BZ",en:"Belize",fr:"Belize",es:"Belice",de:"Belize"},{code:"BJ",en:"Benin",fr:"B\xe9nin",es:"Benin",de:"Benin"},{code:"BM",en:"Bermuda",fr:"Bermudes",es:"Bermudas",de:"Bermuda"},{code:"BT",en:"Bhutan",fr:"Bhoutan",es:"Bhut\xe1n",de:"Bhutan"},{code:"BO",en:"Bolivia",fr:"Bolivie",es:"Bolivia",de:"Bolivien"},{code:"BQ",en:"Bonaire, Sint Eustatius and Saba",fr:"Pays-Bas carib\xe9ens",es:"Caribe Neerland\xe9s",de:"Bonaire, Sint Eustatius und Saba"},{code:"BA",en:"Bosnia and Herzegovina",fr:"Bosnie-Herz\xe9govine",es:"Bosnia y Herzegovina",de:"Bosnien und Herzegowina"},{code:"BW",en:"Botswana",fr:"Botswana",es:"Botsuana",de:"Botswana"},{code:"BV",en:"Bouvet Island",fr:"\xcele Bouvet",es:"Isla Bouvet",de:"Bouvetinsel"},{code:"BR",en:"Brazil",fr:"Br\xe9sil",es:"Brasil",de:"Brasilien"},{code:"IO",en:"British Indian Ocean Territory",fr:"Territoire britannique de l\u2019Oc\xe9an Indien",es:"Territorio Brit\xe1nico del Oc\xe9ano \xcdndico",de:"Britisches Territorium im Indischen Ozean"},{code:"BN",en:"Brunei Darussalam",fr:"Brunei Darussalam",es:"Brun\xe9i",de:"Brunei Darussalam"},{code:"BG",en:"Bulgaria",fr:"Bulgarie",es:"Bulgaria",de:"Bulgarien"},{code:"BF",en:"Burkina Faso",fr:"Burkina Faso",es:"Burkina Faso",de:"Burkina Faso"},{code:"BI",en:"Burundi",fr:"Burundi",es:"Burundi",de:"Burundi"},{code:"KH",en:"Cambodia",fr:"Cambodge",es:"Camboya",de:"Kambodscha"},{code:"CM",en:"Cameroon",fr:"Cameroun",es:"Camer\xfan",de:"Kamerun"},{code:"CA",en:"Canada",fr:"Canada",es:"Canad\xe1",de:"Kanada"},{code:"CV",en:"Cape Verde",fr:"Cap-Vert",es:"Cabo Verde",de:"Kap Verde"},{code:"KY",en:"Cayman Islands",fr:"Iles Cayman",es:"Islas Caim\xe1n",de:"Kaimaninseln"},{code:"CF",en:"Central African Republic",fr:"R\xe9publique centrafricaine",es:"Rep\xfablica Centro-Africana",de:"Zentralafrikanische Republik"},{code:"TD",en:"Chad",fr:"Tchad",es:"Chad",de:"Tschad"},{code:"CL",en:"Chile",fr:"Chili",es:"Chile",de:"Chile"},{code:"CN",en:"China",fr:"Chine",es:"China",de:"China, Volksrepublik"},{code:"CX",en:"Christmas Island",fr:"\xcele Christmas",es:"Islas Christmas",de:"Weihnachtsinsel"},{code:"CC",en:"Cocos (Keeling) Islands",fr:"\xceles Cocos",es:"Islas Cocos",de
2:"Kokosinseln"},{code:"CO",en:"Colombia",fr:"Colombie",es:"Colombia",de:"Kolumbien"},{code:"KM",en:"Comoros",fr:"Comores",es:"Comoros",de:"Komoren"},{code:"CG",en:"Congo",fr:"R\xe9publique du Congo",es:"Congo",de:"Kongo, Republik"},{code:"CD",en:"Congo, the Democratic Republic of the",fr:"R\xe9publique d\xe9mocratique du Congo",es:"Rep\xfablica democr\xe1tica del Congo",de:"Kongo, Demokratische Republik"},{code:"CK",en:"Cook Islands",fr:"\xceles Cook",es:"Islas Cook",de:"Cookinseln"},{code:"CR",en:"Costa Rica",fr:"Costa Rica",es:"Costa Rica",de:"Costa Rica"},{code:"CI",en:"C\xf4te d'Ivoire",fr:"C\xf4te d\u2019Ivoire",es:"Costa de Marfil",de:"C\xf4te d\u2019Ivoire"},{code:"HR",en:"Croatia",fr:"Croatie",es:"Croacia",de:"Kroatien"},{code:"CU",en:"Cuba",fr:"Cuba",es:"Cuba",de:"Kuba"},{code:"CW",en:"Cura\xe7ao",fr:"Cura\xe7ao",es:"Curazao",de:"Cura\xe7ao"},{code:"CY",en:"Cyprus",fr:"Chypre",es:"Chipre",de:"Zypern"},{code:"CZ",en:"Czech Republic",fr:"R\xe9publique tch\xe8que",es:"Rep\xfablica Checa",de:"Tschechien"},{code:"DK",en:"Denmark",fr:"Danemark",es:"Dinamarca",de:"D\xe4nemark"},{code:"DJ",en:"Djibouti",fr:"Djibouti",es:"Yibuti",de:"Dschibuti"},{code:"DM",en:"Dominica",fr:"Dominique",es:"Dom\xednica",de:"Dominica"},{code:"DO",en:"Dominican Republic",fr:"R\xe9publique dominicaine",es:"Rep\xfablica Dominicana",de:"Dominikanische Republik"},{code:"EC",en:"Ecuador",fr:"\xc9quateur",es:"Ecuador",de:"Ecuador"},{code:"EG",en:"Egypt",fr:"\xc9gypte",es:"Egipto",de:"\xc4gypten"},{code:"SV",en:"El Salvador",fr:"Salvador",es:"El Salvador",de:"El Salvador"},{code:"GQ",en:"Equatorial Guinea",fr:"Guin\xe9e \xe9quatoriale",es:"Guinea Ecuatorial",de:"\xc4quatorialguinea"},{code:"ER",en:"Eritrea",fr:"\xc9rythr\xe9e",es:"Eritrea",de:"Eritrea"},{code:"EE",en:"Estonia",fr:"Estonie",es:"Estonia",de:"Estland"},{code:"ET",en:"Ethiopia",fr:"\xc9thiopie",es:"Etiop\xeda",de:"\xc4thiopien"},{code:"FK",en:"Falkland Islands (Malvinas)",fr:"\xceles Falkland",es:"Islas Malvinas",de:"Falklandinseln"},{code:"FO",en:"Faroe Islands",fr:"\xceles F\xe9ro\xe9",es:"Islas Faroe",de:"F\xe4r\xf6er"},{code:"FJ",en:"Fiji",fr:"Fidji",es:"Fiji",de:"Fidschi"},{code:"FI",en:"Finland",fr:"Finlande",es:"Finlandia",de:"Finnland"},{code:"FR",en:"France",fr:"France",es:"Francia",de:"Frankreich"},{code:"GF",en:"French Guiana",fr:"Guyane fran\xe7aise",es:"Guayana Francesa",de:"Franz\xf6sisch-Guayana"},{code:"PF",en:"French Polynesia",fr:"Polyn\xe9sie fran\xe7aise",es:"Polinesia Francesa",de:"Franz\xf6sisch-Polynesien"},{code:"TF",en:"French Southern Territories",fr:"Terres australes et antarctiques fran\xe7aises",es:"Territorios Australes Franceses",de:"Franz\xf6sische S\xfcd- und Antarktisgebiete"},{code:"GA",en:"Gabon",fr:"Gabon",es:"Gab\xf3n",de:"Gabun"},{code:"GM",en:"Gambia",fr:"Gambie",es:"Gambia",de:"Gambia"},{code:"GE",en:"Georgia",fr:"G\xe9orgie",es:"Georgia",de:"Georgien"},{code:"DE",en:"Germany",fr:"Allemagne",es:"Alemania",de:"Deutschland"},{code:"GH",en:"Ghana",fr:"Ghana",es:"Ghana",de:"Ghana"},{code:"GI",en:"Gibraltar",fr:"Gibraltar",es:"Gibraltar",de:"Gibraltar"},{code:"GR",en:"Greece",fr:"Gr\xe8ce",es:"Grecia",de:"Griechenland"},{code:"GL",en:"Greenland",fr:"Groenland",es:"Groenlandia",de:"Gr\xf6nland"},{code:"GD",en:"Grenada",fr:"Grenade",es:"Granada",de:"Grenada"},{code:"GP",en:"Guadeloupe",fr:"Guadeloupe",es:"Guadalupe",de:"Guadeloupe"},{code:"GU",en:"Guam",fr:"Guam",es:"Guam",de:"Guam"},{code:"GT",en:"Guatemala",fr:"Guatemala",es:"Guatemala",de:"Guatemala"},{code:"GG",en:"Guernsey",fr:"Guernesey",es:"Guernsey",de:"Guernsey"},{code:"GN",en:"Guinea",fr:"Guin\xe9e",es:"Guinea",de:"Guinea"},{code:"GW",en:"Guinea-Bissau",fr:"Guin\xe9e-Bissau",es:"Guinea-Bissau",de:"Guinea-Bissau"},{code:"GY",en:"Guyana",fr:"Guyane",es:"Guayana",de:"Guyana"},{code:"HT",en:"Haiti",fr:"Ha\xefti",es:"Hait\xed",de:"Haiti"},{code:"HM",en:"Heard Island and McDonald Islands",fr:"\xceles Heard-et-MacDonald",es:"Islas Heard y McDonald",de:"Heard und McDonaldinseln"},{code:"VA",en:"Holy See (Vatican City State)",fr:"Saint-Si\xe8ge (Vatican)",es:"Ciudad del Vaticano",de:"Vatikanstadt"},{code:"HN",en:"Honduras",fr:"Honduras",es:"Honduras",de:"Honduras"},{code:"HK",en:"Hong Kong",fr:"Hong Kong",es:"Hong Kong",de:"Hongkong"},{code:"HU",en:"Hungary",fr:"Hongrie",es:"Hungr\xeda",de:"Ungarn"},{code:"IS",en:"Iceland",fr:"Islande",es:"Islandia",de:"Island"},{code:"IN",en:"India",fr:"Inde",es:"India",de:"Indien"},{code:"ID",en:"Indonesia",fr:"Indon\xe9sie",es:"Indonesia",de:"Indonesien"}
2,{code:"IR",en:"Iran, Islamic Republic of",fr:"Iran",es:"Ir\xe1n",de:"Iran, Islamische Republik"},{code:"IQ",en:"Iraq",fr:"Irak",es:"Irak",de:"Irak"},{code:"IE",en:"Ireland",fr:"Irlande",es:"Irlanda",de:"Irland"},{code:"IM",en:"Isle of Man",fr:"Ile de Man",es:"Isla de Man",de:"Insel Man"},{code:"IL",en:"Israel",fr:"Isra\xebl",es:"Israel",de:"Israel"},{code:"IT",en:"Italy",fr:"Italie",es:"Italia",de:"Italien"},{code:"JM",en:"Jamaica",fr:"Jama\xefque",es:"Jamaica",de:"Jamaika"},{code:"JP",en:"Japan",fr:"Japon",es:"Jap\xf3n",de:"Japan"},{code:"JE",en:"Jersey",fr:"Jersey",es:"Jersey",de:"Jersey\xa0(Kanalinsel)"},{code:"JO",en:"Jordan",fr:"Jordanie",es:"Jordania",de:"Jordanien"},{code:"KZ",en:"Kazakhstan",fr:"Kazakhstan",es:"Kazajst\xe1n",de:"Kasachstan"},{code:"KE",en:"Kenya",fr:"Kenya",es:"Kenia",de:"Kenia"},{code:"KI",en:"Kiribati",fr:"Kiribati",es:"Kiribati",de:"Kiribati"},{code:"KP",en:"Korea, Democratic People's Republic of",fr:"Cor\xe9e du Nord",es:"Corea del Norte",de:"Korea, Demokratische Volksrepublik\xa0(Nordkorea)"},{code:"KR",en:"Korea, Republic of",fr:"Cor\xe9e du Sud",es:"Corea del Sur",de:"Korea, Republik\xa0(S\xfcdkorea)"},{code:"KW",en:"Kuwait",fr:"Kowe\xeft",es:"Kuwait",de:"Kuwait"},{code:"KG",en:"Kyrgyzstan",fr:"Kirghizistan",es:"Kirguist\xe1n",de:"Kirgisistan"},{code:"LA",en:"Laos",fr:"Laos",es:"Laos",de:"Laos"},{code:"LV",en:"Latvia",fr:"Lettonie",es:"Letonia",de:"Lettland"},{code:"LB",en:"Lebanon",fr:"Liban",es:"L\xedbano",de:"Libanon"},{code:"LS",en:"Lesotho",fr:"Lesotho",es:"Lesotho",de:"Lesotho"},{code:"LR",en:"Liberia",fr:"Lib\xe9ria",es:"Liberia",de:"Liberia"},{code:"LY",en:"Libya",fr:"Libye",es:"Libia",de:"Libyen"},{code:"LI",en:"Liechtenstein",fr:"Liechtenstein",es:"Liechtenstein",de:"Liechtenstein"},{code:"LT",en:"Lithuania",fr:"Lituanie",es:"Lituania",de:"Litauen"},{code:"LU",en:"Luxembourg",fr:"Luxembourg",es:"Luxemburgo",de:"Luxemburg"},{code:"MO",en:"Macao",fr:"Macao",es:"Macao",de:"Macau"},{code:"MK",en:"North Macedonia",fr:"Mac\xe9doine du Nord",es:"Macedonia del Norte",de:"Nordmazedonien"},{code:"MG",en:"Madagascar",fr:"Madagascar",es:"Madagascar",de:"Madagaskar"},{code:"MW",en:"Malawi",fr:"Malawi",es:"Malawi",de:"Malawi"},{code:"MY",en:"Malaysia",fr:"Malaisie",es:"Malasia",de:"Malaysia"},{code:"MV",en:"Maldives",fr:"Maldives",es:"Maldivas",de:"Malediven"},{code:"ML",en:"Mali",fr:"Mali",es:"Mali",de:"Mali"},{code:"MT",en:"Malta",fr:"Malte",es:"Malta",de:"Malta"},{code:"MH",en:"Marshall Islands",fr:"\xceles Marshall",es:"Islas Marshall",de:"Marshallinseln"},{code:"MQ",en:"Martinique",fr:"Martinique",es:"Martinica",de:"Martinique"},{code:"MR",en:"Mauritania",fr:"Mauritanie",es:"Mauritania",de:"Mauretanien"},{code:"MU",en:"Mauritius",fr:"Maurice",es:"Mauricio",de:"Mauritius"},{code:"YT",en:"Mayotte",fr:"Mayotte",es:"Mayotte",de:"Mayotte"},{code:"MX",en:"Mexico",fr:"Mexique",es:"M\xe9xico",de:"Mexiko"},{code:"FM",en:"Micronesia, Federated States of",fr:"Micron\xe9sie",es:"Micronesia",de:"Mikronesien"},{code:"MD",en:"Moldova",fr:"Moldavie",es:"Moldova",de:"Moldawien"},{code:"MC",en:"Monaco",fr:"Monaco",es:"M\xf3naco",de:"Monaco"},{code:"MN",en:"Mongolia",fr:"Mongolie",es:"Mongolia",de:"Mongolei"},{code:"ME",en:"Montenegro",fr:"Mont\xe9n\xe9gro",es:"Montenegro",de:"Montenegro"},{code:"MS",en:"Montserrat",fr:"Montserrat",es:"Montserrat",de:"Montserrat"},{code:"MA",en:"Morocco",fr:"Maroc",es:"Marruecos",de:"Marokko"},{code:"MZ",en:"Mozambique",fr:"Mozambique",es:"Mozambique",de:"Mosambik"},{code:"MM",en:"Myanmar",fr:"Myanmar",es:"Myanmar",de:"Myanmar"},{code:"NA",en:"Namibia",fr:"Namibie",es:"Namibia",de:"Namibia"},{code:"NR",en:"Nauru",fr:"Nauru",es:"Nauru",de:"Nauru"},{code:"NP",en:"Nepal",fr:"N\xe9pal",es:"Nepal",de:"Nepal"},{code:"NL",en:"Netherlands",fr:"Pays-Bas",es:"Pa\xedses Bajos",de:"Niederlande"},{code:"NC",en:"New Caledonia",fr:"Nouvelle-Cal\xe9donie",es:"Nueva Caledonia",de:"Neukaledonien"},{code:"NZ",en:"New Zealand",fr:"Nouvelle-Z\xe9lande",es:"Nueva Zelanda",de:"Neuseeland"},{code:"NI",en:"Nicaragua",fr:"Nicaragua",es:"Nicaragua",de:"Nicaragua"},{code:"NE",en:"Niger",fr:"Niger",es:"N\xedger",de:"Niger"},{code:"NG",en:"Nigeria",fr:"Nigeria",es:"Nigeria",de:"Nigeria"},{code:"NU",en:"Niue",fr:"Niue",es:"Niue",de:"Niue"},{code:"NF",en:"Norfolk Island",fr:"\xcele Norfolk",es:"Islas Norkfolk",de:"Norfolkinsel"},{code:"MP",en:"Northern Mariana Islands",fr:"\xceles Mariannes du Nord",es:"Islas Marianas del Norte",de:"N\xf6rdliche Marianen"},{code:"NO",en:"Norway",fr:"Norv\xe8ge",es:"Noruega",de:"Norwegen"}
2,{code:"OM",en:"Oman",fr:"Oman",es:"Om\xe1n",de:"Oman"},{code:"PK",en:"Pakistan",fr:"Pakistan",es:"Pakist\xe1n",de:"Pakistan"},{code:"PW",en:"Palau",fr:"Palau",es:"Islas Palaos",de:"Palau"},{code:"PS",en:"Palestine, State of",fr:"Palestine",es:"Palestina",de:"Staat Pal\xe4stina"},{code:"PA",en:"Panama",fr:"Panama",es:"Panam\xe1",de:"Panama"},{code:"PG",en:"Papua New Guinea",fr:"Papouasie-Nouvelle-Guin\xe9e",es:"Pap\xfaa Nueva Guinea",de:"Papua-Neuguinea"},{code:"PY",en:"Paraguay",fr:"Paraguay",es:"Paraguay",de:"Paraguay"},{code:"PE",en:"Peru",fr:"P\xe9rou",es:"Per\xfa",de:"Peru"},{code:"PH",en:"Philippines",fr:"Philippines",es:"Filipinas",de:"Philippinen"},{code:"PN",en:"Pitcairn",fr:"Pitcairn",es:"Islas Pitcairn",de:"Pitcairninseln"},{code:"PL",en:"Poland",fr:"Pologne",es:"Polonia",de:"Polen"},{code:"PT",en:"Portugal",fr:"Portugal",es:"Portugal",de:"Portugal"},{code:"PR",en:"Puerto Rico",fr:"Puerto Rico",es:"Puerto Rico",de:"Puerto Rico"},{code:"QA",en:"Qatar",fr:"Qatar",es:"Qatar",de:"Katar"},{code:"RE",en:"R\xe9union",fr:"R\xe9union",es:"Reuni\xf3n",de:"R\xe9union"},{code:"RO",en:"Romania",fr:"Roumanie",es:"Ruman\xeda",de:"Rum\xe4nien"},{code:"RU",en:"Russian Federation",fr:"Russie",es:"Rusia",de:"Russische F\xf6deration"},{code:"RW",en:"Rwanda",fr:"Rwanda",es:"Ruanda",de:"Ruanda"},{code:"BL",en:"Saint Barth\xe9lemy",fr:"Saint-Barth\xe9lemy",es:"San Bartolom\xe9",de:"Saint-Barth\xe9lemy"},{code:"SH",en:"Saint Helena, Ascension and Tristan da Cunha",fr:"Sainte-H\xe9l\xe8ne",es:"Santa Elena",de:"St. Helena"},{code:"KN",en:"Saint Kitts and Nevis",fr:"Saint-Kitts-et-Nevis",es:"San Crist\xf3bal y Nieves",de:"St. Kitts und Nevis"},{code:"LC",en:"Saint Lucia",fr:"Sainte-Lucie",es:"Santa Luc\xeda",de:"St. Lucia"},{code:"MF",en:"Saint Martin (French part)",fr:"Saint-Martin (partie fran\xe7aise)",es:"San Mart\xedn (parte francesa)",de:"Saint-Martin\xa0(franz. Teil)"},{code:"PM",en:"Saint Pierre and Miquelon",fr:"Saint-Pierre-et-Miquelon",es:"San Pedro y Miquel\xf3n",de:"Saint-Pierre und Miquelon"},{code:"VC",en:"Saint Vincent and the Grenadines",fr:"Saint-Vincent-et-les Grenadines",es:"San Vicente y las Granadinas",de:"St. Vincent und die Grenadinen"},{code:"WS",en:"Samoa",fr:"Samoa",es:"Samoa",de:"Samoa"},{code:"SM",en:"San Marino",fr:"Saint-Marin",es:"San Marino",de:"San Marino"},{code:"ST",en:"Sao Tome and Principe",fr:"Sao Tom\xe9-et-Principe",es:"Santo Tom\xe9 y Pr\xedncipe",de:"S\xe3o Tom\xe9 und Pr\xedncipe"},{code:"SA",en:"Saudi Arabia",fr:"Arabie Saoudite",es:"Arabia Saudita",de:"Saudi-Arabien"},{code:"SN",en:"Senegal",fr:"S\xe9n\xe9gal",es:"Senegal",de:"Senegal"},{code:"RS",en:"Serbia",fr:"Serbie",es:"Serbia y Montenegro",de:"Serbien"},{code:"SC",en:"Seychelles",fr:"Seychelles",es:"Seychelles",de:"Seychellen"},{code:"SL",en:"Sierra Leone",fr:"Sierra Leone",es:"Sierra Leona",de:"Sierra Leone"},{code:"SG",en:"Singapore",fr:"Singapour",es:"Singapur",de:"Singapur"},{code:"SX",en:"Sint Maarten (Dutch part)",fr:"Saint-Martin (partie n\xe9erlandaise)",es:"San Mart\xedn (parte neerlandesa)",de:"Sint Maarten\xa0(niederl. Teil)"},{code:"SK",en:"Slovakia",fr:"Slovaquie",es:"Eslovaquia",de:"Slowakei"},{code:"SI",en:"Slovenia",fr:"Slov\xe9nie",es:"Eslovenia",de:"Slowenien"},{code:"SB",en:"Solomon Islands",fr:"\xceles Salomon",es:"Islas Solom\xf3n",de:"Salomonen"},{code:"SO",en:"Somalia",fr:"Somalie",es:"Somalia",de:"Somalia"},{code:"ZA",en:"South Africa",fr:"Afrique du Sud",es:"Sud\xe1frica",de:"S\xfcdafrika"},{code:"GS",en:"South Georgia and the South Sandwich Islands",fr:"G\xe9orgie du Sud et les \xeeles Sandwich du Sud",es:"Georgia del Sur e Islas Sandwich deSur",de:"S\xfcdgeorgien und die S\xfcdlichen Sandwichinseln"},{code:"SS",en:"South Sudan",fr:"Sud-Soudan",es:"Sud\xe1n del Sur",de:"S\xfcdsudan"},{code:"ES",en:"Spain",fr:"Espagne",es:"Espa\xf1a",de:"Spanien"},{code:"LK",en:"Sri Lanka",fr:"Sri Lanka",es:"Sri Lanka",de:"Sri Lanka"},{code:"SD",en:"Sudan",fr:"Soudan",es:"Sud\xe1n",de:"Sudan"},{code:"SR",en:"Suriname",fr:"Suriname",es:"Surinam",de:"Suriname"},{code:"SJ",en:"Svalbard and Jan Mayen",fr:"Svalbard et Jan Mayen",es:"Islas Svalbard y Jan Mayen",de:"Svalbard\xa0und\xa0Jan Mayen"},{code:"SZ",en:"Swaziland",fr:"Eswatini",es:"Suazilandia",de:"Swasiland"},{code:"SE",en:"Sweden",fr:"Su\xe8de",es:"Suecia",de:"Schweden"},{code:"CH",en:"Switzerland",fr:"Suisse",es:"Suiza",de:"Schweiz"},{code:"SY",en:"Syrian Arab Republic",fr:"Syrie",es:"Siria",de:"Syrien, Arabische Republik"}
2,{code:"TW",en:"Taiwan",fr:"Taiwan",es:"Taiw\xe1n",de:"Taiwan"},{code:"TJ",en:"Tajikistan",fr:"Tadjikistan",es:"Tayikist\xe1n",de:"Tadschikistan"},{code:"TZ",en:"Tanzania",fr:"Tanzanie",es:"Tanzania",de:"Tansania"},{code:"TH",en:"Thailand",fr:"Tha\xeflande",es:"Tailandia",de:"Thailand"},{code:"TL",en:"Timor-Leste",fr:"Timor-Leste",es:"Timor-Leste",de:"Osttimor\xa0"},{code:"TG",en:"Togo",fr:"Togo",es:"Togo",de:"Togo"},{code:"TK",en:"Tokelau",fr:"Tokelau",es:"Tokelau",de:"Tokelau"},{code:"TO",en:"Tonga",fr:"Tonga",es:"Tonga",de:"Tonga"},{code:"TT",en:"Trinidad and Tobago",fr:"Trinit\xe9-et-Tobago",es:"Trinidad y Tobago",de:"Trinidad und Tobago"},{code:"TN",en:"Tunisia",fr:"Tunisie",es:"T\xfanez",de:"Tunesien"},{code:"TR",en:"Turkey",fr:"Turquie",es:"Turqu\xeda",de:"T\xfcrkei"},{code:"TM",en:"Turkmenistan",fr:"Turkm\xe9nistan",es:"Turkmenist\xe1n",de:"Turkmenistan"},{code:"TC",en:"Turks and Caicos Islands",fr:"\xceles Turques-et-Ca\xefques",es:"Islas Turcas y Caicos",de:"Turks- und Caicosinseln"},{code:"TV",en:"Tuvalu",fr:"Tuvalu",es:"Tuvalu",de:"Tuvalu"},{code:"UG",en:"Uganda",fr:"Ouganda",es:"Uganda",de:"Uganda"},{code:"UA",en:"Ukraine",fr:"Ukraine",es:"Ucrania",de:"Ukraine"},{code:"AE",en:"United Arab Emirates",fr:"\xc9mirats Arabes Unis",es:"Emiratos \xc1rabes Unidos",de:"Vereinigte Arabische Emirate"},{code:"GB",en:"United Kingdom",fr:"Royaume-Uni",es:"Reino Unido",de:"Vereinigtes K\xf6nigreich Gro\xdfbritannien und Nordirland"},{code:"US",en:"United States",fr:"\xc9tats-Unis",es:"Estados Unidos de Am\xe9rica",de:"Vereinigte Staaten von Amerika"},{code:"UM",en:"United States Minor Outlying Islands",fr:"\xceles mineures \xe9loign\xe9es des \xc9tats-Unis",es:"Islas Ultramarinas Menores de Estados Unidos",de:"United States Minor Outlying Islands"},{code:"UY",en:"Uruguay",fr:"Uruguay",es:"Uruguay",de:"Uruguay"},{code:"UZ",en:"Uzbekistan",fr:"Ouzb\xe9kistan",es:"Uzbekist\xe1n",de:"Usbekistan"},{code:"VU",en:"Vanuatu",fr:"Vanuatu",es:"Vanuatu",de:"Vanuatu"},{code:"VE",en:"Venezuela",fr:"Venezuela",es:"Venezuela",de:"Venezuela"},{code:"VN",en:"Viet Nam",fr:"Vi\xeat Nam",es:"Vietnam",de:"Vietnam"},{code:"VG",en:"Virgin Islands, British",fr:"British Virgin Islands",es:"Islas V\xedrgenes Brit\xe1nicas",de:"Britische Jungferninseln"},{code:"VI",en:"Virgin Islands, U.S.",fr:"\xceles Vierges am\xe9ricaines",es:"Islas V\xedrgenes de los Estados Unidos de Am\xe9rica",de:"Amerikanische Jungferninseln"},{code:"WF",en:"Wallis and Futuna",fr:"Wallis-et-Futuna",es:"Wallis y Futuna",de:"Wallis und Futuna"},{code:"EH",en:"Western Sahara",fr:"Sahara occidental",es:"Sahara Occidental",de:"Westsahara"},{code:"YE",en:"Yemen",fr:"Y\xe9men",es:"Yemen",de:"Jemen"},{code:"ZM",en:"Zambia",fr:"Zambie",es:"Zambia",de:"Sambia"},{code:"ZW",en:"Zimbabwe",fr:"Zimbabwe",es:"Zimbabue",de:"Simbabwe"}],i=e=>n.map((t=>{const r=t[e]?t[e]:t.en;return{code:t.code,name:r}}))},95565:(e,t,r)=>{"use strict";r.d(t,{FV:()=>f,Ml:()=>u,Tb:()=>_,rq:()=>m,tj:()=>c,v_:()=>g});var n=r(89379),i=r(80045),o=r(73682),a=r(55346),s=r(77217);const l=["credentials","headers","body"],c=e=>e?e.replace(/\/$/,""):"".concat(window.location.origin),u=[{type:a.gK.BigDecimal,customType:s.A,writer:e=>new a.gK.BigDecimal(e.toString()),reader:e=>new s.A(e.value)}],d=e=>a.gj.read(e,{typeHandlers:u}),h="POST",p=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r="".concat(c()).concat(e),{credentials:s,headers:h,body:p}=t,f=(0,i.A)(t,l),m=h&&"application/transit+json"!==h["Content-Type"]||!p?{}:{body:(g=p,a.gj.write(g,{typeHandlers:u,verbose:o.A.sdk.transitVerbose}))};var g;const _=(0,n.A)((0,n.A)({credentials:s||"include",headers:h||{"Content-Type":"application/transit+json"}},m),f);return window.fetch(r,_).then((e=>{const t=e.headers.get("Content-Type"),r=t?t.split(";")[0]:null;return e.status>=400?e.json().then((e=>{let t=new Error;throw t=Object.assign(t,e),t})):"application/transit+json"===r?e.text().then(d):"application/json"===r?e.json():e.text()}))}(e,(0,n.A)((0,n.A)({},r),{},{method:h,body:t}))},f=e=>p("/api/transaction-line-items",e),m=e=>p("/api/initiate-privileged",e),g=e=>p("/api/transition-privileged",e),_=e=>p("/api/auth/create-user-with-idp",e)},86770:(e,t,r)=>{"use strict";r.d(t,{OX:()=>Y,R2:()=>ae,S5:()=>Z,XT:()=>K,Zr:()=>X,_0:()=>J});var n=r(80045),i=r(89379),o=r(86957),a=r(89413);const s=["marketplaceColors","logo","logoSettings","loginBackgroun
2dImage","socialSharingImage"],l=["listingType","label","transactionType"],c=["process","alias","unitType"],u=["id","label","transactionProcess","unitType"],d=["key","scope","schemaType","enumOptions","label","filterConfig","showConfig","saveConfig","numberConfig","categoryConfig"],h=["required"],p=["id"],f=["key","scope","schemaType","enumOptions","label","showConfig","saveConfig","userTypeConfig"],m=["required"],g=["listingTypes","listingFields"],_=["mainSearch","categoryFilter","dateRangeFilter","priceFilter","keywordsFilter","sortConfig"],y=["mapProvider","mapboxAccessToken","googleMapsAPIKey"],v=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{subcategories:n=[]}=e;return t(r,n.map((e=>v(e,t,r+1))))},b=(e,t)=>t.length?Math.max(...t):e,x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t="categoryLevel",r=v({subcategories:e},b),n=(i=r,[...Array(i)].fill(null).map(((e,t)=>t+1))).map((e=>"".concat(t).concat(e)));var i;return{key:t,scope:"public",categoryLevelKeys:n,categories:e}},w=(e,t)=>{const r=e||t;return Object.keys(o.i).includes(r)?r:(console.error("The given currency (".concat(r,") is not supported.\n      There's a missing entry on subUnitDivisors")),null)},A=e=>{const t=e.supportedCountries||[],r=Object.keys(o.i),n=t.filter((e=>{const t=r.includes(e.currency);return t||console.error("Stripe configuration contained currency that was not supported by the client app.\n        There's a missing entry on subUnitDivisors for ".concat(e.currency,".")),t}));return(0,i.A)((0,i.A)({},e),{},{supportedCountries:n})};const S=(e,t)=>{const{enabled:r,measurementId:n}=(null===e||void 0===e?void 0:e.googleAnalytics)||{},o=r&&n?n:t.googleAnalyticsId,a=(null===e||void 0===e?void 0:e.plausible)||{},s=function(e,t){return Array.from(arguments).filter(Boolean).map((e=>(e=>e.trim().replace(/,\s*$/,""))(e))).join(",")}(null!==a&&void 0!==a&&a.enabled&&null!==a&&void 0!==a&&a.domain?a.domain:"",t.plausibleDomains),l=s?{plausibleDomains:s}:{};return(0,i.A)({googleAnalyticsId:o},l)},E=(e,t)=>{let r=e.replace(/^#/,"");3===r.length&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]);const n=parseInt(r.substr(0,2),16)/255,i=parseInt(r.substr(2,2),16)/255,o=parseInt(r.substr(4,2),16)/255,a=Math.max(n,i,o),s=Math.min(n,i,o);let l,c,u=(a+s)/2;if(a==s)l=0,c=0;else{const e=a-s;switch(c=u>.5?e/(2-a-s):e/(a+s),a){case n:l=(i-o)/e+(i<o?6:0);break;case i:l=(o-n)/e+2;break;case o:l=(n-i)/e+4}l/=6}return l=Math.round(360*l),c=Math.round(100*c),u=Math.round(100*u),"hsl(".concat(l,", ").concat(c,"%, ").concat(u+t,"%)")},T=(e,t)=>{var r;return"imageAsset"===(null===e||void 0===e?void 0:e.type)?null===(r=e.attributes.variants[t])||void 0===r?void 0:r.url:null},P=(e,t)=>{const r=e||{},{marketplaceColors:o,logo:a,logoSettings:l,loginBackgroundImage:c,socialSharingImage:u}=r,d=(0,n.A)(r,s),h=(null===o||void 0===o?void 0:o.mainColor)||t.marketplaceColor,p=h?E(h,-10):null,f=h?E(h,10):null,m=null===o||void 0===o?void 0:o.primaryButton,g=m?E(m,-10):null,_=m?E(m,10):null,y=l||t.logoSettings,v="image"===(null===y||void 0===y?void 0:y.format)&&[24,36,48].includes(null===y||void 0===y?void 0:y.height),b=T(u,"scaled1200")||t.facebookImageURL,x=T(u,"scaled600")||t.twitterImageURL;return(0,i.A)({marketplaceColor:h,marketplaceColorDark:p,marketplaceColorLight:f,colorPrimaryButton:m,colorPrimaryButtonDark:g,colorPrimaryButtonLight:_,logoSettings:v?y:{format:"image",height:24},logoImageDesktop:a||t.logoImageDesktopURL,logoImageMobile:a||t.logoImageMobileURL,brandImage:c,facebookImage:b,twitterImage:x},d)},C=(e,t,r,n)=>{const o=((e,t)=>null!==e&&void 0!==e&&e.variantType?e:t)(e,t),a=r.includes(null===o||void 0===o?void 0:o.variantType);if(a||console.warn("Unsupported layout option detected",o),"cropImage"===o.variantType){const[e,r]=o.aspectRatio.split("/")||["1","1"],s=Number.parseInt(e,10),l=Number.parseInt(r,10);return a?(0,i.A)((0,i.A)({},o),{},{aspectWidth:s,aspectHeight:l,variantPrefix:t.variantPrefix}):n}return a?o:n},I=(e,t,r,n)=>{const i="undefined"===typeof t,o=r.includes(t),a="undefined"!==typeof n&&i||o;return[a,a?{[e]:t||n}:{}]},M=(e,t,r)=>{const n="boolean"==typeof t,i="undefined"!==typeof r&&"undefined"===typeof t||n;return[i,n?{[e]:t}:i?{[e]:r}:{}]}
2,k=e=>{const t="string"===typeof e;return[t,t?{label:e}:{}]},O=(e,t)=>[t.indexOf(e)===t.lastIndexOf(e),{key:e}],R=e=>e.reduce(((e,t)=>{const{id:r,subcategories:n}=t;return Array.isArray(n)&&n.length>0?[...e,r,...R(n)]:[...e,r]}),[]),L=e=>"string"===typeof e,D=e=>L(e.option)&&L(e.label),N=(e,t)=>{const r="undefined"===typeof e,n=Array.isArray(e),i=!!n&&e.filter(D).length===e.length,o=["enum","multi-enum"].includes(t),a=o&&!r&&e.length>0;return[!o||a&&i,o&&n?{enumOptions:e}:o?{enumOptions:[]}:{}]},F=["SelectSingleFilter","SelectMultipleFilter"],z=(e,t)=>{const r=["enum","multi-enum"].includes(t),n="undefined"===typeof searchMode,i=F.includes(e),o=r&&(i||n);return[!r||o,o?{filterType:e||"SelectMultipleFilter"}:{}]},j=["has_all","has_any"],B=(e,t)=>{if("undefined"===typeof e)return[!0,{}];const[r,n]=M("indexForSearch",e.indexForSearch,!1),[o,a]=k(e.label),[s,l]=z(e.filterType,t),[c,u]=((e,t)=>{const r="multi-enum"===t,n="undefined"===typeof e,i=j.includes(e),o=r&&(n||i);return[!r||o,o?{searchMode:e||"has_all"}:{}]})(e.searchMode,t),[d,h]=I("group",e.group,["primary","secondary"],"primary");return[r&&o&&s&&c&&d,{filterConfig:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},n),a),l),u),h)}]},U=e=>{const t="undefined"===typeof e||"string"===typeof e;return[t,t?{placeholderMessage:e}:{}]},V=e=>{const t="undefined"===typeof e||"string"===typeof e;return[t,t?{requiredMessage:e}:{}]},q=(e,t,r)=>{const n=e.map((e=>e.key)),o=["public","private"],a=["enum","multi-enum","text","long","boolean"];return e.reduce(((e,s)=>{const l=s.schemaType,c=Object.entries(s).reduce(((e,c)=>{const[u,d]=c,[h,p]="key"===u?O(d,n):"scope"===u?I("scope",d,o,"public"):"numberConfig"===u?(e=>{const{minimum:t,maximum:r}=e,n={minimum:t,maximum:r,step:1};return Number.isInteger(t)&&Number.isInteger(r)?t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER||r>Number.MAX_SAFE_INTEGER||r<=t?[!1,n]:[!0,n]:[!1,n]})(d):"includeForListingTypes"===u?((e,t)=>{const r=null==e,n=Array.isArray(e)?e.filter((e=>t.includes(e))):[],i=n.length>0;return[i||r,i?{listingTypeConfig:{limitToListingTypeIds:!0,listingTypeIds:n}}:r?{listingTypeConfig:{limitToListingTypeIds:!1}}:{}]})(d,t):"listingTypeConfig"===u?((e,t)=>{const{limitToListingTypeIds:r,listingTypeIds:n}=e||{};if(!t)return[!0,{listingTypeConfig:{limitToListingTypeIds:!1}}];const i=Array.isArray(n)?n.filter((e=>null===t||void 0===t?void 0:t.includes(e))):[],o=i.length>0;return[o||!r,o?{listingTypeConfig:{limitToListingTypeIds:r,listingTypeIds:i}}:{listingTypeConfig:{limitToListingTypeIds:!1}}]})(d,t):"categoryConfig"===u?((e,t)=>{const{limitToCategoryIds:r,categoryIds:n}=e||{};if(!t)return[!0,{categoryConfig:{limitToCategoryIds:!1}}];const i=R(t),o=Array.isArray(n)?n.filter((e=>null===i||void 0===i?void 0:i.includes(e))):[],a=o.length>0;return[a||!r,a?{categoryConfig:{limitToCategoryIds:r,categoryIds:o}}:{categoryConfig:{limitToCategoryIds:!1}}]})(d,r):"schemaType"===u?I("schemaType",d,a):"enumOptions"===u?N(d,l):"filterConfig"===u?B(d,l):"showConfig"===u?(e=>{if("undefined"===typeof e)return[!0,{}];const[t,r]=k(e.label),[n,o]=M("isDetail",e.isDetail,!0),[a,s]=M("unselectedOptions",e.unselectedOptions,!0);return[t&&n&&a,{showConfig:(0,i.A)((0,i.A)((0,i.A)({},r),o),s)}]})(d):"saveConfig"===u?(e=>{if("undefined"===typeof e)return[!0,{}];const[t,r]=k(e.label),[n,o]=U(e.placeholderMessage),[a,s]=M("isRequired",e.isRequired,!1),[l,c]=V(e.requiredMessage);return[t&&n&&a&&l,{saveConfig:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},r),o),s),c)}]})(d):[!0,{[u]:d}],f=!(!1===e.isValid||!1===h);return!1===h&&console.warn("Unsupported listing extended data configurations detected (".concat(u,") in"),s),{config:(0,i.A)((0,i.A)({},e.config),p),isValid:f}}),{config:{},isValid:!0});return c.isValid?[...e,c.config]:e}),[])},H=e=>e.filter((e=>{const{userType:t,label:r}=e;return t&&r})),G=(e,t)=>{const r=e.map((e=>e.key)),n=["public","private","protected","metadata"],o=["enum","multi-enum","text","long","boolean"];return e.reduce(((e,a)=>{const s=a.schemaType,l=Object.entries(a).reduce(((e,l)=>{const[c,u]=l,[d,h]="key"===c?O(u,r):"label"===c?k(u):"scope"===c?I("scope",u,n,"public"):"schemaType"===c?I("schemaType",u,o):"enumOptions"===c?N(u,s):"showConfig"===c?(e=>{if("undefined"===typeof e)return[!0,{}];const[t,r]=k(e.label),[n,o]=M("displayInProfile",e.displayInProfile,!0),[a,s]=M("unselectedOptions",e.unselectedOptions,!0);return[t&&n&&a,{showConfig:(0,i.A)((0,i.A)((0,i.A)({},r),o),s)}]})(u):"userTypeConfig"===c?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{limitToUserTypeIds:r,userTypeIds:n}=e;if(!t)return[!0,{userTypeConfig:{limitToUserTypeIds:!1}}];const i=Array.isArray(n)?n.filter((e=>null===t||void 0===t?void 0:t.includes(e))):[],o=i.length>0;return[o||!r,o?{userTypeConfig:{limitToUserTypeIds:r,userTypeIds:i}}:{userTypeConfig:{limitToUserTypeIds:!1}}]}(u,t):"saveConfig"===c?(e=>{if("undefined"===typeof e)return[!0,{}];const[t,r]=k(e.label),[n,o]=U(e.placeholderMessage),[a,s]=M("isRequired",e.isRequired,!0),[l,c]=M("displayInSignUp",e.displayInSignUp,!0),[u,d]=V(e.requiredMessage);return[t&&n&&a&&l&&u,{saveConfig:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},r),o),s),c),d)}]})(u):[!0,u],p=!(!1===e.isValid||!1===d);return!1===d&&console.warn("Unsupported user extended data configurations detected (".concat(c,") in"),a),{config:(0,i.A)((0,i.A)({},e.config),h),isValid:p}}),{config:{},isValid:!0});return l.isValid?[...e,l.config]:e}),[])},W=e=>{const t=(0,a.ot)();return e.reduce(((e,r)=>
2{const{listingType:o,label:a,transactionType:s}=r,u=(0,n.A)(r,l),{process:d,alias:h,unitType:p}=s,f=(0,n.A)(s,c),m=t.find((e=>e.name===d)),g=t.find((e=>e.alias===h)),_=t.find((e=>e.unitTypes.includes(p)));return m&&g&&_?[...e,(0,i.A)({listingType:o,label:a,transactionType:(0,i.A)({process:d,alias:h,unitType:p},f)},u)]:(console.warn("Unsupported listing type configurations detected",r),e)}),[])},Y=e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.defaultListingFields)||void 0===t?void 0:t.price)},Z=e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.defaultListingFields)||void 0===t?void 0:t.location)},K=e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.defaultListingFields)||void 0===t?void 0:t.pickup)},X=e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.defaultListingFields)||void 0===t?void 0:t.shipping)},J=e=>{var t;return!1!==(null===e||void 0===e||null===(t=e.defaultListingFields)||void 0===t?void 0:t.payoutDetails)},Q=(e,t,r)=>{const n=[...e,...t];return[...new Map(n.map((e=>[e[r],e]))).values()]},$=e=>e&&!1,ee=(e,t,r)=>{var o,a;const s=(e=>(null===e||void 0===e?void 0:e.map((e=>{const{id:t,label:r,transactionProcess:o,unitType:a}=e,s=(0,n.A)(e,u);return o?(0,i.A)({listingType:t,label:r,transactionType:{process:o.name,alias:o.alias,unitType:a}},s):null})))||[])(null===(o=e.listingTypes)||void 0===o?void 0:o.listingTypes),l=(e=>(null===e||void 0===e?void 0:e.map((e=>{const{key:t,scope:r,schemaType:o,enumOptions:a,label:s,filterConfig:l={},showConfig:c={},saveConfig:u={},numberConfig:p={},categoryConfig:f={}}=e,m=(0,n.A)(e,d),g=s||t,_=["enum","multi-enum"].includes(o)?{enumOptions:a}:{},y="long"===o?{numberConfig:p}:{},{required:v}=u,b=(0,n.A)(u,h);return t?(0,i.A)((0,i.A)((0,i.A)({key:t,scope:r,schemaType:o},_),y),{},{filterConfig:(0,i.A)((0,i.A)({},l),{},{label:l.label||g}),showConfig:(0,i.A)((0,i.A)({},c),{},{label:c.label||g}),saveConfig:(0,i.A)((0,i.A)({},b),{},{isRequired:v,label:u.label||g}),categoryConfig:f},m):null})))||[])(null===(a=e.listingFields)||void 0===a?void 0:a.listingFields),c=t.listing||{},{listingTypes:p,listingFields:f}=c,m=(0,n.A)(c,g),_=$(!1),y=_?Q(s,p,"listingType"):s,v=_?Q(l,f,"key"):l,b=y.map((e=>"".concat(e.listingType)));return(0,i.A)((0,i.A)({},m),{},{listingFields:q(v,b,r),listingTypes:W(y),enforceValidListingType:t.listing.enforceValidListingType})},te=(e,t)=>{var r,o;const a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((e=>{const{id:t}=e,r=(0,n.A)(e,p);return(0,i.A)({userType:t},r)}))}(null===e||void 0===e||null===(r=e.userTypes)||void 0===r?void 0:r.userTypes),s=(e=>(null===e||void 0===e?void 0:e.map((e=>{const{key:t,scope:r,schemaType:o,enumOptions:a,label:s,showConfig:l={},saveConfig:c={},userTypeConfig:u={}}=e,d=(0,n.A)(e,f),h=s||t,p=["enum","multi-enum"].includes(o)?{enumOptions:a}:{},{required:g}=c,_=(0,n.A)(c,m);return t?(0,i.A)((0,i.A)({key:t,scope:r,schemaType:o},p),{},{showConfig:(0,i.A)((0,i.A)({},l),{},{label:l.label||h}),saveConfig:(0,i.A)((0,i.A)({},_),{},{isRequired:g,label:c.label||h}),userTypeConfig:u},d):null})))||[])(null===e||void 0===e||null===(o=e.userFields)||void 0===o?void 0:o.userFields),{userFields:l,userTypes:c}=t.user,u=$(!1),d=u?Q(a,c,"userType"):a,h=u?Q(s,l,"key"):s,g=d.map((e=>"".concat(e.userType)));return{userTypes:H(d),userFields:G(h,g)}},re=(e,t)=>e.map((e=>{const r=e.schemaType;return"category"===r?((e,t)=>{const{enabled:r=!0}=e;if(!r)return null;const{key:n,scope:i,categoryLevelKeys:o}=t;return{key:n,schemaType:"category",scope:i,isNestedEnum:!0,nestedParams:o}})(e,t):"dates"===r?(e=>{const{enabled:t=!0,label:r="Dates",dateRangeMode:n="day",availability:i="time-full"}=e,o="string"===typeof r,a=["day","night"].includes(n),s=["time-full","time-partial"].includes(i);return t&&o&&a&&s?{key:"dates",schemaType:"dates",label:r,availability:i,dateRangeMode:n}:null})(e):"price"===r?(e=>{const{enabled:t=!0,label:r="Price",min:n=0,max:i=1e3,step:o=5}=e;if(!t||"string"!==typeof r||"number"!==typeof n||"number"!==typeof i||"number"!==typeof o)return null;const a=i>n;return a||console.error("Price filter: min value (".concat(n,") needs to be smaller than max (").concat(i,")")),a?{key:"price",schemaType:"price",label:r,min:n,max:i,step:o}:null})(e):"keywords"===r?(e=>{const{enabled:t=!0}=e;return t?{key:"keywords",schemaType:"keywords"}:null})(e):e}
2)).filter(Boolean),ne=(e,t,r)=>{var o;const a=(null!==e&&void 0!==e&&e.mainSearch?(0,i.A)({sortConfig:t.sortConfig},e):t)||{},{mainSearch:s,categoryFilter:l,dateRangeFilter:c,priceFilter:u,keywordsFilter:d,sortConfig:h}=a,p=(0,n.A)(a,_),f=["location","keywords"].includes(null===s||void 0===s?void 0:s.searchType)?null===s||void 0===s?void 0:s.searchType:"keywords",m=[...l&&(null===(o=r.categories)||void 0===o?void 0:o.length)>0?[l]:[],c,u,...!0===(null===d||void 0===d?void 0:d.enabled)?[{key:"keywords",schemaType:"keywords"}]:t.keywordsFilter?[t.keywordsFilter]:[]];return(0,i.A)({mainSearch:{searchType:f},defaultFilters:re(m,r),sortConfig:(g=h,{active:"boolean"!==typeof g.active||g.active,queryParamName:g.queryParamName||"sort",relevanceKey:g.relevanceKey||"relevance",relevanceFilter:g.relevanceFilter||"keywords",conflictingFilters:g.conflictingFilters||[],options:(g.options||[]).filter((e=>!!e.key&&!(!e.label&&!e.labelTranslationKey)))})},p);var g},ie=(e,t)=>{const{mapProvider:r,mapboxAccessToken:o,googleMapsAPIKey:a}=t,s=(0,n.A)(t,y),l=(null===e||void 0===e?void 0:e.provider)||r,c=(null===e||void 0===e?void 0:e.mapboxAccessToken)||o,u=(null===e||void 0===e?void 0:e.googleMapsApiKey)||a;return("googleMaps"===l?!!u:!!c)||console.error("The access tokens are not in place for the selected map provider (".concat(l,")")),(0,i.A)((0,i.A)({},s),{},{mapProvider:l,mapboxAccessToken:c,googleMapsAPIKey:u})},oe=e=>{var t;const{branding:r,listingTypes:n,listingFields:i,transactionSize:o}=e;var a;return a={branding:r,listingTypes:n,listingFields:i,transactionSize:o},Object.entries(a).map((e=>{var t;const[r,n={}]=e||[];0===(null===(t=Object.keys(n))||void 0===t?void 0:t.length)&&console.error("Mandatory hosted asset for ".concat(r,' is missing.\n      Check that "appCdnAssets" property has valid paths in src/config/configDefault.js file,\n      and that the marketplace has added content in Console'))})),(null===r||void 0===r?void 0:r.logo)&&(null===n||void 0===n||null===(t=n.listingTypes)||void 0===t?void 0:t.length)>0&&(null===i||void 0===i?void 0:i.listingFields)&&(null===o||void 0===o?void 0:o.listingMinimumPrice)&&!(e=>{const t=["listingType","transactionProcessAlias","unitType","location","pickupEnabled","shippingEnabled","shippingPriceInSubunitsOneItem","shippingPriceInSubunitsAdditionalItems","categoryLevel1","categoryLevel2","categoryLevel3"];let r=!1;return e.forEach((e=>{t.includes(e.key)&&(r=!0,console.error('The id of a listing field ("'.concat(e.key,'") clashes with the built-in keys that this app uses in public data.')))})),r})(null===i||void 0===i?void 0:i.listingFields)},ae=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=n.marketplaceRootURL,a="string"===typeof o?o.replace(/\/$/,""):"",s=(e=>{const{listingMinimumPrice:t}=e||{};return"subunit"===(null===t||void 0===t?void 0:t.type)?t.amount:0})(r.transactionSize)||n.listingMinimumPriceSubUnits,l=(e=>{const t=e=>e&&Array.isArray(e)?e.map((e=>{let{name:r,id:n,subcategories:i}=e;return{name:r,id:n,subcategories:t(i)}})):[];return(r=e,r&&r.categories&&Array.isArray(r.categories)?{categories:r.categories.map((e=>{let{name:r,id:n,subcategories:i}=e;return{name:r,id:n,subcategories:t(i)}}))}:{}).categories;var r})(r.categories),c=x(l);return(0,i.A)((0,i.A)({},n),{},{marketplaceRootURL:a,listingMinimumPriceSubUnits:s,currency:w(null===(e=r.localization)||void 0===e?void 0:e.currency,n.currency),stripe:A(n.stripe),localization:(h=r.localization,p=n.localization,{locale:(null===h||void 0===h?void 0:h.locale)||p.locale||"en",firstDayOfWeek:((null===h||void 0===h?void 0:h.firstDayOfWeek)||p.firstDayOfWeek||1)%7}),analytics:S(r.analytics,n.analytics),branding:P(r.branding,n.branding),layout:(u=r.layout,d=n.layout,{searchPage:C(null===u||void 0===u?void 0:u.searchPage,null===d||void 0===d?void 0:d.searchPage,["map","grid"],{variantType:"grid"}),listingPage:C(null===u||void 0===u?void 0:u.listingPage,null===d||void 0===d?void 0:d.listingPage,["coverPhoto","carousel"],{variantType:"carousel"}),listingImage:C(null===u||void 0===u?void 0:u.listingImage,null===d||void 0===d?void 0:d.listingImage,["cropImage"],{variantType:"cropImage",aspectWidth:1,aspectHeight:1,variantPrefix:"listing-card"})}),user:te(r,n),categoryConfiguration:c,listing:ee(r,n,l),search:ne(r.search,n.search,c),maps:ie(r.maps,n.maps),googleSearchConsole:null!==(t=r.googleSearchConsole)&&void 0!==t&&t.googleSiteVerification?r.googleSearchConsole:n.googleSearchConsole,topbar:r.topbar,footer
2:r.footer,hasMandatoryConfigurations:oe(r)});var u,d,h,p}},61254:(e,t,r)=>{"use strict";r.d(t,{Ft:()=>g,Gj:()=>_,H5:()=>w,Lz:()=>m,eI:()=>T,eJ:()=>x,ot:()=>S,up:()=>E,zz:()=>y});var n=r(62117),i=r.n(n),o=r(56956),a=r.n(o),s=r(77217),l=r(73682),c=r(55346);const{subUnitDivisors:u,getCurrencyFormatting:d}=l.A,{Money:h}=c.gK,p=Number.MIN_SAFE_INTEGER||-1*(2**53-1),f=Number.MAX_SAFE_INTEGER||2**53-1,m=e=>{if(!(e instanceof s.A))throw new Error("Value must be a Decimal");return e.gte(p)&&e.lte(f)},g=e=>{if(!i()(u,e))throw new Error("No minor unit divisor defined for currency: ".concat(e," in currencySettings.js"));return u[e]},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!==typeof e)throw new TypeError("Parameter must be a string");return t?e.replace(/\./g,","):e.replace(/,/g,".")},y=e=>_(e,!1),v=e=>{const t=y(e);return new s.A(t)},b=e=>{try{const t=new s.A(e);if(t.isNegative())throw new Error("Parameter (".concat(e,") must be a positive number."));return t}catch(t){throw new Error("Parameter (".concat(e,") must present a number."),t)}},x=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=b(t),i=a()(e,r?",":"."),o=v(i);if(o.isNegative())throw new Error("Parameter (".concat(e,") must be a positive number."));const l=o.times(n);if(!m(l))throw new Error("Cannot represent money minor unit value ".concat(l.toString()," safely as a number"));if(l.isInteger()){const t=o.toFixed(2).length>=e.length?e:o.toFixed(2);return _(t,r)}return function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=new s.A(e);return _(r.toString(),t)}(l.truncated().dividedBy(n),r)},w=function(e,t){const r=b(t);if("string"!==typeof e&&"number"!==typeof e)throw new TypeError("Value must be either number or string");const n=("string"===typeof e?v(e):new s.A(e)).times(r);if(m(n)){if(n.isInteger())return n.toNumber();throw new Error("value must divisible by ".concat(t))}throw new Error("Cannot represent money minor unit value ".concat(n.toString()," safely as a number"))},A=e=>"number"===typeof e&&!isNaN(e),S=e=>{if(!(e instanceof h))throw new Error("Value must be a Money type");const t=b(g(e.currency));let r;if((e=>"object"===typeof e&&A(e.low_)&&A(e.high_))(e.amount)?(console.warn("goog.math.Long value in money amount:",e.amount,e.amount.toString()),r=new s.A(e.amount.toString())):r=new s.A(e.amount),!m(r))throw new Error("Cannot represent money minor unit value ".concat(r.toString()," safely as a number"));return r.dividedBy(t).toNumber()},E=(e,t)=>{if(!(t instanceof h))throw new Error("Value must be a Money type");const r=S(t),n=d(t.currency,{});return e.formatNumber(r,n)},T=(e,t,r)=>{const n=new s.A(r).toNumber(),i={style:"currency",currency:t,currencyDisplay:"symbol",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:0};return e.formatNumber(n,i)}},41233:(e,t,r)=>{"use strict";r.d(t,{$r:()=>g,EK:()=>A,RO:()=>m,Uf:()=>h,Z9:()=>_,_l:()=>w,e0:()=>S,fQ:()=>u,iO:()=>x,nQ:()=>d,vm:()=>f,vs:()=>v,wc:()=>b,yw:()=>y});var n=r(80045),i=r(89379),o=(r(54052),r(12759)),a=r.n(o),s=r(30170);const l=["relationships"],c=(e,t)=>{const{id:r,type:n}=e;if(t.id.uuid!==r.uuid||t.type!==n)throw new Error("Cannot merge resource objects with different ids or types");const o=t.attributes||e.attributes,a=e.attributes||{},s=t.attributes||{},l=o?{attributes:(0,i.A)((0,i.A)({},a),s)}:null,c=(u=e.relationships,d=t.relationships,u||d?(0,i.A)((0,i.A)({},u),d):null);var u,d;const h=c?{relationships:c}:null;return(0,i.A)((0,i.A)({id:r,type:n},l),h)},u=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:n,included:o=[]}=t;return(Array.isArray(n)?n:[n]).concat(o).reduce(((e,t)=>{const{id:n,type:o}=t,a=(0,s.B0)(t,r);e[o]=e[o]||{};const l=e[o][n.uuid];return e[o][n.uuid]=l?c((0,i.A)({},l),a):a,e}),e)},d=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.map((t=>{const{id:i,type:o}=t;if(!(e[o]&&i&&e[o][i.uuid])){if(r)throw new Error('Entity with type "'.concat(o,'" and id "').concat(i?i.uuid:i,'" not found'));return null}const s=e[o][i.uuid],{relationships:c}=s,u=(0,n.A)(s,l);return c?a()(c,((t,r,n)=>{const i=Array.isArray(r.data),o=i&&0===r.data.length;if(!r.data||o)t[n]=i?[]:null;else{const o=i?r.data:[r.data],a=d(e,o,!0);t[n]=i?a:a[0]}return t}),u):u})).filter((e=>!!e))},h=e=>{const t=e.data,r=t.data,n=Array.isArray(r)?r:[r];if(!r||0===n.length)return[];const i=u({},t);return d(i,n)},p=(e,t)=>{let r;if(null===e||"object"!==typeof e)return e;if(e instanceof Array)return r=e.map((e=>p(e,t))),r;if(e instanceof Object)return r={},Object.entries(e).forEach((e=>{var n,i,o;let[a,s]=e;const l="object"==typeof s&&"imageAsset"===(null===s||void 0===s||null===(n=s._ref)||void 0===n?void 0:n.type)&&(null===s||void 0===s||null===(i=s._ref)||void 0===i?void 0:i.id),c="object"==typeof s&&"image"===(null===s||void 0===s||null===(o=s._ref)||void 0===o?void 0:o.resolver);if(l){const e=t.find((e=>{var t;return e.id===(null===(t=s._ref)||void 0===t?void 0:t.id)}));r[a]=e}else c||(r[a]=p(s,t))})),r;throw new Error("Unable to traverse data! It's not JSON.")},f=e=>{const{data:t,included:r}=e||{};return p(t,r)},m=function(e){const t={id:null,type:"transaction",attributes:{},booking:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,listing:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,provider:arguments.length>3&&void 0!==arguments[3]?arguments[3]:null};return(0,i.A)((0,i.A)({},t),e)},g=e=>(0,i.A)((0,i.A)({},{id:null,type:"listing",attributes:{publicData:{}},images:[]}),e),_=e=>(0,i.A)((0,i.A)({},{id:null,type:"ownListing",attributes:{publicData:{}},images:[]}),e),y=e=>(0,i.A)((0,i.A)({},{id:null,type:"user",attributes:{profile:{}}}),e),v=e=>(0,i.A)((0,i.A)({},{id:null,type:"currentUser",attributes:{profile:{}},profileImage:{}}),e),b=e=>(0,i.A)((0,i.A)({},{id:null,type:"stripeCustomer",attributes:{}}),e),x=e=>{const t=(0,i.A)((0,i.A)({},{id:null,type:"stripePaymentMethod",attributes:{type:"stripe-payment-method/card",card:{}}}),e);if("stripe-payment-method/card"!==t.attributes.type)throw new Error("'ensurePaymentMethodCard' got payment method with wrong type.\n      'stripe-payment-method/card' was expected, received ".concat(t.attributes.type));return t},w=(e,t)=>{var r,n;return(null===e||void 0===e||null===(r=e.attributes)||void 0===r||null===(n=r.profile)||void 0===n?void 0:n.displayName)?e.attributes.profile.displayName:t||""},A=(e,t)=>
2e&&e.attributes&&e.attributes.profile&&e.attributes.profile.abbreviatedName?e.attributes.profile.abbreviatedName:t||"",S=e=>{if(!/^line-item\/.+/.test(e))throw new Error("Invalid line item code: ".concat(e));const t=e.replace(/^line-item\//,"").replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}},2376:(e,t,r)=>{"use strict";r.d(t,{B:()=>z,Cf:()=>j,GN:()=>G,HG:()=>s,Kw:()=>d,M9:()=>p,Mn:()=>L,OJ:()=>S,S7:()=>g,SJ:()=>B,SW:()=>a,VK:()=>V,Vm:()=>M,YM:()=>A,YP:()=>w,_O:()=>D,bD:()=>h,d3:()=>H,fk:()=>N,h$:()=>m,iG:()=>U,iN:()=>P,ik:()=>I,iv:()=>c,jB:()=>O,kU:()=>_,mK:()=>q,oE:()=>y,pv:()=>T,ro:()=>f,tY:()=>x,uA:()=>C,uI:()=>b,uz:()=>v,zi:()=>F});var n=r(89379),i=r(75328),o=r.n(i);const a="startDate",s="endDate",l=()=>{if(!Intl||"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat)return!1;const e=new Intl.DateTimeFormat;return"undefined"!==typeof e&&"undefined"!==typeof e.resolvedOptions&&(!e.resolvedOptions().timeZone&&u("Europe/Helsinki")?(console.error("Time zone was undefined (new Intl.DateTimeFormat().resolvedOptions().timeZone).\n    This might cause problems for date and duration calculation on this browser."),!0):!!e.resolvedOptions().timeZone)},c=()=>{if("undefined"===typeof window)throw new Error("Utility function: getDefaultTimeZoneOnBrowser() should be called on client-side only.");if(l()){const e=(new Intl.DateTimeFormat).resolvedOptions().timeZone;if(e)return e}return console.error("Utility function: getDefaultTimeZoneOnBrowser() was not able to detect time zone."),"Etc/UTC"},u=e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}},d=e=>{const t=o().tz.names();return e?t.filter((t=>e.test(t))):t},h=(e,t)=>o()(e).isAfter(o()(t)),p=(e,t)=>o()(e).isSameOrAfter(o()(t)),f=(e,t,r)=>{const n=r?o()(e).tz(r):o()(e),i=r?o()(t).tz(r):o()(t);return n.isSame(i,"day")},m=(e,t,r,n,i)=>{const a=i?o()(e).tz(i):o()(e),s=new Date(r.getTime()-1);return a.isBetween(t,s,n,"[]")},g=(e,t,r,n)=>{const i=o().tz(e.toArray().slice(0,3),n),a=o().tz(new Date(r.getTime()-1),n);return i.isBetween(t,a,"day","[]")},_=e=>new Date(Number.parseInt(e,10)),y=(e,t)=>o().tz(o()(e).format("YYYY-MM-DD HH:mm:ss"),t).toDate(),v=(e,t)=>
2o()(o()(e).tz(t).format("YYYY-MM-DD HH:mm:ss")).toDate(),b=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"days";const a=(r?o()(e).clone().tz(r):o()(e).clone()).startOf(t);return(0===n?a:["day","week","month"].includes(t)?a.add(n,i).add(10,"hours").startOf(t):a.add(n,i)).toDate()},x=(e,t,r,n)=>(n?o()(e).clone().tz(n):o()(e).clone()).add(t,r).toDate(),w=(e,t,r,n)=>(n?o()(e).clone().tz(n):o()(e).clone()).subtract(t,r).toDate(),A=(e,t)=>{const r=o()(t).diff(e,"days");if(r<0)throw new Error("End date cannot be before start date");return r},S=(e,t)=>o()(t).diff(e,"minutes"),E=e=>{if(e){if(!l())throw new Error("Your browser doesn't support time zones.");if(!u(e))throw new Error("Given time zone key (".concat(e,") is not valid."));return{timeZone:e}}return{}},T=function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!(t&&e instanceof Date&&"string"===typeof r))throw new Error("Invalid params for formatDate: (".concat(e,", ").concat(t,", ").concat(r,")"));const{timeZone:a}=i,s=E(a),l=t.now?o()(t.now()):o()(),c=s.timeZone?l.tz(a):l;if(c.isSame(e,"day")){const i=t.formatDate(e,(0,n.A)({hour:"numeric",minute:"numeric"},s));return"".concat(r,", ").concat(i)}return c.isSame(e,"week")?t.formatDate(e,(0,n.A)({weekday:"short",hour:"numeric",minute:"numeric"},s)):c.isSame(e,"year")?t.formatDate(e,(0,n.A)({month:"short",day:"numeric",hour:"numeric",minute:"numeric"},s)):t.formatDate(e,(0,n.A)({year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"},s))},P=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{timeZone:i}=r,a=E(i),s=t.now?o()(t.now()):o()(),l=(a.timeZone?s.tz(i):s).isSame(e,"year")?{}:{year:"numeric"};return{date:t.formatDate(e,(0,n.A)((0,n.A)({month:"short",day:"numeric"},l),a)),time:t.formatDate(e,(0,n.A)({hour:"numeric",minute:"numeric"},a)),dateAndTime:t.formatDate(e,(0,n.A)((0,n.A)({},l),{},{month:"short",day:"numeric",hour:"numeric",minute:"numeric"},a))}},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?o().tz(e,t).toDate():o()(e,"YYYY-MM-DD").toDate()},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?o().tz(e,t).toDate():o()(e,"YYYY-MM-DD HH:mm").toDate()},M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?o()(e).tz(t).format("YYYY-MM-DD"):o()(e).format("YYYY-MM-DD")},k=e=>{const{cumulatedResults:t,currentBoundary:r,startMoment:i,endMoment:a,nextBoundaryFn:s,intl:l,timeZone:c,isStart:u,timeUnit:d="hour",bufferMinutes:h=null}=e;if(o()(r).isBetween(i,a,null,"[]")){var p;const i=null===(p=P(r,l,{timeZone:c}))||void 0===p?void 0:p.time,a=!1,f=t&&t.length>0&&t.slice(-1)[0].timeOfDay===i?[]:[{timestamp:r.valueOf(),timeOfDay:i}];return k((0,n.A)((0,n.A)({},e),{},{cumulatedResults:[...t,...f],currentBoundary:h?o()(s(r,d,c,a,u,h)):o()(s(r,d,c))}))}return t};o().fn.startOfDuration=function(e){const t=60*this.hours()+this.minutes(),r=Math.ceil(t/e)*e;return this.clone().hours(Math.floor(r/60)).minutes(r%60).seconds(0).milliseconds(0)};const O=(e,t,r)=>o()(e).clone().tz(r).add(1,t).startOf(t).toDate(),R=(e,t,r,n,i,a)=>{const s=i?n?0:a:60;return o()(e).clone().tz(r).add(s,t).startOfDuration(a,t).toDate()},L=function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(!o().tz.zone(r))throw new Error('Time zones are not loaded into moment-timezone. "getSharpHours" function uses time zones.');const s=new Date(e.getTime()-1);return k({currentBoundary:a?R(e,"minute",r,!0,i,a):O(s,"hour",r),startMoment:o()(e),endMoment:o()(t),nextBoundaryFn:a?R:O,cumulatedResults:[],intl:n,timeZone:r,isStart:i,timeUnit:a?"minute":"hour",bufferMinutes:a})},D=function(e,t,r,n){const i=L(e,t,r,n,!0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:null);return i.length?i:[]},N=(e,t,r,n)=>L(e,t,r,n),F=(e,t)=>()=>o()(o()(e).tz(t).format("YYYY-MM-DD HH:mm:ss")),z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?o()(e).tz(t).format("YYYY-MM"):o()(e).format("YYYY-MM")},j=(e,t)=>o().tz(e,t).add(1,"days").startOf("day").toDate(),B=(e,t)=>t?o()(e).tz(t).day():o()(e).day(),U=(e,t,r)=>{let n=(t?e.clone().tz(t):e.clone()).startOf("day");const i=n.day(),o=0===i&&r>0?-7+r:r,a=n.date()-i+o;return n.clone().date(a)},V=(e,t,r)=>U(e,t,r).add(6,"days").startOf("day"),q=(e,t,r)=>U(o()(e).tz(t),t,r).toDate(),H=(e,t)=>t?o()(e).tz(t):o()(e),G=(e,t)=>o()(e).add(t,"minutes").toDate()},16882:(e,t,r)=>{"use strict";r.d(t,{Bg:()=>_,CQ:()=>S,Er:()=>d,FY:()=>T,GP:()=>f,Lg:()=>c,Te:()=>p,Zi:()=>x,ay:()=>w,bs:()=>g,cL:()=>l,e2:()=>h,jy:()=>P,k0:()=>y,k8:()=>a,mK:()=>m,q1:()=>E,q6:()=>s,qi:()=>u,tC:()=>A,wQ:()=>b,zK:()=>v});var n=r(44356);const i=e=>e&&e.apiErrors?e.apiErrors:[],o=(e,t)=>i(e).some((e=>e.code===t)),a=e=>e&&429===e.status,s=e=>o(e,n.y8),l=e=>o(e,n.y8),c=e=>o(e,n.xy),u=e=>o(e,n.wD),d=e=>o(e,n.SD),h=e=>o(e,n.JK),p=e=>o(e,n.Sf),f=e=>o(e,n.qe),m=e=>o(e,n.My),g=e=>o(e,n.WJ),_=e=>o(e,n.dW),y=e=>{const t=_(e),r=i(e).some((e=>{const t=402===e.status&&e.code===n.Uo;let r=!1;try{const t=e.meta.stripeMessage;r=t.startsWith("Amount must be at least")||t.startsWith("Amount must convert to at least")}catch(i){}return t&&r}));return t||r},v=e=>i(e).some((e=>{const t=402===e.status&&e.code===n.Uo;let r=!1;try{const t=e.meta.stripeMessage;r=t.startsWith("Your account cannot currently make charges.")||t.match(/verification.disabled_reason/)}catch(i){}return t&&r})),b=e=>e?i(e).reduce(((e,t)=>{const r=402===t.status&&t.code===n.Uo,i=t&&t.meta&&t.meta.stripeMessage;return[...e,...r&&i?[t.meta.stripeMessage]:[]]}),[]):null,x=e=>e&&409===e.status&&o(e,n.wG),w=e=>e&&409===e.status&&(o(e,n.uk)||o(e,n.vh)),A=e=>e&&403===e.status,S=e=>e&&403===e.status,E=e=>i(e).some((e=>!(!e.meta||!e.meta.stripeMessage))),T=e=>400===(null===e||void 0===e?void 0:e.status)&&(null===e||void 0===e?void 0:e.statusText.startsWith("Error: transition should contain quantity information")),P=e=>{const t=e||{},{name:r,message:n,status:i,statusText:o}=t,a=(e=>e&&e.data&&e.data.errors?e.data.errors:[])(t);return{type:"error",name:r,message:n,status:i,statusText:o,apiErrors:a}}},56903:(e,t,r)=>{"use strict";r.d(t,{I$:()=>_,pD:()=>s,x_:()=>A});var n=r(80045),i=r(2376);const o=["id"],a=["sun","mon","tue","wed","thu","fri","sat"],s=(e,t)=>{var r={};return e.reduce(((e,n)=>{var i=t(n);return null==i||r[i]?e:(r[i]=!0,[...e,n])}),[])},l=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce(((e,t)=>t(e)),e)},c=e=>function*(t){for(let r of t)yield e(r)},u=e=>e.getTime(),d=(e,t,r)=>u(e.attributes.start)<=t&&u(e.attributes.end)<r,h=(e,t,r)=>t<u(e.attributes.start)&&u(e.attributes.end)<r,p=(e,t,r)=>{const n=l(r,((e,t)=>
2function*(r){const n=u(e),i=u(t);let o=n;for(let e of r)if(d(e,o,i))o=u(e.attributes.end);else{if(!h(e,o,i))return void(yield{start:new Date(o),end:new Date(t)});yield{start:new Date(o),end:new Date(e.attributes.start)},o=u(e.attributes.end)}o<i&&(yield{start:new Date(o),end:t})})(e,t));return[...n]},f=function*(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"days",s=(0,i.uI)(e,t,r);const l=n||(()=>!0);for(;l(s);)yield s,s=(0,i.uI)(s,t,r,o,a)},m=(e,t,r)=>[...f(e,"day",r,(e=>(0,i.bD)(t,e)))],g=e=>t=>{let r={};for(let n of t){const[t,i]=e(n);r[t]=i}return r},_=(e,t,r,a)=>{const s=(0,i.uI)(e,"day",a),u=(0,i.uI)(t,"day",a),d=p(s,u,r);return l(m(s,u,a),c(((e,t)=>r=>{const n=e.filter((e=>{const n=(0,i.uI)(r,"day",t),o=(0,i.uI)(r,"day",t,1,"day"),a=[n,o],s=[e.start,e.end],l=e=>new Date(e.getTime()-1),c=(0,i.h$)(n,...s,void 0,t)&&(0,i.h$)(l(o),...s,void 0,t),u=(0,i.h$)(e.start,...a,t),d=(0,i.h$)(l(e.end),...a,t);return c||u||d}));return{id:(0,i.Vm)(r,t),slots:n}})(d,a)),g((e=>{let{id:t}=e;return[t,(0,n.A)(e,o)]})))},y=(e,t)=>{const r=u(e);return t.find((e=>{const t=u(e.attributes.start),n=u(e.attributes.end);return t<=r&&r<n||t>r}))},v=(e,t,r)=>{const n=(0,i.Vm)(e,r);return(0,i.ik)("".concat(n," ").concat(t),r)},b=(e,t,r)=>"00:00"==t?(0,i.uI)(e,"day",r,1,"days"):v(e,t,r),x=(e,t,r)=>{const n=u(e),i=t.find((t=>{const i=u(v(e,t.startTime,r)),o=u(b(e,t.endTime,r));return i<=n&&n<o||i>n}));if(i){return{start:v(e,i.startTime,r),end:b(e,i.endTime,r),seats:i.seats}}return null},w=(e,t,r)=>n=>{const o=e?e.entries.filter((e=>e.dayOfWeek===a[(0,i.SJ)(n,r)])):[],s=(0,i.uI)(n,"day",r),l=(0,i.uI)(n,"day",r,1,"day"),c=((e,t,r)=>{const[n,o]=e;return t.filter((t=>{const a=[t.attributes.start,t.attributes.end],s=e=>new Date(e.getTime()-1),l=(0,i.h$)(n,...a,void 0,r),c=(0,i.h$)(s(o),...a,void 0,r),u=l&&c,d=(0,i.h$)(t.attributes.start,...e,r),h=(0,i.h$)(s(t.attributes.end),...e,r);return u||d||h}))})([s,l],t,r);let d=!1,h=[],p=s;for(;u(p)<u(l);){var f,m;const e=y(p,c),t=[null===e||void 0===e||null===(f=e.attributes)||void 0===f?void 0:f.start,null===e||void 0===e||null===(m=e.attributes)||void 0===m?void 0:m.end],n=!!e&&(0,i.h$)(p,...t,void 0,r),a=x(p,o,r),s=[null===a||void 0===a?void 0:a.start,null===a||void 0===a?void 0:a.end],g=!!a&&(0,i.h$)(p,...s,void 0,r);if(n){const t=u(e.attributes.end)<u(l)?e.attributes.end:l;h.push({start:p,end:t,seats:e.attributes.seats,exception:e}),d=d||!!e.attributes.seats,p=t}else if(g){const t=a.end,r=e&&u(e.attributes.start)<=u(t)?e.attributes.start:t;h.push({start:p,end:r,seats:a.seats,plan:a}),d=d||!!a.seats,p=r}else{const t=e&&(!a||a&&u(e.attributes.start)<=u(a.start)),r=!t&&a,n=t?e.attributes.start:r?a.start:l;if(h.push({start:p,end:n,seats:0}),p=n,u(n)>=u(l))break}}return{id:(0,i.Vm)(n,r),planEntries:o,exceptions:c,ranges:h,hasAvailability:d}},A=(e,t,r,n)=>{const o=null===r||void 0===r?void 0:r.timezone,a=(0,i.uI)(e,"day",o),s=(0,i.uI)(t,"day",o);return l(m(a,s,o),c(w(r,n,o)),g((e=>[e.id,e])))}},5208:(e,t,r)=>{"use strict";r.d(t,{w:()=>n});const n=e=>e?5*Math.ceil(e/5):5},85506:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>nn,z3:()=>an,do:()=>rn,mj:()=>tn});var n=r(89379);var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(an){i={error:an}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e}var l=function(e,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},l(e,t)};var c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function u(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(an){i={error:an}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}var h,p="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,f=r(17254),m=(0,f.V)(),g=["debug","info","warn","error","log","assert"];function _(e){var t=(0,f.V)();if(!("console"in t))return e();var r=t.console,n={};g.forEach((function(e){var i=r[e]&&r[e].__sentry_original__;e in t.console&&i&&(n[e]=r[e],r[e]=i)}));try{return e()}finally{Object.keys(n).forEach((function(e){r[e]=n[e]}))}}function y(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return p?g.forEach((function(r){t[r]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e&&_((function(){var e;(e=m.console)[r].apply(e,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}(["Sentry Logger ["+r+"]:"],t))}))}})):g.forEach((function(e){t[e]=function(){}})),t}h=p?(0,f.B)("logger",y):y();var v=Object.prototype.toString;function b(e){switch(v.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return I(e,Error)}}function x(e,t){return v.call(e)==="[object "+t+"]"}function w(e){return x(e,"ErrorEvent")}function A(e){return x(e,"DOMError")}function S(e){return x(e,"String")}function E(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function T(e){return x(e,"Object")}function P(e){return"undefined"!==typeof Event&&I(e,Event)}function C(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function I(e,t){try{return e instanceof t}catch(r){return!1}}function M(e,t){try{for(var r=e,n=[],i=0,o=0,a=void 0;r&&i++<5&&!("html"===(a=k(r,t))||i>1&&o+3*n.length+a.length>=80);)n.push(a),o+=a.length,r=r.parentNode;return n.reverse().join(" > ")}catch(s){return"<unknown>"}}function k(e,t){var r,n,i,o,a,s=e,l=[];if(!s||!s.tagName)return"";l.push(s.tagName.toLowerCase());var c=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){l.push("["+e[0]+'="'+e[1]+'"]')}));else if(s.id&&l.push("#"+s.id),(r=s.className)&&S(r))for(n=r.split(/\s+/),a=0;a<n.length;a++)l.push("."+n[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)i=u[a],(o=s.getAttribute(i))&&l.push("["+i+'="'+o+'"]');return l.join("")}function O(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function R(e,t){if(!Array.isArray(e))return"";for(var r=[],n=0;n<e.length;n++){var i=e[n];try{r.push(String(i))}catch(o){r.push("[value cannot be serialized]")}}return r.join(t)}function L(e,t){return!!S(e)&&(x(t,"RegExp")?t.test(e):"string"===typeof t&&-1!==e.indexOf(t))}function D(e,t,r){if(t in e){var n=e[t],i=r(n);if("function"===typeof i)try{F(i,n)}catch(o){}e[t]=i}}function N(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}function F(e,t){var r=t.prototype||{};e.prototype=t.prototype=r,N(e,"__sentry_original__",t)}function z(e){return e.__sentry_original__}function j(e){var t=e;if(b(e))t=c({message:e.message,name:e.name,stack:e.stack},U(e));else if(P(e)){var r=e;t=c({type:r.type,target:B(r.target),currentTarget:B(r.currentTarget)},U(r)),"undefined"!==typeof CustomEvent&&I(e,CustomEvent)&&(t.detail=r.detail)}return t}function B(e){try{return t=e,"undefined"!==typeof Element&&I(t,Element)?M(e):Object.prototype.toString.call(e)}catch(r){return"<unknown>"}var t}function U(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function V(e,t){void 0===t&&(t=40);var r=Object.keys(j(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return O(r[0],t);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");
2if(!(i.length>t))return n===r.length?i:O(i,t)}return""}function q(e){var t,r;if(T(e)){var n={};try{for(var i=u(Object.keys(e)),o=i.next();!o.done;o=i.next()){var a=o.value;"undefined"!==typeof e[a]&&(n[a]=q(e[a]))}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}return Array.isArray(e)?e.map(q):e}function H(){var e=(0,f.V)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function G(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+n}}function W(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Y(e){var t=e.message,r=e.event_id;if(t)return t;var n=W(e);return n?n.type&&n.value?n.type+": "+n.value:n.type||n.value||r||"<unknown>":r||"<unknown>"}function Z(e,t,r){var n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function K(e,t){var r=W(e);if(r){var n=r.mechanism;if(r.mechanism=c(c(c({},{type:"generic",handled:!0}),n),t),t&&"data"in t){var i=c(c({},n&&n.data),t.data);r.mechanism.data=i}}}function X(e){if(e&&e.__sentry_captured__)return!0;try{N(e,"__sentry_captured__",!0)}catch(t){}return!1}var J,Q="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],ee=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r();if(n){var i=n.getIntegration(e);if(i){var o=n.getClient(),a=o?o.getOptions():{},l=function(e,t){void 0===e&&(e={});void 0===t&&(t={});return{allowUrls:s(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:s(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:s(e.ignoreErrors||[],t.ignoreErrors||[],$),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return Q&&h.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Y(e)),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},r=t.type,n=void 0===r?"":r,i=t.value,o=void 0===i?"":i;return[""+o,n+": "+o]}catch(a){return Q&&h.error("Cannot extract message for event "+Y(e)),[]}return[]}(e).some((function(e){return t.some((function(t){return L(e,t)}))}))}(e,t.ignoreErrors))return Q&&h.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Y(e)),!0;if(function(e,t){if(!t||!t.length)return!1;var r=re(e);return!!r&&t.some((function(e){return L(r,e)}))}(e,t.denyUrls))return Q&&h.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Y(e)+".\nUrl: "+re(e)),!0;if(!function(e,t){if(!t||!t.length)return!0;var r=re(e);return!r||t.some((function(e){return L(r,e)}))}(e,t.allowUrls))return Q&&h.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Y(e)+".\nUrl: "+re(e)),!0;return!1}(t,l)?null:t}}return t}))},e.id="InboundFilters",e}();function te(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}function re(e){try{if(e.stacktrace)return te(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(r){}return t?te(t):null}catch(n){return Q&&h.error("Cannot extract url for event "+Y(e)),null}}var ne=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){J=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=z(this)||this;return J.apply(r,e)}},e.id="FunctionToString",e}();var ie=function(){return ie=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(an){i={error:an}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function ae(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(oe(arguments[t]));return e}var se=r(81e3),le=r(3129),ce="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function ue(e){return new he((function(t){t(e)}))}function de(e){return new he((function(t,r){r(e)}))}var he=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,r){0===t._state&&(C(r)?r.then(t._resolve,t._reject):(t._state=e,t._value=r,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}return e.prototype.then=function(t,r){var n=this;return new e((function(e,i){n._handlers.push([!1,function(r){if(t)try{e(t(r))}catch(n){i(n)}else e(r)},function(t){if(r)try{e(r(t))}catch(n){i(n)}else i(t)}]),n._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var r=this;return new e((function(e,n){var i,o;return r.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?n(i):e(i)}))}))},e}
2(),pe=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var r=new e;return t&&(r._breadcrumbs=ae(t._breadcrumbs),r._tags=ie({},t._tags),r._extra=ie({},t._extra),r._contexts=ie({},t._contexts),r._user=t._user,r._level=t._level,r._span=t._span,r._session=t._session,r._transactionName=t._transactionName,r._fingerprint=t._fingerprint,r._eventProcessors=ae(t._eventProcessors),r._requestSession=t._requestSession),r},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=ie(ie({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var r;return this._tags=ie(ie({},this._tags),((r={})[e]=t,r)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=ie(ie({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var r;return this._extra=ie(ie({},this._extra),((r={})[e]=t,r)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var r;return null===t?delete this._contexts[e]:this._contexts=ie(ie({},this._contexts),((r={})[e]=t,r)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"===typeof t){var r=t(this);return r instanceof e?r:this}return t instanceof e?(this._tags=ie(ie({},this._tags),t._tags),this._extra=ie(ie({},this._extra),t._extra),this._contexts=ie(ie({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):T(t)&&(this._tags=ie(ie({},this._tags),t.tags),this._extra=ie(ie({},this._extra),t.extra),this._contexts=ie(ie({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var r="number"===typeof t?Math.min(t,100):100;if(r<=0)return this;var n=ie({timestamp:(0,se.lu)()},e);return this._breadcrumbs=ae(this._breadcrumbs,[n]).slice(-r),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=ie(ie({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=ie(ie({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=ie(ie({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=ie(ie({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=ie({trace:this._span.getTraceContext()},e.contexts);var r=this._span.transaction&&this._span.transaction.name;r&&(e.tags=ie({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=ae(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(ae(fe(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=ie(ie({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,r,n){var i=this;return void 0===n&&(n=0),new he((function(o,a){var s=e[n];if(null===t||"function"!==typeof s)o(t);else{var l=s(ie({},t),r);C(l)?l.then((function(t){return i._notifyEventProcessors(e,t,r,n+1).then(o)})).then(null,a):i._notifyEventProcessors(e,l,r,n+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function fe(){return(0,f.B)("globalEventProcessors",(function(){return[]}))}function me(e){fe().push(e)}var ge=function(){function e(e){this.errors=0,this.sid=H(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,se.zf)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,se.zf)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:H()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return q({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),_e=function(){function e(e,t,r){void 0===t&&(t=new pe),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=pe.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var r=this._lastEventId=t&&t.event_id?t.event_id:H(),n=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}n={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,ie(ie({},n),{event_id:r})),r},e.prototype.captureMessage=function(e,t,r){var n=this._lastEventId=r&&r.event_id?r.event_id:H(),i=r;if(!r){var o=void 0;try{throw new Error(e)}catch(a){o=a}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,ie(ie({},i),{event_id:n})),n},e.prototype.captureEvent=function(e,t){var r=t&&t.event_id?t.event_id:H();return"transaction"!==e.type&&(this._lastEventId=r),this._invokeClient("captureEvent",e,ie(ie({},t),{event_id:r})),r},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var r=this.getStackTop(),n=r.scope,i=r.client;if(n&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,l=o.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=(0,se.lu)(),d=ie({timestamp:u},e),h=s?_((function(){return s(d,t)})):d;null!==h&&n.addBreadcrumb(h,c)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var r=this.getScope();r&&r.setTag(e,t)},e.prototype.setExtra=function(e,t){var r=this.getScope();r&&r.setExtra(e,t)},e.prototype.setContext=function(e,t){var r=this.getScope();r&&r.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),r=t.scope,n=t.client;r&&n&&e(r)},e.prototype.run=function(e){var t=ve(this);try{e(this)}finally{ve(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(r){return ce&&h.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();r&&r.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),r=t.scope,n=t.client,i=n&&n.getOptions()||{},o=i.release,a=i.environment,s=((0,f.V)().navigator||{}).userAgent,l=new ge(ie(ie(ie({release:o,environment:a},r&&{user:r.getUser()}),s&&{userAgent:s}),e));if(r){var c=r.getSession&&r.getSession();c&&"ok"===c.status&&c.update({status:"exited"}),this.endSession(),r.setSession(l)}return l},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,r=e.client;if(t){var n=t.getSession&&t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}},e.prototype._invokeClient=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,ae(r,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ye().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e])return n.extensions[e].apply(this,t);ce&&h.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ye(){var e=(0,f.V)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ve(e){var t=ye(),r=we(t);return Ae(t,e),r}function be(){var e=ye();return xe(e)&&!we(e).isOlderThan(4)||Ae(e,new _e),(0,le.wD)()?function(e){try{var t=ye().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return we(e);if(!xe(r)||we(r).isOlderThan(4)){var n=we(e).getStackTop();Ae(r,new _e(n.client,pe.clone(n.scope)))}return we(r)}catch(i){return we(e)}}(e):we(e)}function xe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function we(e){return(0,f.B)("hub",(function(){return new _e}),e)}function Ae(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function Se(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var n,i,o,a;void 0===t&&(t=0);var s=[];try{for(var l=u(e.split("\n").slice(t)),d=l.next();!d.done;d=l.next()){var h=d.value;try{for(var p=(o=void 0,u(r)),f=p.next();!f.done;f=p.next()){var m=(0,f.value)(h);if(m){s.push(m);break}}}catch(g){o={error:g}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}catch(_){n={error:_}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return function(e){if(!e.length)return[];var t=e,r=t[0].function||"",n=t[t.length-1].function||"";-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(t=t.
2slice(1));-1!==n.indexOf("sentryWrapped")&&(t=t.slice(0,-1));return t.slice(0,50).map((function(e){return c(c({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}(s)}}var Ee="<anonymous>";function Te(e){try{return e&&"function"===typeof e&&e.name||Ee}catch(t){return Ee}}function Pe(){if(!("fetch"in(0,f.V)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ce(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ie(){if(!Pe())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Me,ke=(0,f.V)(),Oe={},Re={};function Le(e){if(!Re[e])switch(Re[e]=!0,e){case"console":!function(){if(!("console"in ke))return;g.forEach((function(e){e in ke.console&&D(ke.console,e,(function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];Ne("console",{args:r,level:e}),t&&t.apply(ke.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in ke))return;var e=Ne.bind(null,"dom"),t=Ve(e,!0);ke.document.addEventListener("click",t,!1),ke.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var r=ke[t]&&ke[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(D(r,"addEventListener",(function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{var o=this,a=o.__sentry_instrumentation_handlers__=o.__sentry_instrumentation_handlers__||{},s=a[r]=a[r]||{refCount:0};if(!s.handler){var l=Ve(e);s.handler=l,t.call(this,r,l,i)}s.refCount+=1}catch(c){}return t.call(this,r,n,i)}})),D(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{var i=this,o=i.__sentry_instrumentation_handlers__||{},a=o[t];a&&(a.refCount-=1,a.refCount<=0&&(e.call(this,t,a.handler,n),a.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete i.__sentry_instrumentation_handlers__)}catch(s){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in ke))return;var e=XMLHttpRequest.prototype;D(e,"open",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this,i=t[1],o=n.__sentry_xhr__={method:S(t[0])?t[0].toUpperCase():t[0],url:t[1]};S(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var a=function(){if(4===n.readyState){try{o.status_code=n.status}catch(e){}Ne("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"===typeof n.onreadystatechange?D(n,"onreadystatechange",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return a(),e.apply(n,t)}})):n.addEventListener("readystatechange",a),e.apply(n,t)}})),D(e,"send",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Ne("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!Pe())return!1;var e=(0,f.V)();if(Ce(e.fetch))return!0;var t=!1,r=e.document;if(r&&"function"===typeof r.createElement)try{var n=r.createElement("iframe");
2n.hidden=!0,r.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Ce(n.contentWindow.fetch)),r.head.removeChild(n)}catch(i){p&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return t}())return;D(ke,"fetch",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n={args:t,fetchData:{method:Fe(t),url:ze(t)},startTimestamp:Date.now()};return Ne("fetch",c({},n)),e.apply(ke,t).then((function(e){return Ne("fetch",c(c({},n),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Ne("fetch",c(c({},n),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=(0,f.V)(),t=e.chrome,r=t&&t.app&&t.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!r&&n}())return;var e=ke.onpopstate;function t(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length>2?t[2]:void 0;if(n){var i=Me,o=String(n);Me=o,Ne("history",{from:i,to:o})}return e.apply(this,t)}}ke.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=ke.location.href,i=Me;if(Me=n,Ne("history",{from:i,to:n}),e)try{return e.apply(this,t)}catch(o){}},D(ke.history,"pushState",t),D(ke.history,"replaceState",t)}();break;case"error":qe=ke.onerror,ke.onerror=function(e,t,r,n,i){return Ne("error",{column:n,error:i,line:r,msg:e,url:t}),!!qe&&qe.apply(this,arguments)};break;case"unhandledrejection":He=ke.onunhandledrejection,ke.onunhandledrejection=function(e){return Ne("unhandledrejection",e),!He||He.apply(this,arguments)};break;default:return void(p&&h.warn("unknown instrumentation type:",e))}}function De(e,t){Oe[e]=Oe[e]||[],Oe[e].push(t),Le(e)}function Ne(e,t){var r,n;if(e&&Oe[e])try{for(var i=u(Oe[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(s){p&&h.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Te(a)+"\nError:",s)}}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function Fe(e){return void 0===e&&(e=[]),"Request"in ke&&I(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function ze(e){return void 0===e&&(e=[]),"string"===typeof e[0]?e[0]:"Request"in ke&&I(e[0],Request)?e[0].url:String(e[0])}var je,Be,Ue=1e3;function Ve(e,t){return void 0===t&&(t=!1),function(r){if(r&&Be!==r&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(r){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===je||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(r){}return!1}(Be,r))&&(e({event:r,name:n,global:t}),Be=r),clearTimeout(je),je=ke.setTimeout((function(){je=void 0}),Ue)}}}var qe=null;var He=null;var Ge=function(e,t){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Ge(e,t)};function We(e,t){function r(){this.constructor=e}Ge(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Ye=function(){return Ye=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ye.apply(this,arguments)};function Ze(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(an){i={error:an}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ze(arguments[t]));return e}
2var Xe="6.19.7",Je=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=t[r]);return e});var Qe=function(e){function t(t){var r=this.constructor,n=e.call(this,t)||this;return n.message=t,n.name=r.prototype.constructor.name,Je(n,r.prototype),n}return function(e,t){function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error),$e=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function et(e,t){void 0===t&&(t=!1);var r=e.host,n=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(n?n+"/":n)+a}function tt(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function rt(e){var t="string"===typeof e?function(e){var t=$e.exec(e);if(!t)throw new Qe("Invalid Sentry Dsn: "+e);var r=d(t.slice(1),6),n=r[0],i=r[1],o=r[2],a=void 0===o?"":o,s=r[3],l=r[4],c=void 0===l?"":l,u="",h=r[5],p=h.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),h=p.pop()),h){var f=h.match(/^\d+/);f&&(h=f[0])}return tt({host:s,pass:a,path:u,projectId:h,port:c,protocol:n,publicKey:i})}(e):tt(e);return function(e){if(p){var t=e.port,r=e.projectId,n=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Qe("Invalid Sentry Dsn: "+t+" missing")})),!r.match(/^\d+$/))throw new Qe("Invalid Sentry Dsn: Invalid projectId "+r);if(!function(e){return"http"===e||"https"===e}(n))throw new Qe("Invalid Sentry Dsn: Invalid protocol "+n);if(t&&isNaN(parseInt(t,10)))throw new Qe("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}function nt(e,t,r){void 0===t&&(t=1/0),void 0===r&&(r=1/0);try{return ot("",e,t,r)}catch(n){return{ERROR:"**non-serializable** ("+n+")"}}}function it(e,t,r){void 0===t&&(t=3),void 0===r&&(r=102400);var n,i=nt(e,t);return n=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(n))>r?it(e,t-1,r):i}function ot(e,t,n,i,o){void 0===n&&(n=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(var n=0;n<t.length;n++)if(t[n]===r)return!0;return t.push(r),!1},function(r){if(e)t.delete(r);else for(var n=0;n<t.length;n++)if(t[n]===r){t.splice(n,1);break}}]}());var a,s=d(o,2),l=s[0],c=s[1],u=t;if(u&&"function"===typeof u.toJSON)try{return u.toJSON()}catch(y){}if(null===t||["number","boolean","string"].includes(typeof t)&&("number"!==typeof(a=t)||a===a))return t;var h=function(e,t){try{return"domain"===e&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof r.g&&t===r.g?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":function(e){return T(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: "+Te(t)+"]":"symbol"===typeof t?"["+String(t)+"]":"bigint"===typeof t?"[BigInt: "+String(t)+"]":"[object "+Object.getPrototypeOf(t).constructor.name+"]"}catch(y){return"**non-serializable** ("+y+")"}}(e,t);if(!h.startsWith("[object "))return h;if(0===n)return h.replace("object ","");if(l(t))return"[Circular ~]";var p=Array.isArray(t)?[]:{},f=0,m=b(t)||P(t)?j(t):t;for(var g in m)if(Object.prototype.hasOwnProperty.call(m,g)){if(f>=i){p[g]="[MaxProperties ~]";break}var _=m[g];p[g]=ot(g,_,n-1,i,o),f+=1}return c(t),p}var at=[];function st(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function lt(e){var t={};return function(e){var t=e.defaultIntegrations&&s(e.defaultIntegrations)||[],r=e.integrations,n=s(st(t));Array.isArray(r)?n=s(n.filter((function(e){return r.every((function(t){return t.name!==e.name}))})),st(r)):"function"===typeof r&&(n=r(n),n=Array.isArray(n)?n:[n]);var i=n.map((function(e){return e.name})),o="Debug";return-1!==i.indexOf(o)&&n.push.apply(n,s(n.splice(i.indexOf(o),1))),n}(e).forEach((function(e){t[e.name]=e,function(e){-1===at.indexOf(e.name)&&(e.setupOnce(me,be),at.push(e.name),Q&&h.log("Integration installed: "+e.name))}(e)})),N(t,"initialized",!0),t}var ct="Not capturing exception because it's already been captured.",ut=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=rt(t.dsn))}return e.prototype.captureException=function(e,t,r){var n=this;if(!X(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return n._captureEvent(e,t,r)})).then((function(e){i=e}))),i}Q&&h.log(ct)},e.prototype.captureMessage=function(e,t,r,n){var i=this,o=r&&r.event_id,a=E(e)?this._getBackend().eventFromMessage(String(e),t,r):this._getBackend().eventFromException(e,r);return this._process(a.then((function(e){return i._captureEvent(e,r,n)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,r){if(!(t&&t.originalException&&X(t.originalException))){var n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((function(e){n=e}))),n}Q&&h.log(ct)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!==typeof e.release?Q&&h.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):Q&&h.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;
2return this._isClientDoneProcessing(e).then((function(r){return t.getTransport().close(e).then((function(e){return r&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=lt(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return Q&&h.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var r,n,a=!1,s=!1,l=t.exception&&t.exception.values;if(l){s=!0;try{for(var c=o(l),u=c.next();!u.done;u=c.next()){var d=u.value.mechanism;if(d&&!1===d.handled){a=!0;break}}}catch(p){r={error:p}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}var h="ok"===e.status;(h&&0===e.errors||h&&a)&&(e.update(i(i({},a&&{status:"crashed"}),{errors:e.errors||Number(s||a)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new he((function(r){var n=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),r(!0)):(n+=1,e&&n>=e&&(clearInterval(i),r(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,r){var n=this,o=this.getOptions(),a=o.normalizeDepth,s=void 0===a?3:a,l=o.normalizeMaxBreadth,c=void 0===l?1e3:l,u=i(i({},e),{event_id:e.event_id||(r&&r.event_id?r.event_id:H()),timestamp:e.timestamp||(0,se.lu)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var d=t;r&&r.captureContext&&(d=pe.clone(d).update(r.captureContext));var h=ue(u);return d&&(h=d.applyToEvent(u,r)),h.then((function(e){return e&&(e.sdkProcessingMetadata=i(i({},e.sdkProcessingMetadata),{normalizeDepth:nt(s)+" ("+typeof s+")"})),"number"===typeof s&&s>0?n._normalizeEvent(e,s,c):e}))},e.prototype._normalizeEvent=function(e,t,r){if(!e)return null;var n=i(i(i(i(i({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return i(i({},e),e.data&&{data:nt(e.data,t,r)})}))}),e.user&&{user:nt(e.user,t,r)}),e.contexts&&{contexts:nt(e.contexts,t,r)}),e.extra&&{extra:nt(e.extra,t,r)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n.sdkProcessingMetadata=i(i({},n.sdkProcessingMetadata),{baseClientNormalized:!0}),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),r=t.environment,n=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?r:"production"),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=O(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=O(s.value,a));var l=e.request;l&&l.url&&(l.url=O(l.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=s(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,r){return this._processEvent(e,t,r).then((function(e){return e.event_id}),(function(e){Q&&h.error(e)}))},e.prototype._processEvent=function(e,t,r){var n=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function l(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return de(new Qe("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"===typeof a&&Math.random()>a?(l("sample_rate","event"),de(new Qe("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,r,t).then((function(r){if(null===r)throw l("event_processor",e.type||"event"),new Qe("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?r:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(C(e))return e.then((function(e){if(!T(e)&&null!==e)throw new Qe(t);return e}),(function(e){throw new Qe("beforeSend rejected with "+e)}));if(!T(e)&&null!==e)throw new Qe(t);return e}(o(r,t))})).then((function(t){if(null===t)throw l("before_send",e.type||"event"),new Qe("`beforeSend` returned `null`, will not send event.");var i=r&&r.getSession&&r.getSession();return!c&&i&&n._updateSessionFromEvent(i,t),n._sendEvent(t),t})).then(null,(function(e){if(e instanceof Qe)throw e;throw n.captureException(e,{data:{__sentry__:!0},originalException:e}),new Qe("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();!function(){function e(e,t,r){void 0===t&&(t={}),this.dsn=e,this._dsnObject=rt(e),this.metadata=t,this._tunnel=r}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return ht(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return mt(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return gt(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return _t(this._dsnObject,this._tunnel)}}();function dt(e,t,r){return{initDsn:e,metadata:t||{},dsn:rt(e),tunnel:r}}function ht(e){var t=e.protocol?e.protocol+":":"",r=e.port?":"+e.port:"";return t+"//"+e.host+r+(e.path?"/"+e.path:"")+"/api/"}function pt(e,t){return""+ht(e)+e.projectId+"/"+t+"/"}function ft(e){return t={sentry_key:e.publicKey,sentry_version:"7"},Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");var t}function mt(e){return pt(e,"store")}function gt(e){return mt(e)+"?"+ft(e)}function _t(e,t){return t||function(e){return pt(e,"envelope")}(e)+"?"+ft(e)}function yt(e,t){return void 0===t&&(t=[]),[e,t]}function vt(e){var t=d(e,2),r=t[0],n=t[1],i=JSON.stringify(r);return n.reduce((function(e,t){var r=d(t,2),n=r[0],i=r[1],o=E(i)?String(i):JSON.stringify(i);return e+"\n"+JSON.stringify(n)+"\n"+o}),i)}function bt(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function xt(e,t){return t?(e.sdk=e.sdk||{}
2,e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=s(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=s(e.sdk.packages||[],t.packages||[]),e):e}function wt(e,t){var r=bt(t),n="aggregates"in e?"sessions":"session";return[yt(i(i({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:et(t.dsn)}),[[{type:n},e]]),n]}var At,St=function(){function e(){}return e.prototype.sendEvent=function(e){return ue({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return ue(!0)},e}(),Et=function(){function e(e){this._options=e,this._options.dsn||Q&&h.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Qe("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,r){throw new Qe("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var r=bt(t),n=e.type||"event",o=(e.sdkProcessingMetadata||{}).transactionSampling||{},a=o.method,s=o.rate;return xt(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,yt(i(i({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:et(t.dsn)}),[[{type:n,sample_rates:[{id:a,rate:s}]},e]])}(e,dt(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){Q&&h.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){Q&&h.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=a(wt(e,dt(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(t).then(null,(function(e){Q&&h.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){Q&&h.error("Error while sending session:",e)}));else Q&&h.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new St},e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(At||(At={}));var Tt="?";function Pt(e,t,r,n){var i={filename:e,function:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}var Ct=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,It=/\((\S*)(?::(\d+))(?::(\d+))\)/,Mt=[30,function(e){var t=Ct.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var r=It.exec(t[2]);r&&(t[2]=r[1],t[3]=r[2],t[4]=r[3])}var n=Ze(Bt(t[1]||Tt,t[2]),2),i=n[0];return Pt(n[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],kt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ot=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rt=[50,function(e){var t,r=kt.exec(e);if(r){if(r[3]&&r[3].indexOf(" > eval")>-1){var n=Ot.exec(r[3]);n&&(r[1]=r[1]||"eval",r[3]=n[1],r[4]=n[2],r[5]="")}var i=r[3],o=r[1]||Tt;return o=(t=Ze(Bt(o,i),2))[0],Pt(i=t[1],o,r[4]?+r[4]:void 0,r[5]?+r[5]:void 0)}}],Lt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Dt=[40,function(e){var t=Lt.exec(e);return t?Pt(t[2],t[1]||Tt,+t[3],t[4]?+t[4]:void 0):void 0}],Nt=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ft=[10,function(e){var t=Nt.exec(e);return t?Pt(t[2],t[3]||Tt,+t[1]):void 0}],zt=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,jt=[20,function(e){var t=zt.exec(e);return t?Pt(t[5],t[3]||t[4]||Tt,+t[1],+t[2]):void 0}],Bt=function(e,t){var r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:Tt,r?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Ut(e){var t=qt(e),r={type:e&&e.name,value:Gt(e)};return t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}
2function Vt(e){return{exception:{values:[Ut(e)]}}}function qt(e){var t=e.stacktrace||e.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(Ht.test(e.message))return 1}return 0}(e);try{return Se(Ft,jt,Mt,Dt,Rt)(t,r)}catch(n){}return[]}var Ht=/Minified React error #\d+;/i;function Gt(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function Wt(e,t,r,n){var i;if(w(e)&&e.error)return Vt(e.error);if(A(e)||x(e,"DOMException")){var o=e;if("stack"in e)i=Vt(e);else{var a=o.name||(A(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;Z(i=Yt(s,t,r),s)}return"code"in o&&(i.tags=Ye(Ye({},i.tags),{"DOMException.code":""+o.code})),i}return b(e)?Vt(e):T(e)||P(e)?(i=function(e,t,r){var n={exception:{values:[{type:P(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+V(e)}]},extra:{__serialized__:it(e)}};if(t){var i=qt(t);i.length&&(n.stacktrace={frames:i})}return n}(e,t,n),K(i,{synthetic:!0}),i):(Z(i=Yt(e,t,r),""+e,void 0),K(i,{synthetic:!0}),i)}function Yt(e,t,r){var n={message:e};if(r&&t){var i=qt(t);i.length&&(n.stacktrace={frames:i})}return n}function Zt(e){var t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return de(new Qe("Not adding Promise due to buffer limit reached."));var i=n();return-1===t.indexOf(i)&&t.push(i),i.then((function(){return r(i)})).then(null,(function(){return r(i).then(null,(function(){}))})),i},drain:function(e){return new he((function(r,n){var i=t.length;if(!i)return r(!0);var o=setTimeout((function(){e&&e>0&&r(!1)}),e);t.forEach((function(e){ue(e).then((function(){--i||(clearTimeout(o),r(!0))}),n)}))}))}}}function Kt(e,t){return e[t]||e.all||0}function Xt(e,t,r){return void 0===r&&(r=Date.now()),Kt(e,t)>r}function Jt(e,t,r){var n,i,o,a;void 0===r&&(r=Date.now());var s=c({},e),l=t["x-sentry-rate-limits"],d=t["retry-after"];if(l)try{for(var h=u(l.trim().split(",")),p=h.next();!p.done;p=h.next()){var f=p.value.split(":",2),m=parseInt(f[0],10),g=1e3*(isNaN(m)?60:m);if(f[1])try{for(var _=(o=void 0,u(f[1].split(";"))),y=_.next();!y.done;y=_.next()){s[y.value]=r+g}}catch(v){o={error:v}}finally{try{y&&!y.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}else s.all=r+g}}catch(b){n={error:b}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}else d&&(s.all=r+function(e,t){void 0===t&&(t=Date.now());var r=parseInt(""+e,10);if(!isNaN(r))return 1e3*r;var n=Date.parse(""+e);return isNaN(n)?6e4:n-t}(d,r));return s}function Qt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}function $t(e,t,r){void 0===r&&(r=Zt(e.bufferSize||30));var n={};return{send:function(e){var i=function(e){var t=d(e,2),r=d(t[1],1);return d(r[0],1)[0].type}(e),o="event"===i?"error":i,a={category:o,body:vt(e)};return Xt(n,o)?de({status:"rate_limit",reason:er(n,o)}):r.add((function(){return t(a).then((function(e){var t=e.body,r=e.headers,i=e.reason,a=Qt(e.statusCode);return r&&(n=Jt(n,r)),"success"===a?ue({status:a,reason:i}):de({status:a,reason:i||t||("rate_limit"===a?er(n,o):"Unknown transport error")})}))}))},flush:function(e){return r.drain(e)}}}function er(e,t){return"Too many "+t+" requests, backing off until: "+new Date(Kt(e,t)).toISOString()}var tr,rr="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nr=(0,f.V)();function ir(){if(tr)return tr;if(Ce(nr.fetch))return tr=nr.fetch.bind(nr);var e=nr.document,t=nr.fetch;if(e&&"function"===typeof e.createElement)try{var r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);var n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(i){rr&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return tr=t.bind(nr)}function or(e,t){if("[object Navigator]"===Object.prototype.toString.call(nr&&nr.navigator)&&"function"===typeof nr.navigator.sendBeacon)return nr.navigator.sendBeacon.bind(nr.navigator)(e,t);
2if(Pe()){var r=ir();r(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}else;}function ar(e){return"event"===e?"error":e}var sr=(0,f.V)(),lr=function(){function e(e){var t=this;this.options=e,this._buffer=Zt(30),this._rateLimits={},this._outcomes={},this._api=dt(e.dsn,e._metadata,e.tunnel),this.url=gt(this._api.dsn),this.options.sendClientReports&&sr.document&&sr.document.addEventListener("visibilitychange",(function(){"hidden"===sr.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var r,n=bt(t),o=e.type||"event",a="transaction"===o||!!t.tunnel,s=(e.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,c=s.rate;xt(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{r=JSON.stringify(e)}catch(p){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=p;try{r=JSON.stringify(nt(e))}catch(f){var u=f;r=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:u.message,stack:u.stack}})}}var d={body:r,type:o,url:a?_t(t.dsn,t.tunnel):gt(t.dsn)};if(a){var h=yt(i(i({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:et(t.dsn)}),[[{type:o,sample_rates:[{id:l,rate:c}]},d.body]]);d.body=vt(h)}return d}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var r=a(wt(e,t),2),n=r[0],i=r[1];return{body:vt(n),type:i,url:_t(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var r;if(this.options.sendClientReports){var n=ar(t)+":"+e;rr&&h.log("Adding outcome: "+n),this._outcomes[n]=(null!==(r=this._outcomes[n])&&void 0!==r?r:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){rr&&h.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t,r,n,i=_t(this._api.dsn,this._api.tunnel),o=Object.keys(e).map((function(t){var r=Ze(t.split(":"),2),n=r[0];return{reason:r[1],category:n,quantity:e[t]}})),a=(t=o,yt((r=this._api.tunnel&&et(this._api.dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:n||(0,se.lu)(),discarded_events:t}]]));try{or(i,vt(a))}catch(s){rr&&h.error(s)}}else rr&&h.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,r=e.response,n=e.headers,i=e.resolve,o=e.reject,a=Qt(r.status);this._rateLimits=Jt(this._rateLimits,n),this._isRateLimited(t)&&rr&&h.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==a?o(r):i({status:a})},e.prototype._disabledUntil=function(e){var t=ar(e);return new Date(Kt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=ar(e);return Xt(this._rateLimits,t)},e}(),cr=function(e){function t(t,r){void 0===r&&(r=ir());var n=e.call(this,t)||this;return n._fetch=r,n}return We(t,e),t.prototype._sendRequest=function(e,t){var r=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var n={body:e.body,method:"POST",referrerPolicy:Ie()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add((function(){return new he((function(t,i){r._fetch(e.url,n).then((function(n){var o={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};r._handleResponse({requestType:e.type,response:n,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof Qe?r.recordLostEvent("queue_overflow",e.type):r.recordLostEvent("network_error",e.type),t}))},t}(lr);var ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype._sendRequest=function(e,t){var r=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new he((function(t,n){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};r._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:n})}},i.open("POST",e.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Qe?r.recordLostEvent("queue_overflow",e.type):r.recordLostEvent("network_error",e.type),t}))},t}(lr),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,r){var n=Wt(e,t&&t.syntheticException||void 0,r);return K(n),n.level=At.Error,t&&t.event_id&&(n.event_id=t.event_id),ue(n)}(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,r){return void 0===t&&(t=At.Info),function(e,t,r,n){void 0===t&&(t=At.Info);var i=Yt(e,r&&r.syntheticException||void 0,n);return i.level=t,r&&r.event_id&&(i.event_id=r.event_id),ue(i)}(e,t,r,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t,r,n=Ye(Ye({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=dt(n.dsn,n._metadata,n.tunnel),o=_t(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(n);if(Pe()){var a=Ye({},n.fetchParameters);return this._newTransport=(t={requestOptions:a,url:o},void 0===r&&(r=ir()),$t({bufferSize:t.bufferSize},(function(e){var n=Ye({body:e.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return r(t.url,n).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))),new cr(n)}return this._newTransport=function(e){return $t({bufferSize:e.bufferSize},(function(t){return new he((function(r,n){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};r(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}({url:o,headers:n.headers}),new ur(n)},t}(Et);function hr(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(an){i={error:an}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function pr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=be();if(n&&n[e])return n[e].apply(n,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(hr(arguments[t]));return e}(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function fr(e,t){return pr("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function mr(e){pr("configureScope",e)}function gr(e){pr("withScope",e)}var _r=(0,f.V)(),yr=0;function vr(){return yr>0}function br(e,t,r){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{var n=e.__sentry_wrapped__;if(n)return n;if(z(e))return e}catch(a){return e}var i=function(){var n=Array.prototype.slice.call(arguments);try{r&&"function"===typeof r&&r.apply(this,arguments);var i=n.map((function(e){return br(e,t)}));return e.apply(this,i)}catch(o){throw yr+=1,setTimeout((function(){yr-=1})),gr((function(e){e.addEventProcessor((function(e){return t.mechanism&&(Z(e,void 0,void 0),K(e,t.mechanism)),e.extra=Ye(Ye({},e.extra),{arguments:n}),e})),fr(o)})),o}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(s){}F(i,e),N(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(s){}return i}function xr(e){if(void 0===e&&(e={}),_r.document)if(e.eventId)if(e.dsn){var t=_r.document.createElement("script");t.async=!0,t.src=function(e,t){var r=rt(e),n=ht(r)+"embed/error-page/",i="dsn="+et(r);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return n+"?"+i}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var r=_r.document.head||_r.document.body;r&&r.appendChild(t)}else rr&&h.error("Missing dsn option in showReportDialog call");else rr&&h.error("Missing eventId option in showReportDialog call")}var wr=["fatal","error","warning","log","info","debug","critical"];function Ar(e){return"warn"===e?At.Warning:function(e){return-1!==wr.indexOf(e)}(e)?e:At.Log}var Sr=function(){function e(t){this.name=e.id,this._options=Ye({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&be().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Y(e)},{event:e})},e.prototype.setupOnce=function(){this._options.console&&De("console",Er),this._options.dom&&De("dom",function(e){function t(t){var r,n="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof n&&(n=[n]);try{r=t.event.target?M(t.event.target,n):M(t.event,n)}catch(i){r="<unknown>"}0!==r.length&&be().addBreadcrumb({category:"ui."+t.name,message:r},{event:t.event,name:t.name,global:t.global})}return t}(this._options.dom)),this._options.xhr&&De("xhr",Tr),this._options.fetch&&De("fetch",Pr),this._options.history&&De("history",Cr)},e.id="Breadcrumbs",e}();function Er(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Ar(e.level),message:R(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(R(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}be().addBreadcrumb(t,{input:e.args,level:e.level})}function Tr(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},r=t.method,n=t.url,i=t.status_code,o=t.body;be().addBreadcrumb({category:"xhr",data:{method:r,url:n,status_code:i},type:"http"},{xhr:e.xhr,input:o})}else;}function Pr(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key
2/)&&"POST"===e.fetchData.method||(e.error?be().addBreadcrumb({category:"fetch",data:e.fetchData,level:At.Error,type:"http"},{data:e.error,input:e.args}):be().addBreadcrumb({category:"fetch",data:Ye(Ye({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function Cr(e){var t=(0,f.V)(),r=e.from,n=e.to,i=G(t.location.href),o=G(r),a=G(n);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),be().addBreadcrumb({category:"navigation",data:{from:r,to:n}})}var Ir=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Xe}],version:Xe},e.call(this,dr,t)||this}return We(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,f.V)().document&&(this._isEnabled()?xr(Ye(Ye({},e),{dsn:e.dsn||this.getDsn()})):rr&&h.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,r,n){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,r,n)},t.prototype._sendEvent=function(t){var r=this.getIntegration(Sr);r&&r.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ut),Mr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kr=function(){function e(t){this.name=e.id,this._options=Ye({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,f.V)();this._options.setTimeout&&D(e,"setTimeout",Or),this._options.setInterval&&D(e,"setInterval",Or),this._options.requestAnimationFrame&&D(e,"requestAnimationFrame",Rr),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&D(XMLHttpRequest.prototype,"send",Lr);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Mr).forEach(Dr)},e.id="TryCatch",e}();function Or(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[0];return t[0]=br(n,{mechanism:{data:{function:Te(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Rr(e){return function(t){return e.apply(this,[br(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Te(e)},handled:!0,type:"instrument"}})])}}function Lr(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((function(e){e in n&&"function"===typeof n[e]&&D(n,e,(function(t){var r={mechanism:{data:{function:e,handler:Te(t)},handled:!0,type:"instrument"}},n=z(t);return n&&(r.mechanism.data.handler=Te(n)),br(t,r)}))})),e.apply(this,t)}}function Dr(e){var t=(0,f.V)(),r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(D(r,"addEventListener",(function(t){return function(r,n,i){try{"function"===typeof n.handleEvent&&(n.handleEvent=br(n.handleEvent.bind(n),{mechanism:{data:{function:"handleEvent",handler:Te(n),target:e},handled:!0,type:"instrument"}}))}catch(o){}return t.apply(this,[r,br(n,{mechanism:{data:{function:"addEventListener",handler:Te(n),target:e},handled:!0,type:"instrument"}}),i])}})),D(r,"removeEventListener",(function(e){return function(t,r,n){var i=r;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,n)}catch(a){}return e.call(this,t,i,n)}})))}var Nr=function(){function e(t){this.name=e.id,this._installFunc={onerror:Fr,onunhandledrejection:zr},this._options=Ye({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var r in t){var n=this._installFunc[r];n&&t[r]&&(e=r,rr&&h.log("Global Handler attached: "+e),n(),this._installFunc[r]=void 0)}},e.id="GlobalHandlers",e}();function Fr(){De("error",(function(e){var t=Ze(Ur(),2),r=t[0],n=t[1];if(r.getIntegration(Nr)){var i=e.msg,o=e.url,a=e.line,s=e.column,l=e.error;if(!(vr()||l&&l.__sentry_own_request__)){var c=void 0===l&&S(i)?function(e,t,r,n){var i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=w(e)?e.message:e,a="Error",s=o.match(i);s&&(a=s[1],o=s[2]);var l={exception:{values:[{type:a,value:o}]}};return jr(l,t,r,n)}(i,o,a,s):jr(Wt(l||i,void 0,n,!1),o,a,s);c.level=At.Error,Br(r,l,c,"onerror")}}}))}function zr(){De("unhandledrejection",(function(e){var t=Ze(Ur(),2),r=t[0],n=t[1];if(r.getIntegration(Nr)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if(vr()||i&&i.__sentry_own_request__)return!0;var o=E(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:Wt(i,void 0,n,!0);o.level=At.Error,Br(r,i,o,"onunhandledrejection")}}))}function jr(e,t,r,n){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(n,10))?void 0:n,u=isNaN(parseInt(r,10))?void 0:r,d=S(t)&&t.length>0?t:function(){var e=(0,f.V)();try{return e.document.location.href}catch(t){return""}}();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Br(e,t,r,n){K(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function Ur(){var e=be(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var Vr=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){me((function(t,r){var n=be().getIntegration(e);return n?function(e,t,r,n){if(!r.exception||!r.exception.values||!n||!I(n.originalException,Error))return r;var i=qr(t,n.originalException,e);return r.exception.values=Ke(i,r.exception.values),r}(n._key,n._limit,t,r):t}))},e.id="LinkedErrors",e}();function qr(e,t,r,n){if(void 0===n&&(n=[]),!I(t[r],Error)||n.length+1>=e)return n;var i=Ut(t[r]);return qr(e,t[r],r,Ke([i],n))}var Hr=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r().getIntegration(e);if(n){try{if(function(e,t){if(!t)return!1;if(function(e,t){var r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!Wr(e,t))return!1;if(!Gr(e,t))return!1;return!0}(e,t))return!0;
2if(function(e,t){var r=Yr(t),n=Yr(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!Wr(e,t))return!1;if(!Gr(e,t))return!1;return!0}(e,t))return!0;return!1}(t,n._previousEvent))return rr&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return n._previousEvent=t}return n._previousEvent=t}return t}))},e.id="Dedupe",e}();function Gr(e,t){var r=Zr(e),n=Zr(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i],a=r[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function Wr(e,t){var r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch(i){return!1}}function Yr(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Zr(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(r){return}else if(e.stacktrace)return e.stacktrace.frames}var Kr=(0,f.V)(),Xr=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){me((function(t){if(be().getIntegration(e)){if(!Kr.navigator&&!Kr.location&&!Kr.document)return t;var r=t.request&&t.request.url||Kr.location&&Kr.location.href,n=(Kr.document||{}).referrer,i=(Kr.navigator||{}).userAgent,o=Ye(Ye(Ye({},t.request&&t.request.headers),n&&{Referer:n}),i&&{"User-Agent":i}),a=Ye(Ye({},r&&{url:r}),{headers:o});return Ye(Ye({},t),{request:a})}return t}))},e.id="UserAgent",e}(),Jr=[new ee,new ne,new kr,new Sr,new Nr,new Vr,new Hr,new Xr];function Qr(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Jr),void 0===e.release){var t=(0,f.V)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&(Q?h.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var r=be(),n=r.getScope();n&&n.update(t.initialScope);var i=new e(t);r.bindClient(i)}(Ir,e),e.autoSessionTracking&&function(){if("undefined"===typeof(0,f.V)().document)return void(rr&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=be();if(!e.captureSession)return;$r(e),De("history",(function(e){var t=e.from,r=e.to;void 0!==t&&t!==r&&$r(be())}))}()}function $r(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var en=r(73682);const tn=()=>{en.A.sentryDsn&&Qr({dsn:en.A.sentryDsn,environment:en.A.env})},rn=e=>{mr((t=>{t.setUser({id:e})}))},nn=()=>{mr((e=>{e.setUser(null)}))},on=e=>{null!=e&&e.length>0&&"function"===typeof console.table&&(console.log("Errors returned by Marketplace API call:"),console.table(e.map((e=>(0,n.A)({status:e.status,code:e.code},e.meta)))))},an=(e,t,r)=>{const i=(e=>e&&e.data&&e.data.errors?e.data.errors:[])(e).map((e=>({status:e.status,code:e.code,meta:e.meta})));if(en.A.sentryDsn){const o=(0,n.A)((0,n.A)({},r),{},{apiErrorData:i});gr((r=>{r.setTag("code",t),Object.keys(o).forEach((e=>{r.setExtra(e,o[e])})),fr(e)})),on(i)}else console.error(e),console.error("Error code:",t,"data:",r),on(i)}},63690:(e,t,r)=>{"use strict";r.d(t,{UT:()=>b,Uk:()=>y,_P:()=>v,hI:()=>g,hk:()=>_,oS:()=>m});var n=r(15797),i=r.n(n),o=r(34334),a=r.n(o),s=r(55346);const{LatLng:l,LatLngBounds:c}=s.gK,u=Math.PI/180,d=3*Math.PI,h=2*Math.PI,p=(e,t,r)=>{const{lat:n,lng:i}=(e=>{const{lat:t,lng:r}=e;return{lat:t*u,lng:r*u}})(e),o=Math.sin(n),s=Math.cos(n),c=r?a()(r)():Math.random(),p=r?a()(r.split("").reverse().join(""))():Math.random(),f=c*h,m=p*t/6371e3,g=Math.sin(f),_=Math.cos(f),y=Math.sin(m),v=Math.cos(m),b=Math.asin(o*v+s*y*_),x=(e=>{const{lat:t,lng:r}=e;return{lat:t/u,lng:r/u}})({lat:b,lng:(i+Math.atan2(g*y*s,v-o*Math.sin(b))+d)%h-Math.PI});return new l(x.lat,x.lng)},f=i()(p,((e,t,r)=>r)),m=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r?f(e,t,r):p(e,t)},g=()=>new Promise(((e,t)=>{if(!("geolocation"in navigator))return void t(new Error("Geolocation not available in browser"));navigator.geolocation.getCurrentPosition((t=>e(new l(t.coords.latitude,t.coords.longitude))),(e=>t(e)),{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})})),_=(e,t)=>
2{const{lat:r,lng:n}=e,i=Math.PI,o=r*i/180,a=n*i/180,s=t/1e3/6371;let l=[];for(let c=0;c<=360;c+=8){const e=c*i/180;let t=Math.asin(Math.sin(o)*Math.cos(s)+Math.cos(o)*Math.sin(s)*Math.cos(e));const r=180*(a+Math.atan2(Math.sin(e)*Math.sin(s)*Math.cos(o),Math.cos(s)-Math.sin(o)*Math.sin(t)))/i;t=180*t/i,l.push([t,r])}return l},y=(e,t)=>{const r=e=>Number.parseFloat(e.toFixed(t)),n=new l(r(e.ne.lat),r(e.ne.lng)),i=new l(r(e.sw.lat),r(e.sw.lng));return new c(n,i)},v=(e,t)=>e instanceof c&&t instanceof c&&(e.ne.lat===t.ne.lat&&e.ne.lng===t.ne.lng&&e.sw.lat===t.sw.lat&&e.sw.lng===t.sw.lng),b=e=>"googleMaps"===e.mapProvider?e.googleMapsAPIKey:e.mapboxAccessToken},35017:(e,t,r)=>{r(20103).polyfill()},28287:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});const n=[{label:"Licensed Cosmetologist",option:"cosmetology"},{label:"Hairdressing NVQ",option:"hairdressingnvq"},{label:"Hairdressing & Barbering NVQ",option:"hairdressingbarberingnvq"},{label:"Hairdressing & Beauty NVQ",option:"hairdressingbeautynvq"},{label:"Licensed Trichologist",option:"trichology"},{label:"Diploma for Advanced & Creative Hair Professionals",option:"diplomacreativepros"},{label:"Cut it Kinky Certified",option:"cutitkinky"},{label:"DevaCurl Certified",option:"devacurl"},{label:"Mizani AirCut ",option:"mizaniaircut"},{label:"Ouidad Certified",option:"Ouidad"},{label:"Ruka Pro Certified",option:"rukapro"},{label:"Savvy Color Certified",option:"savvycolor"},{label:"Forever Curls Academy",option:"forevercurls"}],i=e=>{const t=n.find((t=>t.option===e));return t?t.label:null}},24141:(e,t,r)=>{"use strict";r.d(t,{XU:()=>h,sA:()=>te,Dk:()=>Q,j4:()=>p.Ay,tz:()=>l.A});var n,i,o=r(65173),a=r(6326),s=r(65043),l=r(97);!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(n||(n={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(i||(i={}));var c=function(e){var t=(0,l.A)(),r=e.value,n=e.children,i=(0,a.Tt)(e,["value","children"]);return n(t.formatNumberToParts(r,i))};c.displayName="FormattedNumberParts";function u(e){var t=function(t){var r=(0,l.A)(),n=t.value,i=t.children,o=(0,a.Tt)(t,["value","children"]),s="string"===typeof n?new Date(n||0):n;return i("formatDate"===e?r.formatDateToParts(s,o):r.formatTimeToParts(s,o))};return t.displayName=i[e],t}function d(e){var t=function(t){var r=(0,l.A)(),n=t.value,i=t.children,o=(0,a.Tt)(t,["value","children"]),c=r[e](n,o);if("function"===typeof i)return i(c);var u=r.textComponent||s.Fragment;return s.createElement(u,null,c)};return t.displayName=n[e],t}c.displayName="FormattedNumberParts";var h=d("formatDate"),p=(d("formatTime"),d("formatNumber"),d("formatList"),d("formatDisplayName"),u("formatDate"),u("formatTime"),r(58211)),f=r(23169),m=r(73541),g=r(55764),_=r(24373),y=r(85652);function v(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=(0,a.Cl)({timeZone:t},e[n]),r}),{})}function b(e,t){return Object.keys((0,a.Cl)((0,a.Cl)({},e),t)).reduce((function(r,n){return r[n]=(0,a.Cl)((0,a.Cl)({},e[n]||{}),t[n]||{}),r}),{})}function x(e,t){if(!t)return e;var r=g.S.formats;return(0,a.Cl)((0,a.Cl)((0,a.Cl)({},r),e),{date:b(v(r.date,t),v(e.date||{},t)),time:b(v(r.time,t),v(e.time||{},t))})}function w(e,t,r,n,i){var o=e.locale,s=e.formats,l=e.messages,c=e.defaultLocale,u=e.defaultFormats,d=e.fallbackOnEmptyString,h=e.onError,p=e.timeZone,f=e.defaultRichTextElements;void 0===r&&(r={id:""});var g=r.id,v=r.defaultMessage;(0,m.V1)(!!g,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var b=String(g),w=l&&Object.prototype.hasOwnProperty.call(l,b)&&l[b];if(Array.isArray(w)&&1===w.length&&w[0].type===y.ZE.literal)return w[0].value;if(!n&&w&&"string"===typeof w&&!f)return w.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=(0,a.Cl)((0,a.Cl)({},f),n||{}),s=x(s,p),u=x(u,p),!w){if(!1===d&&""===w)return w;if((!v||o&&o.toLowerCase()!==c.toLowerCase())&&h(new _.sb(r,o)),v)try{return t.getMessageFormat(v,c,u,i).format(n)}catch(A){return h(new _.Ho('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,A)),"string"===typeof v?v:b}return b}try{return t.getMessageFormat(w,o,s,(0,a.Cl)({formatters:t},i||{})).format(n)}catch(A){h(new _.Ho('Error formatting message: "'.concat(b,'", using ').concat(v?"default message":"id"," as fallback."),o,r,A))}if(v)try{return t.getMessageFormat(v,c,u,i).format(n)}catch(A){h(new _.Ho('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,A))}return"string"===typeof w?w:"string"===typeof v?v:b}var A=r(84530),S=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function E(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&(0,A.F3)(i,"number",a,o)||{};return t(n,(0,A.J9)(r,S,s))}function T(e,t,r,n){void 0===n&&(n={});try{return E(e,t,n).format(r)}catch(i){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting number.",i))}return String(r)}function P(e,t,r,n){void 0===n&&(n={});try{return E(e,t,n).formatToParts(r)}catch(i){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting number.",i))}return[]}var C=r(20417),I=["numeric","style"];function M(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new C.IF('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',C.O4.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&(0,A.F3)(i,"relative",a,o)||{};return t(n,(0,A.J9)(r,I,s))}(e,t,i).format(r,n)}catch(o){e.onError(new _.pg("Error formatting relative time.",e.locale,o))}return String(r)}var k=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function O(e,t,r,n){var i=e.locale,o=e.formats,s=e.onError,l=e.timeZone;void 0===n&&(n={});var c=n.format,u=(0,a.Cl)((0,a.Cl)({},l&&{timeZone:l}),c&&(0,A.F3)(o,t,c,s)),d=(0,A.J9)(n,k,u);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,a.Cl)((0,a.Cl)({},d),{hour:"numeric",minute:"numeric"})),r(i,d)}function R(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return O(e,"date",t,a).format(s)}catch(l){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting date.",l))}return String(s)}function L(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return O(e,"time",t,a).format(s)}catch(l){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting time.",l))}return String(s)}function D(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=(0,A.J9)(s,k,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(h){u(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting date time range.",h))}return String(i)}function N(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return O(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting date.",l))}return[]}function F(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"===typeof i?new Date(i||0):i;try{return O(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting time.",l))}return[]}var z=["localeMatcher","type"];function j(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new C.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',C.O4.MISSING_INTL_API));var a=(0,A.J9)(n,z);try{return t(i,a).select(r)}catch(s){o(new _.pg("Error formatting plural.",i,s))}return"other"}var B=["localeMatcher","type","style"],U=Date.now();function V(e,t,r,n){void 0===n&&(n={});var i=q(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!==typeof r?e.push(r):"string"===typeof e[e.length-1]?e[e.length-1]+=r:e.pu
2sh(r),e}),[]);return 1===i.length?i[0]:i}function q(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new C.IF('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',C.O4.MISSING_INTL_API));var s=(0,A.J9)(n,B);try{var l={},c=r.map((function(e,t){if("object"===typeof e){var r=function(e){return"".concat(U,"_").concat(e,"_").concat(U)}(t);return l[r]=e,r}return String(e)}));return t(i,s).formatToParts(c).map((function(e){return"literal"===e.type?e:(0,a.Cl)((0,a.Cl)({},e),{value:l[e.value]||e.value})}))}catch(u){o(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting list.",u))}return r}var H=["localeMatcher","style","type","fallback"];function G(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new C.IF('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',C.O4.MISSING_INTL_API));var a=(0,A.J9)(n,H);try{return t(i,a).of(r)}catch(s){o(new _.Ar(_.lo.FORMAT_ERROR,"Error formatting display name.",s))}}function W(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"===typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var Y=r(40788);function Z(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function K(e){return e?Object.keys(e).reduce((function(t,r){var n=e[r];return t[r]=(0,Y.RK)(n)?(0,f.yU)(n):n,t}),{}):e}var X=function(e,t,r,n){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var l=K(n),c=w.apply(void 0,(0,a.fX)([e,t,r,l],i,!1));return Array.isArray(c)?s.Children.toArray(c):c},J=function(e,t){var r=e.defaultRichTextElements,n=(0,a.Tt)(e,["defaultRichTextElements"]),i=K(r),o=function(e,t){var r=(0,A.GT)(t),n=(0,a.Cl)((0,a.Cl)({},A.JF),e),i=n.locale,o=n.defaultLocale,s=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new _.hr('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new _.hr('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new _.uo('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),W(n),(0,a.Cl)((0,a.Cl)({},n),{formatters:r,formatNumber:T.bind(null,n,r.getNumberFormat),formatNumberToParts:P.bind(null,n,r.getNumberFormat),formatRelativeTime:M.bind(null,n,r.getRelativeTimeFormat),formatDate:R.bind(null,n,r.getDateTimeFormat),formatDateToParts:N.bind(null,n,r.getDateTimeFormat),formatTime:L.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:D.bind(null,n,r.getDateTimeFormat),formatTimeToParts:F.bind(null,n,r.getDateTimeFormat),formatPlural:j.bind(null,n,r.getPluralRules),formatMessage:w.bind(null,n,r),$t:w.bind(null,n,r),formatList:V.bind(null,n,r.getListFormat),formatListToParts:q.bind(null,n,r.getListFormat),formatDisplayName:G.bind(null,n,r.getDisplayNames)})}((0,a.Cl)((0,a.Cl)((0,a.Cl)({},f.JF),n),{defaultRichTextElements:i}),t);return(0,a.Cl)((0,a.Cl)({},o),{formatMessage:X.bind(null,{locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i},o.formatters)})};const Q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache=(0,A.MT)(),t.state={cache:t.cache,intl:J(Z(t.props),t.cac
2he),prevConfig:Z(t.props)},t}return(0,a.C6)(t,e),t.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,i=Z(e);return(0,f.bN)(r,i)?null:{intl:J(i,n),prevConfig:i}},t.prototype.render=function(){return(0,f.HM)(this.state.intl),s.createElement(p.Kq,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=f.JF,t}(s.PureComponent);function $(e){var t=(0,l.A)(),r=t.formatMessage,n=t.textComponent,i=void 0===n?s.Fragment:n,o=e.id,a=e.description,c=e.defaultMessage,u=e.values,d=e.children,h=e.tagName,p=void 0===h?i:h,f=r({id:o,description:a,defaultMessage:c},u,{ignoreTag:e.ignoreTag});return"function"===typeof d?d(Array.isArray(f)?f:[f]):p?s.createElement(p,null,s.Children.toArray(f)):s.createElement(s.Fragment,null,f)}$.displayName="FormattedMessage";var ee=s.memo($,(function(e,t){var r=e.values,n=(0,a.Tt)(e,["values"]),i=t.values,o=(0,a.Tt)(t,["values"]);return(0,f.bN)(i,r)&&(0,f.bN)(n,o)}));ee.displayName="MemoizedFormattedMessage";const te=ee;(0,o.shape)({formatDate:o.func.isRequired,formatDateTimeRange:o.func.isRequired,formatMessage:o.func.isRequired,formatNumber:o.func.isRequired,formatPlural:o.func.isRequired,formatRelativeTime:o.func.isRequired,formatTime:o.func.isRequired})},77232:(e,t,r)=>{"use strict";r.d(t,{YD:()=>h});r(65043);var n=r(17961),i=r.n(n),o=r(63538),a=r.n(o),s=r(33411),l=r.n(s),c=r(30170),u=r(18689),d=r(70579);const h=(e,t)=>{if("string"!==typeof e)return e;const{longWordMinLength:r,longWordClass:n,linkify:o=!1,linkClass:s,breakChars:h}=t,p=s||n,f=null!=h?h:"/,";return e.split(/([^\s]+)/gi).reduce(((e,t,s)=>{const h=i()([e=>a()(e,(e=>function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"!==typeof e)return e;const{linkify:n,linkClass:i}=r,o=/(\bhttps?:\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi;return e.match(o)?e.split(o).map((e=>{const r=!e.match(o),a=!r&&n?(0,c.Jf)(e):e;return r?e:n?(0,d.jsx)(u.Gr,{href:a,className:i,children:a},t):i?(0,d.jsx)("span",{className:i,children:e},t):e})):e}(e,s,{linkify:o,linkClass:p}))),e=>a()(e,(e=>function(e){if("string"!==typeof e)return e;const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/").split(""),r=t.map((e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))),n=new RegExp("(["+r.join("")+"])");return e.split(n).map((e=>t.includes(e)?"".concat("\u200b").concat(e).concat("\u200b"):e))}(e,f))),e=>l()(e,((e,t)=>function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{longWordMinLength:n,longWordClass:i}=r;return"string"===typeof e&&n&&i?e.length<=n?e:(0,d.jsx)("span",{className:i,children:e},t):e}(e,"".concat(s).concat(t),{longWordMinLength:r,longWordClass:n})))])([t]);return e.concat(h)}),[])}},57302:(e,t,r)=>{"use strict";r.d(t,{JA:()=>_,__:()=>m,yY:()=>g,WN:()=>f,pL:()=>p});var n=r(89379),i=r(98990),o=r.n(i),a=r(91688);function s(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var i=1,o="";if("?"===e[s=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;
2)if("\\"!==e[s]){if(")"===e[s]){if(0===--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));o+=e[s++]}else o+=e[s++]+e[s++];if(i)throw new TypeError("Unbalanced pattern at ".concat(r));if(!o)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:o}),r=s}else{for(var a="",s=r+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,o=t.delimiter,a=void 0===o?"/#?":o,s=[],l=0,u=0,d="",h=function(e){if(u<r.length&&r[u].type===e)return r[u++].value},p=function(e){var t=h(e);if(void 0!==t)return t;var n=r[u],i=n.type,o=n.index;throw new TypeError("Unexpected ".concat(i," at ").concat(o,", expected ").concat(e))},f=function(){for(var e,t="";e=h("CHAR")||h("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=s[s.length-1],r=e||(t&&"string"===typeof t?t:"");if(t&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||function(e){for(var t=0,r=a;t<r.length;t++){var n=r[t];if(e.indexOf(n)>-1)return!0}return!1}(r)?"[^".concat(c(a),"]+?"):"(?:(?!".concat(c(r),")[^").concat(c(a),"])+?")};u<r.length;){var g=h("CHAR"),_=h("NAME"),y=h("PATTERN");if(_||y){var v=g||"";-1===i.indexOf(v)&&(d+=v,v=""),d&&(s.push(d),d=""),s.push({name:_||l++,prefix:v,suffix:"",pattern:y||m(v),modifier:h("MODIFIER")||""})}else{var b=g||h("ESCAPED_CHAR");if(b)d+=b;else if(d&&(s.push(d),d=""),h("OPEN")){v=f();var x=h("NAME")||"",w=h("PATTERN")||"",A=f();p("CLOSE"),s.push({name:x||(w?l++:""),pattern:x&&!w?m(v):w,prefix:v,suffix:A,modifier:h("MODIFIER")||""})}else p("END")}}return s}function l(e,t){return function(e,t){void 0===t&&(t={});var r=u(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,a=void 0===o||o,s=e.map((function(e){if("object"===typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)}));return function(t){for(var r="",n=0;n<e.length;n++){var o=e[n];if("string"!==typeof o){var l=t?t[o.name]:void 0,c="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===l.length){if(c)continue;throw new TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var d=0;d<l.length;d++){var h=i(l[d],o);if(a&&!s[n].test(h))throw new TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(h,'"'));r+=o.prefix+h+o.suffix}}else if("string"!==typeof l&&"number"!==typeof l){if(!c){var p=u?"an array":"a string";throw new TypeError('Expected "'.concat(o.name,'" to be ').concat(p))}}else{h=i(String(l),o);if(a&&!s[n].test(h))throw new TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(h,'"'));r+=o.prefix+h+o.suffix}}else r+=o}return r}}(s(e,t),t)}function c(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function u(e){return e&&e.sensitive?"":"i"}var d=r(32423);const h=(e,t)=>o()(t,(t=>t.name===e)),p=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=r&&r.hasOwnProperty("slug")&&""===r.slug?(0,n.A)((0,n.A)({},r),{},{slug:"no-slug"}):r;return((e,t)=>{const r=h(e,t);if(!r)throw new Error('Path "'.concat(e,'" was not found.'));return l(r.path)})(e,t)(i)},f=(e,t)=>{const r=t.reduce(((t,r)=>{const{path:n,exact:i=!0}=r,o=(0,a.B6)(e,{path:n,exact:i});return o&&t.push({route:r,params:o.params||{}}),t}),[]),n=r.find((e=>!0===e.exact||null==e.exact));return n?[n]:r},m=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";const o=(0,d.As)(n),a=o.length>0?"?".concat(o):"",s=p(e,t,r);return"".concat(s).concat(a).concat(i)},g=(e,t)=>{const r=h(e,t);if(!r)throw new Error('Component "'.concat(e,'" was not found.'));return r},_=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pathname:n,search:i,hash:o}=t,a=f(n,e);if(1===a.length&&"ListingPage"===a[0].route.name){const e=n.replace(/\/$/,"").split("/");if(4!==e.length)throw new Error("Expected ListingPage route to have 4 parts");const t="/".concat(e[1],"/").concat(e[3]);
2return r?t:"".concat(t).concat(i).concat(o)}return r?n:"".concat(n).concat(i).concat(o)}},30170:(e,t,r)=>{"use strict";r.d(t,{B0:()=>A,Jf:()=>b});var n=r(89379),i=r(80045);const o=["attributes"],a=["profile"],s=["bio","displayName","abbreviatedName","publicData","metadata"],l=["attributes"],c=["title","description","publicData"],u=["location"],d=/[<>]/g,h={"<":"\uff1c",">":"\uff1e"},p=e=>null==e?e:"string"===typeof e?e.replace(d,(e=>h[e])):"",f=(e,t)=>t.map((e=>"".concat(e.option))).includes(e)?e:null,m=/^([^\w]*)(javascript|data|vbscript)/im,g=/&#(\w+)(^\w|;)?/g,_=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,y=/^([^:]+):/gm,v=[".","/"];function b(e){const t=(r=e||"",r.replace(g,((e,t)=>String.fromCharCode(t)))).replace(_,"").trim();var r;if(!t)return"about:blank";if(function(e){return v.indexOf(e[0])>-1}(t))return t;const n=t.match(y);if(!n)return t;const i=n[0];return m.test(i)?"about:blank":t}const x=(e,t)=>{const{schemaType:r,enumOptions:n}=t;var i,o,a,s;return"text"===r?p(e):"enum"===r?f(e,n):"multi-enum"===r?(a=e,s=n,Array.isArray(a)?a.reduce(((e,t)=>{const r=f(t,s);return r?[...e,r]:e}),[]):[]):"long"===r?null==(o=e)||"number"===typeof o?o:null:"boolean"===r?null==(i=e)||"boolean"===typeof i?i:null:null},w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e||{};return Object.entries(r).reduce(((e,r)=>{var i,o;const[a,s]=r,l=null===t||void 0===t||null===(i=t.listingFields)||void 0===i?void 0:i.find((e=>e.key===a)),c=null===t||void 0===t||null===(o=t.userFields)||void 0===o?void 0:o.find((e=>e.key===a)),u=["listingType","transactionProcessAlias","unitType","userType"].includes(a)?p(s):l?x(s,l):c?x(s,c):"string"===typeof s?p(s):s;return(0,n.A)((0,n.A)({},e),{},{[a]:u})}),{})},A=(e,t)=>{const{type:r}=e;switch(r){case"listing":return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{attributes:r}=e,o=(0,i.A)(e,l),a=r||{},{title:s,description:d,publicData:h}=a,f=(0,i.A)(a,c),m=e=>{const{address:t,building:r}=e||{};return{address:p(t),building:p(r)}},g=r?{attributes:(0,n.A)((0,n.A)({title:p(s),description:p(d)},(e=>{const r=e||{},{location:o}=r,a=(0,i.A)(r,u),s=o?{location:m(o)}:{},l=w(a,t);return e?{publicData:(0,n.A)((0,n.A)({},s),l)}:{}})(h)),f)}:{};return(0,n.A)((0,n.A)({},g),o)}(e,t);case"user":return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=e||{},{attributes:l}=r,c=(0,i.A)(r,o),u=l||{},{profile:d}=u,h=(0,i.A)(u,a),f=d||{},{bio:m,displayName:g,abbreviatedName:_,publicData:y={},metadata:v={}}=f,b=(0,i.A)(f,s),x=d?{profile:(0,n.A)((0,n.A)((0,n.A)({abbreviatedName:p(_),displayName:p(g),bio:p(m)},(e=>{const r=w(e,t);return e?{publicData:r}:{}})(y)),(e=>e?{metadata:e}:{})(v)),b)}:{},A=l?{attributes:(0,n.A)((0,n.A)({},x),h)}:{};return(0,n.A)((0,n.A)({},A),c)}(e,t);default:return e}}},55346:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Q_:()=>createInstance,ZS:()=>util,gK:()=>types,gj:()=>transit,vf:()=>createImageVariantConfig});var sharetribe_flex_sdk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59436),sharetribe_flex_sdk__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(sharetribe_flex_sdk__WEBPACK_IMPORTED_MODULE_0__);let exportSdk;const isServer=()=>"undefined"===typeof window;exportSdk=isServer()?eval("require")("sharetribe-flex-sdk"):sharetribe_flex_sdk__WEBPACK_IMPORTED_MODULE_0__;const{createInstance:createInstance,types:types,transit:transit,util:util}=exportSdk,createImageVariantConfig=(e,t,r)=>{let n=t,i=Math.round(r*t);return(n>3072||i>3072)&&(console.error("Dimensions of custom image variant (".concat(e,") are too high (w:").concat(n,", h:").concat(i,").\n    Reduce them to max 3072px. https://www.sharetribe.com/api-reference/marketplace.html#custom-image-variants")),i>3072?(i=3072,n=Math.round(i/r)):i>3072&&(n=3072,i=Math.round(r*n))),{["imageVariant.".concat(e)]:util.objectQueryString({w:n,h:i,fit:"crop"})}}},80137:(e,t,r)=>{"use strict";r.d(t,{Am:()=>a,Ap:()=>o,Bu:()=>s,Ej:()=>u,JJ:()=>l,a0:()=>i,fC:()=>d,py:()=>c});var n=r(89379);const i=e=>{const t=e&&0===e.indexOf("has_all:"),r=e&&0===e.indexOf("has_any:");return t||r?e.substring(8).split(","):e.split(",")},o=(e,t)=>("meta"===t?"meta_".concat(e):"pub_".concat(e)).replace(/\s/g,"_"),a=(e,t)=>[...t.reduce(((e,t)=>{const{key:r,schemaType:n,scope:i,nestedParams:a}=t;return[...e,..."category"===n&&a?null===a||void 0===a?void 0:a.map((e=>o(e,i))):[r]]}),[]),...e.reduce(((e,t)=>{var r;const n=o(t.key,t.scope);return null!==(r=t.filterConfig)&&void 0!==r&&r.indexForSearch?[...e,n]:e}),[])],s=(e,t,r)=>{const{listingFieldsConfig:n,defaultFiltersConfig:i}=r,o=a(n,i).reduce(((t,r)=>[...t,...e.includes(r)?[r]:[]]),[]);return!!Object.entries(t).find((e=>{const[t,r]=e;return o.includes(t)&&null!=r}))},l=(e,t)=>
2Object.entries(t).reduce(((t,r)=>{const[i,o]=r,a=i.indexOf(e);return a>-1?(0,n.A)((0,n.A)({},t),{},{[i.slice(a)]:o}):t}),{}),c=e=>{const t=e=>{const{id:r,name:i,subcategories:o}=e,a=o?{suboptions:o.map((e=>t(e)))}:{};return(0,n.A)({option:r,label:i},a)};return(Array.isArray(e)?e:[]).map((e=>t(e)))},u=e=>{var t,r;return"keywords"===(null===(t=e.search)||void 0===t||null===(r=t.mainSearch)||void 0===r?void 0:r.searchType)},d=e=>{var t,r,n,i;return"location"===(null===(t=e.search)||void 0===t||null===(r=t.mainSearch)||void 0===r?void 0:r.searchType)&&(null===(n=e.maps)||void 0===n||null===(i=n.search)||void 0===i?void 0:i.sortSearchByDistance)}},30496:(e,t,r)=>{"use strict";r.d(t,{N:()=>o,q:()=>i});var n=r(89379);const i=e=>{const t=e.marketplaceColor?{"--marketplaceColor":e.marketplaceColor,"--marketplaceColorDark":e.marketplaceColorDark,"--marketplaceColorLight":e.marketplaceColorLight}:{},r=e.colorPrimaryButton?{"--colorPrimaryButton":e.colorPrimaryButton,"--colorPrimaryButtonDark":e.colorPrimaryButtonDark,"--colorPrimaryButtonLight":e.colorPrimaryButtonLight}:{};return(0,n.A)((0,n.A)({},t),r)},o=(e,t)=>{Object.entries(i(e)).forEach((e=>{const[r,n]=e;t.style.setProperty(r,n)}))}},44356:(e,t,r)=>{"use strict";r.d(t,{Gc:()=>E,IL:()=>g,JK:()=>le,JR:()=>R,Lr:()=>F,Mi:()=>V,My:()=>ne,Pm:()=>p,RI:()=>Y,SD:()=>he,SI:()=>G,Sf:()=>$,Sh:()=>m,Uo:()=>oe,Uz:()=>K,Vg:()=>L,WJ:()=>ie,X6:()=>Z,Xq:()=>_,Yq:()=>me,Zz:()=>f,bC:()=>fe,bd:()=>h,dW:()=>ae,er:()=>q,gB:()=>X,iz:()=>T,jI:()=>H,ko:()=>ge,pe:()=>A,qe:()=>de,sX:()=>N,se:()=>U,tu:()=>S,uk:()=>te,vh:()=>re,wD:()=>ue,wG:()=>ee,xB:()=>B,xy:()=>ce,y8:()=>se,yS:()=>z,yx:()=>j,zU:()=>W});var n=r(65173),i=r(77217),o=r(55346),a=r(89413);const{UUID:s,LatLng:l,LatLngBounds:c,Money:u}=o.gK,d=(0,a.VU)(),h="enum",p="multi-enum",f="text",m="long",g="boolean",_=[h,p,f,m,g],y={value:e=>(0,n.oneOf)([e])};y.uuid=(0,n.instanceOf)(s),y.latlng=(0,n.instanceOf)(l),y.latlngBounds=(0,n.instanceOf)(c),y.money=(0,n.instanceOf)(u),y.currencyConfig=(0,n.shape)({style:n.string.isRequired,currency:n.string.isRequired,currencyDisplay:n.string,useGrouping:n.bool,minimumFractionDigits:n.number,maximumFractionDigits:n.number}),y.route=(0,n.shape)({name:n.string.isRequired,path:n.string.isRequired,exact:n.bool,strict:n.bool,component:(0,n.oneOfType)([n.object,n.func]).isRequired,loadData:n.func}),y.place=(0,n.shape)({address:n.string.isRequired,origin:y.latlng,bounds:y.latlngBounds}),y.image=(0,n.shape)({id:y.uuid.isRequired,type:y.value("image").isRequired,attributes:(0,n.shape)({variants:(0,n.objectOf)((0,n.shape)({width:n.number.isRequired,height:n.number.isRequired,url:n.string.isRequired}))})}),y.imageAsset=(0,n.shape)({id:n.string.isRequired,type:y.value("imageAsset").isRequired,attributes:(0,n.shape)({variants:(0,n.objectOf)((0,n.shape)({width:n.number.isRequired,height:n.number.isRequired,url:n.string.isRequired}))})}),y.currentUser=(0,n.shape)({id:y.uuid.isRequired,type:y.value("currentUser").isRequired,attributes:(0,n.shape)({banned:n.bool.isRequired,email:n.string.isRequired,emailVerified:n.bool.isRequired,profile:(0,n.shape)({firstName:n.string.isRequired,lastName:n.string.isRequired,displayName:n.string.isRequired,abbreviatedName:n.string.isRequired,bio:n.string}).isRequired,stripeConnected:n.bool}),profileImage:y.image});const v=(0,n.shape)({banned:y.value(!1).isRequired,deleted:y.value(!1).isRequired,profile:(0,n.shape)({displayName:n.string.isRequired,abbreviatedName:n.string.isRequired,bio:n.string})}),b=(0,n.shape)({profile:(0,n.shape)({displayName:n.string.isRequired,abbreviatedName:n.string.isRequired,bio:n.string})}),x=(0,n.shape)({deleted:y.value(!0).isRequired}),w=(0,n.shape)({banned:y.value(!0).isRequired});y.user=(0,n.shape)({id:y.uuid.isRequired,type:y.value("user").isRequired,attributes:(0,n.oneOfType)([v,b,x,w]).isRequired,profileImage:y.image});const A="draft",S="pendingApproval",E="published",T="closed",P=[A,S,E,T],C=(0,n.shape)({title:n.string.isRequired,description:n.string,geolocation:y.latlng,deleted:y.value(!1),state:(0,n.oneOf)(P),price:y.money,publicData:n.object}),I=(0,n.shape)({type:(0,n.oneOf)(["availability-plan/day","availability-plan/time"]).isRequired,timezone:n.string,entries:(0,n.arrayOf)((0,n.shape)({dayOfWeek:(0,n.oneOf)(["mon","tue","wed","thu","fri","sat","sun"]).isRequired,seats:n.number.isRequired,start:n.string,end:n.string}))});y.availabilityPlan=I;const M=(0,n.shape)({title:n.string.isRequired,description:n.string,geolocation:y.latlng,deleted:y.value(!1).isRequired,state:(0,n.oneOf)(P).isRequired,price:y.money,availabilityPlan:I,publicData:n.object.isRequired}),k=(0,n.shape)({deleted:y.value(!0).isRequired});y.listing=(0,n.shape)({id:y.uuid.isRequired,type:y.value("listing").isRequired,attributes:(0,n.oneOfType)([C,k]).isRequired,author:y.user,images:(0,n.arrayOf)(y.image)}),y.ownListing=(0,n.shape)({id:y.uuid.isRequired,type:y.value("ownListing").isRequired,attributes:(0,n.oneOfType)([M,k]).isRequired,author:y.currentUser,images:(0,n.arrayOf)(y.image)});const O=["pending","accepted","declined","cancelled"];y.booking=(0,n.shape)({id:y.uuid.isRequired,type:y.value("booking").isRequired,attributes:(0,n.shape)({end:(0,n.instanceOf)(Date).isRequired,start:(0,n.instanceOf)(Date).isRequired,displayStart:(0,n.instanceOf)(Date),displayEnd:(0,n.instanceOf)(Date),state:(0,n.oneOf)(O)})});const R="time-slot/time";y.timeSlot=(0,n.shape)({id:y.uuid.isRequired,type:y.value("timeSlot").isRequired,attributes:(0,n.shape)({type:(0,n.oneOf)([R]).isRequired,end:(0,n.instanceOf)(Date).isRequired,start:(0,n.instanceOf)(Date).isRequired})}),y.availabilityException=(0,n.shape)({id:y.uuid.isRequired,type:y.value("availabilityException").isRequired,attributes:(0,n.shape)({end:(0,n.instanceOf)(Date).isRequired,seats:n.number.isRequired,start:(0,n.instanceOf)(Date).isRequired})});const L="multipleItems",D="infiniteOneItem",N="infiniteMultipleItems",F=[D,N];y.transition=(0,n.shape)({createdAt:(0,n.instanceOf)(Date).isRequired,by:(0,n.oneOf)(a.U7).isRequired,transition:(0,n.oneOf)(d).isRequired});const z=[1,2,3,4,5],j="ofProvider",B="ofCustomer";y.review=(0,n.shape)({id:y.uuid.isRequired,attributes:(0,n.shape)({createdAt:(0,n.instanceOf)(Date).isRequired,content:n.string,rating:(0,n.oneOf)(z),state:n.string.isRequired,type:(0,n.oneOf)([j,B]).isRequired}).isRequired,author:y.user,subject:y.user}),y.stripeAccount=(0,n.shape)({id:y.uuid.isRequired,type:y.value("stripeAccount").isRequired,attributes:(0,n.shape)({stripeAccountId:n.string.isRequired,stripeAccountData:n.object})}),y.defaultPaymentMethod=(0,n.shape)({id:y.uuid.isRequired,type:y.value("stripePaymentMethod").isRequired,attributes:(0,n.shape)({type:y.value("stripe-payment-method/card").isRequired,stripePaymentMethodId:n.string.isRequired,card:(0,n.shape)({brand:n.string.isRequired,expirationMonth:n.number.isRequired,expirationYear:n.number.isRequired,last4Digits:n.string.isRequired}).isRequired})});const U="line-item/night",V="line-item/day",q="line-item/hour",H="line-item/item",G="line-item/customer-commission",W="line-item/provider-commission",Y="line-item/shipping-fee",Z="line-item/pickup-fee",K=[U,V,q,H,G,W,Y,Z],X=[U,V,q,H];y.lineItemUnitType=(0,n.oneOf)(X);y.lineItems=(0,n.arrayOf)((0,n.shape)({code:(e,t,r)=>{const n=e[t];return n&&""!==n?/^line-item\/.+/.test(n)?void 0:new Error("Invalid line item code value ".concat(n," passed to ").concat(r,".")):new Error("Missing line item code prop from ".concat(r,"."))},includeFor:(0,n.arrayOf)((0,n.oneOf)(["customer","provider"])).isRequired,quantity:(0,n.instanceOf)(i.A),unitPrice:y.money.isRequired,lineTotal:y.money.isRequired,reversal:n.bool.isRequired})),y.transaction=(0,n.shape)({id:y.uuid.isRequired,type:y.value("transaction").isRequired,attributes:(0,n.shape)({createdAt:(0,n.instanceOf)(Date),processName:n.string.isRequired,lastTransitionedAt:(0,n.instanceOf)(Date).isRequired,lastTransition:(0,n.oneOf)(d).isRequired,payinTotal:y.money,payoutTotal:y.money,lineItems:y.lineItems,transitions:(0,n.arrayOf)(y.transition).isRequired}),booking:y.booking,listing:y.listing,customer:y.user,provider:y.user,reviews:(0,n.arrayOf)(y.review)}),y.message=(0,n.shape)({id:y.uuid.isRequired,type:y.value("message").isRequired,attributes:(0,n.shape)({createdAt:(0,n.instanceOf)(Date).isRequired,content:n.string.isRequired}).isRequired,sender:y.user}),y.pagination=(0,n.shape)({page:n.number.isRequired,perPage:n.number.isRequired,totalItems:n.number,totalPages:n.number}),y.filterConfig=(0,n.arrayOf)((0,n.shape)({id:n.string.isRequired,label:n.node,type:n.string.isRequired,group:(0,n.oneOf)(["primary","secondary"]).isRequired,queryParamNames:(0,n.arrayOf)(n.string).isRequired,config:n.object}).isRequired),y.defaultFiltersConfig=(0,n.arrayOf)((0,n.shape)({key:n.string.isRequired,schemaType:(0,n.oneOf)(["price","text","dates"]).isRequired,min:n.number,max:n.number,step:n.number}).isRequired),y.userType=(0,n.shape)({userType:n.string.isRequired,label:n.string.isRequired,defaultUserFields:(0,n.shape)({displayName:n.bool,phoneNumber:n.bool}),displayNameSettings:(0,n.shape)({displayInSignUp:n.bool,required:n.bool}),phoneNumberSettings:(0,n.shape)({displayInSignUp:n.bool,required:n.bool})}),y.userTypes=(0,n.arrayOf)(y.userType),y.fieldEnumOptions=(0,n.arrayOf)((0,n.shape)({option:(0,n.oneOfType)([n.string,n.number]).isRequired,label:n.string.isRequired})),y.userField=(0,n.shape)({key:n.string.isRequired,scope:n.string,
2schemaType:(0,n.oneOf)(_).isRequired,enumOptions:y.fieldEnumOptions,showConfig:(0,n.shape)({label:n.string.isRequired,displayInProfile:n.bool}),saveConfig:(0,n.shape)({label:n.string.isRequired,placeholderMessage:n.string,isRequired:n.bool,requiredMessage:n.string,displayInSignUp:n.bool}).isRequired,userTypeConfig:(0,n.shape)({limitToUserTypeIds:n.bool.isRequired,userTypeIds:(0,n.arrayOf)(n.string)})}),y.userFields=(0,n.arrayOf)(y.userField),y.listingType=(0,n.shape)({listingType:n.string.isRequired,label:n.string.isRequired,transactionType:(0,n.shape)({process:n.string.isRequired,alias:n.string.isRequired,unitType:n.string.isRequired}).isRequired,defaultListingFields:(0,n.shape)({price:n.bool,location:n.bool,payoutDetails:n.bool,shipping:n.bool,pickup:n.bool})}),y.listingTypes=(0,n.arrayOf)(y.userType),y.listingField=(0,n.shape)({key:n.string.isRequired,scope:n.string,schemaType:(0,n.oneOf)(_).isRequired,enumOptions:y.fieldEnumOptions,filterConfig:(0,n.shape)({indexForSearch:n.bool,label:n.string.isRequired,group:(0,n.oneOf)(["primary","secondary"]),filterType:n.string}),showConfig:(0,n.shape)({label:n.string.isRequired,isDetail:n.bool}),saveConfig:(0,n.shape)({label:n.string.isRequired,placeholderMessage:n.string,isRequired:n.bool,requiredMessage:n.string}).isRequired,listingTypeConfig:(0,n.shape)({limitToListingTypeIds:n.bool.isRequired,listingTypeIds:(0,n.arrayOf)(n.string)}),categoryConfig:(0,n.shape)({limitToCategoryIds:n.bool.isRequired,categoryIds:(0,n.arrayOf)(n.string)})}),y.listingFields=(0,n.arrayOf)(y.listingField);const J=(0,n.shape)({key:(0,n.oneOf)(["createdAt","-createdAt","price","-price","relevance"]).isRequired,label:n.string.isRequired,longLabel:n.string}),Q=(0,n.shape)({key:(0,n.oneOf)(["createdAt","-createdAt","price","-price","relevance"]).isRequired,labelTranslationKey:n.string.isRequired,labelTranslationKeyLong:n.string});y.sortConfig=(0,n.shape)({active:n.bool,queryParamName:(0,n.oneOf)(["sort"]).isRequired,relevanceKey:n.string.isRequired,conflictingFilters:(0,n.arrayOf)(n.string),options:(0,n.arrayOf)((0,n.oneOfType)([J,Q]))});const $="transaction-listing-not-found",ee="transaction-invalid-transition",te="transaction-already-reviewed-by-customer",re="transaction-already-reviewed-by-provider",ne="transaction-booking-time-not-available",ie="transaction-listing-insufficient-stock",oe="transaction-payment-failed",ae="transaction-charge-zero-payin",se="email-taken",le="email-not-found",ce="email-too-many-verification-requests",ue="request-upload-over-limit",de="transaction-missing-stripe-account",he="old-total-mismatch",pe=[$,ee,te,re,oe,ae,"transaction-charge-zero-payout",se,le,ce,ue,"validation-invalid-params","validation-invalid-value","not-found","forbidden",de,he];y.apiError=(0,n.shape)({id:y.uuid.isRequired,status:n.number.isRequired,code:(0,n.oneOf)(pe).isRequired,title:n.string.isRequired,meta:n.object}),y.assetDeliveryApiError=(0,n.shape)({code:(0,n.oneOf)(pe).isRequired,id:n.string.isRequired,status:n.number.isRequired,title:n.string.isRequired}),y.error=(0,n.shape)({type:y.value("error").isRequired,name:n.string.isRequired,message:n.string,status:n.number,statusText:n.string,apiErrors:(0,n.arrayOf)((0,n.oneOfType)([y.apiError,y.assetDeliveryApiError]))});const fe="date",me="time",ge="datetime";y.dateType=(0,n.oneOf)([fe,me,ge])},79818:(e,t,r)=>{"use strict";r.d(t,{EA:()=>u,I3:()=>c,LK:()=>l});var n=r(89379),i=r(65043),o=r(79889),a=r.n(o),s=r(70579);const l=e=>{class t extends i.Component{constructor(e){super(e),this.state={width:0,height:0},this.handleWindowResize=this.handleWindowResize.bind(this),this.setViewport=a()(this.setViewport.bind(this),100)}componentDidMount(){this.setViewport(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("orientationchange",this.handleWindowResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("orientationchange",this.handleWindowResize)}handleWindowResize(){this.setViewport()}setViewport(){this.setState({width:window.innerWidth,height:window.innerHeight})}render(){const t=this.state,r=(0,n.A)((0,n.A)({},this.props),{},{viewport:t});return(0,s.jsx)(e,(0,n.A)({},r))}}return t.displayName="withViewport(".concat(e.displayName||e.name,")"),t},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};class r extends i.Component{constructor(e){super(e),this.element=null,this.defaultRenderTimeout=null,this.state={width:0,height:0},this.handleWindowResize=a()(this.handleWindowResize.bind(this),200),this.setDimensions=this.setDimensions.bind(this)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),window.addEventListener("orientationchange",this.handleWindowResize),this.defaultRenderTimeout=window.setTimeout((()=>{this.setDimensions()}),100)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("orientationchange",this.handleWindowResize),window.clearTimeout(this.defaultRenderTimeout)}handleWindowResize(){window.requestAnimationFrame((()=>{this.setDimensions()}))}setDimensions(){this.setState((e=>{const{clientWidth:t,clientHeight:r}=this.element||{clientWidth:0,clientHeight:0};return{width:t,height:r}}))}render(){const{width:r,height:i}=this.state,{clientWidth:o,clientHeight:a}=this.element||{clientWidth:0,clientHeight:0},l=0!==r&&0!==i||0!==o&&0!==a,c=0!==o&&0!==a?{width:o,height:a}:0!==r&&0!==i?{width:r,height:i}:{},u=(0,n.A)((0,n.A)({},this.props),{},{dimensions:c}),{maxWidth:d,maxHeight:h}=t,p=d?{maxWidth:d}:{},f=h?{maxHeight:h}:{},m=d||h?(0,n.A)((0,n.A)({width:"100%",height:"100%"},p),f):{position:"absolute",top:0,right:0,bottom:0,left:0};return(0,s.jsx)("div",{ref:e=>{this.element=e},style:m,children:l?(0,s.jsx)(e,(0,n.A)({},u)):null})}}return r.displayName="withDimensions(".concat(e.displayName||e.name,")"),r},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};class r extends i.Component{constructor(e){super(e),this.element=null,this.defaultRenderTimeout=null,this.afterRenderTimeout=null,this.state={width:0,height:0},this.handleWindowResize=a()(this.handleWindowResize.bind(this),200),this.isElementNearViewport=this.isElementNearViewport.bind(this),this.setDimensions=this.setDimensions.bind(this)}componentDidMount(){window.addEventListener("scroll",this.handleWindowResize),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("orientationchange",this.handleWindowResize),this.defaultRenderTimeout=window.setTimeout((()=>
2{if(this.isElementNearViewport(0))this.setDimensions();else{const e=t.loadAfterInitialRendering;"number"===typeof e&&(this.afterRenderTimeout=window.setTimeout((()=>{window.requestAnimationFrame((()=>{this.setDimensions()}))}),e))}}),100)}componentWillUnmount(){window.removeEventListener("scroll",this.handleWindowResize),window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("orientationchange",this.handleWindowResize),window.clearTimeout(this.defaultRenderTimeout),this.afterRenderTimeout&&window.clearTimeout(this.afterRenderTimeout)}handleWindowResize(){const e="number"===typeof t.loadAfterInitialRendering;(this.isElementNearViewport(50)||e)&&window.requestAnimationFrame((()=>{this.setDimensions()}))}setDimensions(){this.setState((e=>{const{clientWidth:t,clientHeight:r}=this.element||{clientWidth:0,clientHeight:0};return{width:t,height:r}}))}isElementNearViewport(e){if(this.element){const t=this.element.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;return t.top>=0&&t.top<=r+e||t.bottom>=-1*e&&t.bottom<=r}return!1}render(){const r=this.state,{width:i,height:o}=r,a=(0,n.A)((0,n.A)({},this.props),{},{dimensions:r}),{maxWidth:l,maxHeight:c}=t,u=l?{maxWidth:l}:{},d=c?{maxHeight:c}:{},h=l||c?(0,n.A)((0,n.A)({width:"100%",height:"100%"},u),d):{position:"absolute",top:0,right:0,bottom:0,left:0};return(0,s.jsx)("div",{ref:e=>{this.element=e},style:h,children:0!==i&&0!==o?(0,s.jsx)(e,(0,n.A)({},a)):null})}}return r.displayName="lazyLoadWithDimensions(".concat(e.displayName||e.name,")"),r}},32423:(e,t,r)=>{"use strict";r.d(t,{$O:()=>d,As:()=>_,Do:()=>c,KT:()=>u,Ln:()=>l,Xo:()=>f,bP:()=>s,e9:()=>h,qg:()=>y});var n=r(9370),i=r(55346);const{LatLng:o,LatLngBounds:a}=i.gK,s="pending-approval",l="draft",c="new",u="draft",d="edit",h=e=>{let t=e.toString().toLowerCase().trim();[{to:"a",from:"\xc0\xc1\xc2\xc3\xc4\xc5\xc6\u0100\u0102\u0104\u1ea0\u1ea2\u1ea4\u1ea6\u1ea8\u1eaa\u1eac\u1eae\u1eb0\u1eb2\u1eb4\u1eb6"},{to:"c",from:"\xc7\u0106\u0108\u010c"},{to:"d",from:"\xd0\u010e\u0110\xde"},{to:"e",from:"\xc8\xc9\xca\xcb\u0112\u0114\u0116\u0118\u011a\u1eb8\u1eba\u1ebc\u1ebe\u1ec0\u1ec2\u1ec4\u1ec6"},{to:"g",from:"\u011c\u011e\u0122\u01f4"},{to:"h",from:"\u0124\u1e26"},{to:"i",from:"\xcc\xcd\xce\xcf\u0128\u012a\u012e\u0130\u1ec8\u1eca"},{to:"j",from:"\u0134"},{to:"ij",from:"\u0132"},{to:"k",from:"\u0136"},{to:"l",from:"\u0139\u013b\u013d\u0141"},{to:"m",from:"\u1e3e"},{to:"n",from:"\xd1\u0143\u0145\u0147"},{to:"o",from:"\xd2\xd3\xd4\xd5\xd6\xd8\u014c\u014e\u0150\u1ecc\u1ece\u1ed0\u1ed2\u1ed4\u1ed6\u1ed8\u1eda\u1edc\u1ede\u1ee0\u1ee2\u01ea\u01ec\u01a0"},{to:"oe",from:"\u0152"},{to:"p",from:"\u1e55"},{to:"r",from:"\u0154\u0156\u0158"},{to:"s",from:"\xdf\u015a\u015c\u015e\u0160"},{to:"t",from:"\u0162\u0164"},{to:"u",from:"\xd9\xda\xdb\xdc\u0168\u016a\u016c\u016e\u0170\u0172\u1ee4\u1ee6\u1ee8\u1eea\u1eec\u1eee\u1ef0\u01af"},{to:"w",from:"\u1e82\u0174\u1e80\u1e84"},{to:"x",from:"\u1e8d"},{to:"y",from:"\xdd\u0176\u0178\u1ef2\u1ef4\u1ef6\u1ef8"},{to:"z",from:"\u0179\u017b\u017d"},{to:"-",from:"\xb7/_,:;'"}].forEach((e=>{t=t.replace(new RegExp("[".concat(e.from,"]"),"gi"),e.to)}));const r=encodeURIComponent(t.replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""));return r.length>0?r:"no-slug"},p=e=>{const t=e&&"function"===typeof e.trim?e.trim():null;if(!t)return null;const r=parseFloat(t);return!isNaN(r)&&r.toString()===t?r:null},f=e=>"".concat(e.lat,",").concat(e.lng),m=e=>{const t=e.split(",");if(2!==t.length)return null;const r=p(t[0]),n=p(t[1]);return null===r||null===n?null:new o(r,n)},g=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];var i;return t[r]=n instanceof a?"".concat(f((i=n).ne),",").concat(f(i.sw)):n instanceof o?f(n):n,t}),{}),_=e=>{const t=g(e),r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!==n&&(e[r]=n),e}),{});return n.stringify(r)},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{latlng:r=[],latlngBounds:i=[]}=t,o=n.parse(e);return Object.keys(o).reduce(((e,t)=>{const n=o[t];if(r.includes(t))e[t]=m(n);else if(i.includes(t))e[t]=(e=>{const t=e.split(",");if(4!==t.length)return null;const r=m("".concat(t[0],",").concat(t[1])),n=m("".concat(t[2],",").concat(t[3]));return null===r||null===n?null:new a(r,n)})(n);else if("true"===n)e[t]=!0;else if("false"===n)e[t]=!1;else{const r=p(n);e[t]=null===r?n:r}return e}),{})}},23526:(e,t,r)=>{"use strict";r.d(t,{Bp:()=>y,Cu:()=>m,EC:()=>T,EP:()=>x,G7:()=>I,H5:()=>A,K9:()=>c,L6:()=>M,OR:()=>b,Ru:()=>v,SE:()=>S,Su:()=>f,Zm:()=>P,fr:()=>_,hq:()=>w,k3:()=>k,kO:()=>p,mw:()=>h,sV:()=>g,wz:()=>l});var n=r(475),i=r.n(n),o=r(55346);r(2376);const{LatLng:a,Money:s}=o.gK,l=8,c=256,u=e=>"string"===typeof e&&e.trim().length>
20,d=void 0,h=e=>t=>"undefined"===typeof t||null===t?e:"string"===typeof t?u(t)?d:e:d,p=e=>t=>"string"===typeof t&&t.length>0?d:e,f=e=>t=>"boolean"===typeof t?d:e,m=e=>t=>u(t)?d:e,g=e=>t=>{if(!t)return e;return i()(t).filter((e=>!!e[1])).length>0?d:e},_=e=>t=>{var r;if("undefined"===typeof t||null===t||0===(null===(r=Object.values(t))||void 0===r?void 0:r.length))return e},y=(e,t)=>r=>r&&"number"===typeof r.length&&r.length>=t?d:e,v=(e,t)=>r=>{if(!r)return d;return r&&"number"===typeof r.length&&r.length<=t?d:e},b=e=>t=>t&&Array.isArray(t)&&t.length>0?d:e,x=e=>t=>t&&t.search?d:e,w=e=>t=>t&&t.selectedPlace&&t.selectedPlace.address&&t.selectedPlace.origin instanceof a?d:e,A=e=>t=>t&&t.date instanceof Date?d:e,S=(e,t)=>r=>{const n=r&&r.startDate instanceof Date,i=r&&r.endDate instanceof Date;return n?i?d:t:e},E=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,T=e=>t=>t&&E.test(t)?d:e,P=(e,t)=>r=>r instanceof s&&r.amount>=t?d:e,C=e=>{const t=Number.parseInt(e,10);return Number.isNaN(t)?null:t},I=(e,t)=>r=>{const n=C(r);return"number"===typeof n&&n>=t?d:e},M=(e,t,r,n,i)=>{const o=Number.parseInt(e,10);return o>t?i:o<r?n:d},k=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>t.reduce(((t,r)=>t||r(e)),d)}},73541:(e,t,r)=>{"use strict";r.d(t,{V1:()=>n});function n(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}},96478:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:u,n=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:r,serializer:n})}function i(e,t,r,n){var i,o=null==(i=n)||"number"===typeof i||"boolean"===typeof i?n:r(n),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,n),t.set(o,a)),a}function o(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,n),t.set(i,o)),o}function a(e,t,r,n,i){return r.bind(t,e,n,i)}function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}r.d(t,{A:()=>n,W:()=>d});var l=function(){return JSON.stringify(arguments)};function c(){this.cache=Object.create(null)}c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var u={create:function(){return new c}},d={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},85652:(e,t,r)=>{"use strict";r.d(t,{ZE:()=>i,Im:()=>l,tv:()=>u,Tu:()=>_,eW:()=>s,oF:()=>c,N1:()=>g,N6:()=>p,jA:()=>f,Jp:()=>h,xm:()=>m,Qh:()=>d,qg:()=>oe});var n,i,o,a=r(6326);function s(e){return e.type===i.literal}function l(e){return e.type===i.argument}function c(e){return e.type===i.number}function u(e){return e.type===i.date}function d(e){return e.type===i.time}function h(e){return e.type===i.select}function p(e){return e.type===i.plural}function f(e){return e.type===i.pound}function m(e){return e.type===i.tag}function g(e){return!(!e||"object"!==typeof e||e.type!==o.number)}function _(e){return!(!e||"object"!==typeof e||e.type!==o.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(o||(o={}));var y=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,v=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function b(e){var t={};return e.replace(v,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var x=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var w=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,A=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,E=/^(0+)$/;function T(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(A,(function(e,r,n){return"string"!==typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"===typeof n?n.length:0)),""})),t}function P(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function C(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!E.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function I(e){var t=P(e);return t||{}}function M(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;
vendor: 22,437 bytes, line 2
2case"scientific":t=(0,a.Cl)((0,a.Cl)((0,a.Cl)({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return(0,a.Cl)((0,a.Cl)({},e),I(t))}),{}));continue;case"engineering":t=(0,a.Cl)((0,a.Cl)((0,a.Cl)({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return(0,a.Cl)((0,a.Cl)({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(S,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(E.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(w.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(w,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=(0,a.Cl)((0,a.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,a.Cl)((0,a.Cl)({},t),T(o)))}else if(A.test(i.stem))t=(0,a.Cl)((0,a.Cl)({},t),T(i.stem));else{var s=P(i.stem);s&&(t=(0,a.Cl)((0,a.Cl)({},t),s));var l=C(i.stem);l&&(t=(0,a.Cl)((0,a.Cl)({},t),l))}}return t}var k,O={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function R(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(O[r||""]||O[n||""]||O["".concat(n,"-001")]||O["001"])[0]}var L=new RegExp("^".concat(y.source,"*")),D=new RegExp("".concat(y.source,"*$"));function N(e,t){return{start:e,end:t}}var F=!!String.prototype.startsWith,z=!!String.fromCodePoint,j=!!Object.fromEntries,B=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,V=!!String.prototype.trimEnd,q=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},H=!0;try{H="a"===(null===(k=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===k?void 0:k[0])}catch(ae){H=!1}var G,W=F?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},Y=z?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Z=j?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},K=B?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},X=U?function(e){return e.trimStart()}:function(e){return e.replace(L,"")},J=V?function(e){return e.trimEnd()}:function(e){return e.replace(D,"")};function Q(e,t){return new RegExp(e,t)}if(H){var $=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");G=function(e,t){var r;return $.lastIndex=t,null!==(r=$.exec(e)[1])&&void 0!==r?r:""}}else G=function(e,t){for(var r=[];;){var n=K(e,t);if(void 0===n||re(n)||ne(n))break;r.push(n),t+=n>=65536?2:1}return Y.apply(void 0,r)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,r)).err)return s;o.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(n.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;o.push(s.val)}}else{var l=this.clonePosition();this.bump(),o.push({type:i.pound,location:N(l,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:N(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!te(this.char()))return this.error(n.INVALID_TAG,N(l,this.clonePosition()));var c=this.clonePosition();return o!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,N(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:o,children:s,location:N(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,N(l,this.clonePosition())))}return this.error(n.UNCLOSED_TAG,N(r,this.clonePosition()))}return this.error(n.INVALID_TAG,N(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o)n+=o;else{var a=this.tryParseUnquoted(e,t);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var l=N(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return Y.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),Y(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,N(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(n.MALFORMED_ARGUMENT,N(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:N(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(n.MALFORMED_ARGUMENT,N(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=G(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:N(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,s){var l,c=this.clonePosition(),u=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(u){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,N(c,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((w=this.parseSimpleArgStyleIfPossible()).err)return w;if(0===(_=J(w.val)).length)return this.error(n.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));h={style:_,styleLocation:N(p,this.clonePosition())}}if((A=this.tryParseArgumentClose(s)).err)return A;var f=N(s,this.clonePosition());if(h&&W(null===h||void 0===h?void 0:h.style,"::",0)){var m=X(h.style.slice(2));if("number"===u)return(w=this.parseNumberSkeletonFromString(m,h.styleLocation)).err?w:{val:{type:i.number,value:r,location:f,style:w.val},err:null};if(0===m.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,f);var g=m;this.locale&&(g=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),l=R(t);for("H"!=l&&"k"!=l||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=l+r}else r+="J"===i?"H":i}return r}(m,this.locale));var _={type:o.dateTime,pattern:g,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?b(g):{}};return{val:{type:"date"===u?i.date:i.time,value:r,location:f,style:_},err:null}}return{val:{type:"number"===u?i.number:"date"===u?i.date:i.time,value:r,location:f,style:null!==(l=null===h||void 0===h?void 0:h.style)&&void 0!==l?l:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,N(y,(0,a.Cl)({},y)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),x=0;if("select"!==u&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));var w;if(this.bumpSpace(),(w=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return w;this.bumpSpace(),v=this.parseIdentifierIfPossible(),x=w.val}var A,S=this.tryParsePluralOrSelectOptions(e,u,t,v);if(S.err)return S;if((A=this.tryParseArgumentClose(s)).err)return A;var E=N(s,this.clonePosition());return"select"===u?{val:{type:i.select,value:r,options:Z(S.val),location:E},err:null}:{val:{type:i.plural,value:r,options:Z(S.val),offset:x,pluralType:"plural"===u?"cardinal":"ordinal",location:E},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,N(c,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,N(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(x).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,l=a;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(i){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:o.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?M(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var o,a=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(0===c.length){var d=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=N(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}if(l.has(c))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===c&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,r);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([c,{value:f.val,location:N(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),c=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(n.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=N(n,this.clonePosition());return i?q(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=K(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&re(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!==r&&void 0!==r?r:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function re(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ne(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>
2=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,h(e)||p(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else c(e)&&g(e.style)||(u(e)||d(e))&&_(e.style)?delete e.style.location:m(e)&&ie(e.children)}))}function oe(e,t){void 0===t&&(t={}),t=(0,a.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ee(e,t).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null===t||void 0===t?void 0:t.captureLocation)||ie(r.val),r.val}},24373:(e,t,r)=>{"use strict";r.d(t,{Ar:()=>o,Ho:()=>u,OC:()=>a,hr:()=>l,lo:()=>n,pg:()=>c,sb:()=>d,uo:()=>s});var n,i=r(6326);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var o=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n," \n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,i.C6)(t,e),t}(Error),a=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.C6)(t,e),t}(o),c=function(e){function t(t,r,i){return e.call(this,n.FORMAT_ERROR,"".concat(t," \nLocale: ").concat(r,"\n"),i)||this}return(0,i.C6)(t,e),t}(o),u=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t," \nMessageID: ").concat(null===n||void 0===n?void 0:n.id,"\nDefault Message: ").concat(null===n||void 0===n?void 0:n.defaultMessage,"\nDescription: ").concat(null===n||void 0===n?void 0:n.description," \n"),r,i)||this;return o.descriptor=n,o}return(0,i.C6)(t,e),t}(c),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message":"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.C6)(t,e),t}(o)},84530:(e,t,r)=>{"use strict";r.d(t,{F3:()=>h,GT:()=>d,J9:()=>s,JF:()=>l,MT:()=>c});var n=r(6326),i=r(55764),o=r(96478),a=r(24373);function s(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var l={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function d(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:u(e.dateTime),strategy:o.W.variadic}),l=(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:u(e.number),strategy:o.W.variadic}),c=(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:u(e.pluralRules),strategy:o.W.variadic});return{getDateTimeFormat:s,getNumberFormat:l,getMessageFormat:(0,o.A)((function(e,t,r,o){return new i.S(e,t,r,(0,n.Cl)({formatters:{getNumberFormat:l,getDateTimeFormat:s,getPluralRules:c}},o||{}))}),{cache:u(e.message),strategy:o.W.variadic}),getRelativeTimeFormat:(0,o.A)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,(0,n.fX)([void 0],e,!1)))}),{cache:u(e.relativeTime),strategy:o.W.variadic}),getPluralRules:c,getListFormat:(0,o.A)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,(0,n.fX)([void 0],e,!1)))}),{cache:u(e.list),strategy:o.W.variadic}),getDisplayNames:(0,o.A)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(a.bind.apply(a,(0,n.fX)([void 0],e,!1)))}),{cache:u(e.displayNames),strategy:o.W.variadic})}}function h(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new a.OC("No ".concat(t," format named: ").concat(r)))}},56356:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>M,ai:()=>C});var n=r(65043),i=r(98587),o=r(58168),a=r(9417),s=r(77387),l=r(2086),c=r(80219),u=r.n(c);function d(e,t){if(!e){var r=new Error("loadable: "+t);throw r.framesToPop=1,r.name="Invariant Violation",r}}function h(e){console.warn("loadable: "+e)}var p=n.createContext(),f="__LOADABLE_REQUIRED_CHUNKS__";function m(e){return""+e+f}var g={initialChunks:{}},_="PENDING",y="REJECTED";var v=function(e){return e};function b(e){var t=e.defaultResolveComponent,r=void 0===t?v:t,c=e.render,h=e.onLoad;function f(e,t){void 0===t&&(t={});var f=function(e){return"function"===typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function v(e){return t.cacheKey?t.cacheKey(e):f.resolve?f.resolve(e):"static"}
2function b(e,n,i){var o=t.resolveComponent?t.resolveComponent(e,n):r(e);if(t.resolveComponent&&!(0,l.isValidElementType)(o))throw new Error("resolveComponent returned something that is not a React component!");return u()(i,o,{preload:!0}),o}var x=function(e){var t=v(e),r=m[t];return r&&r.status!==y||((r=f.requireAsync(e)).status=_,m[t]=r,r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:f.resolve(e),chunkName:f.chunkName(e),error:t?t.message:t}),r.status=y}))),r},w=function(e){var t=function(t){return n.createElement(p.Consumer,null,(function(r){return n.createElement(e,Object.assign({__chunkExtractor:r},t))}))};return e.displayName&&(t.displayName=e.displayName+"WithChunkExtractor"),t}(function(e){function r(r){var n;return(n=e.call(this,r)||this).state={result:null,error:null,loading:!0,cacheKey:v(r)},d(!r.__chunkExtractor||f.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),r.__chunkExtractor?(!1===t.ssr||(f.requireAsync(r).catch((function(){return null})),n.loadSync(),r.__chunkExtractor.addChunk(f.chunkName(r))),(0,a.A)(n)):(!1!==t.ssr&&(f.isReady&&f.isReady(r)||f.chunkName&&g.initialChunks[f.chunkName(r)])&&n.loadSync(),n)}(0,s.A)(r,e),r.getDerivedStateFromProps=function(e,t){var r=v(e);return(0,o.A)({},t,{cacheKey:r,loading:t.loading||t.cacheKey!==r})};var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===y&&this.setCache(),this.state.loading&&this.loadAsync()},n.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},n.componentWillUnmount=function(){this.mounted=!1},n.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},n.getCacheKey=function(){return v(this.props)},n.getCache=function(){return m[this.getCacheKey()]},n.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},n.triggerOnLoad=function(){var e=this;h&&setTimeout((function(){h(e.state.result,e.props)}))},n.loadSync=function(){if(this.state.loading)try{var e=b(f.requireSync(this.props),this.props,A);this.state.result=e,this.state.loading=!1}catch(t){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:f.resolve(this.props),chunkName:f.chunkName(this.props),error:t?t.message:t}),this.state.error=t}},n.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var r=b(t,e.props,A);e.safeSetState({result:r,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},n.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,i.A)(e,["__chunkExtractor","forwardedRef"]));return x(t)},n.render=function(){var e=this.props,r=e.forwardedRef,n=e.fallback,a=(e.__chunkExtractor,(0,i.A)(e,["forwardedRef","fallback","__chunkExtractor"])),s=this.state,l=s.error,u=s.loading,d=s.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===_)throw this.loadAsync();if(l)throw l;var h=n||t.fallback||null;return u?h:c({fallback:h,result:d,options:t,props:(0,o.A)({},a,{ref:r})})},r}(n.Component)),A=n.forwardRef((function(e,t){return n.createElement(w,Object.assign({forwardedRef:t},e))}));return A.displayName="Loadable",A.preload=function(e){A.load(e)},A.load=function(e){return x(e)},A}return{loadable:f,lazy:function(e,t){return f(e,(0,o.A)({},t,{suspense:!0}))}}}var x=b({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,r=e.props;return n.createElement(t,r)}}),w=x.loadable,A=x.lazy,S=b({onLoad:function(e,t){e&&t.forwardedRef&&("function"===typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,r=e.props;return r.children?r.children(t):null}}),E=S.loadable,T=S.lazy,P="undefined"!==typeof window;function C(e,t){void 0===e&&(e=function(){});var r=void 0===t?{}:t,n=r.namespace,i=void 0===n?"":n,o=r.chunkLoadingGlobal,a=void 0===o?"__LOADABLE_LOADED_CHUNKS__":o;if(!P)return h("`loadableReady()` must be called in browser only"),e(
2),Promise.resolve();var s=null;if(P){var l=m(i),c=document.getElementById(l);if(c){s=JSON.parse(c.textContent);var u=document.getElementById(l+"_ext");if(!u)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(u.textContent).namedChunks.forEach((function(e){g.initialChunks[e]=!0}))}}if(!s)return h("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var d=!1;return new Promise((function(e){window[a]=window[a]||[];var t=window[a],r=t.push.bind(t);function n(){s.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(d||(d=!0,e()))}t.push=function(){r.apply(void 0,arguments),n()},n()})).then(e)}var I=w;I.lib=E,A.lib=T;const M=I},51809:e=>{"use strict";var t={};function r(e){return Math.floor(Math.abs(e)+.5)*(e>=0?1:-1)}function n(e,t,n){var i=(e=r(e*n))-(t=r(t*n));i<<=1,e-t<0&&(i=~i);for(var o="";i>=32;)o+=String.fromCharCode(63+(32|31&i)),i>>=5;return o+=String.fromCharCode(i+63)}function i(e){for(var t=[],r=0;r<e.length;r++){var n=e[r].slice();t.push([n[1],n[0]])}return t}t.decode=function(e,t){for(var r,n=0,i=0,o=0,a=[],s=0,l=0,c=null,u=Math.pow(10,Number.isInteger(t)?t:5);n<e.length;){c=null,s=0,l=0;do{l|=(31&(c=e.charCodeAt(n++)-63))<<s,s+=5}while(c>=32);r=1&l?~(l>>1):l>>1,s=l=0;do{l|=(31&(c=e.charCodeAt(n++)-63))<<s,s+=5}while(c>=32);i+=r,o+=1&l?~(l>>1):l>>1,a.push([i/u,o/u])}return a},t.encode=function(e,t){if(!e.length)return"";for(var r=Math.pow(10,Number.isInteger(t)?t:5),i=n(e[0][0],0,r)+n(e[0][1],0,r),o=1;o<e.length;o++){var a=e[o],s=e[o-1];i+=n(a[0],s[0],r),i+=n(a[1],s[1],r)}return i},t.fromGeoJSON=function(e,r){if(e&&"Feature"===e.type&&(e=e.geometry),!e||"LineString"!==e.type)throw new Error("Input must be a GeoJSON LineString");return t.encode(i(e.coordinates),r)},t.toGeoJSON=function(e,r){return{type:"LineString",coordinates:i(t.decode(e,r))}},e.exports&&(e.exports=t)},17254:(e,t,r)=>{"use strict";r.d(t,{B:()=>a,V:()=>o});var n=r(3129),i={};function o(){return(0,n.wD)()?r.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:i}function a(e,t,r){var n=r||o(),i=n.__SENTRY__=n.__SENTRY__||{};return i[e]||(i[e]=t())}},3129:(e,t,r)=>{"use strict";function n(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function i(e,t){return e.require(t)}r.d(t,{fj:()=>i,wD:()=>n}),e=r.hmd(e)},81e3:(e,t,r)=>{"use strict";r.d(t,{lu:()=>l,zf:()=>c});var n=r(17254),i=r(3129);e=r.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,n.V)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);!function(){var e=(0,n.V)().performance;if(e&&e.now){var t=36e5,r=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,l="number"===typeof s?Math.abs(s+r-i):t;return a||l<t?o<=l?e.timeOrigin:s:i}0}()},50506:(e,t,r)=>{"use strict";var n=r(35340),i=r(18948),o=r(80489),a=r(30193),s=r(38236),l=r(16547);e.exports=function(){var e=l(this),t=s(o(e,"length")),r=1;arguments.length>0&&"undefined"!==typeof arguments[0]&&(r=a(arguments[0]));var c=n(e,0);return i(c,e,t,0,r),c}},23602:(e,t,r)=>{"use strict";var n=r(11779),i=r(61712),o=r(50506),a=r(68691),s=a(),l=r(33093),c=i(s);n(c,{getPolyfill:a,implementation:o,shim:l}),e.exports=c},68691:(e,t,r)=>{"use strict";var n=r(50506);e.exports=function(){return Array.prototype.flat||n}},33093:(e,t,r)=>{"use strict";var n=r(11779),i=r(28256),o=r(68691);e.exports=function(){var e=o();return n(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),i("flat"),e}},15747:(e,t,r)=>{"use strict";var n=r(63864),i=r(5061),o=r(4937),a=r(94590);e.exports=a||n.call(o,i)},56142:(e,t,r)=>{"use strict";var n=r(63864),i=r(5061),o=r(15747);e.exports=function(){return o(n,i,arguments)}},5061:e=>{"use strict";e.exports=Function.prototype.apply},4937:e=>{"use strict";e.exports=Function.prototype.call},4781:(e,t,r)=>{"use strict";var n=r(63864),i=r(54902),o=r(4937),a=r(15747);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(n,o,e)}},94590:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},61712:(e,t,r)=>{"use strict";var n=r(75438),i=r(82090),o=r(4781),a=r(56142);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},88117:(e,t,r)=>{"use strict";var n=r(60002),i=r(4781),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&o(e,".prototype.")>-1?i([r]):r}},95707:e=>{"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function i(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=i(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var r={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},i=n.exec(e);i;){try{r[i[0]]=decodeURIComponent(i[0])}catch(t){var a=o(i[0]);a!==i[0]&&(r[i[0]]=a)}i=n.exec(e)}r["%C2"]="\ufffd";for(var s=Object.keys(r),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),r[c])}return e}(e)}}},74992:(e,t,r)=>{"use strict";
2var n=r(82090),i=r(62557),o=r(54902),a=r(95558);e.exports=function(e,t,r){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},11779:(e,t,r)=>{"use strict";var n=r(2678),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(74992),l=r(12101)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!==typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;l?s(e,t,r,!0):s(e,t,r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)c(e,o[s],t[o[s]],r[o[s]])};u.supportsDescriptors=!!l,e.exports=u},37297:(e,t,r)=>{"use strict";var n,i=r(4781),o=r(95558);try{n=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"===typeof a.get?i([a.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},46133:(e,t,r)=>{"use strict";var n=r(4781),i=r(95558),o=r(54902),a={};try{a.__proto__=null}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var s=!("toString"in a),l=i&&i(Object.prototype,"__proto__");e.exports=s&&(!!l&&"function"===typeof l.set&&n([l.set])||function(e,t){if(null==e)throw new o("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})},82090:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(r){t=!1}e.exports=t},79820:e=>{"use strict";e.exports=EvalError},29304:e=>{"use strict";e.exports=Error},1725:e=>{"use strict";e.exports=RangeError},75077:e=>{"use strict";e.exports=ReferenceError},62557:e=>{"use strict";e.exports=SyntaxError},54902:e=>{"use strict";e.exports=TypeError},63094:e=>{"use strict";e.exports=URIError},56973:(e,t,r)=>{"use strict";var n=r(54902);e.exports=function(e){if(null==e)throw new n(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},34105:(e,t,r)=>{"use strict";var n=r(51251),i=r(56973);e.exports=function(e){return i(e),n(e)}},51251:e=>{"use strict";e.exports=Object},28256:(e,t,r)=>{"use strict";var n=r(34384),i="function"===typeof Symbol&&"symbol"===typeof Symbol.unscopables,o=i&&Array.prototype[Symbol.unscopables],a=TypeError;e.exports=function(e){if("string"!==typeof e||!e)throw new a("method must be a non-empty string");if(!n(Array.prototype,e))throw new a("method must be on Array.prototype");i&&(o[e]=!0)}},39536:(e,t,r)=>{"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,i=r(38561),o=r(78799),a=r(53913),s=r(24107);e.exports=function(e){if(i(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!==r&&"undefined"!==typeof r){if(!o(r))throw new TypeError(r+" returned for property "+String(t)+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var l=t.call(e,r);if(i(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(a(e)||s(e))&&(r="string"),function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(r=e[s[a]],o(r)&&(n=r.call(e),i(n)))return n;throw new TypeError("No default value")}(e,"default"===r?"number":r)}},38561:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},10038:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},1863:(e,t,r)=>{"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function i(e,t,r,i){void 0===i&&(i=e),delete e.fields[t.name],e.fields[r]=n({},t,{name:r,change:i.fields[r]&&i.fields[r].change,blur:i.fields[r]&&i.fields[r].blur,focus:i.fields[r]&&i.fields[r].focus,lastFieldState:void 0}),e.fields[r].change||delete e.fields[r].change,e.fields[r].blur||delete e.fields[r].blur,e.fields[r].focus||delete e.fields[r].focus}r.d(t,{A:()=>u});var o=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},a=function(e,t,r){var a=e[0],s=e[1],l=e[2],c=r.changeValue;r.resetFieldState;c(t,a,(function(e){var t=[].concat(e||[]);return t.splice(s,0,l),t}));var u=n({},t.fields),d=new RegExp("^"+o(a)+"\\[(\\d+)\\](.*)");Object.keys(t.fields).sort().reverse().forEach((function(e){var r=d.exec(e);if(r){var n=Number(r[1]);if(n>=s){var o=a+"["+(n+1)+"]"+r[2];i(t,u[e],o)}}}))};function s(e,t,r,n){Object.keys(n.fields).forEach((function(o){if(o.substring(0,t.length)===t){var a=o.substring(t.length),s=e+"["+r+"]"+a;i(n,n.fields[o],s)}}))}function l(e,t){Object.keys(e.fields).forEach((function(r){e.fields[r]=n({},e.fields[r],{change:e.fields[r].change||t.fields[r]&&t.fields[r].change,blur:e.fields[r].blur||t.fields[r]&&t.fields[r].blur,focus:e.fields[r].focus||t.fields[r]&&t.fields[r].focus}),e.fields[r].change||delete e.fields[r].change,e.fields[r].blur||delete e.fields[r].blur,e.fields[r].focus||delete e.fields[r].focus}))}var c=function(e,t,r){var a,s=e[0],l=e[1],c=r.changeValue,u=r.renameField;c(t,s,(function(e){var t=[].concat(e||[]);return a=t[l],t.splice(l,1),t}));var d=new RegExp("^"+o(s)+"\\[(\\d+)\\](.*)"),h=n({},t,{fields:n({},t.fields)});return Object.keys(t.fields).forEach((function(e){var r=d.exec(e);if(r){var n=Number(r[1]);if(n===l)delete t.fields[e];else if(n>l){delete t.fields[e];var o=s+"["+(n-1)+"]"+r[2];h.fields[o]?i(t,h.fields[e],o,h):u(t,e,o)}}})),a};const u={insert:a,concat:function(e,t,r){var n=e[0],i=e[1];(0,r.changeValue)(t,n,(function(e){return e?[].concat(e,i):i}))},move:function(e,t,r){var i=e[0],o=e[1],a=e[2],c=r.changeValue;if(o!==a){c(t,i,(function(e){var t=[].concat(e||[]),r=t[o];return t.splice(o,1),t.splice(a,0,r),t}));var u=n({},t,{fields:n({},t.fields)});if(s(i,i+"["+o+"]","tmp",t),o<a)for(var d=o+1;d<=a;d++){s(i,i+"["+d+"]",""+(d-1),t)}else for(var h=o-1;h>=a;h--){s(i,i+"["+h+"]",""+(h+1),t)}s(i,i+"[tmp]",a,t),l(t,u)}},pop:function(e,t,r){var n,i,a=e[0];if((0,r.changeValue)(t,a,(function(e){if(e)return e.length?(i=e.length-1,n=e[i],e.slice(0,i)):[]})),void 0!==i){var s=new RegExp("^"+o(a)+"\\["+i+"].*");Object.keys(t.fields).forEach((function(e){s.test(e)&&delete t.fields[e]}))}return n},push:function(e,t,r){var n=e[0],i=e[1];(0,r.changeValue)(t,n,(function(e){return e?[].concat(e,[i]):[i]}))},remove:c,removeBatch:function(e,t,r){var a=e[0],s=e[1],l=r.changeValue,c=[].concat(s);c.sort();for(var u=0;u<c.length;u++)u>
20&&c[u]===c[u-1]&&c.splice(u--,1);var d=[];l(t,a,(function(e){if(d=s.map((function(t){return e&&e[t]})),!e||!c.length)return e;var t=[].concat(e),r=[];return c.forEach((function(n){t.splice(n-r.length,1),r.push(e&&e[n])})),t}));var h=new RegExp("^"+o(a)+"\\[(\\d+)\\](.*)"),p=n({},t,{fields:{}});return Object.keys(t.fields).forEach((function(e){var r,n=h.exec(e);if(n){var o=Number(n[1]);if(!~c.indexOf(o)){var s=a+"["+(o-(r=o,c.reduce((function(e,t){return t<r?e+1:e}),0)))+"]"+n[2];i(p,t.fields[e],s,t)}}else p.fields[e]=t.fields[e]})),t.fields=p.fields,d},shift:function(e,t,r){var n=e[0];return c([n,0],t,r)},swap:function(e,t,r){var i=e[0],o=e[1],a=e[2],c=r.changeValue;if(o!==a){c(t,i,(function(e){var t=[].concat(e||[]),r=t[o];return t[o]=t[a],t[a]=r,t}));var u=n({},t,{fields:n({},t.fields)}),d=i+"["+a+"]",h=i+"[tmp]";s(i,i+"["+o+"]","tmp",t),s(i,d,o,t),s(i,h,a,t),l(t,u)}},unshift:function(e,t,r){var n=e[0],i=e[1];return a([n,0,i],t,r)},update:function(e,t,r){var n=e[0],i=e[1],o=e[2];(0,r.changeValue)(t,n,(function(e){var t=[].concat(e||[]);return t.splice(i,1,o),t}))}}},79811:(e,t,r)=>{"use strict";r.d(t,{DG:()=>O,bS:()=>m,iF:()=>_,rE:()=>P,u9:()=>w});var n=r(98587);const i=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};var o=".".charCodeAt(0),a=/\\(\\)?/g,s=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),l={},c=function(e){if(null===e||void 0===e||!e.length)return[];if("string"!==typeof e)throw new Error("toPath() expects a string");return null==l[e]&&(l[e]=function(e){var t=[];return e.charCodeAt(0)===o&&t.push(""),e.replace(s,(function(e,r,n,i){var o=e;n?o=i.replace(a,"$1"):r&&(o=r.trim()),t.push(o)})),t}(e)),l[e]},u=function(e,t){for(var r=c(t),n=e,i=0;i<r.length;i++){var o=r[i];if(void 0===n||null===n||"object"!==typeof n||Array.isArray(n)&&isNaN(o))return;n=n[o]}return n};function d(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var h=function e(t,r,o,a,s){if(r>=o.length)return a;var l=o[r];if(isNaN(l)){var c;if(void 0===t||null===t){var u,h=e(void 0,r+1,o,a,s);return void 0===h?void 0:((u={})[l]=h,u)}if(Array.isArray(t))throw new Error("Cannot set a non-numeric property on an array");var p=e(t[l],r+1,o,a,s);if(void 0===p){var f=Object.keys(t).length;if(void 0===t[l]&&0===f)return;return void 0!==t[l]&&f<=1?isNaN(o[r-1])||s?void 0:{}:(t[l],(0,n.A)(t,[l].map(d)))}return i({},t,((c={})[l]=p,c))}var m=Number(l);if(void 0===t||null===t){var g=e(void 0,r+1,o,a,s);if(void 0===g)return;var _=[];return _[m]=g,_}if(!Array.isArray(t))throw new Error("Cannot set a numeric property on an object");var y=e(t[m],r+1,o,a,s),v=[].concat(t);if(s&&void 0===y){if(v.splice(m,1),0===v.length)return}else v[m]=y;return v},p=function(e,t,r,n){if(void 0===n&&(n=!1),void 0===e||null===e)throw new Error("Cannot call setIn() with "+String(e)+" state");if(void 0===t||null===t)throw new Error("Cannot call setIn() with "+String(t)+" key");return h(e,0,c(t),r,n)},f="FINAL_FORM/form-error",m="FINAL_FORM/array-error";function g(e,t){var r=e.errors,n=e.initialValues,i=e.lastSubmittedValues,o=e.submitErrors,a=e.submitFailed,s=e.submitSucceeded,l=e.submitting,c=e.values,d=t.active,h=t.blur,p=t.change,f=t.data,g=t.focus,_=t.modified,y=t.modifiedSinceLastSubmit,v=t.name,b=t.touched,x=t.validating,w=t.visited,A=u(c,v),S=u(r,v);S&&S[m]&&(S=S[m]);var E=o&&u(o,v),T=n&&u(n,v),P=t.isEqual(T,A),C=!S&&!E;return{active:d,blur:h,change:p,data:f,dirty:!P,dirtySinceLastSubmit:!(!i||t.isEqual(u(i,v),A)),error:S,focus:g,initial:T,invalid:!C,length:Array.isArray(A)?A.length:void 0,modified:_,modifiedSinceLastSubmit:y,name:v,pristine:P,submitError:E,submitFailed:a,submitSucceeded:s,submitting:l,touched:b,valid:C,value:A,visited:w,validating:x}}var _=["active","data","dirty","dirtySinceLastSubmit","error","initial","invali
2d","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],y=function(e,t){if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<r.length;o++){var a=r[o];if(!i(a)||e[a]!==t[a])return!1}return!0};function v(e,t,r,n,i,o){var a=!1;return i.forEach((function(i){n[i]&&(e[i]=t[i],r&&(~o.indexOf(i)?y(t[i],r[i]):t[i]===r[i])||(a=!0))})),a}var b=["data"],x=function(e,t,r,n){var i={blur:e.blur,change:e.change,focus:e.focus,name:e.name};return v(i,e,t,r,_,b)||!t||n?i:void 0},w=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"],A=["touched","visited"];function S(e,t,r,n){var i={};return v(i,e,t,r,w,A)||!t||n?i:void 0}var E=function(e){var t,r;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t&&i.length===t.length&&!i.some((function(e,r){return!y(t[r],e)}))||(t=i,r=e.apply(void 0,i)),r}},T=function(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then},P="4.20.7",C=function(e,t){return e===t},I=function e(t){return Object.keys(t).some((function(r){var n=t[r];return!n||"object"!==typeof n||n instanceof Error?"undefined"!==typeof n:e(n)}))};function M(e,t,r,n,i,o){var a=i(r,n,t,o);return!!a&&(e(a),!0)}function k(e,t,r,n,i){var o=e.entries;Object.keys(o).forEach((function(e){var a=o[Number(e)];if(a){var s=a.subscription,l=a.subscriber,c=a.notified;M(l,s,t,r,n,i||!c)&&(a.notified=!0)}}))}function O(e){if(!e)throw new Error("No config specified");var t=e.debug,r=e.destroyOnUnregister,n=e.keepDirtyOnReinitialize,o=e.initialValues,a=e.mutators,s=e.onSubmit,l=e.validate,c=e.validateOnBlur;if(!s)throw new Error("No onSubmit function specified");var d={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:o&&i({},o),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:o?i({},o):{}},lastFormState:void 0},h=0,_=!1,v=!1,b=!1,w=0,A={},P=function(e,t,r){var n=r(u(e.formState.values,t));e.formState.values=p(e.formState.values,t,n)||{}},O=function(e,t,r){if(e.fields[t]){var n,o;e.fields=i({},e.fields,((n={})[r]=i({},e.fields[t],{name:r,blur:function(){return H.blur(r)},change:function(e){return H.change(r,e)},focus:function(){return H.focus(r)},lastFieldState:void 0}),n)),delete e.fields[t],e.fieldSubscribers=i({},e.fieldSubscribers,((o={})[r]=e.fieldSubscribers[t],o)),delete e.fieldSubscribers[t];var a=u(e.formState.values,t);e.formState.values=p(e.formState.values,t,void 0)||{},e.formState.values=p(e.formState.values,r,a),delete e.lastFormState}},R=function(e){return function(){if(a){for(var t={formState:d.formState,fields:d.fields,fieldSubscribers:d.fieldSubscribers,lastFormState:d.lastFormState},r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=a[e](n,t,{changeValue:P,getIn:u,renameField:O,resetFieldState:H.resetFieldState,setIn:p,shallowEqual:y});return d.formState=t.formState,d.fields=t.fields,d.fieldSubscribers=t.fieldSubscribers,d.lastFormState=t.lastFormState,N(void 0,(function(){F(),V()})),o}}},L=a?Object.keys(a).reduce((function(e,t){return e[t]=R(t),e}),{}):{},D=function(e){return Object.keys(e.validators).reduce((function(t,r){var n=e.validators[Number(r)]();return n&&t.push(n),t}),[])},N=function(e,t){if(_)return v=!0,void t();var r=d.fields,n=d.formState,o=i({},r),a=Object.keys(o);if(l||a.some((function(e){return D(o[e]).length}))){var s=!1;if(e){var c=o[e];if(c){var h=c.validateFields;h&&(s=!0,a=h.length?h.concat(e):[e])}}var b,x={},S={},E={},P=[].concat(function(e){var t=[];if(l){var r=l(i({},d.formState.values));T(r)?t.push(r.then((function(t){return e(t,!0)}))):e(r,!1)}return t}((function(e,t){t?S=e||{}:x=e||{}})),a.reduce((function(e,t){return e.concat(function(e,t){var r,n=[],i=D(e);return i.length&&(i.forEach((function(i){var o=i(u(d.formState.values,e.name),d.formState.values,0===i.length||3===i.length?g(d.formState,d.fields[e.name]):void 0);if(o&&T(o)){e.validating=!0;var a=o.then((function(r){d.fields[e.name]&&(d.fields[e.name].validating=!1,t(r))}));n.push(a)}else r||(r=o)})),t(r)),n}(r[t],(function(e){E[t]=e})))}),[])),C=P.length>0,I=++w,M=Promise.all(P).then((b=I,function(e){return delete A[b],e}));C&&(A[I]=M);var k=function(e){var t=i({},s?n.errors:{},x,e?S:n.asyncErrors),c=function(e){a.forEach((function(n){if(r[n]){var i=u(x,n),a=u(t,n),c=D(o[n]).length,d=E[n];e(n,c&&d||l&&i||(i||s?void 0:a))}}))};c((function(e,r){t=p(t,e,r)||{}})),c((function(e,r){if(r&&r[m]){var n=u(t,e),i=[].concat(n);i[m]=r[m],t=p(t,e,i)}})),y(n.errors,t)||(n.errors=t),e&&(n.asyncErrors=S),n.error=x[f]};if(C&&(d.formState.validating++,t()),k(!1),t(),C){var O=function(){d.formState.validating--,t()};M.then((function(){w>I||k(!0)})).then(O,O)}}else t()},F=function(e){if(!h){var t=d.fields,r=d.fieldSubscribers,n=d.formState,o=i({},t),a=function(e){var t=o[e],i=g(n,t),a=t.lastFieldState;t.lastFieldState=i;var s=r[e];s&&k(s,i,a,x,void 0===a)};
2e?a(e):Object.keys(o).forEach(a)}},z=function(){Object.keys(d.fields).forEach((function(e){d.fields[e].touched=!0}))},j=function(){var e=d.fields,t=d.formState,r=d.lastFormState,n=i({},e),o=Object.keys(n),a=!1,s=o.reduce((function(e,r){return!n[r].isEqual(u(t.values,r),u(t.initialValues||{},r))&&(a=!0,e[r]=!0),e}),{}),l=o.reduce((function(e,r){var i=t.lastSubmittedValues||{};return n[r].isEqual(u(t.values,r),u(i,r))||(e[r]=!0),e}),{});t.pristine=!a,t.dirtySinceLastSubmit=!(!t.lastSubmittedValues||!Object.values(l).some((function(e){return e}))),t.modifiedSinceLastSubmit=!(!t.lastSubmittedValues||!Object.keys(n).some((function(e){return n[e].modifiedSinceLastSubmit}))),t.valid=!t.error&&!t.submitError&&!I(t.errors)&&!(t.submitErrors&&I(t.submitErrors));var c=function(e){var t=e.active,r=e.dirtySinceLastSubmit,n=e.modifiedSinceLastSubmit,i=e.error,o=e.errors,a=e.initialValues,s=e.pristine,l=e.submitting,c=e.submitFailed,u=e.submitSucceeded,d=e.submitError,h=e.submitErrors,p=e.valid,f=e.validating,m=e.values;return{active:t,dirty:!s,dirtySinceLastSubmit:r,modifiedSinceLastSubmit:n,error:i,errors:o,hasSubmitErrors:!!(d||h&&I(h)),hasValidationErrors:!(!i&&!I(o)),invalid:!p,initialValues:a,pristine:s,submitting:l,submitFailed:c,submitSucceeded:u,submitError:d,submitErrors:h,valid:p,validating:f>0,values:m}}(t),h=o.reduce((function(e,t){return e.modified[t]=n[t].modified,e.touched[t]=n[t].touched,e.visited[t]=n[t].visited,e}),{modified:{},touched:{},visited:{}}),p=h.modified,f=h.touched,m=h.visited;return c.dirtyFields=r&&y(r.dirtyFields,s)?r.dirtyFields:s,c.dirtyFieldsSinceLastSubmit=r&&y(r.dirtyFieldsSinceLastSubmit,l)?r.dirtyFieldsSinceLastSubmit:l,c.modified=r&&y(r.modified,p)?r.modified:p,c.touched=r&&y(r.touched,f)?r.touched:f,c.visited=r&&y(r.visited,m)?r.visited:m,r&&y(r,c)?r:c},B=!1,U=!1,V=function e(){if(B)U=!0;else{if(B=!0,t&&t(j(),Object.keys(d.fields).reduce((function(e,t){return e[t]=d.fields[t],e}),{})),!h&&(!_||!b)){var r=d.lastFormState,n=j();n!==r&&(d.lastFormState=n,k(d.subscribers,n,r,S))}B=!1,U&&(U=!1,e())}},q=function(){return Object.keys(d.fields).forEach((function(e){return d.fields[e].modifiedSinceLastSubmit=!1}))};N(void 0,(function(){V()}));var H={batch:function(e){h++,e(),h--,F(),V()},blur:function(e){var t=d.fields,r=d.formState,n=t[e];n&&(delete r.active,t[e]=i({},n,{active:!1,touched:!0}),c?N(e,(function(){F(),V()})):(F(),V()))},change:function(e,t){var r=d.fields,n=d.formState;if(u(n.values,e)!==t){P(d,e,(function(){return t}));var o=r[e];o&&(r[e]=i({},o,{modified:!0,modifiedSinceLastSubmit:!!n.lastSubmittedValues})),c?(F(),V()):N(e,(function(){F(),V()}))}},get destroyOnUnregister(){return!!r},set destroyOnUnregister(e){r=e},focus:function(e){var t=d.fields[e];t&&!t.active&&(d.formState.active=e,t.active=!0,t.visited=!0,F(),V())},mutators:L,getFieldState:function(e){var t=d.fields[e];return t&&t.lastFieldState},getRegisteredFields:function(){return Object.keys(d.fields)},getState:function(){return j()},initialize:function(e){var t=d.fields,r=d.formState,o=i({},t),a="function"===typeof e?e(r.values):e;n||(r.values=a);var s=n?Object.keys(o).reduce((function(e,t){return o[t].isEqual(u(r.values,t),u(r.initialValues||{},t))||(e[t]=u(r.values,t)),e}),{}):{};r.initialValues=a,r.values=a,Object.keys(s).forEach((function(e){r.values=p(r.values,e,s[e])||{}})),N(void 0,(function(){F(),V()}))},isValidationPaused:function(){return _},pauseValidation:function(e){void 0===e&&(e=!0),_=!0,b=e},registerField:function(e,t,n,i){void 0===n&&(n={}),d.fieldSubscribers[e]||(d.fieldSubscribers[e]={index:0,entries:{}});var o=d.fieldSubscribers[e].index++;d.fieldSubscribers[e].entries[o]={subscriber:E(t),subscription:n,notified:!1},d.fields[e]||(d.fields[e]={active:!1,afterSubmit:i&&i.afterSubmit,beforeSubmit:i&&i.beforeSubmit,blur:function(){return H.blur(e)},change:function(t){return H.change(e,t)},data:i&&i.data||{},focus:function(){return H.focus(e)},isEqual:i&&i.isEqual||C,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:e,touched:!1,valid:!0,validateFields:i&&i.validateFields,validators:{},validating:!1,visited:!1});var a=!1,s=i&&i.silent,l=function(){s?F(e):(V(),F())};if(i){a=!(!i.getValidator||!i.getValidator()),i.getValidator&&(d.fields[e].validators[o]=i.getValidator);var c=void 0===u(d.formState.values,e);void 0===i.initialValue||!c&&u(d.formState.values,e)!==u(d.formState.initialValues,e)||(d.formState.initialValues=p(d.formState.initialValues||{},e,i.initialValue),d.formState.values=p(d.formState.values,e,i.initialValue),N(void 0,l)),void 0!==i.defaultValue&&void 0===i.initialValue&&void 0===u(d.formState.initialValues,e)&&c&&(d.formState.values=p(d.formState.values,e,i.defaultValue))}return a?N(void 0,l):l(),function(){var t=!1;d.fields[e]&&(t=!(!d.fields[e].validators[o]||!d.fields[e].validators[o]()),delete d.fields[e].validators[o]);var n=!!d.fieldSubscribers[e];n&&delete d.fieldSubscribers[e].entries[o];var i=n&&!Object.keys(d.fieldSubscribers[e].entries).length;i&&(delete d.fieldSubscribers[e],delete d.fields[e],t&&(d.formState.errors=p(d.formState.errors,e,void 0)||{}),r&&(d.formState.values=p(d.formState.values,e,void 0,!0)||{})),s||(t?N(void 0,(function(){V(),F()})):i&&V())}},reset:function(e){void 0===e&&(e=d.formState.initialValues),d.formState.submitting&&(d.formState.resetWhileSubmitting=!0),d.formState.submitFailed=!1,d.formState.submitSucceeded=!1,delete d.formState.submitError,delete d.formState.submitErrors,delete d.formState.lastSubmittedValues,H.initialize(e||{})},resetFieldState:function(e){d.fields[e]=i({},d.fields[e],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),N(void 0,(function(){F(),V()}))},restart:function(e){void 0===e&&(e=d.formState.initialValues),H.batch((function(){for(var t in d.fields)H.resetFieldState(t),d.fields[t]=i({},d.fields[t],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});H.reset(e)}))},resumeValidation:function(){_=!1,b=!1,v&&N(void 0,(function(){F(),V()})),v=!1},setConfig:function(e,i){switch(e){case"debug":t=i;break;
2case"destroyOnUnregister":r=i;break;case"initialValues":H.initialize(i);break;case"keepDirtyOnReinitialize":n=i;break;case"mutators":a=i,i?(Object.keys(L).forEach((function(e){e in i||delete L[e]})),Object.keys(i).forEach((function(e){L[e]=R(e)}))):Object.keys(L).forEach((function(e){delete L[e]}));break;case"onSubmit":s=i;break;case"validate":l=i,N(void 0,(function(){F(),V()}));break;case"validateOnBlur":c=i;break;default:throw new Error("Unrecognised option "+e)}},submit:function(){var e=d.formState;if(!e.submitting){if(delete e.submitErrors,delete e.submitError,e.lastSubmittedValues=i({},e.values),d.formState.error||I(d.formState.errors))return z(),q(),d.formState.submitFailed=!0,V(),void F();var t=Object.keys(A);if(t.length)Promise.all(t.map((function(e){return A[Number(e)]}))).then(H.submit,console.error);else if(!Object.keys(d.fields).some((function(e){return d.fields[e].beforeSubmit&&!1===d.fields[e].beforeSubmit()}))){var r,n=!1,o=function(t){e.submitting=!1;var i=e.resetWhileSubmitting;return i&&(e.resetWhileSubmitting=!1),t&&I(t)?(e.submitFailed=!0,e.submitSucceeded=!1,e.submitErrors=t,e.submitError=t[f],z()):(i||(e.submitFailed=!1,e.submitSucceeded=!0),Object.keys(d.fields).forEach((function(e){return d.fields[e].afterSubmit&&d.fields[e].afterSubmit()}))),V(),F(),n=!0,r&&r(t),t};e.submitting=!0,e.submitFailed=!1,e.submitSucceeded=!1,e.lastSubmittedValues=i({},e.values),q();var a=s(e.values,H,o);
2if(!n){if(a&&T(a))return V(),F(),a.then(o,(function(e){throw o(),e}));if(s.length>=3)return V(),F(),new Promise((function(e){r=e}));o(a)}}}},subscribe:function(e,t){if(!e)throw new Error("No callback given.");if(!t)throw new Error("No subscription provided. What values do you want to listen to?");var r=E(e),n=d.subscribers,i=n.index++;n.entries[i]={subscriber:r,subscription:t,notified:!1};var o=j();return M(r,t,o,o,S,!0),function(){delete n.entries[i]}}};return H}},17724:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!==typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments,1),s=r(0,i.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,o.prototype=new u,u.prototype=null}return o}},63864:(e,t,r)=>{"use strict";var n=r(17724);e.exports=Function.prototype.bind||n},60002:(e,t,r)=>{"use strict";var n,i=r(51251),o=r(29304),a=r(79820),s=r(1725),l=r(75077),c=r(62557),u=r(54902),d=r(63094),h=r(53701),p=r(31911),f=r(4591),m=r(61557),g=r(87583),_=r(60969),y=r(97792),v=Function,b=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(t){}},x=r(95558),w=r(82090),A=function(){throw new u},S=x?function(){try{return A}catch(e){try{return x(arguments,"callee").get}catch(t){return A}}}():A,E=r(72108)(),T=r(51291),P=r(37651),C=r(60757),I=r(5061),M=r(4937),k={},O="undefined"!==typeof Uint8Array&&T?T(Uint8Array):n,R={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":E&&T?T(T([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&E&&T?T((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&E&&T?T((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&T?T(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet,"%Function.prototype.call%":M,"%Function.prototype.apply%":I,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":_,"%Math.sign%":y,"%Reflect.getPrototypeOf%":C};if(T)try{null.error}catch(Y){var L=T(T(Y));R["%Error.prototype%"]=L}var D=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&T&&(r=T(i.prototype))}return R[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=r(63864),z=r(34384),j=F.call(M,Array.prototype.concat),B=F.call(I,Array.prototype.splice),U=F.call(M,String.prototype.replace),V=F.call(M,String.prototype.slice),q=F.call(M,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,W=function(e,t){var r,n=e;if(z(N,n)&&(n="%"+(r=N[n])[0]+"%"),z(R,n)){var i=R[n];if(i===k&&(i=D(n)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=V(e,0,1),r=V(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return U(e,H,(function(e,t,r,i){n[n.length]=r?U(i,G,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],B(r,j([0,1],l)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],f=V(p,0,1),m=V(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),z(R,o="%"+(n+="."+p)+"%"))a=R[o];
2else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=r.length){var g=x(a,p);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else h=z(a,p),a=a[p];h&&!s&&(R[o]=a)}}return a}},37651:(e,t,r)=>{"use strict";var n=r(51251);e.exports=n.getPrototypeOf||null},60757:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},51291:(e,t,r)=>{"use strict";var n=r(60757),i=r(37651),o=r(37297);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},20292:(e,t,r)=>{"use strict";var n=r(11779),i=r(24107),o="__ global cache key __";"function"===typeof Symbol&&i(Symbol("foo"))&&"function"===typeof Symbol.for&&(o=Symbol.for(o));var a=function(){return!0},s=function(){if(!r.g[o]){var e={};e[o]={};var t={};t[o]=a,n(r.g,e,t)}return r.g[o]},l=s(),c=function(e){return i(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},u=function(e){if(!function(e){return null===e||"object"!==typeof e&&"function"!==typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete r.g[o],l=s()},delete:function(e){return u(e),delete l[c(e)],!d.has(e)},get:function(e){return u(e),l[c(e)]},has:function(e){return u(e),c(e)in l},set:function(e,t){u(e);var r=c(e),i={};i[r]=t;var o={};return o[r]=a,n(l,i,o),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var r=t();return d.set(e,r),r}};e.exports=d},68258:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},95558:(e,t,r)=>{"use strict";var n=r(68258);if(n)try{n([],"length")}catch(i){n=null}e.exports=n},12101:(e,t,r)=>{"use strict";var n=r(82090),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},72108:(e,t,r)=>{"use strict";var n="undefined"!==typeof Symbol&&Symbol,i=r(99534);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},99534:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},64635:(e,t,r)=>{"use strict";var n=r(99534);e.exports=function(){return n()&&!!Symbol.toStringTag}},34384:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(63864);e.exports=o.call(n,i)},77321:(e,t,r)=>{"use strict";r.d(t,{zR:()=>A,TM:()=>I,yJ:()=>m,sC:()=>k,AO:()=>f,Fu:()=>g});var n=r(58168);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}const a=function(e,t){void 0===t&&(t="");var r,n=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),l=t&&i(t),c=s||l;if(e&&i(e)?a=n:n.length&&(a.pop(),a=a.concat(n)),!a.length)return"/";if(a.length){var u=a[a.length-1];r="."===u||".."===u||""===u}else r=!1;for(var d=0,h=a.length;h>=0;h--){var p=a[h];"."===p?o(a,h):".."===p?(o(a,h),d++):d&&(o(a,h),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var f=a.join("/");return r&&"/"!==f.substr(-1)&&(f+="/"),f};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,r){if(t===r)return!0;
vendor: 10,069 bytes, line 2
2if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"===typeof t||"object"===typeof r){var n=s(t),i=s(r);return n!==t||i!==r?e(n,i):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1};var c=r(3404);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(i+="#"===n.charAt(0)?n:"#"+n),i}function m(e,t,r,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",r="",n="",i=t.indexOf("#");-1!==i&&(n=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e),o.state=t):(void 0===(o=(0,n.A)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return r&&(o.key=r),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function _(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,i){if(null!=e){var o="function"===typeof e?e(t,r):e;"string"===typeof o?"function"===typeof n?n(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}var b="popstate",x="hashchange";function w(){try{return window.history.state||{}}catch(e){return{}}}function A(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,r=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,l=o.getUserConfirmation,d=void 0===l?v:l,g=o.keyLength,A=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function E(e){var t=e||{},r=t.key,n=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=h(o,S)),m(o,n,r)}function T(){return Math.random().toString(36).substr(2,A)}var P=_();function C(e){(0,n.A)(B,e),B.length=t.length,P.notifyListeners(B.location,B.action)}function I(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||O(E(e.state))}function M(){O(E(w()))}var k=!1;function O(e){if(k)k=!1,C();else{P.confirmTransitionTo(e,"POP",d,(function(t){t?C({action:"POP",location:e}):function(e){var t=B.location,r=L.indexOf(t.key);-1===r&&(r=0);var n=L.indexOf(e.key);-1===n&&(n=0);var i=r-n;i&&(k=!0,N(i))}(e)}))}}var R=E(w()),L=[R.key];function D(e){return S+f(e)}function N(e){t.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?(window.addEventListener(b,I),i&&window.addEventListener(x,M)):0===F&&(window.removeEventListener(b,I),i&&window.removeEventListener(x,M))}var j=!1;var B={length:t.length,action:"POP",location:R,createHref:D,push:function(e,n){var i="PUSH",o=m(e,n,T(),B.location);P.confirmTransitionTo(o,i,d,(function(e){if(e){var n=D(o),a=o.key,l=o.state;if(r)if(t.pushState({key:a,state:l},null,n),s)window.location.href=n;else{var c=L.indexOf(B.location.key),u=L.slice(0,c+1);u.push(o.key),L=u,C({action:i,location:o})}else window.location.href=n}}))},replace:function(e,n){var i="REPLACE",o=m(e,n,T(),B.location);P.confirmTransitionTo(o,i,d,(function(e){if(e){var n=D(o),a=o.key,l=o.state;if(r)if(t.replaceState({key:a,state:l},null,n),s)window.location.replace(n);else{var c=L.indexOf(B.location.key);-1!==c&&(L[c]=o.key),C({action:i,location:o})}else window.location.replace(n)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=P.setPrompt(e);return j||(z(1),j=!0),function(){return j&&(j=!1,z(-1)),t()}},listen:function(e){var t=P.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function T(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function P(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(T(window.location.href)+"#"+e)}function I(e){void 0===e&&(e={}),y||(0,c.A)(!1);var t=window.history,r=(window.navigator.userAgent.indexOf("Firefox"),e),i=r.getUserConfirmation,o=void 0===i?v:i,a=r.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=E[s],g=d.encodePath,b=d.decodePath;function x(){var e=b(P());return l&&(e=h(e,l)),m(e)}var w=_();function A(e){(0,n.A)(B,e),B.length=t.length,w.notifyListeners(B.location,B.action)}var I=!1,M=null;function k(){var e,t,r=P(),n=g(r);if(r!==n)C(n);else{var i=x(),a=B.location;if(!I&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(M===f(i))return;M=null,function(e){if(I)I=!1,A();else{var t="POP";w.confirmTransitionTo(e,t,o,(function(r){r?A({action:t,location:e}):function(e){var t=B.location,r=D.lastIndexOf(f(t));-1===r&&(r=0);var n=D.lastIndexOf(f(e));-1===n&&(n=0);var i=r-n;i&&(I=!0,N(i))}(e)}))}}(i)}}var O=P(),R=g(O);O!==R&&C(R);var L=x(),D=[f(L)];function N(e){t.go(e)}var F=0;function z(e){1===(F+=e)&&1===e?window.addEventListener(S,k):0===F&&window.removeEventListener(S,k)}var j=!1;var B={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),r="";return t&&t.getAttribute("href")&&(r=T(window.location.href)),r+"#"+g(l+f(e))},push:function(e,t){var r="PUSH",n=m(e,void 0,void 0,B.location);w.confirmTransitionTo(n,r,o,(function(e){if(e){var t=f(n),i=g(l+t);if(P()!==i){M=t,function(e){window.location.hash=e}(i);var o=D.lastIndexOf(f(B.location)),a=D.slice(0,o+1);a.push(t),D=a,A({action:r,location:n})}else A()}}))},replace:function(e,t){var r="REPLACE",n=m(e,void 0,void 0,B.location);w.confirmTransitionTo(n,r,o,(function(e){if(e){var t=f(n),i=g(l+t);P()!==i&&(M=t,C(i));var o=D.indexOf(f(B.location));-1!==o&&(D[o]=t),A({action:r,location:n})}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=w.setPrompt(e);return j||(z(1),j=!0),function(){return j&&(j=!1,z(-1)),t()}},listen:function(e){var t=w.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function M(e,t,r){return Math.min(Math.max(e,t),r)}function k(e){void 0===e&&(e={});var t=e,r=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=_();function d(e){(0,n.A)(b,e),b.length=b.entries.length,u.notifyListeners(b.location,b.action)}function h(){return Math.random().toString(36).substr(2,c)}var p=M(s,0,o.length-1),g=o.map((function(e){return m(e,void 0,"string"===typeof e?h():e.key||h())})),y=f;function v(e){var t=M(b.index+e,0,b.entries.length-1),n=b.entries[t];u.confirmTransitionTo(n,"POP",r,(function(e){e?d({action:"POP",location:n,index:t}):d()}))}var b={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var n="PUSH",i=m(e,t,h(),b.location);u.confirmTransitionTo(i,n,r,(function(e){if(e){var t=b.index+1,r=b.entries.slice(0);r.length>t?r.splice(t,r.length-t,i):r.push(i),d({action:n,location:i,index:t,entries:r})}}))},replace:function(e,t){var n="REPLACE",i=m(e,t,h(),b.location);u.confirmTransitionTo(i,n,r,(function(e){e&&(b.entries[b.index]=i,d({action:n,location:i}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=b.index+e;return t>=0&&t<b.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return b}},80219:(e,t,r)=>{"use strict";var n=r(2086),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(f){var i=p(r);i&&i!==f&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<a.length;++g){var _=a[g];if(!o[_]&&(!n||!n[_])&&(!m||!m[_])&&(!s||!s[_])){var y=h(r,_);try{c(t,_,y)}catch(v){}}}}return t}},55764:(e,t,r)=>{"use strict";r.d(t,{S:()=>c});var n=r(6326),i=r(85652),o=r(96478),a=r(40788);function s(e,t){return t?Object.keys(e).reduce((function(r,i){var o,a;return r[i]=(o=e[i],(a=t[i])?(0,n.Cl)((0,n.Cl)((0,n.Cl)({},o||{}),a||{}
2),Object.keys(o).reduce((function(e,t){return e[t]=(0,n.Cl)((0,n.Cl)({},o[t]),a[t]||{}),e}),{})):o),r}),(0,n.Cl)({},e)):e}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var c=function(){function e(t,r,i,c){var u,d=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===a.TT.literal&&"string"===typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,a.hN)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){return{locale:d.resolvedLocale.toString()}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"===typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null===c||void 0===c?void 0:c.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,i),this.formatters=c&&c.formatters||(void 0===(u=this.formatterCache)&&(u={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:l(u.number),strategy:o.W.variadic}),getDateTimeFormat:(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:l(u.dateTime),strategy:o.W.variadic}),getPluralRules:(0,o.A)((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.fX)([void 0],t,!1)))}),{cache:l(u.pluralRules),strategy:o.W.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"===typeof e?e:e[0])},e.__parse=i.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},20417:(e,t,r)=>{"use strict";r.d(t,{$x:()=>a,Ei:()=>l,IF:()=>o,O4:()=>n,Zo:()=>s});var n,i=r(6326);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var o=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,r,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,o)||this}return(0,i.C6)(t,e),t}(o),s=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.C6)(t,e),t}(o),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.C6)(t,e),t}(o)},40788:(e,t,r)=>{"use strict";r.d(t,{RK:()=>a,TT:()=>n,hN:()=>s});
2var n,i=r(85652),o=r(20417);function a(e){return"function"===typeof e}function s(e,t,r,l,c,u,d){if(1===e.length&&(0,i.eW)(e[0]))return[{type:n.literal,value:e[0].value}];for(var h=[],p=0,f=e;p<f.length;p++){var m=f[p];if((0,i.eW)(m))h.push({type:n.literal,value:m.value});else if((0,i.jA)(m))"number"===typeof u&&h.push({type:n.literal,value:r.getNumberFormat(t).format(u)});else{var g=m.value;if(!c||!(g in c))throw new o.Ei(g,d);var _=c[g];if((0,i.Im)(m))_&&"string"!==typeof _&&"number"!==typeof _||(_="string"===typeof _||"number"===typeof _?String(_):""),h.push({type:"string"===typeof _?n.literal:n.object,value:_});else if((0,i.tv)(m)){var y="string"===typeof m.style?l.date[m.style]:(0,i.Tu)(m.style)?m.style.parsedOptions:void 0;h.push({type:n.literal,value:r.getDateTimeFormat(t,y).format(_)})}else if((0,i.Qh)(m)){y="string"===typeof m.style?l.time[m.style]:(0,i.Tu)(m.style)?m.style.parsedOptions:l.time.medium;h.push({type:n.literal,value:r.getDateTimeFormat(t,y).format(_)})}else if((0,i.oF)(m)){(y="string"===typeof m.style?l.number[m.style]:(0,i.N1)(m.style)?m.style.parsedOptions:void 0)&&y.scale&&(_*=y.scale||1),h.push({type:n.literal,value:r.getNumberFormat(t,y).format(_)})}else{if((0,i.xm)(m)){var v=m.children,b=m.value,x=c[b];if(!a(x))throw new o.Zo(b,"function",d);var w=x(s(v,t,r,l,c,u).map((function(e){return e.value})));Array.isArray(w)||(w=[w]),h.push.apply(h,w.map((function(e){return{type:"string"===typeof e?n.literal:n.object,value:e}})))}if((0,i.Jp)(m)){if(!(A=m.options[_]||m.options.other))throw new o.$x(m.value,_,Object.keys(m.options),d);h.push.apply(h,s(A.value,t,r,l,c))}else if((0,i.N6)(m)){var A;if(!(A=m.options["=".concat(_)])){if(!Intl.PluralRules)throw new o.IF('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',o.O4.MISSING_INTL_API,d);var S=r.getPluralRules(t,{type:m.pluralType}).select(_-(m.offset||0));A=m.options[S]||m.options.other}if(!A)throw new o.$x(m.value,_,Object.keys(m.options),d);h.push.apply(h,s(A.value,t,r,l,c,_-(m.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===n.literal&&t.type===n.literal?r.value+=t.value:e.push(t),e}),[])}(h)}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(n||(n={}))},22740:e=>{"use strict";e.exports=function(e,t,r,n,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},78799:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(p){p!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(r){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=i?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(n){if(n!==r)return!1}return!a(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},53913:(e,t,r)=>{"use strict";var n=r(88117),i=n("Date.prototype.getDay"),o=n("Object.prototype.toString"),a=r(64635)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return i(e),!0}catch(t){return!1}}(e):"[object Date]"===o(e))}},43290:(e,t,r)=>{"use strict";var n,i=r(88117),o=r(64635)(),a=r(34384),s=r(95558);if(o){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"===typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),n=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,d)}catch(r){return r===c}}}else{var h=i("Object.prototype.toString");n=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===h(e)}}
vendor: 5,425 bytes, line 2
2e.exports=n},24107:(e,t,r)=>{"use strict";var n=r(88117),i=n("Object.prototype.toString"),o=r(72108)(),a=r(40066);if(o){var s=n("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/);e.exports=function(e){if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||"[object Symbol]"!==i(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&l(s(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},97685:(e,t,r)=>{var n=r(87937)(r(56552),"DataView");e.exports=n},98724:(e,t,r)=>{var n=r(27615),i=r(25051),o=r(72154),a=r(48734),s=r(22662);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},80523:(e,t,r)=>{var n=r(21817),i=r(2112);function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=n(i.prototype),o.prototype.constructor=o,e.exports=o},97160:(e,t,r)=>{var n=r(87563),i=r(29935),o=r(24190),a=r(51946),s=r(61714);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},52990:(e,t,r)=>{var n=r(21817),i=r(2112);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=n(i.prototype),o.prototype.constructor=o,e.exports=o},85204:(e,t,r)=>{var n=r(87937)(r(56552),"Map");e.exports=n},64816:(e,t,r)=>{var n=r(47251),i=r(37159),o=r(80438),a=r(69394),s=r(56874);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},65387:(e,t,r)=>{var n=r(87937)(r(56552),"Promise");e.exports=n},72070:(e,t,r)=>{var n=r(87937)(r(56552),"Set");e.exports=n},18902:(e,t,r)=>{var n=r(64816),i=r(86179),o=r(46704);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},5538:(e,t,r)=>{var n=r(97160),i=r(84545),o=r(10793),a=r(27760),s=r(3892),l=r(76788);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,r)=>{var n=r(56552).Symbol;e.exports=n},22929:(e,t,r)=>{var n=r(56552).Uint8Array;e.exports=n},26600:(e,t,r)=>{var n=r(87937)(r(56552),"WeakMap");e.exports=n},31170:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},80726:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},17529:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},75866:(e,t,r)=>{var n=r(88468);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},41558:e=>{e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},73204:(e,t,r)=>{var n=r(3343),i=r(22777),o=r(54052),a=r(44543),s=r(69194),l=r(51268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),p=r||u||d||h,f=p?n(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},50149:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},48895:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},99421:e=>{e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},52587:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},45967:e=>{e.exports=function(e){return e.split("")}},63868:(e,t,r)=>{var n=r(71775),i=r(93211);e.exports=function(e,t,r){(void 0!==r&&!i(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},78420:(e,t,r)=>{var n=r(71775),i=r(93211),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},61340:(e,t,r)=>{var n=r(93211);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},51104:(e,t,r)=>{var n=r(96614),i=r(28673);e.exports=function(e,t){return e&&n(t,i(t),e)}},55119:(e,t,r)=>{var n=r(96614),i=r(30474);e.exports=function(e,t){return e&&n(t,i(t),e)}},71775:(e,t,r)=>{var n=r(5654);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},97132:(e,t,r)=>{var n=r(5538),i=r(80726),o=r(78420),a=r(51104),s=r(55119),l=r(44353),c=r(91980),u=r(98124),d=r(29075),h=r(59395),p=r(68592),f=r(26924),m=r(38268),g=r(18630),_=r(20310),y=r(54052),v=r(44543),b=r(57887),x=r(46686),w=r(45921),A=r(28673),S=r(30474),E="[object Arguments]",T="[object Function]",P="[object Object]",C={};C[E]=C["[object Array]"]=C["[object ArrayBuffer]"]=C["[object DataView]"]=C["[object Boolean]"]=C["[object Date]"]=C["[object Float32Array]"]=C["[object Float64Array
2]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Map]"]=C["[object Number]"]=C[P]=C["[object RegExp]"]=C["[object Set]"]=C["[object String]"]=C["[object Symbol]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C["[object Error]"]=C[T]=C["[object WeakMap]"]=!1,e.exports=function e(t,r,I,M,k,O){var R,L=1&r,D=2&r,N=4&r;if(I&&(R=k?I(t,M,k,O):I(t)),void 0!==R)return R;if(!x(t))return t;var F=y(t);if(F){if(R=m(t),!L)return c(t,R)}else{var z=f(t),j=z==T||"[object GeneratorFunction]"==z;if(v(t))return l(t,L);if(z==P||z==E||j&&!k){if(R=D||j?{}:_(t),!L)return D?d(t,s(R,t)):u(t,a(R,t))}else{if(!C[z])return k?t:{};R=g(t,z,L)}}O||(O=new n);var B=O.get(t);if(B)return B;O.set(t,R),w(t)?t.forEach((function(n){R.add(e(n,r,I,n,t,O))})):b(t)&&t.forEach((function(n,i){R.set(i,e(n,r,I,i,t,O))}));var U=F?void 0:(N?D?p:h:D?S:A)(t);return i(U||t,(function(n,i){U&&(n=t[i=n]),o(R,i,e(n,r,I,i,t,O))})),R}},21817:(e,t,r)=>{var n=r(46686),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},88746:(e,t,r)=>{var n=r(18902),i=r(75866),o=r(41558),a=r(50149),s=r(47574),l=r(58114);e.exports=function(e,t,r,c){var u=-1,d=i,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;r&&(t=a(t,s(r))),c?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new n(t));e:for(;++u<p;){var g=e[u],_=null==r?g:r(g);if(g=c||0!==g?g:0,h&&_===_){for(var y=m;y--;)if(t[y]===_)continue e;f.push(g)}else d(t,_,c)||f.push(g)}return f}},45652:(e,t,r)=>{var n=r(94664),i=r(76516)(n);e.exports=i},75816:e=>{e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},80755:(e,t,r)=>{var n=r(48895),i=r(77116);e.exports=function e(t,r,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,a,s):n(s,u):a||(s[s.length]=u)}return s}},94258:(e,t,r)=>{var n=r(55906)();e.exports=n},94664:(e,t,r)=>{var n=r(94258),i=r(28673);e.exports=function(e,t){return e&&n(e,t,i)}},52969:(e,t,r)=>{var n=r(35324),i=r(70914);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},4262:(e,t,r)=>{var n=r(48895),i=r(54052);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},16913:(e,t,r)=>{var n=r(9812),i=r(34552),o=r(16095),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},36741:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},27894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},88468:(e,t,r)=>{var n=r(75816),i=r(40644),o=r(94020);e.exports=function(e,t,r){return t===t?o(e,t,r):n(e,i,r)}},15193:(e,t,r)=>{var n=r(16913),i=r(22761);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},26989:(e,t,r)=>{var n=r(16399),i=r(22761);e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!==t&&r!==r:n(t,r,o,a,e,s))}},16399:(e,t,r)=>{var n=r(5538),i=r(43668),o=r(69987),a=r(45752),s=r(26924),l=r(54052),c=r(44543),u=r(51268),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,_){var y=l(e),v=l(t),b=y?h:s(e),x=v?h:s(t),w=(b=b==d?p:b)==p,A=(x=x==d?p:x)==p,S=b==x;if(S&&c(e)){if(!c(t))return!1;y=!0,w=!1}if(S&&!w)return _||(_=new n),y||u(e)?i(e,t,r,m,g,_):o(e,t,b,r,m,g,_);if(!(1&r)){var E=w&&f.call(e,"__wrapped__"),T=A&&f.call(t,"__wrapped__");
vendor: 5,383 bytes, line 2
2if(E||T){var P=E?e.value():e,C=T?t.value():t;return _||(_=new n),g(P,C,r,m,_)}}return!!S&&(_||(_=new n),a(e,t,r,m,g,_))}},5791:(e,t,r)=>{var n=r(26924),i=r(22761);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},86532:(e,t,r)=>{var n=r(5538),i=r(26989);e.exports=function(e,t,r,o){var a=r.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=r[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=r[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(o)var f=o(d,h,u,e,t,p);if(!(void 0===f?i(h,d,3,o,p):f))return!1}}return!0}},40644:e=>{e.exports=function(e){return e!==e}},36954:(e,t,r)=>{var n=r(11629),i=r(37857),o=r(46686),a=r(96996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:s).test(a(e))}},20449:(e,t,r)=>{var n=r(26924),i=r(22761);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},35428:(e,t,r)=>{var n=r(16913),i=r(56173),o=r(22761),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},9096:(e,t,r)=>{var n=r(39256),i=r(15029),o=r(33279),a=r(54052),s=r(63932);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},83713:(e,t,r)=>{var n=r(36140),i=r(61143),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},58122:(e,t,r)=>{var n=r(46686),i=r(36140),o=r(43516),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},2112:e=>{e.exports=function(){}},38883:(e,t,r)=>{var n=r(45652),i=r(6571);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}},39256:(e,t,r)=>{var n=r(86532),i=r(23781),o=r(91310);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},15029:(e,t,r)=>{var n=r(26989),i=r(33097),o=r(53366),a=r(62597),s=r(31798),l=r(91310),c=r(70914);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},23253:(e,t,r)=>{var n=r(5538),i=r(63868),o=r(94258),a=r(83223),s=r(46686),l=r(30474),c=r(53737);e.exports=function e(t,r,u,d,h){t!==r&&o(r,(function(o,l){if(h||(h=new n),s(o))a(t,r,l,u,e,d,h);else{var p=d?d(c(t,l),o,l+"",t,r,h):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},83223:(e,t,r)=>{var n=r(63868),i=r(44353),o=r(38710),a=r(91980),s=r(20310),l=r(22777),c=r(54052),u=r(76272),d=r(44543),h=r(11629),p=r(46686),f=r(12322),m=r(51268),g=r(53737),_=r(91609);e.exports=function(e,t,r,y,v,b,x){var w=g(e,r),A=g(t,r),S=x.get(A);if(S)n(e,r,S);else{var E=b?b(w,A,r+"",e,t,x):void 0,T=void 0===E;if(T){var P=c(A),C=!P&&d(A),I=!P&&!C&&m(A);E=A,P||C||I?c(w)?E=w:u(w)?E=a(w):C?(T=!1,E=i(A,!0)):I?(T=!1,E=o(A,!0)):E=[]:f(A)||l(A)?(E=w,l(w)?E=_(w):p(w)&&!h(w)||(E=s(A))):T=!1}T&&(x.set(A,E),v(E,A,y,b,x),x.delete(A)),n(e,r,E)}}},12536:(e,t,r)=>{var n=r(50149),i=r(52969),o=r(9096),a=r(38883),s=r(60320),l=r(47574),c=r(65893),u=r(33279),d=r(54052);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var h=-1;t=n(t,l(o));var p=a(e,(function(e,r,i){return{criteria:n(t,(function(t){return t(e)})),index:++h,value:e}}));return s(p,(function(e,t){return c(e,t,r)}))}},94008:(e,t,r)=>{var n=r(27449),i=r(53366);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},27449:(e,t,r)=>{var n=r(52969),i=r(9261),o=r(35324);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=n(e,c);r(u,c)&&i(l,o(c,e),u)}return l}},10396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},52866:(e,t,r)=>{var n=r(52969);e.exports=function(e){return function(t){return n(t,e)}}},39676:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,i,o){for(var a=-1,s=r(t((n-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},66487:e=>{e.exports=function(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}},55647:(e,t,r)=>{var n=r(33279),i=r(55636),o=r(46350);e.exports=function(e,t){return o(i(e,t,n),e+"")}},9261:(e,t,r)=>{var n=r(78420),i=r(35324),o=r(69194),a=r(46686),s=r(70914);e.exports=function(e,t,r,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var p=s(t[c]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];void 0===(f=l?l(m,p,h):void 0)&&(f=a(m)?m:o(t[c+1])?[]:{})}n(h,p,f),h=h[p]}return e}},28325:(e,t,r)=>
2{var n=r(22541),i=r(5654),o=r(33279),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},53871:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},60320:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},3343:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},60507:(e,t,r)=>{var n=r(50149);e.exports=function(e,t){return n(t,(function(t){return[t,e[t]]}))}},38541:(e,t,r)=>{var n=r(9812),i=r(50149),o=r(54052),a=r(19841),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},61141:(e,t,r)=>{var n=r(10143),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},47574:e=>{e.exports=function(e){return function(t){return e(t)}}},88140:(e,t,r)=>{var n=r(35324),i=r(74065),o=r(21676),a=r(70914);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},86983:(e,t,r)=>{var n=r(50149);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},58114:e=>{e.exports=function(e,t){return e.has(t)}},35324:(e,t,r)=>{var n=r(54052),i=r(62597),o=r(14079),a=r(41069);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},28189:(e,t,r)=>{var n=r(53871);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},76372:(e,t,r)=>{var n=r(88468);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},61516:(e,t,r)=>{var n=r(22929);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},44353:(e,t,r)=>{e=r.nmd(e);var n=r(56552),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6806:(e,t,r)=>{var n=r(61516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},18962:e=>{var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},11295:(e,t,r)=>{var n=r(9812),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},38710:(e,t,r)=>{var n=r(61516);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},16599:(e,t,r)=>{var n=r(19841);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e===e,a=n(e),s=void 0!==t,l=null===t,c=t===t,u=n(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!r&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&r&&o&&!i&&!a||l&&r&&o||!s&&o||!c)return-1}return 0}},65893:(e,t,r)=>{var n=r(16599);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=r.length;++i<s;){var c=n(o[i],a[i]);if(c)return i>=l?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}},91980:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},96614:(e,t,r)=>{var n=r(78420),i=r(71775);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?i(r,c,u):n(r,c,u)}return r}},98124:(e,t,r)=>{var n=r(96614),i=r(69621);e.exports=function(e,t){return n(e,i(e),t)}},29075:(e,t,r)=>{var n=r(96614),i=r(56326);e.exports=function(e,t){return n(e,i(e),t)}},13440:(e,t,r)=>{var n=r(56552)["__core-js_shared__"];e.exports=n},84570:(e,t,r)=>{var n=r(55647),i=r(60929);e.exports=function(e){return n((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t}))}},76516:(e,t,r)=>{var n=r(6571);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},55906:e=>{e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},69995:(e,t,r)=>{var n=r(9096),i=r(6571),o=r(28673);e.exports=function(e){return function(t,r,a){var s=Object(t);if(!i(t)){var l=n(r,3);t=o(t),r=function(e){return l(s[e],e,s)}}var c=e(t,r,a);return c>-1?s[l?t[c]:c]:void 0}}},8760:(e,t,r)=>{var n=r(52990),i=r(15857),o=r(88218),a=r(60911),s=r(54052),l=r(90402);e.exports=function(e){return i((function(t){var r=t.length,i=r,c=n.prototype.thru;for(e&&t.reverse();i--;){var u=t[i];if("function"!=typeof u)throw new TypeError("Expected a function");if(c&&!d&&"wrapper"==a(u))var d=new n([],!0)}for(i=d?i:r;++i<r;){u=t[i];var h=a(u),p="wrapper"==h?o(u):void 0;d=p&&l(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?d[a(p[0])].apply(d,p[3]):1==u.length&&l(u)?d[h]():d.thru(u)}return function(){var e=arguments,n=e[0];
2if(d&&1==e.length&&s(n))return d.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}},3331:(e,t,r)=>{var n=r(39676),i=r(60929),o=r(37303);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&i(t,r,a)&&(r=a=void 0),t=o(t),void 0===r?(r=t,t=0):r=o(r),a=void 0===a?t<r?1:-1:o(a),n(t,r,a,e)}}},49904:(e,t,r)=>{var n=r(60507),i=r(26924),o=r(54160),a=r(40194);e.exports=function(e){return function(t){var r=i(t);return"[object Map]"==r?o(t):"[object Set]"==r?a(t):n(t,e(t))}}},96761:(e,t,r)=>{var n=r(12322);e.exports=function(e){return n(e)?void 0:e}},5654:(e,t,r)=>{var n=r(87937),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},43668:(e,t,r)=>{var n=r(18902),i=r(52587),o=r(58114);e.exports=function(e,t,r,a,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var _=e[f],y=t[f];if(a)var v=c?a(y,_,f,t,e,l):a(_,y,f,e,t,l);if(void 0!==v){if(v)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(_===e||s(_,e,r,a,l)))return g.push(t)}))){m=!1;break}}else if(_!==y&&!s(_,y,r,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},69987:(e,t,r)=>{var n=r(9812),i=r(22929),o=r(93211),a=r(43668),s=r(54160),l=r(52074),c=n?n.prototype:void 0,u=c?c.valueOf
vendor: 5,101 bytes, line 2
2:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&n;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=a(p(e),p(t),n,c,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},45752:(e,t,r)=>{var n=r(59395),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var _=e[h=c[d]],y=t[h];if(o)var v=l?o(y,_,h,t,e,s):o(_,y,h,e,t,s);if(!(void 0===v?_===y||a(_,y,r,o,s):v)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},15857:(e,t,r)=>{var n=r(20819),i=r(55636),o=r(46350);e.exports=function(e){return o(i(e,void 0,n),e+"")}},37105:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},59395:(e,t,r)=>{var n=r(4262),i=r(69621),o=r(28673);e.exports=function(e){return n(e,o,i)}},68592:(e,t,r)=>{var n=r(4262),i=r(56326),o=r(30474);e.exports=function(e){return n(e,o,i)}},88218:(e,t,r)=>{var n=r(22867),i=r(75713),o=n?function(e){return n.get(e)}:i;e.exports=o},60911:(e,t,r)=>{var n=r(27530),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",r=n[t],o=i.call(n,t)?r.length:0;o--;){var a=r[o],s=a.func;if(null==s||s==e)return a.name}return t}},12622:(e,t,r)=>{var n=r(70705);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},23781:(e,t,r)=>{var n=r(31798),i=r(28673);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},87937:(e,t,r)=>{var n=r(36954),i=r(14657);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},85990:(e,t,r)=>{var n=r(13028)(Object.getPrototypeOf,Object);e.exports=n},34552:(e,t,r)=>{var n=r(9812),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},69621:(e,t,r)=>{var n=r(17529),i=r(57828),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},56326:(e,t,r)=>{var n=r(48895),i=r(85990),o=r(69621),a=r(57828),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},26924:(e,t,r)=>{var n=r(97685),i=r(85204),o=r(65387),a=r(72070),s=r(26600),l=r(16913),c=r(96996),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(n),g=c(i),_=c(o),y=c(a),v=c(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=f||i&&b(new i)!=u||o&&b(o.resolve())!=d||a&&b(new a)!=h||s&&b(new s)!=p)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return f;case g:return u;case _:return d;case y:return h;case v:return p}return t}),e.exports=b},14657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},99057:(e,t,r)=>{var n=r(35324),i=r(22777),o=r(54052),a=r(69194),s=r(56173),l=r(70914);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},36311:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},27615:(e,t,r)=>{var n=r(95575);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},25051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},72154:(e,t,r)=>{var n=r(95575),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},48734:(e,t,r)=>{var n=r(95575),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},22662:(e,t,r)=>{var n=r(95575);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},38268:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},18630:(e,t,r)=>
vendor: 9,678 bytes, line 2
2{var n=r(61516),i=r(6806),o=r(18962),a=r(11295),s=r(38710);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},20310:(e,t,r)=>{var n=r(21817),i=r(85990),o=r(36140);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},77116:(e,t,r)=>{var n=r(9812),i=r(22777),o=r(54052),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},69194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},60929:(e,t,r)=>{var n=r(93211),i=r(6571),o=r(69194),a=r(46686);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?i(r)&&o(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},62597:(e,t,r)=>{var n=r(54052),i=r(19841),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},70705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},90402:(e,t,r)=>{var n=r(80523),i=r(88218),o=r(60911),a=r(48991);e.exports=function(e){var t=o(e),r=a[t];if("function"!=typeof r||!(t in n.prototype))return!1;if(e===r)return!0;var s=i(r);return!!s&&e===s[0]}},37857:(e,t,r)=>{var n=r(13440),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},36140:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},31798:(e,t,r)=>{var n=r(46686);e.exports=function(e){return e===e&&!n(e)}},87563:e=>{e.exports=function(){this.__data__=[],this.size=0}},29935:(e,t,r)=>{var n=r(61340),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},24190:(e,t,r)=>{var n=r(61340);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},51946:(e,t,r)=>{var n=r(61340);e.exports=function(e){return n(this.__data__,e)>-1}},61714:(e,t,r)=>{var n=r(61340);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},47251:(e,t,r)=>{var n=r(98724),i=r(97160),o=r(85204);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},37159:(e,t,r)=>{var n=r(12622);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},80438:(e,t,r)=>{var n=r(12622);e.exports=function(e){return n(this,e).get(e)}},69394:(e,t,r)=>{var n=r(12622);e.exports=function(e){return n(this,e).has(e)}},56874:(e,t,r)=>{var n=r(12622);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},54160:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},91310:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},88259:(e,t,r)=>{var n=r(15797);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},22867:(e,t,r)=>{var n=r(26600),i=n&&new n;e.exports=i},95575:(e,t,r)=>{var n=r(87937)(Object,"create");e.exports=n},61143:(e,t,r)=>{var n=r(13028)(Object.keys,Object);e.exports=n},43516:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},56832:(e,t,r)=>{e=r.nmd(e);var n=r(37105),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},16095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},13028:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},55636:(e,t,r)=>{var n=r(31170),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),n(e,this,c)}}},21676:(e,t,r)=>{var n=r(52969),i=r(53871);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},27530:e=>{e.exports={}},56552:(e,t,r)=>{var n=r(37105),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},53737:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},86179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},46704:e=>{e.exports=function(e){return this.__data__.has(e)}},52074:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},40194:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}},46350:(e,t,r)=>{var n=r(28325),i=r(86578)(n);e.exports=i},86578:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},84545:(e,t,r)=>{var n=r(97160);e.exports=function(){this.__data__=new n,this.size=0}},10793:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},27760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},76788:(e,t,r)=>{var n=r(97160),i=r(85204),o=r(64816);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},94020:e=>{e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},39115:(e,t,r)=>{var n=r(45967),i=r(36311),o=r(50715);e.exports=function(e){return i(e)?o(e):n(e)}},14079:(e,t,r)=>{var n=r(88259),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},70914:(e,t,r)=>{var n=r(19841);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},96996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},10143:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},50715:e=>{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+n+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+n+"?",n,a,s,r].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){return e.match(h)||[]}},79360:(e,t,r)=>{var n=r(80523),i=r(52990),o=r(91980);e.exports=function(e){if(e instanceof n)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},22541:e=>{e.exports=function(e){return function(){return e}}},93950:(e,t,r)=>{var n=r(46686),i=r(4757),o=r(40801),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,h,p,f=0,m=!1,g=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=c;return l=c=void 0,f=t,d=e.apply(n,r)}function v(e){var r=e-p;return void 0===p||r>=t||r<0||g&&e-f>=u}function b(){var e=i();if(v(e))return x(e);h=setTimeout(b,function(e){var r=t-(e-p);return g?s(r,u-(e-f)):r}(e))}function x(e){return h=void 0,_&&l?y(e):(l=c=void 0,d)}function w(){var e=i(),r=v(e);if(l=arguments,c=this,p=e,r){if(void 0===h)return function(e){return f=e,h=setTimeout(b,t),m?y(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(b,t),y(p)}return void 0===h&&(h=setTimeout(b,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,u=(g="maxWait"in r)?a(o(r.maxWait)||0,t):u,_="trailing"in r?!!r.trailing:_),w.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},w.flush=function(){return void 0===h?d:x(i())},w}},66077:(e,t,r)=>{var n=r(88746),i=r(80755),o=r(55647),a=r(76272),s=o((function(e,t){return a(e)?n(e,i(t,1,a,!0)):[]}));e.exports=s},93211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},98990:(e,t,r)=>{var n=r(69995)(r(32520));e.exports=n},32520:(e,t,r)=>{var n=r(75816),i=r(9096),o=r(76759),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var l=null==r?0:o(r);return l<0&&(l=a(s+l,0)),n(e,i(t,3),l)}},63538:(e,t,r)=>{var n=r(80755),i=r(33411);e.exports=function(e,t){return n(i(e,t),1)}},20819:(e,t,r)=>{var n=r(80755);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},17961:(e,t,r)=>{var n=r(8760)();e.exports=n},33097:(e,t,r)=>{var n=r(52969);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},62117:(e,t,r)=>{var n=r(36741),i=r(99057);
vendor: 5,695 bytes, line 2
2e.exports=function(e,t){return null!=e&&i(e,t,n)}},53366:(e,t,r)=>{var n=r(27894),i=r(99057);e.exports=function(e,t){return null!=e&&i(e,t,n)}},33279:e=>{e.exports=function(e){return e}},84048:(e,t,r)=>{var n=r(88468),i=r(6571),o=r(90620),a=r(76759),s=r(26727),l=Math.max;e.exports=function(e,t,r,c){e=i(e)?e:s(e),r=r&&!c?a(r):0;var u=e.length;return r<0&&(r=l(u+r,0)),o(e)?r<=u&&e.indexOf(t,r)>-1:!!u&&n(e,t,r)>-1}},22777:(e,t,r)=>{var n=r(15193),i=r(22761),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},54052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,r)=>{var n=r(11629),i=r(56173);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},76272:(e,t,r)=>{var n=r(6571),i=r(22761);e.exports=function(e){return i(e)&&n(e)}},44543:(e,t,r)=>{e=r.nmd(e);var n=r(56552),i=r(60014),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},54320:(e,t,r)=>{var n=r(83713),i=r(26924),o=r(22777),a=r(54052),s=r(6571),l=r(44543),c=r(36140),u=r(51268),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},19853:(e,t,r)=>{var n=r(26989);e.exports=function(e,t){return n(e,t)}},11629:(e,t,r)=>{var n=r(16913),i=r(46686);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},56173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},57887:(e,t,r)=>{var n=r(5791),i=r(47574),o=r(56832),a=o&&o.isMap,s=a?i(a):n;e.exports=s},46686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},12322:(e,t,r)=>{var n=r(16913),i=r(85990),o=r(22761),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},45921:(e,t,r)=>{var n=r(20449),i=r(47574),o=r(56832),a=o&&o.isSet,s=a?i(a):n;e.exports=s},90620:(e,t,r)=>{var n=r(16913),i=r(54052),o=r(22761);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==n(e)}},19841:(e,t,r)=>{var n=r(16913),i=r(22761);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},51268:(e,t,r)=>{var n=r(35428),i=r(47574),o=r(56832),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},28673:(e,t,r)=>{var n=r(73204),i=r(83713),o=r(6571);e.exports=function(e){return o(e)?n(e):i(e)}},30474:(e,t,r)=>{var n=r(73204),i=r(58122),o=r(6571);e.exports=function(e){return o(e)?n(e,!0):i(e)}},74065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},33411:(e,t,r)=>{var n=r(50149),i=r(9096),o=r(38883),a=r(54052);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},91733:(e,t,r)=>{var n=r(71775),i=r(94664),o=r(9096);e.exports=function(e,t){var r={};return t=o(t,3),i(e,(function(e,i,o){n(r,i,t(e,i,o))})),r}},15797:(e,t,r)=>{var n=r(64816);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},34677:(e,t,r)=>{var n=r(23253),i=r(84570)((function(e,t,r){n(e,t,r)}));e.exports=i},75713:e=>{e.exports=function(){}},4757:(e,t,r)=>{var n=r(56552);e.exports=function(){return n.Date.now()}},1488:(e,t,r)=>{var n=r(50149),i=r(97132),o=r(88140),a=r(35324),s=r(96614),l=r(96761),c=r(15857),u=r(68592),d=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),r),c&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r}));e.exports=d},22616:(e,t,r)=>{var n=r(94008),i=r(15857)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},57273:(e,t,r)=>{var n=r(50149),i=r(9096),o=r(27449),a=r(68592);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),(function(e){return[e]}));return t=i(t),o(e,r,(function(e,r){return t(e,r[0])}))}},63932:(e,t,r)=>{var n=r(10396),i=r(52866),o=r(62597),a=r(70914);e.exports=function(e){return o(e)?n(a(e)):i(e)}},96604:(e,t,r)=>{var n=r(3331)();e.exports=n},12759:(e,t,r)=>{var n=r(99421),i=r(45652),o=r(9096),a=r(66487),s=r(54052);e.exports=function(e,t,r){var l=s(e)?n:a,c=arguments.length<3;return l(e,o(t,4),r,c,i)}},60651:e=>{var t=Array.prototype.reverse;e.exports=function(e){return null==e?e:t.call(e)}},87424:(e,t,r)=>{var n=r(80755),i=r(12536),o=r(55647),a=r(60929),s=o((function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,n(t,1),[])}));e.exports=s},57828:e=>{e.exports=function(){return[]}},60014:e=>{e.exports=function(){return!1}},79889:(e,t,r)=>{var n=r(93950),i=r(46686);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},37303:(e,t,r)=>{var n=r(40801),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}}
2,76759:(e,t,r)=>{var n=r(37303);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},40801:(e,t,r)=>{var n=r(61141),i=r(46686),o=r(19841),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},475:(e,t,r)=>{var n=r(49904)(r(28673));e.exports=n},91609:(e,t,r)=>{var n=r(96614),i=r(30474);e.exports=function(e){return n(e,i(e))}},41069:(e,t,r)=>{var n=r(38541);e.exports=function(e){return null==e?"":n(e)}},56956:(e,t,r)=>{var n=r(38541),i=r(28189),o=r(76372),a=r(39115),s=r(41069),l=r(10143);e.exports=function(e,t,r){if((e=s(e))&&(r||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=n(t)))return e;var c=a(e),u=o(c,a(t))+1;return i(c,0,u).join("")}},80111:(e,t,r)=>{var n=r(41069),i=0;e.exports=function(e){var t=++i;return n(e)+t}},26727:(e,t,r)=>{var n=r(86983),i=r(28673);e.exports=function(e){return null==e?[]:n(e,i(e))}},48991:(e,t,r)=>{var n=r(80523),i=r(52990),o=r(2112),a=r(54052),s=r(22761),l=r(79360),c=Object.prototype.hasOwnProperty;function u(e){if(s(e)&&!a(e)&&!(e instanceof n)){if(e instanceof i)return e;if(c.call(e,"__wrapped__"))return l(e)}return new i(e)}u.prototype=o.prototype,u.prototype.constructor=u,e.exports=u},57812:(e,t)=>{"use strict";var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.state={panStart:{x:0,y:0},scale:1},this.touchStart=this.touchStart.bind(this),this.touchMove=this.touchMove.bind(this)}return r(e,[{key:"touchStart",value:function(e){if(2===e.touches.length){e.stopImmediatePropagation(),e.preventDefault();var t=0,r=0;[].forEach.call(e.touches,(function(e){t+=e.screenX,r+=e.screenY})),this.state.panStart.x=t/e.touches.length,this.state.panStart.y=r/e.touches.length}}},{key:"touchMove",value:function(e){if(2===e.touches.length){this.state.scale===e.scale&&(e.stopImmediatePropagation(),e.preventDefault()),this.state.scale=e.scale;var t=0,r=0;[].forEach.call(e.touches,(function(e){t+=e.screenX,r+=e.screenY}));var n=t/e.touches.length-this.state.panStart.x,i=r/e.touches.length-this.state.panStart.y;this.state.panStart.x=t/e.touches.length,this.state.panStart.y=r/e.touches.length,this.map.panBy([n/-1,i/-1],{animate:!1})}}},{key:"onAdd",value:function(e){return this.map=e,this.container=document.createElement("div"),this.map.getContainer().addEventListener("touchstart",this.touchStart,!1),this.map.getContainer().addEventListener("touchmove",this.touchMove,!1),"ontouchstart"in document.documentElement&&e.dragPan.disable(),this.container}},{key:"onRemove",value:function(){this.map.getContainer().removeEventListener("touchstart",this.touchStart),this.map.getContainer().removeEventListener("touchmove",this.touchMove),this.map=void 0}}]),e}();t.A=n},879:function(e,t,r){var n=r(91847).default,i=r(12897).default;const o=["data"],a=["data"];e.exports=function(){"use strict";var e,t,r;function s(n,i){if(e)if(t){var o="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",a={};e(a),r=i(a),"undefined"!==typeof window&&window&&window.URL&&window.URL.createObjectURL&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=i;else e=i}return s(["exports"],(function(e){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,n={},o={};function a(){if(r)return o;r=1,Object.defineProperty(o,"__esModule",{value:!0}),o.setMatrixArrayType=function(e){o.ARRAY_TYPE=t=e},o.toRadian=function(e){return e*i},o.equals=function(t,r){return Math.abs(t-r)<=e*Math.max(1,Math.abs(t),Math.abs(r))},o.RANDOM=o.ARRAY_TYPE=o.EPSILON=void 0;var e=1e-6;o.EPSILON=e;var t="undefined"!=typeof Float32Array?Float32Array:Array;o.ARRAY_TYPE=t;var n=Math.random;o.RANDOM=n;var i=Math.PI/180;return Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),o}var s,l={};function c(){if(s)return l;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}
2s=1,Object.defineProperty(l,"__esModule",{value:!0}),l.create=function(){var e=new t.ARRAY_TYPE(4);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},l.clone=function(e){var r=new t.ARRAY_TYPE(4);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r},l.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},l.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e},l.fromValues=function(e,r,n,i){var o=new t.ARRAY_TYPE(4);return o[0]=e,o[1]=r,o[2]=n,o[3]=i,o},l.set=function(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e},l.transpose=function(e,t){if(e===t){var r=t[1];e[1]=t[2],e[2]=r}else e[0]=t[0],e[1]=t[2],e[2]=t[1],e[3]=t[3];return e},l.invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=r*o-i*n;return a?(e[0]=o*(a=1/a),e[1]=-n*a,e[2]=-i*a,e[3]=r*a,e):null},l.adjoint=function(e,t){var r=t[0];return e[0]=t[3],e[1]=-t[1],e[2]=-t[2],e[3]=r,e},l.determinant=function(e){return e[0]*e[3]-e[2]*e[1]},l.multiply=n,l.rotate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+o*s,e[1]=i*l+a*s,e[2]=n*-s+o*l,e[3]=i*-s+a*l,e},l.scale=function(e,t,r){var n=t[1],i=t[2],o=t[3],a=r[0],s=r[1];return e[0]=t[0]*a,e[1]=n*a,e[2]=i*s,e[3]=o*s,e},l.fromRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=-r,e[3]=n,e},l.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e},l.str=function(e){return"mat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},l.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},l.LDU=function(e,t,r,n){return e[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-e[2]*r[1],[e,t,r]},l.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e},l.subtract=i,l.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},l.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],l=r[1],c=r[2],u=r[3];return Math.abs(n-s)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-u)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},l.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e},l.multiplyScalarAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},l.sub=l.mul=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=r[0],l=r[1],c=r[2],u=r[3];return e[0]=n*s+o*l,e[1]=i*s+a*l,e[2]=n*c+o*u,e[3]=i*c+a*u,e}function i(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}return l.mul=n,l.sub=i,l}var u,d={};function h(){if(u)return d;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}u=1,Object.defineProperty(d,"__esModule",{value:!0}),d.create=function(){var e=new t.ARRAY_TYPE(6);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[4]=0,e[5]=0),e[0]=1,e[3]=1,e},d.clone=function(e){var r=new t.ARRAY_TYPE(6);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r},d.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},d.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},d.fromValues=function(e,r,n,i,o,a){var s=new t.ARRAY_TYPE(6);return s[0]=e,s[1]=r,s[2]=n,s[3]=i,s[4]=o,s[5]=a,s},d.set=function(e,t,r,n,i,o,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e},d.invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=r*o-n*i;return l?(e[0]=o*(l=1/l),e[1]=-n*l,e[2]=-i*l,e[3]=r*l,e[4]=(i*s-o*a)*l,e[5]=(n*a-r*s)*l,e):null},d.determinant=function(e){return e[0]*e[3]-e[1]*e[2]},d.multiply=n,d.rotate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=Math.sin(r),u=Math.cos(r);return e[0]=n*u+o*c,e[1]=i*u+a*c,e[2]=n*-c+o*u,e[3]=i*-c+a*u,e[4]=s,e[5]=l,e},d.scale=function(e,t,r){var n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=r[0],c=r[1];return e[0]=t[0]*l,e[1]=n*l,e[2]=i*c,e[3]=o*c,e[4]=a,e[5]=s,e},d.translate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=r[0],u=r[1];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=n*c+o*u+s,e[5]=i*c+a*u+l,e},d.fromRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=-r,e[3]=n,e[4]=0,e[5]=0,e},d.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=t[1],e[4]=0,e[5]=0,e},d.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=t[0],e[5]=t[1],e},d.str=function(e){return"mat2d("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"},d.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],1)},d.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e},d.subtract=i,d.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e},d.multiplyScalarAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e},d.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]},d.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=r[0],u=r[1],d=r[2],h=r[3],p=r[4],f=r[5];return Math.abs(n-c)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(i-u)<=t.
2EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-d)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-h)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(s-p)<=t.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-f)<=t.EPSILON*Math.max(1,Math.abs(l),Math.abs(f))},d.sub=d.mul=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=r[0],u=r[1],d=r[2],h=r[3],p=r[4],f=r[5];return e[0]=n*c+o*u,e[1]=i*c+a*u,e[2]=n*d+o*h,e[3]=i*d+a*h,e[4]=n*p+o*f+s,e[5]=i*p+a*f+l,e}function i(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e}return d.mul=n,d.sub=i,d}var p,f={};function m(){if(p)return f;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}p=1,Object.defineProperty(f,"__esModule",{value:!0}),f.create=function(){var e=new t.ARRAY_TYPE(9);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},f.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},f.clone=function(e){var r=new t.ARRAY_TYPE(9);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r},f.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},f.fromValues=function(e,r,n,i,o,a,s,l,c){var u=new t.ARRAY_TYPE(9);return u[0]=e,u[1]=r,u[2]=n,u[3]=i,u[4]=o,u[5]=a,u[6]=s,u[7]=l,u[8]=c,u},f.set=function(e,t,r,n,i,o,a,s,l,c){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e},f.identity=function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},f.transpose=function(e,t){if(e===t){var r=t[1],n=t[2],i=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=n,e[7]=i}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},f.invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=u*a-s*c,h=-u*o+s*l,p=c*o-a*l,f=r*d+n*h+i*p;return f?(e[0]=d*(f=1/f),e[1]=(-u*n+i*c)*f,e[2]=(s*n-i*a)*f,e[3]=h*f,e[4]=(u*r-i*l)*f,e[5]=(-s*r+i*o)*f,e[6]=p*f,e[7]=(-c*r+n*l)*f,e[8]=(a*r-n*o)*f,e):null},f.adjoint=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8];return e[0]=a*u-s*c,e[1]=i*c-n*u,e[2]=n*s-i*a,e[3]=s*l-o*u,e[4]=r*u-i*l,e[5]=i*o-r*s,e[6]=o*c-a*l,e[7]=n*l-r*c,e[8]=r*a-n*o,e},f.determinant=function(e){var t=e[3],r=e[4],n=e[5],i=e[6],o=e[7],a=e[8];return e[0]*(a*r-n*o)+e[1]*(-a*t+n*i)+e[2]*(o*t-r*i)},f.multiply=n,f.translate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=r[0],p=r[1];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=h*n+p*a+c,e[7]=h*i+p*s+u,e[8]=h*o+p*l+d,e},f.rotate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=Math.sin(r),p=Math.cos(r);return e[0]=p*n+h*a,e[1]=p*i+h*s,e[2]=p*o+h*l,e[3]=p*a-h*n,e[4]=p*s-h*i,e[5]=p*l-h*o,e[6]=c,e[7]=u,e[8]=d,e},f.scale=function(e,t,r){var n=r[0],i=r[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},f.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e},f.fromRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=-r,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},f.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},f.fromMat2d=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e},f.fromQuat=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=r+r,
2s=n+n,l=i+i,c=r*a,u=n*a,d=n*s,h=i*a,p=i*s,f=i*l,m=o*a,g=o*s,_=o*l;return e[0]=1-d-f,e[3]=u-_,e[6]=h+g,e[1]=u+_,e[4]=1-c-f,e[7]=p-m,e[2]=h-g,e[5]=p+m,e[8]=1-c-d,e},f.normalFromMat4=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],p=t[11],f=t[12],m=t[13],g=t[14],_=t[15],y=r*s-n*a,v=r*l-i*a,b=r*c-o*a,x=n*l-i*s,w=n*c-o*s,A=i*c-o*l,S=u*m-d*f,E=u*g-h*f,T=u*_-p*f,P=d*g-h*m,C=d*_-p*m,I=h*_-p*g,M=y*I-v*C+b*P+x*T-w*E+A*S;return M?(e[0]=(s*I-l*C+c*P)*(M=1/M),e[1]=(l*T-a*I-c*E)*M,e[2]=(a*C-s*T+c*S)*M,e[3]=(i*C-n*I-o*P)*M,e[4]=(r*I-i*T+o*E)*M,e[5]=(n*T-r*C-o*S)*M,e[6]=(m*A-g*w+_*x)*M,e[7]=(g*b-f*A-_*v)*M,e[8]=(f*w-m*b+_*y)*M,e):null},f.projection=function(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e},f.str=function(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"},f.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},f.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e},f.subtract=i,f.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e},f.multiplyScalarAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e},f.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},f.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=r[0],p=r[1],f=r[2],m=r[3],g=r[4],_=r[5],y=r[6],v=r[7],b=r[8];return Math.abs(n-h)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-p)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-f)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-m)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-g)<=t.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-_)<=t.EPSILON*Math.max(1,Math.abs(l),Math.abs(_))&&Math.abs(c-y)<=t.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-v)<=t.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(d-b)<=t.EPSILON*Math.max(1,Math.abs(d),Math.abs(b))},f.sub=f.mul=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=r[0],p=r[1],f=r[2],m=r[3],g=r[4],_=r[5],y=r[6],v=r[7],b=r[8];return e[0]=h*n+p*a+f*c,e[1]=h*i+p*s+f*u,e[2]=h*o+p*l+f*d,e[3]=m*n+g*a+_*c,e[4]=m*i+g*s+_*u,e[5]=m*o+g*l+_*d,e[6]=y*n+v*a+b*c,e[7]=y*i+v*s+b*u,e[8]=y*o+v*l+b*d,e}function i(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e}return f.mul=n,f.sub=i,f}var g,_={};function y(){if(g)return _;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}g=1,Object.defineProperty(_,"__esModule",{value:!0}),_.create=function(){var e=new t.ARRAY_TYPE(16);return t.ARRAY_TYPE!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},_.clone=function(e){var r=new t.ARRAY_TYPE(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r},_.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},_.fromValues=function(e,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g){var _=new t.ARRAY_TYPE(16);return _[0]=e,_[1]=r,_[2]=n,_[3]=i,_[4]=o,_[5]=a,_[6]=s,_[7]=l,_[8]=c,_[9]=u,_[10]=d,_[11]=h,_[12]=p,_[13]=f,_[14]=m,_[15]=g,_},_.set=function(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=h,e[12]=p,e[13]=f,e[14]=m,e[15]=g,e},_.identity=n,_.transpose=function(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],o=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=o,e[11]=t[14],e[12]=i,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e},_.invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],p=t[11],f=t[12],m=t[13],g=t[14],_=t[15],y=r*s-n*a,v=r*l-i*a,b=r*c-o*a,x=n*l-i*s,w=n*c-o*s,A=i*c-o*l,S=u*m-d*f,E=u*g-h*f,T=u*_-p*f,P=d*g-h*m,C=d*_-p*m,I=h*_-p*g,M=y*I-v*C+b*P+x*T-w*E+A*S;return M?(e[0]=(s*I-l*C+c*P)*(M=1/M),e[1]=(i*C-n*I-o*P)*M,e[2]=(m*A-g*w+_*x)*M,e[3]=(h*w-d*A-p*x)*M,e[4]=(l*T-a*I-c*E)*M,e[5]=(r*I-i*T+o*E)*M,e[6]=(g*b-f*A-_*v)*M,e[7]=(u*A-h*b+p*v)*M,e[8]=(a*C-s*T+c*S)*M,e[9]=(n*T-r*C-o*S)*M,e[10]=(f*w-m*b+_*y)*M,e[11]=(d*b-u*w-p*y)*M,e[12]=(s*E-a*P-l*S)*M,e[13]=(r*P-n*E+i*S)*M,e[14]=(m*v-f*x-g*y)*M,e[15]=(u*x-d*v+h*y)*M,e):null},_.adjoint=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],p=t[11],f=t[12],m=t[13],g=t[14],_=t[15];return e[0]=s*(h*_-p*g)-d*(l*_-c*g)+m*(l*p-c*h),e[1]=-(n*(h*_-p*g)-d*(i*_-o*g)+m*(i*p-o*h)),e[2]=n*(l*_-c*g)-s*(i*_-o*g)+m*(i*c-o*l),e[3]=-(n*(l*p-c*h)-s*(i*p-o
2*h)+d*(i*c-o*l)),e[4]=-(a*(h*_-p*g)-u*(l*_-c*g)+f*(l*p-c*h)),e[5]=r*(h*_-p*g)-u*(i*_-o*g)+f*(i*p-o*h),e[6]=-(r*(l*_-c*g)-a*(i*_-o*g)+f*(i*c-o*l)),e[7]=r*(l*p-c*h)-a*(i*p-o*h)+u*(i*c-o*l),e[8]=a*(d*_-p*m)-u*(s*_-c*m)+f*(s*p-c*d),e[9]=-(r*(d*_-p*m)-u*(n*_-o*m)+f*(n*p-o*d)),e[10]=r*(s*_-c*m)-a*(n*_-o*m)+f*(n*c-o*s),e[11]=-(r*(s*p-c*d)-a*(n*p-o*d)+u*(n*c-o*s)),e[12]=-(a*(d*g-h*m)-u*(s*g-l*m)+f*(s*h-l*d)),e[13]=r*(d*g-h*m)-u*(n*g-i*m)+f*(n*h-i*d),e[14]=-(r*(s*g-l*m)-a*(n*g-i*m)+f*(n*l-i*s)),e[15]=r*(s*h-l*d)-a*(n*h-i*d)+u*(n*l-i*s),e},_.determinant=function(e){var t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11],p=e[12],f=e[13],m=e[14],g=e[15];return(t*a-r*o)*(d*g-h*m)-(t*s-n*o)*(u*g-h*f)+(t*l-i*o)*(u*m-d*f)+(r*s-n*a)*(c*g-h*p)-(r*l-i*a)*(c*m-d*p)+(n*l-i*s)*(c*f-u*p)},_.multiply=i,_.translate=function(e,t,r){var n,i,o,a,s,l,c,u,d,h,p,f,m=r[0],g=r[1],_=r[2];return t===e?(e[12]=t[0]*m+t[4]*g+t[8]*_+t[12],e[13]=t[1]*m+t[5]*g+t[9]*_+t[13],e[14]=t[2]*m+t[6]*g+t[10]*_+t[14],e[15]=t[3]*m+t[7]*g+t[11]*_+t[15]):(i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=t[9],p=t[10],f=t[11],e[0]=n=t[0],e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=h,e[10]=p,e[11]=f,e[12]=n*m+s*g+d*_+t[12],e[13]=i*m+l*g+h*_+t[13],e[14]=o*m+c*g+p*_+t[14],e[15]=a*m+u*g+f*_+t[15]),e},_.scale=function(e,t,r){var n=r[0],i=r[1],o=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},_.rotate=function(e,r,n,i){var o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w,A,S,E,T,P,C,I=i[0],M=i[1],k=i[2],O=Math.hypot(I,M,k);return O<t.EPSILON?null:(I*=O=1/O,M*=O,k*=O,o=Math.sin(n),a=Math.cos(n),c=r[1],u=r[2],d=r[3],p=r[5],f=r[6],m=r[7],_=r[9],y=r[10],v=r[11],b=I*I*(s=1-a)+a,A=I*M*s-k*o,S=M*M*s+a,E=k*M*s+I*o,T=I*k*s+M*o,P=M*k*s-I*o,C=k*k*s+a,e[0]=(l=r[0])*b+(h=r[4])*(x=M*I*s+k*o)+(g=r[8])*(w=k*I*s-M*o),e[1]=c*b+p*x+_*w,e[2]=u*b+f*x+y*w,e[3]=d*b+m*x+v*w,e[4]=l*A+h*S+g*E,e[5]=c*A+p*S+_*E,e[6]=u*A+f*S+y*E,e[7]=d*A+m*S+v*E,e[8]=l*T+h*P+g*C,e[9]=c*T+p*P+_*C,e[10]=u*T+f*P+y*C,e[11]=d*T+m*P+v*C,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)},_.rotateX=function(e,t,r){var n=Math.sin(r),i=Math.cos(r),o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+c*n,e[5]=a*i+u*n,e[6]=s*i+d*n,e[7]=l*i+h*n,e[8]=c*i-o*n,e[9]=u*i-a*n,e[10]=d*i-s*n,e[11]=h*i-l*n,e},_.rotateY=function(e,t,r){var n=Math.sin(r),i=Math.cos(r),o=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i-c*n,e[1]=a*i-u*n,e[2]=s*i-d*n,e[3]=l*i-h*n,e[8]=o*n+c*i,e[9]=a*n+u*i,e[10]=s*n+d*i,e[11]=l*n+h*i,e},_.rotateZ=function(e,t,r){var n=Math.sin(r),i=Math.cos(r),o=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+c*n,e[1]=a*i+u*n,e[2]=s*i+d*n,e[3]=l*i+h*n,e[4]=c*i-o*n,e[5]=u*i-a*n,e[6]=d*i-s*n,e[7]=h*i-l*n,e},_.fromTranslation=function(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e},_.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},_.fromRotation=function(e,r,n){var i,o,a,s=n[0],l=n[1],c=n[2],u=Math.hypot(s,l,c);return u<t.EPSILON?null:(s*=u=1/u,l*=u,c*=u,i=Math.sin(r),o=Math.cos(r),e[0]=s*s*(a=1-o)+o,e[1]=l*s*a+c*i,e[2]=c*s*a-l*i,e[3]=0,e[4]=s*l*a-c*i,e[5]=l*l*a+o,e[6]=c*l*a+s*i,e[7]=0,e[8]=s*c*a+l*i,e[9]=l*c*a-s*i,e[10]=c*c*a+o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)},_.fromXRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},_.fromYRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10
vendor: 4,937 bytes, line 2
2]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},_.fromZRotation=function(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},_.fromRotationTranslation=o,_.fromQuat2=function(e,r){var n=new t.ARRAY_TYPE(3),i=-r[0],a=-r[1],s=-r[2],l=r[3],c=r[4],u=r[5],d=r[6],h=r[7],p=i*i+a*a+s*s+l*l;return p>0?(n[0]=2*(c*l+h*i+u*s-d*a)/p,n[1]=2*(u*l+h*a+d*i-c*s)/p,n[2]=2*(d*l+h*s+c*a-u*i)/p):(n[0]=2*(c*l+h*i+u*s-d*a),n[1]=2*(u*l+h*a+d*i-c*s),n[2]=2*(d*l+h*s+c*a-u*i)),o(e,r,n),e},_.getTranslation=function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},_.getScaling=s,_.getRotation=function(e,r){var n=new t.ARRAY_TYPE(3);s(n,r);var i=1/n[0],o=1/n[1],a=1/n[2],l=r[0]*i,c=r[1]*o,u=r[2]*a,d=r[4]*i,h=r[5]*o,p=r[6]*a,f=r[8]*i,m=r[9]*o,g=r[10]*a,_=l+h+g,y=0;return _>0?(y=2*Math.sqrt(_+1),e[3]=.25*y,e[0]=(p-m)/y,e[1]=(f-u)/y,e[2]=(c-d)/y):l>h&&l>g?(y=2*Math.sqrt(1+l-h-g),e[3]=(p-m)/y,e[0]=.25*y,e[1]=(c+d)/y,e[2]=(f+u)/y):h>g?(y=2*Math.sqrt(1+h-l-g),e[3]=(f-u)/y,e[0]=(c+d)/y,e[1]=.25*y,e[2]=(p+m)/y):(y=2*Math.sqrt(1+g-l-h),e[3]=(c-d)/y,e[0]=(f+u)/y,e[1]=(p+m)/y,e[2]=.25*y),e},_.fromRotationTranslationScale=function(e,t,r,n){var i=t[0],o=t[1],a=t[2],s=t[3],l=i+i,c=o+o,u=a+a,d=i*l,h=i*c,p=i*u,f=o*c,m=o*u,g=a*u,_=s*l,y=s*c,v=s*u,b=n[0],x=n[1],w=n[2];return e[0]=(1-(f+g))*b,e[1]=(h+v)*b,e[2]=(p-y)*b,e[3]=0,e[4]=(h-v)*x,e[5]=(1-(d+g))*x,e[6]=(m+_)*x,e[7]=0,e[8]=(p+y)*w,e[9]=(m-_)*w,e[10]=(1-(d+f))*w,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e},_.fromRotationTranslationScaleOrigin=function(e,t,r,n,i){var o=t[0],a=t[1],s=t[2],l=t[3],c=o+o,u=a+a,d=s+s,h=o*c,p=o*u,f=o*d,m=a*u,g=a*d,_=s*d,y=l*c,v=l*u,b=l*d,x=n[0],w=n[1],A=n[2],S=i[0],E=i[1],T=i[2],P=(1-(m+_))*x,C=(p+b)*x,I=(f-v)*x,M=(p-b)*w,k=(1-(h+_))*w,O=(g+y)*w,R=(f+v)*A,L=(g-y)*A,D=(1-(h+m))*A;return e[0]=P,e[1]=C,e[2]=I,e[3]=0,e[4]=M,e[5]=k,e[6]=O,e[7]=0,e[8]=R,e[9]=L,e[10]=D,e[11]=0,e[12]=r[0]+S-(P*S+M*E+R*T),e[13]=r[1]+E-(C*S+k*E+L*T),e[14]=r[2]+T-(I*S+O*E+D*T),e[15]=1,e},_.fromQuat=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=r+r,s=n+n,l=i+i,c=r*a,u=n*a,d=n*s,h=i*a,p=i*s,f=i*l,m=o*a,g=o*s,_=o*l;return e[0]=1-d-f,e[1]=u+_,e[2]=h-g,e[3]=0,e[4]=u-_,e[5]=1-c-f,e[6]=p+m,e[7]=0,e[8]=h+g,e[9]=p-m,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},_.frustum=function(e,t,r,n,i,o,a){var s=1/(r-t),l=1/(i-n),c=1/(o-a);return e[0]=2*o*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(a+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*o*2*c,e[15]=0,e},_.perspectiveNO=l,_.perspectiveZO=function(e,t,r,n,i){var o,a=1/Math.tan(t/2);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(e[10]=i*(o=1/(n-i)),e[14]=i*n*o):(e[10]=-1,e[14]=-n),e},_.perspectiveFromFieldOfView=function(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(i+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(a-s)*l*.5,e[9]=(i-o)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e},_.orthoNO=c,_.orthoZO=function(e,t,r,n,i,o,a){var s=1/(t-r),l=1/(n-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=c,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=o*c,e[15]=1,e},_.lookAt=function(e,r,i,o){var a,s,l,c,u,d,h,p,f,m,g=r[0],_=r[1],y=r[2],v=o[0],b=o[1],x=o[2],w=i[0],A=i[1],S=i[2];return Math.abs(g-w)<t.EPSILON&&Math.abs(_-A)<t.EPSILON&&Math.abs(y-S)<t.EPSILON?n(e):(h=g-w,p=_-A,f=y-S,a=b*(f*=m=1/Math.hypot(h,p,f))-x*(p*=m),s=x*(h*=m)-v*f,l=v*p-b*h,(m=Math.hypot(a,s,l))?(a*=m=1/m,s*=m,l*=m):(a=0,s=0,l=0),c=p*l-f*s,u=f*a-h*l,d=h*s-p*a,(m=Math.hypot(c,u,d))?(c*=m=1/m,u*=m,d*=m):(c=0,u=0,d=0),e[0]=a,e[1]=c,e[2]=h,e[3]=0,e[4]=s,e[5]=u,e[6]=p,e[7]=0,e[8]=l,e[9]=d,e[10]=f,e[11]=0,e[12]=-(a*g+s*_+l*y),e[13]=-(c*g+u*_+d*y),e[14]=-(h*g+p*_+f*y),e[15]=1,e)},_.targetTo=function(e,t,r,n){var i=t[0],o=t[1],a=t[2],s=n[0],l=n[1],c=n[2],u=i-r[0],d=o-r[1],h=a-r[2],p=u*u+d*d+h*h;p>0&&(u*=p=1/Math.sqrt(p),d*=p,h*=p);var f=l*h-c*d,m=c*u-s*h,g=s*d-l*u;return(p=f*f+m*m+g*g)>0&&(f*=p=1/Math.sqrt(p),m*=p,g*=p),e[0]=f,e[1]=m,e[2]=g,e[3]=0,e[4]=d*g-h*m,e[5]=h*f-u*g,e[6]=u*m-d*f,e[7]=0,e[8]=u,e[9]=d,e[10]=h,e[11]=0,e[12]=i,e[13]=o,e[14]=a,e[15]=1,e},_.str=function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},_.frob=function(e){return Math.hypot(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},_.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11
vendor: 1,468 bytes, line 2
2],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},_.subtract=u,_.multiplyScalar=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},_.multiplyScalarAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e},_.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]},_.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=e[8],h=e[9],p=e[10],f=e[11],m=e[12],g=e[13],_=e[14],y=e[15],v=r[0],b=r[1],x=r[2],w=r[3],A=r[4],S=r[5],E=r[6],T=r[7],P=r[8],C=r[9],I=r[10],M=r[11],k=r[12],O=r[13],R=r[14],L=r[15];return Math.abs(n-v)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(i-b)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-x)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-A)<=t.
2EPSILON*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(l-S)<=t.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-E)<=t.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(u-T)<=t.EPSILON*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(d-P)<=t.EPSILON*Math.max(1,Math.abs(d),Math.abs(P))&&Math.abs(h-C)<=t.EPSILON*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(p-I)<=t.EPSILON*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(f-M)<=t.EPSILON*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(m-k)<=t.EPSILON*Math.max(1,Math.abs(m),Math.abs(k))&&Math.abs(g-O)<=t.EPSILON*Math.max(1,Math.abs(g),Math.abs(O))&&Math.abs(_-R)<=t.EPSILON*Math.max(1,Math.abs(_),Math.abs(R))&&Math.abs(y-L)<=t.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))},_.sub=_.mul=_.ortho=_.perspective=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function i(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=t[9],p=t[10],f=t[11],m=t[12],g=t[13],_=t[14],y=t[15],v=r[0],b=r[1],x=r[2],w=r[3];return e[0]=v*n+b*s+x*d+w*m,e[1]=v*i+b*l+x*h+w*g,e[2]=v*o+b*c+x*p+w*_,e[3]=v*a+b*u+x*f+w*y,e[4]=(v=r[4])*n+(b=r[5])*s+(x=r[6])*d+(w=r[7])*m,e[5]=v*i+b*l+x*h+w*g,e[6]=v*o+b*c+x*p+w*_,e[7]=v*a+b*u+x*f+w*y,e[8]=(v=r[8])*n+(b=r[9])*s+(x=r[10])*d+(w=r[11])*m,e[9]=v*i+b*l+x*h+w*g,e[10]=v*o+b*c+x*p+w*_,e[11]=v*a+b*u+x*f+w*y,e[12]=(v=r[12])*n+(b=r[13])*s+(x=r[14])*d+(w=r[15])*m,e[13]=v*i+b*l+x*h+w*g,e[14]=v*o+b*c+x*p+w*_,e[15]=v*a+b*u+x*f+w*y,e}function o(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=n+n,l=i+i,c=o+o,u=n*s,d=n*l,h=n*c,p=i*l,f=i*c,m=o*c,g=a*s,_=a*l,y=a*c;return e[0]=1-(p+m),e[1]=d+y,e[2]=h-_,e[3]=0,e[4]=d-y,e[5]=1-(u+m),e[6]=f+g,e[7]=0,e[8]=h+_,e[9]=f-g,e[10]=1-(u+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function s(e,t){var r=t[4],n=t[5],i=t[6],o=t[8],a=t[9],s=t[10];return e[0]=Math.hypot(t[0],t[1],t[2]),e[1]=Math.hypot(r,n,i),e[2]=Math.hypot(o,a,s),e}function l(e,t,r,n,i){var o,a=1/Math.tan(t/2);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0?(e[10]=(i+n)*(o=1/(n-i)),e[14]=2*i*n*o):(e[10]=-1,e[14]=-2*n),e}function c(e,t,r,n,i,o,a){var s=1/(t-r),l=1/(n-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(a+o)*c,e[15]=1,e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}return _.perspective=l,_.ortho=c,_.mul=i,_.sub=u,_}var v,b={},x={};function w(){if(v)return x;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}v=1,Object.defineProperty(x,"__esModule",{value:!0}),x.create=n,x.clone=function(e){var r=new t.ARRAY_TYPE(3);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r},x.length=i,x.fromValues=function(e,r,n){var i=new t.ARRAY_TYPE(3);return i[0]=e,i[1]=r,i[2]=n,i},x.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},x.set=function(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e},x.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e},x.subtract=o,x.multiply=s,x.divide=l,x.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},x.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},x.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e},x.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e},x.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},x.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e},x.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e},x.distance=c,x.squaredDistance=u,x.squaredLength=d,x.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},x.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},x.normalize=function(e,t){var r=t[0],n=t[1],i=t[2],o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e},x.dot=h,x.cross=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2];return e[0]=i*l-o*s,e[1]=o*a-n*l,e[2]=n*s-i*a,e},x.lerp=function(e,t,r,n){var i=t[0],o=t[1],a=t[2];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=a+n*(r[2]-a),e},x.hermite=function(e,t,r,n,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return e[0]=t[0]*s+r[0]*l+n[0]*c+i[0]*u,e[1]=t[1]*s+r[1]*l+n[1]*c+i[1]*u,e[2]=t[2]*s+r[2]*l+n[2]*c+i[2]*u,e},x.bezier=function(e,t,r,n,i,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,d=3*l*a,h=l*o;return e[0]=t[0]*c+r[0]*u+n[0]*d+i[0]*h,e[1]=t[1]*c+r[1]*u+n[1]*d+i[1]*h,e[2]=t[2]*c+r[2]*u+n[2]*d+i[2]*h,e},x.random=function(e,r){r=r||1;var n=2*t.RANDOM()*Math.PI,i=2*t.RANDOM()-1,o=Math.sqrt(1-i*i)*r;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=i*r,e},x.transformMat4=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=r[3]*n+r[7]*i+r[11]*o+r[15];return e[0]=(r[0]*n+r[4]*i+r[8]*o+r[12])/(a=a||1),e[1]=(r[1]*n+r[5]*i+r[9]*o+r[13])/a,e[2]=(r[2]*n+r[6]*i+r[10]*o+r[14])/a,e},x.transformMat3=function(e,t,r){var n=t[0],i=t[1],o=t[2];return e[0]=n*r[0]+i*r[3]+o*r[6],e[1]=n*r[1]+i*r[4]+o*r[7],e[2]=n*r[2]+i*r[5]+o*r[8],e},x.transformQuat=function(e,t,r){var n=r[0],i=r[1],o=r[2],a=t[0],s=t[1],l=t[2],c=i*l-o*s,u=o*
2a-n*l,d=n*s-i*a,h=i*d-o*u,p=o*c-n*d,f=n*u-i*c,m=2*r[3];return u*=m,d*=m,p*=2,f*=2,e[0]=a+(c*=m)+(h*=2),e[1]=s+u+p,e[2]=l+d+f,e},x.rotateX=function(e,t,r,n){var i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},x.rotateY=function(e,t,r,n){var i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},x.rotateZ=function(e,t,r,n){var i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e},x.angle=function(e,t){var r=e[0],n=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=Math.sqrt(r*r+n*n+i*i)*Math.sqrt(o*o+a*a+s*s),c=l&&h(e,t)/l;return Math.acos(Math.min(Math.max(c,-1),1))},x.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e},x.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},x.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},x.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=r[0],s=r[1],l=r[2];return Math.abs(n-a)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))},x.forEach=x.sqrLen=x.len=x.sqrDist=x.dist=x.div=x.mul=x.sub=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(){var e=new t.ARRAY_TYPE(3);return t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function i(e){return Math.hypot(e[0],e[1],e[2])}function o(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function c(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2])}function u(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function d(e){var t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function h(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}x.sub=o,x.mul=s,x.div=l,x.dist=c,x.sqrDist=u,x.len=i,x.sqrLen=d;var p,f=(p=n(),function(e,t,r,n,i,o){var a,s;for(t||(t=3),r||(r=0),s=n?Math.min(n*t+r,e.length):e.length,a=r;a<s;a+=t)p[0]=e[a],p[1]=e[a+1],p[2]=e[a+2],i(p,p,o),e[a]=p[0],e[a+1]=p[1],e[a+2]=p[2];return e});return x.forEach=f,x}var A,S,E={};function T(){if(A)return E;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}A=1,Object.defineProperty(E,"__esModule",{value:!0}),E.create=n,E.clone=function(e){var r=new t.ARRAY_TYPE(4);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r},E.fromValues=function(e,r,n,i){var o=new t.ARRAY_TYPE(4);return o[0]=e,o[1]=r,o[2]=n,o[3]=i,o},E.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},E.set=function(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e},E.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e},E.subtract=i,E.multiply=o,E.divide=s,E.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},E.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},E.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e},E.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}
2,E.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e},E.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e},E.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},E.distance=l,E.squaredDistance=c,E.length=u,E.squaredLength=d,E.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},E.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},E.normalize=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),e[0]=r*a,e[1]=n*a,e[2]=i*a,e[3]=o*a,e},E.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},E.cross=function(e,t,r,n){var i=r[0]*n[1]-r[1]*n[0],o=r[0]*n[2]-r[2]*n[0],a=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],l=r[1]*n[3]-r[3]*n[1],c=r[2]*n[3]-r[3]*n[2],u=t[0],d=t[1],h=t[2],p=t[3];return e[0]=d*c-h*l+p*s,e[1]=-u*c+h*a-p*o,e[2]=u*l-d*a+p*i,e[3]=-u*s+d*o-h*i,e},E.lerp=function(e,t,r,n){var i=t[0],o=t[1],a=t[2],s=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=a+n*(r[2]-a),e[3]=s+n*(r[3]-s),e},E.random=function(e,r){var n,i,o,a,s,l;r=r||1;do{s=(n=2*t.RANDOM()-1)*n+(i=2*t.RANDOM()-1)*i}while(s>=1);do{l=(o=2*t.RANDOM()-1)*o+(a=2*t.RANDOM()-1)*a}while(l>=1);var c=Math.sqrt((1-s)/l);return e[0]=r*n,e[1]=r*i,e[2]=r*o*c,e[3]=r*a*c,e},E.transformMat4=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,e},E.transformQuat=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*o-l*i,d=c*i+l*n-a*o,h=c*o+a*i-s*n,p=-a*n-s*i-l*o;return e[0]=u*c+p*-a+d*-l-h*-s,e[1]=d*c+p*-s+h*-a-u*-l,e[2]=h*c+p*-l+u*-s-d*-a,e[3]=t[3],e},E.zero=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},E.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},E.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},E.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=r[0],l=r[1],c=r[2],u=r[3];return Math.abs(n-s)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-c)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-u)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))},E.forEach=E.sqrLen=E.len=E.sqrDist=E.dist=E.div=E.mul=E.sub=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(){var e=new t.ARRAY_TYPE(4);return t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function i(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function o(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function s(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function l(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1],t[2]-e[2],t[3]-e[3])}function c(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function u(e){return Math.hypot(e[0],e[1],e[2],e[3])}function d(e){var t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}E.sub=i,E.mul=o,E.div=s,E.dist=l,E.sqrDist=c,E.len=u,E.sqrLen=d;var h,p=(h=n(),function(e,t,r,n,i,o){var a,s;for(t||(t=4),r||(r=0),s=n?Math.min(n*t+r,e.length):e.length,a=r;a<s;a+=t)h[0]=e[a],h[1]=e[a+1],h[2]=e[a+2],h[3]=e[a+3],i(h,h,o),e[a]=h[0],e[a+1]=h[1],e[a+2]=h[2],e[a+3]=h[3];return e});return E.forEach=p,E}function P(){if(S)return b;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}
2S=1,Object.defineProperty(b,"__esModule",{value:!0}),b.create=l,b.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},b.setAxisAngle=c,b.getAxisAngle=function(e,r){var n=2*Math.acos(r[3]),i=Math.sin(n/2);return i>t.EPSILON?(e[0]=r[0]/i,e[1]=r[1]/i,e[2]=r[2]/i):(e[0]=1,e[1]=0,e[2]=0),n},b.getAngle=function(e,t){var r=_(e,t);return Math.acos(2*r*r-1)},b.multiply=u,b.rotateX=function(e,t,r){r*=.5;var n=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+a*s,e[1]=i*l+o*s,e[2]=o*l-i*s,e[3]=a*l-n*s,e},b.rotateY=function(e,t,r){r*=.5;var n=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l-o*s,e[1]=i*l+a*s,e[2]=o*l+n*s,e[3]=a*l-i*s,e},b.rotateZ=function(e,t,r){r*=.5;var n=t[0],i=t[1],o=t[2],a=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=n*l+i*s,e[1]=i*l-n*s,e[2]=o*l+a*s,e[3]=a*l-o*s,e},b.calculateW=function(e,t){var r=t[0],n=t[1],i=t[2];return e[0]=r,e[1]=n,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-n*n-i*i)),e},b.exp=d,b.ln=h,b.pow=function(e,t,r){return h(e,t),g(e,e,r),d(e,e),e},b.slerp=p,b.random=function(e){var r=t.RANDOM(),n=t.RANDOM(),i=t.RANDOM(),o=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=o*Math.sin(2*Math.PI*n),e[1]=o*Math.cos(2*Math.PI*n),e[2]=a*Math.sin(2*Math.PI*i),e[3]=a*Math.cos(2*Math.PI*i),e},b.invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=r*r+n*n+i*i+o*o,s=a?1/a:0;return e[0]=-r*s,e[1]=-n*s,e[2]=-i*s,e[3]=o*s,e},b.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},b.fromMat3=f,b.fromEuler=function(e,t,r,n){var i=.5*Math.PI/180;t*=i,r*=i,n*=i;var o=Math.sin(t),a=Math.cos(t),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return e[0]=o*l*u-a*s*c,e[1]=a*s*u+o*l*c,e[2]=a*l*c-o*s*u,e[3]=a*l*u+o*s*c,e},b.str=function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},b.setAxes=b.sqlerp=b.rotationTo=b.equals=b.exactEquals=b.normalize=b.sqrLen=b.squaredLength=b.len=b.length=b.lerp=b.dot=b.scale=b.mul=b.add=b.set=b.copy=b.fromValues=b.clone=void 0;var t=s(a()),r=s(m()),n=s(w()),i=s(T());function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function s(t,r){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=o(r);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}function l(){var e=new t.ARRAY_TYPE(4);return t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function c(e,t,r){r*=.5;var n=Math.sin(r);return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=Math.cos(r),e}function u(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=r[0],l=r[1],c=r[2],u=r[3];return e[0]=n*u+a*s+i*c-o*l,e[1]=i*u+a*l+o*s-n*c,e[2]=o*u+a*c+n*l-i*s,e[3]=a*u-n*s-i*l-o*c,e}function d(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.sqrt(r*r+n*n+i*i),s=Math.exp(o),l=a>0?s*Math.sin(a)/a:0;return e[0]=r*l,e[1]=n*l,e[2]=i*l,e[3]=s*Math.cos(a),e}function h(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=Math.sqrt(r*r+n*n+i*i),s=a>0?Math.atan2(a,o)/a:0;return e[0]=r*s,e[1]=n*s,e[2]=i*s,e[3]=.5*Math.log(r*r+n*n+i*i+o*o),e}function p(e,r,n,i){var o,a,s,l,c,u=r[0],d=r[1],h=r[2],p=r[3],f=n[0],m=n[1],g=n[2],_=n[3];return(a=u*f+d*m+h*g+p*_)<0&&(a=-a,f=-f,m=-m,g=-g,_=-_),1-a>t.EPSILON?(o=Math.acos(a),s=Math.sin(o),l=Math.sin((1-i)*o)/s,c=Math.sin(i*o)/s):(l=1-i,c=i),e[0]=l*u+c*f,e[1]=l*d+c*m,e[2]=l*h+c*g,e[3]=l*p+c*_,e}function f(e,t){var r,n=t[0]+t[4]+t[8];if(n>0)r=Math.sqrt(n+1),e[3]=.5*r,e[0]=(t[5]-t[7])*(r=.5/r),e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;r=Math.sqrt(t[3*i+i]-t[3*o+o]-t[3*a+a]+1),e[i]=.5*r,e[3]=(t[3*o+a]-t[3*a+o])*(r=.5/r),e[o]=(t[3*o+i]+t[3*i+o])*r,e[a]=(t[3*a+i]+t[3*i+a])*r}return e}b.clone=i.clone,b.fromValues=i.fromValues,b.copy=i.copy,b.set=i.set,b.add=i.add,b.mul=u;var g=i.scale;b.scale=g;var _=i.dot;b.dot=_,b.lerp=i.lerp;var y=i.length;b.length=y,b.len=y;var v=i.squaredLength;b.squaredLength=v,b.sqrLen=v;var x=i.normalize;b.normalize=x,b.exactEquals=i.exactEquals,b.equals=i.equals;var A,E,P,C=(A=n.create(),E=n.fromValues(1,0,0),P=n.fromValues(0,1,0),function(e,t,r){var i=n.dot(t,r);return i<-.999999?(n.cross(A,E,t),n.len(A)<1e-6&&n.cross(A,P,t),n.normalize(A,A),c(e,A,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(n.cross(A,t,r),e[0]=A[0],e[1]=A[1],e[2]=A[2],e[3]=1+i,x(e,e))});b.rotationTo=C;var I,M,k=(I=l(),M=l(),function(e,t,r,n,i,o){return p(I,t,i,o),p(M,r,n,o),p(e,I,M,2*o*(1-o)),e});b.sqlerp=k;var O,R=(O=r.create(),function(e,t,r,n){return O[0]=r[0],O[3]=r[1],O[6]=r[2],O[1]=n[0],O[4]=n[1],O[7]=n[2],O[2]=-t[0],O[5]=-t[1],O[8]=-t[2],x(e,f(e,O))});return b.setAxes=R,b}var C,I={};function M(){if(C)return I;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}C=1,Object.defineProperty(I,"__esModule",{value:!0}),I.create=function(){var e=new t.ARRAY_TYPE(8);return t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[4]=0,e[5]=0,e[6]=0,e[7]=0),e[3]=1,e},I.clone=function(e){var r=new t.ARRAY_TYPE(8);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r},I.fromValues=function(e,r,n,i,o,a,s,l){var c=new t.ARRAY_TYPE(8);
2return c[0]=e,c[1]=r,c[2]=n,c[3]=i,c[4]=o,c[5]=a,c[6]=s,c[7]=l,c},I.fromRotationTranslationValues=function(e,r,n,i,o,a,s){var l=new t.ARRAY_TYPE(8);l[0]=e,l[1]=r,l[2]=n,l[3]=i;var c=.5*o,u=.5*a,d=.5*s;return l[4]=c*i+u*n-d*r,l[5]=u*i+d*e-c*n,l[6]=d*i+c*r-u*e,l[7]=-c*e-u*r-d*n,l},I.fromRotationTranslation=s,I.fromTranslation=function(e,t){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=.5*t[0],e[5]=.5*t[1],e[6]=.5*t[2],e[7]=0,e},I.fromRotation=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},I.fromMat4=function(e,i){var o=r.create();n.getRotation(o,i);var a=new t.ARRAY_TYPE(3);return n.getTranslation(a,i),s(e,o,a),e},I.copy=l,I.identity=function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=0,e[7]=0,e},I.set=function(e,t,r,n,i,o,a,s,l){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e},I.getDual=function(e,t){return e[0]=t[4],e[1]=t[5],e[2]=t[6],e[3]=t[7],e},I.setDual=function(e,t){return e[4]=t[0],e[5]=t[1],e[6]=t[2],e[7]=t[3],e},I.getTranslation=function(e,t){var r=t[4],n=t[5],i=t[6],o=t[7],a=-t[0],s=-t[1],l=-t[2],c=t[3];return e[0]=2*(r*c+o*a+n*l-i*s),e[1]=2*(n*c+o*s+i*a-r*l),e[2]=2*(i*c+o*l+r*s-n*a),e},I.translate=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=.5*r[0],l=.5*r[1],c=.5*r[2],u=t[4],d=t[5],h=t[6],p=t[7];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=a*s+i*c-o*l+u,e[5]=a*l+o*s-n*c+d,e[6]=a*c+n*l-i*s+h,e[7]=-n*s-i*l-o*c+p,e},I.rotateX=function(e,t,n){var i=-t[0],o=-t[1],a=-t[2],s=t[3],l=t[4],c=t[5],u=t[6],d=t[7],h=l*s+d*i+c*a-u*o,p=c*s+d*o+u*i-l*a,f=u*s+d*a+l*o-c*i,m=d*s-l*i-c*o-u*a;return r.rotateX(e,t,n),e[4]=h*(s=e[3])+m*(i=e[0])+p*(a=e[2])-f*(o=e[1]),e[5]=p*s+m*o+f*i-h*a,e[6]=f*s+m*a+h*o-p*i,e[7]=m*s-h*i-p*o-f*a,e},I.rotateY=function(e,t,n){var i=-t[0],o=-t[1],a=-t[2],s=t[3],l=t[4],c=t[5],u=t[6],d=t[7],h=l*s+d*i+c*a-u*o,p=c*s+d*o+u*i-l*a,f=u*s+d*a+l*o-c*i,m=d*s-l*i-c*o-u*a;return r.rotateY(e,t,n),e[4]=h*(s=e[3])+m*(i=e[0])+p*(a=e[2])-f*(o=e[1]),e[5]=p*s+m*o+f*i-h*a,e[6]=f*s+m*a+h*o-p*i,e[7]=m*s-h*i-p*o-f*a,e},I.rotateZ=function(e,t,n){var i=-t[0],o=-t[1],a=-t[2],s=t[3],l=t[4],c=t[5],u=t[6],d=t[7],h=l*s+d*i+c*a-u*o,p=c*s+d*o+u*i-l*a,f=u*s+d*a+l*o-c*i,m=d*s-l*i-c*o-u*a;return r.rotateZ(e,t,n),e[4]=h*(s=e[3])+m*(i=e[0])+p*(a=e[2])-f*(o=e[1]),e[5]=p*s+m*o+f*i-h*a,e[6]=f*s+m*a+h*o-p*i,e[7]=m*s-h*i-p*o-f*a,e},I.rotateByQuatAppend=function(e,t,r){var n=r[0],i=r[1],o=r[2],a=r[3],s=t[0],l=t[1],c=t[2],u=t[3];return e[0]=s*a+u*n+l*o-c*i,e[1]=l*a+u*i+c*n-s*o,e[2]=c*a+u*o+s*i-l*n,e[3]=u*a-s*n-l*i-c*o,e[4]=(s=t[4])*a+(u=t[7])*n+(l=t[5])*o-(c=t[6])*i,e[5]=l*a+u*i+c*n-s*o,e[6]=c*a+u*o+s*i-l*n,e[7]=u*a-s*n-l*i-c*o,e},I.rotateByQuatPrepend=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=r[0],l=r[1],c=r[2],u=r[3];return e[0]=n*u+a*s+i*c-o*l,e[1]=i*u+a*l+o*s-n*c,e[2]=o*u+a*c+n*l-i*s,e[3]=a*u-n*s-i*l-o*c,e[4]=n*(u=r[7])+a*(s=r[4])+i*(c=r[6])-o*(l=r[5]),e[5]=i*u+a*l+o*s-n*c,e[6]=o*u+a*c+n*l-i*s,e[7]=a*u-n*s-i*l-o*c,e},I.rotateAroundAxis=function(e,r,n,i){if(Math.abs(i)<t.EPSILON)return l(e,r);var o=Math.hypot(n[0],n[1],n[2]);i*=.5;var a=Math.sin(i),s=a*n[0]/o,c=a*n[1]/o,u=a*n[2]/o,d=Math.cos(i),h=r[0],p=r[1],f=r[2],m=r[3];e[0]=h*d+m*s+p*u-f*c,e[1]=p*d+m*c+f*s-h*u,e[2]=f*d+m*u+h*c-p*s,e[3]=m*d-h*s-p*c-f*u;var g=r[4],_=r[5],y=r[6],v=r[7];return e[4]=g*d+v*s+_*u-y*c,e[5]=_*d+v*c+y*s-g*u,e[6]=y*d+v*u+g*c-_*s,e[7]=v*d-g*s-_*c-y*u,e},I.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e},I.multiply=c,I.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e},I.lerp=function(e,t,r,n){var i=1-n;return u(t,r)<0&&(n=-n),e[0]=t[0]*i+r[0]*n,e[1]=t[1]*i+r[1]*n,e[2]=t[2]*i+r[2]*n,e[3]=t[3]*i+r[3]*n,e[4]=t[4]*i+r[4]*n,e[5]=t[5]*i+r[5]*n,e[6]=t[6]*i+r[6]*n,e[7]=t[7]*i+r[7]*n,e},I.invert=function(e,t){var r=h(t);return e[0]=-t[0]/r,e[1]=-t[1]/r,e[2]=-t[2]/r,e[3]=t[3]/r,e[4]=-t[4]/r,e[5]=-t[5]/r,e[6]=-t[6]/r,e[7]=t[7]/r,e},I.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e[4]=-t[4],e[5]=-t[5],e[6]=-t[6],e[7]=t[7],e},I.normalize=function(e,t){var r=h(t);if(r>0){r=Math.sqrt(r);var n=t[0]/r,i=t[1]/r,o=t[2]/r,a=t[3]/r,s=t[4],l=t[5],c=t[6],u=t[7],d=n*s+i*l+o*c+a*u;e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=(s-n*d)/r,e[5]=(l-i*d)/r,e[6]=(c-o*d)/r,e[7]=(u-a*d)/r}return e},I.str=function(e){return"quat2("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+")"},I.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]},I.equals=function(e,r){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],d=r[0],h=r[1],p=r[2],f=r[3],m=r[4],g=r[5],_=r[6],y=r[7];return Math.abs(n-d)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-h)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-p)<=t.EPSILON*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-f)<=t.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(s-m)<=t.
2EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-g)<=t.EPSILON*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-_)<=t.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-y)<=t.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))},I.sqrLen=I.squaredLength=I.len=I.length=I.dot=I.mul=I.setReal=I.getReal=void 0;var t=o(a()),r=o(P()),n=o(y());function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function o(t,r){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=i(r);if(n&&n.has(t))return n.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=t[s]}return o.default=t,n&&n.set(t,o),o}function s(e,t,r){var n=.5*r[0],i=.5*r[1],o=.5*r[2],a=t[0],s=t[1],l=t[2],c=t[3];return e[0]=a,e[1]=s,e[2]=l,e[3]=c,e[4]=n*c+i*l-o*s,e[5]=i*c+o*a-n*l,e[6]=o*c+n*s-i*a,e[7]=-n*a-i*s-o*l,e}function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e}function c(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=r[4],l=r[5],c=r[6],u=r[7],d=t[4],h=t[5],p=t[6],f=t[7],m=r[0],g=r[1],_=r[2],y=r[3];return e[0]=n*y+a*m+i*_-o*g,e[1]=i*y+a*g+o*m-n*_,e[2]=o*y+a*_+n*g-i*m,e[3]=a*y-n*m-i*g-o*_,e[4]=n*u+a*s+i*c-o*l+d*y+f*m+h*_-p*g,e[5]=i*u+a*l+o*s-n*c+h*y+f*g+p*m-d*_,e[6]=o*u+a*c+n*l-i*s+p*y+f*_+d*g-h*m,e[7]=a*u-n*s-i*l-o*c+f*y-d*m-h*g-p*_,e}I.getReal=r.copy,I.setReal=r.copy,I.mul=c;var u=r.dot;I.dot=u;var d=r.length;I.length=d,I.len=d;var h=r.squaredLength;return I.squaredLength=h,I.sqrLen=h,I}var k,O,R={};function L(){if(k)return R;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}k=1,Object.defineProperty(R,"__esModule",{value:!0}),R.create=n,R.clone=function(e){var r=new t.ARRAY_TYPE(2);return r[0]=e[0],r[1]=e[1],r},R.fromValues=function(e,r){var n=new t.ARRAY_TYPE(2);return n[0]=e,n[1]=r,n},R.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},R.set=function(e,t,r){return e[0]=t,e[1]=r,e},R.add=function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e},R.subtract=i,R.multiply=o,R.divide=s,R.ceil=function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e},R.floor=function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e},R.min=function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e},R.max=function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e},R.round=function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e},R.scale=function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e},R.scaleAndAdd=function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e},R.distance=l,R.squaredDistance=c,R.length=u,R.squaredLength=d,R.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},R.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e},R.normalize=function(e,t){var r=t[0],n=t[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e},R.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},R.cross=function(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e},R.lerp=function(e,t,r,n){var i=t[0],o=t[1];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e},R.random=function(e,r){r=r||1;var n=2*t.RANDOM()*Math.PI;return e[0]=Math.cos(n)*r,e[1]=Math.sin(n)*r,e},R.transformMat2=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i,e[1]=r[1]*n+r[3]*i,e},R.transformMat2d=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e},R.transformMat3=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[3]*i+r[6],e[1]=r[1]*n+r[4]*i+r[7],e},R.transformMat4=function(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[4]*i+r[12],e[1]=r[1]*n+r[5]*i+r[13],e},R.rotate=function(e,t,r,n){var i=t[0]-r[0],o=t[1]-r[1],a=Math.sin(n),s=Math.cos(n);return e[0]=i*s-o*a+r[0],e[1]=i*a+o*s+r[1],e},R.angle=function(e,t){var r=e[0],n=e[1],i=t[0],o=t[1],a=Math.sqrt(r*r+n*n)*M
2ath.sqrt(i*i+o*o);return Math.acos(Math.min(Math.max(a&&(r*i+n*o)/a,-1),1))},R.zero=function(e){return e[0]=0,e[1]=0,e},R.str=function(e){return"vec2("+e[0]+", "+e[1]+")"},R.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]},R.equals=function(e,r){var n=e[0],i=e[1],o=r[0],a=r[1];return Math.abs(n-o)<=t.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=t.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))},R.forEach=R.sqrLen=R.sqrDist=R.dist=R.div=R.mul=R.sub=R.len=void 0;var t=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=r(void 0);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}(a());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function n(){var e=new t.ARRAY_TYPE(2);return t.ARRAY_TYPE!=Float32Array&&(e[0]=0,e[1]=0),e}function i(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function o(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function s(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function l(e,t){return Math.hypot(t[0]-e[0],t[1]-e[1])}function c(e,t){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function u(e){return Math.hypot(e[0],e[1])}function d(e){var t=e[0],r=e[1];return t*t+r*r}R.len=u,R.sub=i,R.mul=o,R.div=s,R.dist=l,R.sqrDist=c,R.sqrLen=d;var h,p=(h=n(),function(e,t,r,n,i,o){var a,s;for(t||(t=2),r||(r=0),s=n?Math.min(n*t+r,e.length):e.length,a=r;a<s;a+=t)h[0]=e[a],h[1]=e[a+1],i(h,h,o),e[a]=h[0],e[a+1]=h[1];return e});return R.forEach=p,R}function D(){if(O)return n;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}O=1,Object.defineProperty(n,"__esModule",{value:!0}),n.vec4=n.vec3=n.vec2=n.quat2=n.quat=n.mat4=n.mat3=n.mat2d=n.mat2=n.glMatrix=void 0;var t=_(a());n.glMatrix=t;var r=_(c());n.mat2=r;var i=_(h());n.mat2d=i;var o=_(m());n.mat3=o;var s=_(y());n.mat4=s;var l=_(P());n.quat=l;var u=_(M());n.quat2=u;var d=_(L());n.vec2=d;var p=_(w());n.vec3=p;var f=_(T());function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function _(t,r){if(t&&t.__esModule)return t;if(null===t||"object"!==e(t)&&"function"!=typeof t)return{default:t};var n=g(r);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}return i.default=t,n&&n.set(t,i),i}return n.vec4=f,n}var N,F,z,j,B=D(),U=function(){if(F)return N;function e(e,t,r,n){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=r,this.p2y=n}return F=1,N=e,e.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,n=0;n<8;n++){var i=this.sampleCurveX(r)-e;if(Math.abs(i)<t)return r;var o=this.sampleCurveDerivativeX(r);if(Math.abs(o)<1e-6)break;r-=i/o}var a=0,s=1;for(r=e,n=0;n<20&&(i=this.sampleCurveX(r),!(Math.abs(i-e)<t));n++)e>i?a=r:s=r,r=.5*(s-a)+a;return r},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}},N}(),V=t(U);function q(){if(j)return z;function e(e,t){this.x=e,this.y=t}return j=1,z=e,e.prototype={clone:function(){return new e(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)}
vendor: 5,889 bytes, line 2
2,rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),r=Math.sin(e),n=r*this.x+t*this.y;return this.x=t*this.x-r*this.y,this.y=n,this},_rotateAround:function(e,t){var r=Math.cos(e),n=Math.sin(e),i=t.y+n*(this.x-t.x)+r*(this.y-t.y);return this.x=t.x+r*(this.x-t.x)-n*(this.y-t.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},e.convert=function(t){return t instanceof e?t:Array.isArray(t)?new e(t[0],t[1]):t},z}var H=t(q());function G(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!G(e[r],t[r]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!G(e[r],t[r]))return!1;return!0}return e===t}const W=Math.PI/180,Y=180/Math.PI;function Z(e){return e*W}function K(e){return e*Y}const X=[[0,0],[1,0],[1,1],[0,1]];function J(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function Q(e,t,r,n){const i=new V(e,t,r,n);return function(e){return i.solve(e)}}const $=Q(.25,.1,.25,1);function ee(e,t,r){return Math.min(r,Math.max(t,e))}function te(e,t,r){return(r=ee((r-e)/(t-e),0,1))*r*(3-2*r)}function re(e,t,r){const n=r-t,i=((e-t)%n+n)%n+t;return i===t?r:i}function ne(e,t,r){if(!e.length)return r(null,[]);let n=e.length;const i=new Array(e.length);let o=null;e.forEach(((e,a)=>{t(e,((e,t)=>{e&&(o=e),i[a]=t,0==--n&&r(o,i)}))}))}function ie(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(const i of r)for(const t in i)e[t]=i[t];return e}let oe=1;function ae(){return oe++}function se(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function le(e,t){e.forEach((e=>{t[e]&&(t[e]=t[e].bind(t))}))}function ce(e,t){return-1!==e.indexOf(t,e.length-t.length)}function ue(e,t,r){const n={};for(const i in e)n[i]=t.call(this,e[i],i,e);return n}function de(e,t,r){const n={};for(const i in e)t.call(this,e[i],i,e)&&(n[i]=e[i]);return n}function he(e){return Array.isArray(e)?e.map(he):"object"==typeof e&&e?ue(e,he):e}const pe={};function fe(e){pe[e]||("undefined"!=typeof console&&console.warn(e),pe[e]=!0)}function me(e,t,r){return(r.y-e.y)*(t.x-e.x)>(t.y-e.y)*(r.x-e.x)}function ge(e){let t=0;for(let r,n,i=0,o=e.length,a=o-1;i<o;a=i++)r=e[i],n=e[a],t+=(n.x-r.x)*(r.y+n.y);return t}function _e(e){let[t,r,n]=e;const i=Z(r+90),o=Z(n);return{x:t*Math.cos(i)*Math.sin(o),y:t*Math.sin(i)*Math.sin(o),z:t*Math.cos(o),azimuthal:r,polar:n}}function ye(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function ve(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,((e,r,n,i)=>{const o=n||i;return t[r]=!o||o.toLowerCase(),""})),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let be=null;function xe(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function we(e,t,r,n){for(;t<r;){const i=t+r>>1;e[i]<n?t=i+1:r=i}return t}function Ae(e,t,r,n){for(;t<r;){const i=t+r>>1;e[i]<=n?t=i+1:r=i}return t}function Se(e){return e>0?1/(1.001-e):1+e}function Ee(e){return e>0?1-1/(1.001-e):-e}const Te={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Te.API_URL)return null;try{const e=new URL(Te.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MES
2HOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Pe(e){return Te.API_URL_REGEX.test(e)}function Ce(e){return Te.API_SPRITE_REGEX.test(e)}let Ie,Me,ke,Oe,Re,Le;function De(){return null==Ie&&(Ie=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),Ie}const Ne={now:()=>void 0!==Oe?Oe:performance.now(),setNow(e){Oe=e},restoreNow(){Oe=void 0},frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const{width:r,height:n}=e;Re||(Re=document.createElement("canvas"));const i=Re.getContext("2d",{willReadFrequently:!0});if(!i)throw new Error("failed to create canvas 2d context");return(r>Re.width||n>Re.height)&&(Re.width=r,Re.height=n),i.clearRect(-t,-t,r+2*t,n+2*t),i.drawImage(e,0,0,r,n),i.getImageData(-t,-t,r+2*t,n+2*t)},resolveURL:e=>(Me||(Me=document.createElement("a")),Me.href=e,Me.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(null==ke&&(ke=window.matchMedia("(prefers-reduced-motion: reduce)")),ke.matches)},hasCanvasFingerprintNoise(){if(void 0!==Le)return Le;if(!De())return Le=!1,!1;const e=new OffscreenCanvas(85,1),t=e.getContext("2d",{willReadFrequently:!0});let r=0;for(let i=0;i<e.width;++i)t.fillStyle="rgba(".concat(r++,",").concat(r++,",").concat(r++,", 255)"),t.fillRect(i,0,1,1);const n=t.getImageData(0,0,e.width,e.height);r=0;for(let i=0;i<n.data.length;++i)if(i%4!=3&&r++!==n.data[i])return Le=!0,!0;return Le=!1,!1}};function Fe(e,t){const r=e.indexOf("?");if(r<0)return"".concat(e,"?").concat(new URLSearchParams(t).toString());const n=new URLSearchParams(e.slice(r));for(const i in t)n.set(i,t[i]);return"".concat(e.slice(0,r),"?").concat(n.toString())}function ze(e){let t=arguments.length>
21&&void 0!==arguments[1]?arguments[1]:{persistentParams:[]};const r=e.indexOf("?");if(r<0)return e;const n=new URLSearchParams,i=new URLSearchParams(e.slice(r));for(const a of t.persistentParams){const e=i.get(a);e&&n.set(a,e)}const o=n.toString();return"".concat(e.slice(0,r)).concat(o.length>0?"?".concat(o):"")}const je="mapbox-tiles";let Be=500,Ue=50;const Ve=["language","worldview","jobid"];let qe,He;function Ge(){try{return caches}catch(e){}}function We(){const e=Ge();e&&null==qe&&(qe=e.open(je))}let Ye=1/0;const Ze={supported:!1,testSupport:function(e){!Je&&Xe&&(Qe?et(e):Ke=e)}};let Ke,Xe,Je=!1,Qe=!1;const $e="undefined"!=typeof self?self:{};function et(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,Xe),e.isContextLost())return;Ze.supported=!0}catch(e){}e.deleteTexture(t),Je=!0}$e.document&&(Xe=$e.document.createElement("img"),Xe.onload=function(){Ke&&et(Ke),Ke=null,Qe=!0},Xe.onerror=function(){Je=!0,Ke=null},Xe.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const tt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};"function"==typeof Object.freeze&&Object.freeze(tt);class rt extends Error{constructor(e,t,r){401===t&&Pe(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=r}toString(){return"".concat(this.name,": ").concat(this.message," (").concat(this.status,"): ").concat(this.url)}}const nt=ye()?()=>self.worker&&self.worker.referrer:()=>("blob:"===location.protocol?parent:self).location.href,it=function(e,t){if(!(/^file:/.test(r=e.url)||/^file:/.test(nt())&&!/^\w+:/.test(r))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(e,t){const r=new AbortController,n=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:nt(),referrerPolicy:e.referrerPolicy,signal:r.signal});let i=!1,o=!1;const a=(s=n.url).indexOf("sku=")>0&&Pe(s);var s;"json"===e.type&&n.headers.set("Accept","application/json");const l=(r,i,s)=>{if(o)return;if(r&&"SecurityError"!==r.message&&fe(r.toString()),i&&s)return c(i);const l=Date.now();fetch(n).then((r=>{if(r.ok){const e=a?r.clone():null;return c(r,e,l)}return t(new rt(r.statusText,r.status,e.url))})).catch((r=>{"AbortError"!==r.name&&t(new Error("".concat(r.message," ").concat(e.url)))}))},c=(r,a,s)=>{("arrayBuffer"===e.type?r.arrayBuffer():"json"===e.type?r.json():r.text()).then((e=>{o||(a&&s&&function(e,t,r){if(We(),null==qe)return;const n=ve(t.headers.get("Cache-Control")||"");if(n["no-store"])return;const i={status:t.status,statusText:t.statusText,headers:new Headers};t.headers.forEach(((e,t)=>i.headers.set(t,e))),n["max-age"]&&i.headers.set("Expires",new Date(r+1e3*n["max-age"]).toUTCString());const o=i.headers.get("Expires");if(!o)return;if(new Date(o).getTime()-r<42e4)return;
2let a=ze(e.url,{persistentParams:Ve});if(206===t.status){const t=e.headers.get("Range");if(!t)return;i.status=200,a=Fe(a,{range:t})}!function(e,t){if(void 0===He)try{new Response(new ReadableStream),He=!0}catch(e){He=!1}He?t(e.body):e.blob().then(t)}(t,(e=>{const r=new Response(200!==(n=t.status)&&404!==n&&[101,103,204,205,304].includes(n)?null:e,i);var n;We(),null!=qe&&qe.then((e=>e.put(a,r))).catch((e=>fe(e.message)))}))}(n,a,s),i=!0,t(null,e,r.headers.get("Cache-Control"),r.headers.get("Expires")))})).catch((e=>{o||t(new Error(e.message))}))};return a?function(e,t){if(We(),null==qe)return t(null);qe.then((r=>{let n=ze(e.url,{persistentParams:Ve});const i=e.headers.get("Range");i&&(n=Fe(n,{range:i})),r.match(n).then((e=>{const i=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),r=ve(e.headers.get("Cache-Control")||"");return t>Date.now()&&!r["no-cache"]}(e);r.delete(n),i&&r.put(n,e.clone()),t(null,e,i)})).catch(t)})).catch(t)}(n,l):l(null,null),{cancel:()=>{o=!0,i||r.abort()}}}(e,t);if(ye()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var r;return function(e,t){const r=new XMLHttpRequest;r.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(r.responseType="arraybuffer");for(const n in e.headers)r.setRequestHeader(n,e.headers[n]);return"json"===e.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===e.credentials,r.onerror=()=>{t(new Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let n=r.response;if("json"===e.type)try{n=JSON.parse(r.response)}catch(e){return t(e)}t(null,n,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else t(new rt(r.statusText,r.status,e.url))},r.send(e.body),{cancel:()=>r.abort()}}(e,t)},ot=function(e,t){return it(ie(e,{type:"arrayBuffer"}),t)};function at(e){const t=document.createElement("a");return t.href=e,t.protocol===location.protocol&&t.host===location.host}const st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let lt,ct;lt=[],ct=0;const ut=function(e,t){if(Ze.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),ct>=Te.MAX_PARALLEL_IMAGE_REQUESTS){const r={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return lt.push(r),r}ct++;let r=!1;const n=()=>
2{if(!r)for(r=!0,ct--;lt.length&&ct<Te.MAX_PARALLEL_IMAGE_REQUESTS;){const e=lt.shift(),{requestParameters:t,callback:r,cancelled:n}=e;n||(e.cancel=ut(t,r).cancel)}},i=ot(e,((e,r,i,o)=>{n(),e?t(e):r&&(self.createImageBitmap?function(e,t){const r=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(r).then((e=>{t(null,e)})).catch((e=>{t(new Error("Could not load image because of ".concat(e.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))}))}(r,((e,r)=>t(e,r,i,o))):function(e,t){const r=new Image;r.onload=()=>{t(null,r),URL.revokeObjectURL(r.src),r.onload=null,requestAnimationFrame((()=>{r.src=st}))},r.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const n=new Blob([new Uint8Array(e)],{type:"image/png"});r.src=e.byteLength?URL.createObjectURL(n):st}(r,((e,r)=>t(e,r,i,o))))}));return{cancel:()=>{i.cancel(),n()}}};var dt,ht,pt,ft={exports:{}},mt={exports:{}},gt={exports:{}},_t=function(){if(pt)return ft.exports;pt=1;var e=(dt||(dt=1,mt.exports=function(e,t){var r,n,i,o,a,s,l,c;for(n=e.length-(r=3&e.length),i=t,a=3432918353,s=461845907,c=0;c<n;)l=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,i=27492+(65535&(o=5*(65535&(i=(i^=l=(65535&(l=(l=(65535&l)*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,r){case 3:l^=(255&e.charCodeAt(c+2))<<16;case 2:l^=(255&e.charCodeAt(c+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&e.charCodeAt(c)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}),mt.exports),t=(ht||(ht=1,gt.exports=function(e,t){for(var r,n=e.length,i=t^n,o=0;n>=4;)r=1540483477*(65535&(r=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(r>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:i^=(255&e.charCodeAt(o+2))<<16;case 2:i^=(255&e.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}),gt.exports);return ft.exports=e,ft.exports.murmur3=e,ft.exports.murmur2=t,ft.exports}(),yt=t(_t);class vt{constructor(e){ie(this,(arguments.length<=1?void 0:arguments[1])||{}),this.type=e}}class bt extends vt{constructor(e){super("error",ie({error:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}}function xt(e,t,r){r[e]&&-1!==r[e].indexOf(t)||(r[e]=r[e]||[],r[e].push(t))}function wt(e,t,r){if(r&&r[e]){const n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}class At{on(e,t){return this._listeners=this._listeners||{},xt(e,t,this._listeners),this}off(e,t){return wt(e,t,this._listeners),wt(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},xt(e,t,this._oneTimeListeners),this):new Promise((t=>this.once(e,t)))}fire(e,t){const r="string"==typeof e?new vt(e,t):e,n=r.type;if(this.listens(n)){r.target=this;const e=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of e)n.call(this,r);const t=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const o of t)wt(n,o,this._oneTimeListeners),o.call(this,r);const i=this._eventedParent;i&&(ie(r,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),i.fire(r))}else r instanceof bt&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var St,Et={},Tt=function(){if(St)return Et;St=1;var e={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function t(e){return(e=Math.round(e))<0?0:e>255?255:e}function r(e){return t("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function n(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function i(e,t,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?e+(t-e)*r*6:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}try{Et.parseCSSColor=function(o){var a,s=o.replace(/ /g,"").toLowerCase();if(s in e)return e[s].slice();if("#"===s[0])return 4===s.length?(a=parseInt(s.substr(1),16))>=0&&a<=4095?[(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,1]:null:7===s.length&&(a=parseInt(s.substr(1),16))>=0&&a<=16777215?[(16711680&a)>>16,(65280&a)>>8,255&a,1]:null;var l=s.indexOf("("),c=s.indexOf(")");if(-1!==l&&c+1===s.length){var u=s.substr(0,l),d=s.substr(l+1,c-(l+1)).split(","),h=1;switch(u){case"rgba":if(4!==d.length)return null;h=n(d.pop());case"rgb":return 3!==d.length?null:[r(d[0]),r(d[1]),r(d[2]),h];case"hsla":if(4!==d.length)return null;h=n(d.pop());case"hsl":if(3!==d.length)return null;var p=(parseFloat(d[0])%360+360)%360/360,f=n(d[1]),m=n(d[2]),g=m<=.5?m*(f+1):m+f-m*f,_=2*m-g;return[t(255*i(_,g,p+1/3)),t(255*i(_,g,p)),t(255*i(_,g,p-1/3)),h];default:return null}}return null}}catch(e){}return Et}();class Pt{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.r=e,this.g=t,this.b=r,this.a=n}static parse(e){if(!e)return;if(e instanceof Pt)return e;if("string"!=typeof e)return;const t=Tt.parseCSSColor(e);return t?new Pt(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toStringPremultipliedAlpha(){const[e,t,r,n]=0===this.a?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return"rgba(".concat(Math.round(e),",").concat(Math.round(t),",").concat(Math.round(r),",").concat(n,")")}toString(){const[e,t,r,n]=[this.r,this.g,this.b,this.a];return"rgba(".concat(Math.round(255*e),",").concat(Math.round(255*t),",").concat(Math.round(255*r),",").concat(n,")")}toRenderColor(e){const{r:t,g:r,b:n,a:i}=this;return new Ct(e,t,r,n,i)}clone(){return new Pt(this.r,this.g,this.b,this.a)}}class Ct{constructor(e,t,r,n,i){if(e){const o=e.image.height,a=o*o;t=0===i?0:t/i*(o-1),r=0===i?0:r/i*(o-1),n=0===i?0:n/i*(o-1);const s=Math.floor(t),l=Math.floor(r),c=Math.floor(n),u=Math.ceil(t),d=Math.ceil(r),h=Math.ceil(n),p=t-s,f=r-l,m=n-c,g=e.image.data,_=4*(s+l*a+c*o),y=4*(s+l*a+h*o),v=4*(s+d*a+c*o),b=4*(s+d*a+h*
2o),x=4*(u+l*a+c*o),w=4*(u+l*a+h*o),A=4*(u+d*a+c*o),S=4*(u+d*a+h*o);if(_<0||S>=g.length)throw new Error("out of range");this.r=It(It(It(g[_],g[y],m),It(g[v],g[b],m),f),It(It(g[x],g[w],m),It(g[A],g[S],m),f),p)/255*i,this.g=It(It(It(g[_+1],g[y+1],m),It(g[v+1],g[b+1],m),f),It(It(g[x+1],g[w+1],m),It(g[A+1],g[S+1],m),f),p)/255*i,this.b=It(It(It(g[_+2],g[y+2],m),It(g[v+2],g[b+2],m),f),It(It(g[x+2],g[w+2],m),It(g[A+2],g[S+2],m),f),p)/255*i,this.a=i}else this.r=t,this.g=r,this.b=n,this.a=i}toArray(){const{r:e,g:t,b:r,a:n}=this;return 0===n?[0,0,0,0]:[255*e/n,255*t/n,255*r/n,n]}toHslaArray(){if(0===this.a)return[0,0,0,0];const{r:e,g:t,b:r,a:n}=this,i=Math.min(Math.max(e/n,0),1),o=Math.min(Math.max(t/n,0),1),a=Math.min(Math.max(r/n,0),1),s=Math.min(i,o,a),l=Math.max(i,o,a),c=(s+l)/2;if(s===l)return[0,0,100*c,n];const u=l-s,d=c>.5?u/(2-l-s):u/(l+s);let h=0;return l===i?h=(o-a)/u+(o<a?6:0):l===o?h=(a-i)/u+2:l===a&&(h=(i-o)/u+4),h*=60,[Math.min(Math.max(h,0),360),Math.min(Math.max(100*d,0),100),Math.min(Math.max(100*c,0),100),n]}toArray01(){const{r:e,g:t,b:r,a:n}=this;return 0===n?[0,0,0,0]:[e/n,t/n,r/n,n]}toArray01Scaled(e){const{r:t,g:r,b:n,a:i}=this;return 0===i?[0,0,0]:[t/i*e,r/i*e,n/i*e]}toArray01PremultipliedAlpha(){const{r:e,g:t,b:r,a:n}=this;return[e,t,r,n]}toArray01Linear(){const{r:e,g:t,b:r,a:n}=this;return 0===n?[0,0,0,0]:[Math.pow(e/n,2.2),Math.pow(t/n,2.2),Math.pow(r/n,2.2),n]}}function It(e,t,r){return e*(1-r)+t*r}function Mt(e,t,r){return e.map(((e,n)=>It(e,t[n],r)))}Pt.black=new Pt(0,0,0,1),Pt.white=new Pt(1,1,1,1),Pt.transparent=new Pt(0,0,0,0),Pt.red=new Pt(1,0,0,1),Pt.blue=new Pt(0,0,1,1);var kt=Object.freeze({__proto__:null,array:Mt,color:function(e,t,r){return new Pt(It(e.r,t.r,r),It(e.g,t.g,r),It(e.b,t.b,r),It(e.a,t.a,r))},number:It});function Ot(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(const i of r)for(const t in i)e[t]=i[t];return e}class Rt extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class Lt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.parent=e,this.bindings={};for(const[r,n]of t)this.bindings[r]=n}concat(e){return new Lt(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error("".concat(e," not found in scope."))}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Dt={kind:"null"},Nt={kind:"number"},Ft={kind:"string"},zt={kind:"boolean"},jt={kind:"color"},Bt={kind:"object"},Ut={kind:"value"},Vt={kind:"collator"},qt={kind:"formatted"},Ht={kind:"resolvedImage"};function Gt(e,t){return{kind:"array",itemType:e,N:t}}function Wt(e){if("array"===e.kind){const t=Wt(e.itemType);return"number"==typeof e.N?"array<".concat(t,", ").concat(e.N,">"):"value"===e.itemType.kind?"array":"array<".concat(t,">")}return e.kind}const Yt=[Dt,Nt,Ft,zt,jt,qt,Bt,Gt(Ut),Ht];function Zt(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Zt(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of Yt)if(!Zt(e,t))return null}return"Expected ".concat(Wt(e)," but found ").concat(Wt(t)," instead.")}function Kt(e,t){return t.some((t=>t.kind===e.kind))}function Xt(e,t){return t.some((t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e))}class Jt{constructor(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Qt{constructor(e,t,r,n,i){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=r,this.fontStack=n,this.textColor=i}}class $t{constructor(e){this.sections=e}static fromString(e){return new $t([new Qt(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some((e=>0!==e.text.length||e.image&&e.image.namePrimary))}static factory(e){return e instanceof $t?e:$t.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map((e=>e.text)).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.namePrimary]);continue}e.push(t.text);const r={};t.fontStack&&(r["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(r["font-scale"]=t.scale),t.textColor&&(r["text-color"]=["rgba"].concat(t.textColor.toRenderColor(null).toArray())),e.push(r)}return e}}class er{constructor(e,t){if(this.id=e,this.options=t||{params:{}},this.options.transform){const{a:e,b:t,c:r,d:n,e:i,f:o}=this.options.transform;this.options.transform=new DOMMatrix([e,t,r,n,i,o])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}static deserializeId(e){return JSON.parse(e).id}static deserializeFromString(e){const t=JSON.parse(e),{a:r,b:n,c:i,d:o,e:a,f:s}=t.options.transform;return new DOMMatrix([r,n,i,o,a,s]),new er(t.id,t.options)}scaleSelf(e){return this.options.transform=this.options.transform.scale(e),this}serialize(){const e={id:this.id};this.options&&(e.options=this.options);const{a:t,b:r,c:n,d:i,e:o,f:a}=this.options.transform;return e.options.transform={a:t,b:r,c:n,d:i,e:o,f:a},JSON.stringify(e)}}class tr{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),e.optionsPrimary&&(this.optionsPrimary=e.optionsPrimary),e.optionsSecondary&&(this.optionsSecondary=e.optionsSecondary),this.available=e.available}toString(){return this.namePrimary&&this.nameSecondary?"[".concat(this.namePrimary,",").concat(this.nameSecondary,"]"):this.namePrimary}getPrimary(){return new er(this.namePrimary,{params:this.optionsPrimary&&this.optionsPrimary.params||{}})}getSerializedPrimary(){return this.getPrimary().serialize()}getSecondary(){return this.nameSecondary?new er(this.nameSecondary,{params:this.optionsSecondary&&this.optionsSecondary.params||{}}):null}static from(e){return"string"==typeof e?tr.build(e):e}static build(e,t,r,n){return e?new tr({namePrimary:e,nameSecondary:t,optionsPrimary:r,optionsSecondary:n,available:!1}):null}}function rr(e,t,r,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid rgba value [".concat([e,t,r,n].join(", "),"]: 'a' must be between 0 and 1."):"Invalid rgba value [".concat(("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", "),"]: 'r', 'g', and 'b' must be between 0 and 255.")}function nr(e){if(null===e)return!0;
2if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Pt)return!0;if(e instanceof Jt)return!0;if(e instanceof $t)return!0;if(e instanceof tr)return!0;if(Array.isArray(e)){for(const t of e)if(!nr(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!nr(e[t]))return!1;return!0}return!1}function ir(e){if(null===e)return Dt;if("string"==typeof e)return Ft;if("boolean"==typeof e)return zt;if("number"==typeof e)return Nt;if(e instanceof Pt)return jt;if(e instanceof Jt)return Vt;if(e instanceof $t)return qt;if(e instanceof tr)return Ht;if(Array.isArray(e)){const t=e.length;let r;for(const n of e){const e=ir(n);if(r){if(r===e)continue;r=Ut;break}r=e}return Gt(r||Ut,t)}return Bt}function or(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Pt?e.toStringPremultipliedAlpha():e instanceof $t||e instanceof tr?e.toString():JSON.stringify(e)}class ar{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found ".concat(e.length-1," instead."));if(!nr(e[1]))return t.error("invalid value");const r=e[1];let n=ir(r);const i=t.expectedType;return"array"!==n.kind||0!==n.N||!i||"array"!==i.kind||"number"==typeof i.N&&0!==i.N||(n=i),new ar(n,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Pt?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof $t?this.value.serialize():this.value}}class sr{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const lr={string:Ft,number:Nt,boolean:zt,object:Bt};class cr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let r,n=1;const i=e[0];if("array"===i){let i,o;if(e.length>2){const r=e[1];if("string"!=typeof r||!(r in lr)||"object"===r)return t.error('The item type argument of "array" must be one of string, number, boolean',1);i=lr[r],n++}else i=Ut;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);o=e[2],n++}r=Gt(i,o)}else r=lr[i];const o=[];for(;n<e.length;n++){const r=t.parse(e[n],n,Ut);if(!r)return null;o.push(r)}return new cr(r,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const r=this.args[t].evaluate(e);if(!Zt(this.type,ir(r)))return r;if(t===this.args.length-1)throw new sr("The expression ".concat(JSON.stringify(this.args[t].serialize())," evaluated to ").concat(Wt(ir(r))," but was expected to be of type ").concat(Wt(this.type),"."))}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const r=e.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){t.push(r.kind);const n=e.N;("number"==typeof n||this.args.length>1)&&t.push(n)}}return t.concat(this.args.map((e=>e.serialize())))}}class ur{constructor(e){this.type=qt,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&"object"==typeof r)return t.error("First argument must be an image or text section.");const n=[];let i=!1;for(let o=1;o<=e.length-1;++o){const r=e[o];if(i&&"object"==typeof r&&!Array.isArray(r)){i=!1;let e=null;if(r["font-scale"]&&(e=t.parseObjectValue(r["font-scale"],o,"font-scale",Nt),!e))return null;let a=null;if(r["text-font"]&&(a=t.parseObjectValue(r["text-font"],o,"text-font",Gt(Ft)),!a))return null;let s=null;if(r["text-color"]&&(s=t.parseObjectValue(r["text-color"],o,"text-color",jt),!s))return null;const l=n[n.length-1];l.scale=e,l.font=a,l.textColor=s}else{const r=t.parse(e[o],o,Ut);if(!r)return null;const a=r.type.kind;if("string"!==a&&"value"!==a&&"null"!==a&&"resolvedImage"!==a)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,n.push({content:r,scale:null,font:null,textColor:null})}}return new ur(n)}evaluate(e){return new $t(this.sections.map((t=>{const r=t.content.evaluate(e);return ir(r)===Ht?new Qt("",r,null,null,null):new Qt(or(r),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const r={};t.scale&&(r["font-scale"]=t.scale.serialize()),t.font&&(r["text-font"]=t.font.serialize()),t.textColor&&(r["text-color"]=t.textColor.serialize()),e.push(r)}return e}}class dr{constructor(e,t,r,n){this._imageWarnHistory={},this.type=Ht,this.inputPrimary=e,this.inputSecondary=t,this.inputPrimaryParams=r,this.inputSecondaryParams=n}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");let r=1;const n=[];function i(){if(r<e.length){const i=t.parse(e[r],r++,Ft);return i?(n.push({image:i,options:void 0}),!0):(t.error(n.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function o(){if(r<e.length){if(null===(i=e[r])||"object"!=typeof i||Array.isArray(i))return!0;const o=e[r].params,a=t.concat(r);if(!o)return r++,!0;if("object"!=typeof o||o.constructor!==Object)return a.error('Image options "params" should be an object'),!1;const s={},l=a.concat(void 0,"params");for(const e in o){if(!e)return l.error("Image parameter name should be non-empty"),!1;const t=l.concat(void 0,e).parse(o[e],void 0,jt,void 0,{typeAnnotation:"coerce"});if(!t)return!1;s[e]=t}return n[n.length-1].options=s,r++,!0}var i;return!0}for(let a=0;a<2;a++)if(!i()||!o())return;return new dr(n[0].image,n[1]?n[1].image:void 0,n[0].options,n[1]?n[1].options:void 0)}evaluateParams(e,t){const r={};if(t){for(const n in t)if(t[n])try{const i=t[n].evaluate(e),o='Ignoring image parameter "'.concat(n,'" with semi-transparent color ').concat(i.toString());if(1!==i.a){this._imageWarnHistory[o]||(console.warn(o),this._imageWarnHistory[o]=!0);continue}r[n]=i}catch(e){continue}if(0!==Object.keys(r).length)return{params:r}}}evaluate(e){const t=tr.build(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0,this.inputPrimaryParams?this.evaluateParams(e,this.inputPrimaryParams):void 0,this.inputSecondaryParams?this.evaluateParams(e,this.inputSecondaryParams):void 0);return t&&e.availableImages&&(t.available=e.availableImages.indexOf(t.namePrimary)>-1,t.nameSecondary&&t.available&&e.availableImages&&(t.available=e.availableImages.indexOf(t.nameSecondary)>-1)),t}eachChild(e){if(e(this.inputPrimary),this.inputPrimaryParams)for(const t in this.inputPrimaryParams)this.inputPrimaryParams[t]&&e(this.inputPrimaryParams[t]);if(this.inputSecondary&&(e(this.inputSecondary),this.inputSecondaryParams))for(const t in this.inputSecondaryParams)this.inputSecondaryParams[t]&&e(this.inputSecondaryParams[t])}outputDefined(){return!1}serializeParams(e){const t={};if(e){for(const r in e)e[r]&&(t[r]=e[r].serialize());return{params:t}}}serialize(){const e=["image",this.inputPrimary.serialize()];return this.inputPrimaryParams&&e.push(this.serializeParams(this.inputPrimaryParams)),this.inputSecondary&&(e.push(this.inputSecondary.serialize()),this.inputSecondaryParams&&e.push(this.serializeParams(this.inputSecondaryParams))),e}}function hr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}const pr={"to-boolean":zt,"to-color":jt,"to-number":Nt,"to-string":Ft};
vendor: 9,760 bytes, line 2
2class fr{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const r=e[0],n=[];let i=Dt;if("to-array"===r){if(!Array.isArray(e[1]))return null;const r=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error("Expected ".concat(t.expectedType.kind," but found array."));i=Gt(t.expectedType.itemType,r)}else{if(!(r>0&&nr(e[1][0])))return null;i=Gt(ir(e[1][0]),r)}for(let o=0;o<r;o++){const r=e[1][o];let a;if("array"===hr(r))a=t.parse(r,void 0,i.itemType);else{const e=hr(r);if(e!==i.itemType.kind)return t.error("Expected ".concat(i.itemType.kind," but found ").concat(e,"."));a=t.registry.literal.parse(["literal",void 0===r?null:r],t)}if(!a)return null;n.push(a)}}else{if(("to-boolean"===r||"to-string"===r)&&2!==e.length)return t.error("Expected one argument.");i=pr[r];for(let r=1;r<e.length;r++){const i=t.parse(e[r],r,Ut);if(!i)return null;n.push(i)}}return new fr(i,n)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,r;for(const n of this.args){if(t=n.evaluate(e),r=null,t instanceof Pt)return t;if("string"==typeof t){const r=e.parseColor(t);if(r)return r}else if(Array.isArray(t)&&(r=t.length<3||t.length>4?"Invalid rbga value ".concat(JSON.stringify(t),": expected an array containing either three or four numeric values."):rr(t[0],t[1],t[2],t[3]),!r))return new Pt(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new sr(r||"Could not parse color from value '".concat("string"==typeof t?t:String(JSON.stringify(t)),"'"))}if("number"===this.type.kind){let t=null;for(const r of this.args){if(t=r.evaluate(e),null===t)return 0;const n=Number(t);if(!isNaN(n))return n}throw new sr("Could not convert ".concat(JSON.stringify(t)," to number."))}return"formatted"===this.type.kind?$t.fromString(or(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?tr.build(or(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map((t=>t.evaluate(e))):or(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){if("formatted"===this.type.kind)return new ur([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new dr(this.args[0]).serialize();const e="array"===this.type.kind?[]:["to-".concat(this.type.kind)];return this.eachChild((t=>{e.push(t.serialize())})),e}}const mr=["Unknown","Point","LineString","Polygon"];class gr{constructor(e,t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=t}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?mr[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:r,y:n}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*t-e[0])+this.featureDistanceData.bearing[1]*(n*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Pt.parse(e)),t}getConfig(e){return this.options?this.options.get(e):null}}class _r{constructor(e,t,r,n,i){this.name=e,this.type=t,this._evaluate=r,this.args=n,this._overloadIndex=i}evaluate(e){if(!this._evaluate){const e=_r.definitions[this.name];this._evaluate=Array.isArray(e)?e[2]:e.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map((e=>e.serialize())))}static parse(e,t){const r=e[0],n=_r.definitions[r];if(!n)return t.error('Unknown expression "'.concat(r,'". If you wanted a literal array, use ["literal", [...]].'),0);const i=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,a=[];let s=null,l=-1;for(const[c,u]of o){if(Array.isArray(c)&&c.length!==e.length-1)continue;a.push(c),l++,s=new zn(t.registry,t.path,null,t.scope,void 0,t._scope,t.options);const n=[];let o=!1;for(let t=1;t<e.length;t++){const r=e[t],i=Array.isArray(c)?c[t-1]:c.type,a=s.parse(r,1+n.length,i);if(!a){o=!0;break}n.push(a)}if(!o)if(Array.isArray(c)&&c.length!==n.length)s.error("Expected ".concat(c.length," arguments, but found ").concat(n.length," instead."));else{for(let e=0;e<n.length;e++){const t=Array.isArray(c)?c[e]:c.type,r=n[e];s.concat(e+1).checkSubtype(t,r.type)}if(0===s.errors.length)return new _r(r,i,u,n,l)}}if(1===a.length)t.errors.push(...s.errors);else{const r=(a.length?a:o.map((e=>{let[t]=e;return t}))).map(yr).join(" | "),n=[];for(let i=1;i<e.length;i++){const r=t.parse(e[i],1+n.length);if(!r)return null;n.push(Wt(r.type))}t.error("Expected arguments of type ".concat(r,", but found (").concat(n.join(", "),") instead."))}return null}static register(e,t){_r.definitions=t;for(const r in t)e[r]=_r}}function yr(e){return Array.isArray(e)?"(".concat(e.map(Wt).join(", "),")"):"(".concat(Wt(e.type),"...)")}class vr{constructor(e,t,r){this.type=Vt,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const r=e[1];if("object"!=typeof r||Array.isArray(r))return t.error("Collator options argument must be an object.");const n=void 0===r["case-sensitive"]?t.parse(!1,1,zt):t.parseObjectValue(r["case-sensitive"],1,"case-sensitive",zt);if(!n)return null;const i=void 0===r["diacritic-sensitive"]?t.parse(!1,1,zt):t.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",zt);if(!i)return null;let o=null;return r.locale&&(o=t.parseObjectValue(r.locale,1,"locale",Ft),!o)?null:new vr(n,i,o)}evaluate(e){return new Jt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function br(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length-1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wr;for(;n>r;){if(n-r>600){const o=n-r+1,a=t-r+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);br(e,t,Math.max(r,Math.floor(t-a*l/o+c)),Math.min(n,Math.floor(t+(o-a)*l/o+c)),i)}const o=e[t];let a=r,s=n;for(xr(e,r,t),i(e[n],o)>0&&xr(e,r,n);a<s;){for(xr(e,a,s),a++,s--;i(e[a],o)<0;)a++;for(;i(e[s],o)>0;)s--}0===i(e[r],o)?xr(e,r,s):(s++,xr(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}}function xr(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function wr(e,t){return e<t?-1:e>t?1:0}function Ar(e){let t=0;for(let r,n,i=0,o=e.length,a=o-1;i<o;a=i++)r=e[i],n=e[a],t+=(n.x-r.x)*(r.y+n.y);return t}function Sr(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Er(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Tr(e,t,r){const n=e[0]-t[0],i=e[1]-t[1],o=e[0]-r[0],a=e[1]-r[1];return n*a-o*i==0&&n*o<=0&&i*a<=0}function Pr(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1;for(let s=0,l=t.length;s<l;s++){const l=t[s];for(let t=0,s=l.length,c=s-1;t<s;c=t++){const s=l[c],u=l[t];if(Tr(e,s,u))return r;(o=s)[1]>(i=e)[1]!=(a=u)[1]>i[1]&&i[0]<(a[0]-o[0])*(i[1]-o[1])/(a[1]-o[1])+o[0]&&(n=!n)}}var i,o,a;return n}function Cr(e,t,r,n){const i=n[0]-r[0],o=n[1]-r[1],a=(e[0]-r[0])*o-i*(e[1]-r[1]),s=(t[0]-r[0])*o-i*(t[1]-r[1]);return a>0&&s<0||a<0&&s>0}function Ir(e,t,r,n){return 0!=(i=[n[0]-r[0],n[1]-r[1]])[0]*(o=[t[0]-e[0],t[1]-e[1]])[1]-i[1]*o[0]&&!(!Cr(e,t,r,n)||!Cr(r,n,e,t));var i,o}const Mr=8192;function kr(e,t){const r=(180+e[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,i=Math.pow(2,t.z);return[Math.round(r*i*Mr),Math.round(n*i*Mr)]}function Or(e,t){for(let r=0;r<t.length;r++)if(Pr(e,t[r]))return!0;return!1}function Rr(e,t,r){for(const n of r)for(let r=0,i=n.length,o=i-1;r<i;o=r++)if(Ir(e,t,n[o],n[r]))return!0;return!1}function Lr(e,t){for(let r=0;r<e.length;++r)if(!Pr(e[r],t))return!1;for(let r=0;r<e.length-1;++r)if(Rr(e[r],e[r+1],t))return!1;return!0}function Dr(e,t){for(let r=0;r<t.length;r++)if(Lr(e,t[r]))return!0;return!1}function Nr(e,t,r){const n=[];for(let i=0;i<e.length;i++){const o=[];for(let n=0;n<e[i].length;n++){const a=kr(e[i][n],r);Sr(t,a),o.push(a)}n.push(o)}return n}function Fr(e,t,r){const n=[];for(let i=0;i<e.length;i++){const o=Nr(e[i],t,r);n.push(o)}return n}function zr(e,t,r,n){if(e[0]<r[0]||e[0]>r[2]){const t=.5*n;let i=e[0]-r[0]>t?-n:r[0]-e[0]>t?n:0;0===i&&(i=e[0]-r[2]>t?-n:r[2]-e[0]>t?n:0),e[0]+=i}Sr(t,e)}function jr(e,t,r,n){const i=Math.pow(2,n.z)*Mr,o=[n.x*Mr,n.y*Mr],a=[];if(!e)return a;for(const s of e)for(const e of s){const n=[e.x+o[0],e.y+o[1]];zr(n,t,r,i),a.push(n)}return a}function Br(e,t,r,n){const i=Math.pow(2,n.z)*Mr,o=[n.x*Mr,n.y*Mr],a=[];if(!e)return a;for(const l of e){const e=[];for(const r of l){const n=[r.x+o[0],r.y+o[1]];Sr(t,n),e.push(n)}a.push(e)}if(t[2]-t[0]<=i/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of a)for(const n of e)zr(n,t,r,i)}var s;return a}
2class Ur{constructor(e,t){this.type=zt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found ".concat(e.length-1," instead."));if(nr(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const r=t.features[e].geometry.type;if("Polygon"===r||"MultiPolygon"===r)return new Ur(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Ur(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Ur(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){const o=Nr(t.coordinates,n,i),a=jr(e.geometry(),r,n,i);if(!Er(r,n))return!1;for(const e of a)if(!Pr(e,o))return!1}if("MultiPolygon"===t.type){const o=Fr(t.coordinates,n,i),a=jr(e.geometry(),r,n,i);if(!Er(r,n))return!1;for(const e of a)if(!Or(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if("Polygon"===t.type){const o=Nr(t.coordinates,n,i),a=Br(e.geometry(),r,n,i);if(!Er(r,n))return!1;for(const e of a)if(!Lr(e,o))return!1}if("MultiPolygon"===t.type){const o=Fr(t.coordinates,n,i),a=Br(e.geometry(),r,n,i);if(!Er(r,n))return!1;for(const e of a)if(!Dr(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Vr={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},qr=1/298.257223563,Hr=qr*(2-qr),Gr=Math.PI/180;class Wr{static fromTile(e,t,r){const n=Math.PI*(1-2*(e+.5)/Math.pow(2,t)),i=Math.atan(.5*(Math.exp(n)-Math.exp(-n)))/Gr;return new Wr(i,r)}static get units(){return Vr}constructor(e,t){if(void 0===e)throw new Error("No latitude given.");if(t&&!Vr[t])throw new Error("Unknown unit ".concat(t,". Use one of: ").concat(Object.keys(Vr).join(", ")));const r=6378.137*Gr*(t?Vr[t]:1),n=Math.cos(e*Gr),i=1/(1-Hr*(1-n*n)),o=Math.sqrt(i);this.kx=r*o*n,this.ky=r*o*i*(1-Hr)}distance(e,t){const r=Kr(e[0]-t[0])*this.kx,n=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+n*n)}bearing(e,t){const r=Kr(t[0]-e[0])*this.kx;return Math.atan2(r,(t[1]-e[1])*this.ky)/Gr}destination(e,t,r){const n=r*Gr;return this.offset(e,Math.sin(n)*t,Math.cos(n)*t)}offset(e,t,r){return[e[0]+t/this.kx,e[1]+r/this.ky]}lineDistance(e){let t=0;for(let r=0;r<e.length-1;r++)t+=this.distance(e[r],e[r+1]);return t}area(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];for(let e=0,i=n.length,o=i-1;e<i;o=e++)t+=Kr(n[e][0]-n[o][0])*(n[e][1]+n[o][1])*(r?-1:1)}return Math.abs(t)/2*this.kx*this.ky}along(e,t){let r=0;if(t<=0)return e[0];for(let n=0;n<e.length-1;n++){const i=e[n],o=e[n+1],a=this.distance(i,o);if(r+=a,r>t)return Zr(i,o,(t-(r-a))/a)}return e[e.length-1]}pointToSegmentDistance(e,t,r){let[n,i]=t,o=Kr(r[0]-n)*this.kx,a=(r[1]-i)*this.ky;if(0!==o||0!==a){const t=(Kr(e[0]-n)*this.kx*o+(e[1]-i)*this.ky*a)/(o*o+a*a);t>1?(n=r[0],i=r[1]):t>0&&(n+=o/this.kx*t,i+=a/this.ky*t)}return o=Kr(e[0]-n)*this.kx,a=(e[1]-i)*this.ky,Math.sqrt(o*o+a*a)}pointOnLine(e,t){let r=1/0,n=e[0][0],i=e[0][1],o=0,a=0;for(let s=0;s<e.length-1;s++){let l=e[s][0],c=e[s][1],u=Kr(e[s+1][0]-l)*this.kx,d=(e[s+1][1]-c)*this.ky,h=0;0===u&&0===d||(h=(Kr(t[0]-l)*this.kx*u+(t[1]-c)*this.ky*d)/(u*u+d*d),h>1?(l=e[s+1][0],c=e[s+1][1]):h>0&&(l+=u/this.kx*h,c+=d/this.ky*h)),u=Kr(t[0]-l)*this.kx,d=(t[1]-c)*this.ky;const p=u*u+d*d;p<r&&(r=p,n=l,i=c,o=s,a=h)}return{point:[n,i],index:o,t:Math.max(0,Math.min(1,a))}}lineSlice(e,t,r){let n=this.pointOnLine(r,e),i=this.pointOnLine(r,t);if(n.index>i.index||n.index===i.index&&n.t>i.t){const e=n;n=i,i=e}const o=[n.point],a=n.index+1,s=i.index;!Yr(r[a],o[0])&&a<=s&&o.push(r[a]);for(let l=a+1;l<=s;l++)o.push(r[l]);return Yr(r[s],i.point)||o.push(i.point),o}lineSliceAlong(e,t,r){let n=0;const i=[];for(let o=0;o<r.length-1;o++){const a=r[o],s=r[o+1],l=this.distance(a,s);if(n+=l,n>
2e&&0===i.length&&i.push(Zr(a,s,(e-(n-l))/l)),n>=t)return i.push(Zr(a,s,(t-(n-l))/l)),i;n>e&&i.push(s)}return i}bufferPoint(e,t){const r=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-r,e[0]+n,e[1]+r]}bufferBBox(e,t){const r=t/this.ky,n=t/this.kx;return[e[0]-n,e[1]-r,e[2]+n,e[3]+r]}insideBBox(e,t){return Kr(e[0]-t[0])>=0&&Kr(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]}}function Yr(e,t){return e[0]===t[0]&&e[1]===t[1]}function Zr(e,t,r){const n=Kr(t[0]-e[0]);return[e[0]+n*r,e[1]+(t[1]-e[1])*r]}function Kr(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}class Xr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,t)=>e<t?-1:e>t?1:0;if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:r}=this,n=t[e];for(;e>0;){const i=e-1>>1,o=t[i];if(r(n,o)>=0)break;t[e]=o,e=i}t[e]=n}_down(e){const{data:t,compare:r}=this,n=this.length>>1,i=t[e];for(;e<n;){let n=1+(e<<1);const o=n+1;if(o<this.length&&r(t[o],t[n])<0&&(n=o),r(t[n],i)>=0)break;t[e]=t[n],e=n}t[e]=i}}var Jr=8192;function Qr(e,t){return t.dist-e.dist}const $r=100,en=50;function tn(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function rn(e){return e[1]-e[0]+1}function nn(e,t){const r=e[1]>=e[0]&&e[1]<t;return r||console.warn("Distance Expression: Index is out of range"),r}function on(e,t){if(e[0]>e[1])return[null,null];const r=rn(e);if(t){if(2===r)return[e,null];const t=Math.floor(r/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===r)return[e,null];const t=Math.floor(r/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function an(e,t){const r=[1/0,1/0,-1/0,-1/0];if(!nn(t,e.length))return r;for(let n=t[0];n<=t[1];++n)Sr(r,e[n]);return r}function sn(e){const t=[1/0,1/0,-1/0,-1/0];for(let r=0;r<e.length;++r)for(let n=0;n<e[r].length;++n)Sr(t,e[r][n]);return t}function ln(e,t,r){if(tn(e)||tn(t))return NaN;let n=0,i=0;return e[2]<t[0]&&(n=t[0]-e[2]),e[0]>t[2]&&(n=e[0]-t[2]),e[1]>t[3]&&(i=e[1]-t[3]),e[3]<t[1]&&(i=t[1]-e[3]),r.distance([0,0],[n,i])}function cn(e){return 360*e-180}function un(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function dn(e,t){const r=Math.pow(2,t.z),n=(e.y/Jr+t.y)/r;return[cn((e.x/Jr+t.x)/r),un(n)]}function hn(e,t){const r=[];for(let n=0;n<e.length;++n)r.push(dn(e[n],t));return r}function pn(e,t,r){const n=r.pointOnLine(t,e).point;return r.distance(e,n)}function fn(e,t,r,n,i){const o=r.slice(n[0],n[1]+1);let a=1/0;for(let s=t[0];s<=t[1];++s)if(0===(a=Math.min(a,pn(e[s],o,i))))return 0;return a}function mn(e,t,r,n,i){const o=Math.min(i.pointToSegmentDistance(e,r,n),i.pointToSegmentDistance(t,r,n)),a=Math.min(i.pointToSegmentDistance(r,e,t),i.pointToSegmentDistance(n,e,t));return Math.min(o,a)}function gn(e,t,r,n,i){if(!nn(t,e.length)||!nn(n,r.length))return NaN;let o=1/0;for(let a=t[0];a<t[1];++a)for(let t=n[0];t<n[1];++t){if(Ir(e[a],e[a+1],r[t],r[t+1]))return 0;o=Math.min(o,mn(e[a],e[a+1],r[t],r[t+1],i))}return o}function _n(e,t,r,n,i){if(!nn(t,e.length)||!nn(n,r.length))return NaN;let o=1/0;for(let a=t[0];a<=t[1];++a)for(let t=n[0];t<=n[1];++t)if(0===(o=Math.min(o,i.distance(e[a],r[t]))))return o;return o}function yn(e,t,r){if(Pr(e,t,!0))return 0;let n=1/0;for(const i of t){const t=i.length;if(t<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(i[0]!==i[t-1]&&0===(n=Math.min(n,r.pointToSegmentDistance(e,i[t-1],i[0]))))return n;if(0===(n=Math.min(n,pn(e,i,r))))return n}return n}function vn(e,t,r,n){if(!nn(t,e.length))return NaN;for(let o=t[0];o<=t[1];++o)if(Pr(e[o],r,!0))return 0;let i=1/0;for(let o=t[0];o<t[1];++o)for(const t of r)for(let r=0,a=t.length,s=a-1;r<a;s=r++){if(Ir(e[o],e[o+1],t[s],t[r]))return 0;i=Math.min(i,mn(e[o],e[o+1],t[s],t[r],n))}return i}function bn(e,t){for(const r of e)for(let e=0;e<=r.length-1;++e)if(Pr(r[e],t,!0))return!0;return!1}function xn(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0;const i=sn(e),o=sn(t);if(n!==1/0&&ln(i,o,r)>=n)return n;
2if(Er(i,o)){if(bn(e,t))return 0}else if(bn(t,e))return 0;let a=n;for(const s of e)for(let e=0,n=s.length,i=n-1;e<n;i=e++)for(const o of t)for(let t=0,n=o.length,l=n-1;t<n;l=t++){if(Ir(s[i],s[e],o[l],o[t]))return 0;a=Math.min(a,mn(s[i],s[e],o[l],o[t],r))}return a}function wn(e,t,r,n,i,o,a){if(null===o||null===a)return;const s=ln(an(n,o),an(i,a),r);s<t&&e.push({dist:s,range1:o,range2:a})}function An(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0,o=Math.min(n.distance(e[0],r[0][0]),i);if(0===o)return o;const a=new Xr([{dist:0,range1:[0,e.length-1],range2:[0,0]}],Qr),s=t?en:$r,l=sn(r);for(;a.length;){const i=a.pop();if(i.dist>=o)continue;const c=i.range1;if(rn(c)<=s){if(!nn(c,e.length))return NaN;if(t){const t=vn(e,c,r,n);if(0===(o=Math.min(o,t)))return o}else for(let t=c[0];t<=c[1];++t){const i=yn(e[t],r,n);if(0===(o=Math.min(o,i)))return o}}else{const r=on(c,t);if(null!==r[0]){const t=ln(an(e,r[0]),l,n);t<o&&a.push({dist:t,range1:r[0],range2:[0,0]})}if(null!==r[1]){const t=ln(an(e,r[1]),l,n);t<o&&a.push({dist:t,range1:r[1],range2:[0,0]})}}}return o}function Sn(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1/0,a=Math.min(o,i.distance(e[0],r[0]));if(0===a)return a;const s=new Xr([{dist:0,range1:[0,e.length-1],range2:[0,r.length-1]}],Qr),l=t?en:$r,c=n?en:$r;for(;s.length;){const o=s.pop();if(o.dist>=a)continue;const u=o.range1,d=o.range2;if(rn(u)<=l&&rn(d)<=c){if(!nn(u,e.length)||!nn(d,r.length))return NaN;if(t&&n?a=Math.min(a,gn(e,u,r,d,i)):t||n?t&&!n?a=Math.min(a,fn(r,d,e,u,i)):!t&&n&&(a=Math.min(a,fn(e,u,r,d,i))):a=Math.min(a,_n(e,u,r,d,i)),0===a)return a}else{const o=on(u,t),l=on(d,n);wn(s,a,i,e,r,o[0],l[0]),wn(s,a,i,e,r,o[0],l[1]),wn(s,a,i,e,r,o[1],l[0]),wn(s,a,i,e,r,o[1],l[1])}}return a}function En(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0;const o=an(e,[0,e.length-1]);for(const a of r)if(!(i!==1/0&&ln(o,an(a,[0,a.length-1]),n)>=i)&&(i=Math.min(i,Sn(e,t,a,!0,n,i)),0===i))return i;return i}function Tn(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0;const o=an(e,[0,e.length-1]);for(const a of r){if(i!==1/0&&ln(o,sn(a),n)>=i)continue;const r=An(e,t,a,n,i);if(isNaN(r))return r;if(0===(i=Math.min(i,r)))return i}return i}function Pn(e){return"Point"===e||"MultiPoint"===e||"LineString"===e||"MultiLineString"===e||"Polygon"===e||"MultiPolygon"===e}class Cn{constructor(e,t){this.type=Nt,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error("'distance' expression requires either one argument, but found ' ".concat(e.length-1," instead."));if(nr(e[1])){const t=e[1];if("FeatureCollection"===t.type){for(let e=0;e<t.features.length;++e)if(Pn(t.features[e].geometry.type))return new Cn(t,t.features[e].geometry)}else if("Feature"===t.type){if(Pn(t.geometry.type))return new Cn(t,t.geometry)}else if(Pn(t.type))return new Cn(t,t)}return t.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const t=e.geometry(),r=e.canonicalID();if(null!=t&&null!=r){if("Point"===e.geometryType())return function(e,t,r){const n=[];for(const o of e)for(const e of o)n.push(dn(e,t));const i=new Wr(n[0][1],"meters");return"Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type?Sn(n,!1,"Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,i):"MultiLineString"===r.type?En(n,!1,r.coordinates,i):"Polygon"===r.type||"MultiPolygon"===r.type?Tn(n,!1,"Polygon"===r.type?[r.coordinates]:r.coordinates,i):null}(t,r,this.geometries);if("LineString"===e.geometryType())return function(e,t,r){const n=[];for(const o of e){const e=[];for(const r of o)e.push(dn(r,t));n.push(e)}const i=new Wr(n[0][0][1],"meters");if("Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type)return En("Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,n,i);if("MultiLineString"===r.type){let e=1/0;for(let t=0;t<r.coordinates.length;t++){const o=En(r.coordinates[t],!0,n,i,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}if("Polygon"===r.type||"MultiPolygon"===r.type){let e=1/0;for(let t=0;t<n.length;t++){const o=Tn(n[t],!0,"Polygon"===r.type?[r.coordinates]:r.coordinates,i,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return null}(t,r,this.geometries);if("Polygon"===e.geometryType())return function(e,t,r){const n=[];for(const o of function(e){const t=e.length;if(t<=1)return[e];const r=[];let n,i;for(let o=0;o<t;o++){const t=Ar(e[o]);0!==t&&(e[o].area=Math.abs(t),void 0===i&&(i=t<0),i===t<0?(n&&r.push(n),n=[e[o]]):n.push(e[o]))}return n&&r.push(n),r}(e)){const e=[];for(let r=0;r<o.length;++r)e.push(hn(o[r],t));n.push(e)}const i=new Wr(n[0][0][0][1],"meters");if("Point"===r.type||"MultiPoint"===r.type||"LineString"===r.type)return Tn("Point"===r.type?[r.coordinates]:r.coordinates,"LineString"===r.type,n,i);if("MultiLineString"===r.type){let e=1/0;for(let t=0;t<r.coordinates.length;t++){const o=Tn(r.coordinates[t],!0,n,i,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return"Polygon"===r.type||"MultiPolygon"===r.type?function(e,t,r){let n=1/0;for(const i of e)for(const e of t){const t=xn(i,e,r,n);if(isNaN(t))return t;if(0===(n=Math.min(n,t)))return n}return n}("Polygon"===r.type?[r.coordinates]:r.coordinates,n,i):null}(t,r,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function In(e,t){switch(e){case"string":return or(t);case"number":return+t;case"boolean":return!!t;case"color":return Pt.parse(t);case"formatted":return $t.fromString(or(t));case"resolvedImage":return tr.build(or(t))}return t}function Mn(e,t,r,n){return void 0!==n&&(e=n*Math.round(e/n)),void 0!==t&&e<t&&(e=t),void 0!==r&&e>r&&(e=r),e}class kn{constructor(e,t,r){this.type=e,this.key=t,this.scope=r}static parse(e,t){let r=t.expectedType;if(null==r&&(r=Ut),e.length<2||e.length>3)return t.error("Invalid number of arguments for 'config' expression.");const n=t.parse(e[1],1);if(!(n instanceof ar))return t.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const i=t.parse(e[2],2);return i instanceof ar?new kn(r,or(n.value),or(i.value)):t.error("Scope of 'config' expression must be a string literal.")}return new kn(r,or(n.value))}
2evaluate(e){const t=[this.key,this.scope,e.scope].filter(Boolean).join("\x1f"),r=e.getConfig(t);if(!r)return null;const{type:n,value:i,values:o,minValue:a,maxValue:s,stepValue:l}=r,c=r.default.evaluate(e);let u=c;if(i){const t=e.scope;e.scope=(t||"").split("\x1f").slice(1).join("\x1f"),u=i.evaluate(e),e.scope=t}return n&&(u=In(n,u)),void 0===u||void 0===a&&void 0===s&&void 0===l||("number"==typeof u?u=Mn(u,a,s,l):Array.isArray(u)&&(u=u.map((e=>"number"==typeof e?Mn(e,a,s,l):e)))),void 0!==i&&void 0!==u&&o&&!o.includes(u)&&(u=c,n&&(u=In(n,u))),(n&&n!==this.type||void 0!==u&&ir(u)!==this.type)&&(u=In(this.type.kind,u)),u}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function On(e){if(e instanceof _r){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Ur)return!1;if(e instanceof Cn)return!1;let t=!0;return e.eachChild((e=>{t&&!On(e)&&(t=!1)})),t}function Rn(e){if(e instanceof _r&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild((e=>{t&&!Rn(e)&&(t=!1)})),t}function Ln(e){if(e instanceof kn)return new Set([e.key]);let t=new Set;return e.eachChild((e=>{t=new Set([...t,...Ln(e)])})),t}function Dn(e,t){if(e instanceof _r&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild((e=>{r&&!Dn(e,t)&&(r=!1)})),r}class Nn{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const r=e[1];return t.scope.has(r)?new Nn(r,t.scope.get(r)):t.error('Unknown variable "'.concat(r,'". Make sure "').concat(r,'" has been bound in an enclosing "let" expression before using it.'),1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Fn{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Lt,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;this.registry=e,this.path=t,this.key=t.map((e=>"string"==typeof e?"['".concat(e,"']"):"[".concat(e,"]"))).join(""),this.scope=n,this.errors=i,this.expectedType=r,this._scope=o,this.options=a}parse(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return t||r?this.concat(t,null,r,n)._parse(e,i):this._parse(e,i)}parseObjectValue(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.concat(t,r,n,i)._parse(e,o)}_parse(e,t){function r(e,t,r){return"assert"===r?new cr(t,[e]):"coerce"===r?new fr(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n="string"==typeof e[0]?this.registry[e[0]]:void 0;if(n){let i=n.parse(e,this);if(!i)return null;if(this.expectedType){const e=this.expectedType,n=i.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==n.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==n.kind&&"string"!==n.kind){if(this.checkSubtype(e,n))return null}else i=r(i,e,t.typeAnnotation||"coerce");else i=r(i,e,t.typeAnnotation||"assert")}if(!(i instanceof ar)&&"resolvedImage"!==i.type.kind&&jn(i)){const t=new gr(this._scope,this.options);try{i=new ar(i.type,i.evaluate(t))}catch(e){return this.error(e.message),null}}return i}return fr.parse(["to-array",e],this)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found ".concat(typeof e," instead."))}concat(e,t,r,n){let i="number"==typeof e?this.path.concat(e):this.path;i="string"==typeof t?i.concat(t):i;const o=n?this.scope.concat(n):this.scope;return new Fn(this.registry,i,r||null,o,this.errors,this._scope,this.options)}error(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const i="".concat(this.key).concat(r.map((e=>"[".concat(e,"]"))).join(""));this.errors.push(new Rt(i,e))}checkSubtype(e,t){const r=Zt(e,t);return r&&this.error(r),r}}var zn=Fn;function jn(e){if(e instanceof Nn)return jn(e.boundExpression);if(e instanceof _r&&"error"===e.name)return!1;if(e instanceof vr)return!1;if(e instanceof Ur)return!1;if(e instanceof Cn)return!1;if(e instanceof kn)return!1;const t=e instanceof fr||e instanceof cr;let r=!0;return e.eachChild((e=>{r=t?r&&jn(e):r&&e instanceof ar})),!!r&&On(e)&&Dn(e,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function Bn(e,t){const r=e.length-1;let n,i,o=0,a=r,s=0;for(;o<=a;)if(s=Math.floor((o+a)/2),n=e[s],i=e[s+1],n<=t){if(s===r||t<i)return s;o=s+1}else{if(!(n>t))throw new sr("Input is not a number.");a=s-1}return 0}class Un{constructor(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[n,i]of r)this.labels.push(n),this.outputs.push(i)}static parse(e,t){if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const r=t.parse(e[1],1,Nt);if(!r)return null;const n=[];let i=null;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);for(let o=1;o<e.length;o+=2){const r=1===o?-1/0:e[o],a=e[o+1],s=o,l=o+1;if("number"!=typeof r)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
2omputed expressions) for the input values.',s);if(n.length&&n[n.length-1][0]>=r)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const c=t.parse(a,l,i);if(!c)return null;i=i||c.type,n.push([r,c])}return new Un(i,r,n)}evaluate(e){const t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);const i=t.length;return n>=t[i-1]?r[i-1].evaluate(e):r[Bn(t,n)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}const Vn=.95047,qn=1.08883,Hn=4/29,Gn=6/29,Wn=3*Gn*Gn,Yn=Gn*Gn*Gn,Zn=Math.PI/180,Kn=180/Math.PI;function Xn(e){return e>Yn?Math.pow(e,1/3):e/Wn+Hn}function Jn(e){return e>Gn?e*e*e:Wn*(e-Hn)}function Qn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $n(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ei(e){const t=$n(e.r),r=$n(e.g),n=$n(e.b),i=Xn((.4124564*t+.3575761*r+.1804375*n)/Vn),o=Xn((.2126729*t+.7151522*r+.072175*n)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-Xn((.0193339*t+.119192*r+.9503041*n)/qn)),alpha:e.a}}function ti(e){let t=(e.l+16)/116,r=isNaN(e.a)?t:t+e.a/500,n=isNaN(e.b)?t:t-e.b/200;return t=1*Jn(t),r=Vn*Jn(r),n=qn*Jn(n),new Pt(Qn(3.2404542*r-1.5371385*t-.4985314*n),Qn(-.969266*r+1.8760108*t+.041556*n),Qn(.0556434*r-.2040259*t+1.0572252*n),e.alpha)}function ri(e,t,r){const n=t-e;return e+r*(n>180||n<-180?n-360*Math.round(n/360):n)}const ni={forward:ei,reverse:ti,interpolate:function(e,t,r){return{l:It(e.l,t.l,r),a:It(e.a,t.a,r),b:It(e.b,t.b,r),alpha:It(e.alpha,t.alpha,r)}}},ii={forward:function(e){const{l:t,a:r,b:n}=ei(e),i=Math.atan2(n,r)*Kn;return{h:i<0?i+360:i,c:Math.sqrt(r*r+n*n),l:t,alpha:e.a}},reverse:function(e){const t=e.h*Zn,r=e.c;return ti({l:e.l,a:Math.cos(t)*r,b:Math.sin(t)*r,alpha:e.alpha})},interpolate:function(e,t,r){return{h:ri(e.h,t.h,r),c:It(e.c,t.c,r),l:It(e.l,t.l,r),alpha:It(e.alpha,t.alpha,r)}}};var oi=Object.freeze({__proto__:null,hcl:ii,lab:ni});class ai{constructor(e,t,r,n,i,o){this.type=e,this.operator=t,this.interpolation=r,this.input=n,this.dynamicStops=i,this.labels=[],this.outputs=[];for(const[a,s]of o)this.labels.push(a),this.outputs.push(s)}static interpolationFactor(e,t,r,n){let i=0;if("exponential"===e.name)i=si(t,e.base,r,n);else if("linear"===e.name)i=si(t,1,r,n);else if("cubic-bezier"===e.name){const o=e.controlPoints;i=new V(o[0],o[1],o[2],o[3]).solve(si(t,1,r,n))}return i}static parse(e,t){let[r,n,i,...o]=e;if(!Array.isArray(n)||0===n.length)return t.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){const e=n[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:e}}else{if("cubic-bezier"!==n[0])return t.error("Unknown interpolation type ".concat(String(n[0])),1,0);{const e=n.slice(1);if(4!==e.length||e.some((e=>"number"!=typeof e||e<0||e>1)))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<3)return t.error("Expected at least 3 arguments, but found only ".concat(e.length-1,"."));if(e.length-1>3&&(e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(i=t.parse(i,2,Nt),!i)return null;const a=[];let s=null;if("interpolate-hcl"===r||"interpolate-lab"===r?s=jt:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType),e.length-1==3){const e=t.parse(o[0],3,Ut);return e?new ai(s,r,n,i,e,a):null}for(let l=0;l<o.length;l+=2){const e=o[l],r=o[l+1],n=l+3,i=l+4;if("number"!=typeof e)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',n);if(a.length&&a[a.length-1][0]>=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);const c=t.parse(r,i,s);if(!c)return null;s=s||c.type,a.push([e,c])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new ai(s,r,n,i,null,a):t.error("Type ".concat(Wt(s)," is not interpolatable."))}evaluate(e){let t=this.labels,r=this.outputs;if(this.dynamicStops){const n=this.dynamicStops.evaluate(e);if(n.length%2!=0)throw new sr("Expected an even number of arguments.");t=[],r=[];for(let e=0;e<n.length;e+=2){const i=n[e],o=new ar(Nt,n[e+1]);if("number"!=typeof i)throw new sr('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
2omputed expressions) for the input values.');if(t.length&&t[t.length-1]>=i)throw new sr('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.');t.push(i),r.push(o)}if(0===t.length)throw new sr("Expected at least one input/output pair.")}if(1===t.length)return r[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);const i=t.length;if(n>=t[i-1])return r[i-1].evaluate(e);const o=Bn(t,n),a=ai.interpolationFactor(this.interpolation,n,t[o],t[o+1]),s=r[o].evaluate(e),l=r[o+1].evaluate(e);return"interpolate"===this.operator?kt[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?ii.reverse(ii.interpolate(ii.forward(s),ii.forward(l),a)):ni.reverse(ni.interpolate(ni.forward(s),ni.forward(l),a))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];if(this.dynamicStops)t.push(this.dynamicStops.serialize());else for(let r=0;r<this.labels.length;r++)t.push(this.labels[r],this.outputs[r].serialize());return t}}function si(e,t,r,n){const i=n-r,o=e-r;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}class li{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let r=null;const n=t.expectedType;n&&"value"!==n.kind&&(r=n);const i=[];for(const a of e.slice(1)){const e=t.parse(a,1+i.length,r,void 0,{typeAnnotation:"omit"});if(!e)return null;r=r||e.type,i.push(e)}const o=n&&i.some((e=>Zt(n,e.type)));return new li(o?Ut:r,i)}evaluate(e){let t,r=null,n=0;for(const i of this.args){if(n++,r=i.evaluate(e),r&&r instanceof tr&&!r.available&&(t||(t=r),r=null,n===this.args.length))return t;if(null!==r)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}serialize(){const e=["coalesce"];return this.eachChild((t=>{e.push(t.serialize())})),e}}class ci{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found ".concat(e.length-1," instead."));const r=[];for(let i=1;i<e.length-1;i+=2){const n=e[i];if("string"!=typeof n)return t.error("Expected string, but found ".concat(typeof n," instead."),i);if(/[^a-zA-Z0-9_]/.test(n))return t.error("Variable names must contain only alphanumeric characters or '_'.",i);const o=t.parse(e[i+1],i+1);if(!o)return null;r.push([n,o])}const n=t.parse(e[e.length-1],e.length-1,t.expectedType,r);return n?new ci(r,n):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,r]of this.bindings)e.push(t,r.serialize());return e.push(this.result.serialize()),e}}class ui{constructor(e,t,r){this.type=e,this.index=t,this.input=r}static parse(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found ".concat(e.length-1," instead."));const r=t.parse(e[1],1,Nt),n=t.parse(e[2],2,Gt(t.expectedType||Ut));return r&&n?new ui(n.type.itemType,r,n):null}evaluate(e){const t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new sr("Array index out of bounds: ".concat(t," < 0."));if(t>r.length-1)throw new sr("Array index out of bounds: ".concat(t," > ").concat(r.length-1,"."));if(t===Math.floor(t))return r[t];const n=Math.floor(t),i=Math.ceil(t),o=r[n],a=r[i];if("number"!=typeof o||"number"!=typeof a)throw new sr("Cannot interpolate between non-number values at index ".concat(t,"."));const s=t-n;return o*(1-s)+a*s}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class di{constructor(e,t){this.type=zt,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found ".concat(e.length-1," instead."));const r=t.parse(e[1],1,Ut),n=t.parse(e[2],2,Ut);return r&&n?Kt(r.type,[zt,Ft,Nt,Dt,Ut])?new di(r,n):t.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(Wt(r.type)," instead")):null}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(null==r)return!1;if(!Xt(t,["boolean","string","number","null"]))throw new sr("Expected first argument to be of type boolean, string, number or null, but found ".concat(Wt(ir(t))," instead."));if(!Xt(r,["string","array"]))throw new sr("Expected second argument to be of type array or string, but found ".concat(Wt(ir(r))," instead."));return r.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class hi{constructor(e,t,r){this.type=Nt,this.needle=e,this.haystack=t,this.fromIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found ".concat(e.length-1," instead."));const r=t.parse(e[1],1,Ut),n=t.parse(e[2],2,Ut);if(!r||!n)return null;if(!Kt(r.type,[zt,Ft,Nt,Dt,Ut]))return t.error("Expected first argument to be of type boolean, string, number or null, but found ".concat(Wt(r.type)," instead"));if(4===e.length){const i=t.parse(e[3],3,Nt);return i?new hi(r,n,i):null}return new hi(r,n)}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!Xt(t,["boolean","string","number","null"]))throw new sr("Expected first argument to be of type boolean, string, number or null, but found ".concat(Wt(ir(t))," instead."));if(!Xt(r,["string","array"]))throw new sr("Expected second argument to be of type array or string, but found ".concat(Wt(ir(r))," instead."));if(this.fromIndex){const n=this.fromIndex.evaluate(e);return r.indexOf(t,n)}return r.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class pi{constructor(e,t,r,n,i,o){this.inputType=e,this.type=t,this.input=r,this.cases=n,this.outputs=i,this.otherwise=o}static parse(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=1)return t.error("Expected an even number of arguments.");let r,n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const i={},o=[];for(let l=2;l<e.length-1;l+=2){let a=e[l];const s=e[l+1];
vendor: 4,345 bytes, line 2
2Array.isArray(a)||(a=[a]);const c=t.concat(l);if(0===a.length)return c.error("Expected at least one branch label.");for(const e of a){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error("Branch labels must be integers no larger than ".concat(Number.MAX_SAFE_INTEGER,"."));if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(r){if(c.checkSubtype(r,ir(e)))return null}else r=ir(e);if(void 0!==i[String(e)])return c.error("Branch labels must be unique.");i[String(e)]=o.length}const u=t.parse(s,l,n);if(!u)return null;n=n||u.type,o.push(u)}const a=t.parse(e[1],1,Ut);if(!a)return null;const s=t.parse(e[e.length-1],e.length-1,n);return s?"value"!==a.type.kind&&t.concat(1).checkSubtype(r,a.type)?null:new pi(r,n,a,i,o,s):null}evaluate(e){const t=this.input.evaluate(e);return(ir(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),r=[],n={};for(const o of t){const e=n[this.cases[o]];void 0===e?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[e][1].push(o)}const i=e=>"number"===this.inputType.kind?Number(e):e;for(const[o,a]of r)e.push(1===a.length?i(a[0]):a.map(i)),e.push(this.outputs[o].serialize());return e.push(this.otherwise.serialize()),e}}class fi{constructor(e,t,r){this.type=e,this.branches=t,this.otherwise=r}static parse(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only ".concat(e.length-1,"."));if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const n=[];for(let o=1;o<e.length-1;o+=2){const i=t.parse(e[o],o,zt);if(!i)return null;const a=t.parse(e[o+1],o+1,r);if(!a)return null;n.push([i,a]),r=r||a.type}const i=t.parse(e[e.length-1],e.length-1,r);return i?new fi(r,n,i):null}evaluate(e){for(const[t,r]of this.branches)if(t.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,r]of this.branches)e(t),e(r);e(this.otherwise)}outputDefined(){return this.branches.every((e=>{let[t,r]=e;return r.outputDefined()}))&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild((t=>{e.push(t.serialize())})),e}}class mi{constructor(e,t,r,n){this.type=e,this.input=t,this.beginIndex=r,this.endIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found ".concat(e.length-1," instead."));const r=t.parse(e[1],1,Ut),n=t.parse(e[2],2,Nt);if(!r||!n)return null;if(!Kt(r.type,[Gt(Ut),Ft,Ut]))return t.error("Expected first argument to be of type array or string, but found ".concat(Wt(r.type)," instead"));if(4===e.length){const i=t.parse(e[3],3,Nt);return i?new mi(r.type,r,n,i):null}return new mi(r.type,r,n)}evaluate(e){const t=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!Xt(t,["string","array"]))throw new sr("Expected first argument to be of type array or string, but found ".concat(Wt(ir(t))," instead."));if(this.endIndex){const n=this.endIndex.evaluate(e);return t.slice(r,n)}return t.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function gi(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function _i(e,t,r,n){return 0===n.compare(t,r)}function yi(e,t,r){const n="=="!==e&&"!="!==e;return class i{constructor(e,t,r){this.type=zt,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const r=e[0];let o=t.parse(e[1],1,Ut);if(!o)return null;
2if(!gi(r,o.type))return t.concat(1).error('"'.concat(r,"\" comparisons are not supported for type '").concat(Wt(o.type),"'."));let a=t.parse(e[2],2,Ut);if(!a)return null;if(!gi(r,a.type))return t.concat(2).error('"'.concat(r,"\" comparisons are not supported for type '").concat(Wt(a.type),"'."));if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot compare types '".concat(Wt(o.type),"' and '").concat(Wt(a.type),"'."));n&&("value"===o.type.kind&&"value"!==a.type.kind?o=new cr(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new cr(o.type,[a])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,Vt),!s)return null}return new i(o,a,s)}evaluate(i){const o=this.lhs.evaluate(i),a=this.rhs.evaluate(i);if(n&&this.hasUntypedArgument){const t=ir(o),r=ir(a);if(t.kind!==r.kind||"string"!==t.kind&&"number"!==t.kind)throw new sr('Expected arguments for "'.concat(e,'" to be (string, string) or (number, number), but found (').concat(t.kind,", ").concat(r.kind,") instead."))}if(this.collator&&!n&&this.hasUntypedArgument){const e=ir(o),r=ir(a);if("string"!==e.kind||"string"!==r.kind)return t(i,o,a)}return this.collator?r(i,o,a,this.collator.evaluate(i)):t(i,o,a)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild((e=>{t.push(e.serialize())})),t}}}const vi=yi("==",(function(e,t,r){return t===r}),_i),bi=yi("!=",(function(e,t,r){return t!==r}),(function(e,t,r,n){return!_i(0,t,r,n)})),xi=yi("<",(function(e,t,r){return t<r}),(function(e,t,r,n){return n.compare(t,r)<0})),wi=yi(">",(function(e,t,r){return t>r}),(function(e,t,r,n){return n.compare(t,r)>0})),Ai=yi("<=",(function(e,t,r){return t<=r}),(function(e,t,r,n){return n.compare(t,r)<=0})),Si=yi(">=",(function(e,t,r){return t>=r}),(function(e,t,r,n){return n.compare(t,r)>=0}));class Ei{constructor(e,t,r,n,i,o){this.type=Ft,this.number=e,this.locale=t,this.currency=r,this.unit=n,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const r=t.parse(e[1],1,Nt);if(!r)return null;const n=e[2];if("object"!=typeof n||Array.isArray(n))return t.error("NumberFormat options argument must be an object.");let i=null;if(n.locale&&(i=t.parseObjectValue(n.locale,2,"locale",Ft),!i))return null;let o=null;if(n.currency&&(o=t.parseObjectValue(n.currency,2,"currency",Ft),!o))return null;let a=null;if(n.unit&&(a=t.parseObjectValue(n.unit,2,"unit",Ft),!a))return null;let s=null;if(n["min-fraction-digits"]&&(s=t.parseObjectValue(n["min-fraction-digits"],2,"min-fraction-digits",Nt),!s))return null;let l=null;return n["max-fraction-digits"]&&(l=t.parseObjectValue(n["max-fraction-digits"],2,"max-fraction-digits",Nt),!l)?null:new Ei(r,i,o,a,s,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Ti{constructor(e){this.type=Nt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found ".concat(e.length-1," instead."));const r=t.parse(e[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?t.error("Expected argument of type string or array, but found ".concat(Wt(r.type)," instead.")):new Ti(r):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new sr("Expected value to be of type string or array, but found ".concat(Wt(ir(t))," instead."))}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild((t=>{e.push(t.serialize())})),e}}function Pi(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const Ci={"==":vi,"!=":bi,">":wi,"<":xi,">=":Si,"<=":Ai,array:cr,at:ui,boolean:cr,case:fi,coalesce:li,collator:vr,format:ur,image:dr,in:di,"index-of":hi,interpolate:ai,"interpolate-hcl":ai,"interpolate-lab":ai,length:Ti,let:ci,literal:ar,match:pi,number:cr,"number-format":Ei,object:cr,slice:mi,step:Un,string:cr,"to-boolean":fr,"to-color":fr,"to-number":fr,"to-string":fr,var:Nn,within:Ur,distance:Cn,config:kn};function Ii(e,t){let[r,n,i,o]=t;r=r.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);const a=o?o.evaluate(e):1,s=rr(r,n,i,a);if(s)throw new sr(s);return new Pt(r/255*a,n/255*a,i/255*a,a)}function Mi(e,t){let[r,n,i,o]=t;r=r.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);const a=o?o.evaluate(e):1,s=function(e,t,r,n){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof r&&r>=0&&r<=100?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:"Invalid hsla value [".concat([e,t,r,n].join(", "),"]: 'a' must be between 0 and 1."):"Invalid hsla value [".concat(("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", "),"]: 's', and 'l' must be between 0 and 100."):"Invalid hsla value [".concat(("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", "),"]: 'h' must be between 0 and 360.")}(r,n,i,a);if(s)throw new sr(s);const l="hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(a,")"),c=Pt.parse(l);if(!c)throw new sr("Failed to parse HSLA color: ".concat(l));return c}function ki(e,t){return e in t}function Oi(e,t){const r=t[e];return void 0===r?null:r}function Ri(e){return{type:e}}function Li(e){return{result:"success",value:e}}function Di(e){return{result:"error",value:e}}function Ni(e,t){return!!e&&!!e.parameters&&e.parameters.indexOf(t)>-1}function Fi(e){return"data-driven"===e["property-type"]}function zi(e){return Ni(e.expression,"measure-light")}function ji(e){return Ni(e.expression,"zoom")}function Bi(e){return!!e.expression&&e.expression.interpolated}function Ui(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Vi(e){return e}function qi(e,t){const r="color"===t.type,n=e.stops&&"object"==typeof e.stops[0][0],i=n||!(n||void 0!==e.property),o=e.type||(Bi(t)?"exponential":"interval");if(r&&((e=Ot({},e)).stops&&(e.stops=e.stops.map((e=>[e[0],Pt.parse(e[1])]))),e.default=Pt.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!oi[e.colorSpace])throw new Error("Unknown color space: ".concat(e.colorSpace));let a,s,l;if("exponential"===o)a=Yi;else if("interval"===o)a=Wi;else if("categorical"===o){a=Gi,s=Object.create(null);for(const t of e.stops)s[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error('Unknown function type "'.concat(o,'"'));a=Zi}if(n){const r={},n=[];for(let t=0;t<e.stops.length;t++){const i=e.stops[t],o=i[0].zoom;void 0===r[o]&&(r[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},n.push(o)),r[o].stops.push([i[0].value,i[1]])}const i=[];for(const e of n)i.push([r[e].zoom,qi(r[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:ai.interpolationFactor.bind(void 0,o),zoomStops:i.map((e=>e[0])),evaluate:(r,n)=>{let{zoom:o}=r;return Yi({stops:i,base:e.base},t,o).evaluate(o,n)}}}if(i){const r="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base
2:1}:null;return{kind:"camera",interpolationType:r,interpolationFactor:ai.interpolationFactor.bind(void 0,r),zoomStops:e.stops.map((e=>e[0])),evaluate:r=>{let{zoom:n}=r;return a(e,t,n,s,l)}}}return{kind:"source",evaluate(r,n){const i=n&&n.properties?n.properties[e.property]:void 0;return void 0===i?Hi(e.default,t.default):a(e,t,i,s,l)}}}function Hi(e,t,r){return void 0!==e?e:void 0!==t?t:void 0!==r?r:void 0}function Gi(e,t,r,n,i){return Hi(typeof r===i?n[r]:void 0,e.default,t.default)}function Wi(e,t,r){if("number"!==hr(r))return Hi(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];const i=Bn(e.stops.map((e=>e[0])),r);return e.stops[i][1]}function Yi(e,t,r){const n=void 0!==e.base?e.base:1;if("number"!==hr(r))return Hi(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];const o=Bn(e.stops.map((e=>e[0])),r),a=function(e,t,r,n){const i=n-r,o=e-r;return 0===i?0:1===t?o/i:(Math.pow(t,o)-1)/(Math.pow(t,i)-1)}(r,n,e.stops[o][0],e.stops[o+1][0]),s=e.stops[o][1],l=e.stops[o+1][1];let c=kt[t.type]||Vi;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=oi[e.colorSpace];c=(e,r)=>t.reverse(t.interpolate(t.forward(e),t.forward(r),a))}return"function"==typeof s.evaluate?{evaluate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=s.evaluate.apply(void 0,t),i=l.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==i)return c(n,i,a)}}:c(s,l,a)}function Zi(e,t,r){return"color"===t.type?r=Pt.parse(r):"formatted"===t.type?r=$t.fromString(r.toString()):"resolvedImage"===t.type?r=tr.build(r.toString()):hr(r)===t.type||"enum"===t.type&&t.values[r]||(r=void 0),Hi(r,e.default,t.default)}_r.register(Ci,{error:[{kind:"error"},[Ft],(e,t)=>{let[r]=t;throw new sr(r.evaluate(e))}],typeof:[Ft,[Ut],(e,t)=>{let[r]=t;return Wt(ir(r.evaluate(e)))}],"to-rgba":[Gt(Nt,4),[jt],(e,t)=>{let[r]=t;return r.evaluate(e).toRenderColor(null).toArray()}],"to-hsla":[Gt(Nt,4),[jt],(e,t)=>{let[r]=t;return r.evaluate(e).toRenderColor(null).toHslaArray()}],rgb:[jt,[Nt,Nt,Nt],Ii],rgba:[jt,[Nt,Nt,Nt,Nt],Ii],hsl:[jt,[Nt,Nt,Nt],Mi],hsla:[jt,[Nt,Nt,Nt,Nt],Mi],has:{type:zt,overloads:[[[Ft],(e,t)=>{let[r]=t;return ki(r.evaluate(e),e.properties())}],[[Ft,Bt],(e,t)=>{let[r,n]=t;return ki(r.evaluate(e),n.evaluate(e))}]]},get:{type:Ut,overloads:[[[Ft],(e,t)=>{let[r]=t;return Oi(r.evaluate(e),e.properties())}],[[Ft,Bt],(e,t)=>{let[r,n]=t;return Oi(r.evaluate(e),n.evaluate(e))}]]},"feature-state":[Ut,[Ft],(e,t)=>{let[r]=t;return Oi(r.evaluate(e),e.featureState||{})}],properties:[Bt,[],e=>e.properties()],"geometry-type":[Ft,[],e=>e.geometryType()],id:[Ut,[],e=>e.id()],zoom:[Nt,[],e=>e.globals.zoom],pitch:[Nt,[],e=>e.globals.pitch||0],"distance-from-center":[Nt,[],e=>e.distanceFromCenter()],"measure-light":[Nt,[Ft],(e,t)=>{let[r]=t;return e.measureLight(r.evaluate(e))}],"heatmap-density":[Nt,[],e=>e.globals.heatmapDensity||0],"line-progress":[Nt,[],e=>e.globals.lineProgress||0],"raster-value":[Nt,[],e=>e.globals.rasterValue||0],"raster-particle-speed":[Nt,[],e=>e.globals.rasterParticleSpeed||0],"sky-radial-progress":[Nt,[],e=>e.globals.skyRadialProgress||0],accumulated:[Ut,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[Nt,Ri(Nt),(e,t)=>{let r=0;for(const n of t)r+=n.evaluate(e);return r}],"*":[Nt,Ri(Nt),(e,t)=>{let r=1;for(const n of t)r*=n.evaluate(e);return r}],"-":{type:Nt,overloads:[[[Nt,Nt],(e,t)=>{let[r,n]=t;return r.evaluate(e)-n.evaluate(e)}],[[Nt],(e,t)=>{let[r]=t;return-r.evaluate(e)}]]},"/":[Nt,[Nt,Nt],(e,t)=>{let[r,n]=t;return r.evaluate(e)/n.evaluate(e)}],"%":[Nt,[Nt,Nt],(e,t)=>{let[r,n]=t;return r.evaluate(e)%n.evaluate(e)}],ln2:[Nt,[],()=>Math.LN2],pi:[Nt,[],()=>Math.PI],e:[Nt,[],()=>Math.E],"^":[Nt,[Nt,Nt],(e,t)=>{let[r,n]=t;return Math.pow(r.evaluate(e),n.evaluate(e))}],sqrt:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.sqrt(r.evaluate(e))}],log10:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.log(r.evaluate(e))/Math.LN10}],ln:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.log(r.evaluate(e))}],log2:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.log(r.evaluate(e))/Math.LN2}],sin:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.sin(r.evaluate(e))}],cos:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.cos(r.evaluate(e))}],tan:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.tan(r.evaluate(e))}],asin:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.asin(r.evaluate(e))}],acos:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.acos(r.evaluate(e))}],atan:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.atan(r.evaluate(e))}],min:[Nt,Ri(Nt),(e,t)=>Math.min(...t.map((t=>t.evaluate(e))))],max:[Nt,Ri(Nt),(e,t)=>Math.max(...t.map((t=>t.evaluate(e))))],abs:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.abs(r.evaluate(e))}],round:[Nt,[Nt],(e,t)=>{let[r]=t;const n=r.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.floor(r.evaluate(e))}],ceil:[Nt,[Nt],(e,t)=>{let[r]=t;return Math.ceil(r.evaluate(e))}],"filter-==":[zt,[Ft,Ut],(e,t)=>{let[r,n]=t;return e.properties()[r.value]===n.value}],"filter-id-==":[zt,[Ut],(e,t)=>{let[r]=t;return e.id()===r.value}],"filter-type-==":[zt,[Ft],(e,t)=>{let[r]=t;return e.geometryType()===r.value}],"filter-<":[zt,[Ft,Ut],(e,t)=>{let[r,n]=t;const i=e.properties()[r.value],o=n.value;return typeof i==typeof o&&i<o}],"filter-id-<":[zt,[Ut],(e,t)=>{let[r]=t;const n=e.id(),i=r.value;return typeof n==typeof i&&n<i}],"filter->":[zt,[Ft,Ut],(e,t)=>{let[r,n]=t;const i=e.properties()[r.value],o=n.value;return typeof i==typeof o&&i>o}],"filter-id->":[zt,[Ut],(e,t)=>{let[r]=t;const n=e.id(),i=r.value;return typeof n==typeof i&&n>i}],"filter-<=":[zt,[Ft,Ut],(e,t)=>{let[r,n]=t;const i=e.properties()[r.value],o=n.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[zt,[Ut],(e,t)=>{let[r]=t;const n=e.id(),i=r.value;return typeof n==typeof i&&n<=i}],"filter->=":[zt,[Ft,Ut],(e,t)=>{let[r,n]=t;const i=e.properties()[r.value],o=n.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[zt,[Ut],(e,t)=>{let[r]=t;const n=e.id(),i=r.value;return typeof n==typeof i&&n>=i}],"filter-has":[zt,[Ut],(e,t)=>{let[r]=t;return r.value in e.properties()}],"filter-has-id":[zt,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[zt,[Gt(Ft)],(e,t)=>{let[r]=t;return r.value.indexOf(e.geometryType())>=0}],"filter-id-in":[zt,[Gt(Ut)],(e,t)=>{let[r]=t;return r.value.indexOf(e.id())>=0}],"filter-in-small":[zt,[Ft,Gt(Ut)],(e,t)=>{let[r,n]=t;return n.value.indexOf(e.properties()[r.value])>=0}],"filter-in-large":[zt,[Ft,Gt(Ut)],(e,t)=>{let[r,n]=t;return function(e,t,r,n){for(;r<=n;){const i=r+n>>1;if(t[i]===e)return!0;t[i]>e?n=i-1:r=i+1}return!1}(e.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:zt,overloads:[[[zt,zt],(e,t)=>{let[r,n]=t;return r.evaluate(e)&&n.evaluate(e)}],[Ri(zt),(e,t)=>{for(const r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:zt,overloads:[[[zt,zt],(e,t)=>{let[r,n]=t;return r.evaluate(e)||n.evaluate(e)}],[Ri(zt),(e,t)=>{for(const r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[zt,[zt],(e,t)=>{let[r]=t;return!r.evaluate(e)}],"is-supported-script":[zt,[Ft],(e,t)=>{let[r]=t;const n=e.globals&&e.globals.isSupportedScript;return!n||n(r.evaluate(e))}],upcase:[Ft,[Ft],(e,t)=>{let[r]=t;return r.evaluate(e).toUpperCase()}],downcase:[Ft,[Ft],(e,t)=>{let[r]=t;return r.evaluate(e).toLowerCase()}],concat:[Ft,Ri(Ut),(e,t)=>t.map((t=>or(t.evaluate(e)))).join("")],"resolved-locale":[Ft,[Vt],(e,t)=>{let[r]=t;return r.evaluate(e).resolvedLocale()}],random:[Nt,[Nt,Nt,Ut],(e,t)=>{const[r,n,i]=t.map((t=>t.evaluate(e)));if(r>n)return r;if(r===n)return r;let o;if("string"==typeof i)o=function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}(i);else{if("number"!=typeof i)throw new sr("Invalid seed input: ".concat(i));o=i}return r+Pi(o)()*(n-r)}]});class Ki{constructor(e,t,r,n){this.expression=e,this._warningHistory={},this._evaluator=new gr(r,n),this._defaultValue=t?function(e){return"color"===e.type&&(Ui(e.default)||Array.isArray(e.default))?new Pt(0,0,0,0):"color"===e.type?Pt.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null,this.configDependencies=Ln(e)}evaluateWithoutErrorHandling(e,t,r,n,i,o,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,n,i,o,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n||null,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new sr("Expected value to be one of ".concat(Object.keys(this._enumValues).map((e=>JSON.stringify(e))).join(", "),", but found ").concat(JSON.stringify(e)," instead."));return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn('Failed to evaluate expression "'.concat(JSON.stringify(this.expression.serialize()),'". ').concat(e.message))),this._defaultValue}}}function Xi(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Ci}function Ji(e,t,r,n){const i=new zn(Ci,[],t?function(e){const t={color:jt,string:Ft,number:Nt,enum:Ft,boolean:zt,formatted:qt,resolvedImage:Ht};return"array"===e.type?Gt(t[e.value]||Ut,e.length):t[e.type]}
2(t):void 0,void 0,void 0,r,n),o=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return o?Li(new Ki(o,t,r,n)):Di(i.errors)}class Qi{constructor(e,t,r,n){this.kind=e,this._styleExpression=t,this.isLightConstant=r,this.isLineProgressConstant=n,this.isStateDependent="constant"!==e&&!Rn(t.expression),this.configDependencies=Ln(t.expression)}evaluateWithoutErrorHandling(e,t,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,o)}evaluate(e,t,r,n,i,o){return this._styleExpression.evaluate(e,t,r,n,i,o)}}class $i{constructor(e,t,r,n,i,o){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Rn(t.expression),this.isLightConstant=i,this.isLineProgressConstant=o,this.configDependencies=Ln(t.expression),this.interpolationType=n}evaluateWithoutErrorHandling(e,t,r,n,i,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,i,o)}evaluate(e,t,r,n,i,o){return this._styleExpression.evaluate(e,t,r,n,i,o)}interpolationFactor(e,t,r){return this.interpolationType?ai.interpolationFactor(this.interpolationType,e,t,r):0}}function eo(e,t,r,n){if("error"===(e=Ji(e,t,r,n)).result)return e;const i=e.value.expression,o=On(i);if(!o&&!Fi(t))return Di([new Rt("","data expressions not supported")]);const a=Dn(i,["zoom","pitch","distance-from-center"]);if(!a&&!ji(t))return Di([new Rt("","zoom expressions not supported")]);const s=Dn(i,["measure-light"]);if(!s&&!zi(t))return Di([new Rt("","measure-light expression not supported")]);const l=Dn(i,["line-progress"]);if(!l&&!function(e){return Ni(e.expression,"line-progress")}(t))return Di([new Rt("","line-progress expression not supported")]);const c=t.expression&&t.expression.relaxZoomRestriction,u=ro(i);return u||a||c?u instanceof Rt?Di([u]):u instanceof ai&&!Bi(t)?Di([new Rt("",'"interpolate" expressions cannot be used with this property')]):Li(u?new $i(o&&l?"camera":"composite",e.value,u.labels,u instanceof ai?u.interpolation:void 0,s,l):new Qi(o&&l?"constant":"source",e.value,s,l)):Di([new Rt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class to{constructor(e,t){this._parameters=e,this._specification=t,Ot(this,qi(this._parameters,this._specification))}static deserialize(e){return new to(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function ro(e){let t=null;if(e instanceof ci)t=ro(e.result);else if(e instanceof li){for(const r of e.args)if(t=ro(r),t)break}else(e instanceof Un||e instanceof ai)&&e.input instanceof _r&&"zoom"===e.input.name&&(t=e);return t instanceof Rt||e.eachChild((e=>{const r=ro(e);r instanceof Rt?t=r:t&&r&&t!==r&&(t=new Rt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),t}var no,io,oo=function(){if(io)return no;io=1,no=t;var e=3;function t(t,r,n){var i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var o=new Int32Array(this.arrayBuffer);t=o[0],this.d=(r=o[1])+2*(n=o[2]);for(var a=0;a<this.d*this.d;a++){var s=o[e+a],l=o[e+a+1];i.push(s===l?null:o.subarray(s,l))}var c=o[e+i.length+1];this.keys=o.subarray(o[e+i.length],c),this.bboxes=o.subarray(c),this.insert=this._insertReadonly}else{this.d=r+2*n;for(var u=0;u<this.d*this.d;u++)i.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=t,this.padding=n,this.scale=r/t,this.uid=0;var d=n/r*t;this.min=-d,this.max=t+d}return t.prototype.insert=function(e,t,r,n,i){this._forEachCell(t,r,n,i,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},t.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},t.prototype._insertCell=function(e,t,r,n,i,o){this.cells[i].push(o)},t.prototype.query=function(e,t,r,n,i){var o=this.min,a=this.max;if(e<=o&&t<=o&&a<=r&&a<=n&&!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,r,n,this._queryCell,s,{},i),s},t.prototype._queryCell=function(e,t,r,n,i,o,a,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,d=0;d<l.length;d++){var h=l[d];if(void 0===a[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):e<=u[p+2]&&t<=u[p+3]&&r>=u[p+0]&&n>=u[p+1])?(a[h]=!0,o.push(c[h])):a[h]=!1}}},t.prototype._forEachCell=function(e,t,r,n,i,o,a,s){for(var l=this._convertToCellCoord(e),c=this._convertToCellCoord(t),u=this._convertToCellCoord(r),d=this._convertToCellCoord(n),h=l;h<=u;h++)for(var p=c;p<=d;p++){var f=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&&i.call(this,e,t,r,n,f,o,a,s))return}},t.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},t.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},t.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,r=e+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var o=new Int32Array(r+n+this.keys.length+this.bboxes.length);o[0]=this.extent,o[1]=this.n,o[2]=this.padding;
2for(var a=r,s=0;s<t.length;s++){var l=t[s];o[e+s]=a,o.set(l,a),a+=l.length}return o[e+t.length]=a,o.set(this.keys,a),o[e+t.length+1]=a+=this.keys.length,o.set(this.bboxes,a),a+=this.bboxes.length,o.buffer},no}(),ao=t(oo);const so={};function lo(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.defineProperty(e,"_classRegistryKey",{value:t,writable:!1}),so[t]={klass:e,omit:r.omit||[]}}lo(Object,"Object"),ao.serialize=function(e,t){const r=e.toArrayBuffer();return t&&t.add(r),{buffer:r}},ao.deserialize=function(e){return new ao(e.buffer)},Object.defineProperty(ao,"name",{value:"Grid"}),lo(ao,"Grid"),"undefined"!=typeof DOMMatrix&&lo(DOMMatrix,"DOMMatrix"),lo(Pt,"Color"),lo(Error,"Error"),lo($t,"Formatted"),lo(Qt,"FormattedSection"),lo(rt,"AJAXError"),lo(tr,"ResolvedImage"),lo(to,"StylePropertyFunction"),lo(Ki,"StyleExpression",{omit:["_evaluator"]}),lo(er,"ImageIdWithOptions"),lo($i,"ZoomDependentExpression"),lo(Qi,"ZoomConstantExpression"),lo(_r,"CompoundExpression",{omit:["_evaluate"]});for(const i in Ci)so[Ci[i]._classRegistryKey]||lo(Ci[i],"Expression".concat(i));function co(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function uo(e){return self.ImageBitmap&&e instanceof ImageBitmap}function ho(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(co(e)||uo(e))return t&&t.add(e),e;if(ArrayBuffer.isView(e))return t&&t.add(e.buffer),e;if(e instanceof ImageData)return t&&t.add(e.data.buffer),e;if(Array.isArray(e)){const r=[];for(const n of e)r.push(ho(n,t));return r}if(e instanceof Map){const t={$name:"Map"};for(const[r,n]of e.entries())t[r]=ho(n);return t}if(e instanceof Set){const t={$name:"Set"};let r=0;for(const n of e.values())t[++r]=ho(n);return t}if("object"==typeof e){const r=e.constructor,n=r._classRegistryKey;if(!n)throw new Error("Can't serialize object of unregistered class \"".concat(n,'".'));const i=r.serialize?r.serialize(e,t):{};if(!r.serialize){for(const r in e)e.hasOwnProperty(r)&&(so[n].omit.indexOf(r)>=0||(i[r]=ho(e[r],t)));e instanceof Error&&(i.message=e.message)}if(i.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(i.$name=n),i}throw new Error("can't serialize object of type "+typeof e)}function po(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||co(e)||uo(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(po);if("object"==typeof e){const t=e.$name||"Object";if("Map"===t){const t=new Map;for(const r of Object.keys(e))"$name"!==r&&t.set(r,po(e[r]));return t}if("Set"===t){const t=new Set;for(const r of Object.keys(e))"$name"!==r&&t.add(po(e[r]));return t}const{klass:r}=so[t];if(!r)throw new Error("Can't deserialize unregistered class \"".concat(t,'".'));if(r.deserialize)return r.deserialize(e);const n=Object.create(r.prototype);for(const i of Object.keys(e))"$name"!==i&&(n[i]=po(e[i]));return n}throw new Error("can't deserialize object of type "+typeof e)}const fo={"Latin-1 Supplement":e=>e>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>
2=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519,Osage:e=>e>=66736&&e<=66815,"CJK Unified Ideographs Extension B":e=>e>=131072&&e<=173791};function mo(e){for(const t of e)if(yo(t.charCodeAt(0)))return!0;return!1}function go(e){for(const t of e)if(!_o(t.charCodeAt(0)))return!1;return!0}function _o(e){return!(fo.Arabic(e)||fo["Arabic Supplement"](e)||fo["Arabic Extended-A"](e)||fo["Arabic Presentation Forms-A"](e)||fo["Arabic Presentation Forms-B"](e))}function yo(e){return!(746!==e&&747!==e&&(e<4352||!(fo["Bopomofo Extended"](e)||fo.Bopomofo(e)||fo["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||fo["CJK Compatibility Ideographs"](e)||fo["CJK Compatibility"](e)||fo["CJK Radicals Supplement"](e)||fo["CJK Strokes"](e)||!(!fo["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||fo["CJK Unified Ideographs Extension A"](e)||fo["CJK Unified Ideographs"](e)||fo["Enclosed CJK Letters and Months"](e)||fo["Hangul Compatibility Jamo"](e)||fo["Hangul Jamo Extended-A"](e)||fo["Hangul Jamo Extended-B"](e)||fo["Hangul Jamo"](e)||fo["Hangul Syllables"](e)||fo.Hiragana(e)||fo["Ideographic Description Characters"](e)||fo.Kanbun(e)||fo["Kangxi Radicals"](e)||fo["Katakana Phonetic Extensions"](e)||fo.Katakana(e)&&12540!==e||!(!fo["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!fo["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||fo["Unified Canadian Aboriginal Syllabics"](e)||fo["Unified Canadian Aboriginal Syllabics Extended"](e)||fo["Vertical Forms"](e)||fo["Yijing Hexagram Symbols"](e)||fo["Yi Syllables"](e)||fo["Yi Radicals"](e))))}function vo(e){return!(yo(e)||function(e){return!!(fo["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||fo["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||fo["Letterlike Symbols"](e)||fo["Number Forms"](e)||fo["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||fo["Control Pictures"](e)&&9251!==e||fo["Optical Character Recognition"](e)||fo["Enclosed Alphanumerics"](e)||fo["Geometric Shapes"](e)||fo["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||fo["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||fo["CJK Symbols and Punctuation"](e)||fo.Katakana(e)||fo["Private Use Area"](e)||fo["CJK Compatibility Forms"](e)||fo["Small Form Variants"](e)||fo["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function bo(e){return e>=1424&&e<=2303||fo["Arabic Presentation Forms-A"](e)||fo["Arabic Presentation Forms-B"](e)}function xo(e,t){return!(!t&&bo(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||fo.Khmer(e))}function wo(e){for(const t of e)if(bo(t.charCodeAt(0)))return!0;return!1}const Ao="deferred",So="loading",Eo="loaded";let To=null,Po="unavailable",Co=null;const Io=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Po="error"),To&&To(e)};function Mo(){ko.fire(new vt("pluginStateChange",{pluginStatus:Po,pluginURL:Co}))}const ko=new At,Oo=function(){return Po},Ro=function(){if(Po!==Ao||!Co)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Po=So,Mo(),Co&&ot({url:Co},(e=>{e?Io(e):(Po=Eo,Mo())}))},Lo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Po===Eo||null!=Lo.applyArabicShaping,isLoading:()=>Po===So,setState(e){Po=e.pluginStatus,Co=e.pluginURL},isParsed:()=>null!=Lo.applyArabicShaping&&null!=Lo.processBidirectionalText&&null!=Lo.processStyledBidirectionalText,getPluginURL:()=>Co};class Do{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const r of e)if(!xo(r.charCodeAt(0),t))return!1;return!0}(e,Lo.isLoaded())}}class No{constructor(e,t,r,n){this.property=e,this.value=t,this.expression=function(e,t,r,n){if(Ui(e))return new to(e,t);if(Xi(e)||Array.isArray(e)&&e.length>0){const i=eo(e,t,r,n);if("error"===i.result)throw new Error(i.value.map((e=>"".concat(e.key,": ").concat(e.message))).join(", "));return i.value}{let r=e;return"string"==typeof e&&"color"===t.type&&(r=Pt.parse(e)),{kind:"constant",configDependencies:new Set,evaluate:()=>r}}}(void 0===t?e.specification.default:t,e.specification,r,n)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}}class Fo{constructor(e,t,r){this.property=e,this.value=new No(e,void 0,t,r)}transitioned(e,t){return new jo(this.property,this.value,t,ie({},e.transition,this.transition),e.now)}
vendor: 4,615 bytes, line 2
2untransitioned(){return new jo(this.property,this.value,null,{},0)}}class zo{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=t,this._options=r,this.configDependencies=new Set}getValue(e){return he(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Fo(this._values[e].property,this._scope,this._options)),this._values[e].value=new No(this._values[e].property,null===t?void 0:he(t),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,t){t&&(this._options=t);const r=this._properties.properties;if(e)for(const n in e){const t=e[n];if(ce(n,"-transition")){const e=n.slice(0,-11);r[e]&&this.setTransition(e,t)}else r.hasOwnProperty(n)&&this.setValue(n,t)}}getTransition(e){return he(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Fo(this._values[e].property)),this._values[e].transition=he(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const r=this.getValue(t);void 0!==r&&(e[t]=r);const n=this.getTransition(t);void 0!==n&&(e["".concat(t,"-transition")]=n)}return e}transitioned(e,t){const r=new Bo(this._properties);for(const n of Object.keys(this._values))r._values[n]=this._values[n].transitioned(e,t._values[n]);return r}untransitioned(){const e=new Bo(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class jo{constructor(e,t,r,n,i){const o=n.delay||0,a=n.duration||0;i=i||0,this.property=e,this.value=t,this.begin=i+o,this.end=this.begin+a,e.specification.transition&&(n.delay||n.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){const n=e.now||0,i=this.value.possiblyEvaluate(e,t,r),o=this.prior;if(o){if(n>this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n<this.begin)return o.possiblyEvaluate(e,t,r);{const a=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,r),i,J(a))}}return i}}class Bo{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,r){const n=new qo(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(e,t,r);return n}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class Uo{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=t,this._options=r,this.configDependencies=new Set}getValue(e){return he(this._values[e].value)}setValue(e,t){this._values[e]=new No(this._values[e].property,null===t?void 0:he(t),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const t of Object.keys(this._values)){const r=this.getValue(t);void 0!==r&&(e[t]=r)}return e}possiblyEvaluate(e,t,r){const n=new qo(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].possiblyEvaluate(e,t,r);return n}}class Vo{constructor(e,t,r){this.property=e,this.value=t,this.parameters=r}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,r,n){return this.property.evaluate(this.value,this.parameters,e,t,r,n)}}class qo{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class Ho{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,r){const n=kt[this.specification.type];return n?n(e,t,r):e}}class Go{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,r,n){return new Vo(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},r,n)}:e.expression,t)}interpolate(e,t,r){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new Vo(this,{kind:"constant",value:void 0},e.parameters);const n=kt[this.specification.type];return n?new Vo(this,{kind:"constant",value:n(e.value.value,t.value.value,r)},e.parameters):e}evaluate(e,t,r,n,i,o){return"constant"===e.kind?e.value:e.evaluate(t,r,n,i,o)}}class Wo{constructor(e){this.specification=e}
vendor: 8,029 bytes, line 2
2possiblyEvaluate(e,t,r,n){return!!e.expression.evaluate(t,null,{},r,n)}interpolate(){return!1}}class Yo{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new Do(0,{});for(const r in e){const n=e[r];n.specification.overridable&&this.overridableProperties.push(r);const i=this.defaultPropertyValues[r]=new No(n,void 0),o=this.defaultTransitionablePropertyValues[r]=new Fo(n);this.defaultTransitioningPropertyValues[r]=o.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=i.possiblyEvaluate(t)}}}lo(Go,"DataDrivenProperty"),lo(Ho,"DataConstantProperty"),lo(Wo,"ColorRampProperty");var Zo=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow","experimental":true},"rain":{"type":"rain","experimental":true},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor","experimental":true},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"experimental":true,"type":"featuresets"}},"featuresets":{"experimental":true,"*":{"type":"featureset"}},"featureset":{"experimental":true,"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"experimental":true,"layer":{"type":"string","required":true},"properties":{"type":"selectorProperty","required":false},"featureNamespace":{"type":"string","required":false}},"selectorProperty":{"experimental":true,"*":{"type":"*"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","property-type":"data-constant","expression":{},"required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"property-type":"data-constant"},"shadow-quality":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]},"experimental":true},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"experimental":true,"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0}
2,"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{"experimental":true},"hillshade":{},"model":{"experimental":true},"background":{},"sky":{},"slot":{},"clip":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{},"property-type":"data-constant"},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{},"property-type":"data-constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","experimental":true,"private":true,"expression":{},"property-type":"data-constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","experimental":true,"default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","experimental":true,"expression":{},"property-type":"data-constant"},"line-cross-slope":{"type":"number","experimental":true,"expression":{},"property-type":"constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","experimental":true,"private":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","experimental":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"experimental":true,"private":true,"expression":{},"property-type":"data-constant"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}
2,"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":0.1,"maximum":10,"experimental":true,"private":true,"expression":{},"property-type":"data-constant"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"opacity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","property-type":"data-constant","default":"#ffffff","experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"center-thinning":{"type":"number","property-type":"data-constant","default":0.4,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","property-type":"data-constant","transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","property-type":"data-constant","default":0.71,"minimum":0,"maximum":5,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"opacity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"center-thinning":{"type":"number","property-type":"data-constant","default":0.57,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","property-type":"data-constant","transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","property-type":"data-constant","transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","property-type":"data-constant","default":0.7,"minimum":0,"maximum":1,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"colorTheme":{"data":{"type":"string","property-type":"data-constant","expression":{}}},"indoor":{"floorplanFeaturesetId":{"type":"string","experimental":true,"property-type":"data-constant","expression":{}},"buildingFeaturesetId":{"type":"string","experimental":true,"property-type":"data-constant","expression":{}}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":
2{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","experimental":true,"values":{"terrain":1,"flat":1},"default":"flat","property-type":"data-constant"},"fill-extrusion-base-alignment":{"type":"enum","experimental":true,"values":{"terrain":1,"flat":1},"default":"terrain","property-type":"data-constant"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","experimental":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","experimental":true,"default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","experimental":true,"default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","experimental":true,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","experimental":true,"default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","experimental":true,"default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"experimental":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"}
2,"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-trim-fade-range":{"type":"array","value":"number","experimental":true,"length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-trim-color":{"type":"color","experimental":true,"default":"transparent","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"property-type":"data-constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"experimental":true,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"experimental":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]},"experimental":true,"property-type":"data-constant"},"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":
2{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"model-front-cutoff":{"type":"array","private":true,"value":"number","property-type":"data-constant","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function Ko(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Xo(e){if(Array.isArray(e))return e.map(Xo);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const r in e)t[r]=Xo(e[r]);return t}return Ko(e)}function Jo(e){if(!0===e||!1===e)return!0;
2if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!Jo(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function Qo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"fill";if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Jo(e)||(e=oa(e));const i=e;let o=!0;try{o=function(e){if(!ta(e))return e;let t=Xo(e);return ea(t),t=$o(t),t}(i)}catch(e){console.warn("Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n".concat(JSON.stringify(i,null,2),"\n        "))}let a=null,s=null;if("background"!==n&&"sky"!==n&&"slot"!==n){s=Zo["filter_".concat(n)];const e=Ji(o,s,t,r);if("error"===e.result)throw new Error(e.value.map((e=>"".concat(e.key,": ").concat(e.message))).join(", "));a=(t,r,n)=>e.value.evaluate(t,r,{},n)}let l=null,c=null;if(o!==i){const e=Ji(i,s,t,r);if("error"===e.result)throw new Error(e.value.map((e=>"".concat(e.key,": ").concat(e.message))).join(", "));l=(t,r,n,i,o)=>e.value.evaluate(t,r,{},n,void 0,void 0,i,o),c=!On(e.value.expression)}return{filter:a,dynamicFilter:l||void 0,needGeometry:ia(o),needFeature:!!c}}function $o(e){if(!Array.isArray(e))return e;const t=function(e){if(ra.has(e[0]))for(let t=1;t<e.length;t++)if(ta(e[t]))return!0;return e}(e);return!0===t?t:t.map((e=>$o(e)))}function ea(e){let t=!1;const r=[];if("case"===e[0]){for(let n=1;n<e.length-1;n+=2)t=t||ta(e[n]),r.push(e[n+1]);r.push(e[e.length-1])}else if("match"===e[0]){t=t||ta(e[1]);for(let t=2;t<e.length-1;t+=2)r.push(e[t+1]);r.push(e[e.length-1])}else if("step"===e[0]){t=t||ta(e[1]);for(let t=1;t<e.length-1;t+=2)r.push(e[t+1])}t&&(e.length=0,e.push("any",...r));for(let n=1;n<e.length;n++)ea(e[n])}function ta(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let r=1;r<e.length;r++)if(ta(e[r]))return!0;return!1}const ra=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function na(e,t){return e<t?-1:e>t?1:0}function ia(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(ia(e[t]))return!0;return!1}function oa(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?aa(e[1],e[2],"=="):"!="===t?ca(aa(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?aa(e[1],e[2],t):"any"===t?(r=e.slice(1),["any"].concat(r.map(oa))):"all"===t?["all"].concat(e.slice(1).map(oa)):"none"===t?["all"].concat(e.slice(1).map(oa).map(ca)):"in"===t?sa(e[1],e.slice(2)):"!in"===t?ca(sa(e[1],e.slice(2))):"has"===t?la(e[1]):"!has"!==t||ca(la(e[1]));var r}function aa(e,t,r){switch(e){case"$type":return["filter-type-".concat(r),t];case"$id":return["filter-id-".concat(r),t];default:return["filter-".concat(r),e,t]}}function sa(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((e=>typeof e!=typeof t[0]))?["filter-in-large",e,["literal",t.sort(na)]]:["filter-in-small",e,["literal",t]]}}function la(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ca(e){return["!",e]}const ua="\x1f";function da(e,t){return t?"".concat(e).concat(ua).concat(t):e}const ha="-transition",pa=new Set(["fill","line","background","hillshade","raster"]);class fa extends At{constructor(e,t,r,n,i){if(super(),this.id=e.id,this.fqid=da(this.id,r),this.type=e.type,this.scope=r,this.lut=n,this.options=i,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,"custom"!==e.type){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const t=Ji(this.filter,Zo["filter_".concat(e.type)]);"error"!==t.result&&(this.configDependencies=new Set([...this.configDependencies,...t.value.configDependencies]))}if(e.slot&&(this.slot=e.slot),t.layout&&(this._unevaluatedLayout=new 
2Uo(t.layout,this.scope,i),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),t.paint){this._transitionablePaint=new zo(t.paint,this.scope,i);for(const t in e.paint)this.setPaintProperty(t,e.paint[t]);for(const t in e.layout)this.setLayoutProperty(t,e.layout[t]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new qo(t.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D()&&pa.has(this.type)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const r=this._unevaluatedLayout;r._properties.properties[e]&&(r.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...r.configDependencies]),"visibility"===e&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return ce(e,ha)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t){const r=this._transitionablePaint,n=r._properties.properties;if(ce(e,ha)){const i=e.slice(0,-11);return n[i]&&r.setTransition(i,t||void 0),!1}if(!n[e])return!1;const i=r._values[e],o=i.value.isDataDriven(),a=i.value;r.setValue(e,t),this.configDependencies=new Set([...this.configDependencies,...r.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const s=r._values[e].value,l=s.isDataDriven(),c=ce(e,"pattern")||"line-dasharray"===e;return l||o||c||this._handleOverridablePaintPropertyUpdate(e,a,s)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t,r){return null}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}
vendor: 22,630 bytes, line 2
2serialize(){return de({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},((e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof Vo&&Fi(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=Qo(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&("shadow"===e.renderPass?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,t,r,n,i,o,a,s,l){}}const ma={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ga{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class _a{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function ya(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=0,n=0;return{members:e.map((e=>{const i=ma[e.type].BYTES_PER_ELEMENT,o=r=va(r,Math.max(t,i)),a=e.components||1;return n=Math.max(n,i),r+=i*a,{name:e.name,type:e.type,components:a,offset:o}})),size:va(r,Math.max(n,t)),alignment:t}}function va(e,t){return Math.ceil(e/t)*t}class ba extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const n=2*e;return this.int16[n+0]=t,this.int16[n+1]=r,e}}ba.prototype.bytesPerElement=4,lo(ba,"StructArrayLayout2i4");class xa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)}emplace(e,t,r,n){const i=3*e;return this.int16[i+0]=t,this.int16[i+1]=r,this.int16[i+2]=n,e}}xa.prototype.bytesPerElement=6,lo(xa,"StructArrayLayout3i6");class wa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)}emplace(e,t,r,n,i){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=r,this.int16[o+2]=n,this.int16[o+3]=i,e}}wa.prototype.bytesPerElement=8,lo(wa,"StructArrayLayout4i8");class Aa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i)}emplace(e,t,r,n,i,o){const a=5*e;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,this.int16[a+4]=o,e}}Aa.prototype.bytesPerElement=10,lo(Aa,"StructArrayLayout5i10");class Sa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,n,i,o,a)}emplace(e,t,r,n,i,o,a,s){const l=6*e,c=12*e,u=3*e;return this.int16[l+0]=t,this.int16[l+1]=r,this.uint8[c+4]=n,this.uint8[c+5]=i,this.uint8[c+6]=o,this.uint8[c+7]=a,this.float32[u+2]=s,e}}Sa.prototype.bytesPerElement=12,lo(Sa,"StructArrayLayout2i4ub1f12");class Ea extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)}emplace(e,t,r,n,i){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=n,this.float32[o+3]=i,e}}Ea.prototype.bytesPerElement=16,lo(Ea,"StructArrayLayout4f16");class Ta extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)}emplace(e,t,r,n){const i=3*e;return this.float32[i+0]=t,this.float32[i+1]=r,this.float32[i+2]=n,e}}Ta.prototype.bytesPerElement=12,lo(Ta,"StructArrayLayout3f12");class Pa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i)}emplace(e,t,r,n,i,o){const a=6*e,s=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=r,this.uint16[a+2]=n,this.uint16[a+3]=i,this.float32[s+2]=o,e}}Pa.prototype.bytesPerElement=12,lo(Pa,"StructArrayLayout4ui1f12");class Ca extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)}emplace(e,t,r,n,i){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=r,this.uint16[o+2]=n,this.uint16[o+3]=i,e}}Ca.prototype.bytesPerElement=8,lo(Ca,"StructArrayLayout4ui8");class Ia extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,n,i,o)}emplace(e,t,r,n,i,o,a){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,e}}Ia.prototype.bytesPerElement=12,lo(Ia,"StructArrayLayout6i12");class Ma extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u,d){const h=this.length;return this.resize(h+1),this.emplace(h,e,t,r,n,i,o,a,s,l,c,u,d)}emplace(e,t,r,n,i,o,a,s,l,c,u,d,h){const p=12*e;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=o,this.uint16[p+5]=a,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=d,this.int16[p+11]=h,e}}Ma.prototype.bytesPerElement=24,lo(Ma,"StructArrayLayout4i4ui4i24");class ka extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,n,i,o)}emplace(e,t,r,n,i,o,a){const s=10*e,l=5*e;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=n,this.float32[l+2]=i,this.float32[l+3]=o,this.float32[l+4]=a,e}}ka.prototype.bytesPerElement=20,lo(ka,"StructArrayLayout3i3f20");class Oa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Oa.prototype.bytesPerElement=4,lo(Oa,"StructArrayLayout1ul4");class Ra extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const n=2*e;return this.uint16[n+0]=t,this.uint16[n+1]=r,e}}Ra.prototype.bytesPerElement=4,lo(Ra,"StructArrayLayout2ui4");class La extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u,d,h){const p=this.length;return this.resize(p+1),this.emplace(p,e,t,r,n,i,o,a,s,l,c,u,d,h)}emplace(e,t,r,n,i,o,a,s,l,c,u,d,h,p){const f=20*e,m=10*e;return this.int16[f+0]=t,this.int16[f+1]=r,this.int16[f+2]=n,this.int16[f+3]=i,this.int16[f+4]=o,this.float32[m+3]=a,this.float32[m+4]=s,this.float32[m+5]=l,this.float32[m+6]=c,this.int16[f+14]=u,this.uint32[m+8]=d,this.uint16[f+18]=h,this.uint16[f+19]=p,e}}La.prototype.bytesPerElement=40,lo(La,"StructArrayLayout5i4f1i1ul2ui40");class Da extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,n,i,o,a)}emplace(e,t,r,n,i,o,a,s){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=r,this.int16[l+2]=n,this.int16[l+4]=i,this.int16[l+5]=o,this.int16[l+6]=a,this.int16[l+7]=s,e}}Da.prototype.bytesPerElement=16,lo(Da,"StructArrayLayout3i2i2i16");class Na extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i)}emplace(e,t,r,n,i,o){const a=4*e,s=8*e;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=n,this.int16[s+6]=i,this.int16[s+7]=o,e}}Na.prototype.bytesPerElement=16,lo(Na,"StructArrayLayout2f1f2i16");class Fa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,n,i,o)}emplace(e,t,r,n,i,o,a){const s=20*e,l=5*e;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=n,this.float32[l+2]=i,this.float32[l+3]=o,this.float32[l+4]=a,e}}Fa.prototype.bytesPerElement=20,lo(Fa,"StructArrayLayout2ub4f20");class za extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,r)}emplace(e,t,r,n){const i=3*e;return this.uint16[i+0]=t,this.uint16[i+1]=r,this.uint16[i+2]=n,e}}za.prototype.bytesPerElement=6,lo(za,"StructArrayLayout3ui6");class ja extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b){const x=this.length;return this.resize(x+1),this.emplace(x,e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b)}emplace(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x){const w=30*e,A=15*e,S=60*e;return this.int16[w+0]=t,this.int16[w+1]=r,this.int16[w+2]=n,this.float32[A+2]=i,this.float32[A+3]=o,this.uint16[w+8]=a,this.uint16[w+9]=s,this.uint32[A+5]=l,this.uint32[A+6]=c,this.uint32[A+7]=u,this.uint16[w+16]=d,this.uint16[w+17]=h,this.uint16[w+18]=p,this.float32[A+10]=f,this.float32[A+11]=m,this.uint8[S+48]=g,this.uint8[S+49]=_,this.uint8[S+50]=y,this.uint32[A+13]=v,this.int16[w+28]=b,this.uint8[S+58]=x,e}}ja.prototype.bytesPerElement=60,lo(ja,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Ba extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w,A,S,E,T,P,C,I,M,k){const O=this.length;return this.resize(O+1),this.emplace(O,e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w,A,S,E,T,P,C,I,M,k)}emplace(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w,A,S,E,T,P,C,I,M,k,O){const R=20*e,L=40*e,D=80*e;return this.float32[R+0]=t,this.float32[R+1]=r,this.int16[L+4]=n,this.int16[L+5]=i,this.int16[L+6]=o,this.int16[L+7]=a,this.int16[L+8]=s,this.int16[L+9]=l,this.int16[L+10]=c,this.int16[L+11]=u,this.int16[L+12]=d,this.uint16[L+13]=h,this.uint16[L+14]=p,this.uint16[L+15]=f,this.uint16[L+16]=m,this.uint16[L+17]=g,this.uint16[L+18]=_,this.uint16[L+19]=y,this.uint16[L+20]=v,this.uint16[L+21]=b,this.uint16[L+22]=x,this.uint16[L+23]=w,this.uint16[L+24]=A,this.uint16[L+25]=S,this.uint16[L+26]=E,this.uint16[L+27]=T,this.uint32[R+14]=P,this.float32[R+15]=C,this.float32[R+16]=I,this.float32[R+17]=M,this.float32[R+18]=k,this.uint8[D+76]=O,e}}Ba.prototype.bytesPerElement=80,lo(Ba,"StructArrayLayout2f9i15ui1ul4f1ub80");class Ua extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}Ua.prototype.bytesPerElement=4,lo(Ua,"StructArrayLayout1f4");class Va extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,n,i)}emplace(e,t,r,n,i,o){const a=5*e;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,this.float32[a+4]=o,e}}Va.prototype.bytesPerElement=20,lo(Va,"StructArrayLayout5f20");class qa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,n,i,o,a)}emplace(e,t,r,n,i,o,a,s){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=r,this.float32[l+2]=n,this.float32[l+3]=i,this.float32[l+4]=o,this.float32[l+5]=a,this.float32[l+6]=s,e}}qa.prototype.bytesPerElement=28,lo(qa,"StructArrayLayout7f28");class Ha extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,n,i,o,a,s,l,c,u)}emplace(e,t,r,n,i,o,a,s,l,c,u,d){const h=11*e;return this.float32[h+0]=t,this.float32[h+1]=r,this.float32[h+2]=n,this.float32[h+3]=i,this.float32[h+4]=o,this.float32[h+5]=a,this.float32[h+6]=s,this.float32[h+7]=l,this.float32[h+8]=c,this.float32[h+9]=u,this.float32[h+10]=d,e}}Ha.prototype.bytesPerElement=44,lo(Ha,"StructArrayLayout11f44");class Ga extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,n,i,o,a,s,l)}emplace(e,t,r,n,i,o,a,s,l,c){const u=9*e;return this.float32[u+0]=t,this.float32[u+1]=r,this.float32[u+2]=n,this.float32[u+3]=i,this.float32[u+4]=o,this.float32[u+5]=a,this.float32[u+6]=s,this.float32[u+7]=l,this.float32[u+8]=c,e}}Ga.prototype.bytesPerElement=36,lo(Ga,"StructArrayLayout9f36");class Wa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){const n=2*e;return this.float32[n+0]=t,this.float32[n+1]=r,e}}Wa.prototype.bytesPerElement=8,lo(Wa,"StructArrayLayout2f8");class Ya extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,r,n)}emplace(e,t,r,n,i){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=r,this.uint16[o+3]=n,this.uint16[o+4]=i,e}}Ya.prototype.bytesPerElement=12,lo(Ya,"StructArrayLayout1ul3ui12");class Za extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}Za.prototype.bytesPerElement=2,lo(Za,"StructArrayLayout1ui2");class Ka extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m)}emplace(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g){const _=16*e;return this.float32[_+0]=t,this.float32[_+1]=r,this.float32[_+2]=n,this.float32[_+3]=i,this.float32[_+4]=o,this.float32[_+5]=a,this.float32[_+6]=s,this.float32[_+7]=l,this.float32[_+8]=c,this.float32[_+9]=u,this.float32[_+10]=d,this.float32[_+11]=h,this.float32[_+12]=p,this.float32[_+13]=f,this.float32[_+14]=m,this.float32[_+15]=g,e}}Ka.prototype.bytesPerElement=64,lo(Ka,"StructArrayLayout16f64");class Xa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,n,i,o,a){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,r,n,i,o,a)}emplace(e,t,r,n,i,o,a,s){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=r,this.uint16[l+2]=n,this.uint16[l+3]=i,this.float32[c+2]=o,this.float32[c+3]=a,this.float32[c+4]=s,e}}Xa.prototype.bytesPerElement=20,lo(Xa,"StructArrayLayout4ui3f20");class Ja extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.int16[1*e+0]=t,e}}Ja.prototype.bytesPerElement=2,lo(Ja,"StructArrayLayout1i2");class Qa extends _a{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint8[1*e+0]=t,e}}Qa.prototype.bytesPerElement=1,lo(Qa,"StructArrayLayout1ub1");class $a extends ga{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}$a.prototype.size=40;class es extends La{get(e){return new $a(this,e)}}lo(es,"CollisionBoxArray");class ts extends ga{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}ts.prototype.size=60;class rs extends ja{get(e){return new ts(this,e)}}lo(rs,"PlacedSymbolArray");class ns extends ga{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}
vendor: 4,429 bytes, line 2
2get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}}ns.prototype.size=80;class is extends Ba{get(e){return new ns(this,e)}}lo(is,"SymbolInstanceArray");class os extends Ua{getoffsetX(e){return this.float32[1*e+0]}}lo(os,"GlyphOffsetArray");class as extends ba{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}lo(as,"SymbolLineVertexArray");class ss extends ga{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}ss.prototype.size=12;class ls extends Ya{get(e){return new ss(this,e)}}lo(ls,"FeatureIndexArray");class cs extends Ra{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}lo(cs,"FillExtrusionCentroidArray");class us extends ga{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}us.prototype.size=6;class ds extends xa{get(e){return new us(this,e)}}lo(ds,"FillExtrusionWallArray");const hs=ya([{name:"a_pos",components:2,type:"Int16"}],4),ps=ya([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class fs{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.segments=e}_prepareSegment(e,t,r,n){let i=this.segments[this.segments.length-1];return e>fs.MAX_VERTEX_ARRAY_LENGTH&&fe("Max vertices per segment is ".concat(fs.MAX_VERTEX_ARRAY_LENGTH,": bucket requested ").concat(e)),(!i||i.vertexLength+e>fs.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&&(i={vertexOffset:t,primitiveOffset:r,vertexLength:0,primitiveLength:0},void 0!==n&&(i.sortKey=n),this.segments.push(i)),i}prepareSegment(e,t,r,n){return this._prepareSegment(e,t.length,r.length,n)}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,r,n){return new fs([{vertexOffset:e,primitiveOffset:t,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])}}function ms(e,t){return 256*(e=ee(Math.floor(e),0,255))+ee(Math.floor(t),0,255)}fs.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,lo(fs,"SegmentVector");const gs=ya([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),_s=ya([{name:"a_dash",components:4,type:"Uint16"}]);class ys{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}
2add(e,t,r,n){this.ids.push(vs(e)),this.positions.push(t,r,n)}eachPosition(e,t){const r=vs(e);let n=0,i=this.ids.length-1;for(;n<i;){const e=n+i>>1;this.ids[e]>=r?i=e:n=e+1}for(;this.ids[n]===r;)t(this.positions[3*n],this.positions[3*n+1],this.positions[3*n+2]),n++}static serialize(e,t){const r=new Float64Array(e.ids),n=new Uint32Array(e.positions);return bs(r,n,0,r.length-1),t&&(t.add(r.buffer),t.add(n.buffer)),{ids:r,positions:n}}static deserialize(e){const t=new ys;let r;t.ids=e.ids,t.positions=e.positions;for(const n of t.ids)n!==r&&t.uniqueIds.push(n),r=n;return t.indexed=!0,t}}function vs(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:yt(String(e))}function bs(e,t,r,n){for(;r<n;){const i=e[r+n>>1];let o=r-1,a=n+1;for(;;){do{o++}while(e[o]<i);do{a--}while(e[a]>i);if(o>=a)break;xs(e,o,a),xs(t,3*o,3*a),xs(t,3*o+1,3*a+1),xs(t,3*o+2,3*a+2)}a-r<n-a?(bs(e,t,r,a),r=a+1):(bs(e,t,a+1,n),n=a)}}function xs(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}lo(ys,"FeaturePositionMap");class ws{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}set(e,t,r){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class As extends ws{constructor(e){super(e),this.current=0}set(e,t,r){this.fetchUniformLocation(e,t)&&this.current!==r&&(this.current=r,this.gl.uniform1i(this.location,r))}}class Ss extends ws{constructor(e){super(e),this.current=0}set(e,t,r){this.fetchUniformLocation(e,t)&&this.current!==r&&(this.current=r,this.gl.uniform1f(this.location,r))}}class Es extends ws{constructor(e){super(e),this.current=[0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]||(this.current=r,this.gl.uniform2f(this.location,r[0],r[1])))}}class Ts extends ws{constructor(e){super(e),this.current=[0,0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]||(this.current=r,this.gl.uniform3f(this.location,r[0],r[1],r[2])))}}class Ps extends ws{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,r){this.fetchUniformLocation(e,t)&&(r[0]===this.current[0]&&r[1]===this.current[1]&&r[2]===this.current[2]&&r[3]===this.current[3]||(this.current=r,this.gl.uniform4f(this.location,r[0],r[1],r[2],r[3])))}}class Cs extends ws{constructor(e){super(e),this.current=Pt.transparent.toRenderColor(null)}set(e,t,r){this.fetchUniformLocation(e,t)&&(r.r===this.current.r&&r.g===this.current.g&&r.b===this.current.b&&r.a===this.current.a||(this.current=r,this.gl.uniform4f(this.location,r.r,r.g,r.b,r.a)))}}const Is=new Float32Array(16);class Ms extends ws{constructor(e){super(e),this.current=Is}set(e,t,r){if(this.fetchUniformLocation(e,t)){if(r[12]!==this.current[12]||r[0]!==this.current[0])return this.current=r,void this.gl.uniformMatrix4fv(this.location,!1,r);for(let e=1;e<16;e++)if(r[e]!==this.current[e]){this.current=r,this.gl.uniformMatrix4fv(this.location,!1,r);break}}}}const ks=new Float32Array(9),Os=new Float32Array(4);class Rs extends ws{constructor(e){super(e),this.current=Os}set(e,t,r){if(this.fetchUniformLocation(e,t))for(let n=0;n<4;n++)if(r[n]!==this.current[n]){this.current=r,this.gl.uniformMatrix2fv(this.location,!1,r);break}}}function Ls(e){return[ms(255*e.r,255*e.g),ms(255*e.b,255*e.a)]}class Ds{constructor(e,t,r,n){this.value=e,this.uniformNames=t.map((e=>"u_".concat(e))),this.type=r,this.context=n}setUniform(e,t,r,n,i){const o=n.constantOr(this.value);t.set(e,i,o instanceof Pt?o.toRenderColor(this.ignoreLut?null:this.context.lut):o)}getBinding(e,t){return"color"===this.type?new Cs(e):new Ss(e)}}class Ns{constructor(e,t){this.uniformNames=t.map((e=>"u_".concat(e))),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,t,r,n,i){const o="u_pattern"===i||"u_dash"===i?this.pattern:"u_pixel_ratio"===i?this.pixelRatio:null;o&&t.set(e,i,o)}getBinding(e,t){return"u_pattern"===t||"u_dash"===t?new Ps(e):new Ss(e)}}class Fs{constructor(e,t,r,n){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:"a_".concat(e),type:"Float32",components:"color"===r?2:1,offset:0}))),this.paintVertexArray=new n}populatePaintArray(e,t,r,n,i,o,a){const s=this.paintVertexArray.length,l=this.expression.evaluate(new Do(0,{brightness:o}),t,{},i,n,a);this.paintVertexArray.resize(e),this._setPaintValue(s,e,l,this.context)}updatePaintArray(e,t,r,n,i,o,a){const s=this.expression.evaluate({zoom:0,brightness:a},r,n,void 0,i);this._setPaintValue(e,t,s,this.context)}_setPaintValue(e,t,r,n){if("color"===this.type){const i=Ls(r.toRenderColor(this.ignoreLut?null:n.lut));for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i[0],i[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class zs{constructor(e,t,r,n,i,o){this.expression=e,this.uniformNames=t.map((e=>"u_".concat(e,"_t"))),this.type=r,this.useIntegerZoom=n,this.context=i,this.maxValue=0,this.paintVertexAttributes=t.map((e=>({name:"a_".concat(e),type:"Float32",components:"color"===r?4:2,offset:0}))),this.paintVertexArray=new o}populatePaintArray(e,t,r,n,i,o,a){const s=this.expression.evaluate(new Do(this.context.zoom,{brightness:o}),t,{},i,n,a),l=this.expression.evaluate(new Do(this.context.zoom+1,{brightness:o}),t,{},i,n,a),c=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(c,e,s,l,this.context)}updatePaintArray(e,t,r,n,i,o,a){const s=this.expression.evaluate({zoom:this.context.zoom,brightness:a},r,n,void 0,i),l=this.expression.evaluate({zoom:this.context.zoom+1,brightness:a},r,n,void 0,i);this._setPaintValue(e,t,s,l,this.context)}_setPaintValue(e,t,r,n,i){if("color"===this.type){const n=Ls(r.toRenderColor(this.ignoreLut?null:i.lut)),o=Ls(r.toRenderColor(this.ignoreLut?null:i.lut));for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n[0],n[1],o[0],o[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,r,n,i){const o=this.useIntegerZoom?Math.floor(r.zoom):r.zoom,a=ee
2(this.expression.interpolationFactor(o,this.context.zoom,this.context.zoom+1),0,1);t.set(e,i,a)}getBinding(e,t){return new Ss(e)}}class js{constructor(e,t,r,n,i){this.expression=e,this.layerId=i,this.paintVertexAttributes=("array"===r?_s:gs).members;for(let o=0;o<t.length;++o);this.paintVertexArray=new n}populatePaintArray(e,t,r,n){const i=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(i,e,t.patterns&&t.patterns[this.layerId],r)}updatePaintArray(e,t,r,n,i,o,a){this._setPaintValues(e,t,r.patterns&&r.patterns[this.layerId],o)}_setPaintValues(e,t,r,n){if(!n||!r)return;const i=n[r];if(!i)return;const{tl:o,br:a,pixelRatio:s}=i;for(let l=e;l<t;l++)this.paintVertexArray.emplace(l,o[0],o[1],a[0],a[1],s)}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class Bs{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;this.binders={},this._buffers=[],this.context=t;const n=[];for(const i in e.paint._values){const o=e.paint.get(i),a=e.paint.get("".concat(i,"-use-theme"));if(i.endsWith("-use-theme"))continue;if(!r(i))continue;if(!(o instanceof Vo&&Fi(o.property.specification)))continue;const s=qs(i,e.type),l=o.value,c=o.property.specification.type,u=!!o.property.useIntegerZoom,d="line-dasharray"===i||i.endsWith("pattern"),h="line-dasharray"===i&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==l.kind||h)if("source"===l.kind||h||d){const t=Ws(i,c,"source");this.binders[i]=d?new js(l,s,c,t,e.id):new Fs(l,s,c,t),n.push("/a_".concat(i))}else{const e=Ws(i,c,"composite");this.binders[i]=new zs(l,s,c,u,t,e),n.push("/z_".concat(i))}else this.binders[i]=d?new Ns(l.value,s):new Ds(l.value,s,c,t),n.push("/u_".concat(i));a&&(this.binders[i].ignoreLut="none"===a.constantOr("default"),this.binders[i].checkUseTheme=!0)}this.cacheKey=n.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Fs||t instanceof zs?t.maxValue:0}populatePaintArrays(e,t,r,n,i,o,a){for(const s in this.binders){const l=this.binders[s];l.context=this.context,(l instanceof Fs||l instanceof zs||l instanceof js)&&l.populatePaintArray(e,t,r,n,i,o,a)}}setConstantPatternPositions(e){for(const t in this.binders){const r=this.binders[t];r instanceof Ns&&r.setConstantPatternPositions(e)}}updatePaintArrays(e,t,r,n,i,o,a,s,l){let c=!1;const u=Object.keys(e),d=0!==u.length&&!s,h=d?u:t.uniqueIds;this.context.lut=i.lut;for(const p in this.binders){const s=this.binders[p];if(s.context=this.context,(s instanceof Fs||s instanceof zs||s instanceof js)&&(!0===s.expression.isStateDependent||!1===s.expression.isLightConstant)){const u=i.paint.get(p);s.expression=u.value;for(const r of h){const i=e[r.toString()];t.eachPosition(r,((e,t,r)=>{const c=n.feature(e);s.updatePaintArray(t,r,c,i,o,a,l)}))}if(!d)for(const t of r.uniqueIds){const i=e[t.toString()];r.eachPosition(t,((e,t,r)=>{const c=n.feature(e);s.updatePaintArray(t,r,c,i,o,a,l)}))}c=!0}}return c}defines(){const e=[];for(const t in this.binders){const r=this.binders[t];(r instanceof Ds||r instanceof Ns)&&e.push(...r.uniformNames.map((e=>"#define HAS_UNIFORM_".concat(e))))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const r=this.binders[t];if(r instanceof Fs||r instanceof zs||r instanceof js)for(let t=0;t<r.paintVertexAttributes.length;t++)e.push(r.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const r=this.binders[t];if(r instanceof Ds||r instanceof Ns||r instanceof zs)for(const t of r.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const r in this.binders){const n=this.binders[r];if(n instanceof Ds||n instanceof Ns||n instanceof zs)for(const i of n.uniformNames)t.push({name:i,property:r,binding:n.getBinding(e,i)})}return t}setUniforms(e,t,r,n,i){for(const{name:o,property:a,binding:s}of r){if(this.binders[a].checkUseTheme&&this.binders[a]instanceof Ds){const e=n.get("".concat(a,"-use-theme"));e.isConstant()&&(this.binders[a].ignoreLut="none"===e.constantOr("default"))}this.binders[a].setUniform(e,s,i,n.get(a),o)}}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof Fs||t instanceof zs||t instanceof js)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer)}}upload(e){for(const t in this.binders){const r=this.binders[t];(r instanceof Fs||r instanceof zs||r instanceof js)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Fs||t instanceof zs||t instanceof js)&&t.destroy()}}}class Us{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>!0;this.programConfigurations={};for(const n of e)this.programConfigurations[n.id]=new Bs(n,t,r);this.needsUpload=!1,this._featureMap=new ys,this._featureMapWithoutIds=new ys,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,r,n,i,o,a,s){for(const l in this.programConfigurations)this.programConfigurations[l].populatePaintArrays(e,t,n,i,o,a,s);void 0!==t.id?this._featureMap.add(t.id,r,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,r,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,n,i,o,a){for(const s of r)this.needsUpload=this.programConfigurations[s.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,s,n,i,o,a||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const Vs={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"symbol-z-offset":["z_offset"],"line-gap-width":["ga
2pwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function qs(e,t){return Vs[e]||[e.replace("".concat(t,"-"),"").replace(/-/g,"_")]}const Hs={"line-pattern":{source:Pa,composite:Pa},"fill-pattern":{source:Pa,composite:Pa},"fill-extrusion-pattern":{source:Pa,composite:Pa},"line-dasharray":{source:Ca,composite:Ca}},Gs={color:{source:Wa,composite:Ea},number:{source:Ua,composite:Wa}};function Ws(e,t,r){const n=Hs[e];return n&&n[r]||Gs[t][r]}lo(Ds,"ConstantBinder"),lo(Ns,"PatternConstantBinder"),lo(Fs,"SourceExpressionBinder"),lo(js,"PatternCompositeBinder"),lo(zs,"CompositeExpressionBinder"),lo(Bs,"ProgramConfiguration",{omit:["_buffers"]}),lo(Us,"ProgramConfigurationSet");const Ys=Jr/Math.PI/2,Zs=5,Ks=6,Xs=16383,Js=64,Qs=[Js,32,16],$s=-Ys,el=Ys;function tl(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ys;return r=Z(r),[e*Math.sin(r)*n,-t*n,e*Math.cos(r)*n]}function rl(e,t,r){return tl(Math.cos(Z(e)),Math.sin(Z(e)),t,r)}const nl=6371008.8,il=2*Math.PI*nl;class ol{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: (".concat(e,", ").concat(t,")"));if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new ol(re(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}distanceTo(e){const t=Math.PI/180,r=this.lat*t,n=e.lat*t,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((e.lng-this.lng)*t);return nl*Math.acos(Math.min(i,1))}toBounds(){const e=360*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)/40075017,t=e/Math.cos(Math.PI/180*this.lat);return new al({lng:this.lng-t,lat:this.lat-e},{lng:this.lng+t,lat:this.lat+e})}toEcef(e){return rl(this.lat,this.lng,Ys+e*Ys/nl)}static convert(e){if(e instanceof ol)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new ol(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new ol(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class al{constructor(e,t){if(e)if(t)this.setSouthWest(e).setNorthEast(t);else if(4===e.length){const t=e;this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]])}else{const t=e;this.setSouthWest(t[0]).setNorthEast(t[1])}}setNorthEast(e){return this._ne=e instanceof ol?new ol(e.lng,e.lat):ol.convert(e),this}setSouthWest(e){return this._sw=e instanceof ol?new ol(e.lng,e.lat):ol.convert(e),this}extend(e){const t=this._sw,r=this._ne;let n,i;if(e instanceof ol)n=e,i=e;else{if(!(e instanceof al))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(al.convert(e)):this.extend(ol.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(ol.convert(e)):this;if(n=e._sw,i=e._ne,!n||!i)return this}return t||r?(t.lng=Math.min(n.lng,t.lng),t.lat=Math.min(n.lat,t.lat),r.lng=Math.max(i.lng,r.lng),r.lat=Math.max(i.lat,r.lat)):(this._sw=new ol(n.lng,n.lat),this._ne=new ol(i.lng,i.lat)),this}getCenter(){return new ol((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new ol(this.getWest(),this.getNorth())}getSouthEast(){return new ol(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return"LngLatBounds(".concat(this._sw.toString(),", ").concat(this._ne.toString(),")")}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:r}=ol.convert(e);let n=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&n}static convert(e){if(e)return e instanceof al?e:new al(e)}}const sl=0,ll=25.5;function cl(e){return il*Math.cos(e*Math.PI/180)}function ul(e){return(180+e)/360}function dl(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function hl(e,t){return e/cl(t)}function pl(e){return 360*e-180}function fl(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180)
vendor: 3,325 bytes, line 2
2)-90}function ml(e,t){return e*cl(fl(t))}const gl=85.051129;function _l(e){return Math.cos(Z(ee(e,-gl,gl)))}function yl(e,t){const r=ee(t,sl,ll),n=Math.pow(2,r);return _l(e)*il/(512*n)}function vl(e){return 1/Math.cos(e*Math.PI/180)}function bl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=Math.exp(Math.PI*(1-(e.y+t/Jr)/(1<<e.z)*2));return 80150034*r/(r*r+1)/Jr/(1<<e.z)}class xl{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.x=+e,this.y=+t,this.z=+r}static fromLngLat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=ol.convert(e);return new xl(ul(r.lng),dl(r.lat),hl(t,r.lat))}toLngLat(){return new ol(pl(this.x),fl(this.y))}toAltitude(){return ml(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/il*vl(fl(this.y))}}function wl(e,t,r,n,i,o,a,s,l){const c=(t+n)/2,u=(r+i)/2,d=new H(c,u);s(d),function(e,t,r,n,i,o){const a=r-i,s=n-o;return Math.abs((n-t)*a-(r-e)*s)/Math.hypot(a,s)}(d.x,d.y,o.x,o.y,a.x,a.y)>=l?(wl(e,t,r,c,u,o,d,s,l),wl(e,c,u,n,i,d,a,s,l)):e.push(a)}function Al(e,t,r){let n=e[0],i=n.x,o=n.y;t(n);const a=[n];for(let s=1;s<e.length;s++){const l=e[s],{x:c,y:u}=l;t(l),wl(a,i,o,c,u,n,l,t,r),i=c,o=u,n=l}return a}function Sl(e,t,r,n){if(n(t,r)){const i=t.add(r)._mult(.5);Sl(e,t,i,n),Sl(e,i,r,n)}else e.push(r)}function El(e,t){let r=e[0];const n=[r];for(let i=1;i<e.length;i++){const o=e[i];Sl(n,r,o,t),r=o}return n}const Tl=Math.pow(2,14)-1,Pl=-Tl-1;function Cl(e,t){const r=Math.round(e.x*t),n=Math.round(e.y*t);return e.x=ee(r,Pl,Tl),e.y=ee(n,Pl,Tl),(r<e.x||r>e.x+1||n<e.y||n>e.y+1)&&fe("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function Il(e,t,r){const n=e.loadGeometry(),i=e.extent,o=Jr/i;if(t&&r&&r.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:a,x:s,y:l,projection:c}=r,u=e=>{const r=pl((t.x+e.x/i)/o),n=fl((t.y+e.y/i)/o),u=c.project(r,n);e.x=(u.x*a-s)*i,e.y=(u.y*a-l)*i};for(let t=0;t<n.length;t++)if(1!==e.type)n[t]=Al(n[t],u,1);else{const e=[];for(const r of n[t])r.x<0||r.x>=i||r.y<0||r.y>=i||(u(r),e.push(r));n[t]=e}}for(const a of n)for(const e of a)Cl(e,o);return n}function Ml(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Il(e):[]}}function kl(e,t,r,n,i){e.emplaceBack(2*t+(n+1)/2,2*r+(i+1)/2)}function Ol(e,t,r){const n=16384;e.emplaceBack(t.x,t.y,t.z,r[0]*n,r[1]*n,r[2]*n)}class Rl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ba,this.indexArray=new za,this.segments=new fs,this.programConfigurations=new Us(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id))}updateFootprints(e,t){}populate(e,t,r,n){const i=this.layers[0],o=[];let a=null;"circle"===i.type&&(a=i.layout.get("circle-sort-key"));for(const{feature:l,id:c,index:u,sourceLayerIndex:d}of e){const e=this.layers[0]._featureFilter.needGeometry,t=Ml(l,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),t,r))continue;const i=a?a.evaluate(t,{},r):void 0,s={id:c,properties:l.properties,type:l.type,sourceLayerIndex:d,index:u,geometry:e?t.geometry:Il(l,r,n),patterns:{},sortKey:i};o.push(s)}a&&o.sort(((e,t)=>
vendor: 5,263 bytes, line 2
2e.sortKey-t.sortKey));let s=null;"globe"===n.projection.name&&(this.globeExtVertexArray=new Ia,s=n.projection);for(const l of o){const{geometry:n,index:i,sourceLayerIndex:o}=l,a=e[i].feature;this.addFeature(l,n,i,t.availableImages,r,s,t.brightness),t.featureIndex.insert(a,n,i,o,this.index)}}update(e,t,r,n,i,o,a){this.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,hs.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,ps.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,r,n,i,o,a){for(const s of t)for(const t of s){const r=t.x,n=t.y;if(r<0||r>=Jr||n<0||n>=Jr)continue;if(o){const e=o.projectTilePoint(r,n,i),t=o.upVector(i,r,n),a=this.globeExtVertexArray;Ol(a,e,t),Ol(a,e,t),Ol(a,e,t),Ol(a,e,t)}const a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=a.vertexLength;kl(this.layoutVertexArray,r,n,-1,-1),kl(this.layoutVertexArray,r,n,1,-1),kl(this.layoutVertexArray,r,n,1,1),kl(this.layoutVertexArray,r,n,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+2,s+3),a.vertexLength+=4,a.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{},n,i,a)}}function Ll(e,t){for(let r=0;r<e.length;r++)if(ql(t,e[r]))return!0;for(let r=0;r<t.length;r++)if(ql(e,t[r]))return!0;return!!zl(e,t)}function Dl(e,t,r){return!!ql(e,t)||!!Bl(t,e,r)}function Nl(e,t){if(1===e.length)return Vl(t,e[0]);for(let r=0;r<t.length;r++){const n=t[r];for(let t=0;t<n.length;t++)if(ql(e,n[t]))return!0}for(let r=0;r<e.length;r++)if(Vl(t,e[r]))return!0;for(let r=0;r<t.length;r++)if(zl(e,t[r]))return!0;return!1}function Fl(e,t,r){if(e.length>1){if(zl(e,t))return!0;for(let n=0;n<t.length;n++)if(Bl(t[n],e,r))return!0}for(let n=0;n<e.length;n++)if(Bl(e[n],t,r))return!0;return!1}function zl(e,t){if(0===e.length||0===t.length)return!1;for(let r=0;r<e.length-1;r++){const n=e[r],i=e[r+1];for(let e=0;e<t.length-1;e++)if(jl(n,i,t[e],t[e+1]))return!0}return!1}function jl(e,t,r,n){return me(e,r,n)!==me(t,r,n)&&me(e,t,r)!==me(e,t,n)}function Bl(e,t,r){const n=r*r;if(1===t.length)return e.distSqr(t[0])<n;for(let i=1;i<t.length;i++)if(Ul(e,t[i-1],t[i])<n)return!0;return!1}function Ul(e,t,r){const n=t.distSqr(r);if(0===n)return e.distSqr(t);const i=((e.x-t.x)*(r.x-t.x)+(e.y-t.y)*(r.y-t.y))/n;return e.distSqr(i<0?t:i>1?r:r.sub(t)._mult(i)._add(t))}function Vl(e,t){let r,n,i,o=!1;for(let a=0;a<e.length;a++){r=e[a];for(let e=0,a=r.length-1;e<r.length;a=e++)n=r[e],i=r[a],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(o=!o)}return o}function ql(e,t){let r=!1;for(let n=0,i=e.length-1;n<e.length;i=n++){const o=e[n],a=e[i];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(r=!r)}return r}function Hl(e,t,r,n,i){for(const a of e)if(t<=a.x&&r<=a.y&&n>=a.x&&i>=a.y)return!0;const o=[new H(t,r),new H(t,i),new H(n,i),new H(n,r)];if(e.length>2)for(const a of o)if(ql(e,a))return!0;for(let a=0;a<e.length-1;a++)if(Gl(e[a],e[a+1],o))return!0;return!1}function Gl(e,t,r){const n=r[0],i=r[2];if(e.x<n.x&&t.x<n.x||e.x>i.x&&t.x>i.x||e.y<n.y&&t.y<n.y||e.y>i.y&&t.y>i.y)return!1;const o=me(e,t,r[0]);return o!==me(e,t,r[1])||o!==me(e,t,r[2])||o!==me(e,t,r[3])}function Wl(e,t,r,n,i,o){let a=t.y-e.y,s=e.x-t.x;if(o=o||0){const e=a*a+s*s;if(0===e)return!0;const t=Math.sqrt(e);a/=t,s/=t}return!((r.x-e.x)*a+(r.y-e.y)*s-o<0||(n.x-e.x)*a+(n.y-e.y)*s-o<0||(i.x-e.x)*a+(i.y-e.y)*s-o<0)}function Yl(e,t,r,n,i,o,a){return!(Wl(e,t,n,i,o,a)||Wl(t,r,n,i,o,a)||Wl(r,e,n,i,o,a)||Wl(n,i,e,t,r,a)||Wl(i,o,e,t,r,a)||Wl(o,n,e,t,r,a))}function Zl(e,t,r){const n=t.paint.get(e).value;return"constant"===n.kind?n.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Kl(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Xl(e,t,r,n,i){if(!t[0]&&!t[1])return e;const o=H.convert(t)._mult(i);"viewport"===r&&o._rotate(-n);const a=[];for(let s=0;s<e.length;s++)a.push(e[s].sub(o));return a}function Jl(e,t,r,n){const i=H.convert(e)._mult(n);return"viewport"===t&&i._rotate(-r),i}let Ql,$l;lo(Rl,"CircleBucket",{omit:["layers"]});var ec,tc={exports:{}},rc=(ec||(ec=1,function(e,t){!function(e){function t(e,t,n){var i=r(256*e,256*(t=Math.pow(2,n)-t-1),n),o=r(256*(e+1),256*(t+1),n);return i[0]+","+i[1]+","+o[0]+","+o[1]}function r(e,t,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[e*n-2*Math.PI*6378137/2,t*n-2*Math.PI*6378137/2]}e.getURL=function(e,r,n,i,o,a){return a=a||{},e+"?"+["bbox="+t(n,i,o),"format="+(a.format||"image/png"),"service="+(a.service||"WMS"),"version="+(a.version||"1.1.1"),"request="+(a.request||"GetMap"),"srs="+(a.srs||"EPSG:3857"),"width="+(a.width||256),"height="+(a.height||256),"layers="+r].join("&")},e.getTileBBox=t,e.getMercCoords=r,Object.defineProperty(e,"__esMo
2dule",{value:!0})}(t)}(0,tc.exports)),tc.exports);class nc{constructor(e,t,r){this.z=e,this.x=t,this.y=r,this.key=ac(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const r=rc.getTileBBox(this.x,this.y,this.z),n=function(e,t,r){let n,i="";for(let o=e;o>0;o--)n=1<<o-1,i+=(t&n?1:0)+(r&n?2:0);return i}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",n).replace("{bbox-epsg-3857}",r)}toString(){return"".concat(this.z,"/").concat(this.x,"/").concat(this.y)}}class ic{constructor(e,t){this.wrap=e,this.canonical=t,this.key=ac(e,t.z,t.z,t.x,t.y)}}class oc{constructor(e,t,r,n,i){this.overscaledZ=e,this.wrap=t,this.canonical=new nc(r,+n,+i),this.key=0===t&&e===r?this.canonical.key:ac(t,e,r,n,i)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new oc(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new oc(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return ac(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const r=this.canonical.z-e;return ac(this.wrap*+t,e,e,this.canonical.x>>r,this.canonical.y>>r)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new oc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new oc(t,this.wrap,t,r,n),new oc(t,this.wrap,t,r+1,n),new oc(t,this.wrap,t,r,n+1),new oc(t,this.wrap,t,r+1,n+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new oc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new oc(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new ic(this.wrap,this.canonical)}toString(){return"".concat(this.overscaledZ,"/").concat(this.canonical.x,"/").concat(this.canonical.y)}}function ac(e,t,r,n,i){const o=1<<Math.min(r,22);let a=o*(i%o)+n%o;return e&&r<22&&(a+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-r)))),16*(32*a+r)+(t-r)}const sc=[e=>{let t=e.canonical.x-1,r=e.wrap;return t<0&&(t=(1<<e.canonical.z)-1,r--),new oc(e.overscaledZ,r,e.canonical.z,t,e.canonical.y)},e=>{let t=e.canonical.x+1,r=e.wrap;return t===1<<e.canonical.z&&(t=0,r++),new oc(e.overscaledZ,r,e.canonical.z,t,e.canonical.y)},e=>new oc(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new oc(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)];lo(nc,"CanonicalTileID"),lo(oc,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const lc=ya([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:cc}=lc,uc=ya([{name:"a_pos_3",components:3,type:"Int16"}]);var dc=ya([{name:"a_pos",type:"Int16",components:2}]);class hc{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,r){const n=B.vec3.dot(t,this.dir);if(Math.abs(n)<1e-6)return!1;const i=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/n;return r[0]=this.pos[0]+this.dir[0]*i,r[1]=this.pos[1]+this.dir[1]*i,r[2]=this.pos[2]+this.dir[2]*i,!0}closestPointOnSphere(e,t,r){if(B.vec3.equals(this.pos,e)||0===t)return r[0]=r[1]=r[2]=0,!1;const[n,i,o]=this.dir,a=this.pos[0]-e[0],s=this.pos[1]-e[1],l=this.pos[2]-e[2],c=n*n+i*i+o*o,u=2*(a*n+s*i+l*o),d=u*u-4*c*(a*a+s*s+l*l-t*t);if(d<0){const e=Math.max(-u/2,0),c=a+n*e,d=s+i*e,h=l+o*e,p=Math.hypot(c,d,h);return r[0]=c*t/p,r[1]=d*t/p,r[2]=h*t/p,!1}{const e=(-u-Math.sqrt(d))/(2*c);if(e<0){const e=Math.hypot(a,s,l);return r[0]=a*t/e,r[1]=s*t/e,r[2]=l*t/e,!1}return r[0]=a+n*e,r[1]=s+i*e,r[2]=l+o*e,!0}}}class pc{constructor(e,t,r,n,i){this.TL=e,this.TR=t,this.BR=r,this.BL=n,this.horizon=i}static fromInvProjectionMatrix(e,t,r){const n=[-1,1,1],i=[1,1,1],o=[1,-1,1],a=[-1,-1,1],s=B.vec3.transformMat4(n,n,e),l=B.vec3.transformMat4(i,i,e),c=B.vec3.transformMat4(o,o,e),u=B.vec3.transformMat4(a,a,e);return new pc(s,l,c,u,t/r)}}function fc(e,t,r){let n=1/0,i=-1/0;const o=[];for(const a of e){B.vec3.sub(o,a,t);const e=B.vec3.dot(o,r);n=Math.min(n,e),i=Math.max(i,e)}return[n,i]}function mc(e,t){let r=!0;for(let n=0;
2n<e.planes.length;n++){const i=e.planes[n];let o=0;for(let e=0;e<t.length;e++)o+=B.vec3.dot(i,t[e])+i[3]>=0;if(0===o)return 0;o!==t.length&&(r=!1)}return r?2:1}function gc(e,t){for(const r of e.projections){const n=fc(t,e.points[0],r.axis);if(r.projection[1]<n[0]||r.projection[0]>n[1])return 0}return 1}function _c(e,t){let r=0;const n=[0,0,0,0];for(let i=0;i<e.length;i++)n[0]=e[i][0],n[1]=e[i][1],n[2]=e[i][2],n[3]=1,B.vec4.dot(n,t)>=0&&r++;return r}class yc{constructor(e,t){this.points=e||new Array(8).fill([0,0,0]),this.planes=t||new Array(6).fill([0,0,0,0]),this.bounds=vc.fromPoints(this.points),this.projections=[],this.frustumEdges=[B.vec3.sub([],this.points[2],this.points[3]),B.vec3.sub([],this.points[0],this.points[3]),B.vec3.sub([],this.points[4],this.points[0]),B.vec3.sub([],this.points[5],this.points[1]),B.vec3.sub([],this.points[6],this.points[2]),B.vec3.sub([],this.points[7],this.points[3])];for(const r of this.frustumEdges){const e=[0,-r[2],r[1]],t=[r[2],0,-r[0]];this.projections.push({axis:e,projection:fc(this.points,this.points[0],e)}),this.projections.push({axis:t,projection:fc(this.points,this.points[0],t)})}}static fromInvProjectionMatrix(e,t,r,n){const i=Math.pow(2,r),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((r=>{const o=B.vec4.transformMat4([],r,e),a=1/o[3]/t*i;return B.vec4.mul(o,o,[a,a,n?1/o[3]:a,a])})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((e=>{const t=B.vec3.sub([],o[e[0]],o[e[1]]),r=B.vec3.sub([],o[e[2]],o[e[1]]),n=B.vec3.normalize([],B.vec3.cross([],t,r)),i=-B.vec3.dot(n,o[e[1]]);return n.concat(i)})),s=[];for(let l=0;l<o.length;l++)s.push([o[l][0],o[l][1],o[l][2]]);return new yc(s,a)}intersectsPrecise(e,t,r){for(let n=0;n<t.length;n++)if(!_c(e,t[n]))return 0;for(let n=0;n<this.planes.length;n++)if(!_c(e,this.planes[n]))return 0;for(const n of r)for(const t of this.frustumEdges){const r=B.vec3.cross([],n,t),i=B.vec3.length(r);if(0===i)continue;B.vec3.scale(r,r,1/i);const o=fc(this.points,this.points[0],r),a=fc(e,this.points[0],r);if(o[0]>a[1]||a[0]>o[1])return 0}return 1}containsPoint(e){for(const t of this.planes){const r=t[3];
vendor: 4,473 bytes, line 2
2if(B.vec3.dot([t[0],t[1],t[2]],e)+r<0)return!1}return!0}}class vc{static fromPoints(e){const t=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0];for(const n of e)B.vec3.min(t,t,n),B.vec3.max(r,r,n);return new vc(t,r)}static fromTileIdAndHeight(e,t,r){const n=1<<e.canonical.z,i=e.canonical.x,o=e.canonical.y;return new vc([i/n,o/n,t],[(i+1)/n,(o+1)/n,r])}static applyTransform(e,t){const r=e.getCorners();for(let n=0;n<r.length;++n)B.vec3.transformMat4(r[n],r[n],t);return vc.fromPoints(r)}static applyTransformFast(e,t){const r=[t[12],t[13],t[14]],n=[...r];for(let i=0;i<3;i++)for(let o=0;o<3;o++){const a=t[4*o+i],s=a*e.min[o],l=a*e.max[o];r[i]+=Math.min(s,l),n[i]+=Math.max(s,l)}return new vc(r,n)}static projectAabbCorners(e,t){const r=e.getCorners();for(let n=0;n<r.length;++n)B.vec3.transformMat4(r[n],r[n],t);return r}constructor(e,t){this.min=e,this.max=t,this.center=B.vec3.scale([],B.vec3.add([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],r=B.vec3.clone(this.min),n=B.vec3.clone(this.max);for(let i=0;i<t.length;i++)r[i]=t[i]?this.min[i]:this.center[i],n[i]=t[i]?this.center[i]:this.max[i];return n[2]=this.max[2],new vc(r,n)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?mc(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?mc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,t){return t||this.intersects(e)?gc(e,this.getCorners()):0}intersectsPreciseFlat(e,t){return t||this.intersectsFlat(e)?gc(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let t=0;t<3;++t)if(this.min[t]>e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}function bc(e){return e*Ys/nl}lo(vc,"Aabb");const xc=[new vc([$s,$s,$s],[el,el,el]),new vc([$s,$s,$s],[0,0,el]),new vc([0,$s,$s],[el,0,el]),new vc([$s,0,$s],[0,el,el]),new vc([0,0,$s],[el,el,el])];function wc(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=B.vec3.scale([],e._camera.position,e.worldSize),o=[t,r,1,1];B.vec4.transformMat4(o,o,e.pixelMatrixInverse),B.vec4.scale(o,o,1/o[3]);const a=B.vec3.sub([],o,i),s=B.vec3.normalize([],a),l=e.globeMatrix,c=[l[12],l[13],l[14]],u=B.vec3.sub([],c,i),d=B.vec3.length(u),h=B.vec3.normalize([],u),p=e.worldSize/(2*Math.PI),f=B.vec3.dot(h,s),m=Math.asin(p/d);if(m<Math.acos(f)){if(!n)return null;const e=[],t=[];B.vec3.scale(e,s,d/f),B.vec3.normalize(t,B.vec3.sub(t,e,u)),B.vec3.normalize(s,B.vec3.add(s,u,B.vec3.scale(s,t,Math.tan(m)*d)))}const g=[];new hc(i,s).closestPointOnSphere(c,p,g);const _=B.vec3.normalize([],xe(l,0)),y=B.vec3.normalize([],xe(l,1)),v=B.vec3.normalize([],xe(l,2)),b=B.vec3.dot(_,g),x=B.vec3.dot(y,g),w=B.vec3.dot(v,g),A=K(Math.asin(-x/p));let S=K(Math.atan2(b,w));S=e.center.lng+function(e,t){const r=(t-e+180)%360-180;return r<-180?r+360:r}(e.center.lng,S);const E=ul(S),T=ee(dl(A),0,1);return new xl(E,T)}class Ac{constructor(e,t,r){this.a=B.vec3.sub([],e,r),this.b=B.vec3.sub([],t,r),this.center=r;const n=B.vec3.normalize([],this.a),i=B.vec3.normalize([],this.b);this.angle=Math.acos(B.vec3.dot(n,i))}}function Sc(e,t){if(0===e.angle)return null;let r;return r=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),r<0||r>1?null:function(e,t,r,n){const i=Math.sin(r);return e*(Math.sin((1-n)*r)/i)+t*(Math.sin(n*r)/i)}(e.a[t],e.b[t],e.angle,ee(r,0,1))+e.center[t]}function Ec(e){if(e.z<=1)return xc[e.z+2*e.y+e.x];const t=Mc(Ic(e));
2return vc.fromPoints(t)}function Tc(e,t,r){return B.vec3.scale(e,e,1-r),B.vec3.scaleAndAdd(e,e,t,r)}function Pc(e,t,r){for(const n of e)B.vec3.transformMat4(n,n,t),B.vec3.scale(n,n,r)}function Cc(e,t,r,n){const i=t/e.worldSize,o=e.globeMatrix;if(r.z<=1){const e=Ec(r).getCorners();return Pc(e,o,i),vc.fromPoints(e)}const a=Ic(r,n),s=Mc(a,Ys+bc(e._tileCoverLift));Pc(s,o,i);const l=Number.MAX_VALUE,c=[-l,-l,-l],u=[l,l,l];if(a.contains(e.center)){for(const e of s)B.vec3.min(u,u,e),B.vec3.max(c,c,e);c[2]=0;const t=e.point,r=[t.x*i,t.y*i,0];return B.vec3.min(u,u,r),B.vec3.max(c,c,r),new vc(u,c)}if(e._tileCoverLift>0){for(const e of s)B.vec3.min(u,u,e),B.vec3.max(c,c,e);return new vc(u,c)}const d=[o[12]*i,o[13]*i,o[14]*i],h=a.getCenter(),p=ee(e.center.lat,-gl,gl),f=ee(h.lat,-gl,gl),m=ul(e.center.lng),g=dl(p);let _=m-ul(h.lng);const y=g-dl(f);_>.5?_-=1:_<-.5&&(_+=1);let v=0;if(Math.abs(_)>Math.abs(y))v=_>=0?1:3;else{v=y>=0?0:2;const e=[o[4]*i,o[5]*i,o[6]*i],t=-Math.sin(Z(y>=0?a.getSouth():a.getNorth()))*Ys;B.vec3.scaleAndAdd(d,d,e,t)}const b=s[v],x=s[(v+1)%4],w=new Ac(b,x,d),A=[Sc(w,0)||b[0],Sc(w,1)||b[1],Sc(w,2)||b[2]],S=jc(e.zoom);if(S>0){const n=function(e,t,r,n,i){let{x:o,y:a,z:s}=e;const l=1/(1<<s);let c=o*l,u=c+l,d=a*l,h=d+l,p=0;const f=(c+u)/2-n;return f>.5?p=-1:f<-.5&&(p=1),c=((c+p)*t-(n*=t))*r+n,u=((u+p)*t-n)*r+n,d=(d*t-(i*=t))*r+i,h=(h*t-i)*r+i,[[c,h,0],[u,h,0],[u,d,0],[c,d,0]]}(r,t,e._pixelsPerMercatorPixel,m,g);for(let e=0;e<s.length;e++)Tc(s[e],n[e],S);const i=B.vec3.add([],n[v],n[(v+1)%4]);B.vec3.scale(i,i,.5),Tc(A,i,S)}for(const E of s)B.vec3.min(u,u,E),B.vec3.max(c,c,E);return u[2]=Math.min(b[2],x[2]),B.vec3.min(u,u,A),B.vec3.max(c,c,A),new vc(u,c)}function Ic(e){let{x:t,y:r,z:n}=e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=1/(1<<n),a=new ol(pl(t*o),r===(1<<n)-1&&i?-90:fl((r+1)*o)),s=new ol(pl((t+1)*o),0===r&&i?90:fl(r*o));return new al(a,s)}function Mc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ys;const r=Z(e.getNorth()),n=Z(e.getSouth()),i=Math.cos(r),o=Math.cos(n),a=Math.sin(r),s=Math.sin(n),l=e.getWest(),c=e.getEast();return[tl(o,s,l,t),tl(o,s,c,t),tl(i,a,c,t),tl(i,a,l,t)]}function kc(e,t,r,n){const i=1<<r.z,o=(e/Jr+r.x)/i;return rl(fl((t/Jr+r.y)/i),pl(o),n)}function Oc(e){let{min:t,max:r}=e;return Xs/Math.max(r[0]-t[0],r[1]-t[1],r[2]-t[2])}const Rc=new Float64Array(16);function Lc(e){const t=Oc(e),r=B.mat4.fromScaling(Rc,[t,t,t]);return B.mat4.translate(r,r,B.vec3.negate([],e.min))}function Dc(e){const t=B.mat4.fromTranslation(Rc,e.min),r=1/Oc(e);return B.mat4.scale(t,t,[r,r,r])}function Nc(e){const t=Jr/(2*Math.PI);return e/(2*Math.PI)/t}function Fc(e,t){return Jr/(512*Math.pow(2,e))*Oc(Ec(t))}function zc(e,t,r,n,i){const o=Nc(r),a=[e,t,-r/(2*Math.PI)],s=B.mat4.identity(new Float64Array(16));return B.mat4.translate(s,s,a),B.mat4.scale(s,s,[o,o,o]),B.mat4.rotateX(s,s,Z(-i)),B.mat4.rotateY(s,s,Z(-n)),s}function jc(e){return te(Zs,Ks,e)}function Bc(e,t){const r=rl(t.lat,t.lng),n=function(e){const t=rl(e._center.lat,e._center.lng),r=B.vec3.fromValues(0,1,0);let n=B.vec3.cross([],r,t);const i=B.mat4.fromRotation([],-e.angle,t);n=B.vec3.transformMat4(n,n,i),B.mat4.fromRotation(i,-e._pitch,n);const o=B.vec3.normalize([],t);return B.vec3.scale(o,o,bc(e.cameraToCenterDistance/e.pixelsPerMeter)),B.vec3.transformMat4(o,o,i),B.vec3.add([],t,o)}(e),i=B.vec3.subtract([],n,r);return B.vec3.angle(i,r)}function Uc(e,t){return Bc(e,t)>Math.PI/2*1.01}const Vc=Z(85),qc=Math.cos(Vc),Hc=Math.sin(Vc),Gc=B.mat4.create(),Wc=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t};function Yc(e,t,r,n,i,o,a,s,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,u=r.projection.upVectorScale(c,r.center.lat,r.worldSize).metersToTile;for(const d of t)for(const t of d){const d=t.add(s),h=i&&r.elevation?r.elevation.exaggeration()*i.getElevationAt(d.x,d.y,!0):0,p=r.projection.projectTilePoint(d.x,d.y,c);if(h>0){const e=r.projection.upVector(c,d.x,d.y);
2p.x+=e[0]*u*h,p.y+=e[1]*u*h,p.z+=e[2]*u*h}const f=o?d:Zc(p.x,p.y,p.z,n),m=o?e.tilespaceRays.map((e=>Jc(e,h))):e.queryGeometry.screenGeometry,g=B.vec4.transformMat4([],[p.x,p.y,p.z,1],n);if(!a&&o?l*=g[3]/r.cameraToCenterDistance:a&&!o&&(l*=r.cameraToCenterDistance/g[3]),o){const e=fl((t.y/Jr+c.y)/(1<<c.z));l/=r.projection.pixelsPerMeter(e,1)/hl(1,e)}if(Dl(m,f,l))return!0}return!1}function Zc(e,t,r,n){const i=B.vec4.transformMat4([],[e,t,r,1],n);return new H(i[0]/i[3],i[1]/i[3])}const Kc=B.vec3.fromValues(0,0,0),Xc=B.vec3.fromValues(0,0,1);function Jc(e,t){const r=B.vec3.create();return Kc[2]=t,e.intersectsPlane(Kc,Xc,r),new H(r[0],r[1])}class Qc extends Rl{}let $c,eu,tu,ru;function nu(e,t,r,n){let{width:i,height:o}=t;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*o*r)throw new RangeError("mismatched image size")}else n=new Uint8Array(i*o*r);return e.width=i,e.height=o,e.data=n,e}function iu(e,t,r){const{width:n,height:i}=t;n===e.width&&i===e.height||(ou(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,n),height:Math.min(e.height,i)},r,null),e.width=n,e.height=i,e.data=t.data)}function ou(e,t,r,n,i,o,a,s){if(0===i.width||0===i.height)return t;if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>t.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range destination coordinates for image copy");const l=e.data,c=t.data,u=4===o&&s;for(let d=0;d<i.height;d++){const s=((r.y+d)*e.width+r.x)*o,h=((n.y+d)*t.width+n.x)*o;if(u)for(let e=0;e<i.width;e++){const t=s+e*o+3,r=h+e*o;
2c[r+0]=255,c[r+1]=255,c[r+2]=255,c[r+3]=l[t]}else if(a)for(let e=0;e<i.width;e++){const t=s+e*o,r=h+e*o,n=l[t+3],i=new Pt(l[t+0]/255*n,l[t+1]/255*n,l[t+2]/255*n,n).toRenderColor(a).toArray();c[r+0]=i[0],c[r+1]=i[1],c[r+2]=i[2],c[r+3]=i[3]}else for(let e=0;e<i.width*o;e++)c[h+e]=l[s+e]}return t}lo(Qc,"HeatmapBucket",{omit:["layers"]});class au{constructor(e,t){nu(this,e,1,t)}resize(e){iu(this,new au(e),1)}clone(){return new au({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,r,n,i){ou(e,t,r,n,i,1,null)}}class su{constructor(e,t){nu(this,e,4,t)}resize(e){iu(this,new su(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new su({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,r,n,i,o,a){ou(e,t,r,n,i,4,o,a)}}class lu{constructor(e,t){this.width=e.width,this.height=e.height,this.data=t instanceof Uint8Array?new Float32Array(t.buffer):t}}function cu(e){const t={},r=e.resolution||256,n=e.clips?e.clips.length:1,i=e.image||new su({width:r,height:n}),o=(r,n,o)=>{t[e.evaluationKey]=o;const a=e.expression.evaluate(t);a&&(i.data[r+n+0]=Math.floor(255*a.r/a.a),i.data[r+n+1]=Math.floor(255*a.g/a.a),i.data[r+n+2]=Math.floor(255*a.b/a.a),i.data[r+n+3]=Math.floor(255*a.a))};if(e.clips)for(let a=0,s=0;a<n;++a,s+=4*r)for(let t=0,n=0;t<r;t++,n+=4){const i=t/(r-1),{start:l,end:c}=e.clips[a];o(s,n,l*(1-i)+c*i)}else for(let a=0,s=0;a<r;a++,s+=4)o(0,s,a/(r-1));return i}lo(au,"AlphaImage"),lo(su,"RGBAImage");const uu=ya([{name:"a_pos",components:2,type:"Int16"}],4),{members:du}=uu;function hu(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;const n=t&&t.length,i=n?t[0]*r:e.length;let o=pu(e,0,i,r,!0);const a=[];if(!o||o.next===o.prev)return a;let s,l,c;if(n&&(o=function(e,t,r,n){const i=[];for(let o=0,a=t.length;o<a;o++){const r=pu(e,t[o]*n,o<a-1?t[o+1]*n:e.length,n,!1);r===r.next&&(r.steiner=!0),i.push(Su(r))}i.sort(bu);for(let o=0;o<i.length;o++)r=xu(i[o],r);return r}(e,t,o,r)),e.length>80*r){s=1/0,l=1/0;let t=-1/0,n=-1/0;for(let o=r;o<i;o+=r){const r=e[o],i=e[o+1];r<s&&(s=r),i<l&&(l=i),r>t&&(t=r),i>n&&(n=i)}c=Math.max(t-s,n-l),c=0!==c?32767/c:0}return mu(o,a,r,s,l,c,0),a}function pu(e,t,r,n,i){let o;if(i===function(e,t,r,n){let i=0;for(let o=t,a=r-n;o<r;o+=n)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}(e,t,r,n)>0)for(let a=t;a<r;a+=n)o=Lu(a/n|0,e[a],e[a+1],o);else for(let a=r-n;a>=t;a-=n)o=Lu(a/n|0,e[a],e[a+1],o);return o&&Cu(o,o.next)&&(Du(o),o=o.next),o}function fu(e,t){if(!e)return e;t||(t=e);let r,n=e;do{if(r=!1,n.steiner||!Cu(n,n.next)&&0!==Pu(n.prev,n,n.next))n=n.next;else{if(Du(n),n=t=n.prev,n===n.next)break;r=!0}}while(r||n!==t);return t}function mu(e,t,r,n,i,o,a){if(!e)return;!a&&o&&function(e,t,r,n){let i=e;do{0===i.z&&(i.z=Au(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,r=1;do{let n,i=e;e=null;let o=null;for(t=0;i;){t++;let a=i,s=0;for(let e=0;e<r&&(s++,a=a.nextZ,a);e++);let l=r;
vendor: 2,127 bytes, line 2
2for(;s>0||l>0&&a;)0!==s&&(0===l||!a||i.z<=a.z)?(n=i,i=i.nextZ,s--):(n=a,a=a.nextZ,l--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;i=a}o.nextZ=null,r*=2}while(t>1)}(i)}(e,n,i,o);let s=e;for(;e.prev!==e.next;){const l=e.prev,c=e.next;if(o?_u(e,n,i,o):gu(e))t.push(l.i,e.i,c.i),Du(e),e=c.next,s=c.next;else if((e=c)===s){a?1===a?mu(e=yu(fu(e),t),t,r,n,i,o,2):2===a&&vu(e,t,r,n,i,o):mu(fu(e),t,r,n,i,o,1);break}}}function gu(e){const t=e.prev,r=e,n=e.next;if(Pu(t,r,n)>=0)return!1;const i=t.x,o=r.x,a=n.x,s=t.y,l=r.y,c=n.y,u=i<o?i<a?i:a:o<a?o:a,d=s<l?s<c?s:c:l<c?l:c,h=i>o?i>a?i:a:o>a?o:a,p=s>l?s>c?s:c:l>c?l:c;let f=n.next;for(;f!==t;){if(f.x>=u&&f.x<=h&&f.y>=d&&f.y<=p&&Eu(i,s,o,l,a,c,f.x,f.y)&&Pu(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function _u(e,t,r,n){const i=e.prev,o=e,a=e.next;if(Pu(i,o,a)>=0)return!1;const s=i.x,l=o.x,c=a.x,u=i.y,d=o.y,h=a.y,p=s<l?s<c?s:c:l<c?l:c,f=u<d?u<h?u:h:d<h?d:h,m=s>l?s>c?s:c:l>c?l:c,g=u>d?u>h?u:h:d>h?d:h,_=Au(p,f,t,r,n),y=Au(m,g,t,r,n);let v=e.prevZ,b=e.nextZ;for(;v&&v.z>=_&&b&&b.z<=y;){if(v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==i&&v!==a&&Eu(s,u,l,d,c,h,v.x,v.y)&&Pu(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Eu(s,u,l,d,c,h,b.x,b.y)&&Pu(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;v&&v.z>=_;){if(v.x>=p&&v.x<=m&&v.y>=f&&v.y<=g&&v!==i&&v!==a&&Eu(s,u,l,d,c,h,v.x,v.y)&&Pu(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;b&&b.z<=y;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==i&&b!==a&&Eu(s,u,l,d,c,h,b.x,b.y)&&Pu(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function yu(e,t){let r=e;do{const n=r.prev,i=r.next.next;!Cu(n,i)&&Iu(n,r,r.next,i)&&Ou(n,i)&&Ou(i,n)&&(t.push(n.i,r.i,i.i),Du(r),Du(r.next),r=e=i),r=r.next}while(r!==e);return fu(r)}function vu(e,t,r,n,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&Tu(a,e)){let s=Ru(a,e);return a=fu(a,a.next),s=fu(s,s.next),mu(a,t,r,n,i,o,0),void mu(s,t,r,n,i,o,0)}e=e.next}a=a.next}while(a!==e)}function bu(e,t){return e.x-t.x}function xu(e,t){const r=function(e,t){let r=t;const n=e.x,i=e.y;let o,a=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){const e=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 1,211 bytes, line 2
2);if(e<=n&&e>a&&(a=e,o=r.x<r.next.x?r:r.next,e===n))return o}r=r.next}while(r!==t);if(!o)return null;const s=o,l=o.x,c=o.y;let u=1/0;r=o;do{if(n>=r.x&&r.x>=l&&n!==r.x&&Eu(i<c?n:a,i,l,c,i<c?a:n,i,r.x,r.y)){const t=Math.abs(i-r.y)/(n-r.x);Ou(r,e)&&(t<u||t===u&&(r.x>o.x||r.x===o.x&&wu(o,r)))&&(o=r,u=t)}r=r.next}while(r!==s);return o}(e,t);if(!r)return t;const n=Ru(r,e);return fu(n,n.next),fu(r,r.next)}function wu(e,t){return Pu(e.prev,e,t.prev)<0&&Pu(t.next,e,e.next)<0}function Au(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Su(e){let t=e,r=e;do{(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next}while(t!==e);return r}function Eu(e,t,r,n,i,o,a,s){return(i-a)*(t-s)>=(e-a)*(o-s)&&(e-a)*(n-s)>=(r-a)*(t-s)&&(r-a)*(o-s)>=(i-a)*(n-s)}function Tu(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Iu(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(e,t)&&(Ou(e,t)&&Ou(t,e)&&function(e,t){let r=e,n=!1;const i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{r.y>o!=r.next.y>
2o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==e);return n}(e,t)&&(Pu(e.prev,e,t.prev)||Pu(e,t.prev,t))||Cu(e,t)&&Pu(e.prev,e,e.next)>0&&Pu(t.prev,t,t.next)>0)}function Pu(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Cu(e,t){return e.x===t.x&&e.y===t.y}function Iu(e,t,r,n){const i=ku(Pu(e,t,r)),o=ku(Pu(e,t,n)),a=ku(Pu(r,n,e)),s=ku(Pu(r,n,t));return i!==o&&a!==s||!(0!==i||!Mu(e,r,t))||!(0!==o||!Mu(e,n,t))||!(0!==a||!Mu(r,e,n))||!(0!==s||!Mu(r,t,n))}function Mu(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function ku(e){return e>0?1:e<0?-1:0}function Ou(e,t){return Pu(e.prev,e,e.next)<0?Pu(e,t,e.next)>=0&&Pu(e,e.prev,t)>=0:Pu(e,t,e.prev)<0||Pu(e,e.next,t)<0}function Ru(e,t){const r=Nu(e.i,e.x,e.y),n=Nu(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Lu(e,t,r,n){const i=Nu(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Du(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Nu(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Fu(e,t){const r=e.length;if(r<=1)return[e];const n=[];let i,o;for(let a=0;a<r;a++){const t=ge(e[a]);0!==t&&(e[a].area=Math.abs(t),void 0===o&&(o=t<0),o===t<0?(i&&n.push(i),i=[e[a]]):i.push(e[a]))}if(i&&n.push(i),t>1)for(let a=0;a<n.length;a++)n[a].length<=t||(br(n[a],t,1,n[a].length-1,zu),n[a]=n[a].slice(0,t));return n}function zu(e,t){return t.area-e.area}function ju(e,t){if(!e)return null;const r="string"==typeof e?e:e.getPrimary().id;t[r]||(t[r]=[]);const n=tr.from(e).getPrimary();return t[r].push(n),n.serialize()}function Bu(e,t,r){const n=r.patternDependencies;let i=!1;for(const o of t){const t=o.paint.get("".concat(e,"-pattern"));t.isConstant()||(i=!0),ju(t.constantOr(null),n)&&(i=!0)}return i}function Uu(e,t,r,n,i){const o=i.patternDependencies;for(const a of t){const t=a.paint.get("".concat(e,"-pattern")).value;if("constant"!==t.kind){let e=t.evaluate({zoom:n},r,{},i.availableImages);e=e&&e.name?e.name:e;const s=ju(e,o);s&&(r.patterns[a.id]=s)}}return r}class Vu{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ba,this.indexArray=new za,this.indexArray2=new Ra,this.programConfigurations=new Us(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new fs,this.segments2=new fs,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.projection=e.projection}updateFootprints(e,t){}populate(e,t,r,n){this.hasPattern=Bu("fill",this.layers,t);const i=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:a,id:s,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,u=Ml(a,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),u,r))continue;const d=i?i.evaluate(u,{},r,t.availableImages):void 0,h={id:s,properties:a.properties,type:a.type,sourceLayerIndex:c,index:l,geometry:e?u.geometry:Il(a,r,n),patterns:{},sortKey:d};o.push(h)}i&&o.sort(((e,t)=>
vendor: 1,928 bytes, line 2
2e.sortKey-t.sortKey));for(const a of o){const{geometry:n,index:i,sourceLayerIndex:o}=a;if(this.hasPattern){const e=Uu("fill",this.layers,a,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(a,n,i,r,{},t.availableImages,t.brightness);t.featureIndex.insert(e[i].feature,n,i,o,this.index)}}update(e,t,r,n,i,o,a){this.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a)}addFeatures(e,t,r,n,i,o){for(const a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,n,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,du),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;for(const s of Fu(t,500)){let e=0;for(const a of s)e+=a.length;const t=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),r=t.vertexLength,n=[],i=[];for(const a of s){if(0===a.length)continue;a!==s[0]&&i.push(n.length/2);const e=this.segments2.prepareSegment(a.length,this.layoutVertexArray,this.indexArray2),t=e.vertexLength;this.layoutVertexArray.emplaceBack(a[0].x,a[0].y),this.indexArray2.emplaceBack(t+a.length-1,t),n.push(a[0].x),n.push(a[0].y);for(let r=1;r<a.length;r++)this.layoutVertexArray.emplaceBack(a[r].x,a[r].y),this.indexArray2.emplaceBack(t+r-1,t+r),n.push(a[r].x),n.push(a[r].y);e.vertexLength+=a.length,e.primitiveLength+=a.length}const o=hu(n,i);for(let a=0;a<o.length;
vendor: 5,522 bytes, line 2
2a+=3)this.indexArray.emplaceBack(r+o[a],r+o[a+1],r+o[a+2]);t.vertexLength+=e,t.primitiveLength+=o.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,i,o,n,a)}}let qu,Hu,Gu,Wu;lo(Vu,"FillBucket",{omit:["layers","patternFeatures"]});class Yu{constructor(e,t,r,n){if(this.triangleCount=t.length/3,this.min=new H(0,0),this.max=new H(0,0),this.xScale=0,this.yScale=0,this.cellsX=0,this.cellsY=0,this.cells=[],this.payload=[],0===this.triangleCount||0===e.length)return;const[i,o]=[e[0].clone(),e[0].clone()];for(let u=1;u<e.length;++u){const t=e[u];i.x=Math.min(i.x,t.x),i.y=Math.min(i.y,t.y),o.x=Math.max(o.x,t.x),o.y=Math.max(o.y,t.y)}if(n){const e=Math.ceil(Math.max(o.x-i.x,o.y-i.y)/n);r=Math.max(r,e)}if(0===r)return;this.min=i,this.max=o;const a=this.max.sub(this.min);a.x=Math.max(a.x,1),a.y=Math.max(a.y,1);const s=Math.max(a.x,a.y)/r;this.cellsX=Math.max(1,Math.ceil(a.x/s)),this.cellsY=Math.max(1,Math.ceil(a.y/s)),this.xScale=1/s,this.yScale=1/s;const l=[];for(let u=0;u<this.triangleCount;u++){const r=e[t[3*u+0]].sub(this.min),n=e[t[3*u+1]].sub(this.min),i=e[t[3*u+2]].sub(this.min),o=Zu(Math.floor(Math.min(r.x,n.x,i.x)),this.xScale,this.cellsX),a=Zu(Math.floor(Math.max(r.x,n.x,i.x)),this.xScale,this.cellsX),c=Zu(Math.floor(Math.min(r.y,n.y,i.y)),this.yScale,this.cellsY),d=Zu(Math.floor(Math.max(r.y,n.y,i.y)),this.yScale,this.cellsY),h=new H(0,0),p=new H(0,0),f=new H(0,0),m=new H(0,0);for(let e=c;e<=d;++e){h.y=p.y=e*s,f.y=m.y=(e+1)*s;for(let t=o;t<=a;++t)h.x=f.x=t*s,p.x=m.x=(t+1)*s,(Yl(r,n,i,h,p,m)||Yl(r,n,i,h,m,f))&&l.push({cellIdx:e*this.cellsX+t,triIdx:u})}}if(0===l.length)return;l.sort(((e,t)=>e.cellIdx-t.cellIdx||e.triIdx-t.triIdx));let c=0;for(;c<l.length;){const e=l[c].cellIdx,t={start:this.payload.length,len:0};for(;c<l.length&&l[c].cellIdx===e;)++t.len,this.payload.push(l[c++].triIdx);this.cells[e]=t}}_lazyInitLookup(){this.lookup||(this.lookup=new Uint8Array(Math.ceil(this.triangleCount/8))),this.lookup.fill(0)}queryPoint(e,t){if(0===this.triangleCount||0===this.cells.length)return;if(e.x>this.max.x||this.min.x>e.x||e.y>this.max.y||this.min.y>e.y)return;const r=Zu(e.x-this.min.x,this.xScale,this.cellsX),n=Zu(e.y-this.min.y,this.yScale,this.cellsY),i=this.cells[n*this.cellsX+r];if(i){this._lazyInitLookup();for(let e=0;e<i.len;e++){const r=this.payload[i.start+e],n=Math.floor(r/8),o=1<<r%8;if(!(this.lookup[n]&o)&&(this.lookup[n]|=o,t.push(r),t.length===this.triangleCount))return}}}query(e,t,r){if(0===this.triangleCount||0===this.cells.length)return;if(e.x>this.max.x||this.min.x>t.x)return;if(e.y>this.max.y||this.min.y>t.y)return;this._lazyInitLookup();const n=Zu(e.x-this.min.x,this.xScale,this.cellsX),i=Zu(t.x-this.min.x,this.xScale,this.cellsX),o=Zu(e.y-this.min.y,this.yScale,this.cellsY),a=Zu(t.y-this.min.y,this.yScale,this.cellsY);for(let s=o;s<=a;s++)for(let e=n;e<=i;e++){const t=this.cells[s*this.cellsX+e];if(t)for(let e=0;e<t.len;e++){const n=this.payload[t.start+e],i=Math.floor(n/8),o=1<<n%8;if(!(this.lookup[i]&o)&&(this.lookup[i]|=o,r.push(n),r.length===this.triangleCount))return}}}}function Zu(e,t,r){return Math.max(0,Math.min(r-1,Math.floor(e*t)))}lo(Yu,"TriangleGridIndex");class Ku{constructor(e){this.zoom=e.zoom,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.footprints=[]}updateFootprints(e,t){for(const r of this.footprints)t.push({footprint:r,id:e})}populate(e,t,r,n){const i=[];for(const{feature:o,id:a,index:s,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,t=Ml(o,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),t,r))continue;const c={id:a,properties:o.properties,type:o.type,sourceLayerIndex:l,index:s,geometry:e?t.geometry:Il(o,r,n),patterns:{}};i.push(c)}for(const o of i){const{geometry:n,index:i,sourceLayerIndex:a}=o;this.addFeature(o,n,i,r,{},t.availableImages,t.brightness),t.featureIndex.insert(e[i].feature,n,i,a,this.index)}}isEmpty(){return 0===this.footprints.length}uploadPending(){return!1}upload(e){}update(e,t,r,n,i,o,a){}destroy(){}addFeature(e,t,r,n,i){for(const o of Fu(t,2)){const e=[],t=[],r=[],n=new H(1/0,1/0),i=new H(-1/0,-1/0);for(const l of o)if(0!==l.length){l!==o[0]&&r.push(t.length/2);for(let r=0;r<l.length;r++)t.push(l[r].x),t.push(l[r].y),e.push(l[r]),n.x=Math.min(n.x,l[r].x),n.y=Math.min(n.y,l[r].y),i.x=Math.max(i.x,l[r].x),i.y=Math.max(i.y,l[r].y)}const a=hu(t,r),s=new Yu(e,a,8,256);this.footprints.push({vertices:e,indices:a,grid:s,min:n,max:i})}}}lo(Ku,"ClipBucket",{omit:["layers"]});const Xu=ya([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),Ju=ya([{name:"a_pos_end",components:4,type:"Int16"},{name:"a_angular_offset_factor",components:1,type:"Int16"}]),Qu=ya([{name:"a_centroid_pos",components:2,type:"Uint16"}]),$u=ya([{name:"a_join_normal_inside",components:3,type:"Int16"}]),ed=ya([{name:"a_hidden_by_landmark",components:1,type:"Uint8"}]),td=ya([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:rd}=Xu;var nd,id,od,ad,sd,ld,cd,ud={};function dd(){if(id)return nd;id=1;var e=q();function t(e,t,n,i,o){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=o,e.readFields(r,this,t)}function r(e,t,r){1==e?t.id=r.readVarint():2==e?function(e,t){for(var r=e.readVarint()+e.pos;e.pos<r;){var n=t._keys[e.readVarint()],i=t._values[e.readVarint()];t.properties[n]=i}}
2(r,t):3==e?t.type=r.readVarint():4==e&&(t._geometry=r.pos)}function n(e){for(var t,r,n=0,i=0,o=e.length,a=o-1;i<o;a=i++)n+=((r=e[a]).x-(t=e[i]).x)*(t.y+r.y);return n}return nd=t,t.types=["Unknown","Point","LineString","Polygon"],t.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var r,n=t.readVarint()+t.pos,i=1,o=0,a=0,s=0,l=[];t.pos<n;){if(o<=0){var c=t.readVarint();i=7&c,o=c>>3}if(o--,1===i||2===i)a+=t.readSVarint(),s+=t.readSVarint(),1===i&&(r&&l.push(r),r=[]),r.push(new e(a,s));else{if(7!==i)throw new Error("unknown command "+i);r&&r.push(r[0].clone())}}return r&&l.push(r),l},t.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,r=1,n=0,i=0,o=0,a=1/0,s=-1/0,l=1/0,c=-1/0;e.pos<t;){if(n<=0){var u=e.readVarint();r=7&u,n=u>>3}if(n--,1===r||2===r)(i+=e.readSVarint())<a&&(a=i),i>s&&(s=i),(o+=e.readSVarint())<l&&(l=o),o>c&&(c=o);else if(7!==r)throw new Error("unknown command "+r)}return[a,l,s,c]},t.prototype.toGeoJSON=function(e,r,i){var o,a,s=this.extent*Math.pow(2,i),l=this.extent*e,c=this.extent*r,u=this.loadGeometry(),d=t.types[this.type];function h(e){for(var t=0;t<e.length;t++){var r=e[t];e[t]=[360*(r.x+l)/s-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+c)/s)*Math.PI/180))-90]}}switch(this.type){case 1:var p=[];for(o=0;o<u.length;o++)p[o]=u[o][0];h(u=p);break;case 2:for(o=0;o<u.length;o++)h(u[o]);break;case 3:for(u=function(e){var t=e.length;if(t<=1)return[e];for(var r,i,o=[],a=0;a<t;a++){var s=n(e[a]);0!==s&&(void 0===i&&(i=s<0),i===s<0?(r&&o.push(r),r=[e[a]]):r.push(e[a]))}return r&&o.push(r),o}(u),o=0;o<u.length;o++)for(a=0;a<u[o].length;a++)h(u[o][a])}1===u.length?u=u[0]:d="Multi"+d;var f={type:"Feature",geometry:{type:d,coordinates:u},properties:this.properties};return"id"in this&&(f.id=this.id),f},nd}function hd(){if(ad)return od;ad=1;var e=dd();function t(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(r,this,t),this.length=this._features.length}function r(e,t,r){15===e?t.version=r.readVarint():1===e?t.name=r.readString():5===e?t.extent=r.readVarint():2===e?t._features.push(r.pos):3===e?t._keys.push(r.readString()):4===e&&t._values.push(function(e){for(var t=null,r=e.readVarint()+e.pos;e.pos<r;){var n=e.readVarint()>>3;t=1===n?e.readString():2===n?e.readFloat():3===n?e.readDouble():4===n?e.readVarint64():5===n?e.readVarint():6===n?e.readSVarint():7===n?e.readBoolean():null}return t}(r))}return od=t,t.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var r=this._pbf.readVarint()+this._pbf.pos;return new e(this._pbf,r,this.extent,this._keys,this._values)},od}function pd(){return cd||(cd=1,ud.VectorTile=function(){if(ld)return sd;ld=1;var e=hd();function t(t,r,n){if(3===t){var i=new e(n,n.readVarint()+n.pos);i.length&&(r[i.name]=i)}}return sd=function(e,r){this.layers=e.readFields(t,{},r)},sd}(),ud.VectorTileFeature=dd(),ud.VectorTileLayer=hd()),ud}var fd=pd();class md extends H{constructor(e,t,r){super(e,t),this.z=r}}class gd extends md{constructor(e,t,r,n){super(e,t,r),this.w=n}}function _d(e,t,r,n){const i=[],o=0===n?(e,t,r,n,i,o)=>{e.push(new H(o,r+(o-t)/(n-t)*(i-r)))}:(e,t,r,n,i,o)=>{e.push(new H(t+(o-r)/(i-r)*(n-t),o))};for(const a of e){const e=[];for(const i of a){if(i.length<=2)continue;const a=[];for(let e=0;e<i.length-1;e++){const s=i[e].x,l=i[e].y,c=i[e+1].x,u=i[e+1].y,d=0===n?s:l,h=0===n?c:u;d<t?h>t&&o(a,s,l,c,u,t):d>r?h<r&&o(a,s,l,c,u,r):a.push(i[e]),h<t&&d>=t&&o(a,s,l,c,u,t),h>r&&d<=r&&o(a,s,l,c,u,r)}let s=i[i.length-1];const l=0===n?s.x:s.y;l>=t&&l<=r&&a.push(s),a.length&&(s=a[a.length-1],a[0].x===s.x&&a[0].y===s.y||a.push(a[0]),e.push(a))}e.length&&i.push(e)}return i}function yd(e,t,r,n){const i="x"===r?"y":"x",o=(n-e[r])/(t[r]-e[r]);e[i]=e[i]+(t[i]-e[i])*o,e[r]=n,e.hasOwnProperty("z")&&(e.z=It(e.z,t.z,o)),e.hasOwnProperty("w")&&(e.w=It(e.w,t.w,o))}function vd(e,t,r,n){const i=r,o=n;for(const a of["x","y"]){let r=e,n=t;r[a]>=n[a]&&(r=t,n=e),r[a]<i&&n[a]>i&&yd(r,n,a,i),r[a]<o&&n[a]>o&&yd(n,r,a,o)}}const bd=Number.MAX_SAFE_INTEGER;function xd(e,t,r,n){return e.order<t||e.order===bd||!(e.clipMask&r)||function(e,t){return 0!==t.length&&void 0===t.find((t=>t===e))}(n,e.clipScope)}function wd(e,t){return e.x-t.x||e.y-t.y}function Ad(e,t){return 0===wd(e.min,t.min)&&0===wd(e.max,t.max)}function Sd(e,t){return!(e.min.x>t.max.x||e.max.x<t.min.x||e.min.y>t.max.y||e.max.y<t.min.y)}function Ed(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;
vendor: 4,532 bytes, line 2
2r++)if(e[r].sourceId!==t[r].sourceId||!Ad(e[r],t[r])||e[r].order!==t[r].order||e[r].clipMask!==t[r].clipMask||!G(e[r].clipScope,t[r].clipScope))return!1;return!0}function Td(e,t,r){const n=1/Jr,i=1/(1<<r.canonical.z),o=(t.x*n+r.canonical.x)*i+r.wrap,a=(t.y*n+r.canonical.y)*i;return{min:new H((e.x*n+r.canonical.x)*i+r.wrap,(e.y*n+r.canonical.y)*i),max:new H(o,a)}}function Pd(e,t,r){const n=1<<r.canonical.z,i=((t.x-r.wrap)*n-r.canonical.x)*Jr,o=(t.y*n-r.canonical.y)*Jr;return{min:new H(((e.x-r.wrap)*n-r.canonical.x)*Jr,(e.y*n-r.canonical.y)*Jr),max:new H(i,o)}}function Cd(e,t,r,n,i,o,a){const s=e.indices,l=e.vertices,c=[];for(let u=n;u<n+i;u+=3){const n=t[r[u+0]+o],i=t[r[u+1]+o],d=t[r[u+2]+o],h=Math.min(n.x,i.x,d.x),p=Math.max(n.x,i.x,d.x),f=Math.min(n.y,i.y,d.y),m=Math.max(n.y,i.y,d.y);c.length=0,e.grid.query(new H(h,f),new H(p,m),c);for(let e=0;e<c.length;e++){const t=c[e];if(Yl(l[s[3*t+0]],l[s[3*t+1]],l[s[3*t+2]],n,i,d,a))return!0}}return!1}function Id(e,t,r,n){if(!e||!r)return!1;let i=e.vertices;if(!t.canonical.equals(n.canonical)||t.wrap!==n.wrap){if(r.vertices.length<e.vertices.length)return Id(r,n,e,t);const o=t.canonical,a=n.canonical,s=Math.pow(2,a.z-o.z);i=e.vertices.map((e=>new H((e.x+o.x*Jr)*s-a.x*Jr,(e.y+o.y*Jr)*s-a.y*Jr)))}return Cd(r,i,e.indices,0,e.indices.length,0,0)}function Md(e,t,r,n){const i=Math.pow(2,n.z-r.z);return new H((e+r.x*Jr)*i-n.x*Jr,(t+r.y*Jr)*i-n.y*Jr)}function kd(e,t){const r=[];t.grid.queryPoint(e,r);const n=t.indices,i=t.vertices;for(let o=0;o<r.length;o++){const t=r[o];if(ql([i[n[3*t+0]],i[n[3*t+1]],i[n[3*t+2]]],e))return!0}return!1}const Od=[new H(0,0),new H(Jr,0),new H(Jr,Jr),new H(0,Jr)];function Rd(e,t){const r=[];let n=[];if(!t||e.length<2)return[e];if(2===e.length)return Gl(e[0],e[1],Od)?[e]:[];for(let i=0;i<e.length+2;i++){const t=e[i%e.length],o=e[(i+1)%e.length],a=Gl(0===i?e[e.length-1]:e[(i-1)%e.length],t,Od),s=Gl(t,o,Od),l=a||s;l&&n.push(t),l&&s||n.length>0&&(n.length>1&&r.push(n),n=[])}return n.length>1&&r.push(n),r}const Ld=fd.VectorTileFeature.types,Dd=["fill-extrusion-base","fill-extrusion-height","fill-extrusion-color","fill-extrusion-pattern","fill-extrusion-flood-light-wall-radius","fill-extrusion-line-width","fill-extrusion-emissive-strength"],Nd=["fill-extrusion-flood-light-ground-radius"],Fd=Math.pow(2,13),zd=Math.pow(2,15)-1,jd=new H(0,1),Bd=2147483648;function Ud(e,t,r,n,i,o,a,s){e.emplaceBack((t<<1)+a,(r<<1)+o,(Math.floor(n*Fd)<<1)+i,Math.round(s))}function Vd(e,t,r){e.emplaceBack(t.x*Jr,t.y*Jr,r?1:0)}function qd(e,t,r,n,i,o){e.emplaceBack(t.x,t.y,(r.x<<1)+n,(r.y<<1)+i,o)}function Hd(e,t,r){const n=16384;e.emplaceBack(t.x,t.y,t.z,r[0]*n,r[1]*n,r[2]*n)}class Gd{constructor(){this.vertexOffset=0,this.vertexCount=0,this.indexOffset=0,this.indexCount=0}}class Wd{constructor(){this.centroidXY=new H(0,0),this.vertexArrayOffset=0,this.vertexCount=0,this.groundVertexArrayOffset=0,this.groundVertexCount=0,this.flags=0,this.footprintSegIdx=-1,this.footprintSegLen=0,this.polygonSegIdx=-1,this.polygonSegLen=0,this.min=new H(Number.MAX_VALUE,Number.MAX_VALUE),this.max=new H(-Number.MAX_VALUE,-Number.MAX_VALUE),this.height=0}span(){return new H(this.max.x-this.min.x,this.max.y-this.min.y)}}class Yd{constructor(){this.acc=new H(0,0),this.accCount=0,this.centroidDataIndex=0}startRing(e,t){e.min.x===Number.MAX_VALUE&&(e.min.x=e.max.x=t.x,e.min.y=e.max.y=t.y)}appendEdge(e,t,r){this.accCount++,this.acc._add(t);let n=!!this.borders;t.x<e.min.x?(e.min.x=t.x,n=!0):t.x>e.max.x&&(e.max.x=t.x,n=!0),t.y<e.min.y?(e.min.y=t.y,n=!0):t.y>e.max.y&&(e.max.y=t.y,n=!0),((0===t.x||t.x===Jr)&&t.x===r.x)!=((0===t.y||t.y===Jr)&&t.y===r.y)&&this.processBorderOverlap(t,r),n&&this.checkBorderIntersection(t,r)}checkBorderIntersection(e,t){t.x<0!=e.x<0&&this.addBorderIntersection(0,It(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>Jr!=e.x>Jr&&this.addBorderIntersection(1,It(t.y,e.y,(Jr-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,It(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>Jr!=e.y>Jr&&this.addBorderIntersection(3,It(t.x,e.x,(Jr-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const r=this.borders[e];t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const r=0===e.x?0:1;this.addBorderIntersection(r,t.y),this.addBorderIntersection(r,e.y)}else{const r=0===e.y?2:3;this.addBorderIntersection(r,t.x),this.addBorderIntersection(r,e.x)}}
vendor: 8,567 bytes, line 2
2centroid(){return 0===this.accCount?new H(0,0):new H(Math.floor(Math.max(0,this.acc.x)/this.accCount),Math.floor(Math.max(0,this.acc.y)/this.accCount))}intersectsCount(){return this.borders?this.borders.reduce(((e,t)=>e+ +(t[0]!==Number.MAX_VALUE)),0):0}}function Zd(e,t){const r=e.add(t)._unit(),n=ee(e.x*r.x+e.y*r.y,-1,1);var i,o,a;return a=Math.acos(n),Math.min(4,Math.max(-4,Math.tan(a)))/4*zd*((i=e).x*(o=t).y-i.y*o.x<0?-1:1)}const Kd=[e=>e.x<0,e=>e.x>Jr,e=>e.y<0,e=>e.y>Jr];function Xd(e,t,r,n){const i=[4];if(0===n)return i;r._mult(n);const o=e.sub(r),a=t.sub(r),s=[e,t,o,a];for(let l=0;l<4;l++)for(const e of s)if(Kd[l](e)){i.push(l);break}return i}class Jd{constructor(e){this.vertexArray=new Aa,this.indexArray=new za,this.programConfigurations=new Us(e.layers,{zoom:e.zoom,lut:e.lut},(e=>Nd.includes(e))),this._segments=new fs,this.hiddenByLandmarkVertexArray=new Qa,this._segmentToGroundQuads={},this._segmentToGroundQuads[0]=[],this._segmentToRegionTriCounts={},this._segmentToRegionTriCounts[0]=[0,0,0,0,0],this.regionSegments={},this.regionSegments[4]=new fs}getDefaultSegment(){return this.regionSegments[4]}hasData(){return 0!==this.vertexArray.length}addData(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=e.length;if(i>2){let o=Math.max(0,this._segments.get().length-1);const a=this._segments._prepareSegment(4*i,this.vertexArray.length,2*this._segmentToGroundQuads[o].length);let s;o!==this._segments.get().length-1&&(o++,this._segmentToGroundQuads[o]=[],this._segmentToRegionTriCounts[o]=[0,0,0,0,0]);{const t=e[0],r=e[1];s=Zd(t.sub(e[i-1])._perp()._unit(),r.sub(t)._perp()._unit())}for(let l=0;l<i;l++){const c=l===i-1?0:l+1,u=e[l],d=e[c],h=e[c===i-1?0:c+1],p=d.sub(u)._perp()._unit(),f=Zd(p,h.sub(d)._perp()._unit()),m=s,g=f;if(rh(u,d,t)||n&&nh(u,t)&&nh(d,t)){s=f;continue}const _=a.vertexLength;qd(this.vertexArray,u,d,1,1,m),qd(this.vertexArray,u,d,1,0,m),qd(this.vertexArray,u,d,0,1,g),qd(this.vertexArray,u,d,0,0,g),a.vertexLength+=4;const y=Xd(u,d,p,r);for(const e of y)this._segmentToGroundQuads[o].push({id:_,region:e}),this._segmentToRegionTriCounts[o][e]+=2,a.primitiveLength+=2;s=f}}}prepareBorderSegments(){if(!this.hasData())return;const e=this._segments.get(),t=e.length;for(let r=0;r<t;r++)this._segmentToGroundQuads[r].sort(((e,t)=>e.region-t.region));for(let r=0;r<t;r++){const t=this._segmentToGroundQuads[r],n=e[r],i=this._segmentToRegionTriCounts[r];i.reduce(((e,t)=>e+t),0);let o=0;for(let e=0;e<=4;e++){const t=i[e];if(0!==t){let r=this.regionSegments[e];r||(r=this.regionSegments[e]=new fs);const i={vertexOffset:n.vertexOffset,primitiveOffset:n.primitiveOffset+o,vertexLength:n.vertexLength,primitiveLength:t};r.get().push(i)}o+=t}for(let e=0;e<t.length;e++){const r=t[e].id;this.indexArray.emplaceBack(r,r+1,r+3),this.indexArray.emplaceBack(r,r+3,r+2)}}this._segmentToGroundQuads=null,this._segmentToRegionTriCounts=null,this._segments.destroy(),this._segments=null}addPaintPropertiesData(e,t,r,n,i,o){this.hasData()&&this.programConfigurations.populatePaintArrays(this.vertexArray.length,e,t,r,n,i,o)}upload(e){this.hasData()&&(this.vertexBuffer=e.createVertexBuffer(this.vertexArray,Ju.members),this.indexBuffer=e.createIndexBuffer(this.indexArray))}uploadPaintProperties(e){this.hasData()&&this.programConfigurations.upload(e)}update(e,t,r,n,i,o,a){this.hasData()&&this.programConfigurations.updatePaintArrays(e,t,r,n,i,o,a)}updateHiddenByLandmark(e){if(!this.hasData())return;const t=e.groundVertexCount+e.groundVertexArrayOffset;if(0===e.groundVertexCount)return;const r=e.flags&Bd?1:0;for(let n=e.groundVertexArrayOffset;n<t;++n)this.hiddenByLandmarkVertexArray.emplace(n,r);this._needsHiddenByLandmarkUpdate=!0}uploadHiddenByLandmark(e){this.hasData()&&this._needsHiddenByLandmarkUpdate&&(!this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexArray.length>0?this.hiddenByLandmarkVertexBuffer=e.createVertexBuffer(this.hiddenByLandmarkVertexArray,ed.members,!0):this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray),this._needsHiddenByLandmarkUpdate=!1)}destroy(){if(this.vertexBuffer){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.destroy(),this._segments&&this._segments.destroy(),this.programConfigurations.destroy();for(let e=0;e<=4;e++){const t=this.regionSegments[e];t&&t.destroy()}}}}class Qd{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.activeReplacements=[],this.replacementUpdateTime=0,this.centroidData=[],this.footprintIndices=new za,this.footprintVertices=new ba,this.footprintSegments=[],this.layoutVertexArray=new wa,this.centroidVertexArray=new cs,this.wallVertexArray=new ds,this.indexArray=new za,this.programConfigurations=new Us(e.layers,{zoom:e.zoom,lut:e.lut},(e=>Dd.includes(e))),this.segments=new fs,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.groundEffect=new Jd(e),this.maxHeight=0,this.partLookup={},this.triangleSubSegments=[],this.polygonSegments=[]}updateFootprints(e,t){}populate(e,t,r,n){this.features=[],this.hasPattern=Bu("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borderFeatureIndices=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.selfDEMTileTimestamp=Number.MAX_VALUE,this.borderDEMTileTimestamp=[Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE],this.tileToMeter=bl(r),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter,this.wallMode=0!==this.layers[0].paint.get("fill-extrusion-line-width").constantOr(1);for(const{feature:i,id:o,index:a,sourceLayerIndex:s}of e){const e=this.layers[0]._featureFilter.needGeometry,l=Ml(i,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),l,r))continue;const c={id:o,sourceLayerIndex:s,index:a,geometry:e?l.geometry:Il(i,r,n),properties:i.properties,type:i.type,patterns:{}},u=this.layoutVertexArray.length,d="Polygon"===Ld[c.type];if(this.hasPattern)this.features.push(Uu("fill-extrusion",this.layers,c,this.zoom,t));else if(this.wallMode)for(const i of c.geometry)for(const e of Rd(i,d))this.addFeature(c,[e],a,r,{},t.availableImages,n,t.brightness);else this.addFeature(c,c.geometry,a,r,{},t.availableImages,n,t.brightness);t.featureIndex.insert(i,c.geometry,a,s,this.index,u)}this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles(),this.groundEffect.prepareBorderSegments(),this.polygonSegments.length=0}addFeatures(e,t,r,n,i,o){for(const a of this.features){const e="Polygon"===Ld[a.type],{geometry:s}=a;if(this.wallMode)for(const l of s)for(const s of Rd(l,e))this.addFeature(a,[s],a.index,t,r,n,i,o);else this.addFeature(a,s,a.index,t,r,n,i,o)}this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles()}update(e,t,r,n,i,o,a){this.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a),this.groundEffect.update(e,t,i,r,n,o,a)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,rd),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.wallVertexBuffer=e.createVertexBuffer(this.wallVertexArray,$u.members),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,td.members,!0)),this.groundEffect.upload(e)),this.groundEffect.uploadPaintProperties(e),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){this.groundEffect.uploadHiddenByLandmark(e),this.needsCentroidUpdate&&(!this.centroidVertexBuffer&&this.centroidVertexArray.length>0?this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Qu.members,!0):this.centroidVertexBuffer&&this.centroidVertexBuffer.updateData(this.centroidVertexArray),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.groundEffect.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,n,i,o,a,s){const l=this.layers[0].paint.get("fill-extrusion-flood-light-ground-radius").evaluate(e,{}
vendor: 4,289 bytes, line 2
2)/this.tileToMeter,c=[new H(0,0),new H(Jr,Jr)],u=a.projection,d="globe"===u.name,h=this.wallMode||"Polygon"===Ld[e.type],p=new Yd;p.centroidDataIndex=this.centroidData.length;const f=new Wd,m=this.layers[0].paint.get("fill-extrusion-base").evaluate(e,{},n)<=0,g=this.layers[0].paint.get("fill-extrusion-height").evaluate(e,{},n);let _;if(f.height=g,f.vertexArrayOffset=this.layoutVertexArray.length,f.groundVertexArrayOffset=this.groundEffect.vertexArray.length,d&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Ia),this.wallMode){if(d)return void fe("Non zero fill-extrusion-line-width is not yet supported on globe.");if(1!==t.length)return;_=function(e){const t=e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y,r=function(e){let t=0;const r=e.length;for(let n=0;n<r;n++)t+=(e[(n+1)%r].x-e[n].x)*(e[(n+1)%r].y+e[n].y);return t>=0}(e);r||(e=e.reverse());const n={geometry:[],joinNormals:[],indices:[]},i=[],o=[],a=[];let s=e.length;for(;s>=2&&e[s-1].equals(e[s-2]);)s--;if(s<(t?3:2))return n;let l,c,u,d,h,p=0;for(;p<s-1&&e[p].equals(e[p+1]);)p++;t&&(l=e[s-2],h=e[p].sub(l)._unit()._perp());for(let m=p;m<s;m++){if(u=m===s-1?t?e[p+1]:void 0:e[m+1],u&&e[m].equals(u))continue;h&&(d=h),l&&(c=l),l=e[m],h=u?u.sub(l)._unit()._perp():d,d=d||h;let r=d.add(h);0===r.x&&0===r.y||r._unit();const n=r.x*h.x+r.y*h.y,f=0!==n?1/n:1/0,g=d.x*h.y-d.y*h.x>0;let _="miter";const y=2;"miter"===_&&f>y&&(_="bevel"),"bevel"===_&&(f>100&&(_="flipbevel"),f<y&&(_="miter"));const v=(e,t,r,n)=>{const s=new H(e.x,e.y),l=new H(e.x,e.y);s.x+=t.x*n,s.y+=t.y*n,l.x-=t.x*Math.max(r,1),l.y-=t.y*Math.max(r,1),a.push(t),i.push(s),o.push(l)};if("miter"===_)r._mult(f),v(l,r,0,0);else if("flipbevel"===_)r=h.mult(-1),v(l,r,0,0),v(l,r.mult(-1),0,0);else{const e=-Math.sqrt(f*f-1),t=g?e:0,r=g?0:e;c&&v(l,d,t,r),u&&v(l,h,t,r)}}n.geometry=[...i,...o.reverse(),i[0]],n.joinNormals=[...a,...a.reverse(),a[a.length-1]];const f=n.geometry.length-1;for(let m=0;m<f/2;m++)if(m+1<f/2){let e=m,t=m+1,r=f-1-m,i=f-2-m;e=0===e?f-1:e-1,t=0===t?f-1:t-1,r=0===r?f-1:r-1,i=0===i?f-1:i-1,n.indices.push(r),n.indices.push(t),n.indices.push(e),n.indices.push(r),n.indices.push(i),n.indices.push(t)}return n}(t[0]),t=[_.geometry]}const y=(e,t)=>e<(t.length-1)/2||e===t.length-1,v=this.wallMode?[t]:Fu(t,500);for(let E=v.length-1;E>=0;E--){const e=v[E];(0===e.length||(b=e[0]).every((e=>e.x<=0))||b.every((e=>e.x>=Jr))||b.every((e=>e.y<=0))||b.every((e=>e.y>=Jr)))&&v.splice(E,1)}var b;let x;if(d)x=sh(v,c,n);else{x=[];for(const e of v)x.push({polygon:e,bounds:c})}const w=h?this.edgeRadius:0,A=w>0&&this.zoom<17,S=(e,t)=>{if(0===e.length)return!1;const r=e[e.length-1];return t.x===r.x&&t.y===r.y};for(const{polygon:E,bounds:T}of x){let e=0,t=0;for(const n of E)h&&!n[0].equals(n[n.length-1])&&n.push(n[0]),t+=h?n.length-1:n.length;const r=this.segments.prepareSegment((h?5:4)*t,this.layoutVertexArray,this.indexArray);f.footprintSegIdx<0&&(f.footprintSegIdx=this.footprintSegments.length),f.polygonSegIdx<0&&(f.polygonSegIdx=this.polygonSegments.length);const i={triangleArrayOffset:this.indexArray.length,triangleCount:0,triangleSegIdx:this.segments.segments.length-1},o=new Gd;if(o.vertexOffset=this.footprintVertices.length,o.indexOffset=3*this.footprintIndices.length,o.ringIndices=[],h){const t=[],i=[];e=r.vertexLength;for(let e=0;e<E.length;e++){const a=E[e];a.length&&0!==e&&i.push(t.length/2);const s=[];let c,h;c=a[1].sub(a[0])._perp()._unit(),o.ringIndices.push(a.length-1);for(let e=1;e<a.length;e++){const i=a[e],o=a[e===a.length-1?1:e+1],l=i.clone();if(w){h=o.sub(i)._perp()._unit();const e=c.add(h)._unit(),t=w*Math.min(4,1/(c.x*e.x+c.y*e.y));l.x+=t*e.x,l.y+=t*e.y,l.x=Math.round(l.x),l.y=Math.round(l.y),c=h}if(!m||0!==w&&!A||S(s,l)||s.push(l),Ud(this.layoutVertexArray,l.x,l.y,0,0,1,1,0),this.wallMode){const t=y(e,a);Vd(this.wallVertexArray,_.joinNormals[e],!t)}r.vertexLength++,this.footprintVertices.emplaceBack(i.x,i.y),t.push(i.x,i.y),d&&Hd(this.layoutVertexExtArray,u.projectTilePoint(l.x,l.y,n),u.upVector(n,l.x,l.y))}m&&(0===w||A)&&(0!==s.length&&S(s,s[0])&&s.pop(),this.groundEffect.addData(s,T,l))}const a=this.wallMode?_.indices:hu(t,i);for(let n=0;n<a.length;n+=3)this.footprintIndices.emplaceBack(o.vertexOffset+a[n+0],o.vertexOffset+a[n+1],o.vertexOffset+a[n+2]),this.indexArray.emplaceBack(e+a[n],e
vendor: 9,714 bytes, line 2
2+a[n+2],e+a[n+1]),r.primitiveLength++;o.indexCount+=a.length,o.vertexCount+=this.footprintVertices.length-o.vertexOffset}for(let a=0;a<E.length;a++){const t=E[a];p.startRing(f,t[0]);let i=t.length>4&&ih(t[t.length-2],t[0],t[1]),o=w?eh(t[t.length-2],t[0],t[1],w):0;const s=[];let c,g,v;g=t[1].sub(t[0])._perp()._unit();let b=!0;for(let a=1,l=0;a<t.length;a++){let h=t[a-1],x=t[a];const A=t[a===t.length-1?1:a+1];if(p.appendEdge(f,x,h),rh(x,h,T)){w&&(g=A.sub(x)._perp()._unit(),b=!b);continue}const E=x.sub(h)._perp(),P=E.x/(Math.abs(E.x)+Math.abs(E.y)),C=E.y>0?1:0,I=h.dist(x);if(l+I>32768&&(l=0),w){v=A.sub(x)._perp()._unit();let e=th(h,x,A,$d(g,v),w);isNaN(e)&&(e=0);const t=x.sub(h)._unit();h=h.add(t.mult(o))._round(),x=x.add(t.mult(-e))._round(),o=e,g=v,m&&this.zoom>=17&&(S(s,h)||s.push(h),S(s,x)||s.push(x))}const M=r.vertexLength,k=t.length>4&&ih(h,x,A);let O=oh(l,i,b);if(Ud(this.layoutVertexArray,h.x,h.y,P,C,0,0,O),Ud(this.layoutVertexArray,h.x,h.y,P,C,0,1,O),this.wallMode){const e=y(a-1,t),r=_.joinNormals[a-1];Vd(this.wallVertexArray,r,e),Vd(this.wallVertexArray,r,e)}if(l+=I,O=oh(l,k,!b),i=k,Ud(this.layoutVertexArray,x.x,x.y,P,C,0,0,O),Ud(this.layoutVertexArray,x.x,x.y,P,C,0,1,O),this.wallMode){const e=y(a,t),r=_.joinNormals[a];Vd(this.wallVertexArray,r,e),Vd(this.wallVertexArray,r,e)}if(r.vertexLength+=4,this.indexArray.emplaceBack(M+0,M+1,M+2),this.indexArray.emplaceBack(M+1,M+3,M+2),r.primitiveLength+=2,w){const n=e+(1===a?t.length-2:a-2),i=1===a?e:n+1;if(this.indexArray.emplaceBack(M+1,n,M+3),this.indexArray.emplaceBack(n,i,M+3),r.primitiveLength+=2,void 0===c&&(c=M),!rh(A,t[a],T)){const e=a===t.length-1?c:r.vertexLength;this.indexArray.emplaceBack(M+2,M+3,e),this.indexArray.emplaceBack(M+3,e+1,e),this.indexArray.emplaceBack(M+3,i,e+1),r.primitiveLength+=3}b=!b}if(d){const e=this.layoutVertexExtArray,t=u.projectTilePoint(h.x,h.y,n),r=u.projectTilePoint(x.x,x.y,n),i=u.upVector(n,h.x,h.y),o=u.upVector(n,x.x,x.y);Hd(e,t,i),Hd(e,t,i),Hd(e,r,o),Hd(e,r,o)}}h&&(e+=t.length-1),m&&w&&this.zoom>=17&&(0!==s.length&&S(s,s[0])&&s.pop(),this.groundEffect.addData(s,T,l,w>0))}this.footprintSegments.push(o),i.triangleCount=this.indexArray.length-i.triangleArrayOffset,this.polygonSegments.push(i),++f.footprintSegLen,++f.polygonSegLen}if(f.vertexCount=this.layoutVertexArray.length-f.vertexArrayOffset,f.groundVertexCount=this.groundEffect.vertexArray.length-f.groundVertexArrayOffset,0!==f.vertexCount){if(f.centroidXY=p.borders?jd:this.encodeCentroid(p,f),this.centroidData.push(f),p.borders){this.featuresOnBorder.push(p);const e=this.featuresOnBorder.length-1;for(let t=0;t<p.borders.length;t++)p.borders[t][0]!==Number.MAX_VALUE&&this.borderFeatureIndices[t].push(e)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,i,o,n,s),this.groundEffect.addPaintPropertiesData(e,r,i,o,n,s),this.maxHeight=Math.max(this.maxHeight,g)}}sortBorders(){for(let e=0;e<this.borderFeatureIndices.length;e++)this.borderFeatureIndices[e].sort(((t,r)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[r].borders[e][0]))}splitToSubtiles(){const e=[];for(let a=0;a<this.centroidData.length;a++){const t=this.centroidData[a],r=+(t.min.y+t.max.y>Jr),n=2*r+(+(t.min.x+t.max.x>Jr)^r);for(let i=0;i<t.polygonSegLen;i++){const r=t.polygonSegIdx+i;e.push({centroidIdx:a,subtile:n,polygonSegmentIdx:r,triangleSegmentIdx:this.polygonSegments[r].triangleSegIdx})}}const t=new za;e.sort(((e,t)=>e.triangleSegmentIdx===t.triangleSegmentIdx?e.subtile-t.subtile:e.triangleSegmentIdx-t.triangleSegmentIdx));let r=0,n=0,i=0;for(const a of e){if(a.triangleSegmentIdx!==r)break;i++}const o=e.length;for(;n!==e.length;){r=e[n].triangleSegmentIdx;let a=0,s=n,l=n;for(let t=s;t<i&&e[t].subtile===a;t++)l++;for(;s!==i;){const n=e[s];a=n.subtile;const o=this.centroidData[n.centroidIdx].min.clone(),c=this.centroidData[n.centroidIdx].max.clone(),u={vertexOffset:this.segments.segments[r].vertexOffset,primitiveOffset:t.length,vertexLength:this.segments.segments[r].vertexLength,primitiveLength:0,sortKey:void 0,vaos:{}};for(let r=s;r<l;r++){const n=e[r],i=this.polygonSegments[n.polygonSegmentIdx],a=this.centroidData[n.centroidIdx].min,s=this.centroidData[n.centroidIdx].max,l=this.indexArray.uint16;for(let e=i.triangleArrayOffset;e<i.triangleArrayOffset+i.triangleCount;e++)t.emplaceBack(l[3*e],l[3*e+1],l[3*e+2]);u.primitiveLength+=i.triangleCount,o.x=Math.min(o.x,a.x),o.y=Math.min(o.y,a.y),c.x=Math.max(c.x,s.x),c.y=Math.max(c.y,s.y)}u.primitiveLength>0&&this.triangleSubSegments.push({segment:u,min:o,max:c}),s=l;for(let t=s;t<i&&e[t].subtile===e[s].subtile;t++)l++}n=i;for(let t=n;t<o&&e[t].triangleSegmentIdx===e[n].triangleSegmentIdx;t++)i++}t._trim(),this.indexArray=t}getVisibleSegments(e,t,r){const n=new fs;if(this.wallMode){for(const e of this.triangleSubSegments)n.segments.push(e.segment);return n}let i=0,o=0;const a=1<<e.canonical.z;if(t){const r=t.getMinMaxForTile(e);r&&(i=r.min,o=r.max)}o+=this.maxHeight;const s=e.toUnwrapped();let l;const c=[s.canonical.x/a+s.wrap,s.canonical.y/a],u=[(s.canonical.x+1)/a+s.wrap,(s.canonical.y+1)/a],d=(e,t,r)=>[e[0]*(1-r[0])+t[0]*r[0],e[1]*(1-r[1])+t[1]*r[1]],h=[],p=[];for(const f of this.triangleSubSegments){h[0]=f.min.x/Jr,h[1]=f.min.y/Jr,p[0]=f.max.x/Jr,p[1]=f.max.y/Jr;const e=d(c,u,h),t=d(c,u,p);if(0===new vc([e[0],e[1],i],[t[0],t[1],o]).intersectsPrecise(r)){l&&(n.segments.push(l),l=void 0);continue}const a=f.segment;l&&l.vertexOffset!==a.vertexOffset&&(n.segments.push(l),l=void 0),l?(l.vertexLength+=a.vertexLength,l.primitiveLength+=a.primitiveLength):l={vertexOffset:a.vertexOffset,primitiveLength:a.primitiveLength,vertexLength:a.vertexLength,primitiveOffset:a.primitiveOffset,sortKey:void 0,vaos:{}}}return l&&n.segments.push(l),n}encodeCentroid(e,t){const r=e.centroid(),n=t.span(),i=Math.min(7,Math.round(n.x*this.tileToMeter/10)),o=Math.min(7,Math.round(n.y*this.tileToMeter/10));return new H(ee(r.x,1,Jr-1)<<3|i,ee(r.y,1,Jr-1)<<3|o)}encodeBorderCentroid(e){if(!e.borders)return new H(0,0);const t=e.borders,r=Number.MAX_VALUE;if(t[0][0]!==r||t[1][0]!==r){const e=t[0][0]!==r?0:1;return new H(6|(t[0][0]!==r?0:65528),(t[e][0]+t[e][1])/2<<3|6)}{const e=t[2][0]!==r?2:3;return new H((t[e][0]+t[e][1])/2<<3|6,6|(t[2][0]!==r?0:65528))}}showCentroid(e){const t=this.centroidData[e.centroidDataIndex];t.flags&=Bd,t.centroidXY.x=0,t.centroidXY.y=0,this.writeCentroidToBuffer(t)}writeCentroidToBuffer(e){this.groundEffect.updateHiddenByLandmark(e);const t=e.vertexArrayOffset,r=e.vertexCount+e.vertexArrayOffset,n=e.flags&Bd?jd:e.centroidXY,i=this.centroidVertexArray.geta_centroid_pos0(t);if(this.centroidVertexArray.geta_centroid_pos1(t)!==n.y||i!==n.x){for(let e=t;e<r;++e)this.centroidVertexArray.emplace(e,n.x,n.y);this.needsCentroidUpdate=!0}}createCentroidsBuffer(){this.centroidVertexArray.resize(this.layoutVertexArray.length),this.groundEffect.hiddenByLandmarkVertexArray.resize(this.groundEffect.vertexArray.length);for(const e of this.centroidData)this.writeCentroidToBuffer(e)}updateReplacement(e,t,r){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const n=t.getReplacementRegionsForTile(e.toUnwrapped());if(Ed(this.activeReplacements,n))return;if(this.activeReplacements=n,0===this.centroidVertexArray.length)this.createCentroidsBuffer();else for(const o of this.centroidData)o.flags&=2147483647;const i=[];for(const o of this.activeReplacements){if(o.order<r)continue;const t=Math.max(1,Math.pow(2,o.footprintTileId.canonical.z-e.canonical.z));for(const r of this.centroidData)if(!(r.flags&Bd||o.min.x>r.max.x||r.min.x>o.max.x||o.min.y>r.max.y||r.min.y>o.max.y))for(let n=0;n<r.footprintSegLen;n++){const a=this.footprintSegments[r.footprintSegIdx+n];if(i.length=0,lh(this.footprintVertices,a.vertexOffset,a.vertexCount,o.footprintTileId.canonical,e.canonical,i),Cd(o.footprint,i,this.footprintIndices.uint16,a.indexOffset,a.indexCount,-a.vertexOffset,-t)){r.flags|=Bd;break}}}for(const o of this.centroidData)this.writeCentroidToBuffer(o);this.borderDoneWithNeighborZ=[-1,-1,-1,-1]}footprintContainsPoint(e,t,r){let n=!1;for(let i=0;i<r.footprintSegLen;i++){const o=this.footprintSegments[r.footprintSegIdx+i];let a=0;for(const r of o.ringIndices){for(let i=a,s=r+a-1;i<r+a;s=i++){const r=this.footprintVertices.int16[2*(i+o.vertexOffset)+0],a=this.footprintVertices.int16[2*(i+o.vertexOffset)+1],l=this.footprintVertices.int16[2*(s+o.vertexOffset)+1];a>t!=l>t&&e<(this.footprintVertices.int16[2*(s+o.vertexOffset)+0]-r)*(t-a)/(l-a)+r&&(n=!n)}a=r}}return n}getHeightAtTileCoord(e,t){let r=Number.NEGATIVE_INFINITY,n=!0;const i=4*(e+Jr)*Jr+(t+Jr);if(this.partLookup.hasOwnProperty(i)){const e=this.partLookup[i];return e?{height:e.height,hidden:!!(e.flags&Bd)}:void 0}for(const o of this.centroidData)e>o.max.x||o.min.x>e||t>o.max.y||o.min.y>t||this.footprintContainsPoint(e,t,o)&&o&&o.height>r&&(r=o.height,this.partLookup[i]=o,n=!!(o.flags&Bd));if(r!==Number.NEGATIVE_INFINITY)return{height:r,hidden:n};this.partLookup[i]=void 0}}function $d(e,t){const r=e.add(t)._unit();return e.x*r.x+e.y*r.y}function eh(e,t,r,n){const i=t.sub(e)._perp()._unit(),o=r.sub(t)._perp()._unit();return th(e,t,r,$d(i,o),n)}function th(e,t,r,n,i){const o=Math.sqrt(1-n*n);return Math.min(e.dist(t)/3,t.dist(r)/3,i*o/n)}function rh(e,t,r){return e.x<r[0].x&&t.x<r[0].x||e.x>r[1].x&&t.x>r[1].x||e.y<r[0].y&&t.y<r[0].y||e.y>r[1].y&&t.y>r[1].y}function nh(e,t){return e.x<t[0].x||e.x>t[1].x||e.y<t[0].y||e.y>t[1].y}function ih(e,t,r){if(e.x<0||e.x>=Jr||t.x<0||t.x>=Jr||r.x<0||r.x>=Jr)return!1;const n=r.sub(t),i=n.perp(),o=e.sub(t);return(n.x*o.x+n.y*o.y)/Math.sqrt((n.x*n.x+n.y*n.y)*(o.x*o.x+o.y*o.y))>-.866&&i.x*o.x+i.y*o.y<0}function oh(e,t,r){const n=t?2|e:-3&e;return r?1|n:-2&n}
vendor: 4,222 bytes, line 2
2function ah(){const e=Math.PI/32,t=Math.tan(e),r=nl;return r*Math.sqrt(1+2*t*t)-r}function sh(e,t,r){const n=1<<r.z,i=pl(r.x/n),o=pl((r.x+1)/n),a=fl(r.y/n),s=fl((r.y+1)/n);return function(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;const a=[];if(!e.length||!r||!n)return a;const s=(e,t)=>{for(const r of e)a.push({polygon:r,bounds:t})},l=Math.ceil(Math.log2(r)),c=Math.ceil(Math.log2(n)),u=l-c,d=[];for(let f=0;f<Math.abs(u);f++)d.push(u>0?0:1);for(let f=0;f<Math.min(l,c);f++)d.push(0),d.push(1);let h=e;if(h=_d(h,t[0].y-i,t[1].y+i,1),h=_d(h,t[0].x-i,t[1].x+i,0),!h.length)return a;const p=[];for(d.length?p.push({polygons:h,bounds:t,depth:0}):s(h,t);p.length;){const e=p.pop(),t=e.depth,r=d[t],n=e.bounds[0],a=e.bounds[1],l=0===r?n.x:n.y,c=0===r?a.x:a.y,u=o?o(r,l,c):.5*(l+c),h=_d(e.polygons,l-i,u+i,r),f=_d(e.polygons,u-i,c+i,r);if(h.length){const e=[n,new H(0===r?u:a.x,1===r?u:a.y)];d.length>t+1?p.push({polygons:h,bounds:e,depth:t+1}):s(h,e)}if(f.length){const e=[new H(0===r?u:n.x,1===r?u:n.y),a];d.length>t+1?p.push({polygons:f,bounds:e,depth:t+1}):s(f,e)}}return a}(e,t,Math.ceil((o-i)/11.25),Math.ceil((a-s)/11.25),1,((e,t,i)=>{if(0===e)return.5*(t+i);{const e=fl((r.y+t/Jr)/n);return(dl(.5*(fl((r.y+i/Jr)/n)+e))*n-r.y)*Jr}}))}function lh(e,t,r,n,i,o){const a=Math.pow(2,n.z-i.z);for(let s=0;s<r;s++){let r=e.int16[2*(s+t)+0],l=e.int16[2*(s+t)+1];r=(r+i.x*Jr)*a-n.x*Jr,l=(l+i.y*Jr)*a-n.y*Jr,o.push(new H(r,l))}}let ch,uh;function dh(e,t){return e.x*t.x+e.y*t.y}function hh(e,t){if(1===e.length){let r=0;const n=t[r++];let i;for(;!i||n.equals(i);)if(i=t[r++],!i)return 1/0;for(;r<t.length;r++){const o=t[r],a=e[0],s=i.sub(n),l=o.sub(n),c=a.sub(n),u=dh(s,s),d=dh(s,l),h=dh(l,l),p=dh(c,s),f=dh(c,l),m=u*h-d*d,g=(h*p-d*f)/m,_=(u*f-d*p)/m,y=n.z*(1-g-_)+i.z*g+o.z*_;if(isFinite(y))return y}return 1/0}{let e=1/0;for(const r of t)e=Math.min(e,r.z);return e}}function ph(e,t,r,n,i,o,a,s){const l=a*i.getElevationAt(e,t,!0,!0),c=0!==o[0],u=c?0===o[1]?a*(o[0]/7-450):a*function(e,t,r){const n=Math.floor(t[0]/8),i=Math.floor(t[1]/8),o=10*(t[0]-8*n),a=10*(t[1]-8*i),s=e.getElevationAt(n,i,!0,!0),l=e.getMeterToDEM(r),c=Math.floor(.5*(o*l-1)),u=Math.floor(.5*(a*l-1)),d=e.tileCoordToPixel(n,i),h=2*c+1,p=2*u+1,f=function(e,t,r,n,i){return[e.getElevationAtPixel(t,r,!0),e.getElevationAtPixel(t+i,r,!0),e.getElevationAtPixel(t,r+i,!0),e.getElevationAtPixel(t+n,r+i,!0)]}(e,d.x-c,d.y-u,h,p),m=Math.abs(f[0]-f[1]),g=Math.abs(f[2]-f[3]),_=Math.abs(f[0]-f[2])+Math.abs(f[1]-f[3]),y=Math.min(.25,.5*l*(m+g)/h),v=Math.min(.25,.5*l*_/p);return s+Math.max(y*o,v*a)}(i,o,s):l;return{base:l+(0===r?-1:r),top:c?Math.max(u+n,l+r+2):l+n}}lo(Qd,"FillExtrusionBucket",{omit:["layers","features"]}),lo(Wd,"PartData"),lo(Gd,"FootprintSegment"),lo(Yd,"BorderCentroidData"),lo(Jd,"GroundEffect");const fh=ya([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),mh=ya([{name:"a_z_offset_width",components:2,type:"Float32"}],4),{members:gh}=fh,_h=ya([{name:"a_packed",components:4,type:"Float32"}]),{members:yh}=_h,vh=ya([{name:"a_pattern_data",components:3,type:"Float32"}]),{members:bh}=vh;class xh{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new au({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const r=this.getKey(e,t);return this.positions[r]}trim(){const e=this.width,t=this.height=se(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,r){const n=[];let i=e.length%2==1?-e[e.length-1]*r:0,o=e[0]*r,a=!0;n.push({left:i,right:o,isDash:a,zeroLength:0===e[0]});let s=e[0];for(let l=1;l<e.length;l++){a=!a;const t=e[l];i=s*r,s+=t,o=s*r,n.push({left:i,right:o,isDash:a,zeroLength:0===t})}return n}addRoundDash(e,t,r){const n=t/2;for(let i=-r;i<=r;i++){const t=this.width*(this.nextRow+r+i);let o=0,a=e[o];for(let s=0;s<this.width;s++){s/a.right>1&&(a=e[++o]);const l=Math.abs(s-a.left),c=Math.abs(s-a.right),u=Math.min(l,c);let d;const h=i/r*(n+1);if(a.isDash){const e=n-Math.abs(h);d=Math.sqrt(u*u+e*e)}else d=n-Math.sqrt(u*u+h*h);this.image.data[t+s]=Math.max(0,Math.min(255,d+128))}}}
2addRegularDash(e,t){for(let s=e.length-1;s>=0;--s){const t=e[s],r=e[s+1];t.zeroLength?e.splice(s,1):r&&r.isDash===t.isDash&&(r.left=t.left,e.splice(s,1))}const r=e[0],n=e[e.length-1];r.isDash===n.isDash&&(r.left=n.left-this.width,n.right=r.right+this.width);const i=this.width*this.nextRow;let o=0,a=e[o];for(let s=0;s<this.width;s++){s/a.right>1&&(a=e[++o]);const r=Math.abs(s-a.left),n=Math.abs(s-a.right),l=Math.min(r,n);this.image.data[i+s]=Math.max(0,Math.min(255,(a.isDash?l:-l)+t+128))}}addDash(e,t){const r=this.getKey(e,t);if(this.positions[r])return this.positions[r];const n="round"===t,i=n?7:0,o=2*i+1;if(this.nextRow+o>this.height)return fe("LineAtlas out of space"),null;0===e.length&&e.push(1);let a=0;for(let c=0;c<e.length;c++)e[c]<0&&(fe("Negative value is found in line dasharray, replacing values with 0"),e[c]=0),a+=e[c];if(0!==a){const r=this.width/a,o=this.getDashRanges(e,this.width,r);n?this.addRoundDash(o,r,i):this.addRegularDash(o,"square"===t?.5*r:0)}const s=this.nextRow+i;this.nextRow+=o;const l={tl:[s,i],br:[a,0]};return this.positions[r]=l,l}}lo(xh,"LineAtlas");const wh=fd.VectorTileFeature.types,Ah=Math.cos(Math.PI/180*37.5),Sh=Math.cos(Math.PI/180*5);class Eh{constructor(e){this.evaluationGlobals={zoom:0,lineProgress:void 0},this.zoom=e.zoom,this.evaluationGlobals.zoom=this.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.hasZOffset=!1,this.hasCrossSlope=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach((e=>{this.gradients[e.id]={}})),this.layoutVertexArray=new Sa,this.layoutVertexArray2=new Ea,this.patternVertexArray=new Ta,this.indexArray=new za,this.programConfigurations=new Us(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new fs,this.maxLineLength=0,this.zOffsetVertexArray=new Wa,this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.tessellationStep=e.tessellationStep?e.tessellationStep:Jr/64}updateFootprints(e,t){}populate(e,t,r,n){this.hasPattern=Bu("line",this.layers,t);const i=this.layers[0].layout.get("line-sort-key");this.tileToMeter=bl(r),this.hasZOffset=!this.layers[0].isDraped();const o=this.layers[0].layout.get("line-elevation-reference");this.hasZOffset&&"none"===o&&fe("line-elevation-reference: ground is used for the layer ".concat(this.layerIds[0]," because non-zero line-z-offset value was found."));const a=this.layers[0].layout.get("line-cross-slope");this.hasCrossSlope=this.hasZOffset&&void 0!==a;const s=[];for(const{feature:d,id:h,index:p,sourceLayerIndex:f}of e){const e=this.layers[0]._featureFilter.needGeometry,t=Ml(d,e);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),t,r))continue;const o=i?i.evaluate(t,{},r):void 0,a={id:h,properties:d.properties,type:d.type,sourceLayerIndex:f,index:p,geometry:e?t.geometry:Il(d,r,n),patterns:{},sortKey:o};s.push(a)}i&&s.sort(((e,t)=>
vendor: 4,586 bytes, line 2
2e.sortKey-t.sortKey));const{lineAtlas:l,featureIndex:c}=t,u=this.addConstantDashes(l);for(const d of s){const{geometry:n,index:i,sourceLayerIndex:o}=d;if(u&&this.addFeatureDashes(d,l),this.hasPattern){const e=Uu("line",this.layers,d,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(d,n,i,r,l.positions,t.availableImages,t.brightness);c.insert(e[i].feature,n,i,o,this.index)}}addConstantDashes(e){let t=!1;for(const r of this.layers){const n=r.paint.get("line-dasharray").value,i=r.layout.get("line-cap").value;if("constant"!==n.kind||"constant"!==i.kind)t=!0;else{const t=i.value,r=n.value;if(!r)continue;e.addDash(r,t)}}return t}addFeatureDashes(e,t){const r=this.zoom;for(const n of this.layers){const i=n.paint.get("line-dasharray").value,o=n.layout.get("line-cap").value;if("constant"===i.kind&&"constant"===o.kind)continue;let a,s;if("constant"===i.kind){if(a=i.value,!a)continue}else a=i.evaluate({zoom:r},e);s="constant"===o.kind?o.value:o.evaluate({zoom:r},e),t.addDash(a,s),e.patterns[n.id]=t.getKey(a,s)}}update(e,t,r,n,i,o,a){this.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a)}addFeatures(e,t,r,n,i,o){for(const a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,n,o)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,yh)),0!==this.patternVertexArray.length&&(this.patternVertexBuffer=e.createVertexBuffer(this.patternVertexArray,bh)),!this.zOffsetVertexBuffer&&this.zOffsetVertexArray.length>0&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,mh.members,!0)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,gh),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy(),this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,r,n,i,o,a){const s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),c=s.get("line-cap").evaluate(e,{}),u=s.get("line-miter-limit"),d=s.get("line-round-limit");this.lineClips=this.lineFeatureClips(e),this.lineFeature=e,this.zOffsetValue=s.get("line-z-offset").value;const h=this.layers[0].paint.get("line-width").value;"constant"!==h.kind&&!1===h.isLineProgressConstant&&(this.variableWidthValue=h);for(const p of t)this.addLine(p,e,n,l,c,u,d);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,i,o,n,a)}addLine(e,t,r,n,i,o,a){this.distance=0,this.prevDistance=0,this.scaledDistance=0,this.totalDistance=0,this.totalFeatureLength=0,this.lineSoFar=0,this.currentVertex=void 0;const s="none"===n;if(this.patternJoinNone=this.hasPattern&&s,this.segmentStart=0,this.segmentStartf32=0,this.segmentPoints=[],this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.totalFeatureLength=this.totalDistance/(this.lineClips.end-this.lineClips.start),this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const l="Polygon"===wh[t.type];let c=e.length;for(;c>=2&&e[c-1].equals(e[c-2]);)c--;let u=0;for(;u<c-1&&e[u].equals(e[u+1]);)u++;if(c<(l?3:2))return;"bevel"===n&&(o=1.05);const d=this.segments.prepareSegment(10*c,this.layoutVertexArray,this.indexArray);let h,p,f,m,g,_;this.e1=this.e2=-1,l&&(h=e[c-2],g=e[u].sub(h)._unit()._perp());for(let y=u;y<c;y++){if(f=y===c-1?l?e[u+1]:void 0:e[y+1],f&&e[y].equals(f))continue;g&&(m=g),h&&(p=h),h=e[y],_=this.evaluateLineProgressFeatures(p?p.dist(h):0),g=f?f.sub(h)._unit()._perp():m,m=m||g;const t=p&&f;let r=t?n:l||s?"butt":i;const v=m.x*g.x+m.y*g.y;if(s){const e=function(e){if(e.patternJoinNone){const t=e.segmentPoints.length/2,r=e.lineSoFar-e.segmentStart;for(let n=0;n<t;++n){const t=e.segmentPoints[2*n+1],i=Math.round(e.segmentPoints[2*n])+.5+.25*t;e.patternVertexArray.emplaceBack(i,r,e.segmentStart),e.patternVertexArray.emplaceBack(i,r,e.segmentStart)}e.segmentPoints.length=0}e.e1=e.e2=-1};if(t&&v<Sh){this.updateDistance(p,h),this.addCurrentVertex(h,m,1,1,d,_),e(this),this.addCurrentVertex(h,g,-1,-1,d,_);continue}
2if(p){if(!f){this.updateDistance(p,h),this.addCurrentVertex(h,m,1,1,d,_),e(this);continue}r="miter"}}let b=m.add(g);0===b.x&&0===b.y||b._unit();const x=b.x*g.x+b.y*g.y,w=0!==x?1/x:1/0,A=2*Math.sqrt(2-2*x),S=x<Ah&&p&&f,E=m.x*g.y-m.y*g.x>0,T=this.overscaling<=16?15*Jr/(512*this.overscaling):0;if(t&&"round"===r)if(w<a)r="miter";else if(w<=2){const e=Th(h,-10,Jr+10);r=this.hasZOffset&&(e||this.hasCrossSlope)?"miter":"fakeround"}if("miter"===r&&w>o&&(r="bevel"),"bevel"===r&&(w>2&&(r="flipbevel"),w<o&&(r="miter")),p&&!("miter"===r&&S)&&this.updateDistance(p,h),"miter"===r)if(S){const e=h.dist(p);if(e>2*T){const t=h.sub(h.sub(p)._mult(T/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,m,0,0,d,_),p=t}this.updateDistance(p,h),b._mult(w),this.addCurrentVertex(h,b,0,0,d,_);const t=h.dist(f);if(t>2*T){const e=h.add(f.sub(h)._mult(T/t)._round());this.updateDistance(h,e),this.addCurrentVertex(e,g,0,0,d,_),h=e}}else b._mult(w),this.addCurrentVertex(h,b,0,0,d,_);else if("flipbevel"===r){if(w>100)b=g.mult(-1);else{const e=w*m.add(g).mag()/m.sub(g).mag();b._perp()._mult(e*(E?-1:1))}this.addCurrentVertex(h,b,0,0,d,_),this.addCurrentVertex(h,b.mult(-1),0,0,d,_)}else if("bevel"===r||"fakeround"===r){null!=_&&p&&this.addCurrentVertex(h,m,-1,-1,d,_);const e=h.dist(p)<=2*T&&"bevel"!==r,t=b.mult(E?1:-1);t._mult(w);const n=g.mult(E?-1:1),i=m.mult(E?-1:1),o=this.evaluateLineProgressFeatures(this.distance);if(null==_&&(this.addHalfVertex(h,t.x,t.y,!1,!E,0,d,o),e||this.addHalfVertex(h,t.x+2*i.x,t.y+2*i.y,!1,E,0,d,o)),"fakeround"===r){const e=Math.round(180*A/Math.PI/20);this.addHalfVertex(h,i.x,i.y,!1,E,0,d,o);for(let t=0;t<e;t++){let r=t/e;if(.5!==r){const e=r-.5;r+=r*e*(r-1)*((1.0904+v*(v*(3.55645-1.43519*v)-3.2452))*e*e+(.848013+v*(.215638*v-1.06021)))}const a=n.sub(i)._mult(r)._add(i)._unit();this.addHalfVertex(h,a.x,a.y,!1,E,0,d,o)}this.addHalfVertex(h,n.x,n.y,!1,E,0,d,o)}e||null!=_||this.addHalfVertex(h,t.x+2*n.x,t.y+2*n.y,!1,E,0,d,o),null!=_&&f&&this.addCurrentVertex(h,g,1,1,d,_)}else"butt"===r?this.addCurrentVertex(h,b,0,0,d,_):"square"===r?(p||this.addCurrentVertex(h,b,-1,-1,d,_),this.addCurrentVertex(h,b,0,0,d,_),p&&this.addCurrentVertex(h,b,1,1,d,_)):"round"===r&&(p&&(this.addCurrentVertex(h,m,0,0,d,_),this.addCurrentVertex(h,m,1,1,d,_,!0)),f&&(this.addCurrentVertex(h,g,-1,-1,d,_,!0),this.addCurrentVertex(h,g,0,0,d,_)))}}addVerticesTo(e,t,r,n,i,o,a,s,l,c){const u=(t.w-e.w)/this.tessellationStep|0;let d=0;const h=this.scaledDistance;if(u>1){this.lineSoFar=e.w;
2const h=(t.x-e.x)/u,p=(t.y-e.y)/u,f=(t.z-e.z)/u,m=(t.w-e.w)/u;for(let t=1;t<u;++t){e.x+=h,e.y+=p,e.z+=f,this.lineSoFar+=m,d+=m;const t=this.evaluateLineProgressFeatures(this.prevDistance+d);this.scaledDistance=(this.prevDistance+d)/this.totalDistance,this.addHalfVertex(e,r,n,c,!1,a,l,t),this.addHalfVertex(e,i,o,c,!0,-s,l,t)}}this.lineSoFar=t.w,this.scaledDistance=h;const p=this.evaluateLineProgressFeatures(this.distance);this.addHalfVertex(t,r,n,c,!1,a,l,p),this.addHalfVertex(t,i,o,c,!0,-s,l,p)}evaluateLineProgressFeatures(e){if(!this.variableWidthValue&&!this.hasZOffset)return null;this.evaluationGlobals.lineProgress=0,this.lineClips?this.evaluationGlobals.lineProgress=Math.min(1,(this.totalFeatureLength*this.lineClips.start+e)/this.totalFeatureLength):fe("line-progress evaluation for ".concat(this.layerIds[0]," requires enabling 'lineMetrics' for the source."));let t=0;return this.variableWidthValue&&"constant"!==this.variableWidthValue.kind&&(t=this.variableWidthValue.evaluate(this.evaluationGlobals,this.lineFeature)||0),this.hasZOffset?"constant"===this.zOffsetValue.kind?{zOffset:this.zOffsetValue.value,variableWidth:t}:{zOffset:this.zOffsetValue.evaluate(this.evaluationGlobals,this.lineFeature)||0,variableWidth:t}:{zOffset:0,variableWidth:t}}addCurrentVertex(e,t,r,n,i,o){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];const s=t.x+t.y*r,l=t.y-t.x*r,c=t.y*n-t.x,u=-t.y-t.x*n;if(null!=o){const t=this.hasZOffset,d=-10,h=Jr+10,p=o.zOffset,f=new gd(e.x,e.y,p,this.lineSoFar),m=!!t&&Th(e,d,h),g=this.lineSoFar,_=this.distance;if(this.currentVertex)if(m){const t=this.currentVertexIsOutside,o=this.currentVertex,m=new gd(e.x,e.y,p,this.lineSoFar);if(vd(o,m,d,h),!Th(m,d,h)){if(t){this.e1=this.e2=-1,this.distance-=o.dist(f),this.lineSoFar=o.w;const e=this.evaluateLineProgressFeatures(o.w-this.totalFeatureLength*(this.lineClips?this.lineClips.start:0));this.addHalfVertex(o,s,l,a,!1,r,i,e),this.addHalfVertex(o,c,u,a,!0,-n,i,e),this.prevDistance=this.distance}this.distance=this.prevDistance+o.dist(m),this.scaledDistance=this.distance/this.totalDistance,this.addVerticesTo(o,m,s,l,c,u,r,n,i,a),this.distance=_,this.scaledDistance=this.distance/this.totalDistance}}else{const e=this.currentVertex;if(this.currentVertexIsOutside){vd(e,f,d,h),this.e1=this.e2=-1,this.distance-=e.dist(f),this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e.w;const t=this.evaluateLineProgressFeatures(e.w-this.totalFeatureLength*(this.lineClips?this.lineClips.start:0));this.addHalfVertex(e,s,l,a,!1,r,i,t),this.addHalfVertex(e,c,u,a,!0,-n,i,t),this.prevDistance=this.distance,this.distance=_,this.scaledDistance=this.distance/this.totalDistance}this.addVerticesTo(e,f,s,l,c,u,r,n,i,a)}else m||(this.addHalfVertex(e,s,l,a,!1,r,i,o),this.addHalfVertex(e,c,u,a,!0,-n,i,o));this.currentVertex=f,this.currentVertexIsOutside=m,this.lineSoFar=g}else this.addHalfVertex(e,s,l,a,!1,r,i,o),this.addHalfVertex(e,c,u,a,!0,-n,i,o)}addHalfVertex(e,t,r,n,i,o,a,s){let{x:l,y:c}=e;this.patternJoinNone&&(0===this.segmentPoints.length&&(this.segmentStart=this.lineSoFar,this.segmentStartf32=Math.fround(this.lineSoFar)),i||this.segmentPoints.push(this.lineSoFar-this.segmentStart,o)),this.layoutVertexArray.emplaceBack((l<<1)+(n?1:0),(c<<1)+(i?1:0),Math.round(63*t)+128,Math.round(63*r)+128,1+(0===o?0:o<0?-1:1),0,this.lineSoFar-this.segmentStartf32),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const u=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,u),a.primitiveLength++),i?this.e2=u:this.e1=u,null!=s&&this.zOffsetVertexArray.emplaceBack(s.zOffset,s.variableWidth)}updateScaledDistance(){this.lineClips?(this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=this.totalFeatureLength*this.lineClips.start+this.distance):this.lineSoFar=this.distance}updateDistance(e,t){this.prevDistance=this.distance,this.distance+=e.dist(t),this.updateScaledDistance()}}function Th(e,t,r){return e.x<t||e.x>r||e.y<t||e.y>r}let Ph,Ch;function Ih(e,t,r){return t*(Jr/(e.tileSize*Math.pow(2,r-e.tileID.overscaledZ
2)))}lo(Eh,"LineBucket",{omit:["layers","patternFeatures","currentVertex","currentVertexIsOutside"]});const Mh=(e,t,r)=>(1-r)*e+r*t;function kh(e,t){return 1/Ih(e,1,t.tileZoom)}function Oh(e,t,r,n){return e.translatePosMatrix(n||t.tileID.projMatrix,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}const Rh=e=>{const t=[];Lh(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const r=e.paint.get("line-trim-offset");0===r[0]&&0===r[1]||t.push("RENDER_LINE_TRIM_OFFSET"),0!==e.paint.get("line-border-width").constantOr(1)&&t.push("RENDER_LINE_BORDER");const n="none"===e.layout.get("line-join").constantOr("miter"),i=!!e.paint.get("line-pattern").constantOr(1);return n&&i&&t.push("LINE_JOIN_NONE"),t};function Lh(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}let Dh;const Nh=()=>Dh||(Dh={layout:Ph||(Ph=new Yo({"line-cap":new Go(Zo.layout_line["line-cap"]),"line-join":new Go(Zo.layout_line["line-join"]),"line-miter-limit":new Ho(Zo.layout_line["line-miter-limit"]),"line-round-limit":new Ho(Zo.layout_line["line-round-limit"]),"line-sort-key":new Go(Zo.layout_line["line-sort-key"]),"line-z-offset":new Go(Zo.layout_line["line-z-offset"]),"line-elevation-reference":new Ho(Zo.layout_line["line-elevation-reference"]),"line-cross-slope":new Ho(Zo.layout_line["line-cross-slope"]),visibility:new Ho(Zo.layout_line.visibility),"line-width-unit":new Ho(Zo.layout_line["line-width-unit"])})),paint:Ch||(Ch=new Yo({"line-opacity":new Go(Zo.paint_line["line-opacity"]),"line-color":new Go(Zo.paint_line["line-color"]),"line-translate":new Ho(Zo.paint_line["line-translate"]),"line-translate-anchor":new Ho(Zo.paint_line["line-translate-anchor"]),"line-width":new Go(Zo.paint_line["line-width"]),"line-gap-width":new Go(Zo.paint_line["line-gap-width"]),"line-offset":new Go(Zo.paint_line["line-offset"]),"line-blur":new Go(Zo.paint_line["line-blur"]),"line-dasharray":new Go(Zo.paint_line["line-dasharray"]),"line-pattern":new Go(Zo.paint_line["line-pattern"]),"line-gradient":new Wo(Zo.paint_line["line-gradient"]),"line-trim-offset":new Ho(Zo.paint_line["line-trim-offset"]),"line-trim-fade-range":new Ho(Zo.paint_line["line-trim-fade-range"]),"line-trim-color":new Ho(Zo.paint_line["line-trim-color"]),"line-emissive-strength":new Ho(Zo.paint_line["line-emissive-strength"]),"line-border-width":new Go(Zo.paint_line["line-border-width"]),"line-border-color":new Go(Zo.paint_line["line-border-color"]),"line-occlusion-opacity":new Ho(Zo.paint_line["line-occlusion-opacity"]),"line-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"line-gradient-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"line-trim-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"line-border-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},Dh);class Fh extends Go{possiblyEvaluate(e,t){return t=new Do(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,n){return t=ie({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,n)}}let zh;function jh(e,t){return t>0?t+2*e:e}const Bh=ya([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Uh=ya([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),Vh=ya([{name:"a_projected_pos",components:4,type:"Float32"}],4);ya([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const qh=ya([{name:"a_auto_z_offset",components:1,type:"Float32"}],4),Hh=ya([{name:"a_texb",components:2,type:"Uint16"}]),Gh=ya([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_elevation_from_sea",components:2,type:"Float32"}]),Wh=ya([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"},{name:"a_auto_z_offset",components:1,type:"Float32"}]);ya([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Yh=ya([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Zh=ya([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);ya([{name:"triangle",components:3,type:"Uint16"}]),ya([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),ya([{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Float32",name:"zOffset"},{type:"Uint8",name:"hasIconTextFit"}]),ya([{type:"Float32",name:"offsetX"}]),ya([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var Kh=24;const Xh=128;function Jh(e,t,r,n,i){if("camera"===e.kind)return e.maxSize;if("composite"===e.kind){const n=t.possiblyEvaluate(new Do(e.maxZoom),r).evaluate(i,{},r),o=t.possiblyEvaluate(new Do(e.minZoom),r).evaluate(i,{},r);return Math.max(n,o)}return t.possiblyEvaluate(new Do(n)).evaluate(i,{},r)}function Qh(e,t){const{expression:r}=t;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new Do(e+1))};if("source"===r.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:n}=r;let i=0;for(;i<t.length&&t[i]<=e;)i++;i=Math.max(0,i-1);let o=i;for(;o<t.length&&t[o]<e+1;)o++;o=Math.min(t.length-1,o);const a=t[i],s=t[o];return"composite"===r.kind?{kind:"composite",minZoom:a,maxZoom:s,interpolationType:n}:{kind:"camera",minZoom:a,maxZoom:s,minSize:r.evaluate(new Do(a)
vendor: 8,877 bytes, line 2
2),maxSize:r.evaluate(new Do(s)),interpolationType:n}}}function $h(e,t,r){let{uSize:n,uSizeT:i}=t,{lowerSize:o,upperSize:a}=r;return"source"===e.kind?o/Xh:"composite"===e.kind?It(o/Xh,a/Xh,i):n}function ep(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0;if("constant"===e.kind)i=e.layoutSize*r;else if("source"!==e.kind){const{interpolationType:o,minZoom:a,maxZoom:s}=e,l=o?ee(ai.interpolationFactor(o,t,a,s),0,1):0;"camera"===e.kind?i=It(e.minSize,e.maxSize,l)*r:n=l*r}return{uSizeT:n,uSize:i}}var tp=Object.freeze({__proto__:null,SIZE_PACK_FACTOR:Xh,evaluateSizeForFeature:$h,evaluateSizeForZoom:ep,getRasterizedIconSize:Jh,getSizeData:Qh});function rp(e,t,r){return e.sections.forEach((e=>{e.text=function(e,t,r){const n=t.layout.get("text-transform").evaluate(r,{});return"uppercase"===n?e=e.toLocaleUpperCase():"lowercase"===n&&(e=e.toLocaleLowerCase()),Lo.applyArabicShaping&&(e=Lo.applyArabicShaping(e)),e}(e.text,t,r)})),e}const np={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42","\u2190":"\u2191","\u2192":"\u2193"};function ip(e){return"\ufe36"===e||"\ufe48"===e||"\ufe38"===e||"\ufe44"===e||"\ufe42"===e||"\ufe3e"===e||"\ufe3c"===e||"\ufe3a"===e||"\ufe18"===e||"\ufe40"===e||"\ufe10"===e||"\ufe13"===e||"\ufe14"===e||"\uff40"===e||"\uffe3"===e||"\ufe11"===e||"\ufe12"===e}function op(e){return"\ufe35"===e||"\ufe47"===e||"\ufe37"===e||"\ufe43"===e||"\ufe41"===e||"\ufe3d"===e||"\ufe3b"===e||"\ufe39"===e||"\ufe17"===e||"\ufe3f"===e}var ap,sp,lp,cp={};function up(){return ap||(ap=1,cp.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},cp.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*m}),cp}function dp(){if(lp)return sp;lp=1,sp=t;var e=up();function t(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}t.Varint=0,t.Fixed64=1,t.Bytes=2,t.Fixed32=5;var r=4294967296,n=1/r,i="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function o(e){return e.type===t.Bytes?e.readVarint()+e.pos:e.pos+1}function a(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function s(e,t,r){var n=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=e;i--)r.buf[i+n]=r.buf[i]}function l(e,t){for(var r=0;r<e.length;r++)t.writeVarint(e[r])}function c(e,t){for(var r=0;r<e.length;r++)t.writeSVarint(e[r])}function u(e,t){for(var r=0;r<e.length;r++)t.writeFloat(e[r])}function d(e,t){for(var r=0;r<e.length;r++)t.writeDouble(e[r])}function h(e,t){for(var r=0;r<e.length;r++)t.writeBoolean(e[r])}function p(e,t){for(var r=0;r<e.length;r++)t.writeFixed32(e[r])}function f(e,t){for(var r=0;r<e.length;r++)t.writeSFixed32(e[r])}function m(e,t){for(var r=0;r<e.length;r++)t.writeFixed64(e[r])}function g(e,t){for(var r=0;r<e.length;r++)t.writeSFixed64(e[r])}function _(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function y(e,t,r){e[r]=t,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function v(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}return t.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,o=this.pos;this.type=7&n,e(i,t,this),this.pos===o&&this.skip(n)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=_(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=v(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=_(this.buf,this.pos)+_(this.buf,this.pos+4)*r;return this.pos+=8,e},readSFixed64:function(){var e=_(this.buf,this.pos)+v(this.buf,this.pos+4)*r;return this.pos+=8,e},readFloat:function(){var t=e.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=e.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(e){var t,r,n=this.buf;return t=127&(r=n[this.pos++]),r<128?t:(t|=(127&(r=n[this.pos++]))<<7,r<128?t:(t|=(127&(r=n[this.pos++]))<<14,r<128?t:(t|=(127&(r=n[this.pos++]))<<21,r<128?t:function(e,t,r){var n,i,o=r.buf;if(n=(112&(i=o[r.pos++]))>>4,i<128)return a(e,n,t);if(n|=(127&(i=o[r.pos++]))<<3,i<128)return a(e,n,t);if(n|=(127&(i=o[r.pos++]))<<10,i<128)return a(e,n,t);if(n|=(127&(i=o[r.pos++]))<<17,i<128)return a(e,n,t);if(n|=(127&(i=o[r.pos++]))<<24,i<128)return a(e,n,t);if(n|=(1&(i=o[r.pos++]))<<31,i<128)return a(e,n,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(r=n[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&i?function(e,t,r){return i.decode(e.subarray(t,r))}(this.buf,t,e):function(e,t,r){for(var n="",i=t;i<r;){var o,a,s,l=e[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u>r)break;1===u?l<128&&(c=l):2===u?128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)<=127&&(c=null):3===u?(a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&((c=(15&l)<<12|(63&o)<<6|63&a)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&((c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,n+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,r){if(this.type!==t.Bytes)return e.push(this.readVarint(r));var n=o(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(r));return e},readPackedSVarint:function(e){if(this.type!==t.Bytes)return e.push(this.readSVarint());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==t.Bytes)return e.push(this.readBoolean());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==t.Bytes)return e.push(this.readFloat());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==t.Bytes)return e.push(this.readDouble());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==t.Bytes)return e.push(this.readFixed32());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==t.Bytes)return e.push(this.readSFixed32());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==t.Bytes)return e.push(this.readFixed64());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readFixed64());return e}
vendor: 4,307 bytes, line 2
2,readPackedSFixed64:function(e){if(this.type!==t.Bytes)return e.push(this.readSFixed64());var r=o(this);for(e=e||[];this.pos<r;)e.push(this.readSFixed64());return e},skip:function(e){var r=7&e;if(r===t.Varint)for(;this.buf[this.pos++]>127;);else if(r===t.Bytes)this.pos=this.readVarint()+this.pos;else if(r===t.Fixed32)this.pos+=4;else{if(r!==t.Fixed64)throw new Error("Unimplemented type: "+r);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),y(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),y(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),y(this.buf,-1&e,this.pos),y(this.buf,Math.floor(e*n),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),y(this.buf,-1&e,this.pos),y(this.buf,Math.floor(e*n),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var r,n;if(e>=0?(r=e%4294967296|0,n=e/4294967296|0):(n=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,n=n+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,r.buf[r.pos]=127&(e>>>=7)}(r,0,t),function(e,t){var r=(7&e)<<4;t.buf[t.pos++]|=r|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(n,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,r){for(var n,i,o=0;o<t.length;o++){if((n=t.charCodeAt(o))>55295&&n<57344){if(!i){n>56319||o+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):i=n;continue}if(n<56320){e[r++]=239,e[r++]=191,e[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(e[r++]=239,e[r++]=191,e[r++]=189,i=null);n<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(n<65536?e[r++]=n>>12|224:(e[r++]=n>>18|240,e[r++]=n>>12&63|128),e[r++]=n>>6&63|128),e[r++]=63&n|128)}return r}(this.buf,e,this.pos);var r=this.pos-t;r>=128&&s(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),e.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),e.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r<t;r++)this.buf[this.pos++]=e[r]},writeRawMessage:function(e,t){this.pos++;var r=this.pos;e(t,this);var n=this.pos-r;n>=128&&s(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(e,r,n){this.writeTag(e,t.Bytes),this.writeRawMessage(r,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,l,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,c,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,u,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,g,t)},writeBytesField:function(e,r){this.writeTag(e,t.Bytes),this.writeBytes(r)},writeFixed32Field:function(e,r){this.writeTag(e,t.Fixed32),this.writeFixed32(r)},writeSFixed32Field:function(e,r){this.writeTag(e,t.Fixed32),this.writeSFixed32(r)},writeFixed64Field:function(e,r){this.writeTag(e,t.Fixed64),this.writeFixed64
vendor: 4,412 bytes, line 2
2(r)},writeSFixed64Field:function(e,r){this.writeTag(e,t.Fixed64),this.writeSFixed64(r)},writeVarintField:function(e,r){this.writeTag(e,t.Varint),this.writeVarint(r)},writeSVarintField:function(e,r){this.writeTag(e,t.Varint),this.writeSVarint(r)},writeStringField:function(e,r){this.writeTag(e,t.Bytes),this.writeString(r)},writeFloatField:function(e,r){this.writeTag(e,t.Fixed32),this.writeFloat(r)},writeDoubleField:function(e,r){this.writeTag(e,t.Fixed64),this.writeDouble(r)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}},sp}var hp=t(dp());const pp=3;function fp(e,t,r){t.glyphs=[],1===e&&r.readMessage(mp,t)}function mp(e,t,r){if(3===e){const{id:e,bitmap:n,width:i,height:o,left:a,top:s,advance:l}=r.readMessage(gp,{});t.glyphs.push({id:e,bitmap:new au({width:i+2*pp,height:o+2*pp},n),metrics:{width:i,height:o,left:a,top:s,advance:l}})}else 4===e?t.ascender=r.readSVarint():5===e&&(t.descender=r.readSVarint())}function gp(e,t,r){1===e?t.id=r.readVarint():2===e?t.bitmap=r.readBytes():3===e?t.width=r.readVarint():4===e?t.height=r.readVarint():5===e?t.left=r.readSVarint():6===e?t.top=r.readSVarint():7===e&&(t.advance=r.readVarint())}const _p=pp,yp={horizontal:1,vertical:2,horizontalOnly:3};class vp{constructor(){this.scale=1,this.fontStack="",this.image=null}static forText(e,t){const r=new vp;return r.scale=e||1,r.fontStack=t,r}static forImage(e){const t=new vp;return t.image=e,t}}class bp{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const r=new bp;for(let n=0;n<e.sections.length;n++){const i=e.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,t)}return r}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCodePoint(e){return this.text.codePointAt(e)}verticalizePunctuation(e){this.text=function(e,t){let r="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n+1)||null,o=e.charCodeAt(n-1)||null;r+=!t&&(i&&vo(i)&&!np[e[n+1]]||o&&vo(o)&&!np[e[n-1]])||!np[e[n]]?e[n]:np[e[n]]}return r}(this.text,e)}trim(){let e=0;for(let r=0;r<this.text.length&&wp[this.text.charCodeAt(r)];r++)e++;let t=this.text.length;for(let r=this.text.length-1;r>=0&&r>=e&&wp[this.text.charCodeAt(r)];r--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const r=new bp;return r.text=this.text.substring(e,t),r.sectionIndex=this.sectionIndex.slice(e,t),r.sections=this.sections,r}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce(((e,t)=>Math.max(e,this.sections[t].scale)),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(vp.forText(e.scale,e.fontStack||t));const r=this.sections.length-1;for(let n=0;n<e.text.length;++n)this.sectionIndex.push(r)}addImageSection(e){const t=e.image&&e.image.namePrimary?e.image.getPrimary():null;if(!t)return void fe("Can't add FormattedSection with an empty image.");const r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCodePoint(r),this.sections.push(vp.forImage(t)),this.sectionIndex.push(this.sections.length-1)):fe("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function xp(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f){const m=bp.fromFeature(e,i);d===yp.vertical&&m.verticalizePunctuation(h);let g=[];const _=function(e,t,r,n,i,o){if(!e)return[];const a=[],s=function(e,t,r,n,i,o){let a=0;for(let s=0;s<e.length();s++){const r=e.getSection(s);a+=Sp(e.getCodePoint(s),r,n,i,t,o)}return a/Math.max(1,Math.ceil(a/r))}(e,t,r,n,i,o),l=e.text.indexOf("\u200b")>=0;let c=0;for(let d=0;d<e.length();d++){const r=e.getSection(d),h=e.getCodePoint(d);if(wp[h]||(c+=Sp(h,r,n,i,t,o)),d<e.length()-1){const t=!((u=h)<11904||!(fo["Bopomofo Extended"](u)||fo.Bopomofo(u)||fo["CJK Compatibility Forms"](u)||fo["CJK Compatibility Ideographs"](u)||fo["CJK Compatibility"](u)||fo["CJK Radicals Supplement"](u)||fo["CJK Strokes"](u)||fo["CJK Symbols and Punctuation"](u)||fo["CJK Unified Ideographs Extension A"](u)||fo["CJK Unified Ideographs"](u)||fo["Enclosed CJK Letters and Months"](u)||fo["Halfwidth and Fullwidth Forms"](u)||fo.Hiragana(u)||fo["Ideographic Description Characters"](u)||fo["Kangxi Radicals"](u)||fo["Katakana Phonet
2ic Extensions"](u)||fo.Katakana(u)||fo["Vertical Forms"](u)||fo["Yi Radicals"](u)||fo["Yi Syllables"](u)));(Ap[h]||t||r.image)&&a.push(Pp(d+1,c,s,a,Tp(h,e.getCodePoint(d+1),t&&l),!1))}}var u;return Cp(Pp(e.length(),c,s,a,0,!0))}(m,c,o,t,n,p),{processBidirectionalText:y,processStyledBidirectionalText:v}=Lo;if(y&&1===m.sections.length){const e=y(m.toString(),_);for(const t of e){const e=new bp;e.text=t,e.sections=m.sections;for(let r=0;r<t.length;r++)e.sectionIndex.push(0);g.push(e)}}else if(v){const e=v(m.text,m.sectionIndex,_);for(const t of e){const e=new bp;e.text=t[0],e.sectionIndex=t[1],e.sections=m.sections,g.push(e)}}else g=function(e,t){const r=[],n=e.text;let i=0;for(const o of t)r.push(e.substring(i,o)),i=o;return i<n.length&&r.push(e.substring(i,n.length)),r}(m,_);const b=[],x={positionedLines:b,text:m.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:d,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,r,n,i,o,a,s,l,c,u,d){let h=0,p=0,f=0;const m="right"===s?1:"left"===s?0:.5;let g=!1;for(const w of i){const e=w.getSections();for(const r of e){if(r.image)continue;const e=t[r.fontStack];if(e&&(g=void 0!==e.ascender&&void 0!==e.descender,!g))break}if(!g)break}let _=0;for(const w of i){w.trim();const i=w.getMaxScale(),a=(i-1)*Kh,s={positionedGlyphs:[],lineOffset:0};e.positionedLines[_]=s;const v=s.positionedGlyphs;let b=0;if(!w.length()){p+=o,++_;continue}let x=0,A=0;for(let o=0;o<w.length();o++){const a=w.getSection(o),s=w.getSectionIndex(o),f=w.getCodePoint(o);let m=a.scale,_=null,S=null,E=null,T=Kh,P=0;const C=!(l===yp.horizontal||!u&&!yo(f)||u&&(wp[f]||(y=f,fo.Arabic(y)||fo["Arabic Supplement"](y)||fo["Arabic Extended-A"](y)||fo["Arabic Presentation Forms-A"](y)||fo["Arabic Presentation Forms-B"](y))));if(a.image){const t=n[a.image.serialize()];if(!t)continue;E=a.image.id,e.iconsInText=e.iconsInText||!0,S=t.paddedRect;const r=t.displaySize;m=m*Kh/d,_={width:r[0],height:r[1],left:0,top:-_p,advance:C?r[1]:r[0],localGlyph:!1},P=g?-_.height*m:i*Kh-17-r[1]*m,T=_.advance;const o=(C?r[0]:r[1])*m-Kh*i;o>0&&o>b&&(b=o)}else{const e=r[a.fontStack];if(!e)continue;e[f]&&(S=e[f]);const n=t[a.fontStack];if(!n)continue;const o=n.glyphs[f];if(!o)continue;if(_=o.metrics,T=8203!==f?Kh:0,g){const e=void 0!==n.ascender?Math.abs(n.ascender):0,t=void 0!==n.descender?Math.abs(n.descender):0,r=(e+t)*m;x<r&&(x=r,A=(e-t)/2*m),P=-e*m}else P=(i-m)*Kh-17}C?(e.verticalizable=!0,v.push({glyph:f,imageName:E,x:h,y:p+P,vertical:C,scale:m,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:s,metrics:_,rect:S}),h+=T*m+c):(v.push({glyph:f,imageName:E,x:h,y:p+P,vertical:C,scale:m,localGlyph:_.localGlyph,fontStack:a.fontStack,sectionIndex:s,metrics:_,rect:S}),h+=_.advance*m+c)}0!==v.length&&(f=Math.max(h-c,f),g?Mp(v,m,b,A,o*i/2):Mp(v,m,b,0,o/2)),h=0;const S=o*i+b;s.lineOffset=Math.max(b,a),p+=S,++_}var y;const v=p,{horizontalAlign:b,verticalAlign:x}=Ip(a);(function(e,t,r,n,i,o){const a=(t-r)*i,s=-o*n;for(const l of e)for(const e of l.positionedGlyphs)e.x+=a,e.y+=s})(e.positionedLines,m,b,x,f,v),e.top+=-x*v,e.bottom=e.top+v,e.left+=-b*f,e.right=e.left+f,e.hasBaseline=g}(x,t,r,n,g,a,s,l,d,c,h,f),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(b)&&x}const wp={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Ap={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Sp(e,t,r,n,i,o){if(t.image){const e=n[t.image.serialize()];return e?e.displaySize[0]*t.scale*Kh/o+i:0}{const n=r[t.fontStack],o=n&&n.glyphs[e];return o?o.metrics.advance*t.scale+i:0}}function Ep(e,t,r,n){const i=Math.pow(e-t,2);return n?e<t?i/2:2*i:i+Math.abs(r)*r}function Tp(e,t,r){let n=0;return 10===e&&(n-=1e4),r&&(n+=150),40!==e&&65288!==e||(n+=50),41!==t&&65289!==t||(n+=50),n}function Pp(e,t,r,n,i,o){let a=null,s=Ep(t,r,i,o);for(const l of n){const e=Ep(t-l.x,r,i,o)+l.badness;e<=s&&(a=l,s=e)}return{index:e,x:t,priorBreak:a,badness:s}}function Cp(e){return e?Cp(e.priorBreak).concat(e.index):[]}function Ip(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function Mp(e,t,r,n,i){if(!(t||r||n||i))return;const o=e.length-1,a=e[o],s=(a.x+a.metrics.advance*a.scale)*t;for(let l=0;l<=o;l++)e[l].x-=s,e[l].y+=r+n+i}function kp(e,t,r,n){const{horizontalAlign:i,verticalAlign:o}=Ip(n),a=r[0]-e.displaySize[0]*i,s=r[1]-e.displaySize[1]*o;return{imagePrimary:e,imageSecondary:t,top:s,bottom:s+e.displaySize[1],left:a,right:a+e.displaySize[0]}}function Op(e,t,r,n,i,o){const a=e.imagePrimary;let s;if(a.content){const e=a.content,t=a.pixelRatio||1;s=[e[0]/t,e[1]/t,a.displaySize[0]-e[2]/t,a.displaySize[1]-e[3]/t]}const l=t.left*o,c=t.right*o;let u,d,h,p;"width"===r||"both"===r?(p=i[0]+l-n[3],d=i[0]+c+n[1]):(p=i[0]+(l+c-a.displaySize[0])/2,d=p+a.displaySize[0]);const f=t.top*o,m=t.bottom*o;return"height"===r||"both"===r?(u=i[1]+f-n[0],h=i[1]+m+n[2]):(u=i[1]+(f+m-a.displaySize[1])/2,h=u+a.displaySize[1]),{imagePrimary:a,imageSecondary:void 0,top:u,right:d,bottom:h,left:p,collisionPadding:s}}class Rp extends H{constructor(e,t,r,n,i){super(e,t),this.angle=n,this.z=r,void 0!==i&&(this.segment=i)}clone(){return new Rp(this.x,this.y,this.z,this.angle,this.segment)}}function Lp(e,t,r,n,i){if(void 0===t.segment)return!0;let o=t,a=t.segment+1,s=0;for(;s>-r/2;){if(a--,a<0)return!1;s-=e[a].dist(o),o=e[a]}s+=e[a].dist(e[a+1]),a++;const l=[];let c=0;for(;s<r/2;){const t=e[a],r=e[a+1];if(!r)return!1;let o=e[a-1].angleTo(t)-t.angleTo(r);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:o}),c+=o;s-l[0].distance>n;)c-=l.shift().angleDelta;if(c>i)return!1;a++,s+=t.dist(r)}return!0}function Dp(e){let t=0;for(let r=0;r<e.length-1;r++)t+=e[r].dist(e[r+1]);return t}function Np(e,t,r){return e?.6*t*r:0}function Fp(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}
2function zp(e,t,r,n,i,o){const a=Np(r,i,o),s=Fp(r,n)*o;let l=0;const c=Dp(e)/2;for(let u=0;u<e.length-1;u++){const r=e[u],n=e[u+1],i=r.dist(n);if(l+i>c){const o=(c-l)/i,d=It(r.x,n.x,o),h=It(r.y,n.y,o),p=new Rp(d,h,0,n.angleTo(r),u);return!a||Lp(e,p,s,a,t)?p:void 0}l+=i}}function jp(e,t,r,n,i,o,a,s,l){const c=Np(n,o,a),u=Fp(n,i),d=u*a,h=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-d<t/4&&(t=d+t/4),Bp(e,h?t/2*s%t:(u/2+2*o)*a*s%t,t,c,r,d,h,!1,l)}function Bp(e,t,r,n,i,o,a,s,l){const c=o/2,u=Dp(e);let d=0,h=t-r,p=[];for(let f=0;f<e.length-1;f++){const t=e[f],a=e[f+1],s=t.dist(a),m=a.angleTo(t);for(;h+r<d+s;){h+=r;const g=(h-d)/s,_=It(t.x,a.x,g),y=It(t.y,a.y,g);if(_>=0&&_<l&&y>=0&&y<l&&h-c>=0&&h+c<=u){const t=new Rp(_,y,0,m,f);n&&!Lp(e,t,o,n,i)||p.push(t)}}d+=s}return s||p.length||a||(p=Bp(e,d/2,r,n,i,o,a,!0,l)),p}function Up(e,t,r,n,i){const o=[];for(let a=0;a<e.length;a++){const s=e[a];let l;for(let e=0;e<s.length-1;e++){let a=s[e],c=s[e+1];a.x<t&&c.x<t||(a.x<t?a=new H(t,a.y+(t-a.x)/(c.x-a.x)*(c.y-a.y))._round():c.x<t&&(c=new H(t,a.y+(t-a.x)/(c.x-a.x)*(c.y-a.y))._round()),a.y<r&&c.y<r||(a.y<r?a=new H(a.x+(r-a.y)/(c.y-a.y)*(c.x-a.x),r)._round():c.y<r&&(c=new H(a.x+(r-a.y)/(c.y-a.y)*(c.x-a.x),r)._round()),a.x>=n&&c.x>=n||(a.x>=n?a=new H(n,a.y+(n-a.x)/(c.x-a.x)*(c.y-a.y))._round():c.x>=n&&(c=new H(n,a.y+(n-a.x)/(c.x-a.x)*(c.y-a.y))._round()),a.y>=i&&c.y>=i||(a.y>=i?a=new H(a.x+(i-a.y)/(c.y-a.y)*(c.x-a.x),i)._round():c.y>=i&&(c=new H(a.x+(i-a.y)/(c.y-a.y)*(c.x-a.x),i)._round()),l&&a.equals(l[l.length-1])||(l=[a],o.push(l)),l.push(c)))))}}return o}function Vp(e){let t=0,r=0;for(const a of e)t+=a.w*a.h,r=Math.max(r,a.w);e.sort(((e,t)=>t.h-e.h));const n=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}];let i=0,o=0;for(const a of e)for(let e=n.length-1;e>=0;e--){const t=n[e];if(!(a.w>t.w||a.h>t.h)){if(a.x=t.x,a.y=t.y,o=Math.max(o,a.y+a.h),i=Math.max(i,a.x+a.w),a.w===t.w&&a.h===t.h){const t=n.pop();e<n.length&&(n[e]=t)}else a.h===t.h?(t.x+=a.w,t.w-=a.w):a.w===t.w?(t.y+=a.h,t.h-=a.h):(n.push({x:t.x+a.w,y:t.y,w:t.w-a.w,h:a.h}),t.y+=a.h,t.h-=a.h);break}}return{w:i,h:o,fill:t/(i*o)||0}}lo(Rp,"Anchor");const qp=1;class Hp{constructor(e,t,r){let{pixelRatio:n,version:i,stretchX:o,stretchY:a,content:s}=t;this.paddedRect=e,this.pixelRatio=n,this.stretchX=o,this.stretchY=a,this.content=s,this.version=i,this.padding=r}get tl(){return[this.paddedRect.x+this.padding,this.paddedRect.y+this.padding]}get br(){return[this.paddedRect.x+this.paddedRect.w-this.padding,this.paddedRect.y+this.paddedRect.h-this.padding]}get displaySize(){return[(this.paddedRect.w-2*this.padding)/this.pixelRatio,(this.paddedRect.h-2*this.padding)/this.pixelRatio]}}class Gp{constructor(e,t,r){const n={},i={};this.haveRenderCallbacks=[];const o=[];this.addImages(e,n,qp,o),this.addImages(t,i,2,o);const{w:a,h:s}=Vp(o),l=new su({width:a||1,height:s||1});for(const c in e){const t=e[c],i=n[c].paddedRect;su.copy(t.data,l,{x:0,y:0},{x:i.x+qp,y:i.y+qp},t.data,r,t.sdf)}for(const c in t){const e=t[c],n=i[c].paddedRect;let o=i[c].padding;const a=n.x+o,s=n.y+o,u=e.data.width,d=e.data.height;o=o>1?o-1:o,su.copy(e.data,l,{x:0,y:0},{x:a,y:s},e.data,r),su.copy(e.data,l,{x:0,y:d-o},{x:a,y:s-o},{width:u,height:o},r),su.copy(e.data,l,{x:0,y:0},{x:a,y:s+d},{width:u,height:o},r),su.copy(e.data,l,{x:u-o,y:0},{x:a-o,y:s},{width:o,height:d},r),su.copy(e.data,l,{x:0,y:0},{x:a+u,y:s},{width:o,height:d},r),su.copy(e.data,l,{x:u-o,y:d-o},{x:a-o,y:s-o},{width:o,height:o},r),su.copy(e.data,l,{x:0,y:d-o},{x:a+u,y:s-o},{width:o,height:o},r),su.copy(e.data,l,{x:0,y:0},{x:a+u,y:s+d},{width:o,height:o},r),su.copy(e.data,l,{x:u-o,y:0},{x:a-o,y:s+d},{width:o,height:o},r)}this.image=l,this.iconPositions=n,this.patternPositions=i}addImages(e,t,r,n){for(const i in e){const o=e[i],a={x:0,y:0,w:o.data.width+2*r,h:o.data.height+2*r};n.push(a),t[i]=new Hp(a,o,r),o.hasRenderCallback&&this.haveRenderCallbacks.push(er.deserializeId(i))}}patchUpdatedImages(e,t,r){this.haveRenderCallbacks=this.haveRenderCallbacks.filter((t=>e.hasImage(t,r))),e.dispatchRenderCallbacks(this.haveRenderCallbacks,r);for(const n in e.getUpdatedImages(r)){for(const i of Object.keys(this.iconPositions))er.deserializeId(i)===n&&this.patchUpdatedImage(this.iconPositions[i],e.getImage(n,r),t);for(const i of Object.keys(this.patternPositions))er.deserializeId(i)===n&&this.patchUpdatedImage(this.patternPositions[i],e.getImage(n,r),t)}}patchUpdatedImage(e,t,r){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[n,i]=e.tl;r.update(t.data,{position:{x:n,y:i}})}}lo(Hp,"ImagePosition"),lo(Gp,"ImageAtlas");const Wp=1e20;function Yp(e,t,r,n,i,o,a,s,l){for(let c=t;c<t+n;c++)Zp(e,r*o+c,o,i,a,s,l);for(let c=r;c<r+i;c++)Zp(e,c*o+t,1,n,a,s,l)}function Zp(e,t,r,n,i,o,a){o[0]=0,a[0]=-Wp,a[1]=Wp,i[0]=e[t];for(let s=1,l=0,c=0;s<n;s++){i[s]=e[t+s*r];const n=s*s;do{const e=o[l];c=(i[s]-i[e]+n-e*e)/(s-e)/2}while(c<=a[l]&&--l>-1);l++,o[l]=s,a[l]=c,a[l+1]=Wp}for(let s=0,l=0;s<n;s++){for(;a[l+1]<s;)l++;const n=o[l],c=s-n;e[t+s*r]=i[n]+c*c}}const Kp=2,Xp={none:0,ideographs:1,all:2};class Jp{constructor(e,t,r){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=r,this.urls={},this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e,t){this.urls[t]=e}getGlyphs(e,t,r){const n=[],i=this.urls[t]||Te.GLYPHS_URL;for(const o in e)for(const t of e[o])n.push({stack:o,id:t});ne(n,((e,t)=>{let{stack:r,id:n}=e,o=this.entries[r];o||(o=this.entries[r]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let a=o.glyphs[n];if(void 0!==a)return void t(null,{stack:r,id:n,glyph:a});if(a=this._tinySDF(o,r,n),a)return o.glyphs[n]=a,void t(null,{stack:r,id:n,glyph:a});const s=Math.floor(n/256);if(256*s>65535)return fe("glyphs > 65535 not supported"),void t(null,{stack:r,id:n,glyph:a});if(o.ranges[s])return void t(null,{stack:r,id:n,glyph:a});let l=o.requests[s];l||(l=o.requests[s]=[],Jp.loadGlyphRange(r,s,i,this.requestManager,((e,t)=>
2{if(t){o.ascender=t.ascender,o.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(o.glyphs[+e]=t.glyphs[+e]);o.ranges[s]=!0}for(const r of l)r(e,t);delete o.requests[s]}))),l.push(((e,i)=>{e?t(e):i&&t(null,{stack:r,id:n,glyph:i.glyphs[n]||null})}))}),((e,t)=>{if(e)r(e);else if(t){const e={};for(const{stack:r,id:n,glyph:i}of t)void 0===e[r]&&(e[r]={}),void 0===e[r].glyphs&&(e[r].glyphs={}),e[r].glyphs[n]=i&&{id:i.id,bitmap:i.bitmap.clone(),metrics:i.metrics},e[r].ascender=this.entries[r].ascender,e[r].descender=this.entries[r].descender;r(null,e)}}))}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==Xp.none&&(this.localGlyphMode===Xp.all?!!this.localFontFamily:!!this.localFontFamily&&(fo["CJK Unified Ideographs"](e)||fo["Hangul Syllables"](e)||fo.Hiragana(e)||fo.Katakana(e)||fo["CJK Symbols and Punctuation"](e)||fo["CJK Unified Ideographs Extension A"](e)||fo["CJK Unified Ideographs Extension B"](e)||fo.Osage(e)))}_tinySDF(e,t,r){const n=this.localFontFamily;if(!n||!this._doesCharSupportLocalGlyph(r))return;let i=e.tinySDF;if(!i){let r="400";/bold/i.test(t)?r="900":/medium/i.test(t)?r="500":/light/i.test(t)&&(r="200"),i=e.tinySDF=new Jp.TinySDF({fontFamily:n,fontWeight:r,fontSize:24*Kp,buffer:3*Kp,radius:8*Kp}),i.fontWeight=r}if(this.localGlyphs[i.fontWeight][r])return this.localGlyphs[i.fontWeight][r];const o=String.fromCodePoint(r),{data:a,width:s,height:l,glyphWidth:c,glyphHeight:u,glyphLeft:d,glyphTop:h,glyphAdvance:p}=i.draw(o);return this.localGlyphs[i.fontWeight][r]={id:r,bitmap:new au({width:s,height:l},a),metrics:{width:c/Kp,height:u/Kp,left:d/Kp,top:h/Kp-27,advance:p/Kp,localGlyph:!0}}}}Jp.loadGlyphRange=function(e,t,r,n,i){const o=256*t,a=o+255,s=n.transformRequest(n.normalizeGlyphsURL(r).replace("{fontstack}",e).replace("{range}","".concat(o,"-").concat(a)),tt.Glyphs);ot(s,((e,t)=>{if(e)i(e);else if(t){const e={},r=function(e){return new hp(e).readFields(fp,{})}(t);for(const t of r.glyphs)e[t.id]=t;i(null,{glyphs:e,ascender:r.ascender,descender:r.descender})}}))},Jp.TinySDF=class{constructor(){let{fontSize:e=24,buffer:t=3,radius:r=8,cutoff:n=.25,fontFamily:i="sans-serif",fontWeight:o="normal",fontStyle:a="normal"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.buffer=t,this.cutoff=n,this.radius=r;const s=this.size=e+4*t,l=this._createCanvas(s),c=this.ctx=l.getContext("2d",{willReadFrequently:!0});c.font="".concat(a," ").concat(o," ").concat(e,"px ").concat(i),c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:n,actualBoundingBoxLeft:i,actualBoundingBoxRight:o}=this.ctx.measureText(e),a=Math.ceil(r),s=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o-i))),l=Math.min(this.size-this.buffer,a+Math.ceil(n)),c=s+2*this.buffer,u=l+2*this.buffer,d=Math.max(c*u,0),h=new Uint8ClampedArray(d),p={data:h,width:c,height:u,glyphWidth:s,glyphHeight:l,glyphTop:a,glyphLeft:0,glyphAdvance:t};if(0===s||0===l)return p;const{ctx:f,buffer:m,gridInner:g,gridOuter:_}=this;f.clearRect(m,m,s,l),f.fillText(e,m,m+a);const y=f.getImageData(m,m,s,l);_.fill(Wp,0,d),g.fill(0,0,d);for(let v=0;v<l;v++)for(let e=0;e<s;e++){const t=y.data[4*(v*s+e)+3]/255;if(0===t)continue;const r=(v+m)*c+e+m;if(1===t)_[r]=0,g[r]=Wp;else{const e=.5-t;_[r]=e>0?e*e:0,g[r]=e<0?e*e:0}}Yp(_,0,0,c,u,c,this.f,this.v,this.z),Yp(g,m,m,s,l,c,this.f,this.v,this.z);for(let v=0;v<d;v++){const e=Math.sqrt(_[v])-Math.sqrt(g[v]);h[v]=Math.round(255-255*(e/this.radius+this.cutoff))}return p}};const Qp=qp;function $p(e,t){return e+t[1]-t[0]}function ef(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const o=[],a=e.imagePrimary,s=a.pixelRatio,l=a.paddedRect.w-2*Qp,c=a.paddedRect.h-2*Qp,u=(e.right-e.left)*i,d=(e.bottom-e.top)*i,h=a.stretchX||[[0,l]],p=a.stretchY||[[0,c]],f=h.reduce($p,0),m=p.reduce($p,0),g=l-f,_=c-m;let y=0,v=f,b=0,x=m,w=0,A=g,S=0,E=_;if(a.content&&n){const e=a.content;y=tf(h,0,e[0]),b=tf(p,0,e[1]),v=tf(h,e[0],e[2]),x=tf(p,e[1],e[3]),w=e[0]-y,S=e[1]-b,A=e[2]-e[0]-v,E=e[3]-e[1]-x}const T=(n,o,l,c)=>{const h=nf(n.stretch-y,v,u,e.left*i),p=of(n.fixed-w,A,n.stretch,f),g=nf(o.stretch-b,x,d,e.top*i),_=of(o.fixed-S,E,o.stretch,m),T=nf(l.stretch-y,v,u,e.left*i),P=of(l.fixed-w,A,l.stretch,f),C=nf(c.stretch-b,x,d,e.top*i),I=of(c.fixed-S,E,c.stretch,m),M=new H(h,g),k=new H(T,g),O=new H(T,C),R=new H(h,C),L=new H(p/s,_/s),D=new H(P/s,I/s),N=t*Math.PI/180;if(N){const e=Math.sin(N),t=Math.cos(N),r=[t,-e,e,t];M._matMult(r),k._matMult(r),R._matMult(r),O._matMult(r)}const F=n.stretch+n.fixed,z=l.stretch+l.fixed,j=o.stretch+o.fixed,B=c.stretch+c.fixed,U=e.imageSecondary;
2return{tl:M,tr:k,bl:R,br:O,texPrimary:{x:a.paddedRect.x+Qp+F,y:a.paddedRect.y+Qp+j,w:z-F,h:B-j},texSecondary:U?{x:U.paddedRect.x+Qp+F,y:U.paddedRect.y+Qp+j,w:z-F,h:B-j}:void 0,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:D,minFontScaleX:A/s/u,minFontScaleY:E/s/d,isSDF:r}};if(n&&(a.stretchX||a.stretchY)){const e=rf(h,g,f),t=rf(p,_,m);for(let r=0;r<e.length-1;r++){const n=e[r],i=e[r+1];for(let e=0;e<t.length-1;e++)o.push(T(n,t[e],i,t[e+1]))}}else o.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return o}function tf(e,t,r){let n=0;for(const i of e)n+=Math.max(t,Math.min(r,i[1]))-Math.max(t,Math.min(r,i[0]));return n}function rf(e,t,r){const n=[{fixed:-Qp,stretch:0}];for(const[i,o]of e){const e=n[n.length-1];n.push({fixed:i-e.stretch,stretch:e.stretch}),n.push({fixed:i-e.stretch,stretch:e.stretch+(o-i)})}return n.push({fixed:t+Qp,stretch:r}),n}function nf(e,t,r,n){return e/t*r+n}function of(e,t,r,n){return e-t*r/n}function af(e,t,r,n){const i=t+e.positionedLines[n].lineOffset;return 0===n?r+i/2:r+(i+(t+e.positionedLines[n-1].lineOffset))/2}function sf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=1/0,i=1/0,o=-1/0,a=-1/0;const s=e[0];for(let p=0;p<s.length;p++){const e=s[p];(!p||e.x<n)&&(n=e.x),(!p||e.y<i)&&(i=e.y),(!p||e.x>o)&&(o=e.x),(!p||e.y>a)&&(a=e.y)}const l=Math.min(o-n,a-i);let c=l/2;const u=new Xr([],lf);if(0===l)return new H(n,i);for(let p=n;p<o;p+=l)for(let t=i;t<a;t+=l)u.push(new cf(p+c,t+c,c,e));let d=function(e){let t=0,r=0,n=0;const i=e[0];for(let o=0,a=i.length,s=a-1;o<a;s=o++){const e=i[o],a=i[s],l=e.x*a.y-a.x*e.y;r+=(e.x+a.x)*l,n+=(e.y+a.y)*l,t+=3*l}return new cf(r/t,n/t,0,e)}(e),h=u.length;for(;u.length;){const n=u.pop();(n.d>d.d||!d.d)&&(d=n,r&&console.log("found best %d after %d probes",Math.round(1e4*n.d)/1e4,h)),n.max-d.d<=t||(c=n.h/2,u.push(new cf(n.p.x-c,n.p.y-c,c,e)),u.push(new cf(n.p.x+c,n.p.y-c,c,e)),u.push(new cf(n.p.x-c,n.p.y+c,c,e)),u.push(new cf(n.p.x+c,n.p.y+c,c,e)),h+=4)}return r&&(console.log("num probes: ".concat(h)),console.log("best distance: ".concat(d.d))),d.p}function lf(e,t){return t.max-e.max}class cf{constructor(e,t,r,n){this.p=new H(e,t),this.h=r,this.d=function(e,t){let r=!1,n=1/0;for(let i=0;i<t.length;i++){const o=t[i];for(let t=0,i=o.length,a=i-1;t<i;a=t++){const i=o[t],s=o[a];i.y>e.y!=s.y>e.y&&e.x<(s.x-i.x)*(e.y-i.y)/(s.y-i.y)+i.x&&(r=!r),n=Math.min(n,Ul(e,i,s))}}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}}const uf=Number.POSITIVE_INFINITY,df=Math.sqrt(2);function hf(e,t){let[r,n]=t,i=0,o=0;if(n===uf){r<0&&(r=0);const t=r/df;switch(e){case"top-right":case"top-left":o=t-7;break;case"bottom-right":case"bottom-left":o=7-t;break;case"bottom":o=7-r;break;case"top":o=r-7}switch(e){case"top-right":case"bottom-right":i=-t;break;case"top-left":case"bottom-left":i=t;break;case"left":i=r;break;case"right":i=-r}}else{switch(r=Math.abs(r),n=Math.abs(n),e){case"top-right":case"top-left":case"top":o=n-7;break;case"bottom-right":case"bottom-left":case"bottom":o=7-n}switch(e){case"top-right":case"bottom-right":case"right":i=-r;break;case"top-left":case"bottom-left":case"left":i=r}}return[i,o]}function pf(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ff(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){let g=o.textMaxSize.evaluate(t,{},h);void 0===g?g=a*o.textScaleFactor:g*=o.textScaleFactor;const _=e.layers[0].layout,y=_.get("icon-offset").evaluate(t,{},h),v=yf(r.horizontal)||r.vertical,b="globe"===p.name,x=Kh,w=a*o.textScaleFactor/x,A=e.tilePixelRatio*g/x,S=(O=e.overscaling,e.zoom>18&&O>2&&(O>>=1),Math.max(Jr/(512*O),1)*_.get("symbol-spacing")),E=_.get("text-padding")*e.tilePixelRatio,T=_.get("icon-padding")*e.tilePixelRatio,P=Z(_.get("text-max-angle")),C="map"===_.get("text-rotation-alignment")&&"point"!==_.get("symbol-placement"),I="map"===_.get("icon-rotation-alignment")&&"point"!==_.get("symbol-placement"),M=_.get("symbol-placement"),k=S/2;var O;const R=_.get("icon-text-fit").evaluate(t,{},h),L=_.get("icon-text-fit-padding").evaluate(t,{},h),D="none"!==R;let N;!1===e.hasAnyIconTextFit&&D&&(e.hasAnyIconTextFit=!0),n&&D&&(e.allowVerticalPlacement&&r.vertical&&(N=Op(n,r.vertical,R,L,y,w)),v&&(n=Op(n,v,R,L,y,w)));const F=(a,s,g)=>{if(s.x<0||s.x>=Jr||s.y<0||s.y>=Jr)return;let _=null;if(b){const{x:e,y:t,z:r}=p.projectTilePoint(s.x,s.y,g);_={anchor:new Rp(e,t,r,0,void 0),up:p.upVector(g,s.x,s.y)}}!function(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w,A,S,E,T,P){const C=e.addToLineVertexArray(t,n);let I,M,k,O,R,L,D,N=0,F=0,z=0,j=0,B=-1,U=-1;const V={};let q=yt("");const H=r?r.anchor:t,G="none"!==l.layout.get("icon-text-fit").evaluate(b,{},E);let W=0,Y=0;
2if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?[W,Y]=l.layout.get("text-offset").evaluate(b,{},E).map((e=>e*Kh)):(W=l.layout.get("text-radial-offset").evaluate(b,{},E)*Kh,Y=uf),e.allowVerticalPlacement&&i.vertical){const e=i.vertical;if(f)L=bf(e),s&&(D=bf(s));else{const r=l.layout.get("text-rotate").evaluate(b,{},E)+90;k=vf(c,H,t,u,d,h,e,p,r,m),s&&(O=vf(c,H,t,u,d,h,s,_,r))}}if(o){const n=e.iconSizeData,i=A?Jh(e.iconSizeData,e.layers[0]._unevaluatedLayout._values["icon-size"],E,e.zoom,b):1,a=l.layout.get("icon-rotate").evaluate(b,{},E),p=ef(o,a,w,G,A?1/i:x.iconScaleFactor),f=s?ef(s,a,w,G,x.iconScaleFactor):void 0;M=vf(c,H,t,u,d,h,o,_,a,null,A?x.iconScaleFactor*i:1),N=4*p.length;let m=null;"source"===n.kind?(m=[Xh*l.layout.get("icon-size").evaluate(b,{},E)*x.iconScaleFactor],m[0]>gf&&fe("".concat(e.layerIds[0],': Value for "icon-size" is >= ').concat(mf,'. Reduce your "icon-size".'))):"composite"===n.kind&&(m=[Xh*x.compositeIconSizes[0].evaluate(b,{},E)*x.iconScaleFactor,Xh*x.compositeIconSizes[1].evaluate(b,{},E)*x.iconScaleFactor],(m[0]>gf||m[1]>gf)&&fe("".concat(e.layerIds[0],': Value for "icon-size" is >= ').concat(mf,'. Reduce your "icon-size".'))),e.addSymbols(e.icon,p,m,v,y,b,!1,r,t,C.lineStartIndex,C.lineLength,-1,S,E,T,P),B=e.icon.placedSymbolArray.length-1,f&&(F=4*f.length,e.addSymbols(e.icon,f,m,v,y,b,yp.vertical,r,t,C.lineStartIndex,C.lineLength,-1,S,E,T,P),U=e.icon.placedSymbolArray.length-1)}for(const J in i.horizontal){const n=i.horizontal[J];I||(q=yt(n.text),f?R=bf(n):I=vf(c,H,t,u,d,h,n,p,l.layout.get("text-rotate").evaluate(b,{},E),m));const o=1===n.positionedLines.length;if(z+=_f(e,r,t,n,a,l,f,b,m,C,i.vertical?yp.horizontal:yp.horizontalOnly,o?Object.keys(i.horizontal):[J],V,B,x,S,E,T),o)break}i.vertical&&(j+=_f(e,r,t,i.vertical,a,l,f,b,m,C,yp.vertical,["vertical"],V,U,x,S,E,T));let Z=-1;const K=(e,t)=>e?Math.max(e,t):t;Z=K(R,Z),Z=K(L,Z),Z=K(D,Z);const X=Z>-1?1:0;e.glyphOffsetArray.length>=65535&&fe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,H.x,H.y,H.z,V.right>=0?V.right:-1,V.center>=0?V.center:-1,V.left>=0?V.left:-1,V.vertical>=0?V.vertical:-1,B,U,q,void 0!==I?I:e.collisionBoxArray.length,void 0!==I?I+1:e.collisionBoxArray.length,void 0!==k?k:e.collisionBoxArray.length,void 0!==k?k+1:e.collisionBoxArray.length,void 0!==M?M:e.collisionBoxArray.length,void 0!==M?M+1:e.collisionBoxArray.length,O||e.collisionBoxArray.length,O?O+1:e.collisionBoxArray.length,u,z,j,N,F,X,0,W,Y,Z,0,G?1:0)}(e,s,_,a,r,n,i,N,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,E,C,l,0,T,I,y,t,o,c,u,d,h,f,m)};if("line"===M)for(const z of Up(t.geometry,0,0,Jr,Jr)){const t=jp(z,S,P,r.vertical||v,n,x,A,e.overscaling,Jr);for(const r of t)v&&xf(e,v.text,k,r)||F(z,r,h)}else if("line-center"===M){for(const z of t.geometry)if(z.length>1){const e=zp(z,P,r.vertical||v,n,x,A);e&&F(z,e,h)}}else if("Polygon"===t.type)for(const z of Fu(t.geometry,0)){const e=sf(z,16);F(z[0],new Rp(e.x,e.y,0,0,void 0),h)}else if("LineString"===t.type)for(const z of t.geometry)F(z,new Rp(z[0].x,z[0].y,0,0,void 0),h);else if("Point"===t.type)for(const z of t.geometry)for(const e of z)F([e],new Rp(e.x,e.y,0,0,void 0),h)}const mf=255,gf=mf*Xh;function _f(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_){const y=function(e,t,r,n,i,o,a,s){const l=[];if(0===t.positionedLines.length)return l;const c=n.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,u=function(e){const t=e[0],r=e[1],n=t*r;return n>0?[t,-r]:n<0?[-t,r]:0===t?[r,t]:[r,-t]}(r);let d=Math.abs(t.top-t.bottom);for(const m of t.positionedLines)d-=m.lineOffset;const h=t.positionedLines.length,p=d/h;let f=t.top-r[1];for(let m=0;m<h;++m){const e=t.positionedLines[m];f=af(t,p,f,m);for(const n of e.positionedGlyphs){if(!n.rect)continue;const e=n.rect||{};let o=_p+1,d=!0,h=1,p=0;if(n.imageName){const e=a[tr.build(n.imageName).getSerializedPrimary()];if(!e)continue;if(e.sdf){fe("SDF images are not supported in formatted text and will be ignored.");continue}d=!1,h=e.pixelRatio,o=qp/h}const m=(i||s)&&n.vertical,g=n.metrics.advance*n.scale/2,_=n.metrics,y=n.rect;if(null===y)continue;s&&t.verticalizable&&(p=n.imageName?g-n.metrics.width*n.scale/2:0);const v=i?[n.x+g,n.y]:[0,0];let b=[0,0],x=[0,0],w=!1;i||(m?(x=[n.x+g+u[0],n.y+u[1]-p],w=!0):b=[n.x+g+r[0],n.y+r[1]-p]);const A=y.w*n.scale/(h*(n.localGlyph?Kp:1)),S=y.h*n.scale/(h*(n.localGlyph?Kp:1));let E,T,P,C;if(m){const e=n.y-f,t=new H(-g,g-e),r=-Math.PI/2,i=new H(...x);
vendor: 6,285 bytes, line 2
2E=new H(-g+b[0],b[1]),E._rotateAround(r,t)._add(i),E.x+=-e+g,E.y-=(_.left-o)*n.scale;const a=n.imageName?_.advance*n.scale:Kh*n.scale,s=String.fromCodePoint(n.glyph);ip(s)?E.x+=(1-o)*n.scale:op(s)?E.x+=a-_.height*n.scale+(-o-1)*n.scale:E.x+=n.imageName||_.width+2*o===y.w&&_.height+2*o===y.h?(a-S)/2:(a-(_.height+2*o)*n.scale)/2,T=new H(E.x,E.y-A),P=new H(E.x+S,E.y),C=new H(E.x+S,E.y-A)}else{const e=(_.left-o)*n.scale-g+b[0],t=(-_.top-o)*n.scale+b[1],r=e+A,i=t+S;E=new H(e,t),T=new H(r,t),P=new H(e,i),C=new H(r,i)}if(c){let e;e=i?new H(0,0):w?new H(u[0],u[1]):new H(r[0],r[1]),E._rotateAround(c,e),T._rotateAround(c,e),P._rotateAround(c,e),C._rotateAround(c,e)}const I=new H(0,0),M=new H(0,0);l.push({tl:E,tr:T,bl:P,br:C,texPrimary:e,texSecondary:void 0,writingMode:t.writingMode,glyphOffset:v,sectionIndex:n.sectionIndex,isSDF:d,pixelOffsetTL:I,pixelOffsetBR:M,minFontScaleX:0,minFontScaleY:0})}}return l}(0,n,l,o,a,s,i,e.allowVerticalPlacement),v=e.textSizeData;let b=null;"source"===v.kind?(b=[Xh*o.layout.get("text-size").evaluate(s,{},g)*f.textScaleFactor],b[0]>gf&&fe("".concat(e.layerIds[0],': Value for "text-size" is >= ').concat(mf,'. Reduce your "text-size".'))):"composite"===v.kind&&(b=[Xh*f.compositeTextSizes[0].evaluate(s,{},g)*f.textScaleFactor,Xh*f.compositeTextSizes[1].evaluate(s,{},g)*f.textScaleFactor],(b[0]>gf||b[1]>gf)&&fe("".concat(e.layerIds[0],': Value for "text-size" is >= ').concat(mf,'. Reduce your "text-size".'))),e.addSymbols(e.text,y,b,l,a,s,u,t,r,c.lineStartIndex,c.lineLength,p,m,g,_,!1);for(const x of d)h[x]=e.text.placedSymbolArray.length-1;return 4*y.length}function yf(e){for(const t in e)return e[t];return null}function vf(e,t,r,n,i,o,a,s,l,c){let u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:1,d=a.top/u,h=a.bottom/u,p=a.left/u,f=a.right/u;const m=a.collisionPadding;if(m&&(p-=m[0],d-=m[1],f+=m[2],h+=m[3]),l){const e=new H(p,d),t=new H(f,d),r=new H(p,h),n=new H(f,h),i=Z(l);let o=new H(0,0);c&&(o=new H(c[0],c[1])),e._rotateAround(i,o),t._rotateAround(i,o),r._rotateAround(i,o),n._rotateAround(i,o),p=Math.min(e.x,t.x,r.x,n.x),f=Math.max(e.x,t.x,r.x,n.x),d=Math.min(e.y,t.y,r.y,n.y),h=Math.max(e.y,t.y,r.y,n.y)}return e.emplaceBack(t.x,t.y,t.z,r.x,r.y,p,d,f,h,s,n,i,o),e.length-1}function bf(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function xf(e,t,r,n){const i=e.compareText;if(t in i){const e=i[t];for(let t=e.length-1;t>=0;t--)if(n.dist(e[t])<r)return!0}else i[t]=[];return i[t].push(n),!1}function wf(e,t){const r=e.fovAboveCenter,n=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,i=(e._camera.position[2]*e.worldSize-n)/Math.cos(e._pitch),o=Math.sin(r)*i/Math.sin(Math.max(Math.PI/2-e._pitch-r,.01));let a=Math.sin(e._pitch)*o+i;const s=i*(1/e._horizonShift);return e.elevation&&0!==e.elevation.exaggeration()||(a*=1+Math.max(e.zoom-17,0)),Math.min(1.01*a,s)}function Af(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const r=Math.pow(2,-e.z),n=e.x*r,i=(e.x+1)*r,o=e.y*r,a=(e.y+1)*r,s=pl(n),l=pl(i),c=fl(o),u=fl(a),d=t.project(s,c),h=t.project(l,c),p=t.project(l,u),f=t.project(s,u);let m=Math.min(d.x,h.x,p.x,f.x),g=Math.min(d.y,h.y,p.y,f.y),_=Math.max(d.x,h.x,p.x,f.x),y=Math.max(d.y,h.y,p.y,f.y);const v=r/16;function b(e,r,n,i,o,a){const s=(n+o)/2,l=(i+a)/2,c=t.project(pl(s),fl(l)),u=Math.max(0,m-c.x,g-c.y,c.x-_,c.y-y);m=Math.min(m,c.x),_=Math.max(_,c.x),g=Math.min(g,c.y),y=Math.max(y,c.y),u>v&&(b(e,c,n,i,s,l),b(c,r,s,l,o,a))}b(d,h,n,o,i,o),b(h,p,i,o,i,a),b(p,f,i,a,n,a),b(f,d,n,a,n,o),m-=v,g-=v,_+=v,y+=v;const x=1/Math.max(_-m,y-g);return{scale:x,x:m*x,y:g*x,x2:_*x,y2:y*x,projection:t}}function Sf(e,t){let{x:r,y:n}=t;return new H(((r-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:0))*e.scale-e.x)*Jr,(n*e.scale-e.y)*Jr)}const Ef=B.mat4.identity(new Float32Array(16));class Tf{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new ol(0,0)}projectTilePoint(e,t,r){return{x:e,y:t,z:0}}locationPoint(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e._coordinatePoint(e.locationCoordinate(t),r)}pixelsPerMeter(e,t){return hl(1,e)*t}pixelSpaceConversion(e,t,r){return 1}farthestPixelDistance(e){return wf(e,e.pixelsPerMeter)}pointCoordinate(e,t,r,n){const i=e.horizonLineFromTop(!1),o=new H(t,Math.max(i,r));return e.rayIntersectionCoordinate(e.pointRayIntersection(o,n))}pointCoordinate3D(e,t,r){const n=new H(t,r);if(e.elevation)return e.elevation.pointCoordinate(n);{const t=this.pointCoordinate(e,n.x,n.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation&&e.elevation.visibleDemTiles.length)return!this.pointCoordinate3D(e,t.x,t.y);const r=e.horizonLineFromTop();return t.y<r}createInversionMatrix(e,t){return Ef}createTileMatrix(e,t,r){let n,i,o;const a=r.canonical,s=B.mat4.identity(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=Af(a,this);n=1,i=l.x+r.wrap*l.scale,o=l.y,B.mat4.scale(s,s,[n/l.scale,n/l.scale,e.pixelsPerMeter/t])}else n=t/e.zoomScale(a.z),i=(a.x+Math.pow(2,a.z)*r.wrap)*n,o=a.y*n;return B.mat4.translate(s,s,[i,o,0]),B.mat4.scale(s,s,[n/Jr,n/Jr,1]),s}upVector(e,t,r){return[0,0,1]}upVectorScale(e,t,r){return{metersToTile:1}}}class Pf extends Tf{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,r]=this.parallels=e.parallels||[29.5,45.5],n=Math.sin(Z(t));this.n=(n+Math.sin(Z(r)))/2,this.c=1+n*(2*this.n-n),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:r,c:n,r0:i}=this,o=Z(e-this.center[0]),a=Z(t),s=Math.sqrt(n-2*r*Math.sin(a))/r;return{x:s*Math.sin(o*r),y:s*Math.cos(o*r)-i,z:0}}unproject(e,t){const{n:r,c:n,r0:i}=this,o=i+t;let a=Math.atan2(e,Math.abs(o))*Math.sign(o);o*r<0&&(a-=Math.PI*Math.sign(e)*Math.sign(o));const s=Z(this.center[0])*r;a=re(a,-Math.PI-s,Math.PI-s);const l=ee(K(a/r)+this.center[0],-180,180),c=Math.asin(ee((n-(e*e+o*o)*r*r)/(2*r),-1,1)),u=ee(K(c),-gl,gl);return new ol(l,u)}}
vendor: 4,911 bytes, line 2
2const Cf=1.340264,If=-.081106,Mf=893e-6,kf=.003796,Of=Math.sqrt(3)/2;class Rf extends Tf{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const r=Math.asin(Of*Math.sin(t)),n=r*r,i=n*n*n;return{x:.5*(e*Math.cos(r)/(Of*(Cf+3*If*n+i*(7*Mf+9*kf*n)))/Math.PI+.5),y:1-.5*(r*(Cf+If*n+i*(Mf+kf*n))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let r=t=(2*(1-t)-1)*Math.PI,n=r*r,i=n*n*n;for(let c,u,d,h=0;h<12&&(u=r*(Cf+If*n+i*(Mf+kf*n))-t,d=Cf+3*If*n+i*(7*Mf+9*kf*n),c=u/d,r=ee(r-c,-Math.PI/3,Math.PI/3),n=r*r,i=n*n*n,!(Math.abs(c)<1e-12));++h);const o=Of*e*(Cf+3*If*n+i*(7*Mf+9*kf*n))/Math.cos(r),a=Math.asin(Math.sin(r)/Of),s=ee(180*o/Math.PI,-180,180),l=ee(180*a/Math.PI,-gl,gl);return new ol(s,l)}}class Lf extends Tf{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const r=360*(e-.5),n=ee(360*(.5-t),-gl,gl);return new ol(r,n)}}const Df=Math.PI/2;function Nf(e){return Math.tan((Df+e)/2)}class Ff extends Tf{constructor(e){super(e),this.center=e.center||[0,30];const[t,r]=this.parallels=e.parallels||[30,30];let n=Z(t),i=Z(r);this.southernCenter=n+i<0,this.southernCenter&&(n=-n,i=-i);const o=Math.cos(n),a=Nf(n);this.n=n===i?Math.sin(n):Math.log(o/Math.cos(i))/Math.log(Nf(i)/a),this.f=o*Math.pow(Nf(n),this.n)/this.n}project(e,t){t=Z(t),this.southernCenter&&(t=-t),e=Z(e-this.center[0]);const r=1e-6,{n:n,f:i}=this;i>0?t<-Df+r&&(t=-Df+r):t>Df-r&&(t=Df-r);const o=i/Math.pow(Nf(t),n);let a=o*Math.sin(n*e),s=i-o*Math.cos(n*e);return a=.5*(a/Math.PI+.5),s=.5*(s/Math.PI+.5),{x:a,y:this.southernCenter?s:1-s,z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,this.southernCenter&&(t=1-t),t=(2*(1-t)-.5)*Math.PI;const{n:r,f:n}=this,i=n-t,o=Math.sign(i),a=Math.sign(r)*Math.sqrt(e*e+i*i);let s=Math.atan2(e,Math.abs(i))*o;i*r<0&&(s-=Math.PI*Math.sign(e)*o);const l=ee(K(s/r)+this.center[0],-180,180),c=ee(K(2*Math.atan(Math.pow(n/a,1/r))-Df),-gl,gl);return new ol(l,this.southernCenter?-c:c)}}class zf extends Tf{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:ul(e),y:dl(t),z:0}}unproject(e,t){const r=pl(e),n=fl(t);return new ol(r,n)}}const jf=Z(gl);class Bf extends Tf{project(e,t){const r=(t=Z(t))*t,n=r*r;return{x:.5*((e=Z(e))*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let r=t=(2*(1-t)-1)*Math.PI,n=25,i=0,o=r*r;do{o=r*r;const e=o*o;i=(r*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),r=ee(r-i,-jf,jf)}while(Math.abs(i)>1e-6&&--n>0);o=r*r;const a=ee(K(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),s=K(r);return new ol(a,s)}}const Uf=Z(gl);class Vf extends Tf{project(e,t){t=Z(t),e=Z(e);const r=Math.cos(t),n=2/Math.PI,i=Math.acos(r*Math.cos(e/2)),o=Math.sin(i)/i,a=.5*(e*n+2*r*Math.sin(e/2)/o)||0,s=.5*(t+Math.sin(t)/o)||0;return{x:.5*(a/Math.PI+.5),y:1-.5*(s/Math.PI+1),z:0}}unproject(e,t){let r=e=(2*e-.5)*Math.PI,n=t=(2*(1-t)-1)*Math.PI,i=25;const o=1e-6;let a=0,s=0;do{const i=Math.cos(n),o=Math.sin(n),l=2*o*i,c=o*o,u=i*i,d=Math.cos(r/2),h=Math.sin(r/2),p=2*d*h,f=h*h,m=1-u*d*d,g=m?1/m:0,_=m?Math.acos(i*d)*Math.sqrt(1/m):0,y=.5*(2*_*i*h+2*r/Math.PI)-e,v=.5*(_*o+n)-t,b=.5*g*(u*f+_*i*d*c)+1/Math.PI,x=g*(p*l/4-_*o*h),w=.125*g*(l*h-_*o*u*p),A=.5*g*(c*d+_*f*i)+.5,S=x*w-A*b;a=(v*x-y*A)/S,s=(y*w-v*b)/S,r=ee(r-a,-Math.PI,Math.PI),n=ee(n-s,-Uf,Uf)}while((Math.abs(a)>o||Math.abs(s)>o)&&--i>0);return new ol(K(r),K(n))}}class qf extends Tf{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(Z(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:r,cosPhi:n}=this;return{x:Z(e)*n*r+.5,y:-Math.sin(Z(t))/n*r+.5,z:0}}unproject(e,t){const{scale:r,cosPhi:n}=this,i=-(t-.5)/r,o=ee(K((e-.5)/r)/n,-180,180),a=Math.asin(ee(i*n,-1,1)),s=ee(K(a),-gl,gl);return new ol(o,s)}}class Hf extends zf{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,t,r){const n=kc(e,t,r),i=Lc(Ec(r));return B.vec3.transformMat4(n,n,i),{x:n[0],y:n[1],z:n[2]}}locationPoint(e,t){const r=rl(t.lat,t.lng),n=B.vec3.normalize([],r),i=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude,o=hl(1,0)*Jr*i;B.vec3.scaleAndAdd(r,r,n,o);const a=B.mat4.identity(new Float64Array(16));return B.mat4.multiply(a,e.pixelMatrix,e.globeMatrix),B.vec3.transformMat4(r,r,a),new H(r[0],r[1])}pixelsPerMeter(e,t){return hl(1,0)*t}
vendor: 5,319 bytes, line 2
2pixelSpaceConversion(e,t,r){const n=hl(1,e)*t,i=It(hl(1,45)*t,n,r);return this.pixelsPerMeter(e,t)/i}createTileMatrix(e,t,r){const n=Dc(Ec(r.canonical));return B.mat4.multiply(new Float64Array(16),e.globeMatrix,n)}createInversionMatrix(e,t){const{center:r}=e,n=Lc(Ec(t));return B.mat4.rotateY(n,n,Z(r.lng)),B.mat4.rotateX(n,n,Z(r.lat)),B.mat4.scale(n,n,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(n)}pointCoordinate(e,t,r,n){return wc(e,t,r,!0)||new xl(0,0)}pointCoordinate3D(e,t,r){const n=this.pointCoordinate(e,t,r,0);return[n.x,n.y,n.z]}isPointAboveHorizon(e,t){return!wc(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const r=e.cameraToCenterDistance,n=e._centerAltitude*t,i=e._camera,o=e._camera.forward(),a=B.vec3.add([],B.vec3.scale([],o,-r),[0,0,n]),s=e.worldSize/(2*Math.PI),l=[0,0,-s],c=e.width/e.height,u=Math.tan(e.fovAboveCenter),d=B.vec3.scale([],i.up(),u),h=B.vec3.scale([],i.right(),u*c),p=B.vec3.normalize([],B.vec3.add([],B.vec3.add([],o,d),h)),f=[];let m;if(new hc(a,p).closestPointOnSphere(l,s,f)){const t=B.vec3.add([],f,l),r=B.vec3.sub([],t,a);m=Math.cos(e.fovAboveCenter)*B.vec3.length(r)}else{const e=B.vec3.sub([],a,l),t=B.vec3.sub([],l,a);B.vec3.normalize(t,t);const r=B.vec3.length(e)-s;m=Math.sqrt(r*(r+2*s));const n=Math.acos(m/(s+r))-Math.acos(B.vec3.dot(o,t));m*=Math.cos(n)}return 1.01*m}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),r=jc(e.zoom);if(r>0){const n=wf(e,hl(1,e.center.lat)*e.worldSize),i=e.worldSize/(2*Math.PI),o=Math.max(e.width,e.height)/e.worldSize*Math.PI;return It(t,n+i*(1-Math.cos(o)),Math.pow(r,10))}return t}upVector(e,t,r){return kc(t,r,e,1)}upVectorScale(e){return{metersToTile:bc(Oc(Ec(e)))}}}function Gf(e){const t=e.parallels,r=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new zf(e);case"equirectangular":return new Lf(e);case"naturalEarth":return new Bf(e);case"equalEarth":return new Rf(e);case"winkelTripel":return new Vf(e);case"albers":return r?new qf(e):new Pf(e);case"lambertConformalConic":return r?new qf(e):new Ff(e);case"globe":return new Hf(e)}throw new Error("Invalid projection name: ".concat(e.name))}const Wf=fd.VectorTileFeature.types,Yf=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Zf(e,t,r,n,i,o,a,s,l,c,u,d,h){const p=s?Math.min(gf,Math.round(s[0])):0,f=s?Math.min(gf,Math.round(s[1])):0;e.emplaceBack(t,r,Math.round(32*n),Math.round(32*i),o,a,(p<<1)+(l?1:0),f,16*c,16*u,256*d,256*h)}function Kf(e,t,r){e.emplaceBack(t,r)}function Xf(e,t,r,n,i,o,a){e.emplaceBack(t,r,n,i,o,a)}function Jf(e,t,r,n,i){e.emplaceBack(t,r,n,i),e.emplaceBack(t,r,n,i),e.emplaceBack(t,r,n,i),e.emplaceBack(t,r,n,i)}function Qf(e){for(const t of e.sections)if(wo(t.text))return!0;return!1}class $f{constructor(e){this.layoutVertexArray=new Ma,this.indexArray=new za,this.programConfigurations=e,this.segments=new fs,this.dynamicLayoutVertexArray=new Ea,this.opacityVertexArray=new Oa,this.placedSymbolArray=new rs,this.iconTransitioningVertexArray=new Ra,this.globeExtVertexArray=new ka,this.zOffsetVertexArray=new Ua}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length&&0===this.iconTransitioningVertexArray.length}upload(e,t,r,n,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Bh.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Vh.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Yf,!0),this.iconTransitioningVertexArray.length>0&&(this.iconTransitioningVertexBuffer=e.createVertexBuffer(this.iconTransitioningVertexArray,Hh.members,!0)),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Uh.members,!0)),!this.zOffsetVertexBuffer&&(this.zOffsetVertexArray.length>0||i)&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,qh.members,!0)),this.opacityVertexBuffer.itemSize=1),(r||n)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.iconTransitioningVertexBuffer&&this.iconTransitioningVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy())}}lo($f,"SymbolBuffers");class em{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new fs,this.collisionVertexArray=new Fa,this.collisionVertexArrayExt=new Ea}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Gh.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Wh.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
2stroy())}}lo(em,"CollisionBuffers");class tm{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.lut=e.lut,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.hasAnyIconTextFit=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=B.mat4.identity([]),this.placementViewportMatrix=B.mat4.identity([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Qh(this.zoom,t["text-size"]),this.iconSizeData=Qh(this.zoom,t["icon-size"]);const r=this.layers[0].layout,n=r.get("symbol-sort-key"),i=r.get("symbol-z-order");this.canOverlap=r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==i&&void 0!==n.constantOr(1),this.sortFeaturesByY=("viewport-y"===i||"auto"===i&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=r.get("text-writing-mode").map((e=>yp[e])),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.sourceID=e.sourceID,this.projection=e.projection,this.hasAnyZOffset=!1,this.zOffsetSortDirty=!1,this.zOffsetBuffersNeedUpload=r.get("symbol-z-elevate"),this.activeReplacements=[],this.replacementUpdateTime=0}createArrays(){this.text=new $f(new Us(this.layers,{zoom:this.zoom,lut:this.lut},(e=>e.startsWith("text")||e.startsWith("symbol")))),this.icon=new $f(new Us(this.layers,{zoom:this.zoom,lut:this.lut},(e=>e.startsWith("icon")||e.startsWith("symbol")))),this.glyphOffsetArray=new os,this.lineVertexArray=new as,this.symbolInstances=new is}calculateGlyphDependencies(e,t,r,n,i){for(const o of e){const e=o.codePointAt(0);if(void 0===e)break;if(t[e]=!0,n&&i&&e<=65535){const e=np[o];e&&(t[e.charCodeAt(0)]=!0)}}}updateFootprints(e,t){}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return!1;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped(),!0);return!Ed(this.activeReplacements,r)&&(this.activeReplacements=r,!0)}populate(e,t,r,n){const i=this.layers[0],o=i.layout,a="globe"===this.projection.name,s=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),[u,d]=o.get("icon-size-scale-range"),h=ee(t.scaleFactor||1,u,d),p=("constant"!==l.value.kind||l.value.value instanceof $t&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==s.value.kind||s.value.value.length>0),f="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,m=o.get("symbol-sort-key");if(this.features=[],!p&&!f)return;const g=t.iconDependencies,_=t.glyphDependencies,y=t.availableImages,v=new Do(this.zoom);for(const{feature:b,id:x,index:w,sourceLayerIndex:A}of e){const e=i._featureFilter.needGeometry,t=Ml(b,e);if(!i._featureFilter.filter(v,t,r))continue;if(e||(t.geometry=Il(b,r,n)),a&&1!==b.type&&r.z<=5){const e=t.geometry,n=.98078528056,i=(e,t)=>{const i=kc(e.x,e.y,r,1),o=kc(t.x,t.y,r,1);return B.vec3.dot(i,o)<n};for(let t=0;t<e.length;t++)e[t]=El(e[t],i)}let l,c;if(p){const e=i.getValueAndResolveTokens("text-field",t,r,y),n=$t.factory(e);Qf(n)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Oo()||this.hasRTLText&&Lo.isParsed())&&(l=rp(n,i,t))}if(f){const e=i.getValueAndResolveTokens("icon-image",t,r,y);c=e instanceof tr?e:tr.build(e)}if(!l&&!c)continue;const u=this.sortFeaturesByKey?m.evaluate(t,{},r):void 0,d={id:x,text:l,icon:c,index:w,sourceLayerIndex:A,geometry:t.geometry,properties:b.properties,type:Wf[b.type],sortKey:u};if(this.features.push(d),c){const e=Jh(this.iconSizeData,this.layers[0]._unevaluatedLayout._values["icon-size"],r,this.zoom,d)*h*this.pixelRatio,t=c.getPrimary().scaleSelf(e);if(g[t.id]=g[t.id]||[],g[t.id].push(t),c.nameSecondary){const t=c.getSecondary().scaleSelf(e);g[t.id]=g[t.id]||[],g[t.id].push(t)}}if(l){const e=s.evaluate(t,{},r).join(","),n="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(yp.vertical)>=0;for(const t of l.sections)if(t.image){const e=t.image.getPrimary().scaleSelf(this.pixelRatio);
vendor: 1,104 bytes, line 2
2g[e.id]=g[e.id]||[],g[e.id].push(e)}else{const r=mo(l.toString()),i=t.fontStack||e,o=_[i]=_[i]||{};this.calculateGlyphDependencies(t.text,o,n,this.allowVerticalPlacement,r)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},r={},n=[];let i=0;function o(t){n.push(e[t]),i++}function a(e,t,i){const o=r[e];return delete r[e],r[t]=o,n[o].geometry[0].pop(),n[o].geometry[0]=n[o].geometry[0].concat(i[0]),o}function s(e,r,i){const o=t[r];return delete t[r],t[e]=o,n[o].geometry[0].shift(),n[o].geometry[0]=i[0].concat(n[o].geometry[0]),o}function l(e,t,r){const n=r?t[0][t[0].length-1]:t[0][0];return"".concat(e,":").concat(n.x,":").concat(n.y)}for(let c=0;c<e.length;c++){const u=e[c],d=u.geometry,h=u.text?u.text.toString():null;if(!h){o(c);continue}const p=l(h,d),f=l(h,d,!0);if(p in r&&f in t&&r[p]!==t[f]){const e=s(p,f,d),i=a(p,f,n[e].geometry);delete t[p],delete r[f],r[l(h,n[i].geometry,!0)]=i,n[e].geometry=null}else p in r?a(p,f,d):f in t?s(p,f,d):(o(c),t[p]=i-1,r[f]=i-1)}return n.filter((e=>e.geometry))}(this.features)),this.sortFeaturesByKey&&this.features.sort(((e,t)=>
vendor: 6,316 bytes, line 2
2e.sortKey-t.sortKey))}update(e,t,r,n,i,o,a){this.text.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a),this.icon.programConfigurations.updatePaintArrays(e,t,i,r,n,o,a)}updateZOffset(){const e=(e,t,n)=>{r+=t,r>e.length&&e.resize(r);for(let i=-t;i<0;i++)e.emplace(i+r,n)},t=(e,t,r)=>{n+=t,n>e.length&&e.resize(n);for(let i=-t;i<0;i++)e.emplace(i+n,r)};if(!this.zOffsetBuffersNeedUpload)return;this.zOffsetBuffersNeedUpload=!1;let r=0,n=0;for(let i=0;i<this.symbolInstances.length;i++){const r=this.symbolInstances.get(i),{numHorizontalGlyphVertices:n,numVerticalGlyphVertices:o,numIconVertices:a}=r,s=r.zOffset,l=a>0;if((n>0||o>0)&&(e(this.text.zOffsetVertexArray,n,s),e(this.text.zOffsetVertexArray,o,s)),l){const{placedIconSymbolIndex:e,verticalPlacedIconSymbolIndex:n}=r;e>=0&&t(this.icon.zOffsetVertexArray,a,s),n>=0&&t(this.icon.zOffsetVertexArray,r.numVerticalIconVertices,s)}}this.text.zOffsetVertexBuffer&&this.text.zOffsetVertexBuffer.updateData(this.text.zOffsetVertexArray),this.icon.zOffsetVertexBuffer&&this.icon.zOffsetVertexBuffer.updateData(this.icon.zOffsetVertexArray)}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=Gf(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const r=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:n,y:i}of t)this.lineVertexArray.emplaceBack(n,i);return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}}addSymbols(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){const g=e.indexArray,_=e.layoutVertexArray,y=e.globeExtVertexArray,v=e.segments.prepareSegment(4*t.length,_,g,this.canOverlap?o.sortKey:void 0),b=this.glyphOffsetArray.length,x=v.vertexLength,w=this.allowVerticalPlacement&&a===yp.vertical?Math.PI/2:0,A=o.text&&o.text.sections;for(let E=0;E<t.length;E++){const{tl:n,tr:i,bl:a,br:c,texPrimary:u,texSecondary:d,pixelOffsetTL:b,pixelOffsetBR:x,minFontScaleX:S,minFontScaleY:T,glyphOffset:P,isSDF:C,sectionIndex:I}=t[E],M=v.vertexLength,k=P[1];if(Zf(_,l.x,l.y,n.x,k+n.y,u.x,u.y,r,C,b.x,b.y,S,T),Zf(_,l.x,l.y,i.x,k+i.y,u.x+u.w,u.y,r,C,x.x,b.y,S,T),Zf(_,l.x,l.y,a.x,k+a.y,u.x,u.y+u.h,r,C,b.x,x.y,S,T),Zf(_,l.x,l.y,c.x,k+c.y,u.x+u.w,u.y+u.h,r,C,x.x,x.y,S,T),s){const{x:t,y:r,z:n}=s.anchor,[i,o,a]=s.up;Xf(y,t,r,n,i,o,a),Xf(y,t,r,n,i,o,a),Xf(y,t,r,n,i,o,a),Xf(y,t,r,n,i,o,a),Jf(e.dynamicLayoutVertexArray,t,r,n,w)}else Jf(e.dynamicLayoutVertexArray,l.x,l.y,l.z,w);if(m){const t=d||u;Kf(e.iconTransitioningVertexArray,t.x,t.y),Kf(e.iconTransitioningVertexArray,t.x+t.w,t.y),Kf(e.iconTransitioningVertexArray,t.x,t.y+t.h),Kf(e.iconTransitioningVertexArray,t.x+t.w,t.y+t.h)}g.emplaceBack(M,M+1,M+2),g.emplaceBack(M+1,M+2,M+3),v.vertexLength+=4,v.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(P[0]),E!==t.length-1&&I===t[E+1].sectionIndex||e.programConfigurations.populatePaintArrays(_.length,o,o.index,{},h,p,f,A&&A[I])}const S=s?s.anchor:l;e.placedSymbolArray.emplaceBack(S.x,S.y,S.z,l.x,l.y,b,this.glyphOffsetArray.length-b,x,c,u,l.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],a,0,!1,0,d,0)}_commitLayoutVertex(e,t,r,n,i,o,a){e.emplaceBack(t,r,n,i,o,Math.round(a.x),Math.round(a.y))}_addCollisionDebugVertices(e,t,r,n,i,o,a){const s=r.segments.prepareSegment(4,r.layoutVertexArray,r.indexArray),l=s.vertexLength,c=a.tileAnchorX,u=a.tileAnchorY;for(let h=0;h<4;h++)r.collisionVertexArray.emplaceBack(0,0,0,0,0,0);this._commitDebugCollisionVertexUpdate(r.collisionVertexArrayExt,t,e.padding,a.zOffset),this._commitLayoutVertex(r.layoutVertexArray,n,i,o,c,u,new H(e.x1,e.y1)),this._commitLayoutVertex(r.layoutVertexArray,n,i,o,c,u,new H(e.x2,e.y1)),this._commitLayoutVertex(r.layoutVertexArray,n,i,o,c,u,new H(e.x2,e.y2)),this._commitLayoutVertex(r.layoutVertexArray,n,i,o,c,u,new H(e.x1,e.y2)),s.vertexLength+=4;const d=r.indexArray;d.emplaceBack(l,l+1),d.emplaceBack(l+1,l+2),d.emplaceBack(l+2,l+3),d.emplaceBack(l+3,l),s.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,r,n,i,o){for(let a=n;a<i;a++){const n=r.get(a),i=this.getSymbolInstanceTextSize(e,o,t,a);this._addCollisionDebugVertices(n,i,this.textCollisionBox,n.projectedAnchorX,n.projectedAnchorY,n.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(e,t,r,n,i,o){for(let a=n;a<i;a++){const n=r.get(a),i=this.getSymbolInstanceIconSize(e,t,o.placedIconSymbolIndex);this._addCollisionDebugVertices(n,i,this.iconCollisionBox,n.projectedAnchorX,n.projectedAnchorY,n.projectedAnchorZ,o)}}generateCollisionDebugBuffers(e,t,r){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new em(Da,Yh.members,Ra),this.iconCollisionBox=new em(Da,Yh.members,Ra);const n=ep(this.iconSizeData,e),i=ep(this.textSizeData,e,r);for(let o=0;o<this.symbolInstances.length;o++){const r=this.symbolInstances.get(o);this._addTextDebugCollisionBoxes(i,e,t,r.textBoxStartIndex,r.textBoxEndIndex,r),this._addTextDebugCollisionBoxes(i,e,t,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r),this._addIconDebugCollisionBoxes(n,e,t,r.iconBoxStartIndex,r.iconBoxEndIndex,r),this._addIconDebugCollisionBoxes(n,e,t,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex,r)}}getSymbolInstanceTextSize(e,t,r,n){const i=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:n),o=$h(this.textSizeData,e,i)/Kh;return this.tilePixelRatio*o}getSymbolInstanceIconSize(e,t,r){const n=this.icon.placedSymbolArray.get(r),i=$h(this.iconSizeData,e,n);return this.tilePixelRatio*i}
vendor: 17,067 bytes, line 2
2_commitDebugCollisionVertexUpdate(e,t,r,n){e.emplaceBack(t,-r,-r,n),e.emplaceBack(t,r,-r,n),e.emplaceBack(t,r,r,n),e.emplaceBack(t,-r,r,n)}_updateTextDebugCollisionBoxes(e,t,r,n,i,o,a){for(let s=n;s<i;s++){const n=r.get(s),i=this.getSymbolInstanceTextSize(e,o,t,s);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,i,n.padding,o.zOffset)}}_updateIconDebugCollisionBoxes(e,t,r,n,i,o,a){for(let s=n;s<i;s++){const n=r.get(s),i=this.getSymbolInstanceIconSize(e,t,o.placedIconSymbolIndex);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,i,n.padding,o.zOffset)}}updateCollisionDebugBuffers(e,t,r,n){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const i=ep(this.iconSizeData,e,n),o=ep(this.textSizeData,e,r);for(let a=0;a<this.symbolInstances.length;a++){const s=this.symbolInstances.get(a);this._updateTextDebugCollisionBoxes(o,e,t,s.textBoxStartIndex,s.textBoxEndIndex,s,r),this._updateTextDebugCollisionBoxes(o,e,t,s.verticalTextBoxStartIndex,s.verticalTextBoxEndIndex,s,r),this._updateIconDebugCollisionBoxes(i,e,t,s.iconBoxStartIndex,s.iconBoxEndIndex,s,n),this._updateIconDebugCollisionBoxes(i,e,t,s.verticalIconBoxStartIndex,s.verticalIconBoxEndIndex,s,n)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,r,n,i,o,a,s,l){const c={};if(t<r){const{x1:r,y1:n,x2:i,y2:o,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h,featureIndex:p}=e.get(t);c.textBox={x1:r,y1:n,x2:i,y2:o,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h},c.textFeatureIndex=p}if(n<i){const{x1:t,y1:r,x2:i,y2:o,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h,featureIndex:p}=e.get(n);c.verticalTextBox={x1:t,y1:r,x2:i,y2:o,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h},c.verticalTextFeatureIndex=p}if(o<a){const{x1:t,y1:r,x2:n,y2:i,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h,featureIndex:p}=e.get(o);c.iconBox={x1:t,y1:r,x2:n,y2:i,padding:a,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h},c.iconFeatureIndex=p}if(s<l){const{x1:t,y1:r,x2:n,y2:i,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h,featureIndex:p}=e.get(s);c.verticalIconBox={x1:t,y1:r,x2:n,y2:i,padding:o,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:u,tileAnchorX:d,tileAnchorY:h},c.verticalIconFeatureIndex=p}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const r=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}hasIconTextFit(){return this.hasAnyIconTextFit}addIndicesForPlacedSymbol(e,t){const r=e.placedSymbolArray.get(t),n=r.vertexStartIndex+4*r.numGlyphs;for(let i=r.vertexStartIndex;i<n;i+=4)e.indexArray.emplaceBack(i,i+1,i+2),e.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),r=Math.cos(e),n=[],i=[],o=[];for(let a=0;a<this.symbolInstances.length;++a){o.push(a);const e=this.symbolInstances.get(a);n.push(0|Math.round(t*e.tileAnchorX+r*e.tileAnchorY)),i.push(e.featureIndex)}return o.sort(((e,t)=>n[e]-n[t]||i[t]-i[e])),o}getSortedIndexesByZOffset(){if(!this.zOffsetSortDirty)return this.symbolInstanceIndexesSortedZOffset;if(!this.symbolInstanceIndexesSortedZOffset){this.symbolInstanceIndexesSortedZOffset=[];for(let e=0;e<this.symbolInstances.length;++e)this.symbolInstanceIndexesSortedZOffset.push(e)}return this.zOffsetSortDirty=!1,this.symbolInstanceIndexesSortedZOffset.sort(((e,t)=>this.symbolInstances.get(t).zOffset-this.symbolInstances.get(e).zOffset))}addToSortKeyRanges(e,t){const r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&&r.sortKey===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex);const{rightJustifiedTextSymbolIndex:r,centerJustifiedTextSymbolIndex:n,leftJustifiedTextSymbolIndex:i,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:a,verticalPlacedIconSymbolIndex:s}=t;r>=0&&this.addIndicesForPlacedSymbol(this.text,r),n>=0&&n!==r&&this.addIndicesForPlacedSymbol(this.text,n),i>=0&&i!==n&&i!==r&&this.addIndicesForPlacedSymbol(this.text,i),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let rm,nm,im;lo(tm,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),tm.addDynamicAttributes=Jf;class om{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Dt,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}lo(om,"FormatSectionOverride",{omit:["defaultValue"]});const am=()=>im||(im={layout:rm||(rm=new Yo({"symbol-placement":new Ho(Zo.layout_symbol["symbol-placement"]),"symbol-spacing":new Ho(Zo.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ho(Zo.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Go(Zo.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ho(Zo.layout_symbol["symbol-z-order"]),"symbol-z-elevate":new Ho(Zo.layout_symbol["symbol-z-elevate"]),"symbol-elevation-reference":new Ho(Zo.layout_symbol["symbol-elevation-reference"]),"icon-allow-overlap":new Ho(Zo.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ho(Zo.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ho(Zo.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ho(Zo.layout_symbol["icon-rotation-alignment"]),"icon-size":new Go(Zo.layout_symbol["icon-size"]),"icon-size-scale-range":new Ho(Zo.layout_symbol["icon-size-scale-range"]),"icon-text-fit":new Go(Zo.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Go(Zo.layout_symbol["icon-text-fit-padding"]),"icon-image":new Go(Zo.layout_symbol["icon-image"]),"icon-rotate":new Go(Zo.layout_symbol["icon-rotate"]),"icon-padding":new Ho(Zo.layout_symbol["icon-padding"]),"icon-keep-upright":new Ho(Zo.layout_symbol["icon-keep-upright"]),"icon-offset":new Go(Zo.layout_symbol["icon-offset"]),"icon-anchor":new Go(Zo.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ho(Zo.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ho(Zo.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ho(Zo.layout_symbol["text-rotation-alignment"]),"text-field":new Go(Zo.layout_symbol["text-field"]),"text-font":new Go(Zo.layout_symbol["text-font"]),"text-size":new Go(Zo.layout_symbol["text-size"]),"text-size-scale-range":new Ho(Zo.layout_symbol["text-size-scale-range"]),"text-max-width":new Go(Zo.layout_symbol["text-max-width"]),"text-line-height":new Go(Zo.layout_symbol["text-line-height"]),"text-letter-spacing":new Go(Zo.layout_symbol["text-letter-spacing"]),"text-justify":new Go(Zo.layout_symbol["text-justify"]),"text-radial-offset":new Go(Zo.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ho(Zo.layout_symbol["text-variable-anchor"]),"text-anchor":new Go(Zo.layout_symbol["text-anchor"]),"text-max-angle":new Ho(Zo.layout_symbol["text-max-angle"]),"text-writing-mode":new Ho(Zo.layout_symbol["text-writing-mode"]),"text-rotate":new Go(Zo.layout_symbol["text-rotate"]),"text-padding":new Ho(Zo.layout_symbol["text-padding"]),"text-keep-upright":new Ho(Zo.layout_symbol["text-keep-upright"]),"text-transform":new Go(Zo.layout_symbol["text-transform"]),"text-offset":new Go(Zo.layout_symbol["text-offset"]),"text-allow-overlap":new Ho(Zo.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ho(Zo.layout_symbol["text-ignore-placement"]),"text-optional":new Ho(Zo.layout_symbol["text-optional"]),visibility:new Ho(Zo.layout_symbol.visibility)})),paint:nm||(nm=new Yo({"icon-opacity":new Go(Zo.paint_symbol["icon-opacity"]),"icon-occlusion-opacity":new Go(Zo.paint_symbol["icon-occlusion-opacity"]),"icon-emissive-strength":new Go(Zo.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new Go(Zo.paint_symbol["text-emissive-strength"]),"icon-color":new Go(Zo.paint_symbol["icon-color"]),"icon-halo-color":new Go(Zo.paint_symbol["icon-halo-color"]),"icon-halo-width":new Go(Zo.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Go(Zo.paint_symbol["icon-halo-blur"]),"icon-translate":new Ho(Zo.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ho(Zo.paint_symbol["icon-translate-anchor"]),"icon-image-cross-fade":new Go(Zo.paint_symbol["icon-image-cross-fade"]),"text-opacity":new Go(Zo.paint_symbol["text-opacity"]),"text-occlusion-opacity":new Go(Zo.paint_symbol["text-occlusion-opacity"]),"text-color":new Go(Zo.paint_symbol["text-color"],{runtimeType:jt,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new Go(Zo.paint_symbol["text-halo-color"]),"text-halo-width":new Go(Zo.paint_symbol["text-halo-width"]),"text-halo-blur":new Go(Zo.paint_symbol["text-halo-blur"]),"text-translate":new Ho(Zo.paint_symbol["text-translate"]),"text-translate-anchor":new Ho(Zo.paint_symbol["text-translate-anchor"]),"icon-color-saturation":new Ho(Zo.paint_symbol["icon-color-saturation"]),"icon-color-contrast":new Ho(Zo.paint_symbol["icon-color-contrast"]),"icon-color-brightness-min":new Ho(Zo.paint_symbol["icon-color-brightness-min"]),"icon-color-brightness-max":new Ho(Zo.paint_symbol["icon-color-brightness-max"]),"symbol-z-offset":new Go(Zo.paint_symbol["symbol-z-offset"]),"icon-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"icon-halo-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"text-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"text-halo-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},im);class sm extends fa{constructor(e,t,r,n){super(e,am(),t,r,n),this._colorAdjustmentMatrix=B.mat4.identity([]),this.hasInitialOcclusionOpacityProperties=void 0!==e.paint&&("icon-occlusion-opacity"in e.paint||"text-occlusion-opacity"in e.paint)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const r=this.layout.get("text-writing-mode");if(r){const e=[];for(const t of r)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getColorAdjustmentMatrix(e,t,r,n){return this._saturation===e&&this._contrast===t&&this._brightnessMin===r&&this._brightnessMax===n||(this._colorAdjustmentMatrix=function(e,t,r,n){e=Ee(e),t=Se(t);const i=B.mat4.create(),o=e/3,a=1-2*o,s=[a,o,o,0,o,a,o,0,o,o,a,0,0,0,0,1],l=.5-.5*t,c=n-r;return B.mat4.multiply(i,[c,0,0,0,0,c,0,0,0,0,c,0,r,r,r,1],[t,0,0,0,0,t,0,0,0,0,t,0,l,l,l,1]),B.mat4.multiply(i,i,s),i}(e,t,r,n),this._saturation=e,this._contrast=t,this._brightnessMin=r,this._brightnessMax=n),this._colorAdjustmentMatrix}getValueAndResolveTokens(e,t,r,n){const i=this.layout.get(e).evaluate(t,{},r,n),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Xi(o.value)||!i?i:function(e,t){return t.replace(/{([^{}]+)}/g,((t,r)=>r in e?String(e[r]):""))}(t.properties,i)}createBucket(e){return new tm(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of am().paint.overridableProperties){if(!sm.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),r=new om(t),n=new Ki(r,t.property.specification,this.scope,this.options);let i=null;i="constant"===t.value.kind||"source"===t.value.kind?new Qi("source",n):new $i("composite",n,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new Vo(t.property,i,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,r){return!(!this.layout||t.isDataDriven()||r.isDataDriven())&&sm.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const r=e.get("text-field"),n=am().paint.properties[t];let i=!1;const o=e=>{for(const t of e)if(n.overrides&&n.overrides.hasOverride(t))return void(i=!0)};if("constant"===r.value.kind&&r.value.value instanceof $t)o(r.value.value.sections);else if("source"===r.value.kind){const e=t=>{i||(t instanceof ar&&ir(t.value)===qt?o(t.value.sections):t instanceof ur?o(t.sections):t.eachChild(e))},t=r.value;t._styleExpression&&e(t._styleExpression.expression)}return i}getProgramIds(){return["symbol"]}getDefaultProgramParams(e,t,r){return{config:new Bs(this,{zoom:t,lut:r}),overrideFog:!1}}}let lm,cm,um,dm;var hm=ya([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);function pm(e){switch(e){case WebGL2RenderingContext.RGBA8:return WebGL2RenderingContext.RGBA;case WebGL2RenderingContext.DEPTH_COMPONENT16:return WebGL2RenderingContext.DEPTH_COMPONENT;case WebGL2RenderingContext.DEPTH24_STENCIL8:return WebGL2RenderingContext.DEPTH_STENCIL;case WebGL2RenderingContext.R8:case WebGL2RenderingContext.R32F:return WebGL2RenderingContext.RED}}function fm(e){switch(e){case WebGL2RenderingContext.RGBA8:return WebGL2RenderingContext.UNSIGNED_BYTE;case WebGL2RenderingContext.DEPTH_COMPONENT16:return WebGL2RenderingContext.UNSIGNED_SHORT;case WebGL2RenderingContext.DEPTH24_STENCIL8:return WebGL2RenderingContext.UNSIGNED_INT_24_8;case WebGL2RenderingContext.R8:return WebGL2RenderingContext.UNSIGNED_BYTE;case WebGL2RenderingContext.R32F:return WebGL2RenderingContext.FLOAT}}class mm{constructor(e,t,r,n){this.context=e,this.format=r,this.useMipmap=n&&n.useMipmap,this.texture=e.gl.createTexture(),this.update(t,{premultiply:n&&n.premultiply})}update(e,t){const r=e&&e instanceof HTMLVideoElement&&0===e.width?e.videoWidth:e.width,n=e&&e instanceof HTMLVideoElement&&0===e.height?e.videoHeight:e.height,{context:i}=this,{gl:o}=i,{x:a,y:s}=t&&t.position?t.position:{x:0,y:0},l=a+r,c=s+n;!this.size||this.size[0]===l&&this.size[1]===c||(o.bindTexture(o.TEXTURE_2D,null),o.deleteTexture(this.texture),this.texture=o.createTexture(),this.size=null),o.bindTexture(o.TEXTURE_2D,this.texture),i.pixelStoreUnpackFlipY.set(!1),i.pixelStoreUnpack.set(1),i.pixelStoreUnpackPremultiplyAlpha.set(this.format===o.RGBA8&&(!t||!1!==t.premultiply));const u=e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||ImageBitmap&&e instanceof ImageBitmap;if(!this.size&&l>
20&&c>0){const e=this.useMipmap?Math.floor(Math.log2(Math.max(l,c)))+1:1;o.texStorage2D(o.TEXTURE_2D,e,this.format,l,c),this.size=[l,c]}if(this.size)if(u)o.texSubImage2D(o.TEXTURE_2D,0,a,s,pm(this.format),fm(this.format),e);else{const t=e.data;t&&o.texSubImage2D(o.TEXTURE_2D,0,a,s,r,n,pm(this.format),fm(this.format),t)}this.useMipmap&&o.generateMipmap(o.TEXTURE_2D)}bind(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{context:n}=this,{gl:i}=n;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.minFilter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,this.useMipmap&&!r?e===i.NEAREST?i.NEAREST_MIPMAP_NEAREST:i.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),t!==this.wrapS&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrapS=t)}bindExtraParam(e,t,r,n){const{context:i}=this,{gl:o}=i;o.bindTexture(o.TEXTURE_2D,this.texture),t!==this.magFilter&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MAG_FILTER,t),this.magFilter=t),e!==this.minFilter&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_MIN_FILTER,this.useMipmap?e===o.NEAREST?o.NEAREST_MIPMAP_NEAREST:o.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),r!==this.wrapS&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,r),this.wrapS=r),n!==this.wrapT&&(o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,n),this.wrapT=n)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class gm{constructor(e,t){this.context=e,this.texture=t}bind(e,t){const{context:r}=this,{gl:n}=r;n.bindTexture(n.TEXTURE_2D,this.texture),e!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrapS=t)}}function _m(e,t,r,n,i,o,a,s){const l=[e,t,1,r,n,1,i,o,1],c=[a,s,1],u=B.mat3.adjoint([],l),[d,h,p]=B.vec3.transformMat3(c,c,u);return B.mat3.multiply(l,l,[d,0,0,0,h,0,0,0,p])}function ym(e,t,r,n,i,o,a,s){const l=function(e,t,r,n,i,o,a,s){const l=_m(0,0,1,0,1,1,0,1),c=_m(e,t,r,n,i,o,a,s),u=B.mat3.adjoint([],l);return B.mat3.multiply(c,c,u)}(e,t,r,n,i,o,a,s);return[l[2]/l[8]/Jr,l[5]/l[8]/Jr]}function vm(e){return[e[0],Math.min(Math.max(e[1],-gl),gl)]}class bm extends At{constructor(e,t,r,n){super(),this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.onNorthPole=!1,this.onSouthPole=!1,this.setEventedParent(n),this.options=t,this._dirty=!1}load(e,t){if(this._loaded=t||!1,this.fire(new vt("dataloading",{dataType:"source"})),this.url=this.options.url,!this.url)return e&&(this.coordinates=e),this._loaded=!0,void this._finishLoading();this._imageRequest=ut(this.map._requestManager.transformRequest(this.url,tt.Image),((t,r)=>{this._imageRequest=null,this._loaded=!0,t?this.fire(new bt(t)):r&&(this.image=r instanceof HTMLImageElement?Ne.getImageData(r):r,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading())}))}loaded(){return this._loaded}updateImage(e){return e.url?(this._imageRequest&&e.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}setTexture(e){if(!(e.handle instanceof WebGLTexture))throw new Error("The provided handle is not a WebGLTexture instance");return this.texture=new gm(this.map.painter.context,e.handle),this.width=e.dimensions[0],this.height=e.dimensions[1],this._dirty=!1,this._loaded=!0,this._finishLoading(),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new vt("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(e){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),!this.texture||this.texture instanceof gm||this.texture.destroy(),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy())}setCoordinates(e){if(this.coordinates=e,this._boundsArray=void 0,this._unsupportedCoords=!1,!e.length)return this;this.onNorthPole=!1,this.onSouthPole=!1;let t=e[0][1],r=e[0][1];for(const i of e)i[1]>r&&(r=i[1]),i[1]<t&&(t=i[1]);const n=(r+t)/2;if(n>gl?this.onNorthPole=!0:n<-gl&&(this.onSouthPole=!0),!this.onNorthPole&&!this.onSouthPole){const t=e.map(xl.fromLngLat);this.tileID=function(e){let t=1/0,r=1/0,n=-1/0,i=-1/0;for(const c of e)t=Math.min(t,c.x),r=Math.min(r,c.y),n=Math.max(n,c.x),i=Math.max(i,c.y);const o=Math.max(n-t,i-r),a=Math.max(0,Math.floor(-Math.log(o)/M
vendor: 11,391 bytes, line 2
2ath.LN2)),s=Math.pow(2,a);let l=Math.floor((t+n)/2*s);return l>1&&(l-=1),new nc(a,l,Math.floor((r+i)/2*s))}(t),this.minzoom=this.maxzoom=this.tileID.z}return this.fire(new vt("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0,this._unsupportedCoords=!1}_prepareData(e){for(const g in this.tiles){const e=this.tiles[g];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}if(this._boundsArray||this.onNorthPole||this.onSouthPole||this._unsupportedCoords)return;const t=Af(new nc(0,0,0),this.map.transform.projection),r=[t.projection.project(this.coordinates[0][0],this.coordinates[0][1]),t.projection.project(this.coordinates[1][0],this.coordinates[1][1]),t.projection.project(this.coordinates[2][0],this.coordinates[2][1]),t.projection.project(this.coordinates[3][0],this.coordinates[3][1])];if(!function(e){const t=e[1].x-e[0].x,r=e[1].y-e[0].y,n=e[2].x-e[1].x,i=e[2].y-e[1].y,o=e[3].x-e[2].x,a=e[3].y-e[2].y,s=e[0].x-e[3].x,l=e[0].y-e[3].y,c=t*i-n*r,u=n*a-o*i,d=o*l-s*a,h=s*r-t*l;return c>0&&u>0&&d>0&&h>0||c<0&&u<0&&d<0&&h<0}(r))return console.warn("Image source coordinates are defining non-convex area in the Mercator projection"),void(this._unsupportedCoords=!0);const n=Af(this.tileID,this.map.transform.projection),[i,o,a,s]=this.coordinates.map((e=>{const t=n.projection.project(e[0],e[1]);return Sf(n,t)._round()}));this.perspectiveTransform=ym(i.x,i.y,o.x,o.y,a.x,a.y,s.x,s.y);const l=this._boundsArray=new wa;l.emplaceBack(i.x,i.y,0,0),l.emplaceBack(o.x,o.y,Jr,0),l.emplaceBack(s.x,s.y,0,Jr),l.emplaceBack(a.x,a.y,Jr,Jr),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy()),this.boundsBuffer=e.createVertexBuffer(l,hm.members),this.boundsSegments=fs.simpleSegment(0,0,4,2);const c=[],u=[vm((d=this.coordinates)[0]),vm(d[1]),vm(d[2]),vm(d[3])];var d;const[h,p,f,m]=function(e){let t=e[0][0],r=t,n=e[0][1],i=n;for(let o=1;o<e.length;o++)e[o][0]<t?t=e[o][0]:e[o][0]>r&&(r=e[o][0]),e[o][1]<n?n=e[o][1]:e[o][1]>i&&(i=e[o][1]);return[t,n,r-t,i-n]}(u);{const n=new wa,[i,o,a,s]=function(e){let t=e[0].x,r=t,n=e[0].y,i=n;for(let o=1;o<e.length;o++)e[o].x<t?t=e[o].x:e[o].x>r&&(r=e[o].x),e[o].y<n?n=e[o].y:e[o].y>i&&(i=e[o].y);return[t,n,r-t,i-n]}(r),l=e=>[(e.x-i)/a,(e.y-o)/s],[u,d,g,_]=r.map(l),y=function(e,t,r,n,i,o,a,s){const l=_m(0,0,1,0,1,1,0,1),c=_m(e,t,r,n,i,o,a,s),u=B.mat3.adjoint([],c);return B.mat3.multiply(l,l,u)}(u[0],u[1],d[0],d[1],g[0],g[1],_[0],_[1]);this.elevatedGlobePerspectiveTransform=ym(u[0],u[1],d[0],d[1],g[0],g[1],_[0],_[1]);const v=(e,t)=>{c.push(e.lng);const r=Math.round((e.lng-h)/f*Jr),i=Math.round((e.lat-p)/m*Jr),o=l(t),a=B.vec3.transformMat3([],[o[0],o[1],1],y),s=Math.round(a[0]/a[2]*Jr),u=Math.round(a[1]/a[2]*Jr);n.emplaceBack(r,i,s,u)},b=r[3].x-r[0].x,x=r[3].y-r[0].y,w=r[2].x-r[1].x,A=r[2].y-r[1].y;for(let e=0;e<65;e++){const n=e/64,i=[r[0].x+n*b,r[0].y+n*x],o=[r[1].x+n*w,r[1].y+n*A],a=o[0]-i[0],s=o[1]-i[1];for(let e=0;e<65;e++){const r=e/64,n={x:i[0]+a*r,y:i[1]+s*r,z:0};v(t.projection.unproject(n.x,n.y),n)}}this.elevatedGlobeVertexBuffer=e.createVertexBuffer(n,hm.members)}{this.maxLongitudeTriangleSize=0;let t=[],r=new za;const n=(e,n,i)=>{r.emplaceBack(e,n,i);const o=c[e],a=c[n],s=c[i],l=Math.min(Math.min(o,a),s),u=Math.max(Math.max(o,a),s)-l;u>this.maxLongitudeTriangleSize&&(this.maxLongitudeTriangleSize=u),t.push(l+u/2)};for(let e=0;e<64;e++)for(let t=0;t<64;t++){const r=65*e+t,i=r+1,o=r+65,a=o+1;n(r,o,i),n(i,o,a)}[t,r]=function(e,t){const r=Array.from({length:e.length},((e,t)=>t));r.sort(((t,r)=>e[t]-e[r]));const n=[],i=new za;for(let o=0;o<r.length;o++){const a=r[o];n.push(e[a]);const s=3*a,l=s+1;i.emplaceBack(t.uint16[s],t.uint16[l],t.uint16[l+1])}return[n,i]}(t,r),this.elevatedGlobeTrianglesCenterLongitudes=t,this.elevatedGlobeIndexBuffer=e.createIndexBuffer(r)}this.elevatedGlobeSegments=fs.simpleSegment(0,0,4225,8192),this.elevatedGlobeGridMatrix=new Float32Array([0,f/Jr,0,m/Jr,0,0,p,h,0])}prepare(){const e=0!==Object.keys(this.tiles).length;if(this.tileID&&!e)return;const t=this.map.painter.context,r=t.gl;!this._dirty||this.texture instanceof gm||(this.texture?this.texture.update(this.image):(this.texture=new mm(t,this.image,r.RGBA8),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this._dirty=!1),e&&this._prepareData(t)}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}getSegmentsForLongitude(e){const t=this.elevatedGlobeSegments;if(!this.elevatedGlobeTrianglesCenterLongitudes||!t)return null;const r=this.elevatedGlobeTrianglesCenterLongitudes;let n=(i=e+180)+360*Math.round((r[0]-i)/360);var i;const o=new fs,a=(e,r)=>{o.segments.push({vertexOffset:0,primitiveOffset:e,vertexLength:t.segments[0].vertexLength,primitiveLength:r,sortKey:void 0,vaos:{}})},s=.51*this.maxLongitudeTriangleSize;if(Math.abs(r[0]-n)<=s){const e=Ae(r,0,r.length,n+s);return e===r.length||a(e,we(r,e+1,r.length,n+360-s)-e),o}n<r[0]&&(n+=360);const l=we(r,0,r.length,n-s);if(l===r.length)return a(0,r.length),o;a(0,l-0);const c=Ae(r,l+1,r.length,n+s);return c!==r.length&&a(c,r.length-c),o}}const xm=(Math.pow(256,2)-1)/16907520;class wm extends fa{constructor(e,t,r,n){super(e,{layout:um||(um=new Yo({visibility:new Ho(Zo.layout_raster.visibility)})),paint:dm||(dm=new Yo({"raster-opacity":new Ho(Zo.paint_raster["raster-opacity"]),"raster-color":new Wo(Zo.paint_raster["raster-color"]),"raster-color-mix":new Ho(Zo.paint_raster["raster-color-mix"]),"raster-color-range":new Ho(Zo.paint_raster["raster-color-range"]),"raster-hue-rotate":new Ho(Zo.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ho(Zo.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ho(Zo.paint_raster["raster-brightness-max"]),"raster-saturation":new Ho(Zo.paint_raster["raster-saturation"]),"raster-contrast":new Ho(Zo.paint_raster["raster-contrast"]),"raster-resampling":new Ho(Zo.paint_raster["raster-resampling"]),"raster-fade-duration":new Ho(Zo.paint_raster["raster-fade-duration"]),"raster-emissive-strength":new Ho(Zo.paint_raster["raster-emissive-strength"]),"raster-array-band":new Ho(Zo.paint_raster["raster-array-band"]),"raster-elevation":new Ho(Zo.paint_raster["raster-elevation"]),"raster-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this.updateColorRamp(),this._curRampRange=[NaN,NaN]}getProgramIds(){return["raster"]}hasColorMap(){return!!this._transitionablePaint._values["raster-color"].value.value}tileCoverLift(){return this.paint.get("raster-elevation")}isDraped(e){return!(e&&e._source instanceof bm&&(e._source.onNorthPole||e._source.onSouthPole))&&0===this.paint.get("raster-elevation")}_handleSpecialPaintPropertyUpdate(e){"raster-color"!==e&&"raster-color-range"!==e||(this._curRampRange=[NaN,NaN],this.updateColorRamp())}updateColorRamp(e){if(!this.hasColorMap())return;if(!this._curRampRange)return;const t=this._transitionablePaint._values["raster-color"].value.expression,[r,n]=e||this._transitionablePaint._values["raster-color-range"].value.expression.evaluate({zoom:0})||[NaN,NaN];isNaN(r)&&isNaN(n)||r===this._curRampRange[0]&&n===this._curRampRange[1]||(this.colorRamp=cu({expression:t,evaluationKey:"rasterValue",image:this.colorRamp,clips:[{start:r,end:n}],resolution:256}),this.colorRampTexture=null,this._curRampRange=[r,n])}}let Am,Sm,Em,Tm,Pm;class Cm extends fa{constructor(e,t,r,n){super(e,{layout:Am||(Am=new Yo({visibility:new Ho(Zo["layout_raster-particle"].visibility)})),paint:Sm||(Sm=new Yo({"raster-particle-array-band":new Ho(Zo["paint_raster-particle"]["raster-particle-array-band"]),"raster-particle-count":new Ho(Zo["paint_raster-particle"]["raster-particle-count"]),"raster-particle-color":new Wo(Zo["paint_raster-particle"]["raster-particle-color"]),"raster-particle-max-speed":new Ho(Zo["paint_raster-particle"]["raster-particle-max-speed"]),"raster-particle-speed-factor":new Ho(Zo["paint_raster-particle"]["raster-particle-speed-factor"]),"raster-particle-fade-opacity-factor":new Ho(Zo["paint_raster-particle"]["raster-particle-fade-opacity-factor"]),"raster-particle-reset-rate-factor":new Ho(Zo["paint_raster-particle"]["raster-particle-reset-rate-factor"]),"raster-particle-elevation":new Ho(Zo["paint_raster-particle"]["raster-particle-elevation"]),"raster-particle-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this._updateColorRamp(),this.lastInvalidatedAt=Ne.now()}onRemove(e){this.colorRampTexture&&this.colorRampTexture.destroy(),this.tileFramebuffer&&this.tileFramebuffer.destroy(),this.particleFramebuffer&&this.particleFramebuffer.destroy()}hasColorMap(){return!!this._transitionablePaint._values["raster-particle-color"].value.value}getProgramIds(){return["rasterParticle"]}hasOffscreenPass(){return"none"!==this.visibility}isDraped(e){return!1}_handleSpecialPaintPropertyUpdate(e){"raster-particle-color"!==e&&"raster-particle-max-speed"!==e||(this._updateColorRamp(),this._invalidateAnimationState()),"raster-particle-count"===e&&this._invalidateAnimationState()}_updateColorRamp(){if(!this.hasColorMap())return;const e=this._transitionablePaint._values["raster-particle-color"].value.expression,t=this._transitionablePaint._values["raster-particle-max-speed"].value.expression.evaluate({zoom:0});this.colorRamp=cu({expression:e,evaluationKey:"rasterParticleSpeed",image:this.colorRamp,clips:[{start:0,end:t}],resolution:256}),this.colorRampTexture=null}_invalidateAnimationState(){this.lastInvalidatedAt=Ne.now()}tileCoverLift(){return this.paint.get("raster-particle-elevation")}}class Im extends fa{constructor(e,t){super(e,{},t,null),this.implementation=e,e.slot&&(this.slot=e.slot)}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isDraped(e){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}function Mm(e,t,r){const n=[0,0,1],i=B.quat.identity([]);return B.quat.rotateY(i,i,r?-Z(e)+Math.PI:Z(e)),B.quat.rotateX(i,i,-Z(t)),B.vec3.transformQuat(n,n,i),B.vec3.normalize(n,n)}function km(e,t){const r=Rm(e.projection,e.zoom,e.width,e.height),n=function(e,t,r,n,i){const o=new ol(r.lng-180*Lm,r.lat),a=new ol(r.lng+180*Lm,r.lat),s=e.project(o.lng,o.lat),l=e.project(a.lng,a.lat),c=-Math.atan2(l.y-s.y,l.x-s.x),u=xl.fromLngLat(r);u.y=ee(u.y,-1+Lm,1-Lm);const d=u.toLngLat(),h=e.project(d.lng,d.lat),p=xl.fromLngLat(d);p.x+=Lm;const f=p.toLngLat(),m=e.project(f.lng,f.lat),g=Nm(m.x-h.x,m.y-h.y,c),_=xl.fromLngLat(d);_.y+=Lm;const y=_.toLngLat(),v=e.project(y.lng,y.lat),b=Nm(v.x-h.x,v.y-h.y,c),x=Math.abs(g.x)/Math.abs(b.y),w=B.mat4.identity([]);B.mat4.rotateZ(w,w,-c*(1-(i?0:n)));const A=B.mat4.identity([]);return B.mat4.scale(A,A,[1,1-(1-x)*n,1]),A[4]=-b.x/b.y*n,B.mat4.rotateZ(A,A,c),B.mat4.multiply(A,w,A),A}
2(e.projection,0,e.center,r,t),i=Om(e);return B.mat4.scale(n,n,[i,i,1]),n}function Om(e){const t=e.projection,r=Rm(e.projection,e.zoom,e.width,e.height),n=Dm(t,e.center),i=Dm(t,ol.convert(t.center));return Math.pow(2,n*r+(1-r)*i)}function Rm(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0;const o=e.range;if(!o)return 0;const a=Math.min(i,Math.max(r,n)),s=Math.log(a/1024)/Math.LN2;return te(o[0]+s,o[1]+s,t)}const Lm=1/4e4;function Dm(e,t){const r=ee(t.lat,-gl,gl),n=new ol(t.lng-180*Lm,r),i=new ol(t.lng+180*Lm,r),o=e.project(n.lng,r),a=e.project(i.lng,r),s=xl.fromLngLat(n),l=xl.fromLngLat(i),c=a.x-o.x,u=a.y-o.y,d=l.x-s.x,h=l.y-s.y,p=Math.sqrt((d*d+h*h)/(c*c+u*u));return Math.log(p)/Math.LN2}function Nm(e,t,r){const n=Math.cos(r),i=Math.sin(r);return{x:e*n-t*i,y:e*i+t*n}}function Fm(e,t,r){B.mat4.identity(e),B.mat4.rotateZ(e,e,Z(t[2])),B.mat4.rotateX(e,e,Z(t[0])),B.mat4.rotateY(e,e,Z(t[1])),B.mat4.scale(e,e,r),B.mat4.multiply(e,e,[1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1])}function zm(e,t,r,n,i,o,a,s){const l=[r[0]-t[0],r[1]-t[1],0],c=[n[0]-t[0],n[1]-t[1],0];if(B.vec3.length(l)<1e-12||B.vec3.length(c)<1e-12)return B.quat.identity(e);const u=B.vec3.cross([],l,c);B.vec3.normalize(u,u),B.vec3.subtract(c,n,t),l[2]=(o-i)*s,c[2]=(a-i)*s;const d=l;return B.vec3.cross(d,l,c),B.vec3.normalize(d,d),B.quat.rotationTo(e,u,d)}function jm(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=jc(t.zoom),i=function(e,t,r){const n=t.worldSize,i=[e[12],e[13],e[14]],o=fl(i[1]/n),a=pl(i[0]/n),s=B.mat4.identity([]),l=hl(1,o)*n,c=hl(1,0)*n*yl(o,t.zoom),u=1/Nc(n);let d=c*u;if(r){const e=Rm(t.projection,t.zoom,t.width,t.height,1024);d=u*t.projection.pixelSpaceConversion(t.center.lat,n,e)}const h=rl(o,a);B.vec3.add(h,h,B.vec3.scale([],B.vec3.normalize([],h),l*d*i[2]));const p=function(e){const t=[e[0],e[1],e[2]];let r=[0,1,0];const n=B.vec3.cross([],r,t);return B.vec3.cross(r,t,n),0===B.vec3.squaredLength(r)&&(r=[0,1,0],B.vec3.cross(n,t,r)),B.vec3.normalize(n,n),B.vec3.normalize(r,r),B.vec3.normalize(t,t),[n[0],n[1],n[2],0,r[0],r[1],r[2],0,t[0],t[1],t[2],0,e[0],e[1],e[2],1]}(h);B.mat4.scale(s,s,[d,d,d*l]),B.mat4.translate(s,s,[-i[0],-i[1],-i[2]]);const f=B.mat4.multiply([],t.globeMatrix,p);return B.mat4.multiply(f,f,s),B.mat4.multiply(f,f,e),f}(e,t,r);if(n>0){const r=function(e,t){const r=t.worldSize,n=hl(1,0)*r*yl(t.center.lat,t.zoom)/Nc(r),i=hl(1,t.center.lat)*r,o=B.mat4.identity([]);return B.mat4.rotateY(o,o,Z(t.center.lng)),B.mat4.rotateX(o,o,Z(t.center.lat)),B.mat4.translate(o,o,[0,0,Ys]),B.mat4.scale(o,o,[n,n,n*i]),B.mat4.translate(o,o,[t.point.x-.5*r,t.point.y-.5*r,0]),B.mat4.multiply(o,o,e),B.mat4.multiply(o,t.globeMatrix,o)}(e,t);return function(e,t,r){const n=(e,t,r)=>{const n=B.vec3.length(e),i=B.vec3.length(t),o=Tc(e,t,r);return B.vec3.scale(o,o,1/B.vec3.length(o)*It(n,i,r))},i=n([e[0],e[1],e[2]],[t[0],t[1],t[2]],r),o=n([e[4],e[5],e[6]],[t[4],t[5],t[6]],r),a=n([e[8],e[9],e[10]],[t[8],t[9],t[10]],r),s=Tc([e[12],e[13],e[14]],[t[12],t[13],t[14]],r);return[i[0],i[1],i[2],0,o[0],o[1],o[2],0,a[0],a[1],a[2],0,s[0],s[1],s[2],1]}(i,r,n)}return i}function Bm(e,t,r,n){const i=vc.projectAabbCorners(n,r);let o=Number.MAX_VALUE,a=-1;for(let c=0;c<i.length;++c){const e=i[c];e[0]=(.5*e[0]+.5)*t.width,e[1]=(.5-.5*e[1])*t.height,e[2]<o&&(a=c,o=e[2])}const s=e=>new H(i[e][0],i[e][1]);let l;switch(a){case 0:case 6:l=[s(1),s(5),s(4),s(7),s(3),s(2),s(1)];break;case 1:case 7:l=[s(0),s(4),s(5),s(6),s(2),s(3),s(0)];break;case 3:case 5:l=[s(1),s(0),s(4),s(7),s(6),s(2),s(1)];break;default:l=[s(1),s(5),s(6),s(7),s(3),s(0),s(1)]}if(Ll(e,l))return o}const Um=ya([{name:"a_pos_3f",components:3,type:"Float32"}]),Vm=ya([{name:"a_color_3f",components:3,type:"Float32"}]),qm=ya([{name:"a_color_4f",components:4,type:"Float32"}]),Hm=ya([{name:"a_uv_2f",components:2,type:"Float32"}]),Gm=ya([{name:"a_normal_3f",components:3,type:"Float32"}]),Wm=ya([{name:"a_normal_matrix0",components:4,type:"Float32"},{name:"a_normal_matrix1",components:4,type:"Float32"},{name:"a_normal_matrix2",components:4,type:"Float32"},{name:"a_normal_matrix3",components:4,type:"Float32"}]),Ym=ya([{name:"a_pbr",components:4,type:"Uint16"},{name:"a_heightBasedEmissiveStrength",components:3,type:"Float32"}]),Zm={None:0,Model:1,Symbol:2,FillExtrusion:4,All:7};class Km{constructor(e,t,r,n){this.message=(e?"".concat(e,": "):"")+r,n&&(this.identifier=n),null!=t&&t.__line__&&(this.line=t.__line__)}}function Xm(e,t){const r=-1===e.indexOf("://");try{return new URL(e,r&&t?"http://example.com":void 0),!0}catch(e){return!1}}class Jm{constructor(e,t){this.feature=e,this.instancedDataOffset=t,this.instancedDataCount=0,this.rotation=[0,0,0],this.scale=[1,1,1],this.translation=[0,0,0]}}class Qm{constructor(){this.instancedDataArray=new Ka,this.instancesEvaluatedElevation=[],this.features=[],this.idToFeaturesIndex={}}}class $m{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.layers=e.layers,this.layerIds=this.layers.map((e=>e.fqid)),this.projection=e.projection,this.index=e.index,this.hasZoomDependentProperties=this.layers[0].isZoomDependent(),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.hasPattern=!1,this.instancesPerModel={},this.validForExaggeration=0,this.maxVerticalOffset=0,this.maxScale=0,this.maxHeight=0,this.lookupDim=this.zoom>this.canonical.z?256:this.zoom>15?75:100,this.instanceCount=0,this.terrainElevationMin=0,this.terrainElevationMax=0,this.validForDEMTile={id:null,timestamp:0},this.modelUris=[],this.modelsRequested=!1,this.activeReplacements=[],this.replacementUpdateTime=0}updateFootprints(e,t){}populate(e,t,r,n){this.tileToMeter=bl(r);const i=this.layers[0]._featureFilter.needGeometry;this.lookup=new Uint8Array(this.lookupDim*this.lookupDim);for(const{feature:o,id:a,index:s,sourceLayerIndex:l}of e){const e=null!=a?a:o.properties&&o.properties.hasOwnProperty("id")?o.properties.id:void 0,c=Ml(o,i);if(!this.layers[0]._featureFilter.filter(new Do(this.zoom),c,r))continue;const u={id:e,sourceLayerIndex:l,index:s,geometry:i?c.geometry:Il(o,r,n),properties:o.properties,type:o.type,patterns:{}},d=this.addFeature(u,u.geometry,c);d&&t.featureIndex.insert(o,u.geometry,s,l,this.index,this.instancesPerModel[d].instancedDataArray.length,Jr/32)}this.lookup=null}update(e,t,r,n){for(const i in this.instancesPerModel){const t=this.instancesPerModel[i];for(const r in e)t.idToFeaturesIndex.hasOwnProperty(r)&&(this.evaluate(t.features[t.idToFeaturesIndex[r]],e[r],t,!0),this.uploaded=!1)}this.maxHeight=0}updateZoomBasedPaintProperties(){if(!this.hasZoomDependentProperties)return!1;let e=!1;for(const t in this.instancesPerModel){const r=this.instancesPerModel[t];for(const t of r.features){const n=this.layers[0],i=t.feature,o=this.canonical,a=n.paint.get("model-rotation").evaluate(i,{},o),s=n.paint.get("model-scale").evaluate(i,{},o),l=n.paint.get("model-translation").evaluate(i,{},o);B.vec3.exactEquals(t.rotation,a)&&B.vec3.exactEquals(t.scale,s)&&B.vec3.exactEquals(t.translation,l)||(this.evaluate(t,t.featureStates,r,!0),e=!0)}}return e}updateReplacement(e,t,r,n){if(t.updateTime===this.replacementUpdateTime)return!1;this.replacementUpdateTime=t.updateTime;const i=t.getReplacementRegionsForTile(e.toUnwrapped(),!0);if(Ed(this.activeReplacements,i))return!1;this.activeReplacements=i;let o=!1;for(const a in this.instancesPerModel){const t=this.instancesPerModel[a],i=t.instancedDataArray;for(const a of t.features){const t=a.instancedDataOffset,s=a.instancedDataCount;for(let a=0;a<s;a++){const s=16*(a+t);let l=i.float32[s+0];const c=l>Jr;l=c?l-Jr:l;const u=Math.floor(l),d=i.float32[s+1];let h=!1;for(const t of this.activeReplacements)if(!xd(t,r,Zm.Model,n)&&!(t.min.x>u||u>t.max.x||t.min.y>d||d>t.max.y)&&(h=kd(Md(u,d,e.canonical,t.footprintTileId.canonical),t.footprint),h))break;i.float32[s]=h?l+Jr:l,o=o||h!==c}}}return o}isEmpty(){for(const e in this.instancesPerModel)if(0!==this.instancesPerModel[e].instancedDataArray.length)return!1;return!0}uploadPending(){return!this.uploaded}upload(e){if(!this.uploaded)for(const t in this.instancesPerModel){const r=this.instancesPerModel[t];r.instancedDataArray.length<0||0===r.instancedDataArray.length||(r.instancedDataBuffer?r.instancedDataBuffer.updateData(r.instancedDataArray):r.instancedDataBuffer=e.createVertexBuffer(r.
2instancedDataArray,Wm.members,!0,void 0,this.instanceCount))}this.uploaded=!0}destroy(){for(const t in this.instancesPerModel){const e=this.instancesPerModel[t];0!==e.instancedDataArray.length&&e.instancedDataBuffer&&e.instancedDataBuffer.destroy()}const e=this.layers[0].modelManager;if(e&&this.modelUris)for(const t of this.modelUris)e.removeModel(t,"")}addFeature(e,t,r){const n=this.layers[0],i=n.layout.get("model-id").evaluate(r,{},this.canonical);if(!i)return fe("modelId is not evaluated for layer ".concat(n.id," and it is not going to get rendered.")),i;Xm(i,!1)&&(this.modelUris.includes(i)||this.modelUris.push(i)),this.instancesPerModel[i]||(this.instancesPerModel[i]=new Qm);const o=this.instancesPerModel[i],a=o.instancedDataArray,s=new Jm(r,a.length);for(const l of t)for(const e of l){if(e.x<0||e.x>=Jr||e.y<0||e.y>=Jr)continue;const t=(this.lookupDim-1)/Jr,r=this.lookupDim*(e.y*t|0)+e.x*t|0;if(this.lookup){if(0!==this.lookup[r])continue;this.lookup[r]=1}this.instanceCount++;const n=a.length;a.resize(n+1),o.instancesEvaluatedElevation.push(0),a.float32[16*n]=e.x,a.float32[16*n+1]=e.y}return s.instancedDataCount=o.instancedDataArray.length-s.instancedDataOffset,s.instancedDataCount>0&&(e.id&&(o.idToFeaturesIndex[e.id]=o.features.length),o.features.push(s),this.evaluate(s,{},o,!1)),i}getModelUris(){return this.modelUris}evaluate(e,t,r,n){const i=this.layers[0],o=e.feature,a=this.canonical,s=e.rotation=i.paint.get("model-rotation").evaluate(o,t,a),l=e.scale=i.paint.get("model-scale").evaluate(o,t,a),c=e.translation=i.paint.get("model-translation").evaluate(o,t,a),u=i.paint.get("model-color").evaluate(o,t,a);u.a=i.paint.get("model-color-mix-intensity").evaluate(o,t,a);const d=[];this.maxVerticalOffset<c[2]&&(this.maxVerticalOffset=c[2]),this.maxScale=Math.max(Math.max(this.maxScale,l[0]),Math.max(l[1],l[2])),Fm(d,s,l);const h=Math.round(100*u.a)+u.b/1.05;for(let p=0;p<e.instancedDataCount;++p){const t=e.instancedDataOffset+p,i=16*t,o=r.instancedDataArray.float32;let s=0;n&&(s=o[i+6]-r.instancesEvaluatedElevation[t]);const l=0|o[i+1];o[i]=(0|o[i])+u.r/1.05,o[i+1]=l+u.g/1.05,o[i+2]=h,o[i+3]=1/(a.z>10?this.tileToMeter:bl(a,l)),o[i+4]=c[0],o[i+5]=c[1],o[i+6]=c[2]+s,o[i+7]=d[0],o[i+8]=d[1],o[i+9]=d[2],o[i+10]=d[4],o[i+11]=d[5],o[i+12]=d[6],o[i+13]=d[8],o[i+14]=d[9],o[i+15]=d[10],r.instancesEvaluatedElevation[t]=c[2]}}}let eg,tg;lo($m,"ModelBucket",{omit:["layers"]}),lo(Qm,"PerModelAttributes"),lo(Jm,"ModelFeature");const rg=64,ng={CoordinateSpaceTile:1,CoordinateSpaceYUp:2,HasMapbox
2MeshFeatures:4,HasMeshoptCompression:8};function ig(e,t,r,n,i,o,a,s,l){let c=arguments.length>9&&void 0!==arguments[9]&&arguments[9];const u=r.zoom,d=r.project(n),h=yl(n.lat,u),p=1/h;B.mat4.identity(e),B.mat4.translate(e,e,[d.x+a[0]*p,d.y+a[1]*p,a[2]]);let f=1,m=1;const g=r.worldSize;if(c){if("mercator"===r.projection.name){let e=0;r.elevation&&(e=r.elevation.getAtPointOrZero(new xl(d.x/g,d.y/g),0));const t=B.vec4.transformMat4([],[d.x,d.y,e,1],r.projMatrix)[3]/r.cameraToCenterDistance;f=t,m=t*yl(r.center.lat,u)}else if("globe"===r.projection.name){const t=jm(e,r),i=B.mat4.multiply([],r.projMatrix,t),o=[0,0,0,1];B.vec4.transformMat4(o,o,i);const a=o[3]/r.cameraToCenterDistance,s=jc(u),l=r.projection.pixelsPerMeter(n.lat,g)*yl(n.lat,u),c=r.projection.pixelsPerMeter(r.center.lat,g)*yl(r.center.lat,u);f=a/It(l,_l(r.center.lat),s),m=a*h/l,f*=c,m*=c}}else f=p;B.mat4.scale(e,e,[f,f,m]);const _=[...e],y=t.orientation,v=[];if(Fm(v,[y[0]+i[0],y[1]+i[1],y[2]+i[2]],o),B.mat4.multiply(e,_,v),s&&r.elevation){let i=0;const o=[];if(l&&r.elevation){i=function(e,t,r,n,i){const o=t.elevation;if(!o)return 0;const a=vc.projectAabbCorners(r,n),s=hl(1,i.lat)*t.worldSize,l=function(e,t){const r=[0,0,1],n=[{corners:[0,1,3,2],dotProductWithUp:0},{corners:[1,5,2,6],dotProductWithUp:0},{corners:[0,4,1,5],dotProductWithUp:0},{corners:[2,6,3,7],dotProductWithUp:0},{corners:[4,7,5,6],dotProductWithUp:0},{corners:[0,3,4,7],dotProductWithUp:0}];for(const i of n){const n=e[i.corners[0]],o=e[i.corners[1]],a=e[i.corners[2]],s=[o[0]-n[0],o[1]-n[1],t*(o[2]-n[2])],l=B.vec3.cross(s,s,[a[0]-n[0],a[1]-n[1],t*(a[2]-n[2])]);B.vec3.normalize(l,l),i.dotProductWithUp=B.vec3.dot(l,r)}return n.sort(((e,t)=>e.dotProductWithUp-t.dotProductWithUp)),n[0].corners}(a,s),c=a[l[0]],u=a[l[1]],d=a[l[2]],h=a[l[3]],p=o.getAtPointOrZero(new xl(c[0]/t.worldSize,c[1]/t.worldSize),0),f=o.getAtPointOrZero(new xl(u[0]/t.worldSize,u[1]/t.worldSize),0),m=o.getAtPointOrZero(new xl(d[0]/t.worldSize,d[1]/t.worldSize),0),g=o.getAtPointOrZero(new xl(h[0]/t.worldSize,h[1]/t.worldSize),0),_=(p+g)/2,y=(f+m)/2;return _>y?f<m?zm(e,u,h,c,f,g,p,s):zm(e,d,c,h,m,p,g,s):p<g?zm(e,c,u,d,p,f,m,s):zm(e,h,d,u,g,m,f,s),Math.max(_,y)}(o,r,t.aabb,e,n);const a=B.mat4.fromQuat([],o),s=B.mat4.multiply([],a,v);B.mat4.multiply(e,_,s)}else i=r.elevation.getAtPointOrZero(new xl(d.x/g,d.y/g),0);0!==i&&(e[14]+=i)}}function og(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.uploaded||(e.gfxTexture=new mm(t,e.image,r?t.gl.R8:t.gl.RGBA8,{useMipmap:e.sampler.minFilter>=t.gl.NEAREST_MIPMAP_NEAREST}),e.uploaded=!0,e.image=null)}function ag(e,t,r){e.indexBuffer=t.createIndexBuffer(e.indexArray,!1,!0),e.vertexBuffer=t.createVertexBuffer(e.vertexArray,Um.members,!1,!0),e.normalArray&&(e.normalBuffer=t.createVertexBuffer(e.normalArray,Gm.members,!1,!0)),e.texcoordArray&&(e.texcoordBuffer=t.createVertexBuffer(e.texcoordArray,Hm.members,!1,!0)),e.colorArray&&(e.colorBuffer=t.createVertexBuffer(e.colorArray,(12===e.colorArray.bytesPerElement?Vm:qm).members,!1,!0)),e.featureArray&&(e.pbrBuffer=t.createVertexBuffer(e.featureArray,Ym.members,!0)),e.segments=fs.simpleSegment(0,0,e.vertexArray.length,e.indexArray.length);const n=e.material;n.pbrMetallicRoughness.baseColorTexture&&og(n.pbrMetallicRoughness.baseColorTexture,t),n.pbrMetallicRoughness.metallicRoughnessTexture&&og(n.pbrMetallicRoughness.metallicRoughnessTexture,t),n.normalTexture&&og(n.normalTexture,t),n.occlusionTexture&&og(n.occlusionTexture,t,r),n.emissionTexture&&og(n.emissionTexture,t)}function sg(e,t,r){if(e.meshes)for(const n of e.meshes)ag(n,t,r);if(e.children)for(const n of e.children)sg(n,t,r)}function lg(e){if(e.meshes)for(const t of e.meshes)t.indexArray.destroy(),t.vertexArray.destroy(),t.colorArray&&t.colorArray.destroy(),t.normalArray&&t.normalArray.destroy(),t.texcoordArray&&t.texcoordArray.destroy(),t.featureArray&&t.featureArray.destroy();if(e.children)for(const t of e.children)lg(t)}function cg(e){if(e.meshes)for(const r of e.meshes)r.vertexBuffer&&(r.vertexBuffer.destroy(),r.indexBuffer.destroy(),r.normalBuffer&&r.n
vendor: 6,636 bytes, line 2
2ormalBuffer.destroy(),r.texcoordBuffer&&r.texcoordBuffer.destroy(),r.colorBuffer&&r.colorBuffer.destroy(),r.pbrBuffer&&r.pbrBuffer.destroy(),r.segments.destroy(),r.material&&((t=r.material).pbrMetallicRoughness.baseColorTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture.destroy(),t.pbrMetallicRoughness.metallicRoughnessTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture.destroy(),t.normalTexture&&t.normalTexture.gfxTexture&&t.normalTexture.gfxTexture.destroy(),t.emissionTexture&&t.emissionTexture.gfxTexture&&t.emissionTexture.gfxTexture.destroy(),t.occlusionTexture&&t.occlusionTexture.gfxTexture&&t.occlusionTexture.gfxTexture.destroy()));var t;if(e.children)for(const r of e.children)cg(r)}class ug{constructor(e,t,r){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=r}static create(e,t,r){const n=r||e.findDEMTileFor(t);if(!n||!n.dem)return;const i=n.dem,o=n.tileID,a=1<<t.canonical.z-o.canonical.z;return new ug(n,i.dim/Jr/a,[(t.canonical.x/a-o.canonical.x)*i.dim,(t.canonical.y/a-o.canonical.y)*i.dim])}tileCoordToPixel(e,t){const r=t*this._scale+this._offset[1],n=Math.floor(e*this._scale+this._offset[0]),i=Math.floor(r);return new H(n,i)}getElevationAt(e,t,r,n){const i=e*this._scale+this._offset[0],o=t*this._scale+this._offset[1],a=Math.floor(i),s=Math.floor(o),l=this._dem;return n=!!n,r?It(It(l.get(a,s,n),l.get(a,s+1,n),o-s),It(l.get(a+1,s,n),l.get(a+1,s+1,n),o-s),i-a):l.get(a,s,n)}getElevationAtPixel(e,t,r){return this._dem.get(e,t,!!r)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*hl(1,e)*this._dem.stride}}const dg=new Float32Array(262144),hg=new Uint8Array(262144);function pg(e){let t=0;if(e.meshes)for(const r of e.meshes)t=Math.max(t,r.aabb.max[2]);if(e.children)for(const r of e.children)t=Math.max(t,pg(r));return t}function fg(e,t,r){if(e.meshes)for(const n of e.meshes){if(n.aabb.min[0]===1/0)continue;const i=vc.applyTransform(n.aabb,e.matrix);r.insert(t,i.min[0],i.min[1],i.max[0],i.max[1])}if(e.children)for(const n of e.children)fg(n,t,r)}const mg=["","wall","door","roof","window","lamp","logo"];class gg{constructor(e){this.node=e,this.evaluatedRMEA=[[1,0,0,1],[1,0,0,1],[1,0,0,1],[1,0,0,1],[.4,1,0,1],[1,0,0,1],[1,0,0,1]],this.hiddenByReplacement=!1,this.evaluatedScale=[1,1,1],this.evaluatedColor=[],this.emissionHeightBasedParams=[],this.cameraCollisionOpacity=1,this.feature={type:"Point",id:e.id,geometry:[],properties:{height:pg(e)}},this.aabb=this._getLocalBounds(),this.state=null}_getLocalBounds(){if(!this.node.meshes)return new vc([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);if(!this.aabb){let e=0;const t=new vc([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);for(const r of this.node.meshes)this.node.lightMeshIndex!==e&&(r.transformedAabb=vc.applyTransformFast(r.aabb,this.node.matrix),t.encapsulate(r.transformedAabb)),e++;this.aabb=t}return this.aabb}}class _g{constructor(e,t,r,n,i,o,a){this.id=r,this.layers=e,this.layerIds=this.layers.map((e=>e.fqid)),this.stateDependentLayerIds=this.layers.filter((e=>e.isStateDependent())).map((e=>e.id)),this.modelTraits|=ng.CoordinateSpaceTile,this.uploaded=!1,this.hasPattern=!1,n&&(this.modelTraits|=ng.HasMapboxMeshFeatures),i&&(this.modelTraits|=ng.HasMeshoptCompression),this.zoom=-1,this.terrainExaggeration=1,this.projection={name:"mercator"},this.replacementUpdateTime=0,this.elevationReadFromZ=255,this.brightness=o,this.dirty=!0,this.needsUpload=!1,this.nodesInfo=[];for(const s of t)this.nodesInfo.push(new gg(s)),fg(s,a.featureIndexArray.length,a.grid),a.featureIndexArray.emplaceBack(this.nodesInfo.length-1,0,a.bucketLayerIDs.length-1,0);this.states={}}updateFootprints(e,t){for(const r of this.getNodesInfo()){const n=r.node;n.footprint&&t.push({footprint:n.footprint,id:e})}}update(e){const t=0!==Object.keys(e).length;if(t&&!this.stateDependentLayers.length)return;const r=t?this.stateDependentLayers:this.layers;if(!G(e,this.states))for(const n of r)this.evaluate(n,e);this.states=structuredClone(e)}populate(){console.log("populate 3D model bucket")}uploadPending(){return!this.uploaded||this.needsUpload}upload(e){if(!this.needsUpload)return;const t=this.getNodesInfo();for(const r of t){const t=r.node;this.uploaded?this.updatePbrBuffer(t):sg(t,e,!0)}for(const r of t)lg(r.node);this.uploaded=!0,this.needsUpload=!1}updatePbrBuffer(e){let t=!1;if(!e.meshes)return t;for(const r of e.meshes)r.pbrBuffer&&(r.pbrBuffer.updateData(r.featureArray),t=!0);return t}needsReEvaluation(e,t,r){const n=e.transform.projectionOptions,i=e.style.getBrightness(),o=this.brightness!==i;if(!this.uploaded||this.dirty||n.name!==this.projection.name||yg(r.paint.get("model-color").value,o)||yg(r.paint.get("model-color-mix-intensity").value,o)||yg(r.paint.get("model-roughness").value,o)||yg(r.paint.get("model-emissive-strength").value,o)||yg(r.paint.get("model-height-based-emissive-strength-multiplier").value,o)){this.projection=n,this.brightness=i;const e=this.getNodesInfo();for(const t of e)t.state=null;return!0}return!1}evaluateScale(e,t){if(e.transform.zoom===this.zoom)return;this.zoom=e.transform.zoom;const r=this.getNodesInfo(),n=this.id.canonical;for(const i of r){const e=i.feature;i.evaluatedScale=t.paint.get("model-scale").evaluate(e,{},n)}}evaluate(e,t){const r=this.getNodesInfo();for(const n of r){if(!n.node.meshes)continue;const r=n.feature,i=t&&t[r.id];if(G(i,n.state))continue;n.state=structuredClone(i);const o=n.node.meshes&&n.node.meshes[0].featureData,a=n.evaluatedColor[2],s=n.evaluatedRMEA[2],l=this.id.canonical;if(n.hasTranslucentParts=!1,o){for(let t=0;t<mg.length;t++){const o=mg[t];o.length&&(r.properties.part=o);const a=e.paint.get("model-color").evaluate(r,i,l).toRenderColor(null),s=e.paint.get("model-color-mix-intensity").evaluate(r,i,l);n.evaluatedColor[t]=[a.r,a.g,a.b,s],n.evaluatedRMEA[t][0]=e.paint.get("model-roughness").evaluate(r,i,l),n.evaluatedRMEA[t][2]=e.paint.get("model-emissive-strength").evaluate(r,i,l),n.evaluatedRMEA[t][3]=a.a,n.emissionHeightBasedParams[t]=e.paint.get("model-height-based-emissive-strength-multiplier").evaluate(r,i,l),!n.hasTranslucentParts&&a.a<1&&(n.hasTranslucentParts=!0)}delete r.properties.part,bg(n,a!==n.evaluatedColor[2]||s!==n.evaluatedRMEA[2],this.modelTraits)}else n.evaluatedRMEA[0][2]=e.paint.get("model-emissive-strength").evaluate(r,i,l);n.evaluatedScale=e.paint.get("model-scale").evaluate(r,i,l),this.updatePbrBuffer(n.node)||(this.needsUpload=!0)}this.dirty=!1}elevationUpdate(e,t,r,n){const i=e.findDEMTileFor(r);if(i&&(i.tileID.canonical!==this.terrainTile||t!==this.terrainExaggeration)){if
2(i.dem&&i.tileID.overscaledZ!==this.elevationReadFromZ){this.elevationReadFromZ=i.tileID.overscaledZ;const t=ug.create(e,r,i);if(!t)return;this.modelTraits&ng.HasMapboxMeshFeatures&&this.updateDEM(e,t,r,n);for(const e of this.getNodesInfo()){const r=e.node;if(!r.footprint||!r.footprint.vertices||!r.footprint.vertices.length)continue;const n=r.footprint.vertices;let i=t.getElevationAt(n[0].x,n[0].y,!0,!0);for(let e=1;e<n.length;e++)i=Math.min(i,t.getElevationAt(n[e].x,n[e].y,!0,!0));r.elevation=i}}this.terrainTile=i.tileID.canonical,this.terrainExaggeration=t}}updateDEM(e,t,r,n){let i=t._dem._modifiedForSources[n];if(void 0===i&&(t._dem._modifiedForSources[n]=[],i=t._dem._modifiedForSources[n]),i.includes(r.canonical))return;const o=t._dem.dim;i.push(r.canonical);let a=!1;for(const s of this.getNodesInfo()){const e=s.node;if(!e.footprint||!e.footprint.grid)continue;const r=e.footprint.grid,n=t.tileCoordToPixel(r.min.x,r.min.y),i=t.tileCoordToPixel(r.max.x,r.max.y),l=Math.min(Math.min(o-i.y,n.x),Math.min(n.y,o-i.x));if(l<0)continue;const c=ee(l,2,5);let u=Math.max(0,n.x-c),d=Math.max(0,n.y-c),h=Math.min(i.x+c,o-1),p=Math.min(i.y+c,o-1);for(let t=d;t<=p;++t)for(let e=u;e<=h;++e)hg[t*o+e]=255;let f=0,m=0;for(let a=0;a<r.cellsY;++a)for(let e=0;e<r.cellsX;++e){if(!r.cells[a*r.cellsX+e])continue;const n=t.tileCoordToPixel(r.min.x+e/r.xScale,r.min.y+a/r.yScale),i=t.tileCoordToPixel(r.min.x+(e+1)/r.xScale,r.min.y+(a+1)/r.yScale);for(let e=n.y;e<=Math.min(i.y+1,o-1);++e)for(let r=n.x;r<=Math.min(i.x+1,o-1);++r)255===hg[e*o+r]&&(hg[e*o+r]=0,f+=t.getElevationAtPixel(r,e),m++)}const g=f/m;u=Math.max(1,n.x-c),d=Math.max(1,n.y-c),h=Math.min(i.x+c,o-2),p=Math.min(i.y+c,o-2),a=!0;for(let a=d;a<=p;++a)for(let e=u;e<=h;++e)0===hg[a*o+e]&&(dg[a*o+e]=t._dem.set(e,a,g));for(let a=1;a<c;++a){u=Math.max(1,n.x-a),d=Math.max(1,n.y-a),h=Math.min(i.x+a,o-2),p=Math.min(i.y+a,o-2);for(let e=d;e<=p;++e)for(let r=u;r<=h;++r){const n=e*o+r;if(255===hg[n]){let i=0,s=0,l=-1,u=-1;for(let t=-1;t<=1;++t)for(let n=-1;n<=1;++n){const c=(e+t)*o+r+n;if(hg[c]>=a)continue;const d=dg[c],h=Math.abs(d);h>s&&(i=d,s=h,l=n,u=t)}if(s>.1){const o=1-(a+.5*Math.abs(l*u))/c;let s=t._dem.get(r,e)+i*o;const d=t._dem.get(r+l,e+u),h=t._dem.get(r-l,e-u,!0);(s-d)*(s-h)>0&&(s=(d+h)/2),dg[n]=t._dem.set(r,e,s),hg[n]=a}}}}}a&&(t._demTile.needsDEMTextureUpload=!0,t._dem._timestamp=Ne.now())}getNodesInfo(){return this.nodesInfo}destroy(){const e=this.getNodesInfo();for(const t of e)lg(t.node),cg(t.node)}isEmpty(){return!this.nodesInfo.length}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped()),n=this.getNodesInfo();for(let i=0;i<this.nodesInfo.length;i++){const e=n[i].node;n[i].hiddenByReplacement=!!e.footprint&&!r.find((t=>t.footprint===e.footprint))}}getHeightAtTileCoord(e,t){const r=this.getNodesInfo(),n=[],i=[0,0,0],o=B.mat4.identity([]);for(let a=0;a<this.nodesInfo.length;a++){const s=r[a],l=s.node.meshes[0],c=l.transformedAabb;if(e<c.min[0]||t<c.min[1]||e>c.max[0]||t>c.max[1])continue;if(!0===s.node.hidden)return{height:1/0,maxHeight:s.feature.properties.height,hidden:!1,verticalScale:s.evaluatedScale[2]};B.mat4.invert(o,s.node.matrix),i[0]=e,i[1]=t,B.vec3.transformMat4(i,i,o);const u=(i[0]-l.aabb.min[0])/(l.aabb.max[0]-l.aabb.min[0])*rg|0,d=Math.min(63,(i[1]-l.aabb.min[1])/(l.aabb.max[1]-l.aabb.min[1])*rg|0)*rg+Math.min(63,u),h=l.heightmap[d];if(!(h<0&&s.node.footprint)){if(s.hiddenByReplacement)return;return{height:h,maxHeight:s.feature.properties.height,hidden:!1,verticalScale:s.evaluatedScale[2]}}if(s.node.footprint.grid.query(new H(e,t),new H(e,t),n),n.length>0)return{height:void 0,maxHeight:s.feature.properties.height,hidden:s.hiddenByReplacement,verticalScale:s.evaluatedScale[2]}}}}function yg(e,t){return!e.isLightConstant&&t}function vg(e,t,r,n,i,o,a,s){let l=(61440&t|(61440&t)>>4)>>8,c=(3840&t|(3840&t)>>4)>>4,u=240&t|(240&t)>>4;r[3]>0&&(l=It(l,255*r[0],r[3]),c=It(c,255*r[1],r[3]),u=It(u,255*r[2],r[3]));const d=l<<8|c,h=u<<8|Math.floor(255*n[3]),p=function(e){const t=ee(e,0,2);return Math.min(Math.round(.5*t*255),255)}(n[2])<<8|15*n[0]<<4|15*n[1],f=ee(i[0],0,1),m=ee(i[1],0,1),g=ee(i[2],0,1),_=ee(i[3],0,1);let y,v,b,x;if(f!==m&&a!==o&&m!==f){const e=a-o;v=1/(e*(m-f)),b=-(o+e*f)/(e*(m-f));const t=ee(i[4],-1,1);x=Math.pow(10,t),y=255*g<<8|255*_}else y=65535,v=0,b=1,x=1;if(e.emplaceBack(d,h,p,y,v,b,x),s){const e=s.length;s.clear();for(let t=0;t<e;t++)s.emplaceBack(d,h,p,y,v,b,x)}}function bg(e,t,r){const n=e.node;let i=0;const o=r&ng.HasMeshoptCompression;for(const a of n.meshes){if(n.lights&&n.lightMeshIndex===i)continue;if(!a.featureData)continue;a.featureArray=new Xa,a.featureArray.reserve(a.featureData.length);let r=t;for(const t of a.featureData){const i=o?65535&t:t>>16&65535,s=o?t>>16&65535:65535&t,l=(15&s)<8?15&s:0,c=e.evaluatedRMEA[l],u=e.evaluatedColor[l],d=e.emissionHeightBasedParams[l];let h;if(r&&2===l&&n.lights&&(h=new Xa,h.resize(10*n.lights.length)),vg(a.featureArray,i,u,c,d,a.aabb.min[2],a.aabb.max[2],h),h&&r){r=!1;const e=n.meshes[n.lightMeshIndex];e.featureArray=h,e.featureArray._trim()}}a.featureArray._trim(),i++}}function xg(e,t,r,n){const i=1<<e.z;t.lat=fl((n/Jr+e.y)/i),t.lng=pl((r/Jr+e.x)/i)}lo(_g,"Tiled3dModelBucket",{omit:["layers"]}),lo(gg,"Tiled3dModelFeature");const wg={circle:class extends fa{constructor(e,t,r,n){super(e,{layout:Ql||(Ql=new Yo({"circle-sort-key":new Go(Zo.layout_circle["circle-sort-key"]),visibility:new Ho(Zo.layout_circle.visibility)})),paint:$l||($l=new Yo({"circle-radius":new Go(Zo.paint_circle["circle-radius"]),"circle-color":new Go(Zo.paint_circle["circle-color"]),"circle-blur":new Go(Zo.paint_circle["circle-blur"]),"circle-opacity":new Go(Zo.paint_circle["circle-opacity"]),"circle-translate":new Ho(Zo.paint_circle["circle-translate"]),"circle-translate-anchor":new Ho(Zo.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Ho(Zo.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Ho(Zo.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Go(Zo.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Go(Zo.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Go(Zo.paint_circle["circle-stroke-opacity"]),"circle-emissive-strength":new Ho(Zo.paint_circle["circle-emissive-strength"]),"circle-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"circle-stroke-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n)}createBucket(e){return new Rl(e)}queryRadius(e){const t=e;return Zl("circle-radius",this,t)+Zl("circle-stroke-width",this,t)+Kl(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,r,n,i,o,a,s){const l=Jl(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r);return Yc(e,n,o,a,s,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getDefaultProgramParams(e,t,r){const n=Wc(this);return{config:new Bs(this,{zoom:t,lut:r}),defines:n,overrideFog:!1}}},heatmap:class extends fa{createBucket(e){return new Qc(e)}constructor(e,t,r,n){super(e,{layout:$c||($c=new Yo({visibility:new Ho(Zo.layout_heatmap.visibility)})),paint:eu||(eu=new Yo({"heatmap-radius":new Go(Zo.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Go(Zo.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ho(Zo.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Wo(Zo.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ho(Zo.paint_heatmap["heatmap-opacity"]),"heatmap-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=cu({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return Zl("heatmap-radius",this,e)}queryIntersectsFeature(e,t,r,n,i,o,a,s){const l=this.paint.get("heatmap-radius").evaluate(t,r);
vendor: 15,028 bytes, line 2
2return Yc(e,n,o,a,s,!0,!0,new H(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getDefaultProgramParams(e,t,r){return"heatmap"===e?{config:new Bs(this,{zoom:t,lut:r}),overrideFog:!1}:{}}},hillshade:class extends fa{constructor(e,t,r,n){super(e,{layout:tu||(tu=new Yo({visibility:new Ho(Zo.layout_hillshade.visibility)})),paint:ru||(ru=new Yo({"hillshade-illumination-direction":new Ho(Zo.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new Ho(Zo.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new Ho(Zo.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new Ho(Zo.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new Ho(Zo.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new Ho(Zo.paint_hillshade["hillshade-accent-color"]),"hillshade-emissive-strength":new Ho(Zo.paint_hillshade["hillshade-emissive-strength"]),"hillshade-shadow-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"hillshade-highlight-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"hillshade-accent-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n)}shouldRedrape(){return this.hasOffscreenPass()&&"viewport"===this.paint.get("hillshade-illumination-anchor")}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}getDefaultProgramParams(e,t,r){return{overrideFog:!1}}},fill:class extends fa{constructor(e,t,r,n){super(e,{layout:qu||(qu=new Yo({"fill-sort-key":new Go(Zo.layout_fill["fill-sort-key"]),visibility:new Ho(Zo.layout_fill.visibility),"fill-elevation-reference":new Ho(Zo.layout_fill["fill-elevation-reference"])})),paint:Hu||(Hu=new Yo({"fill-antialias":new Ho(Zo.paint_fill["fill-antialias"]),"fill-opacity":new Go(Zo.paint_fill["fill-opacity"]),"fill-color":new Go(Zo.paint_fill["fill-color"]),"fill-outline-color":new Go(Zo.paint_fill["fill-outline-color"]),"fill-translate":new Ho(Zo.paint_fill["fill-translate"]),"fill-translate-anchor":new Ho(Zo.paint_fill["fill-translate-anchor"]),"fill-pattern":new Go(Zo.paint_fill["fill-pattern"]),"fill-emissive-strength":new Ho(Zo.paint_fill["fill-emissive-strength"]),"fill-z-offset":new Go(Zo.paint_fill["fill-z-offset"]),"fill-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"fill-outline-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),r=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&r.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),r}getDefaultProgramParams(e,t,r){return{config:new Bs(this,{zoom:t,lut:r}),overrideFog:!1}}recalculate(e,t){super.recalculate(e,t);const r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new Vu(e)}queryRadius(){return Kl(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,r,n,i,o){return!e.queryGeometry.isAboveHorizon&&Nl(Xl(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),n)}isTileClipped(){return!0}is3D(){return 0!==this.paint.get("fill-z-offset").constantOr(1)}},"fill-extrusion":class extends fa{constructor(e,t,r,n){super(e,{layout:ch||(ch=new Yo({visibility:new Ho(Zo["layout_fill-extrusion"].visibility),"fill-extrusion-edge-radius":new Ho(Zo["layout_fill-extrusion"]["fill-extrusion-edge-radius"])})),paint:uh||(uh=new Yo({"fill-extrusion-opacity":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-height-alignment":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-height-alignment"]),"fill-extrusion-base-alignment":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-base-alignment"]),"fill-extrusion-vertical-gradient":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-ambient-occlusion-wall-radius":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-wall-radius"]),"fill-extrusion-ambient-occlusion-ground-radius":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-radius"]),"fill-extrusion-ambient-occlusion-ground-attenuation":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-attenuation"]),"fill-extrusion-flood-light-color":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-flood-light-color"]),"fill-extrusion-flood-light-intensity":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-flood-light-intensity"]),"fill-extrusion-flood-light-wall-radius":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-flood-light-wall-radius"]),"fill-extrusion-flood-light-ground-radius":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-radius"]),"fill-extrusion-flood-light-ground-attenuation":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-attenuation"]),"fill-extrusion-vertical-scale":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-vertical-scale"]),"fill-extrusion-rounded-roof":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-rounded-roof"]),"fill-extrusion-cutoff-fade-range":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-cutoff-fade-range"]),"fill-extrusion-emissive-strength":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-emissive-strength"]),"fill-extrusion-line-width":new Go(Zo["paint_fill-extrusion"]["fill-extrusion-line-width"]),"fill-extrusion-cast-shadows":new Ho(Zo["paint_fill-extrusion"]["fill-extrusion-cast-shadows"]),"fill-extrusion-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"fill-extrusion-flood-light-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this._stats={numRenderedVerticesInShadowPass:0,numRenderedVerticesInTransparentPass:0}}createBucket(e){return new Qd(e)}queryRadius(){return Kl(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}hasShadowPass(){return this.paint.get("fill-extrusion-cast-shadows")}cutoffRange(){return this.paint.get("fill-extrusion-cutoff-fade-range")}canCastShadows(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}queryIntersectsFeature(e,t,r,n,i,o,a,s,l){const c=Jl(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),u=this.paint.get("fill-extrusion-height").evaluate(t,r),d=this.paint.get("fill-extrusion-base").evaluate(t,r),h=[0,0],p=s&&o.elevation,f=o.elevation?o.elevation.exaggeration():1,m=e.tile.getBucket(this);if(p&&m instanceof Qd){const e=m.centroidVertexArray,t=l+1;t<e.length&&(h[0]=e.geta_centroid_pos0(t),h[1]=e.geta_centroid_pos1(t))}if(0===h[0]&&1===h[1])return!1;"globe"===o.projection.name&&(n=sh([n],[new H(0,0),new H(Jr,Jr)],e.tileID.canonical).map((e=>e.polygon)).flat());const g=p?s:null,[_,y]=function(e,t,r,n,i,o,a,s,l,c,u){return"globe"===e.projection.name?function(e,t,r,n,i,o,a,s,l,c,u){const d=[],h=[],p=e.projection.upVectorScale(u,e.center.lat,e.worldSize).metersToTile,f=[0,0,0,1],m=[0,0,0,1],g=(e,t,r,n)=>{e[0]=t,e[1]=r,e[2]=n,e[3]=1},_=ah();r>0&&(r+=_),n+=_;for(const y of t){const t=[],_=[];for(const d of y){const h=d.x+i.x,y=d.y+i.y,v=e.projection.projectTilePoint(h,y,u),b=e.projection.upVector(u,d.x,d.y);let x=r,w=n;if(a){const e=ph(h,y,r,n,a,s,l,c);x+=e.base,w+=e.top}0!==r?g(f,v.x+b[0]*p*x,v.y+b[1]*p*x,v.z+b[2]*p*x):g(f,v.x,v.y,v.z),g(m,v.x+b[0]*p*w,v.y+b[1]*p*w,v.z+b[2]*p*w),B.vec3.transformMat4(f,f,o),B.vec3.transformMat4(m,m,o),t.push(new md(f[0],f[1],f[2])),_.push(new md(m[0],m[1],m[2]))}d.push(t),h.push(_)}return[d,h]}(e,t,r,n,i,o,a,s,l,c,u):a?function(e,t,r,n,i,o,a,s,l){const c=[],u=[],d=[0,0,0,1];for(const h of e){const e=[],p=[];for(const c of h){const u=c.x+n.x,h=c.y+n.y,f=ph(u,h,t,r,o,a,s,l);d[0]=u,d[1]=h,d[2]=f.base,d[3]=1,B.vec4.transformMat4(d,d,i),d[3]=Math.max(d[3],1e-5);const m=new md(d[0]/d[3],d[1]/d[3],d[2]/d[3]);d[0]=u,d[1]=h,d[2]=f.top,d[3]=1,B.vec4.transformMat4(d,d,i),d[3]=Math.max(d[3],1e-5);const g=new md(d[0]/d[3],d[1]/d[3],d[2]/d[3]);e.push(m),p.push(g)}c.push(e),u.push(p)}return[c,u]}(t,r,n,i,o,a,s,l,c):function(e,t,r,n,i){const o=[],a=[],s=i[8]*t,l=i[9]*t,c=i[10]*t,u=i[11]*t,d=i[8]*r,h=i[9]*r,p=i[10]*r,f=i[11]*r;for(const m of e){const e=[],t=[];for(const r of m){const o=r.x+n.x,a=r.y+n.y,m=i[0]*o+i[4]*a+i[12],g=i[1]*o+i[5]*a+i[13],_=i[2]*o+i[6]*a+i[14],y=i[3]*o+i[7]*a+i[15],v=m+s,b=g+l,x=_+c,w=Math.max(y+u,1e-5),A=m+d,S=g+h,E=_+p,T=Math.max(y+f,1e-5);e.push(new md(v/w,b/w,x/w)),t.push(new md(A/T,S/T,E/T))}o.push(e),a.push(t)}return[o,a]}(t,r,n,i,o)}(o,n,d,u,c,a,g,h,f,o.center.lat,e.tileID.canonical),v=e.queryGeometry;return function(e,t,r){let n=1/0;Nl(r,t)&&(n=hh(r,t[0]));for(let i=0;i<t.length;i++){const o=t[i],a=e[i];for(let e=0;e<o.length-1;e++){const t=o[e],i=[t,o[e+1],a[e+1],a[e],t];Ll(r,i)&&(n=Math.min(n,hh(r,i)))}}return n!==1/0&&n}(_,y,v.isPointQuery()?v.screenBounds:v.screenGeometry)}},line:class extends fa{constructor(e,t,r,n){const i=Nh();super(e,i,t,r,n),i.layout&&(this.layout=new qo(i.layout)),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof Un,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=(()=>{if(zh)return zh;const e=Nh();return zh=new Fh(e.paint.properties["line-width"].specification),zh.useIntegerZoom=!0,zh})().possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Eh(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getDefaultProgramParams(e,t,r){const n=Rh(this);return{config:new Bs(this,{zoom:t,lut:r}),defines:n,overrideFog:!1}}queryRadius(e){const t=e,r=jh(Zl("line-width",this,t),Zl("line-gap-width",this,t)),n=Zl("line-offset",this,t);return r/2+Math.abs(n)+Kl(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,r,n,i,o){if(e.queryGeometry.isAboveHorizon)return!1;const a=Xl(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),s=e.pixelToTileUnitsFactor/2*jh(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(n=function(e,t){const r=[],n=new H(0,0);for(let i=0;i<e.length;i++){const o=e[i],a=[];for(let e=0;e<o.length;e++){const r=o[e],i=o[e+1],s=0===e?n:r.sub(o[e-1])._unit()._perp(),l=e===o.length-1?n:i.sub(r)._unit()._perp(),c=s._add(l)._unit();c._mult(1/(c.x*l.x+c.y*l.y)),a.push(c._mult(t)._add(r))}r.push(a)}return r}(n,l*e.pixelToTileUnitsFactor)),function(e,t,r){for(let n=0;n<t.length;n++){const i=t[n];if(e.length>=3)for(let t=0;t<i.length;t++)if(ql(e,i[t]))return!0;if(Fl(e,i,r))return!0}return!1}(a,n,s)}isTileClipped(){return!0}isDraped(e){const t=this.layout.get("line-z-offset"),r=t.isConstant()&&!t.constantOr(0),n=this.layout.get("line-elevation-reference");return!("sea"===n||"ground"===n)&&(r||"none"!==n)}},symbol:sm,background:class extends fa{constructor(e,t,r,n){super(e,{layout:lm||(lm=new Yo({visibility:new Ho(Zo.layout_background.visibility)})),paint:cm||(cm=new Yo({"background-pitch-alignment":new Ho(Zo.paint_background["background-pitch-alignment"]),"background-color":new Ho(Zo.paint_background["background-color"]),"background-pattern":new Ho(Zo.paint_background["background-pattern"]),"background-opacity":new Ho(Zo.paint_background["background-opacity"]),"background-emissive-strength":new Ho(Zo.paint_background["background-emissive-strength"]),"background-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}getDefaultProgramParams(e,t,r){return{overrideFog:!1}}is3D(){return"viewport"===this.paint.get("background-pitch-alignment")}},raster:wm,"raster-particle":Cm,sky:class extends fa{constructor(e,t,r,n){super(e,{layout:Em||(Em=new Yo({visibility:new Ho(Zo.layout_sky.visibility)})),paint:Tm||(Tm=new Yo({"sky-type":new Ho(Zo.paint_sky["sky-type"]),"sky-atmosphere-sun":new Ho(Zo.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new Ho(Zo.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new Ho(Zo.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new Ho(Zo.paint_sky["sky-gradient-radius"]),"sky-gradient":new Wo(Zo.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new Ho(Zo.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new Ho(Zo.paint_sky["sky-atmosphere-color"]),"sky-opacity":new Ho(Zo.paint_sky["sky-opacity"]),"sky-gradient-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"sky-atmosphere-halo-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"}),"sky-atmosphere-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=cu({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}
vendor: 4,444 bytes, line 2
2needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const r=this.paint.get("sky-atmosphere-sun"),n=!r,i=e.style.light,o=i.properties.get("position");return n&&"viewport"===i.properties.get("anchor")&&fe("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),n?Mm(o.azimuthal,90-o.polar,t):Mm(r[0],90-r[1],t)}const r=this.paint.get("sky-gradient-center");return Mm(r[0],90-r[1],t)}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}},slot:class extends fa{constructor(e,t,r,n){super(e,{paint:Pm||(Pm=new Yo({}))},t,null)}},model:class extends fa{constructor(e,t,r,n){super(e,{layout:eg||(eg=new Yo({visibility:new Ho(Zo.layout_model.visibility),"model-id":new Go(Zo.layout_model["model-id"])})),paint:tg||(tg=new Yo({"model-opacity":new Go(Zo.paint_model["model-opacity"]),"model-rotation":new Go(Zo.paint_model["model-rotation"]),"model-scale":new Go(Zo.paint_model["model-scale"]),"model-translation":new Go(Zo.paint_model["model-translation"]),"model-color":new Go(Zo.paint_model["model-color"]),"model-color-mix-intensity":new Go(Zo.paint_model["model-color-mix-intensity"]),"model-type":new Ho(Zo.paint_model["model-type"]),"model-cast-shadows":new Ho(Zo.paint_model["model-cast-shadows"]),"model-receive-shadows":new Ho(Zo.paint_model["model-receive-shadows"]),"model-ambient-occlusion-intensity":new Ho(Zo.paint_model["model-ambient-occlusion-intensity"]),"model-emissive-strength":new Go(Zo.paint_model["model-emissive-strength"]),"model-roughness":new Go(Zo.paint_model["model-roughness"]),"model-height-based-emissive-strength-multiplier":new Go(Zo.paint_model["model-height-based-emissive-strength-multiplier"]),"model-cutoff-fade-range":new Ho(Zo.paint_model["model-cutoff-fade-range"]),"model-front-cutoff":new Ho(Zo.paint_model["model-front-cutoff"]),"model-color-use-theme":new Go({type:"string",default:"default","property-type":"data-driven"})}))},t,r,n),this._stats={numRenderedVerticesInShadowPass:0,numRenderedVerticesInTransparentPass:0}}createBucket(e){return new $m(e)}getProgramIds(){return["model"]}is3D(){return!0}hasShadowPass(){return!0}canCastShadows(){return!0}hasLightBeamPass(){return!0}cutoffRange(){return this.paint.get("model-cutoff-fade-range")}queryRadius(e){return e instanceof _g?Jr-1:0}queryIntersectsFeature(e,t,r,n,i,o){if(!this.modelManager)return!1;const a=this.modelManager,s=e.tile.getBucket(this);if(!(s&&s instanceof $m))return!1;for(const l in s.instancesPerModel){const r=s.instancesPerModel[l],n=void 0!==t.id?t.id:t.properties&&t.properties.hasOwnProperty("id")?t.properties.id:void 0;if(r.idToFeaturesIndex.hasOwnProperty(n)){const t=r.features[r.idToFeaturesIndex[n]],i=a.getModel(l,this.scope);if(!i)return!1;let c=B.mat4.create();const u=new ol(0,0),d=s.canonical;let h=Number.MAX_VALUE;for(let n=0;n<t.instancedDataCount;++n){const a=16*(t.instancedDataOffset+n),s=r.instancedDataArray.float32,l=[s[a+4],s[a+5],s[a+6]];xg(d,u,s[a],0|s[a+1]),ig(c,i,o,u,t.rotation,t.scale,l,!1,!1,!1),"globe"===o.projection.name&&(c=jm(c,o));const p=B.mat4.multiply([],o.projMatrix,c),f=e.queryGeometry,m=Bm(f.isPointQuery()?f.screenBounds:f.screenGeometry,o,p,i.aabb);null!=m&&(h=Math.min(m,h))}return h!==Number.MAX_VALUE&&h}}return!1}_handleOverridablePaintPropertyUpdate(e,t,r){return!(!this.layout||t.isDataDriven()||r.isDataDriven()||"model-color"!==e&&"model-color-mix-intensity"!==e&&"model-rotation"!==e&&"model-scale"!==e&&"model-translation"!==e&&"model-emissive-strength"!==e)}_isPropertyZoomDependent(e){const t=this._transitionablePaint._values[e];return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof $i}isZoomDependent(){return this._isPropertyZoomDependent("model-scale")||this._isPropertyZoomDependent("model-rotation")||this._isPropertyZoomDependent("model-translation")}},clip:class extends fa{constructor(e,t,r,n){super(e,{layout:Gu||(Gu=new Yo({"clip-layer-types":ne
2w Ho(Zo.layout_clip["clip-layer-types"]),"clip-layer-scope":new Ho(Zo.layout_clip["clip-layer-scope"])})),paint:Wu||(Wu=new Yo({}))},t,r,n)}recalculate(e,t){super.recalculate(e,t)}createBucket(e){return new Ku(e)}isTileClipped(){return!0}is3D(){return!0}}};class Ag{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((()=>{this._triggered=!1,this._callback()}),0))}remove(){this._channel=void 0,this._callback=()=>{}}}class Sg{constructor(){this.tasks={},this.taskQueue=[],le(["process"],this),this.invoker=new Ag(this.process),this.nextId=0}add(e,t){const r=this.nextId++,n=function(e){let{type:t,isSymbolTile:r,zoom:n}=e;return n=n||0,"message"===t?0:"maybePrepare"!==t||r?"parseTile"!==t||r?"parseTile"===t&&r?300-n:"maybePrepare"===t&&r?400-n:500:200-n:100-n}(t);if(0===n){try{e()}finally{}return null}return this.tasks[r]={fn:e,metadata:t,priority:n,id:r},this.taskQueue.push(r),this.invoker.trigger(),{cancel:()=>{delete this.tasks[r]}}}process(){try{if(this.taskQueue=this.taskQueue.filter((e=>!!this.tasks[e])),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let n=0;n<this.taskQueue.length;n++){const r=this.tasks[this.taskQueue[n]];r.priority<t&&(t=r.priority,e=n)}if(null===e)return null;const r=this.taskQueue[e];return this.taskQueue.splice(e,1),r}remove(){this.invoker.remove()}}class Eg{constructor(e,t,r){this.target=e,this.parent=t,this.mapId=r,this.callbacks={},this.cancelCallbacks={},le(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.scheduler=new Sg}send(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5?arguments[5]:void 0;const a=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&&(r.metadata=o,this.callbacks[a]=r);const s=new Set;return this.target.postMessage({id:a,type:e,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:ho(t,s)},s),{cancel:()=>{r&&delete this.callbacks[a],this.target.postMessage({id:a,type:"<cancel>",targetMapId:n,sourceMapId:this.mapId})}}}receive(e){const t=e.data,r=t.id;if(r&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[r];delete this.cancelCallbacks[r],e&&e.cancel()}else if(t.mustQueue||ye()){const e=this.callbacks[r],n=this.scheduler.add((()=>this.processTask(r,t)),e&&e.metadata||{type:"message"});n&&(this.cancelCallbacks[r]=n)}else this.processTask(r,t)}processTask(e,t){if(delete this.cancelCallbacks[e],"<response>"===t.type){const r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(po(t.error)):r(null,po(t.data)))}else{const r=new Set,n=t.hasCallback?(t,n)=>{this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?ho(t):null,data:ho(n,r)},r)}:()=>{},i=po(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,i,n);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],i.source,i.scope)[e[1]](i,n)}else n(new Error("Could not find function ".concat(t.type)))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}}var Tg={workerUrl:"",workerClass:null,workerParams:void 0};const Pg="mapboxgl_preloaded_worker_pool";class Cg{constructor(){this.active={}}acquire(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cg.workerCount;if(!this.workers)for(this.workers=[];this.workers.length<t;)this.workers.push(null!=Tg.workerClass?new Tg.workerClass:new self.Worker(Tg.workerUrl,Tg.workerParams));return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],this.workers&&0===this.numActive()&&(this.workers.forEach((e=>{e.terminate()})),this.workers=null)}isPreloaded(){return!!this.active[Pg]}numActive(){return Object.keys(this.active).length}}Cg.workerCount=2;class Ig{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Worker",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Cg.workerCount;this.workerPool=e,this.actors=[],this.currentActor=0,this.id=ae();const i=this.workerPool.acquire(this.id,n);for(let o=0;o<i.length;o++){const e=new Ig.Actor(i[o],t,this.id);e.name="".concat(r," ").concat(o),this.actors.push(e)}this.ready=!1,this.broadcast("checkIfReady",null,(()=>{this.ready=!0}))}broadcast(e,t,r){ne(this.actors,((r,n)=>{r.send(e,t,n)}),r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}
2remove(){this.actors.forEach((e=>{e.remove()})),this.actors=[],this.workerPool.release(this.id)}}let Mg,kg;function Og(){return Mg||(Mg=new Cg),Mg}Ig.Actor=Eg;const Rg=new Pt(0,0,0);var Lg=(e=>(e[e.PATH_RULE_UNSPECIFIED=0]="PATH_RULE_UNSPECIFIED",e[e.PATH_RULE_NON_ZERO=1]="PATH_RULE_NON_ZERO",e[e.PATH_RULE_EVEN_ODD=2]="PATH_RULE_EVEN_ODD",e))(Lg||{}),Dg=(e=>(e[e.LINE_CAP_UNSPECIFIED=0]="LINE_CAP_UNSPECIFIED",e[e.LINE_CAP_BUTT=1]="LINE_CAP_BUTT",e[e.LINE_CAP_ROUND=2]="LINE_CAP_ROUND",e[e.LINE_CAP_SQUARE=3]="LINE_CAP_SQUARE",e))(Dg||{}),Ng=(e=>(e[e.LINE_JOIN_UNSPECIFIED=0]="LINE_JOIN_UNSPECIFIED",e[e.LINE_JOIN_MITER=1]="LINE_JOIN_MITER",e[e.LINE_JOIN_MITER_CLIP=2]="LINE_JOIN_MITER_CLIP",e[e.LINE_JOIN_ROUND=3]="LINE_JOIN_ROUND",e[e.LINE_JOIN_BEVEL=4]="LINE_JOIN_BEVEL",e))(Ng||{}),Fg=(e=>(e[e.PAINT_ORDER_UNSPECIFIED=0]="PAINT_ORDER_UNSPECIFIED",e[e.PAINT_ORDER_FILL_AND_STROKE=1]="PAINT_ORDER_FILL_AND_STROKE",e[e.PAINT_ORDER_STROKE_AND_FILL=2]="PAINT_ORDER_STROKE_AND_FILL",e))(Fg||{}),zg=(e=>(e[e.PATH_COMMAND_UNSPECIFIED=0]="PATH_COMMAND_UNSPECIFIED",e[e.PATH_COMMAND_MOVE=1]="PATH_COMMAND_MOVE",e[e.PATH_COMMAND_LINE=2]="PATH_COMMAND_LINE",e[e.PATH_COMMAND_QUAD=3]="PATH_COMMAND_QUAD",e[e.PATH_COMMAND_CUBIC=4]="PATH_COMMAND_CUBIC",e[e.PATH_COMMAND_CLOSE=5]="PATH_COMMAND_CLOSE",e))(zg||{}),jg=(e=>(e[e.MASK_TYPE_UNSPECIFIED=0]="MASK_TYPE_UNSPECIFIED",e[e.MASK_TYPE_LUMINANCE=1]="MASK_TYPE_LUMINANCE",e[e.MASK_TYPE_ALPHA=2]="MASK_TYPE_ALPHA",e))(jg||{});function Bg(e,t,r){1===e&&t.icons.push(function(e,t){return function(e){if(e.usvg_tree.height||(e.usvg_tree.height=e.usvg_tree.width),!e.metadata)return e;const{metadata:t}=e;if(t.content_area){const{content_area:r}=t;null==r.top&&(r.top=r.left),null==r.width&&(r.width=e.usvg_tree.width),null==r.height&&(r.height=r.width)}return t.stretch_x&&t.stretch_x.length&&Ug(t,"x"),t.stretch_y&&t.stretch_y.length&&Ug(t,"y"),e}(e.readFields(Vg,{name:void 0},t))}(r,r.readVarint()+r.pos))}function Ug(e,t){const r=[],n=e["stretch_".concat(t)];let i=null;for(let o=0;o<n.length;o++)null===i?i=0===r.length?n[0]:r[r.length-1][1]+n[o]:(r.push([i,i+n[o]]),i=null);e["stretch_".concat(t,"_areas")]=r}function Vg(e,t,r){1===e?t.name=r.readString():2===e?t.metadata=function(e,t){return e.readFields(qg,{stretch_x:null,stretch_y:null,stretch_x_areas:null,stretch_y_areas:null,variables:[]},t)}(r,r.readVarint()+r.pos):3===e&&(t.usvg_tree=function(e,t){return e.readFields(Wg,{width:20,children:[],linear_gradients:[],radial_gradients:[],clip_paths:[],masks:[]},t)}(r,r.readVarint()+r.pos),t.data="usvg_tree")}function qg(e,t,r){1===e?t.stretch_x=r.readPackedVarint():2===e?t.stretch_y=r.readPackedVarint():3===e?t.content_area=function(e,t){return e.readFields(Hg,{left:0},t)}(r,r.readVarint()+r.pos):4===e&&t.variables.push(function(e,t){return e.readFields(Gg,{name:void 0},t)}(r,r.readVarint()+r.pos))}function Hg(e,t,r){1===e?t.left=r.readVarint():2===e?t.width=r.readVarint():3===e?t.top=r.readVarint():4===e&&(t.height=r.readVarint())}function Gg(e,t,r){1===e?t.name=r.readString():2===e&&(t.rgb_color=e_(r.readVarint()),t.value="rgb_color")}function Wg(e,t,r){1===e?t.width=t.height=r.readVarint():2===e?t.height=r.readVarint():3===e?t.children.push(Yg(r,r.readVarint()+r.pos)):4===e?t.linear_gradients.push(function(e,t){return e.readFields(r_,{spread_method:1,stops:[],x1:0,y1:0,x2:1,y2:0},t)}(r,r.readVarint()+r.pos)):5===e?t.radial_gradients.push(function(e,t){return e.readFields(o_,{spread_method:1,stops:[],cx:.5,cy:.5,r:.5,fx:.5,fy:.5,fr:0},t)}(r,r.readVarint()+r.pos)):7===e?t.clip_paths.push(function(e,t){return e.readFields(a_,{children:[]},t)}(r,r.readVarint()+r.pos)):8===e&&t.masks.push(function(e,t){const r=e.readFields(s_,{left:0,width:20,mask_type:1,children:[]},t);return null==r.height&&(r.height=r.width),null==r.top&&(r.top=r.left),r}(r,r.readVarint()+r.pos))}function Yg(e,t){return e.readFields(Zg,{},t)}function Zg(e,t,r){1===e?(t.group=function(e,t){return e.readFields(Kg,{opacity:255,children:[]},t)}(r,r.readVarint()+r.pos),t.node="group"):2===e&&(t.path=function(e,t){return e.readFields(Qg,{paint_order:1,commands:[],step:1,diffs:[],rule:1},t)}(r,r.readVarint()+r.pos),t.node="path")}function Kg(e,t,r){1===e?t.transform=Xg(r,r.readVarint()+r.pos):2===e?t.opacity=r.readVarint():5===e?t.clip_path_idx=r.readVarint():6===e?t.mask_idx=r.readVarint():7===e&&t.children.push(Yg(r,r.readVarint()+r.pos))}function Xg(e,t){return e.readFields(Jg,{sx:1,ky:0,kx:0,sy:1,tx:0,ty:0},t)}function Jg(e,t,r){1===e?t.sx=r.readFloat():2===e?t.ky=r.readFloat():3===e?t.kx=r.readFloat():4===e?t.sy=r.readFloat():5===e?t.tx=r.readFloat():6===e&&(t.ty=r.readFloat())}function Qg(e,t,r){1===e?t.fill=function(e,t){return e.readFields($g,{rgb_color:Rg,paint:"rgb_color",opacity:255},t)}(r,r.readVarint()+r.pos):2===e?t.stroke=function(e,t){return e.readFields(t_,{rgb_color:Rg,paint:"rgb_color",dasharray:[],dashoffset:0,miterlimit:4,opacity:255,width:1,linecap:1,linejoin:1},t)}(r,r.readVarint()+r.pos):3===e?t.paint_order=r.readVarint():5===e?r.readPackedVarint(t.commands):6===e?t.step=r.readFloat():7===e?r.readPackedSVarint(t.diffs):8===e&&(t.rule=r.readVarint())}function $g(e,t,r){1===e?(t.rgb_color=e_(r.readVarint()),t.paint="rgb_color"):2===e?(t.linear_gradient_idx=r.readVarint(),t.paint="linear_gradient_idx"):3===e?(t.radial_gradient_idx=r.readVarint(),t.paint="radial_gradient_idx"):5===e&&(t.opacity=r.readVarint())}function e_(e){return new Pt((e>>16&255)/255,(e>>8&255)/255,(255&e)/255,1)}function t_(e,t,r){1===e?(t.rgb_color=e_(r.readVarint()),t.paint="rgb_color"):2===e?(t.linear_gradient_idx=r.readVarint(),t.paint="linear_gradient_idx"):3===e?(t.radial_gradient_idx=r.readVarint(),t.paint="radial_gradient_idx"):5===e?r.readPackedFloat(t.dasharray):6===e?t.dash
2offset=r.readFloat():7===e?t.miterlimit=r.readFloat():8===e?t.opacity=r.readVarint():9===e?t.width=r.readFloat():10===e?t.linecap=r.readVarint():11===e&&(t.linejoin=r.readVarint())}function r_(e,t,r){1===e?t.transform=Xg(r,r.readVarint()+r.pos):2===e?t.spread_method=r.readVarint():3===e?t.stops.push(n_(r,r.readVarint()+r.pos)):4===e?t.x1=r.readFloat():5===e?t.y1=r.readFloat():6===e?t.x2=r.readFloat():7===e&&(t.y2=r.readFloat())}function n_(e,t){return e.readFields(i_,{offset:0,opacity:255,rgb_color:Rg},t)}function i_(e,t,r){1===e?t.offset=r.readFloat():2===e?t.opacity=r.readVarint():3===e&&(t.rgb_color=e_(r.readVarint()))}function o_(e,t,r){1===e?t.transform=Xg(r,r.readVarint()+r.pos):2===e?t.spread_method=r.readVarint():3===e?t.stops.push(n_(r,r.readVarint()+r.pos)):4===e?t.cx=r.readFloat():5===e?t.cy=r.readFloat():6===e?t.r=r.readFloat():7===e?t.fx=r.readFloat():8===e?t.fy=r.readFloat():9===e&&(t.fr=r.readFloat())}function a_(e,t,r){1===e?t.transform=Xg(r,r.readVarint()+r.pos):2===e?t.clip_path_idx=r.readVarint():3===e&&t.children.push(Yg(r,r.readVarint()+r.pos))}function s_(e,t,r){1===e?t.left=t.top=r.readFloat():2===e?t.width=t.height=r.readFloat():3===e?t.top=r.readFloat():4===e?t.height=r.readFloat():5===e?t.mask_type=r.readVarint():6===e?t.mask_idx=r.readVarint():7===e&&t.children.push(Yg(r,r.readVarint()+r.pos))}class l_{static calculate(e,t){const r=new Map,n=new Map;if(0===Object.keys(e).length)return r;t.forEach((e=>{n.set(e.name,e.rgb_color||new Pt(0,0,0))}));for(const[i,o]of Object.entries(e))n.has(i)?r.set(n.get(i).toStringPremultipliedAlpha(),o):console.warn('Ignoring unknown image variable "'.concat(i,'"'));return r}}function c_(e){let t=arguments.length>2?arguments[2]:void 0;const r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:255)/255,n=e.toStringPremultipliedAlpha(),i=t.has(n)?t.get(n).clone():e.clone();return i.a=r,i.toString()}function u_(e,t){if(!De()){const r=document.createElement("canvas");return r.width=e,r.height=t,r}return new OffscreenCanvas(e,t)}function d_(e,t){const r=l_.calculate(t.params,e.metadata?e.metadata.variables:[]),n=e.usvg_tree,i=n.width,o=n.height,a=t.transform?t.transform:new DOMMatrix,s=Math.max(1,Math.round(i*a.a)),l=Math.max(1,Math.round(o*a.d)),c=new DOMMatrix([s/i,0,0,l/o,0,0]),u=u_(s,l).getContext("2d");return h_(u,c,n,n,r),u.getImageData(0,0,s,l)}function h_(e,t,r,n,i){for(const o of n.children)p_(e,t,r,o,i)}function p_(e,t,r,n,i){n.group?(e.save(),function(e,t,r,n,i){const o=null!=n.mask_idx?r.masks[n.mask_idx]:null,a=null!=n.clip_path_idx?r.clip_paths[n.clip_path_idx]:null;if(n.transform&&(t=b_(n.transform).preMultiplySelf(t)),!function(e,t,r){return 255!==e.opacity||t||r}(n,null!=a,null!=o))return void h_(e,t,r,n,i);const s=u_(e.canvas.width,e.canvas.height),l=s.getContext("2d");a&&y_(l,t,r,a),h_(l,t,r,n,i),o&&v_(l,t,r,o,i),e.globalAlpha=n.opacity/255,e.drawImage(s,0,0)}(e,t,r,n.group,i),e.restore()):n.path&&(e.save(),function(e,t,r,n,i){const o=x_(n);e.setTransform(t),n.paint_order===Fg.PAINT_ORDER_FILL_AND_STROKE?(f_(e,r,n,o,i),m_(e,r,n,o,i)):(m_(e,r,n,o,i),f_(e,r,n,o,i))}(e,t,r,n.path,i),e.restore())}function f_(e,t,r,n,i){const o=r.fill;if(!o)return;const a=o.opacity/255;switch(o.paint){case"rgb_color":e.fillStyle=c_(o.rgb_color,o.opacity,i);break;case"linear_gradient_idx":e.fillStyle=g_(e,t.linear_gradients[o.linear_gradient_idx],a,i);break;case"radial_gradient_idx":e.fillStyle=__(e,t.radial_gradients[o.radial_gradient_idx],a,i)}let s;switch(r.rule){case Lg.PATH_RULE_NON_ZERO:s="nonzero";break;case Lg.PATH_RULE_EVEN_ODD:s="evenodd"}e.fill(n,s)}function m_(e,t,r,n,i){const o=r.stroke;if(!o)return;e.lineWidth=o.width,e.miterLimit=o.miterlimit,e.setLineDash(o.dasharray),e.lineDashOffset=o.dashoffset;const a=o.opacity/255;switch(o.paint){case"rgb_color":e.strokeStyle=c_(o.rgb_color,o.opacity,i);break;case"linear_gradient_idx":e.strokeStyle=g_(e,t.linear_gradients[o.linear_gradient_idx],a,i);break;case"radial_gradient_idx":e.strokeStyle=__(e,t.radial_gradients[o.radial_gradient_idx],a,i)}switch(o.linejoin){case Ng.LINE_JOIN_MITER_CLIP:case Ng.LINE_JOIN_MITER:e.lineJoin="miter";break;case Ng.LINE_JOIN_ROUND:e.lineJoin="round";break;case Ng.LINE_JOIN_BEVEL:e.lineJoin="bevel"}switch(o.linecap){case Dg.LINE_CAP_BUTT:e.lineCap="butt";break;case Dg.LINE_CAP_ROUND:e.lineCap="round";break;case Dg.LINE_CAP_SQUARE:e.lineCap="square"}e.stroke(n)}function g_(e,t,r,n){if(1===t.stops.length){const e=t.stops[0];return c_(e.rgb_color,e.opacity*r,n)}const i=b_(t.transform),{x1:o,y1:a,x2:s,y2:l}=t,c=i.transformPoint(new DOMPoint(o,a)),u=i.transformPoint(new DOMPoint(s,l)),d=e.createLinearGradient(c.x,c.y,u.x,u.y);for(const h of t.stops)d.addColorStop(h.offset,c_(h.rgb_color,h.opacity*r,n));return d}function __(e,t,r,n){if(1===t.stops.length){const e=t.stops[0];return c_(e.rgb_color,e.opacity*r,n)}const i=b_(t.transform),{fx:o,fy:a,cx:s,cy:l}=t,c=i.transformPoint(new DOMPoint(o,a)),u=i.transformPoint(new DOMPoint(s,l)),d=e.createRadialGradient(c.x,c.y,0,u.x,u.y,t.r*((i.a+i.d)/2));for(const h of t.stops)d.addColorStop(h.offset,c_(h.rgb_color,h.opacity*r,n));return d}function y_(e,t,r,n){const i=b_(n.transform).preMultiplySelf(t),o=null!=n.clip_path_idx?r.clip_paths[n.clip_path_idx]:null;o&&y_(e,i,r,o);const a=new Path2D;let s;function l(e,t){if(e.path){const r=e.path;a.addPath(x_(r),t),r.rule===Lg.PATH_RULE_EVEN_ODD&&(s="evenodd")}else if(e.group){const r=e.group.transform?b_(e.group.transform).preMultiplySelf(t):t;for(const t of e.group.children)l(t,r)}}for(const c of n.children)l(c,i);e.clip(a,s)}function v_(e,t,r,n,i){if(0===n.children.length)return;const o=null!=n.mask_idx?r.masks[n.mask_idx]:null;o&&v_(e,t,r,o,i);const a=e.canvas.width,s=e.canvas.height,l=u_(a,s),c=l.getContext("2d"),u=n.width,d=n.height,h=n.left,p=n.top,f=new Path2D,m=new Path2D;m.rect(h,p,u,d),f.addPath(m,t),c.clip(f);for(const y of n.children)p_(c,t,r,y,i);const g=c.getImageData(0,0,a,s),_=g.data;if(n.mask_type===jg.MASK_TYPE_LUMINANCE)for(let y=0;y<_.length;y+=4)_[y+3]=_[y+3]/255*(.2126*_[y]+.7152*_[y+1]+.0722*_[y+2]);c.putImageData(g,0,0),e.globalCompositeOperation="destination-in",e.drawImage(l,0,0)}function b_(e){return e?new DOMMatrix([e.sx,e.ky,e.kx,e.sy,e.tx,e.ty]):new DOMMatrix}function x_(e){const t=new Path2D,r=e.step;let n=e.diffs[0]*r,i=e.diffs[1]*r;t.moveTo(n,i);for(let o=0,a=2;o<e.commands.length;o++)switch(e.commands[o]){case zg.PATH_COMMAND_MOVE:n+=e.diffs[a++]*r,i+=e.diffs[a++]*r,t.moveTo(n,i);break;case zg.PATH_COMMAND_LINE:n+=e.diffs[a++]*r,i+=e.diffs[a++]*r,t.lineTo(n,i);break;case zg.PATH_COMMAND_QUAD:{const o=n+e.diffs[a++]*r,s=i+e.diffs[a++]*r;n=o+e.diffs[a++]*r,i=s+e.diffs[a++]*r,t.quadraticCurveTo(o,s,n,i);break}case zg.PATH_COMMAND_CUBIC:{const o=n+e.diffs[a++]*r,s=i+e.diffs[a++]*r,l=o+e.diffs[a++]*r,c=s+e.diffs[a++]*r;n=l+e.diffs[a++]*r,i=c+e.diffs[a++]*r,t.bezierCurveTo(o,s,l,c,n,i);break}case zg.PATH_COMMAND_CLOSE:t.closePath()}return t}class w_{constructor(e){this.capacity=e,this.cache=new Map}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.capacity&&this.cache.delete(this.cache.keys().next().value),this.cache.set(e,t)}delete(e){this.cache.delete(e)}}class A_{constructor(){this.cacheMap=new Map,this.cacheDependenciesMap=new Map}static _getImage(e){return new su(e,e.data)}getFromCache(e,t,r){return this.cacheMap.has(r)||this.cacheMap.set(r,new w_(150)),this.cacheMap.get(r).get(da(e.serialize(),t))}setInCache(e,t,r,n){this.cacheDependenciesMap.has(n)||this.cacheDependenciesMap.set(n,new Map),this.cacheMap.has(n)||this.cacheMap.set(n,new w_(150));const i=this.cacheDependenciesMap.get(n);i.get(da(e.id,r))||i.set(da(e.id,r),new Set);const o=this.cacheMap.get(n),a=e.serialize();i.get(da(e.id,r)).add(a),o.put(da(e.serialize(),r),t)}removeImagesFromCacheByIds(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.cacheMap.has(r)||!this.cacheDependenciesMap.has(r))return;const n=this.cacheMap.get(r),i=this.cacheDependenciesMap.get(r);for(const o of e)if(i.has(da(o,t))){for(const e of i.get(da(o,t)))n.delete(e);
vendor: 10,812 bytes, line 2
2i.delete(da(o,t))}}rasterize(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d_;const o=this.getFromCache(e,r,n);if(o)return o.clone();const a=i(t.icon,e.options),s=A_._getImage(a);return this.setInCache(e,s,r,n),s.clone()}}class S_{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const r=this.toIdx(e,t);return{min:this.minimums[r],max:this.maximums[r]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function E_(e,t,r,n){let i=0,o=Number.MAX_VALUE;for(let a=0;a<3;a++)if(Math.abs(n[a])<1e-15){if(r[a]<e[a]||r[a]>t[a])return null}else{const s=1/n[a];let l=(e[a]-r[a])*s,c=(t[a]-r[a])*s;if(l>c){const e=l;l=c,c=e}if(l>i&&(i=l),c<o&&(o=c),i>o)return null}return i}function T_(e,t,r,n,i,o,a,s,l,c,u){const d=n-e,h=i-t,p=o-r,f=a-e,m=s-t,g=l-r,_=u[1]*g-u[2]*m,y=u[2]*f-u[0]*g,v=u[0]*m-u[1]*f,b=d*_+h*y+p*v;if(Math.abs(b)<1e-15)return null;const x=1/b,w=c[0]-e,A=c[1]-t,S=c[2]-r,E=(w*_+A*y+S*v)*x;if(E<0||E>1)return null;const T=A*p-S*h,P=S*d-w*p,C=w*h-A*d,I=(u[0]*T+u[1]*P+u[2]*C)*x;return I<0||E+I>1?null:(f*T+m*P+g*C)*x}function P_(e,t,r){return(e-t)/(r-t)}function C_(e,t,r,n,i,o,a,s,l){const c=1<<r,u=o-n,d=a-i,h=(e+1)/c*u+n,p=(t+0)/c*d+i,f=(t+1)/c*d+i;s[0]=(e+0)/c*u+n,s[1]=p,l[0]=h,l[1]=f}class I_{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),r=[];let n=Math.ceil(Math.pow(2,t));const i=1/n,o=(e,t,r,n,i)=>{const o=n?1:0,a=(e+1)*r-o,s=t*r,l=(t+1)*r-o;i[0]=e*r,i[1]=s,i[2]=a,i[3]=l};let a=new S_(n);const s=[];for(let l=0;l<n*n;l++){o(l%n,Math.floor(l/n),i,!1,s);const t=k_(s[0],s[1],e),r=k_(s[2],s[1],e),c=k_(s[2],s[3],e),u=k_(s[0],s[3],e);a.minimums.push(Math.min(t,r,c,u)),a.maximums.push(Math.max(t,r,c,u)),a.leaves.push(1)}for(r.push(a),n/=2;n>=1;n/=2){const e=r[r.length-1];a=new S_(n);for(let t=0;t<n*n;t++){o(t%n,Math.floor(t/n),2,!0,s);const r=e.getElevation(s[0],s[1]),i=e.getElevation(s[2],s[1]),l=e.getElevation(s[2],s[3]),c=e.getElevation(s[0],s[3]),u=e.isLeaf(s[0],s[1]),d=e.isLeaf(s[2],s[1]),h=e.isLeaf(s[2],s[3]),p=e.isLeaf(s[0],s[3]),f=Math.min(r.min,i.min,l.min,c.min),m=Math.max(r.max,i.max,l.max,c.max),g=u&&d&&h&&p;a.maximums.push(m),a.minimums.push(f),a.leaves.push(m-f<=5&&g?1:0)}r.push(a)}return r}(this.dem),r=t.length-1,n=t[r];this._addNode(n.minimums[0],n.maximums[0],n.leaves[0]),this._construct(t,0,0,r,0)}raycastRoot(e,t,r,n,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;return E_([e,t,-100],[r,n,this.maximums[0]*a],i,o)}raycast(e,t,r,n,i,o){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.nodeCount)return null;const s=this.raycastRoot(e,t,r,n,i,o,a);if(null==s)return null;const l=[],c=[],u=[],d=[],h=[{idx:0,t:s,nodex:0,nodey:0,depth:0}];for(;h.length>0;){const{idx:s,t:p,nodex:f,nodey:m,depth:g}=h.pop();if(this.leaves[s]){C_(f,m,g,e,t,r,n,u,d);const s=1<<g,l=(f+0)/s,c=(f+1)/s,h=(m+0)/s,_=(m+1)/s,y=k_(l,h,this.dem)*a,v=k_(c,h,this.dem)*a,b=k_(c,_,this.dem)*a,x=k_(l,_,this.dem)*a,w=T_(u[0],u[1],y,d[0],u[1],v,d[0],d[1],b,i,o),A=T_(d[0],d[1],b,u[0],d[1],x,u[0],u[1],y,i,o),S=Math.min(null!==w?w:Number.MAX_VALUE,null!==A?A:Number.MAX_VALUE);if(S!==Number.MAX_VALUE)return S;{const e=B.vec3.scaleAndAdd([],i,o,p);if(M_(y,v,x,b,P_(e[0],u[0],d[0]),P_(e[1],u[1],d[1]))>=e[2])return p}continue}let _=0;for(let h=0;h<this._siblingOffset.length;h++){C_((f<<1)+this._siblingOffset[h][0],(m<<1)+this._siblingOffset[h][1],g+1,e,t,r,n,u,d),u[2]=-100,d[2]=this.maximums[this.childOffsets[s]+h]*a;const p=E_(u,d,i,o);if(null!=p){const e=p;l[h]=e;let t=!1;for(let r=0;r<_&&!t;r++)e>=l[c[r]]&&(c.splice(r,0,h),t=!0);t||(c[_]=h),_++}}for(let e=0;e<_;e++){const t=c[e];h.push({idx:this.childOffsets[s]+t,t:l[t],nodex:(f<<1)+this._siblingOffset[t][0],nodey:(m<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,r){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(r),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,r,n,i){if(1===e[n].isLeaf(t,r))return;this.childOffsets[i]||(this.childOffsets[i]=this.nodeCount);const o=n-1,a=e[o];let s=0,l=0;for(let c=0;c<this._siblingOffset.length;c++){const e=2*t+this._siblingOffset[c][0],n=2*r+this._siblingOffset[c][1],i=a.getElevation(e,n),o=a.isLeaf(e,n),u=this._addNode(i.min,i.max,o);o&&(s|=1<<c),l||(l=u)}for(let c=0;c<this._siblingOffset.length;c++)s&1<<c||this._construct(e,2*t+this._siblingOffset[c][0],2*r+this._siblingOffset[c][1],o,l+c)}}function M_(e,t,r,n,i,o){return It(It(e,r,o),It(t,n,o),i)}function k_(e,t,r){const n=r.dim,i=ee(e*n-.5,0,n-1),o=ee(t*n-.5,0,n-1),a=Math.floor(i),s=Math.floor(o),l=Math.min(a+1,n-1),c=Math.min(s+1,n-1);return M_(r.get(a,s),r.get(l,s),r.get(a,c),r.get(l,c),i-a,o-s)}const O_={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function R_(e,t,r){return(256*e*256+256*t+r)/10-1e4}function L_(e,t,r){return 256*e+t+r/256-32768}class D_{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(r&&"mapbox"!==r&&"terrarium"!==r)return void fe('"'.concat(r,'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".'));this.stride=t.height;const i=this.dim=t.height-2,o=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.floatView=new Float32Array(t.data.buffer),this.borderReady=n,this._modifiedForSources={},!n){for(let e=0;e<i;e++)o[this._idx(-1,e)]=o[this._idx(0,e)],o[this._idx(i,e)]=o[this._idx(i-1,e)],o[this._idx(e,-1)]=o[this._idx(e,0)],o[this._idx(e,i)]=o[this._idx(e,i-1)];o[this._idx(-1,-1)]=o[this._idx(0,0)],o[this._idx(i,-1)]=o[this._idx(i-1,0)],o[this._idx(-1,i)]=o[this._idx(0,i-1)],o[this._idx(i,i)]=o[this._idx(i-1,i-1)]}const a="terrarium"===r?L_:R_;for(let s=0;s<o.length;++s){const e=4*s;this.floatView[s]=a(this.pixels[e],this.pixels[e+1],this.pixels[e+2])}this._timestamp=Ne.now()}_buildQuadTree(){this._tree=new I_(this)}get(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(e=ee(e,-1,this.dim),t=ee(t,-1,this.dim));const r=this._idx(e,t);return this.floatView[r]}set(e,t,r){const n=this._idx(e,t),i=this.floatView[n];return this.floatView[n]=r,r-i}static getUnpackVector(e){return O_[e]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}static pack(e,t){const r=[0,0,0,0],n=D_.getUnpackVector(t);let i=Math.floor((e+n[3])/n[2]);return r[2]=i%256,i=Math.floor(i/256),r[1]=i%256,i=Math.floor(i/256),r[0]=i,r}getPixels(){return new lu({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,r){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let n=t*this.dim,i=t*this.dim+this.dim,o=r*this.dim,a=r*this.dim+this.dim;switch(t){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:o=a-1;break;case 1:a=o+1}const s=-t*this.dim,l=-r*this.dim;for(let c=o;c<a;c++)for(let t=n;t<i;t++){const r=4*this._idx(t,c),n=4*this._idx(t+s,c+l);this.pixels[r+0]=e.pixels[n+0],this.pixels[r+1]=e.pixels[n+1],this.pixels[r+2]=e.pixels[n+2],this.pixels[r+3]=e.pixels[n+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}function N_(e,t,r){1===e?t.headerLength=r.readFixed32():2===e?t.x=r.readVarint():3===e?t.y=r.readVarint():4===e?t.z=r.readVarint():5===e&&t.layers.push(function(e,t){return e.readFields(U_,{version:0,name:"",units:"",tileSize:0,buffer:0,pixelFormat:0,dataIndex:[]},t)}(r,r.readVarint()+r.pos))}function F_(e,t,r){1===e?(t.delta_filter=function(e,t){return e.readFields(z_,{blockSize:0},t)}(r,r.readVarint()+r.pos),t.filter="delta_filter"):2===e?(r.readVarint(),t.filter="zigzag_filter"):3===e?(r.readVarint(),t.filter="bitshuffle_filter"):4===e&&(r.readVarint(),t.filter="byteshuffle_filter")}function z_(e,t,r){1===e&&(t.blockSize=r.readVarint())}function j_(e,t,r){1===e?(r.readVarint(),t.codec="gzip_data"):2===e?(r.readVarint(),t.codec="jpeg_image"):3===e?(r.readVarint(),t.codec="webp_image"):4===e&&(r.readVarint(),t.codec="png_image")}function B_(e,t,r){let n=0,i=0;1===e?t.firstByte=r.readFixed64():2===e?t.lastByte=r.readFixed64():3===e?t.filters.push(function(e,t){return e.readFields(F_,{},t)}(r,r.readVarint()+r.pos)):4===e?t.codec=function(e,t){return e.readFields(j_,{},t)}(r,r.readVarint()+r.pos):5===e?i=r.readFloat():6===e?n=r.readFloat():7===e?t.bands.push(r.readString()):8===e?t.offset=r.readDouble():9===e&&(t.scale=r.readDouble()),0===t.offset&&(t.offset=i),0===t.scale&&(t.scale=n)}function U_(e,t,r){1===e?t.version=r.readVarint():2===e?t.name=r.readString():3===e?t.units=r.readString():4===e?t.tileSize=r.readVarint():5===e?t.buffer=r.readVarint():6===e?t.pixelFormat=r.readVarint():7===e&&t.dataIndex.push(function(e,t){return e.readFields(B_,{firstByte:0,lastByte:0,filters:[],codec:null,offset:0,scale:0,bands:[]},t)}(r,r.readVarint()+r.pos))}function V_(e,t,r){if(2===e)!function(e,t,r){e.readFields(q_,r,t)}(r,r.readVarint()+r.pos,t);else if(3===e)throw new Error("Not implemented")}function q_(e,t,r){if(1===e){let e=0;const n=r.readVarint()+r.pos;for(;r.pos<n;)t[e++]=r.readVarint()}}function H_(e,t){if(4!==t.length)throw new Error("Expected data of dimension 4 but got ".concat(t.length,"."));let r=t[3];for(let n=2;n>=1;n--){const i=1===n?1:0,o=2===n?1:0;for(let n=0;n<t[0];n++){const a=t[1]*n;for(let n=i;n<t[1];n++){const i=t[2]*(n+a);for(let n=o;n<t[2];n++){const o=t[3]*(n+i);for(let n=0;n<t[3];n++){const t=o+n;e[t]+=e[t-r]}}}}r*=t[n]}return e}function G_(e){for(let t=0,r=e.length;t<r;t++)e[t]=e[t]>>>1^-(1&e[t]);return e}function W_(e,t){switch(t){case"uint32":return e;case"uint16":for(let t=0;t<e.length;t+=2){const r=e[t],n=e[t+1];e[t]=(240&r)>>4|(61440&r)>>8|(240&n)<<4|61440&n,e[t+1]=15&r|(3840&r)>>4|(15&n)<<8|(3840&n)<<4}return e;case"uint8":for(let t=0;t<e.length;t+=4){const r=e[t],n=e[t+1],i=e[t+2],o=e[t+3];e[t+0]=(192&r)>>6|(192&n)>>4|(192&i)>>2|192&o,e[t+1]=(48&r)>>4|(48&n)>>2|48&i|(48&o)<<2,e[t+2]=(12&r)>>2|12&n|(12&i)<<2|(12&o)<<4,e[t+3]=3&r|(3&n)<<2|(3&i)<<4|(3&o)<<6}return e;default:throw new Error('Invalid pixel format, "'.concat(t,'"'))}}lo(D_,"DEMData"),lo(I_,"DemMinMaxQuadTree",{omit:["dem"]});var Y_=Uint8Array,Z_=Uint16Array,K_=Int32Array,X_=new Y_([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),J_=new Y_([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Q_=new Y_([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$_=function(e,t){for(var r=new Z_(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new K_(r[30]);for(n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return{b:r,r:i}},ey=$_(X_,2),ty=ey.b,ry=ey.r;
2ty[28]=258,ry[258]=28;for(var ny=$_(J_,0).b,iy=new Z_(32768),oy=0;oy<32768;++oy){var ay=(43690&oy)>>1|(21845&oy)<<1;iy[oy]=((65280&(ay=(61680&(ay=(52428&ay)>>2|(13107&ay)<<2))>>4|(3855&ay)<<4))>>8|(255&ay)<<8)>>1}var sy=function(e,t,r){for(var n=e.length,i=0,o=new Z_(t);i<n;++i)e[i]&&++o[e[i]-1];var a,s=new Z_(t);for(i=1;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;a=new Z_(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[iy[d]>>l]=c;return a},ly=new Y_(288);for(oy=0;oy<144;++oy)ly[oy]=8;for(oy=144;oy<256;++oy)ly[oy]=9;for(oy=256;oy<280;++oy)ly[oy]=7;for(oy=280;oy<288;++oy)ly[oy]=8;var cy=new Y_(32);for(oy=0;oy<32;++oy)cy[oy]=5;var uy=sy(ly,9),dy=sy(cy,5),hy=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},py=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},fy=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},my=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],gy=function(e,t,r){var n=new Error(t||my[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,gy),!r)throw n;return n},_y=new Y_(0),yy="undefined"!=typeof TextDecoder&&new TextDecoder;try{yy.decode(_y,{stream:!0})}catch(e){}const vy={gzip_data:"gzip"};class by extends Error{constructor(e){super(e),this.name="MRTError"}}const xy={0:"uint32",1:"uint32",2:"uint16",3:"uint8"},wy={uint32:1,uint16:2,uint8:4},Ay={uint32:Uint32Array,uint16:Uint16Array,uint8:Uint8Array};let Sy;class Ey{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;this.x=NaN,this.y=NaN,this.z=NaN,this.layers={},this._cacheSize=e}getLayer(e){const t=this.layers[e];if(!t)throw new by("Layer '".concat(e,"' not found"));return t}getHeaderLength(e){const t=new Uint8Array(e),r=new DataView(e);if(13!==t[0])throw new by("File is not a valid MRT.");return r.getUint32(1,!0)}parseHeader(e){const t=new Uint8Array(e),r=this.getHeaderLength(e);if(t.length<r)throw new by("Expected header with length >= ".concat(r," but got buffer of length ").concat(t.length));const n=function(e){return e.readFields(N_,{headerLength:0,x:0,y:0,z:0,layers:[]},void 0)}(new Sy(t.subarray(0,r)));if(!isNaN(this.x)&&(this.x!==n.x||this.y!==n.y||this.z!==n.z))throw new by("Invalid attempt to parse header ".concat(n.z,"/").concat(n.x,"/").concat(n.y," for tile ").concat(this.z,"/").concat(this.x,"/").concat(this.y));this.x=n.x,this.y=n.y,this.z=n.z;for(const i of n.layers)this.layers[i.name]=new Ty(i,{cacheSize:this._cacheSize});return this}createDecodingTask(e){const t=[],r=this.getLayer(e.layerName);for(let n of e.blockIndices){const i=r.dataIndex[n],o=i.firstByte-e.firstByte,a=i.lastByte-e.firstByte;if(r._blocksInProgress.has(n))continue;const s={layerName:r.name,firstByte:o,lastByte:a,pixelFormat:r.pixelFormat,blockIndex:n,blockShape:[i.bands.length].concat(r.bandShape),buffer:r.buffer,codec:i.codec.codec,filters:i.filters.map((e=>e.filter))};r._blocksInProgress.add(n),t.push(s)}return new Py(t,(()=>{t.forEach((e=>r._blocksInProgress.delete(e.blockIndex)))}),((e,n)=>{if(t.forEach((e=>r._blocksInProgress.delete(e.blockIndex))),e)throw e;n.forEach((e=>{this.getLayer(e.layerName).processDecodedData(e)}))}))}}class Ty{constructor(e,t){let{version:r,name:n,units:i,tileSize:o,pixelFormat:a,buffer:s,dataIndex:l}=e;if(this.version=r,1!==this.version)throw new by("Cannot parse raster layer encoded with MRT version ".concat(r));this.name=n,this.units=i,this.tileSize=o,this.buffer=s,this.pixelFormat=xy[a],this.dataIndex=l,this.bandShape=[o+2*s,o+2*s,wy[this.pixelFormat]],this._decodedBlocks=new w_(t?t.cacheSize:5),this._blocksInProgress=new Set}get dimension(){return wy[this.pixelFormat]}get cacheSize(){return this._decodedBlocks.capacity}getBandList(){return this.dataIndex.map((e=>{let{bands:t}=e;return t})).flat()}processDecodedData(e){const t=e.blockIndex.toString();this._decodedBlocks.get(t)||this._decodedBlocks.put(t,e.data)}getBlockForBand(e){let t=0;switch(typeof e){case"string":for(const[r,n]of this.dataIndex.entries()){for(const[i,o]of n.bands.entries())if(o===e)return{bandIndex:t+i,blockIndex:r,blockBandIndex:i};t+=n.bands.length}break;case"number":for(const[r,n]of this.dataIndex.entries()){if(e>=t&&e<t+n.bands.length)return{bandIndex:e,blockIndex:r,blockBandIndex:e-t};t+=n.bands.length}break;default:throw new by("Invalid band `".concat(JSON.stringify(e),"`. Expected string or integer."))}throw new by("Band not found: ".concat(JSON.stringify(e)))}getDataRange(e){let t=1/0,r=-1/0;const n=[],i=new Set;for(const o of e){const{blockIndex:e}=this.getBlockForBand(o);if(e<0)throw new by("Invalid band: ".concat(JSON.stringify(o)));const a=this.dataIndex[e];n.includes(e)||n.push(e),i.add(e),t=Math.min(t,a.firstByte),r=Math.max(r,a.lastByte)}if(i.size>this.cacheSize)throw new by("Number of blocks to decode (".concat(i.size,") exceeds cache size (").concat(this.cacheSize,")."));return{layerName:this.name,firstByte:t,lastByte:r,blockIndices:n}}hasBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0}hasDataForBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0&&!!this._decodedBlocks.get(t.toString())}getBandView(e){const{blockIndex:t,blockBandIndex:r}=this.getBlockForBand(e),n=this._decodedBlocks.get(t.toString());if(!n)throw new by("Data for band ".concat(JSON.stringify(e),' of layer "').concat(this.name,'" not decoded.'));const i=this.dataIndex[t],o=this.bandShape.reduce(((e,t)=>e*t),1),a=r*o,s=n.subarray(a,a+o);return{data:s,bytes:new Uint8Array(s.buffer).subarray(s.byteOffset,s.byteOffset+s.byteLength),tileSize:this.tileSize,buffer:this.buffer,pixelFormat:this.pixelFormat,dimension:this.dimension,offset:i.offset,scale:i.scale}}}
2Ey.setPbf=function(e){Sy=e};class Py{constructor(e,t,r){this.tasks=e,this._onCancel=t,this._onComplete=r,this._finalized=!1}cancel(){this._finalized||(this._onCancel(),this._finalized=!0)}complete(e,t){this._finalized||(this._onComplete(e,t),this._finalized=!0)}}Ey.performDecoding=function(e,t){const r=new Uint8Array(e);return Promise.all(t.tasks.map((e=>{const{layerName:t,firstByte:n,lastByte:i,pixelFormat:o,blockShape:a,blockIndex:s,filters:l,codec:c}=e,u=r.subarray(n,i+1),d=new Uint32Array(a[0]*a[1]*a[2]);let h;if("gzip_data"!==c)throw new by("Unhandled codec: ".concat(c));return h=function(e,t){if(!globalThis.DecompressionStream&&"gzip_data"===t)return Promise.resolve(((o=function(e){31==e[0]&&139==e[1]&&8==e[2]||gy(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=2+(e[10]|e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)}(i=e))+8>i.length&&gy(6,"invalid gzip data"),function(e,t,r){var n=e.length;if(!n||t.f&&!t.l)return r||new Y_(0);var i=!r,o=i||2!=t.i,a=t.i;i&&(r=new Y_(3*n));var s,l,c=function(e){var t=r.length;if(e>t){var n=new Y_(Math.max(2*t,e));n.set(r),r=n}},u=t.f||0,d=t.p||0,h=t.b||0,p=t.l,f=t.d,m=t.m,g=t.n,_=8*n;do{if(!p){u=py(e,d,1);var y=py(e,d+1,3);if(d+=3,!y){var v=e[(M=4+((d+7)/8|0))-4]|e[M-3]<<8,b=M+v;if(b>n){a&&gy(0);break}o&&c(h+v),r.set(e.subarray(M,b),h),t.b=h+=v,t.p=d=8*b,t.f=u;continue}if(1==y)p=uy,f=dy,m=9,g=5;else if(2==y){var x=py(e,d,31)+257,w=py(e,d+10,15)+4,A=x+py(e,d+5,31)+1;d+=14;for(var S=new Y_(A),E=new Y_(19),T=0;T<w;++T)E[Q_[T]]=py(e,d+3*T,7);d+=3*w;var P=hy(E),C=(1<<P)-1,I=sy(E,P);for(T=0;T<A;){var M,k=I[py(e,d,C)];if(d+=15&k,(M=k>>4)<16)S[T++]=M;else{var O=0,R=0;for(16==M?(R=3+py(e,d,3),d+=2,O=S[T-1]):17==M?(R=3+py(e,d,7),d+=3):18==M&&(R=11+py(e,d,127),d+=7);R--;)S[T++]=O}}var L=S.subarray(0,x),D=S.subarray(x);m=hy(L),g=hy(D),p=sy(L,m),f=sy(D,g)}else gy(1);if(d>_){a&&gy(0);break}}o&&c(h+131072);for(var N=(1<<m)-1,F=(1<<g)-1,z=d;;z=d){var j=(O=p[fy(e,d)&N])>>4;if((d+=15&O)>_){a&&gy(0);break}if(O||gy(2),j<256)r[h++]=j;else{if(256==j){z=d,p=null;break}var B=j-254;j>264&&(B=py(e,d,(1<<(q=X_[T=j-257]))-1)+ty[T],d+=q);var U=f[fy(e,d)&F],V=U>>4;if(U||gy(3),d+=15&U,D=ny[V],V>3){var q=J_[V];D+=fy(e,d)&(1<<q)-1,d+=q}if(d>_){a&&gy(0);break}o&&c(h+131072);var H=h+B;if(h<D){var G=0-D,W=Math.min(D,H);for(G+h<0&&gy(3);h<W;++h)r[h]=(void 0)[G+h]}for(;h<H;++h)r[h]=r[h-D]}}t.l=p,t.p=z,t.b=h,t.f=u,p&&(u=1,t.m=m,t.d=f,t.n=g)}while(!u);return h!=r.length&&i?(s=r,(null==(l=h)||l>s.length)&&(l=s.length),new Y_(s.subarray(0,l))):r.subarray(0,h)}(i.subarray(o,-8),{i:2},new Y_(((r=i)[(n=r.length)-4]|r[n-3]<<8|r[n-2]<<16|r[n-1]<<24)>>>0))));var r,n,i,o;const a=vy[t];if(!a)throw new Error("Unhandled codec: ".concat(t));const s=new globalThis.DecompressionStream(a);return new Response(new Blob([e]).stream().pipeThrough(s)).arrayBuffer().then((e=>new Uint8Array(e)))}(u,c).then((e=>(function(e,t){e.readFields(V_,t)}(new Sy(e),d),new(0,Ay[o])(d.buffer)))),h.then((e=>{for(let t=l.length-1;t>=0;t--)switch(l[t]){case"delta_filter":H_(e,a);break;case"zigzag_filter":G_(e);break;case"bitshuffle_filter":W_(e,o);break;default:throw new by('Unhandled filter "'.concat(l[t],'"'))}return{layerName:t,blockIndex:s,data:e}})).catch((e=>{throw e}))})))},lo(Py,"MRTDecodingBatch",{omit:["_onCancel","_onComplete"]});let Cy,Iy,My,ky,Oy,Ry=null;function Ly(){return ye()&&self.worker&&self.worker.dracoUrl?self.worker.dracoUrl:Iy||Te.DRACO_URL}function Dy(){if(ye()&&self.worker&&self.worker.meshoptUrl)return self.worker.meshoptUrl;if(ky)return ky;const e=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);if("object"!=typeof WebAssembly)throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return ky=WebAssembly.validate(e)?Te.MESHOPT_SIMD_URL:Te.MESHOPT_URL,ky}const Ny={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Fy={5120:"DT_INT8",5121:"DT_UINT8",5122:"DT_INT16",5123:"DT_UINT16",5125:"DT_UINT32",5126:"DT_FLOAT32"},zy={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function jy(e,t,r){const n=r.json.bufferViews.length,i=r.buffers.length;t.bufferView=n,r.json.bufferViews[n]={buffer:i,byteLength:e.byteLength},r.buffers[i]=e}const By="KHR_draco_mesh_compression";function Uy(e,t){const r=e.extensions&&e.extensions[By];if(!r)return;const n=new My.Decoder,i=Zy(t,r.bufferView),o=new My.Mesh;if(!n.DecodeArrayToMesh(i,i.byteLength,o))throw new Error("Failed to decode Draco mesh");const a=t.json.accessors[e.indices],s=Ny[a.componentType],l=a.count*s.BYTES_PER_ELEMENT,c=My._malloc(l);s===Uint16Array?n.GetTrianglesUInt16Array(o,l,c):n.GetTrianglesUInt32Array(o,l,c),jy(My.memory.buffer.slice(c,c+l),a,t),My._free(c);for(const u of Object.keys(r.attributes)){const i=n.GetAttributeByUniqueId(o,r.attributes[u]),a=t.json.accessors[e.attributes[u]],s=Fy[a.componentType],l=a.count*zy[a.type]*Ny[a.componentType].BYTES_PER_ELEMENT,c=My._malloc(l);n.GetAttributeDataArrayForAllPoints(o,i,My[s],l,c),jy(My.memory.buffer.slice(c,c+l),a,t),My._free(c)}n.destroy(),o.destroy(),delete e.extensions[By]}const Vy="EXT_meshopt_compression";function qy(e,t){if(!e.extensions||!e.extensions[Vy])return;const r=e.extensions[Vy],n=new Uint8Array(t.buffers[r.buffer],r.byteOffset||0,r.byteLength||0),i=new Uint8Array(r.count*r.byteStride);Oy.decodeGltfBuffer(i,r.count,r.byteStride,n,r.mode,r.filter),e.buffer=t.buffers.length,e.byteOffset=0,t.buffers[e.buffer]=i.buffer,delete e.extensions[Vy]}const Hy=1179937895,Gy=new TextDecoder("utf8");function Wy(e,t){return new URL(e,t).href}function Yy(e,t,r,n){return fetch(Wy(e.uri,n)).then((e=>e.arrayBuffer())).then((e=>{t.buffers[r]=e}))}function Zy(e,t){const r=e.json.bufferViews[t];return new Uint8Array(e.buffers[r.buffer],r.byteOffset||0,r.byteLength)}function Ky(e,t,r,n){if(e.uri){const i=Wy(e.uri,n);return fetch(i).then((e=>e.blob())).then((e=>createImageBitmap(e))).then((e=>{t.images[r]=e}))}if(void 0!==e.bufferView){const n=Zy(t,e.bufferView),i=new Blob([n],{type:e.mimeType});return createImageBitmap(i).then((e=>{t.images[r]=e}))}}function Xy(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;const n={json:null,images:[],buffers:[]};
2if(new Uint32Array(e,t,1)[0]===Hy){const r=new Uint32Array(e,t);let i=2;const o=(r[i++]>>2)-3,a=r[i++]>>2;if(i++,n.json=JSON.parse(Gy.decode(r.subarray(i,i+a))),i+=a,i<o){const o=r[i++];i++;const a=t+(i<<2);n.buffers[0]=e.slice(a,a+o)}}else n.json=JSON.parse(Gy.decode(new Uint8Array(e,t)));const{buffers:i,images:o,meshes:a,extensionsUsed:s,bufferViews:l}=n.json;let c=Promise.resolve();if(i){const e=[];for(let t=0;t<i.length;t++){const o=i[t];o.uri?e.push(Yy(o,n,t,r)):n.buffers[t]||(n.buffers[t]=null)}c=Promise.all(e)}return c.then((()=>{const e=[],t=s&&s.includes(By),i=s&&s.includes(Vy);if(t&&e.push(function(){if(!My)return null!=Cy?Cy:(Cy=function(e){let t,r=null;function n(){t=new Uint8Array(r.buffer)}function i(){throw new Error("Unexpected Draco error.")}const o={a:{a:i,d:function(e,r,n){return t.copyWithin(e,r,r+n)},c:function(e){const i=t.length,o=Math.max(e>>>0,Math.ceil(1.2*i)),a=Math.ceil((o-i)/65536);try{return r.grow(a),n(),!0}catch(e){return!1}},b:i}};return(WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(e,o):e.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,o)))).then((e=>{const{Rb:i,Qb:o,P:a,T:s,X:l,Ja:c,La:u,Qa:d,Va:h,Wa:p,eb:f,jb:m,f:g,e:_,yb:y,zb:v,Ab:b,Bb:x,Db:w,Gb:A}=e.instance.exports;r=_;const S=(()=>{let e=0,r=0,n=0,a=0;return s=>{n&&(i(a),i(e),r+=n,n=e=0),e||(r+=128,e=o(r));const l=s.length+7&-8;let c=e;l>=r&&(n=l,c=a=o(l));for(let e=0;e<s.length;e++)t[c+e]=s[e];return c}})();return n(),g(),{memory:_,_free:i,_malloc:o,Mesh:class{constructor(){this.ptr=a()}destroy(){s(this.ptr)}},Decoder:class{constructor(){this.ptr=c()}destroy(){m(this.ptr)}DecodeArrayToMesh(e,t,r){const n=S(e),i=u(this.ptr,n,t,r.ptr);return!!l(i)}GetAttributeByUniqueId(e,t){return{ptr:d(this.ptr,e.ptr,t)}}GetTrianglesUInt16Array(e,t,r){h(this.ptr,e.ptr,t,r)}GetTrianglesUInt32Array(e,t,r){p(this.ptr,e.ptr,t,r)}GetAttributeDataArrayForAllPoints(e,t,r,n,i){f(this.ptr,e.ptr,t.ptr,r,n,i)}},DT_INT8:y(),DT_UINT8:v(),DT_INT16:b(),DT_UINT16:x(),DT_UINT32:w(),DT_FLOAT32:A()}}))}(fetch(Ly())),Cy.then((e=>{My=e,Cy=void 0})))}()),i&&e.push(function(){if(Oy)return;const e=function(e){let t;const r=WebAssembly.instantiateStreaming(e,{}).then((e=>{t=e.instance,t.exports.__wasm_call_ctors()})),n={NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},i={ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return{ready:r,supported:!0,decodeGltfBuffer(e,r,o,a,s,l){!function(e,t,r,n,i,o,a){const s=e.exports.sbrk,l=n+3&-4,c=s(l*i),u=s(o.length),d=new Uint8Array(e.exports.memory.buffer);d.set(o,u);const h=t(c,n,i,u,o.length);if(0===h&&a&&a(c,l,i),r.set(d.subarray(c,c+n*i)),s(c-s(0)),0!==h)throw new Error("Malformed buffer data: ".concat(h))}(t,t.exports[i[s]],e,r,o,a,t.exports[n[l]])}}}(fetch(Dy()));return e.ready.then((()=>{Oy=e}))}()),o)for(let a=0;a<o.length;a++)e.push(Ky(o[a],n,a,r));return(e.length?Promise.all(e):Promise.resolve()).then((()=>
2{if(t&&a)for(const{primitives:e}of a)for(const t of e)Uy(t,n);if(i&&a&&l)for(const e of l)qy(e,n);return n}))}))}function Jy(e,t){const r=e.json.bufferViews[t.bufferView],n=Ny[t.componentType];return new n(e.buffers[r.buffer],(t.byteOffset||0)+(r.byteOffset||0),t.count*(r.byteStride&&r.byteStride!==zy[t.type]*n.BYTES_PER_ELEMENT?r.byteStride/n.BYTES_PER_ELEMENT:zy[t.type]))}function Qy(e,t,r,n){const i=Ny[t.componentType],o=function(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:return 1}}(i),a=e.json.bufferViews[t.bufferView],s=a.byteStride?a.byteStride/i.BYTES_PER_ELEMENT:zy[t.type],l=r.float32,c=l.length/r.capacity;for(let u=0,d=0;u<t.count*s;u+=s,d+=c)for(let e=0;e<c;e++)l[d+e]=n[u+e]*o;r._trim()}function $y(e,t,r){const n=e.indices,i=e.attributes,o={};o.indexArray=new za;const a=t.json.accessors[n],s=a.count/3;o.indexArray.reserve(s);const l=Jy(t,a);for(let h=0;h<s;h++)o.indexArray.emplaceBack(l[3*h],l[3*h+1],l[3*h+2]);o.indexArray._trim(),o.vertexArray=new Ta;const c=t.json.accessors[i.POSITION];o.vertexArray.reserve(c.count);const u=Jy(t,c);for(let h=0;h<c.count;h++)o.vertexArray.emplaceBack(u[3*h],u[3*h+1],u[3*h+2]);if(o.vertexArray._trim(),o.aabb=new vc(c.min,c.max),o.centroid=function(e,t){const r=[0,0,0],n=e.length;if(n>0){for(let i=0;i<n;i++){const n=3*e[i];r[0]+=t[n],r[1]+=t[n+1],r[2]+=t[n+2]}r[0]/=n,r[1]/=n,r[2]/=n}return r}(l,u),void 0!==i.COLOR_0){const e=t.json.accessors[i.COLOR_0],r=zy[e.type],n=Jy(t,e);o.colorArray=3===r?new Ta:new Ea,o.colorArray.resize(e.count),Qy(t,e,o.colorArray,n)}if(void 0!==i.NORMAL){o.normalArray=new Ta;const e=t.json.accessors[i.NORMAL];o.normalArray.resize(e.count);const r=Jy(t,e);Qy(t,e,o.normalArray,r)}if(void 0!==i.TEXCOORD_0&&r.length>0){o.texcoordArray=new Wa;const e=t.json.accessors[i.TEXCOORD_0];o.texcoordArray.resize(e.count);const r=Jy(t,e);Qy(t,e,o.texcoordArray,r)}if(void 0!==i._FEATURE_ID_RGBA4444){const e=t.json.accessors[i._FEATURE_ID_RGBA4444];t.json.extensionsUsed&&t.json.extensionsUsed.includes("EXT_meshopt_compression")&&(o.featureData=Jy(t,e))}void 0!==i._FEATURE_RGBA4444&&(o.featureData=new Uint32Array(Jy(t,t.json.accessors[i._FEATURE_RGBA4444]).buffer));const d=e.material;return o.material=function(e,t){const{emissiveFactor:r=[0,0,0],alphaMode:n="OPAQUE",alphaCutoff:i=.5,normalTexture:o,occlusionTexture:a,emissiveTexture:s,doubleSided:l}=e,{baseColorFactor:c=[1,1,1,1],metallicFactor:u=1,roughnessFactor:d=1,baseColorTexture:h,metallicRoughnessTexture:p}=e.pbrMetallicRoughness||{},f=a?t[a.index]:void 0;if(a&&a.extensions&&a.extensions.KHR_texture_transform&&f){const e=a.extensions.KHR_texture_transform;f.offsetScale=[e.offset[0],e.offset[1],e.scale[0],e.scale[1]]}return{pbrMetallicRoughness:{baseColorFactor:new Pt(...c),metallicFactor:u,roughnessFactor:d,baseColorTexture:h?t[h.index]:void 0,metallicRoughnessTexture:p?t[p.index]:void 0},doubleSided:l,emissiveFactor:r,alphaMode:n,alphaCutoff:i,normalTexture:o?t[o.index]:void 0,occlusionTexture:f,emissionTexture:s?t[s.index]:void 0,defined:void 0===e.defined}}(void 0!==d?t.json.materials[d]:{defined:!1},r),o}function ev(e,t,r){const{matrix:n,rotation:i,translation:o,scale:a,mesh:s,extras:l,children:c}=e,u={};if(u.matrix=n||B.mat4.fromRotationTranslationScale([],i||[0,0,0,1],o||[0,0,0],a||[1,1,1]),void 0!==s){u.meshes=r[s];const e=u.anchor=[0,0];for(const t of u.meshes){const{min:r,max:n}=t.aabb;e[0]+=r[0]+n[0],e[1]+=r[1]+n[1]}e[0]=Math.floor(e[0]/u.meshes.length/2),e[1]=Math.floor(e[1]/u.meshes.length/2)}if(l&&(l.id&&(u.id=l.id),l.lights&&(u.lights=function(e){if(!e.length)return[];const t=function(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.codePointAt(n);return r}(e),r=[],n=t.length/24,i=new Uint16Array(t.buffer),o=new Float32Array(t.buffer);for(let a=0;a<n;a++){const e=i[2*a*6]/30,t=i[2*a*6+1]/30,n=i[2*a*6+10]/100,s=o[6*a+1],l=o[6*a+2],c=o[6*a+3],u=o[6*a+4],d=c-s,h=u-l,p=Math.hypot(d,h);r.push({pos:[s+.5*d,l+.5*h,t],normal:[h/p,-d/p,0],width:p,height:e,depth:n,points:[s,l,c,u]})}return r}(l.lights))),c){const e=[];for(const n of c)e.push(ev(t.json.nodes[n],t,r));u.children=e}return u}function tv(e){if(0===e.vertices.length||0===e.indices.length)return null;const t=new Yu(e.vertices,e.indices,8,256),[r,n]=[t.min.clone(),t.max.clone()];return{vertices:e.vertices,indices:e.indices,grid:t,min:r,max:n}}function rv(e){if(!e.extras||!e.extras.ground)return null;const t=e.extras.ground;if(!t||!Array.isArray(t)||0===t.length)return null;const r=t[0];if(!r||!Array.isArray(r)||0===r.length)return null;const n=[];for(const a of r){if(!Array.isArray(a)||2!==a.length)continue;const e=a[0],t=a[1];"number"==typeof e&&"number"==typeof t&&n.push(new H(e,t))}if(n.length<3)return null;n.length>1&&n[n.length-1].equals(n[0])&&n.pop();let i=0;for(let a=0;a<n.length;a++){const e=n[a],t=n[(a+1)%n.length],r=n[(a+2)%n.length];i+=(e.x-t.x)*(r.y-t.y)-(r.x-t.x)*(e.y-t.y)}i>0&&n.reverse();const o=hu(n.flatMap((e=>[e.x,e.y])),[]);return 0===o.length?null:{vertices:n,indices:o}}function nv(e,t){const r=[],n=[];let i=0;const o=[];for(const a of e){i=r.length;const e=a.vertexArray.float32,s=a.indexArray.uint16;for(let n=0;n<a.vertexArray.length;n++)o[0]=e[3*n+0],o[1]=e[3*n+1],o[2]=e[3*n+2],B.vec3.transformMat4(o,o,t),r.push(new H(o[0],o[1]));for(let t=0;t<3*a.indexArray.length;t++)n.push(s[t]+i)}if(n.length%3!=0)return null;for(let a=0;a<n.length;a+=3){const e=r[n[a+0]],t=r[n[a+1]],i=r[n[a+2]];(e.x-t.x)*(i.y-t.y)-(i.x-t.x)*(e.y-t.y)>0&&([n[a+1],n[a+2]]=[n[a+2],n[a+1]])}return{vertices:r,indices:n}}
2function iv(e){const t=function(e,t){const r=[],n=WebGL2RenderingContext;if(e.json.textures)for(const i of e.json.textures){const o={magFilter:n.LINEAR,minFilter:n.NEAREST,wrapS:n.REPEAT,wrapT:n.REPEAT};void 0!==i.sampler&&Object.assign(o,e.json.samplers[i.sampler]),r.push({image:t[i.source],sampler:o,uploaded:!1})}return r}(e,e.images),r=function(e,t){const r=[];for(const n of e.json.meshes){const i=[];for(const r of n.primitives)i.push($y(r,e,t));r.push(i)}return r}(e,t),{scenes:n,scene:i,nodes:o}=e.json,a=n?n[i||0].nodes:o,s=[];for(const l of a)s.push(ev(o[l],e,r));return function(e,t,r){const n={},i=new Set;for(let o=0;o<e.length;o++){const e=r[t[o]];if(!e.extras)continue;const a=e.extras["mapbox:footprint:version"],s=e.extras["mapbox:footprint:id"];(a||s)&&i.add(o),"1.0.0"===a&&s&&(n[s]=o)}for(let o=0;o<e.length;o++){if(i.has(o))continue;const a=e[o],s=r[t[o]];if(!s.extras)continue;let l=null;a.id in n&&(l=nv(e[n[a.id]].meshes,a.matrix)),l||(l=rv(s)),l&&(a.footprint=tv(l))}if(i.size>0){const t=Array.from(i.values()).sort(((e,t)=>e-t));for(let r=t.length-1;r>=0;r--)e.splice(t[r],1)}}(s,a,e.json.nodes),s}function ov(e){e.heightmap=new Float32Array(4096),e.heightmap.fill(-1);const t=e.vertexArray.float32,r=e.aabb.min[0]-1,n=e.aabb.min[1]-1,i=rg/(e.aabb.max[0]-r+2),o=rg/(e.aabb.max[1]-n+2);for(let a=0;a<t.length;a+=3){const s=t[a+2],l=(t[a+0]-r)*i|0,c=(t[a+1]-n)*o|0;s>e.heightmap[c*rg+l]&&(e.heightmap[c*rg+l]=s)}}function av(e,t){const r={};r.indexArray=new za,r.indexArray.reserve(4*e.length),r.vertexArray=new Ta,r.vertexArray.reserve(10*e.length),r.colorArray=new Ea,r.vertexArray.reserve(10*e.length);let n=0;for(const a of e){const e=Math.min(10,Math.max(4,1.3*a.height))*t,i=[-a.normal[1],a.normal[0],0],o=Math.min(.29,.1*a.width/a.depth),s=a.width-2*a.depth*t*(o+.01),l=B.vec3.scaleAndAdd([],a.pos,i,s/2),c=B.vec3.scaleAndAdd([],a.pos,i,-s/2),u=[l[0],l[1],l[2]+a.height],d=[c[0],c[1],c[2]+a.height],h=B.vec3.scaleAndAdd([],a.normal,i,o);B.vec3.scale(h,h,e);const p=B.vec3.scaleAndAdd([],a.normal,i,-o);B.vec3.scale(p,p,e),B.vec3.add(h,l,h),B.vec3.add(p,c,p),l[2]+=.1,c[2]+=.1,r.vertexArray.emplaceBack(h[0],h[1],h[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]),r.vertexArray.emplaceBack(l[0],l[1],l[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(u[0],u[1],u[2]),r.vertexArray.emplaceBack(d[0],d[1],d[2]),r.vertexArray.emplaceBack(l[0],l[1],l[2]),r.vertexArray.emplaceBack(c[0],c[1],c[2]),r.vertexArray.emplaceBack(h[0],h[1],h[2]),r.vertexArray.emplaceBack(p[0],p[1],p[2]);const f=s/e/2;r.colorArray.emplaceBack(-f-o,-1,f,.8),r.colorArray.emplaceBack(f+o,-1,f,.8),r.colorArray.emplaceBack(-f,0,f,1.3),r.colorArray.emplaceBack(f,0,f,1.3),r.colorArray.emplaceBack(f+o,-.8,f,.7),r.colorArray.emplaceBack(f+o,-.8,f,.7),r.colorArray.emplaceBack(0,0,f,1.3),r.colorArray.emplaceBack(0,0,f,1.3),r.colorArray.emplaceBack(f+o,-1.2,f,.8),r.colorArray.emplaceBack(f+o,-1.2,f,.8),r.indexArray.emplaceBack(6+n,4+n,8+n),r.indexArray.emplaceBack(7+n,9+n,5+n),r.indexArray.emplaceBack(0+n,1+n,2+n),r.indexArray.emplaceBack(1+n,3+n,2+n),n+=10}const i={defined:!0,emissiveFactor:[0,0,0]},o={};return o.baseColorFactor=Pt.white,i.pbrMetallicRoughness=o,r.material=i,r.aabb=new vc([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),r}class sv{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const r=e[t];this._stringToNumber[r]=t,this._numberToString[t]=r}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}const lv=["id","tile","layer","source","sourceLayer","state"];class cv{constructor(e,t,r,n,i){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=r,this._y=n,this.properties=e.properties,this.id=i}clone(){const e=new cv(this._vectorTileFeature,this._z,this._x,this._y,this.id);return this.state&&(e.state=i({},this.state)),this.layer&&(e.layer=i({},this.layer)),this.source&&(e.source=this.source),this.sourceLayer&&(e.sourceLayer=this.sourceLayer),e}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",state:void 0,geometry:this.geometry,properties:this.properties};for(const t of lv)void 0!==this[t]&&(e[t]=this[t]);return e}}class uv{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new ao(Jr,16,0),this.featureIndexArray=new ls,this.promoteId=t,this.is3DTile=!1,this.serializedLayersCache=new Map}insert(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i,o);const l=this.grid;for(let c=0;c<t.length;c++){const e=t[c],r=[1/0,1/0,-1/0,-1/0];for(let t=0;t<e.length;t++){const n=e[t];r[0]=Math.min(r[0],n.x),r[1]=Math.min(r[1],n.y),r[2]=Math.max(r[2],n.x),r[3]=Math.max(r[3],n.y)}0!==a&&(r[0]-=a,r[1]-=a,r[2]+=a,r[3]+=a),r[0]<Jr&&r[1]<Jr&&r[2]>=0&&r[3]>=0&&l.insert(s,r[0],r[1],r[2],r[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new fd.VectorTile(new hp(this.rawTileData)).layers,this.sourceLayerCoder=new sv(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t){var r=this;const{tilespaceGeometry:n,transform:i,tileTransform:o,pixelPosMatrix:a,availableImages:s}=t;this.loadVTLayers(),this.serializedLayersCache.clear();const l=n.bufferedTilespaceBounds,c=this.grid.query(l.min.x,l.min.y,l.max.x,l.max.y,((e,t,r,i)=>Hl(n.bufferedTilespaceGeometry,e,t,r,i)));c.sort(hv);let u=null;i.elevation&&c.length>0&&(u=ug.create(i.elevation,this.tileID));const d={};let h;for(let p=0;p<c.length;p++){const t=c[p];if(t===h)continue;h=t;const l=this.featureIndexArray.get(t);let f=null;
2this.is3DTile?this.loadMatchingModelFeature(d,l,e,n,i):this.loadMatchingFeature(d,l,e,s,(function(e,t,s){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return f||(f=Il(e,r.tileID.canonical,o)),t.queryIntersectsFeature(n,e,s,f,r.z,i,a,u,l)}))}return d}loadMatchingFeature(e,t,r,n,i){const{featureIndex:o,bucketIndex:a,sourceLayerIndex:s,layoutVertexArrayOffset:l}=t,c=this.bucketLayerIDs[a],u=r.layers,d=Object.keys(u);if(d.length&&!function(e,t){for(let r=0;r<e.length;r++)if(t.indexOf(e[r])>=0)return!0;return!1}(d,c))return;const h=r.sourceCache,p=this.sourceLayerCoder.decode(s),f=this.vtLayers[p].feature(o),m=this.getId(f,p);for(let g=0;g<c.length;g++){const t=c[g];if(!u[t])continue;const{styleLayer:r,targets:a}=u[t];let s={};void 0!==m&&(s=h.getFeatureState(r.sourceLayer,m));const d=!i||i(f,r,s,l);if(!d)continue;const p=new cv(f,this.z,this.x,this.y,m);p.tile=this.tileID.canonical,p.state=s;let _=this.serializedLayersCache.get(t);_||(_=r.serialize(),_.id=t,this.serializedLayersCache.set(t,_)),p.source=_.source,p.sourceLayer=_["source-layer"],p.layer=ie({},_),p.layer.paint=dv(_.paint,r.paint,f,s,n),p.layer.layout=dv(_.layout,r.layout,f,s,n);let y=!1;for(const e of a){this.updateFeatureProperties(p,e);const{filter:t}=e;if(t)if(f.properties=p.properties,t.needGeometry){const e=Ml(f,!0);if(!t.filter(new Do(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!t.filter(new Do(this.tileID.overscaledZ),f))continue;y=!0,e.targetId&&this.addFeatureVariant(p,e)}y&&this.appendToResult(e,t,o,p,d)}}loadMatchingModelFeature(e,t,r,n,i){const o=this.bucketLayerIDs[0][0],a=r.layers;if(!a[o])return;const{styleLayer:s,targets:l}=a[o];if("model"!==s.type)return;const c=n.tile,u=t.featureIndex,d=c.getBucket(s);if(!(d&&d instanceof _g))return;const h=function(e,t,r,n){const i=e.getNodesInfo()[t];if(i.hiddenByReplacement||!i.node.meshes)return;let o=Number.MAX_VALUE;const a=i.node,s=r.tile,l=n.calculatePosMatrix(s.tileID.toUnwrapped(),n.worldSize),c=i.evaluatedScale;let u=0;n.elevation&&a.elevation&&(u=a.elevation*n.elevation.exaggeration()),B.mat4.translate(l,l,[(a.anchor?a.anchor[0]:0)*(c[0]-1),(a.anchor?a.anchor[1]:0)*(c[1]-1),u]),B.mat4.scale(l,l,c);const d=r.queryGeometry,h=d.isPointQuery()?d.screenBounds:d.screenGeometry,p=function(e){const t=B.mat4.multiply([],l,e.matrix);B.mat4.multiply(t,n.expandedFarZProjMatrix,t);for(let r=0;r<e.meshes.length;++r){const i=e.meshes[r];if(r===e.lightMeshIndex)continue;const a=Bm(h,n,t,i.aabb);null!=a&&(o=Math.min(a,o))}if(e.children)for(const r of e.children)p(r)};if(p(a),o===Number.MAX_VALUE)return;const f=new ol(0,0);return xg(s.tileID.canonical,f,i.node.anchor[0],i.node.anchor[1]),{intersectionZ:o,position:f,feature:i.feature}}(d,u,n,i);if(!h)return;const{z:p,x:f,y:m}=c.tileID.canonical,{feature:g,intersectionZ:_,position:y}=h;let v={};void 0!==g.id&&(v=r.sourceCache.getFeatureState(s.sourceLayer,g.id));const b=new cv({},p,f,m,g.id);b.tile=this.tileID.canonical,b.state=v,b.properties=g.properties,b.geometry={type:"Point",coordinates:[y.lng,y.lat]};let x=this.serializedLayersCache.get(o);x||(x=s.serialize(),x.id=o,this.serializedLayersCache.set(o,x)),b.source=x.source,b.sourceLayer=x["source-layer"],b.layer=ie({},x);let w=!1;for(const A of l){this.updateFeatureProperties(b,A);const{filter:e}=A;if(e)if(g.properties=b.properties,e.needGeometry){if(!e.filter(new Do(this.tileID.overscaledZ),g,this.tileID.canonical))continue}else if(!e.filter(new Do(this.tileID.overscaledZ),g))continue;w=!0,A.targetId&&this.addFeatureVariant(b,A)}w&&this.appendToResult(e,o,u,b,_)}updateFeatureProperties(e,t,r){if(t.properties){const n={};for(const i in t.properties){const o=t.properties[i].evaluate({zoom:this.z},e._vectorTileFeature,e.state,e.tile,r);null!=o&&(n[i]=o)}e.properties=n}}addFeatureVariant(e,t,r){const n={target:t.target,namespace:t.namespace};t.properties&&(n.properties=e.properties),e.variants=e.variants||{},e.variants[t.targetId]=e.variants[t.targetId]||[],e.variants[t.targetId].push(n)}appendToResult(e,t,r,n,i){let o=e[t];void 0===o&&(o=e[t]=[]),o.push({featureIndex:r,feature:n,intersectionZ:i})}lookupSymbolFeatures(e,t,r,n,i){const o={};this.loadVTLayers();
vendor: 4,724 bytes, line 2
2for(const a of e)this.loadMatchingFeature(o,{bucketIndex:t,sourceLayerIndex:r,featureIndex:a,layoutVertexArrayOffset:0},n,i);return o}loadFeature(e){const{featureIndex:t,sourceLayerIndex:r}=e;this.loadVTLayers();const n=this.sourceLayerCoder.decode(r),i=this.vtFeatures[n];if(i[t])return i[t];const o=this.vtLayers[n].feature(t);return i[t]=o,o}hasLayer(e){for(const t of this.bucketLayerIDs)for(const r of t)if(e===r)return!0;return!1}getId(e,t){let r=e.id;if(this.promoteId){const n="string"==typeof this.promoteId?this.promoteId:this.promoteId[t];null!=n&&(r=e.properties[n]),"boolean"==typeof r&&(r=Number(r))}return r}}function dv(e,t,r,n,i){return ue(e,((e,o)=>{const a=t instanceof qo?t.get(o):null;return a&&a.evaluate?a.evaluate(r,n,i):a}))}function hv(e,t){return t-e}lo(uv,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});const pv=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class fv{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,r]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const n=r>>4;if(1!==n)throw new Error("Got v".concat(n," data when expected v1."));const i=pv[15&r];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new fv(a,o,i,e)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,n=arguments.length>3?arguments[3]:void 0;if(isNaN(e)||e<0)throw new Error("Unpexpected numItems value: ".concat(e,"."));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const i=pv.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,s=(8-a%8)%8;if(i<0)throw new Error("Unexpected typed array class: ".concat(r,"."));n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+a+s),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+s,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error("Added ".concat(e," items when expected ").concat(this.numItems,"."));return mv(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:a}=this,s=[0,i.length-1,0],l=[];for(;s.length;){const c=s.pop()||0,u=s.pop()||0,d=s.pop()||0;if(u-d<=a){for(let a=d;a<=u;a++){const s=o[2*a],c=o[2*a+1];s>=e&&s<=r&&c>=t&&c<=n&&l.push(i[a])}continue}const h=d+u>>1,p=o[2*h],f=o[2*h+1];p>=e&&p<=r&&f>=t&&f<=n&&l.push(i[h]),(0===c?e<=p:t<=f)&&(s.push(d),s.push(h-1),s.push(1-c)),(0===c?r>=p:n>=f)&&(s.push(h+1),s.push(u),s.push(1-c))}return l}within(e,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:i,nodeSize:o}=this,a=[0,n.length-1,0],s=[],l=r*r;for(;a.length;){const c=a.pop()||0,u=a.pop()||0,d=a.pop()||0;if(u-d<=o){for(let r=d;r<=u;r++)vv(i[2*r],i[2*r+1],e,t)<=l&&s.push(n[r]);continue}const h=d+u>>1,p=i[2*h],f=i[2*h+1];vv(p,f,e,t)<=l&&s.push(n[h]),(0===c?e-r<=p:t-r<=f)&&(a.push(d),a.push(h-1),a.push(1-c)),(0===c?e+r>=p:t+r>=f)&&(a.push(h+1),a.push(u),a.push(1-c))}return s}}function mv(e,t,r,n,i,o){if(i-n<=r)return;const a=n+i>>1;gv(e,t,a,n,i,o),mv(e,t,r,n,a-1,1-o),mv(e,t,r,a+1,i,1-o)}function gv(e,t,r,n,i,o){for(;i>n;){if(i-n>600){const a=i-n+1,s=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(a-c)/a)*(s-a/2<0?-1:1);gv(e,t,r,Math.max(n,Math.floor(r-s*c/a+u)),Math.min(i,Math.floor(r+(a-s)*c/a+u)),o)}const a=t[2*r+o];let s=n,l=i;for(_v(e,t,n,r),t[2*i+o]>a&&_v(e,t,n,i);s<l;){for(_v(e,t,s,l),s++,l--;t[2*s+o]<a;)s++;for(;t[2*l+o]>a;)l--}t[2*n+o]===a?_v(e,t,n,l):(l++,_v(e,t,l,i)),l<=r&&(n=l+1),r<=l&&(i=l-1)}}function _v(e,t,r,n){yv(e,r,n),yv(t,2*r,2*n),yv(t,2*r+1,2*n+1)}function yv(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function vv(e,t,r,n){const i=e-r,o=t-n;return i*i+o*o}e.$=Jo,e.A=tr,e.B=2,e.C=Vp,e.D=Ig,e.E=At,e.F=Hp,e.G=class extends Km{},e.H=hr,e.I=A_,e.J=Ot,e.K=Ko,e.L=Bi,e.M=Fi,e.N=ji,e.O=Xi,e.P=H,e.Q=Xo,e.R=tt,e.S=eo,e.T=mm,e.U=Ji,e.V=Km,e.W
2=Rn,e.X=Dn,e.Y=On,e.Z=_r,e._=Tt,e.a=function(e){return Te.API_CDN_URL_REGEX.test(e)},e.a$=cv,e.a0=Ui,e.a1=zi,e.a2=function(e){const t=e.value;let r=[];if(!t)return r;const n=hr(t);return"string"!==n?(r=r.concat([new Km(e.key,t,'string expected, "'.concat(n,'" found'))]),r):(Xm(t,!0)||(r=r.concat([new Km(e.key,t,'invalid url "'.concat(t,'"'))])),r)},e.a3=Zo,e.a4=zo,e.a5=Yo,e.a6=Ho,e.a7=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return _e(e.expression.evaluate(t))}interpolate(e,t,r){return{x:It(e.x,t.x,r),y:It(e.y,t.y,r),z:It(e.z,t.z,r),azimuthal:It(e.azimuthal,t.azimuthal,r),polar:It(e.polar,t.polar,r)}}},e.a8=Do,e.a9=$i,e.aA=dl,e.aB=class{constructor(e){this.entries={},this.scheduler=e}request(e,t,r,n){const i=this.entries[e]=this.entries[e]||{callbacks:[]};if(i.result){const[e,r]=i.result;return this.scheduler?this.scheduler.add((()=>{n(e,r)}),t):n(e,r),()=>{}}return i.callbacks.push(n),i.cancel||(i.cancel=r(((r,n)=>{i.result=[r,n];for(const e of i.callbacks)this.scheduler?this.scheduler.add((()=>{e(r,n)}),t):e(r,n);setTimeout((()=>delete this.entries[e]),3e3)}))),()=>{i.result||(i.callbacks=i.callbacks.filter((e=>e!==n)),i.callbacks.length||(i.cancel(),delete this.entries[e]))}}},e.aC=da,e.aD=function(e,t,r){const n=JSON.stringify(e.request);return e.data&&(this.deduped.entries[n]={result:[null,e.data]}),this.deduped.request(n,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},(t=>{const n=ot(e.request,((e,n,i,o)=>{e?t(e):n&&t(null,{vectorTile:r?void 0:new fd.VectorTile(new hp(n)),rawData:n,cacheControl:i,expires:o})}));return()=>{n.cancel(),t()}}),t)},e.aE=function(e){Ye++,Ye>Ue&&(e.getActor().send("enforceCacheSizeLimit",Be),Ye=0)},e.aF=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.aG=oc,e.aH=wm,e.aI=Cm,e.aJ=bm,e.aK=function(e,t){const r=document.createElement("video");r.muted=!0,r.onloadstart=function(){t(null,r)};for(let n=0;n<e.length;n++){const t=document.createElement("source");at(e[n])||(r.crossOrigin="Anonymous"),t.src=e[n],r.appendChild(t)}return{cancel:()=>{}}},e.aL=gm,e.aM=function(e){return fetch(e).then((e=>e.arrayBuffer())).then((t=>Xy(t,0,e)))},e.aN=iv,e.aO=class{constructor(e,t,r,n){this.id=e,this.position=null!=t?new ol(t[0],t[1]):new ol(0,0),this.orientation=null!=r?r:[0,0,0],this.nodes=n,this.uploaded=!1,this.aabb=new vc([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),this.matrix=[]}_applyTransformations(e,t){if(B.mat4.multiply(e.matrix,t,e.matrix),e.meshes)for(const r of e.meshes){const t=vc.applyTransformFast(r.aabb,e.matrix);this.aabb.encapsulate(t)}if(e.children)for(const r of e.children)this._applyTransformations(r,e.matrix)}computeBoundsAndApplyParent(){const e=B.mat4.identity([]);for(const t of this.nodes)this._applyTransformations(t,e)}computeModelMatrix(e,t,r,n,i,o){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];ig(this.matrix,this,e.transform,this.position,t,r,n,i,o,a)}upload(e){if(!this.uploaded){for(const t of this.nodes)sg(t,e);for(const e of this.nodes)lg(e);this.uploaded=!0}}destroy(){for(const e of this.nodes)cg(e)}},e.aP=le,e.aQ=Af,e.aR=pl,e.aS=fl,e.aT=wa,e.aU=za,e.aV=ae,e.aW=es,e.aX=tm,e.aY=function(){Lo.isLoading()||Lo.isLoaded()||"deferred"!==Oo()||Ro()},e.aZ=Qo,e.a_=Ml,e.aa=xl,e.ab=B,e.ac=te,e.ad=qo,e.ae=jc,e.af=It,e.ag=Jr,e.ah=Mt,e.ai=Z,e.aj=Pt,e.ak=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return function(e){let[t,r]=e;const n=_e([1,t,r]);return{x:n.x,y:n.y,z:n.z}}(e.expression.evaluate(t))}interpolate(e,t,r){return{x:It(e.x,t.x,r),y:It(e.y,t.y,r),z:It(e.z,t.z,r)}}},e.al=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=new H(r,r),o=e.sub(i),a=t.add(i),s=[o,new H(a.x,o.y),a,new H(o.x,a.y)];return n&&s.push(o.clone()),s},e.am=function(e,t){const r=[];for(let n=0;n<e.length;n++){const i=re(n-1,-1,e.length-1),o=re(n+1,-1,e.length-1),a=e[n],s=e[o],l=e[i].sub(a).unit(),c=s.sub(a).unit(),u=c.angleWithSep(l.x,l.y),d=l.add(c).unit().mult(-1*t/Math.sin(u/2));
2r.push(a.add(d))}return r},e.an=Sf,e.ao=Hl,e.ap=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return B.vec3.fromValues(((t.x-r)*e.scale-e.x)*Jr,(t.y*e.scale-e.y)*Jr,ml(t.z,t.y))},e.aq=hc,e.ar=Ih,e.as=function(e){let t=1/0,r=1/0,n=-1/0,i=-1/0;for(const o of e)t=Math.min(t,o.x),r=Math.min(r,o.y),n=Math.max(n,o.x),i=Math.max(i,o.y);return{min:new H(t,r),max:new H(n,i)}},e.at=ul,e.au=ql,e.av=Al,e.aw=ee,e.ax=Ys,e.ay=function(e,t){const r={};for(let n=0;n<t.length;n++){const i=t[n];i in e&&(r[i]=e[i])}return r},e.az=al,e.b=function(e){return Te.API_FONTS_REGEX.test(e)},e.b$=Rm,e.b0=ve,e.b1=Eh,e.b2=Vu,e.b3=Il,e.b4=ba,e.b5=Za,e.b6=dc,e.b7=fs,e.b8=hu,e.b9=hm,e.bA=kd,e.bB=pf,e.bC=hf,e.bD=Ip,e.bE=fv,e.bF=re,e.bG=xe,e.bH=hl,e.bI=function(e,t,r){e[4*t+0]=r[0],e[4*t+1]=r[1],e[4*t+2]=r[2],e[4*t+3]=r[3]},e.bJ=Ms,e.bK=Es,e.bL=Ts,e.bM=Ss,e.bN=As,e.bO=ol,e.bP=Gf,e.bQ=ic,e.bR=yc,e.bS=Om,e.bT=nc,e.bU=Cc,e.bV=function(e,t,r,n,i,o,a,s,l){if("globe"===l.name)return Cc(e,t,new nc(r,n,i),!1);const c=Af({z:r,x:n,y:i},l);return new vc([(o+c.x/c.scale)*t,t*(c.y/c.scale),a],[(o+c.x2/c.scale)*t,t*(c.y2/c.scale),s])},e.bW=function(e,t,r){let n=0;for(let i=0;i<2;++i){const r=0;e[i]>r&&(n+=(e[i]-r)*(e[i]-r)),t[i]<r&&(n+=(r-t[i])*(r-t[i]))}return n},e.bX=gl,e.bY=Ks,e.bZ=function(e){const t=B.mat4.identity(new Float64Array(16));B.mat4.multiply(t,e.pixelMatrix,e.globeMatrix);const r=[0,$s,0],n=[0,el,0];return B.vec3.transformMat4(r,r,t),B.vec3.transformMat4(n,n,t),[r[0]>0&&r[0]<=e.width&&r[1]>0&&r[1]<=e.height&&!Uc(e,new ol(e.center.lat,90)),n[0]>0&&n[0]<=e.width&&n[1]>0&&n[1]<=e.height&&!Uc(e,new ol(e.center.lat,-90))]},e.b_=function(e,t){const{scale:r}=e.tileTransform,n=r*Jr/(e.tileSize*Math.pow(2,t.zoom-e.tileID.overscaledZ+e.tileID.canonical.z));return B.mat2.scale(new Float32Array(4),t.inverseAdjustmentMatrix,[n,n])},e.ba=function(e,t){const r=jc(t.zoom);if(0===r)return Ec(e);const n=Ic(e),i=Mc(n),o=ul(n.getWest())*t.worldSize,a=ul(n.getEast())*t.worldSize,s=dl(n.getNorth())*t.worldSize,l=dl(n.getSouth())*t.worldSize,c=[o,s,0],u=[a,s,0],d=[o,l,0],h=[a,l,0],p=B.mat4.invert([],t.globeMatrix);return B.vec3.transformMat4(c,c,p),B.vec3.transformMat4(u,u,p),B.vec3.transformMat4(d,d,p),B.vec3.transformMat4(h,h,p),i[0]=Tc(i[0],d,r),i[1]=Tc(i[1],h,r),i[2]=Tc(i[2],u,r),i[3]=Tc(i[3],c,r),vc.fromPoints(i)},e.bb=Lc,e.bc=kc,e.bd=Tc,e.be=xa,e.bf=uc,e.bg=Ey,e.bh=hp,e.bi=ot,e.bj=function(e){const t=[];for(const r in e)t.push(e[r]);return t},e.bk=function(e,t){const r=[];for(const n in e)n in t||r.push(n);return r},e.bl=ne,e.bm=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.bn=G,e.bo=function(e,t){const{x:r,y:n}=e.point,i=zc(r,n,e.worldSize/e._pixelsPerMercatorPixel,0,0);return B.mat4.multiply(i,i,Dc(Ec(t)))},e.bp=ep,e.bq=yp,e.br=$h,e.bs=function(e,t,r,n,i){const o=5*t+2;e.float32[o+0]=r,e.float32[o+1]=n,e.float32[o+2]=i},e.bt=Jf,e.bu=Up,e.bv=Ll,e.bw=Kh,e.bx=xd,e.by=Zm,e.bz=Md,e.c=Ce,e.c$=(e,t,r,n,i,o,a,s)=>{const l=e.transform,c=l.pitch<15?Mh(.07,.7,ee((14-l.zoom)/5,0,1)):.07,u="none"===r.paint.get("line-trim-color-use-theme").constantOr("default");return{u_matrix:Oh(e,t,r,n),u_texsize:t.imageAtlasTexture?t.imageAtlasTexture.size:[0,0],u_pixels_to_tile_units:l.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:i,u_width_scale:o,u_floor_width_scale:a,u_image:0,u_tile_units_to_pixels:kh(t,l),u_units_to_pixels:[1/l.pixelsToGLUnits[0],1/l.pixelsToGLUnits[1]],u_alpha_discard_threshold:0,u_trim_offset:s,u_trim_fade_range:r.paint.get("line-trim-fade-range"),u_trim_color:r.paint.get("line-trim-color").toRenderColor(u?null:r.lut).toArray01(),u_emissive_strength:r.paint.get("line-emissive-strength"),u_zbias_factor:c,u_tile_to_meter:bl(t.tileID.canonical,0)}},e.c0=km,e.c1=function(e){const t=km(e,!0);return B.mat2.invert([],[t[0],t[1],t[4],t[5]])},e.c2=pc,e.c3=function(e){const{x:t,y:r}=e.point,{lng:n,lat:i}=e._center;return zc(t,r,e.worldSize,n,i)},e.c4=K,e.c5=ac,e.c6=Zs,e.c7=function(e){const t=Math.round((e+45+360)%360/90)%4;return X[t]},e.c8=45,e.c9=cl,e.cA=class extends ws{constructor(e){super(e),this.current=ks}set(e,t,r){if(this.fetchUniformLocation(e,t))for(let n=0;n<9;n++)if(r[n]!==this.current[n]){this.current=r,this.gl.uniformMatrix3fv(this.location,!1,r);break}}},e.cB=J,e.cC=function(e,t,r){const n=jc(r.zoom),i=e.style.map._antialias,o=t.options.extStandardDerivativesForceOff||e.terrain&&e.terrain.exaggeration()>0;return 0===n&&!i&&!o},e.cD=function(e){const t=e.pixelsPerMeter,r=t/hl(1,e.center.lat),n=B.mat4.identity(new Float64Array(16));return B.mat4.translate(n,n,[e.point.x,e.point.y,0]),B.mat4.scale(n,n,[r,r,t]),Float32Array.from(n)},e.cE=Ic,e.cF=function(e){const t=gl-5;e=ee(e,-t,t)/t*90;const r=Math.pow(Math.abs(Math.sin(Z(e))),3);return Math.round(r*(Qs.length-1))},e.cG=function(e,t,r,n){const i=t.getNorth(),o=t.getSouth(),a=t.getWest(),s=t.getEast(),l=1<<e.z,c=s-a,u=i-o,d=c/Js,h=-u/Qs[r],p=[0,d,0,h,0,0,i,a,0];if(e.z>0){const e=180/n;
2B.mat3.multiply(p,p,[e/c+1,0,0,0,e/u+1,0,-.5*e/d,.5*e/h,1])}return p[2]=l,p[5]=e.x,p[8]=e.y,p},e.cH=Ec,e.cI=function(e,t,r){const n=B.mat4.identity(new Float64Array(16)),i=(t/(1<<e)-.5)*Math.PI*2;return B.mat4.rotateY(n,r.globeMatrix,i),Float32Array.from(n)},e.cJ=class{isDataAvailableAtPoint(e){const t=this._source();if(this.isUsingMockSource()||!t||e.y<0||e.y>1)return!1;const r=t.getSource().maxzoom,n=1<<r,i=Math.floor(e.x),o=Math.floor((e.x-i)*n),a=Math.floor(e.y*n),s=this.findDEMTileFor(new oc(r,i,r,o,a));return!(!s||!s.dem)}getAtPointOrZero(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.getAtPoint(e,t)||0}getAtPoint(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.isUsingMockSource())return null;null==t&&(t=null);const n=this._source();if(!n)return t;if(e.y<0||e.y>1)return t;const i=n.getSource().maxzoom,o=1<<i,a=Math.floor(e.x),s=e.x-a,l=new oc(i,a,i,Math.floor(s*o),Math.floor(e.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const u=c.dem,d=1<<c.tileID.canonical.z,h=(s*d-c.tileID.canonical.x)*u.dim,p=(e.y*d-c.tileID.canonical.y)*u.dim,f=Math.floor(h),m=Math.floor(p);return(r?this.exaggeration():1)*It(It(u.get(f,m),u.get(f,m+1),p-m),It(u.get(f+1,m),u.get(f+1,m+1),p-m),h-f)}getAtTileOffset(e,t,r){const n=1<<e.canonical.z;return this.getAtPointOrZero(new xl(e.wrap+(e.canonical.x+t/Jr)/n,(e.canonical.y+r/Jr)/n))}getAtTileOffsetFunc(e,t,r,n){return i=>{const o=this.getAtTileOffset(e,i.x,i.y),a=n.upVector(e.canonical,i.x,i.y),s=n.upVectorScale(e.canonical,t,r).metersToTile;return B.vec3.scale(a,a,o*s),a}}getForTilePoints(e,t,r,n){if(this.isUsingMockSource())return!1;const i=ug.create(this,e,n);return!!i&&(t.forEach((e=>{e[2]=this.exaggeration()*i.getElevationAt(e[0],e[1],r)})),!0)}getMinMaxForTile(e){if(this.isUsingMockSource())return null;const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const r=t.dem.tree,n=t.tileID,i=1<<e.canonical.z-n.canonical.z;let o=e.canonical.x/i-n.canonical.x,a=e.canonical.y/i-n.canonical.y,s=0;for(let l=0;l<e.canonical.z-n.canonical.z&&!r.leaves[s];l++){o*=2,a*=2;const e=2*Math.floor(a)+Math.floor(o);s=r.childOffsets[s]+e,o%=1,a%=1}return{min:this.exaggeration()*r.minimums[s],max:this.exaggeration()*r.maximums[s]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,r){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}getMinMaxForVisibleTiles(){const e=this.visibleDemTiles;if(0===e.length)return null;let t=!1,r=Number.MAX_VALUE,n=Number.MIN_VALUE;for(const i of e){const e=this.getMinMaxForTile(i.tileID);e&&(r=Math.min(r,e.min),n=Math.max(n,e.max),t=!0)}return t?{min:r,max:n}:null}},e.cK=lu,e.cL=bc,e.cM=function(e,t){return[Math.pow(e[0],2.2)*t,Math.pow(e[1],2.2)*t,Math.pow(e[2],2.2)*t]},e.cN=Fc,e.cO=Ee,e.cP=Se,e.cQ=256,e.cR=function(e,t){const r=[0,0,0],n=Lc(Ec(t.canonical));return B.vec3.transformMat4(r,r,n),B.vec3.transformMat4(r,r,e),r},e.cS=e=>({u_camera_to_center_distance:new Ss(e),u_extrude_scale:new Rs(e),u_device_pixel_ratio:new Ss(e),u_matrix:new Ms(e),u_inv_rot_matrix:new Ms(e),u_merc_center:new Es(e),u_tile_id:new Ts(e),u_zoom_transition:new Ss(e),u_up_dir:new Ts(e),u_emissive_strength:new Ss(e)}),e.cT=e=>({u_matrix:new Ms(e),u_pixels_to_tile_units:new Rs(e),u_device_pixel_ratio:new Ss(e),u_width_scale:new Ss(e),u_floor_width_scale:new Ss(e),u_units_to_pixels:new Es(e),u_dash_image:new As(e),u_gradient_image:new As(e),u_image_height:new Ss(e),u_texsize:new Es(e),u_tile_units_to_pixels:new Ss(e),u_alpha_discard_threshold:new Ss(e),u_trim_offset:new Es(e),u_trim_fade_range:new Es(e),u_trim_color:new Ps(e),u_emissive_strength:new Ss(e),u_zbias_factor:new Ss(e),u_tile_to_meter:new Ss(e)}),e.cU=e=>({u_matrix:new Ms(e),u_texsize:new Es(e),u_pixels_to_tile_units:new Rs(e),u_device_pixel_ratio:new Ss(e),u_width_scale:new Ss(e),u_floor_width_scale:new Ss(e),u_image:new As(e),u_units_to_pixels:new Es(e),u_tile_units_to_pixels:new Ss(e),u_alpha_discard_threshold:new Ss(e),u_trim_offset:new Es(e),u_trim_fade_range:new Es(e),u_trim_color:new Ps(e),u_emissive_strength:new Ss(e),u_zbias_factor:new Ss(e),u_tile_to_meter:new Ss(e)}),e.cV=Na,e.cW=Zh,e.cX=tp,e.cY=Wc,e.cZ=(e,t,r,n,i,o)=>{const a=e.transform,s="globe"===a.projection.name;let l;if("map"===o.paint.get("circle-pitch-alignment"))if(s){const e=Fc(a.zoom,t.canonical)*a._pixelsPerMercatorPixel;l=Float32Array.from([e,0,0,e])}else l=a.calculatePixelsToTileUnitsMatrix(r);else l=new Float32Array([a.pixelsToGLUnits[0],0,0,a.pixelsToGLUnits[1]]);const c={u_camera_to_center_distance:e.transform.getCameraToCenterDistance(a.projection),u_matrix:e.translatePosMatrix(t.projMatrix,r,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_device_pixel_ratio:Ne.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:Gc,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0],u_emissive_strength:o.paint.get("circle-emissive-strength")};if(s){c.u_inv_rot_matrix=n,c.u_merc_center=i,c.u_tile_id=[t.canonical.x,t.canonical.y,1<<t.canonical.z],c.u_zoom_transition=jc(a.zoom);const e=i[0]*Jr,r=i[1]*Jr;c.u_up_dir=a.projection.upVector(new nc(0,0,0),e,r)}return c},e.c_=Rh,e.ca=Ps,e.cb=function(e,t,r){const n=Math.sqrt(e*e+t*t+r*r),i=n>0?Math.acos(r/n)*Y:0;let o=0!==e||0!==t?Math.atan2(-t,-e)*Y+90:0;return o<0&&(o+=360),[n,o,i]},e.cc=bl,e.cd=vc,e.ce=_e,e.cf=function(e){return[Math.pow(e[0],1/2.2),Math.pow(e[1],1/2.2),Math.pow(e[2],1/2.2)]},e.cg=function(e,t){return e.readFields(Bg,{icons:[]},t)},e.ch=function(e){return e({pluginStatus:Po,pluginURL:Co}),ko.on("pluginStateChange",e),e},e.ci=Og,e.cj=Jp,e.ck=Xp,e.cl=nt,e.cm=Io,e.cn=ze,e.co=yt,e.cp=he,e.cq=function(e){const t=e.indexOf(ua);return t>=0?e.slice(0,t):e},e.cr=function(e){return e.indexOf(ua)>=0},e.cs=function(e){const t=e.indexOf(ua);return t>=0?e.slice(t+1):""},e.ct=function(e){const t=[],r=e.id;return void 0===r&&t.push({message:"layers.".concat(r,': missing required property "id"')}),void 0===e.render&&t.push({message:"layers.".concat(r,': missing required method "render"')}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers.".concat(r,': property "renderingMode" must be either "2d" or "3d"')}),t},e.cu=function(e,t,r,n){return"custom"===e.type?new Im(e,t):new wg[e.type](e,t,r,n)},e.cv=de,e.cw=class extends cv{constructor(e,t){super(e._vectorTileFeature,e._z,e._x,e._y,e.id),e.state&&(this.state=i({},e.state)),this.target=t.target,this.namespace=t.namespace,t.properties&&(this.properties=t.properties),this.target&&("featuresetId"in this.target&&!this.target.importId||"layerId"in this.target)&&(this.source=e.source,this.sourceLayer=e.sourceLayer,this.layer=e.layer)}toJSON(){const e=super.toJSON();return e.target=this.target,e.namespace=this.namespace,e}},e.cx=ko,e.cy=it,e.cz=Cs,e.d=function(e){return Te.API_TILEJSON_REGEX.test(e)},e.d$=ue,e.d0=(e,t,r,n,i,o,a,s,l)=>{const c=e.transform,u=c.calculatePixelsToTileUnitsMatrix(t),d="none"===r.paint.get("line-trim-color-use-theme").
2constantOr("default"),h=c.pitch<15?Mh(.07,.7,ee((14-c.zoom)/5,0,1)):.07;return{u_matrix:Oh(e,t,r,n),u_pixels_to_tile_units:u,u_device_pixel_ratio:o,u_width_scale:a,u_floor_width_scale:s,u_units_to_pixels:[1/c.pixelsToGLUnits[0],1/c.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:i,u_texsize:Lh(r)&&t.lineAtlasTexture?t.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:kh(t,e.transform),u_alpha_discard_threshold:0,u_trim_offset:l,u_trim_fade_range:r.paint.get("line-trim-fade-range"),u_trim_color:r.paint.get("line-trim-color").toRenderColor(d?null:r.lut).toArray01(),u_emissive_strength:r.paint.get("line-emissive-strength"),u_zbias_factor:h,u_tile_to_meter:bl(t.tileID.canonical,0)}},e.d1=se,e.d2=cu,e.d3=ah,e.d4=sc,e.d5=Qd,e.d6=Bd,e.d7=450,e.d8=7,e.d9=xm,e.dA=$,e.dB=vl,e.dC=rl,e.dD=function(e){let[t,r,n]=e;const i=Math.hypot(t,r,n),o=Math.atan2(t,n),a=.5*Math.PI-Math.acos(-r/i);return new ol(K(o),K(a))},e.dE=Dm,e.dF=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!function(e){if(null==be){const t=e.navigator?e.navigator.userAgent:null;be=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return be}(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.dG=function(e,t){Be=e,Ue=t},e.dH=Uc,e.dI=Bc,e.dJ=function(e){const t=[0,0,0],r=B.mat4.identity(new Float64Array(16));return B.mat4.multiply(r,e.pixelMatrix,e.globeMatrix),B.vec3.transformMat4(t,t,r),new H(t[0],t[1])},e.dK=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Po===Ao||Po===So||Po===Eo)throw new Error("setRTLTextPlugin cannot be called multiple times.");Co=Ne.resolveURL(e),Po=Ao,To=t,Mo(),r||Ro()},e.dL=Oo,e.dM=function(){Og().acquire(Pg)},e.dN=function(){const e=Mg;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(Pg),Mg=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))}
vendor: 7,967 bytes, line 2
2,e.dO=Cg,e.dP=function(e){const t=Ge();if(!t)return;const r=t.delete(je);e&&r.catch(e).then((()=>e()))},e.dQ=Tg,e.dR=Ly,e.dS=function(e){Iy=Ne.resolveURL(e),Ry||(Ry=new Ig(Og(),new At)),Ry.broadcast("setDracoUrl",Iy)},e.dT=Dy,e.dU=function(e){ky=Ne.resolveURL(e),Ry||(Ry=new Ig(Og(),new At)),Ry.broadcast("setMeshoptUrl",ky)},e.dV=lo,e.dW=au,e.dX=Kp,e.dY=sv,e.dZ=uv,e.d_=xh,e.da=ya,e.db=Ja,e.dc=256,e.dd=Dc,e.de=Ta,e.df=Va,e.dg=qa,e.dh=function(e,t,r,n,i){return ee((e-t)/(r-t)*(i-n)+n,n,i)},e.di=Pi,e.dj=yl,e.dk=class{constructor(e,t,r,n){this.context=e,this.format=n,this.size=r,this.texture=e.gl.createTexture();const[i,o,a]=this.size,{gl:s}=e;s.bindTexture(s.TEXTURE_3D,this.texture),e.pixelStoreUnpackFlipY.set(!1),e.pixelStoreUnpack.set(1),e.pixelStoreUnpackPremultiplyAlpha.set(!1),s.texImage3D(s.TEXTURE_3D,0,this.format,i,o,a,0,pm(this.format),fm(this.format),t.data)}bind(e,t){const{context:r}=this,{gl:n}=r;n.bindTexture(n.TEXTURE_3D,this.texture),e!==this.minFilter&&(n.texParameteri(n.TEXTURE_3D,n.TEXTURE_MAG_FILTER,e),n.texParameteri(n.TEXTURE_3D,n.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(n.texParameteri(n.TEXTURE_3D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_3D,n.TEXTURE_WRAP_T,t),this.wrapS=t)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}},e.dl=jm,e.dm=[1,1,1],e.dn=ug,e.dp=ng,e.dq=Ra,e.dr=Wa,e.ds=nl,e.dt=Ga,e.du=Ha,e.dv=class{constructor(){this._updateTime=0,this._sourceIds=[],this._activeRegions=[],this._prevRegions=[],this._globalClipBounds={min:new H(1/0,1/0),max:new H(-1/0,-1/0)}}clear(){this._activeRegions.length>0&&++this._updateTime,this._activeRegions=[],this._prevRegions=[]}get updateTime(){return this._updateTime}getReplacementRegionsForTile(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=Td(new H(0,0),new H(Jr,Jr),e),n=[];if(t&&!Sd(r,this._globalClipBounds))return n;for(const i of this._activeRegions){if(i.hiddenByOverlap)continue;if(!Sd(r,i))continue;const t=Pd(i.min,i.max,e);n.push({min:t.min,max:t.max,sourceId:this._sourceIds[i.priority],footprint:i.footprint,footprintTileId:i.tileId,order:i.order,clipMask:i.clipMask,clipScope:i.clipScope})}return n}setSources(e){this._setSources(e.map((e=>({getSourceId:()=>e.cache.id,getFootprints:()=>{const t=[];for(const r of e.cache.getVisibleCoordinates()){const n=e.cache.getTile(r).buckets[e.layer];n&&n.updateFootprints(r.toUnwrapped(),t)}return t},getOrder:()=>e.order,getClipMask:()=>e.clipMask,getClipScope:()=>e.clipScope}))))}_addSource(e){const t=e.getFootprints();if(0===t.length)return;const r=e.getOrder(),n=e.getClipMask(),i=e.getClipScope();for(const o of t){if(!o.footprint)continue;const e=Td(o.footprint.min,o.footprint.max,o.id);this._activeRegions.push({min:e.min,max:e.max,hiddenByOverlap:!1,priority:this._sourceIds.length,tileId:o.id,footprint:o.footprint,order:r,clipMask:n,clipScope:i})}this._sourceIds.push(e.getSourceId())}_computeReplacement(){this._activeRegions.sort(((e,t)=>e.priority-t.priority||wd(e.min,t.min)||wd(e.max,t.max)||e.order-t.order||e.clipMask-t.clipMask||function(e,t){const r=(e,t)=>e+t;return e.length-t.length||e.reduce(r,"").localeCompare(t.reduce(r,""))}(e.clipScope,t.clipScope)));let e=this._activeRegions.length!==this._prevRegions.length;if(!e){let t=0;for(;!e&&t!==this._activeRegions.length;){const r=this._activeRegions[t],n=this._prevRegions[t];e=r.priority!==n.priority||!Ad(r,n)||r.order!==n.order||r.clipMask!==n.clipMask||!G(r.clipScope,n.clipScope),++t}}if(e){++this._updateTime;for(const t of this._activeRegions)t.order!==bd&&(this._globalClipBounds.min.x=Math.min(this._globalClipBounds.min.x,t.min.x),this._globalClipBounds.min.y=Math.min(this._globalClipBounds.min.y,t.min.y),this._globalClipBounds.max.x=Math.max(this._globalClipBounds.max.x,t.max.x),this._globalClipBounds.max.y=Math.max(this._globalClipBounds.max.y,t.max.y));const e=e=>{const t=this._activeRegions;if(e>=t.length)return e;const r=t[e].priority;for(;e<t.length&&t[e].priority===r;)++e;return e};if(this._sourceIds.length>1){let t=0,r=e(t);for(;t!==r;){let n=t;const i=t;for(;n!==r;){const e=this._activeRegions[n];e.hiddenByOverlap=!1;for(let t=0;t<i;t++){const r=this._activeRegions[t];if(!r.hiddenByOverlap&&e.order===bd&&Sd(e,r)&&(e.hiddenByOverlap=Id(e.footprint,e.tileId,r.footprint,r.tileId),e.hiddenByOverlap))break}++n}t=r,r=e(t)}}}}_setSources(e){[this._prevRegions,this._activeRegions]=[this._activeRegions,[]],this._sourceIds=[];for(let t=e.length-1;t>=0;t--)this._addSource(e[t]);this._computeReplacement()}},e.dw=class{constructor(e){this._createGrid(e),this._createPoles(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();for(const e of this._gridSegments)e.withSkirts.destroy(),e.withoutSkirts.destroy()}_fillGridMeshWithLods(e,t){const r=new ba,n=new za,i=[],o=e+1+2,a=t[0]+1,s=t[0]+1+(1+t.length),l=(e,t,r)=>{let n=e===o-1?e-2:0===e?e:e-1;return n+=r?24575:0,[n,t]};for(let c=0;c<o;++c)r.emplaceBack(...l(c,0,!0));for(let c=0;c<a;++c)for(let e=0;e<o;++e)r.emplaceBack(...l(e,c,(0===e||e===o-1)&&!0));for(let c=0;c<t.length;++c){const e=t[c];for(let t=0;t<o;++t)r.emplaceBack(...l(t,e,!0))}for(let c=0;c<t.length;++c){const e=n.length,a=t[c]+1+2,l=new za;for(let r=0;r<a-1;r++){const e=r===a-2,i=e?o*(s-t.length+c-r):o;for(let t=0;t<o-1;t++){const a=r*o+t;0===r||e||0===t||t===o-2?(l.emplaceBack(a+1,a,a+i),l.emplaceBack(a+i,a+i+1,a+1)):(n.emplaceBack(a+1,a,a+i),n.emplaceBack(a+i,a+i+1,a+1))}}const u=fs.simpleSegment(0,e,r.length,n.length-e);for(let t=0;t<l.uint16.length;t+=3)n.emplaceBack(l.uint16[t],l.uint16[t+1],l.uint16[t+2]);const d=fs.simpleSegment(0,e,r.length,n.length-e);i.push({withoutSkirts:u,withSkirts:d})}return{vertices:r,indices:n,segments:i}}_createGrid(e){const t=this._fillGridMeshWithLods(Js,Qs);this._gridSegments=t.segments,this._gridBuffer=e.createVertexBuffer(t.vertices,dc.members),this._gridIndexBuffer=e.createIndexBuffer(t.indices,!0)}_createPoles(e){const t=new za;for(let a=0;a<=Js;a++)t.emplaceBack(0,a+1,a+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const r=new Va,n=new Va,i=new Va,o=new Va;this._poleSegments=[];for(let a=0,s=0;a<Zs;a++){const e=360/(1<<a);r.emplaceBack(0,-Ys,0,.5,0),n.emplaceBack(0,-Ys,0,.5,1),i.emplaceBack(0,-Ys,0,.5,.5),o.emplaceBack(0,-Ys,0,.5,.5);for(let t=0;t<=Js;t++){let a=t/Js,s=0;const l=It(0,e,a),[c,u,d]=tl(qc,Hc,l,Ys);r.emplaceBack(c,u,d,a,s),n.emplaceBack(c,u,d,a,1-s);const h=Z(l);a=.5+.5*Math.sin(h),s=.5+.5*Math.cos(h),i.emplaceBack(c,u,d,a,s),o.emplaceBack(c,u,d,a,1-s)}this._poleSegments.push(fs.simpleSegment(s,0,66,64)),s+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(r,cc,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(n,cc,!1),this._texturedPoleNorthVertexBuffer=e.createVertexBuffer(i,cc,!1),this._texturedPoleSouthVertexBuffer=e.createVertexBuffer(o,cc,!1)}getGridBuffers(e,t){return[this._gridBuffer,this._gridIndexBuffer,t?this._gridSegments[e].withSkirts:this._gridSegments[e].withoutSkirts]}getPoleBuffers(e,t){return[t?this._texturedPoleNorthVertexBuffer:this._poleNorthVertexBuffer,t?this._texturedPoleSouthVertexBuffer:this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}},e.dx=bd,e.dy=Q,e.dz=function(){return!!document.fullscreenElement||!!document.webkitFullscreenElement},e.e=Te,e.e0=er,e.e1=Gp,e.e2=function(e,t,r,n,i,o,a,s,l,c){let u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:1,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0;e.createArrays(),e.tilePixelRatio=Jr/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const p=e.layers[0].layout,f=e.layers[0]._unevaluatedLayout._values,m={};m.scaleFactor=u,m.textSizeScaleRange=p.get("text-size-scale-range"),m.iconSizeScaleRange=p.get("icon-size-scale-range");const[g,_]=m.textSizeScaleRange,[y,v]=m.iconSizeScaleRange;
2if(m.textScaleFactor=ee(m.scaleFactor,g,_),m.iconScaleFactor=ee(m.scaleFactor,y,v),"composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:r}=e.textSizeData;m.compositeTextSizes=[f["text-size"].possiblyEvaluate(new Do(t),s),f["text-size"].possiblyEvaluate(new Do(r),s)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:r}=e.iconSizeData;m.compositeIconSizes=[f["icon-size"].possiblyEvaluate(new Do(t),s),f["icon-size"].possiblyEvaluate(new Do(r),s)]}m.layoutTextSize=f["text-size"].possiblyEvaluate(new Do(l+1),s),m.layoutIconSize=f["icon-size"].possiblyEvaluate(new Do(l+1),s),m.textMaxSize=f["text-size"].possiblyEvaluate(new Do(18),s);const b="map"===p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),x=p.get("text-size");let w=!1;for(const A of e.features)if(A.icon&&A.icon.nameSecondary){w=!0;break}for(const A of e.features){const o=p.get("text-font").evaluate(A,{},s).join(","),l=x.evaluate(A,{},s)*m.textScaleFactor,u=m.layoutTextSize.evaluate(A,{},s)*m.textScaleFactor,g=(m.layoutIconSize.evaluate(A,{},s),{horizontal:{},vertical:void 0}),_=A.text;let y,v=[0,0];if(_){const n=_.toString(),a=p.get("text-letter-spacing").evaluate(A,{},s)*Kh,c=p.get("text-line-height").evaluate(A,{},s)*Kh,d=go(n)?a:0,h=p.get("text-anchor").evaluate(A,{},s),f=p.get("text-variable-anchor");if(!f){const e=p.get("text-radial-offset").evaluate(A,{},s);v=e?hf(h,[e*Kh,uf]):p.get("text-offset").evaluate(A,{},s).map((e=>e*Kh))}let m=b?"center":p.get("text-justify").evaluate(A,{},s);const y="point"===p.get("symbol-placement"),x=y?p.get("text-max-width").evaluate(A,{},s)*Kh:1/0,w=a=>{e.allowVerticalPlacement&&mo(n)&&(g.vertical=xp(_,t,r,i,o,x,c,h,a,d,v,yp.vertical,!0,u,l))};if(!b&&f){const e="auto"===m?f.map((e=>pf(e))):[m];let n=!1;for(let a=0;a<e.length;a++){const s=e[a];if(!g.horizontal[s])if(n)g.horizontal[s]=g.horizontal[0];else{const e=xp(_,t,r,i,o,x,c,"center",s,d,v,yp.horizontal,!1,u,l);e&&(g.horizontal[s]=e,n=1===e.positionedLines.length)}}w("left")}else{if("auto"===m&&(m=pf(h)),y||p.get("text-writing-mode").indexOf("horizontal")>=0||!mo(n)){const e=xp(_,t,r,i,o,x,c,h,m,d,v,yp.horizontal,!1,u,l);e&&(g.horizontal[m]=e)}w(y?"left":m)}}let S=!1,E=!1;if(A.icon&&A.icon.namePrimary){const t=Jh(e.iconSizeData,f["icon-size"],s,e.zoom,A)*m.iconScaleFactor*d,r=A.icon.getPrimary().scaleSelf(t).serialize(),o=n[r];o&&(y=kp(i[r],A.icon.nameSecondary?i[A.icon.getSecondary().scaleSelf(t).serialize()]:void 0,p.get("icon-offset").evaluate(A,{},s),p.get("icon-anchor").evaluate(A,{},s)),S=o.sdf,E=o.usvg,void 0===e.sdfIcons?e.sdfIcons=o.sdf:e.sdfIcons!==o.sdf&&fe("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(o.pixelRatio!==e.pixelRatio||0!==p.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const T=yf(g.horizontal)||g.vertical;e.iconsInText||(e.iconsInText=!!T&&T.iconsInText),(T||y)&&ff(e,A,g,y,n,m,u,0,v,S,E,a,s,c,h,w)}o&&e.generateCollisionDebugBuffers(l,e.collisionBoxArray,m.textScaleFactor)},e.e3=fd,e.e4=D_,e.e5=q,e.e6=pd,e.e7=dp,e.e8=t,e.e9=function(e){let t=0;if(new Uint32Array(e,0,1)[0]!==Hy){const r=new Uint32Array(e,0,7),[,,n,i,o,a]=r;t=r.byteLength+i+o+a+o,(n!==e.byteLength||t>=e.byteLength)&&fe("Invalid b3dm header information.")}return Xy(e,t)},e.ea=function(e,t){const r=iv(e);for(const n of r){for(const e of n.meshes)ov(e);n.lights&&(n.lightMeshIndex=n.meshes.length,n.meshes.push(av(n.lights,t)))}return r},e.eb=_g,e.ec=Eg,e.ed=Lo,e.ee=function(e){We(),null!=qe&&qe.then((t=>{t.keys().then((r=>{for(let n=0;n<r.length-e;n++)t.delete(r[n])}))}))},e.f=function(e){return 0===e.indexOf("mapbox:")},e.g=function(e,t){return it(ie(e,{method:"GET"}),t)},e.h=Pe,e.i=function(e){return Te.API_STYLE_REGEX.test(e)&&!Ce(e)},e.j=function(e){return decodeURIComponent(atob(e).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""))},e.k=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(Number("0x"+t)))))},e.l=ie,e.m=Ze,e.n=function(e,t){return it(ie(e,{type:"json"}),t)},e.o=ut,e.p=function(e,t){return it(ie(e,{method:"POST"}),t)},e.q=Ne,e.r=su,e.s=function(e){try{const t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}},e.t=De,e.u=function(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()},e.v=function(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e.w=fe,e.x=function(){return kg||(kg=new Cg),kg},e.y=bt,e.z=vt})),s(["./shared"],(function(e){function t(e){const t=e?e.url.toString():void 0;return t?performance.getEntriesByName(t):[]}function r(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(const n of e)t+="".concat(r(n),",");return"".concat(t,"]")}let t="{";for(const n of Object.keys(e).sort())t+="".concat(n,":").concat(r(e[n]),",");return"".concat(t,"}")}function n(t){let n="";for(const i of e.bm)n+="/".concat(r(t[i]));return n}class i{constructor(e){this.keyCache={},this._layers={},this._layerConfigs={},e&&this.replace(e)}replace(e,t){this._layerConfigs={},this._layers={},this.update(e,[],t)}update(t,i,o){this._options=o;for(const r of t)this._layerConfigs[r.id]=r,(this._layers[r.id]=e.cu(r,this.scope,null,this._options)).compileFilter(o
2),this.keyCache[r.id]&&delete this.keyCache[r.id];for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const a=function(e,t){const i={};for(let a=0;a<e.length;a++){const o=e[a];let s=t&&t[o.id];!s&&(s=n(o),"line"===o.type&&o.paint)&&function e(t){return"string"==typeof t&&"line-progress"===t||(Array.isArray(t)?t.some(e):!(!t||"object"!=typeof t)&&Object.values(t).some(e))}(o.paint["line-width"])&&(s+="/".concat(r(o.paint["line-width"]))),t&&(t[o.id]=s);let l=i[s];l||(l=i[s]=[]),l.push(o)}const o=[];for(const r in i)o.push(i[r]);return o}(e.bj(this._layerConfigs),this.keyCache);for(const e of a){const t=e.map((e=>this._layers[e.id])),r=t[0];if("none"===r.visibility)continue;const n=r.source||"";let i=this.familiesBySource[n];i||(i=this.familiesBySource[n]={});const o=r.sourceLayer||"_geojsonTileLayer";let a=i[o];a||(a=i[o]=[]),a.push(t)}}}const o=1*e.dX;class a{constructor(t){const r={},n=[];for(const e in t){const i=t[e],a=r[e]={};for(const e in i.glyphs){const t=i.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const r=t.metrics.localGlyph?o:1,s={x:0,y:0,w:t.bitmap.width+2*r,h:t.bitmap.height+2*r};n.push(s),a[e]=s}}const{w:i,h:a}=e.C(n),s=new e.dW({width:i||1,height:a||1});for(const l in t){const n=t[l];for(const t in n.glyphs){const i=n.glyphs[+t];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const a=r[l][t],c=i.metrics.localGlyph?o:1;e.dW.copy(i.bitmap,s,{x:0,y:0},{x:a.x+c,y:a.y+c},i.bitmap)}}this.image=s,this.positions=r}}e.dV(a,"GlyphAtlas");class s{constructor(t){this.tileID=new e.aG(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.lut=t.lut,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.scope=t.scope,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.request&&t.request.collectResourceTiming,this.promoteId=t.promoteId,this.isSymbolTile=t.isSymbolTile,this.tileTransform=e.aQ(t.tileID.canonical,t.projection),this.projection=t.projection,this.worldview=t.worldview,this.localizableLayerIds=t.localizableLayerIds,this.brightness=t.brightness,this.extraShadowCaster=!!t.extraShadowCaster,this.tessellationStep=t.tessellationStep,this.scaleFactor=t.scaleFactor}parse(t,r,n,i,o){this.status="parsing",this.data=t,this.collisionBoxArray=new e.aW;const s=new e.dY(Object.keys(t.layers).sort()),c=new e.dZ(this.tileID,this.promoteId);c.bucketLayerIDs=[];const u={},d=new e.d_(256,256),h={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:d,availableImages:n,brightness:this.brightness,scaleFactor:this.scaleFactor},p=r.familiesBySource[this.source];for(const a in p){const r=t.layers[a];if(!r)continue;let i=!1,o=!1,d=!1;for(const e of p[a])"symbol"===e[0].type?i=!0:o=!0,e[0].is3D()&&"model"!==e[0].type&&(d=!0);if(this.extraShadowCaster&&!d)continue;if(!0===this.isSymbolTile&&!i)continue;if(!1===this.isSymbolTile&&!o)continue;1===r.version&&e.w('Vector tile source "'.concat(this.source,'" layer "').concat(a,'" does not use vector tile spec v2 and therefore may have some rendering errors.'));const f=s.encode(a),m=[];for(let e=0,t=0;e<r.length;e++){const n=r.feature(e),i=c.getId(n,a);if(this.localizableLayerIds&&this.localizableLayerIds.has(a)){const e=n.properties?n.properties.worldview:null;if(this.worldview&&"string"==typeof e)if("all"===e)n.properties.$localized=!0;else{if(!e.split(",").includes(this.worldview))continue;n.properties.$localized=!0,n.properties.worldview=this.worldview}}m.push({feature:n,id:i,index:t,sourceLayerIndex:f}),t++}for(const t of p[a]){const r=t[0];(!this.extraShadowCaster||r.is3D()&&"model"!==r.type)&&(void 0!==this.isSymbolTile&&"symbol"===r.type!==this.isSymbolTile||r.minzoom&&this.zoom<Math.floor(r.minzoom)||r.maxzoom&&this.zoom>=r.maxzoom||"none"!==r.visibility&&(l(t,this.zoom,h.brightness,n),(u[r.id]=r.createBucket({index:c.bucketLayerIDs.length,layers:t,zoom:this.zoom,lut:this.lut,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:f,sourceID:this.source,projection:this.projection.spec,tessellationStep:this.tessellationStep})).populate(m,h,this.tileID.canonical,this.tileTransform),c.bucketLayerIDs.push(t.map((t=>e.aC(t.id,t.scope))))))}}let f,m,g,_;d.trim();const y={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},v=()=>{if(f)return this.status="done",o(f);if(this.extraShadowCaster)this.status="done",o(null,{buckets:e.bj(u).filter((e=>!e.isEmpty())),featureIndex:c,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:h.brightness,glyphMap:null,iconMap:null,glyphPositions:null});else if(m&&g&&_){const t=new a(m),r=new e.e1(g,_,this.lut);for(const i in u){const o=u[i];o instanceof e.aX?(l(o.layers,this.zoom,h.brightness,n),e.e2(o,m,t.positions,g,r.iconPositions,this.showCollisionBoxes,n,this.tileID.canonical,this.tileZoom,this.projection,this.scaleFactor,this.pixelRatio,this.brightness)):o.hasPattern&&(o instanceof e.b1||o instanceof e.b2||o instanceof e.d5)&&(l(o.layers,this.zoom,h.brightness,n),o.addFeatures(h,this.tileID.canonical,r.patternPositions,n,this.tileTransform,this.brightness))}this.status="done",o(null,{buckets:e.bj(u).filter((e=>!e.isEmpty())),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,lineAtlas:d,imageAtlas:r,brightness:h.brightness})}};if(!this.extraShadowCaster){const t=e.d$(h.glyphDependencies,(e=>Object.keys(e).map(Number)));Object.keys(t).length?i.send("getGlyphs",{uid:this.uid,stacks:t,scope:this.scope},((e,t)=>{f||(f=e,m=t,v())}),void 0,!1,y):m={};const r=Object.keys(h.iconDependencies);
2r.length?i.send("getImages",{icons:r,source:this.source,scope:this.scope,tileID:this.tileID,type:"icons"},((e,t)=>{if(f)return;f=e;const r={};Object.values(t).some((e=>e.usvg))?this.rasterize(i,r,t,h.iconDependencies,(()=>{g=r,v()})):(this.fillImageMap(r,h.iconDependencies,t),g=r,v())}),void 0,!1,y):g={};const n=Object.keys(h.patternDependencies);n.length?i.send("getImages",{icons:n,source:this.source,scope:this.scope,tileID:this.tileID,type:"patterns"},((e,t)=>{if(!f){f=e;const r={};Object.values(t).some((e=>e.usvg))?this.rasterize(i,r,t,h.patternDependencies,(()=>{_=r,v()})):(this.fillImageMap(r,h.patternDependencies,t),_=r,v())}}),void 0,!1,y):_={}}v()}fillImageMap(e,t,r){for(const n in r){const i=t[n]||[];for(const t of i)r[t.id].usvg||(e[t.serialize()]=r[t.id])}}getImageTaskQueue(e,t,r){const n={};for(const i in t){const o=r[i]||[];for(const r of o){const i=r.serialize();t[r.id].usvg?n[i]||(n[i]=r):e[i]=t[r.id]}}return n}rasterize(t,r,n,i,o){const a=this.getImageTaskQueue(r,n,i);this.rasterizeTask=t.send("rasterizeImages",{scope:this.scope,imageTasks:a},((t,i)=>{if(!t)for(const o in i){const{id:t}=e.e0.deserializeFromString(o);r[o]=Object.assign({},n[t],{data:i[o]})}o()}))}cancelRasterize(){this.rasterizeTask&&this.rasterizeTask.cancel()}}function l(t,r,n,i){const o=new e.a8(r,{brightness:n});for(const e of t)e.recalculate(o,i)}class c extends e.E{constructor(t,r,n,i,o,a){super(),this.actor=t,this.layerIndex=r,this.availableImages=n,this.loadVectorData=o||e.aD,this.loading={},this.loaded={},this.deduped=new e.aB(t.scheduler),this.isSpriteLoaded=i,this.scheduler=t.scheduler,this.brightness=a}loadTile(r,n){const i=r.uid,o=r&&r.request,a=o&&o.collectResourceTiming,l=this.loading[i]=new s(r);l.abort=this.loadVectorData(r,((s,c)=>{const u=!this.loading[i];if(delete this.loading[i],l.cancelRasterize(),u||s||!c)return l.status="done",u||(this.loaded[i]=l),n(s);const d=c.rawData,h={};c.expires&&(h.expires=c.expires),c.cacheControl&&(h.cacheControl=c.cacheControl),l.vectorTile=c.vectorTile||new e.e3.VectorTile(new e.bh(d));const p=()=>{l.parse(l.vectorTile,this.layerIndex,this.availableImages,this.actor,((r,i)=>{if(r||!i)return n(r);const s={};if(a){const e=t(o);e.length>0&&(s.resourceTiming=JSON.parse(JSON.stringify(e)))}n(null,e.l({rawTileData:d.slice(0)},i,h,s))}))};this.isSpriteLoaded?p():this.once("isSpriteLoaded",(()=>{this.scheduler?this.scheduler.add(p,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom}):p()})),this.loaded=this.loaded||{},this.loaded[i]=l}))}reloadTile(t,r){const n=this.loaded,i=t.uid;if(n&&n[i]){const o=n[i];o.scaleFactor=t.scaleFactor,o.showCollisionBoxes=t.showCollisionBoxes,o.projection=t.projection,o.brightness=t.brightness,o.tileTransform=e.aQ(t.tileID.canonical,t.projection),o.extraShadowCaster=t.extraShadowCaster,o.lut=t.lut;const a=(e,t)=>{const n=o.reloadCallback;n&&(delete o.reloadCallback,o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,n)),r(e,t)};"parsing"===o.status?o.reloadCallback=a:"done"===o.status&&(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,a):a())}else r(null,void 0)}abortTile(e,t){const r=e.uid,n=this.loading[r];n&&(n.abort&&n.abort(),delete this.loading[r]),t()}removeTile(e,t){const r=this.loaded,n=e.uid;r&&r[n]&&delete r[n],t()}}class u{loadTile(t,r){const{uid:n,encoding:i,rawImageData:o,padding:a}=t,s=ImageBitmap&&o instanceof ImageBitmap?this.getImageData(o,a):o;r(null,new e.e4(n,s,i,a<1))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const r=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),r}}e.bg.setPbf(e.bh);class d{decodeRasterArray(t,r){let{task:n,buffer:i}=t;e.bg.performDecoding(i,n).then((e=>{r(null,e)}),(e=>{r(e)}))}}const h=e.e3.VectorTileFeature.prototype.toGeoJSON;class p{constructor(t){this._feature=t,this.extent=e.ag,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=p
2arseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const r of this._feature.geometry)t.push([new e.P(r[0],r[1])]);return t}{const t=[];for(const r of this._feature.geometry){const n=[];for(const t of r)n.push(new e.P(t[0],t[1]));t.push(n)}return t}}toGeoJSON(e,t,r){return h.call(this,e,t,r)}}class f{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.ag,this.length=t.length,this._features=t}feature(e){return new p(this._features[e])}}const m=64/4096,g=128;class _{constructor(){this.features=new Map}clear(){this.features.clear()}load(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(const r of e){const e=r.id;if(null==e)continue;let n=this.features.get(e);n&&this.updateCache(n,t),r.geometry?(n=v(r),this.updateCache(n,t),this.features.set(e,n)):this.features.delete(e),this.updateCache(n,t)}}updateCache(e,t){for(const{canonical:r,uid:n}of Object.values(t)){const{z:i,x:o,y:a}=r;y(e,Math.pow(2,i),o,a)&&delete t[n]}}getTile(e,t,r){const n=Math.pow(2,e),i=[];for(const o of this.features.values())y(o,n,t,r)&&i.push(A(o,n,t,r));return{features:i}}getFeatures(){return[...this.features.values()]}}function y(e,t,r,n){let{minX:i,minY:o,maxX:a,maxY:s}=e;return i<(r+1+m)/t&&o<(n+1+m)/t&&a>(r-m)/t&&s>(n-m)/t}function v(e){const{id:t,geometry:r,properties:n}=e;if(!r)return;if("GeometryCollection"===r.type)throw new Error("GeometryCollection not supported in dynamic mode.");const{type:i,coordinates:o}=r,a={id:t,type:1,geometry:[],tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},s=a.geometry;if("Point"===i)b(o,s,a);else if("MultiPoint"===i)for(const l of o)b(l,s,a);else if("LineString"===i)a.type=2,x(o,s,a);else if("MultiLineString"===i)a.type=2,w(o,s,a);else if("Polygon"===i)a.type=3,w(o,s,a,!0);else{if("MultiPolygon"!==i)throw new Error("Input data is not a valid GeoJSON object.");a.type=3;for(const e of o)w(e,s,a,!0)}return a}function b(t,r,n){let[i,o]=t;const a=e.at(i);let s=e.aA(o);s=s<0?0:s>1?1:s,r.push(a,s),n.minX=Math.min(n.minX,a),n.minY=Math.min(n.minY,s),n.maxX=Math.max(n.maxX,a),n.maxY=Math.max(n.maxY,s)}function x(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=[];for(const a of e)b(a,o,r);t.push(o),n&&function(e,t){let r=0;for(let n=0,i=e.length,o=i-2;n<i;o=n,n+=2)r+=(e[n]-e[o])*(e[n+1]+e[o+1]);if(r>0===t)for(let n=0,i=e.length;n<i/2;n+=2){const t=e[n],r=e[n+1];e[n]=e[i-2-n],e[n+1]=e[i-1-n],e[i-2-n]=t,e[i-1-n]=r}}(o,i)}function w(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(let i=0;i<e.length;i++)x(e[i],t,r,n,0===i)}function A(t,r,n,i){const{id:o,type:a,geometry:s,tags:l}=t,c=[];if(1===a)!function(t,r,n,i,o){for(let a=0;a<t.length;a+=2){const s=Math.round(e.ag*(t[a+0]*r-n)),l=Math.round(e.ag*(t[a+1]*r-i));o.push([s,l])}}(s,r,n,i,c);else for(const e of s)S(e,r,n,i,c);return{id:o,type:a,geometry:c,tags:l}}function S(t,r,n,i,o){const a=-g,s=e.ag+g;let l;for(let c=0;c<t.length-2;c+=2){let u=Math.round(e.ag*(t[c+0]*r-n)),d=Math.round(e.ag*(t[c+1]*r-i)),h=Math.round(e.ag*(t[c+2]*r-n)),p=Math.round(e.ag*(t[c+3]*r-i));const f=h-u,m=p-d;u<a&&h<a||(u<a?(d+=Math.round(m*((a-u)/f)),u=a):h<a&&(p=d+Math.round(m*((a-u)/f)),h=a),d<a&&p<a||(d<a?(u+=Math.round(f*((a-d)/m)),d=a):p<a&&(h=u+Math.round(f*((a-d)/m)),p=a),u>=s&&h>=s||(u>=s?(d+=Math.round(m*((s-u)/f)),u=s):h>=s&&(p=d+Math.round(m*((s-u)/f)),h=s),d>=s&&p>=s||(d>=s?(u+=Math.round(f*((s-d)/m)),d=s):p>=s&&(h=u+Math.round(f*((s-d)/m)),p=s),l&&u===l[l.length-1][0]&&d===l[l.length-1][1]||(l=[[u,d]],o.push(l)),l.push([h,p])))))}}var E,T,P,C={exports:{}},I=function(){if(P)return C.exports;P=1;var t=e.e7(),r=function(){if(T)return E;T=1;var t=e.e5(),r=e.e6().VectorTileFeature;function n(e,t){this.options=t||{},this.features=e,this.length=e.length}function i(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}return E=n,n.prototype.feature=function(e){return new i(this.features[e],this.options.extent)},i.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r<e.length;r++){for(var n=e[r],i=[],o=0;o<n.length;o++)i.push(new t(n[o][0],n[o][1]));this.geometry.push(i)}return this.geometry},i.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,r=-1/0,n=1/0,i=-1/0,o=0;o<e.length;o++)for(var a=e[o],s=0;s<a.length;s++){var l=a[s];t=Math.min(t,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[t,n,r,i]},i.prototype.toGeoJSON=r.prototype.toGeoJSON,E}();function n(e){var r=new t;return function(e,t){for(var r in e.layers)t.writeMessage(3,i,e.layers[r])}(e,r),r.finish()}function i(e,t){var r;
vendor: 18,644 bytes, line 2
2t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r<e.length;r++)n.feature=e.feature(r),t.writeMessage(2,o,n);var i=n.keys;for(r=0;r<i.length;r++)t.writeStringField(3,i[r]);var a=n.values;for(r=0;r<a.length;r++)t.writeMessage(4,u,a[r])}function o(e,t){var r=e.feature;void 0!==r.id&&t.writeVarintField(1,r.id),t.writeMessage(2,a,e),t.writeVarintField(3,r.type),t.writeMessage(4,c,r)}function a(e,t){var r=e.feature,n=e.keys,i=e.values,o=e.keycache,a=e.valuecache;for(var s in r.properties){var l=r.properties[s],c=o[s];if(null!==l){void 0===c&&(n.push(s),o[s]=c=n.length-1),t.writeVarint(c);var u=typeof l;"string"!==u&&"boolean"!==u&&"number"!==u&&(l=JSON.stringify(l));var d=u+":"+l,h=a[d];void 0===h&&(i.push(l),a[d]=h=i.length-1),t.writeVarint(h)}}}function s(e,t){return(t<<3)+(7&e)}function l(e){return e<<1^e>>31}function c(e,t){for(var r=e.loadGeometry(),n=e.type,i=0,o=0,a=r.length,c=0;c<a;c++){var u=r[c],d=1;1===n&&(d=u.length),t.writeVarint(s(1,d));for(var h=3===n?u.length-1:u.length,p=0;p<h;p++){1===p&&1!==n&&t.writeVarint(s(2,h-1));var f=u[p].x-i,m=u[p].y-o;t.writeVarint(l(f)),t.writeVarint(l(m)),i+=f,o+=m}3===n&&t.writeVarint(s(7,1))}}function u(e,t){var r=typeof e;"string"===r?t.writeStringField(1,e):"boolean"===r?t.writeBooleanField(7,e):"number"===r&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}return C.exports=n,C.exports.fromVectorTileJs=n,C.exports.fromGeojsonVt=function(e,t){t=t||{};var i={};for(var o in e)i[o]=new r(e[o].features,t),i[o].name=o,i[o].version=t.version,i[o].extent=t.extent;return n({layers:i})},C.exports.GeoJSONWrapper=r,C.exports}(),M=e.e8(I);const k={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},O=Math.fround||(R=new Float32Array(1),e=>(R[0]=+e,R[0]));var R;const L=3,D=5,N=6;class F{constructor(e){this.options=Object.assign(Object.create(k),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:r,maxZoom:n}=this.options;t&&console.time("total time");const i="prepare ".concat(e.length," points");t&&console.time(i),this.points=e;const o=[];for(let s=0;s<e.length;s++){const t=e[s];if(!t.geometry)continue;const[r,n]=t.geometry.coordinates,i=O(B(r)),a=O(U(n));o.push(i,a,1/0,s,-1,1),this.options.reduce&&o.push(0)}let a=this.trees[n+1]=this._createTree(o);t&&console.timeEnd(i);for(let s=n;s>=r;s--){const e=+Date.now();a=this.trees[s]=this._createTree(this._cluster(a,s)),t&&console.log("z%d: %d clusters in %dms",s,a.numItems,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,e[1]));let i=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,i=180;else if(r>i){const e=this.getClusters([r,n,180,o],t),a=this.getClusters([-180,n,i,o],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],s=a.range(B(r),U(o),B(i),U(n)),l=a.data,c=[];for(const u of s){const e=this.stride*u;c.push(l[e+D]>1?z(l,e,this.clusterProps):this.points[l[e+L]])}return c}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),n="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(n);const o=i.data;if(t*this.stride>=o.length)throw new Error(n);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=i.within(o[t*this.stride],o[t*this.stride+1],a),l=[];for(const c of s){const t=c*this.stride;o[t+4]===e&&l.push(o[t+D]>1?z(o,t,this.clusterProps):this.points[o[t+L]])}if(0===l.length)throw new Error(n);return l}getLeaves(e,t,r){const n=[];return this._appendLeaves(n,e,t=t||10,r=r||0,0),n}getTile(e,t,r){const n=this.trees[this._limitZoom(e)],i=Math.pow(2,e),{extent:o,radius:a}=this.options,s=a/o,l=(r-s)/i,c=(r+1+s)/i,u={features:[]};return this._addTileFeatures(n.range((t-s)/i,l,(t+1+s)/i,c),n.data,t,r,i,u),0===t&&this._addTileFeatures(n.range(1-s/i,l,1,c),n.data,i,r,i,u),t===i-1&&this._addTileFeatures(n.range(0,l,s/i,c),n.data,-1,r,i,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,n,i){const o=this.getChildren(t);for(const a of o){const t=a.properties;if(t&&t.cluster?i+t.point_count<=n?i+=t.point_count:i=this._appendLeaves(e,t.cluster_id,r,n,i):i<n?i++:e.push(a),e.length===r)break}return i}_createTree(t){const r=new e.bE(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let e=0;e<t.length;e+=this.stride)r.add(t[e],t[e+1]);return r.finish(),r.data=t,r}_addTileFeatures(e,t,r,n,i,o){for(const a of e){const e=a*this.stride,s=t[e+D]>1;let l,c,u;if(s)l=j(t,e,this.clusterProps),c=t[e],u=t[e+1];else{const r=this.points[t[e+L]];l=r.properties;const[n,i]=r.geometry.coordinates;c=B(n),u=U(i)}const d={type:1,geometry:[[Math.round(this.options.extent*(c*i-r)),Math.round(this.options.extent*(u*i-n))]],tags:l};let h;h=s||this.options.generateId?t[e+L]:this.points[t[e+L]].id,void 0!==h&&(d.id=h),o.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:r,extent:n,reduce:i,minPoints:o}=this.options,a=r/(n*Math.pow(2,t)),s=e.data,l=[],c=this.stride;for(let u=0;u<s.length;u+=c){if(s[u+2]<=t)continue;s[u+2]=t;const r=s[u],n=s[u+1],d=e.within(s[u],s[u+1],a),h=s[u+D];let p=h;for(const e of d){const r=e*c;s[r+2]>t&&(p+=s[r+D])}if(p>h&&p>=o){let e,o=r*h,a=n*h,f=-1;const m=(u/c<<5)+(t+1)+this.points.length;for(const r of d){const n=r*c;if(s[n+2]<=t)continue;s[n+2]=t;const l=s[n+D];o+=s[n]*l,a+=s[n+1]*l,s[n+4]=m,i&&(e||(e=this._map(s,u,!0),f=this.clusterProps.length,this.clusterProps.push(e)),i(e,this._map(s,n)))}s[u+4]=m,l.push(o/p,a/p,1/0,m,-1,p),i&&l.push(f)}else{for(let e=0;e<c;e++)l.push(s[u+e]);if(p>1)for(const e of d){const r=e*c;if(!(s[r+2]<=t)){s[r+2]=t;for(let e=0;e<c;e++)l.push(s[r+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+D]>1){const n=this.clusterProps[e[t+N]];return r?Object.assign({},n):n}const n=this.points[e[t+L]].properties,i=this.options.map(n);return r&&i===n?Object.assign({},i):i}}function z(e,t,r){return{type:"Feature",id:e[t+L],properties:j(e,t,r),geometry:{type:"Point",coordinates:[(n=e[t],360*(n-.5)),V(e[t+1])]}};var n}function j(e,t,r){const n=e[t+D],i=n>=1e4?"".concat(Math.round(n/1e3),"k"):n>=1e3?Math.round(n/100)/10+"k":n,o=e[t+N],a=-1===o?{}:Object.assign({},r[o]);return Object.assign(a,{cluster:!0,cluster_id:e[t+L],point_count:n,point_count_abbreviated:i})}function B(e){return e/360+.5}function U(e){const t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function V(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function q(e,t,r,n){let i=n;const o=t+(r-t>>1);let a,s=r-t;const l=e[t],c=e[t+1],u=e[r],d=e[r+1];for(let h=t+3;h<r;h+=3){const t=H(e[h],e[h+1],l,c,u,d);if(t>i)a=h,i=t;else if(t===i){const e=Math.abs(h-o);e<s&&(a=h,s=e)}}i>n&&(a-t>3&&q(e,t,a,n),e[a+2]=i,r-a>3&&q(e,a,r,n))}function H(e,t,r,n,i,o){let a=i-r,s=o-n;if(0!==a||0!==s){const l=((e-r)*a+(t-n)*s)/(a*a+s*s);l>1?(r=i,n=o):l>0&&(r+=a*l,n+=s*l)}return a=e-r,s=t-n,a*a+s*s}function G(e,t,r,n){const i={id:null!==e&&void 0!==e?e:null,type:t,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("Point"===t||"MultiPoint"===t||"LineString"===t)W(i,r);else if("Polygon"===t)W(i,r[0]);else if("MultiLineString"===t)for(const o of r)W(i,o);else if("MultiPolygon"===t)for(const o of r)W(i,o[0]);return i}function W(e,t){for(let r=0;r<t.length;r+=3)e.minX=Math.min(e.minX,t[r]),e.minY=Math.min(e.minY,t[r+1]),e.maxX=Math.max(e.maxX,t[r]),e.maxY=Math.max(e.maxY,t[r+1])}function Y(e,t,r,n){if(!t.geometry)return;const i=t.geometry.coordinates;if(i&&0===i.length)return;const o=t.geometry.type,a=Math.pow(r.tolerance/((1<<r.maxZoom)*r.extent),2);let s=[],l=t.id;if(r.promoteId?l=t.properties[r.promoteId]:r.generateId&&(l=n||0),"Point"===o)Z(i,s);else if("MultiPoint"===o)for(const c of i)Z(c,s);else if("LineString"===o)K(i,s,a,!1);else if("MultiLineString"===o){if(r.lineMetrics){for(const r of i)s=[],K(r,s,a,!1),e.push(G(l,"LineString",s,t.properties));return}X(i,s,a,!1)}else if("Polygon"===o)X(i,s,a,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(const i of t.geometry.geometries)Y(e,{id:l,geometry:i,properties:t.properties},r,n);return}throw new Error("Input data is not a valid GeoJSON object.")}for(const e of i){const t=[];X(e,t,a,!0),s.push(t)}}e.push(G(l,o,s,t.properties))}function Z(e,t){t.push(J(e[0]),Q(e[1]),0)}function K(e,t,r,n){let i,o,a=0;for(let l=0;l<e.length;l++){const r=J(e[l][0]),s=Q(e[l][1]);t.push(r,s,0),l>0&&(a+=n?(i*s-r*o)/2:Math.sqrt(Math.pow(r-i,2)+Math.pow(s-o,2))),i=r,o=s}const s=t.length-3;t[2]=1,q(t,0,s,r),t[s+2]=1,t.size=Math.abs(a),t.start=0,t.end=t.size}function X(e,t,r,n){for(let i=0;i<e.length;i++){const o=[];K(e[i],o,r,n),t.push(o)}}function J(e){return e/360+.5}function Q(e){const t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function $(e,t,r,n,i,o,a,s){if(n/=t,o>=(r/=t)&&a<n)return e;if(a<r||o>=n)return null;const l=[];for(const c of e){const e=c.geometry;let t=c.type;const o=0===i?c.minX:c.minY,a=0===i?c.maxX:c.maxY;if(o>=r&&a<n){l.push(c);continue}if(a<r||o>=n)continue;let u=[];if("Point"===t||"MultiPoint"===t)ee(e,u,r,n,i);else if("LineString"===t)te(e,u,r,n,i,!1,s.lineMetrics);else if("MultiLineString"===t)ne(e,u,r,n,i,!1);else if("Polygon"===t)ne(e,u,r,n,i,!0);else if("MultiPolygon"===t)for(const s of e){const e=[];ne(s,e,r,n,i,!0),e.length&&u.push(e)}if(u.length){if(s.lineMetrics&&"LineString"===t){for(const e of u)l.push(G(c.id,t,e,c.tags));continue}"LineString"!==t&&"MultiLineString"!==t||(1===u.length?(t="LineString",u=u[0]):t="MultiLineString"),"Point"!==t&&"MultiPoint"!==t||(t=3===u.length?"Point":"MultiPoint"),l.push(G(c.id,t,u,c.tags))}}return l.length?l:null}function ee(e,t,r,n,i){for(let o=0;o<e.length;o+=3){const a=e[o+i];a>=r&&a<=n&&ie(t,e[o],e[o+1],e[o+2])}}function te(e,t,r,n,i,o,a){let s=re(e);const l=0===i?oe:ae;let c,u,d=e.start;for(let g=0;g<e.length-3;g+=3){const h=e[g],p=e[g+1],f=e[g+2],m=e[g+3],_=e[g+4],y=0===i?h:p,v=0===i?m:_;let b=!1;a&&(c=Math.sqrt(Math.pow(h-m,2)+Math.pow(p-_,2))),y<r?v>r&&(u=l(s,h,p,m,_,r),a&&(s.start=d+c*u)):y>n?v<n&&(u=l(s,h,p,m,_,n),a&&(s.start=d+c*u)):ie(s,h,p,f),v<r&&y>=r&&(u=l(s,h,p,m,_,r),b=!0),v>n&&y<=n&&(u=l(s,h,p,m,_,n),b=!0),!o&&b&&(a&&(s.end=d+c*u),t.push(s),s=re(e)),a&&(d+=c)}let h=e.length-3;const p=e[h],f=e[h+1],m=0===i?p:f;m>=r&&m<=n&&ie(s,p,f,e[h+2]),h=s.length-3,o&&h>=3&&(s[h]!==s[0]||s[h+1]!==s[1])&&ie(s,s[0],s[1],s[2]),s.length&&t.push(s)}function re(e){const t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ne(e,t,r,n,i,o){for(const a of e)te(a,t,r,n,i,o,!1)}function ie(e,t,r,n){e.push(t,r,n)}function oe(e,t,r,n,i,o){const a=(o-t)/(n-t);return ie(e,o,r+(i-r)*a,1),a}function ae(e,t,r,n,i,o){const a=(o-r)/(i-r);return ie(e,t+(n-t)*a,o,1),a}function se(e,t){const r=[];for(let n=0;n<e.length;n++){const i=e[n],o=i.type;let a;if("Point"===o||"MultiPoint"===o||"LineString"===o)a=le(i.geometry,t);else if("MultiLineString"===o||"Polygon"===o){a=[];for(const e of i.geometry)a.push(le(e,t))}else if("MultiPolygon"===o){a=[];for(const e of i.geometry){const r=[];for(const n of e)r.push(le(n,t));a.push(r)}}r.push(G(i.id,o,a,i.tags))}return r}function le(e,t){const r=[];r.size=e.size,void 0!==e.start&&(r.start=e.start,r.end=e.end);for(let n=0;n<e.length;n+=3)r.push(e[n]+t,e[n+1],e[n+2]);return r}function ce(e,t){if(e.transformed)return e;const r=1<<e.z,n=e.x,i=e.y;for(const o of e.features){const e=o.geometry,a=o.type;if(o.geometry=[],1===a)for(let s=0;s<e.length;s+=2)o.geometry.push(ue(e[s],e[s+1],t,r,n,i));else for(let s=0;s<e.length;s++){const a=[];for(let o=0;o<e[s].length;o+=2)a.push(ue(e[s][o],e[s][o+1],t,r,n,i));o.geometry.push(a)}}return e.transformed=!0,e}function ue(e,t,r,n,i,o){return[Math.round(r*(e*n-i)),Math.round(r*(t*n-o))]}function de(e,t,r,n,i){const o=t===i.maxZoom?0:i.tolerance/((1<<t)*i.extent),a={features:[],numPoints:0,numSimplified:0,numFeatures:e.length,source:null,x:r,y:n,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0};for(const s of e)he(a,s,o,i);return a}function he(e,t,r,n){const i=t.geometry,o=t.type,a=[];if(e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),"Point"===o||"MultiPoint"===o)for(let s=0;s<i.length;s+=3)a.push(i[s],i[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)pe(a,i,e,r,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(let s=0;s<i.length;s++)pe(a,i[s],e,r,"Polygon"===o,0===s);else if("MultiPolygon"===o)for(let s=0;s<i.length;s++){const t=i[s];for(let n=0;n<t.length;n++)pe(a,t[n],e,r,!0,0===n)}if(a.length){let r=t.tags||null;if("LineString"===o&&n.lineMetrics){r={};for(const e in t.tags)r[e]=t.tags[e];r.mapbox_clip_start=i.start/i.size,r.mapbox_clip_end=i.end/i.size}const s={geometry:a,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:r};null!==t.id&&(s.id=t.id),e.features.push(s)}}function pe(e,t,r,n,i,o){const a=n*n;if(n>0&&t.size<(i?a:n))return void(r.numPoints+=t.length/3);const s=[];for(let l=0;l<t.length;l+=3)(0===n||t[l+2]>a)&&(r.numSimplified++,s.push(t[l],t[l+1])),r.numPoints++;i&&function(e,t){let r=0;for(let n=0,i=e.length,o=i-2;n<i;o=n,n+=2)r+=(e[n]-e[o])*(e[n+1]+e[o+1]);if(r>0===t)for(let n=0,i=e.length;n<i/2;n+=2){const t=e[n],r=e[n+1];e[n]=e[i-2-n],e[n+1]=e[i-1-n],e[i-2-n]=t,e[i-1-n]=r}}(s,o),e.push(s)}const fe={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0};class me{constructor(e,t){const r=(t=this.options=function(e,t){for(const r in t)e[r]=t[r];return e}(Object.create(fe),t)).debug;if(r&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");let n=function(e,t){const r=[];if("FeatureCollection"===e.type)for(let n=0;n<e.features.length;n++)Y(r,e.features[n],t,n);else Y(r,"Feature"===e.type?e:{geometry:e},t);return r}(e,t);this.tiles={},this.tileCoords=[],r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=function(e,t){const r=t.buffer/t.extent;let n=e;const i=$(e,1,-1-r,r,0,-1,2,t),o=$(e,1,1-r,2+r,0,-1,2,t);return(i||o)&&(n=$(e,1,-r,1+r,0,-1,2,t)||[],i&&(n=se(i,1).concat(n)),o&&(n=n.concat(se(o,-1)))),n}(n,t),n.length&&this.splitTile(n,0,0,0),r&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}splitTile(e,t,r,n,i,o,a){const s=[e,t,r,n],l=this.options,c=l.debug;for(;s.length;){n=s.pop(),r=s.pop(),t=s.pop(),e=s.pop();const u=1<<t,d=ge(t,r,n);let h=this.tiles[d];if(!h&&(c>1&&console.time("creation"),h=this.tiles[d]=de(e,t,r,n,l),this.tileCoords.push({z:t,x:r,y:n}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd("creation"));const e="z".concat(t);this.stats[e]=(this.stats[e]||0)+1,this.total++}if(h.source=e,null==i){if(t===l.indexMaxZoom||h.numPoints<=l.indexMaxPoints)continue}else{if(t===l.maxZoom||t===i)continue;if(null!=i){const e=i-t;if(r!==o>>e||n!==a>>e)continue}}if(h.source=null,0===e.length)continue;c>1&&console.time("clipping");const p=.5*l.buffer/l.extent,f=.5-p,m=.5+p,g=1+p;let _=null,y=null,v=null,b=null,x=$(e,u,r-p,r+m,0,h.minX,h.maxX,l),w=$(e,u,r+f,r+g,0,h.minX,h.maxX,l);e=null,x&&(_=$(x,u,n-p,n+m,1,h.minY,h.maxY,l),y=$(x,u,n+f,n+g,1,h.minY,h.maxY,l),x=null),w&&(v=$(w,u,n-p,n+m,1,h.minY,h.maxY,l),b=$(w,u,n+f,n+g,1,h.minY,h.maxY,l),w=null),c>1&&console.timeEnd("clipping"),s.push(_||[],t+1,2*r,2*n),s.push(y||[],t+1,2*r,2*n+1),s.push(v||[],t+1,2*r+1,2*n),s.push(b||[],t+1,2*r+1,2*n+1)}}getTile(e,t,r){e=+e,t=+t,r=+r;const n=this.options,{extent:i,debug:o}=n;if(e<0||e>24)return null;const a=1<<e,s=ge(e,t=t+a&a-1,r);if(this.tiles[s])return ce(this.tiles[s],i);o>1&&console.log("drilling down to z%d-%d-%d",e,t,r);let l,c=e,u=t,d=r;for(;!l&&c>0;)c--,u>>=1,d>>=1,l=this.tiles[ge(c,u,d)];return l&&l.source?(o>1&&(console.log("found parent tile z%d-%d-%d",c,u,d),console.time("drilling down")),this.splitTile(l.source,c,u,d,e,t,r),o>1&&console.timeEnd("drilling down"),this.tiles[s]?ce(this.tiles[s],i):null):null}}function ge(e,t,r){return 32*((1<<e)*r+t)+e}function _e(e,t){const r=e.tileID.canonical;if(!this._geoJSONIndex)return void t(null,null);const n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return void t(null,null);const i=new f(n.features);let o=M(i);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:i,rawData:o.buffer})}class ye extends c{constructor(e,t,r,n,i,o){super(e,t,r,n,_e,o),i&&(this.loadGeoJSON=i),this._dynamicIndex=new _}loadData(r,n){const i=r&&r.request,o=i&&i.collectResourceTiming;this.loadGeoJSON(r,((a,s)=>{if(a||!s)return n(a);if("object"!=typeof s)return n(new Error("Input data given to '".concat(r.source,"' is not a valid GeoJSON object.")));{try{if(r.filter){const t=e.U(r.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===t.result)throw new Error(t.value.map((e=>"".concat(e.key,": ").concat(e.message))).join(", "));s.features=s.features.filter((e=>t.value.evaluate({zoom:0},e)))}r.dynamic?("Feature"===s.type&&(s={type:"FeatureCollection",features:[s]}),r.append||(this._dynamicIndex.clear(),this.loaded={}),this._dynamicIndex.load(s.features,this.loaded),r.cluster&&(s.features=this._dynamicIndex.getFeatures())):this.loaded={},this._geoJSONIndex=r.cluster?new F(function(t){let{superclusterOptions:r,clusterProperties:n}=t;if(!n||!r)return r;const i={},o={},a={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n);for(const c of l){const[t,r]=n[c],a=e.U(r),s=e.U("string"==typeof t?[t,["accumulated"],["get",c]]:t);i[c]=a.value,o[c]=s.value}return r.map=e=>{s.properties=e;const t={};for(const r of l)t[r]=i[r].evaluate(a,s);return t},r.reduce=(e,t)=>{s.properties=t;
2for(const r of l)a.accumulated=e[r],e[r]=o[r].evaluate(a,s)},r}(r)).load(s.features):r.dynamic?this._dynamicIndex:function(e,t){return new me(e,t)}(s,r.geojsonVtOptions)}catch(e){return n(e)}const a={};if(o){const e=t(i);e&&(a.resourceTiming={},a.resourceTiming[r.source]=JSON.parse(JSON.stringify(e)))}n(null,a)}}))}reloadTile(e,t){const r=this.loaded;return r&&r[e.uid]?e.partial?t(null,void 0):super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,r){if(t.request)e.n(t.request,r);else{if("string"!=typeof t.data)return r(new Error("Input data given to '".concat(t.source,"' is not a valid GeoJSON object.")));try{return r(null,JSON.parse(t.data))}catch(e){return r(new Error("Input data given to '".concat(t.source,"' is not a valid GeoJSON object.")))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class ve{constructor(t,r){this.tileID=new e.aG(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.tileZoom=t.tileZoom,this.uid=t.uid,this.zoom=t.zoom,this.canonical=t.tileID.canonical,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=t.projection,this.brightness=r}parse(t,r,n,i){this.status="parsing";const o=new e.aG(n.tileID.overscaledZ,n.tileID.wrap,n.tileID.canonical.z,n.tileID.canonical.x,n.tileID.canonical.y),a=[],s=r.familiesBySource[n.source],l=new e.dZ(o,n.promoteId);return l.bucketLayerIDs=[],l.is3DTile=!0,e.e9(t).then((t=>{if(!t)return i(new Error("Could not parse tile"));const r=e.ea(t,1/e.cc(n.tileID.canonical)),c=t.json.extensionsUsed&&t.json.extensionsUsed.includes("MAPBOX_mesh_features")||t.json.asset.extras&&t.json.asset.extras.MAPBOX_mesh_features,u=t.json.extensionsUsed&&t.json.extensionsUsed.includes("EXT_meshopt_compression"),d=new e.a8(this.zoom,{brightness:this.brightness});for(const n in s)for(const t of s[n]){const n=t[0];l.bucketLayerIDs.push(t.map((t=>e.aC(t.id,t.scope)))),n.recalculate(d,[]);const i=new e.eb(t,r,o,c,u,this.brightness,l);c||(i.needsUpload=!0),a.push(i),i.evaluate(n)}this.status="done",i(null,{buckets:a,featureIndex:l,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:null})})).catch((e=>i(new Error(e.message))))}}class be{constructor(e,t,r,n,i,o){this.actor=e,this.layerIndex=t,this.availableImages=r,this.brightness=o,this.loading={},this.loaded={}}loadTile(t,r){const n=t.uid,i=this.loading[n]=new ve(t,this.brightness);e.bi(t.request,((e,o)=>{const a=!this.loading[n];return delete this.loading[n],a||e?(i.status="done",a||(this.loaded[n]=i),r(e)):o&&0!==o.byteLength?void i.parse(o,this.layerIndex,t,((e,t)=>{i.status="done",this.loaded=this.loaded||{},this.loaded[n]=i,e||!t?r(e):r(null,t)})):(i.status="done",this.loaded[n]=i,r())}))}reloadTile(e,t){const r=this.loaded,n=e.uid;if(r&&r[n]){const i=r[n];i.projection=e.projection,i.brightness=e.brightness;const o=(r,n)=>{i.reloadCallback&&(delete i.reloadCallback,this.loadTile(e,t)),t(r,n)};"parsing"===i.status?i.reloadCallback=o:"done"===i.status&&this.loadTile(e,t)}}abortTile(e,t){const r=e.uid;this.loading[r]&&delete this.loading[r],t()}removeTile(e,t){const r=this.loaded,n=e.uid;r&&r[n]&&delete r[n],t()}}class xe{constructor(t){this.self=t,this.actor=new e.ec(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.imageRasterizer=new e.I,this.projections={},this.defaultProjection=e.bP({name:"mercator"}),this.workerSourceTypes={vector:c,geojson:ye,"batched-model":be},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error('Worker source with name "'.concat(e,'" already registered.'));this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.ed.isParsed())throw new Error("RTL text plugin already registered.");e.ed.applyArabicShaping=t.applyArabicShaping,e.ed.processBidirectionalText=t.processBidirectionalText,e.ed.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,r){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],delete this.rasterArrayWorkerSource,r()}checkIfReady(e,t,r){r()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,r){let{scope:n,isLoaded:i}=r;if(this.isSpriteLoaded[t]||(this.isSpriteLoaded[t]={}),this.isSpriteLoaded[t][n]=i,this.workerSources[t]&&this.workerSources[t][n])for(const o in this.workerSources[t][n]){const r=this.workerSources[t][n][o];for(const t in r){const n=r[t];n instanceof c&&(n.isSpriteLoaded=i,n.fire(new e.z("isSpriteLoaded")))}}}setImages(e,t,r){let{scope:n,images:i}=t;if(this.availableImages[e]||(this.availableImages[e]={}),this.availableImages[e][n]=i,this.workerSources[e]&&this.workerSources[e][n]){for(const t in this.workerSources[e][n]){const r=this.workerSources[e][n][t];for(const e in r)r[e].availableImages=i}r()}else r()}setProjection(t,r){this.projections[t]=e.bP(r)}setBrightness(e,t,r){this.brightness=t,r()}setLayers(e,t,r){this.getLayerIndex(e,t.scope).replace(t.layers,t.options),r()}updateLayers(e,t,r){this.getLayerIndex(e,t.scope).update(t.layers,t.removedIds,t.options),r()}loadTile(e,t,r){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).loadTile(t,r)}loadDEMTile(e,t,r){this.getDEMWorkerSource(e,t.source,t.scope).loadTile(t,r)}decodeRasterArray(e,t,r){this.getRasterArrayWorkerSource().decodeRasterArray(t,r)}reloadTile(e,t,r){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t.type,t.source,t.scope).reloadTile(t,r)}
2abortTile(e,t,r){this.getWorkerSource(e,t.type,t.source,t.scope).abortTile(t,r)}removeTile(e,t,r){this.getWorkerSource(e,t.type,t.source,t.scope).removeTile(t,r)}removeSource(e,t,r){if(!(this.workerSources[e]&&this.workerSources[e][t.scope]&&this.workerSources[e][t.scope][t.type]&&this.workerSources[e][t.scope][t.type][t.source]))return;const n=this.workerSources[e][t.scope][t.type][t.source];delete this.workerSources[e][t.scope][t.type][t.source],void 0!==n.removeSource?n.removeSource(t,r):r()}loadWorkerSource(e,t,r){try{this.self.importScripts(t.url),r()}catch(e){r(e.toString())}}syncRTLPluginState(t,r,n){try{e.ed.setState(r);const t=e.ed.getPluginURL();if(e.ed.isLoaded()&&!e.ed.isParsed()&&null!=t){this.self.importScripts(t);const r=e.ed.isParsed();n(r?void 0:new Error("RTL Text Plugin failed to import scripts from ".concat(t)),r)}}catch(e){n(e.toString())}}setDracoUrl(e,t){this.dracoUrl=t}getAvailableImages(e,t){this.availableImages[e]||(this.availableImages[e]={});let r=this.availableImages[e][t];return r||(r=[]),r}getLayerIndex(e,t){this.layerIndexes[e]||(this.layerIndexes[e]={});let r=this.layerIndexes[e][t];return r||(r=this.layerIndexes[e][t]=new i,r.scope=t),r}getWorkerSource(e,t,r,n){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][n]||(this.workerSources[e][n]={}),this.workerSources[e][n][t]||(this.workerSources[e][n][t]={}),this.isSpriteLoaded[e]||(this.isSpriteLoaded[e]={}),this.workerSources[e][n][t][r]||(this.workerSources[e][n][t][r]=new this.workerSourceTypes[t]({send:(t,r,n,i,o,a)=>{this.actor.send(t,r,n,e,o,a)},scheduler:this.actor.scheduler},this.getLayerIndex(e,n),this.getAvailableImages(e,n),this.isSpriteLoaded[e][n],void 0,this.brightness)),this.workerSources[e][n][t][r]}rasterizeImages(e,t,r){const{imageTasks:n,scope:i}=t,o={};for(const a in n){const{image:t,imageIdWithOptions:r}=n[a];o[a]=this.imageRasterizer.rasterize(r,t,i,e)}r(void 0,o)}removeRasterizedImages(e,t,r){const{imageIds:n,scope:i}=t;this.imageRasterizer.removeImagesFromCacheByIds(n,i,e),r()}getDEMWorkerSource(e,t,r){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][r]||(this.demWorkerSources[e][r]={}),this.demWorkerSources[e][r][t]||(this.demWorkerSources[e][r][t]=new u),this.demWorkerSources[e][r][t]}getRasterArrayWorkerSource(){return this.rasterArrayWorkerSource||(this.rasterArrayWorkerSource=new d),this.rasterArrayWorkerSource}enforceCacheSizeLimit(t,r){e.ee(r)}getWorkerPerformanceMetrics(e,t,r){r(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xe(self)),xe})),s(["./shared"],(function(e){var t="3.9.3";const r={create:"create",load:"load",fullLoad:"fullLoad"},s={mark(e){performance.mark(e)},measure(e,t,r){performance.measure(e,t,r)}};function l(t){const r=t.name.split("?")[0];return e.a(r)&&r.includes("mapbox-gl.js")?"javascript":e.a(r)&&r.includes("mapbox-gl.css")?"css":e.b(r)?"fontRange":e.c(r)?"sprite":e.i(r)?"style":e.d(r)?"tilejson":"other"}var c,u={},d=function(){if(c)return u;function e(e){return!t(e)}function t(t){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,r=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(r);try{t=new Worker(n),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(n),e}()?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var r=t.getImageData(0,0,1,1);return r&&r.width===e.width}()?(void 0===r[n=t&&t.failIfMajorPerformanceCaveat]&&(r[n]=function(t){var r,n=function(t){var r=document.createElement("canvas"),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.getContext("webgl2",n)}(t);if(!n)return!1;try{r=n.createShader(n.VERTEX_SHADER)}catch(e){return!1}return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(n)),r[n]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL2 support"):"insufficient Canvas/getImageData support":"insufficient worker support";var n}c=1,u.supported=e,u.notSupportedReason=t;var r={};return e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0},u}();function h(e,t,r){const n=document.createElement(e);return null!=t&&(n.className=t),r&&r.appendChild(n),n}function p(e,t,r){const n=document.createElementNS("http://www.w3.org/2000/svg",e);for(const i of Object.keys(t))n.setAttributeNS(null,i,String(t[i]));return r&&r.appendChild(n),n}const f="undefined"!=typeof document?document.documentElement&&document.documentElement.style:null,m=f&&void 0!==f.userSelect?"userSelect":"WebkitUserSelect";let g;function _(){f&&m&&(g=f[m],f[m]="none")}function y(){f&&m&&(f[m]=g)}function v(e){e.preventDefault(),e.stopPropagation(),window.removeEventListener("click",v,!0)}function b(){window.addEventListener("click",v,!0),window.setTimeout((()=>{window.removeEventListener("click",v,!0)}),0)}function x(e,t){const r=e.getBoundingClientRect();return S(e,r,t)}function w(e,t){const r=e.getBoundingClientRect(),n=[];for(let i=0;i<t.length;i++)n.push(S(e,r,t[i]));return n}function A(e){return void 0!==window.InstallTrigger&&2===e.button&&e.ctrlKey&&window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:e.button}function S(t,r,n){const i=t.offsetWidth===r.width?1:t.offsetWidth/r.width;return new e.P((n.clientX-r.left)*i,(n.clientY-r.top)*i)}const E="01",T="NO_ACCESS_TOKEN";class P{constructor(e,t,r){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!r,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",E,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(r,n){if(!e.f(r))return r;const i=I(r);return i.params.push("sdk=js-".concat(t)),i.path="/styles/v1".concat(i.path),this._makeAPIURL(i,this._customAccessToken||n)}normalizeGlyphsURL(t,r){if(!e.f(t))return t;const n=I(t);return n.path="/fonts/v1".concat(n.path),this._makeAPIURL(n,this._customAccessToken||r)}normalizeModelURL(t,r){if(!e.f(t))return t;const n=I(t);return n.path="/models/v1".concat(n.path),this._makeAPIURL(n,this._customAccessToken||r)}normalizeSourceURL(t,r,n,i){if(!e.f(t))return t;const o=I(t);return o.path="/v4/".concat(o.authority,".json"),o.params.push("secure"),n&&o.params.push("language=".concat(n)),i&&o.params.push("worldview=".concat(i)),this._makeAPIURL(o,this._customAccessToken||r)}normalizeIconsetURL(t,r){const n=I(t);return e.f(t)?(n.path="/styles/v1".concat(n.path,"/iconset.pbf"),this._makeAPIURL(n,this._customAccessToken||r)):M(n)}normalizeSpriteURL(t,r,n,i){const o=I(t);return e.f(t)?(o.path="/styles/v1".concat(o.path,"/sprite").concat(r).concat(n),this._makeAPIURL(o,this._customAccessToken||i)):(o.path+="".concat(r).concat(n),M(o))}normalizeTileURL(t,r,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!e.f(t))return t;const i=I(t);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,"".concat(r||n&&"raster"!==i.authority&&512===n?"@2x":"").concat(e.m.supported?".webp":"$1")),"raster"===i.authority?i.path="/".concat(e.e.RASTER_URL_PREFIX).concat(i.path):"rasterarrays"===i.authority?i.path="/".concat(e.e.RASTERARRAYS_URL_PREFIX).concat(i.path):"3dtiles"===i.authority?i.path="/".concat(e.e.TILES3D_URL_PREFIX).concat(i.path):(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path="/".concat(e.e.TILE_URL_VERSION).concat(i.path));const o=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||e.e.ACCESS_TOKEN;return e.e.REQUIRE_ACCESS_TOKEN&&o&&this._skuToken&&i.params.push("sku=".concat(this._skuToken)),this._makeAPIURL(i,o)}canonicalizeTileURL(t,r){const n=I(t);if(!n.path.match(/^(\/v4\/|\/(raster|rasterarrays)\/v1\/)/)||!n.path.match(/\.[\w]+$/))return t;let i="mapbox://";n.path.match(/^\/raster\/v1\//)?i+="raster/".concat(n.path.replace("/".concat(e.e.RASTER_URL_PREFIX,"/"),"")):n.path.match(/^\/rasterarrays\/v1\//)?i+="rasterarrays/".concat(n.path.replace("/".concat(e.e.RASTERARRAYS_URL_PREFIX,"/"),"")):i+="tiles/".concat(n.path.replace("/".concat(e.e.TILE_URL_VERSION,"/"),""));let o=n.params;return r&&(o=o.filter((e=>!e.match(/^access_token=/)))),o.length&&(i+="?".concat(o.join("&"))),i}canonicalizeTileset(t,r){const n=!!r&&e.f(r),i=[];for(const o of t.tiles||[])e.h(o)?i.push(this.canonicalizeTileURL(o,n)):i.push(o);return i}_makeAPIURL(t,r){const n="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",i=I(e.e.API_URL);if(t.protocol=i.protocol,t.authority=i.authority,"http"===t.protocol){const e=t.params.indexOf("secure");e>=0&&t.params.splice(e,1)}if("/"!==i.path&&(t.path="".concat(i.path).concat(t.path)),!e.e.REQUIRE_ACCESS_TOKEN)return M(t);if(r=r||e.e.ACCESS_TOKEN,!this._silenceAuthErrors){if(!r)throw new Error("An API access token is required to use Mapbox GL. ".concat(n));if("s"===r[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ".concat(n))}return t.params=t.params.filter((e=>-1===e.indexOf("access_token"))),t.params.push("access_token=".concat(r||"")),M(t)}}const C=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function I(e){const t=e.match(C);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function M(e){const t=e.params.length?"?".concat(e.params.join("&")):"";return"".concat(e.protocol,"://").concat(e.authority).concat(e.path).concat(t)}const k="mapbox.eventData";function O(t){if(!t)return null;const r=t.split(".");if(!r||3!==r.length)return null;
2try{return JSON.parse(e.j(r[1]))}catch(e){return null}}class R{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(t){const r=O(e.e.ACCESS_TOKEN);let n="";return n=r&&r.u?e.k(r.u):e.e.ACCESS_TOKEN||"",t?"".concat(k,".").concat(t,":").concat(n):"".concat(k,":").concat(n)}fetchEventData(){const t=e.s("localStorage"),r=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{const e=localStorage.getItem(r);e&&(this.eventData=JSON.parse(e));const t=localStorage.getItem(n);t&&(this.anonId=t)}catch(t){e.w("Unable to read from LocalStorage")}}saveEventData(){const t=e.s("localStorage"),r=this.getStorageKey(),n=this.getStorageKey("uuid"),i=this.anonId;if(t&&i)try{localStorage.setItem(n,i),Object.keys(this.eventData).length>=1&&localStorage.setItem(r,JSON.stringify(this.eventData))}catch(t){e.w("Unable to write to LocalStorage")}}processRequests(e){}postEvent(t,r,n,i){if(!e.e.EVENTS_URL)return;const o=I(e.e.EVENTS_URL);o.params.push("access_token=".concat(i||e.e.ACCESS_TOKEN||""));const a={event:this.type,created:new Date(t).toISOString()},s=r?e.l(a,r):a,l={url:M(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=e.p(l,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const L=new class extends R{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(t,r){e.e.EVENTS_URL&&e.e.ACCESS_TOKEN&&Array.isArray(t)&&t.some((t=>e.f(t)||e.h(t)))&&this.queueRequest(Date.now(),r)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=O(e.e.ACCESS_TOKEN),i=n?n.u:e.e.ACCESS_TOKEN;let o=i!==this.eventData.tokenU;e.v(this.anonId)||(this.anonId=e.u(),o=!0);const a=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(a),r=(a-this.eventData.lastSuccess)/864e5;o=o||r>=1||r<-1||e.getDate()!==t.getDate()}else o=!0;o?this.postEvent(a,{sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:E,"enabled.telemetry":!1,userId:this.anonId},(e=>{e||(this.eventData.lastSuccess=a,this.eventData.tokenU=i)}),r):this.processRequests()}},D=L.postTurnstileEvent.bind(L),N=new class extends R{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,r,n,i){this.skuToken=r,this.errorCb=i,e.e.EVENTS_URL&&(n||e.e.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(T)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{id:n,timestamp:i}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),e.v(this.anonId)||(this.anonId=e.u()),this.postEvent(i,{sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:E,skuToken:this.skuToken,userId:this.anonId},(e=>{e?this.errorCb(e):n&&(this.success[n]=!0)}),r))}remove(){this.errorCb=null}},F=N.postMapLoadEvent.bind(N),z=new class extends R{constructor(){super("style.load"),this.eventIdPerMapInstanceMap=new Map,this.mapInstanceIdMap=new WeakMap}getMapInstanceId(t){let r=this.mapInstanceIdMap.get(t);return r||(r=e.u(),this.mapInstanceIdMap.set(t,r)),r}getEventId(e){const t=this.eventIdPerMapInstanceMap.get(e)||0;return this.eventIdPerMapInstanceMap.set(e,t+1),t}postStyleLoadEvent(t,r){const{map:n,style:i,importedStyles:o}=r;if(!e.e.EVENTS_URL||!t&&!e.e.ACCESS_TOKEN)return;const a=this.getMapInstanceId(n),s={mapInstanceId:a,eventId:this.getEventId(a),style:i};o.length&&(s.importedStyles=o),this.queueRequest({timestamp:Date.now(),payload:s},t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:t,payload:r}=this.queue.shift();this.postEvent(t,r,(()=>{}),e)}},j=z.postStyleLoadEvent.bind(z),B=new class extends R{constructor(){super("gljs.performance")}postPerformanceEvent(t,r){e.e.EVENTS_URL&&(t||e.e.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:r},t)}processRequests(n){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:i,performanceData:o}=this.queue.shift(),a=function(n){const i=performance.getEntriesByType("resource"),o=performance.getEntriesByType("mark"),a=function(e){const t={};if(e)for(const r in e)if("other"!==r)for(const n of e[r]){const e="".concat(r,"ResolveRangeMin"),i="".concat(r,"ResolveRangeMax"),o="".concat(r,"RequestCount"),a="".concat(r,"RequestCachedCount");t[e]=Math.min(t[e]||1/0,n.startTime),t[i]=Math.max(t[i]||-1/0,n.responseEnd);const s=e=>{void 0===t[e]&&(t[e]=0),++t[e]};void 0!==n.transferSize&&0===n.transferSize&&s(a),s(o)}return t}(function(e,t){const r={};if(e)for(const n of e){const e=t(n);void 0===r[e]&&(r[e]=[]),r[e].push(n)}return r}(i,l)),s=window.devicePixelRatio,c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,u=c?c.effectiveType:void 0,d={counters:[],metadata:[],attributes:[]},h=(e,t,r)=>{null!=r&&e.push({name:t,value:r.toString()})};for(const e in a)h(d.counters,e,a[e]);if(n.interactionRange[0]!==1/0&&n.interactionRange[1]!==-1/0&&(h(d.counters,"interactionRangeMin",n.interactionRange[0]),h(d.counters,"interactionRangeMax",n.interactionRange[1])),o)for(const e of Object.keys(r)){const t=r[e],n=o.find((e=>e.name===t));n&&h(d.counters,t,n.startTime)}return h(d.counters,"visibilityHidden",n.visibilityHidden),h(d.attributes,"style",function(t){if(t)for(const r of t){const t=r.name.split("?")[0];if(e.i(t)){const e=t.split("/").slice(-2);if(2===e.length)return"mapbox://styles/".concat(e[0],"/").concat(e[1])}}}(i)),h(d.attributes,"terrainEnabled",n.terrainEnabled?"true":"false"),h(d.attributes,"fogEnabled",n.fogEnabled?"true":"false"),h(d.attributes,"projection",n.projection),h(d.attributes,"zoom",n.zoom),h(d.metadata,"devicePixelRatio",s),h(d.metadata,"connectionEffectiveType",u),h(d.metadata,"navigatorUserAgent",navigator.userAgent),h(d.metadata,"screenWidth",window.screen.width),h(d.metadata,"screenHeight",window.screen.height),h(d.metadata,"windowWidth",window.innerWidth),h(d.metadata,"windowHeight",window.innerHeight),h(d.metadata,"mapWidth",n.width/s),h(d.metadata,"mapHeight",n.height/s),h(d.metadata,"webglRenderer",n.renderer),h(d.metadata,"webglVendor",n.vendor),h(d.metadata,"sdkVersion",t),h(d.metadata,"sdkIdentifier","mapbox-gl-js"),d}(o);for(const e of a.metadata);for(const e of a.counters);for(const e of a.attributes);this.postEvent(i,a,(()=>{}),n)}},U=B.postPerformanceEvent.bind(B),V=new class extends R{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,r,n,i){if(!e.e.API_URL||!e.e.SESSION_PATH)return;const o=I(e.e.API_URL+e.e.SESSION_PATH);o.params.push("sku=".concat(r||"")),o.params.push("access_token=".concat(i||e.e.ACCESS_TOKEN||""));const a={url:M(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=e.g(a,(e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)}))}getSessionAPI(t,r,n,i){this.skuToken=r,this.errorCb=i,e.e.SESSION_PATH&&e.e.API_URL&&(n||e.e.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},n):this.errorCb(new Error(T)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:r}=this.queue.shift();
2t&&this.success[t]||this.getSession(r,this.skuToken,(e=>{e?this.errorCb(e):t&&(this.success[t]=!0)}),e)}remove(){this.errorCb=null}},q=V.getSessionAPI.bind(V),H=new Set;function G(e,t){t?H.add(e):H.delete(e)}class W{constructor(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps=new Set,this._updatedImages=new Set}isDirty(){return this._changed}setDirty(){this._changed=!0}getUpdatedSourceCaches(){return this._updatedSourceCaches}updateSourceCache(e,t){this._updatedSourceCaches[e]=t,this.setDirty()}discardSourceCacheUpdate(e){delete this._updatedSourceCaches[e]}updateLayer(e){const t=e.scope;this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._updatedLayers[t].add(e.id),this.setDirty()}removeLayer(e){const t=e.scope;this._removedLayers[t]=this._removedLayers[t]||{},this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._removedLayers[t][e.id]=e,this._updatedLayers[t].delete(e.id),this._updatedPaintProps.delete(e.fqid),this.setDirty()}getRemovedLayer(e){return this._removedLayers[e.scope]?this._removedLayers[e.scope][e.id]:null}discardLayerRemoval(e){this._removedLayers[e.scope]&&delete this._removedLayers[e.scope][e.id]}getLayerUpdatesByScope(){const e={};for(const t in this._updatedLayers)e[t]=e[t]||{},e[t].updatedIds=Array.from(this._updatedLayers[t].values());for(const t in this._removedLayers)e[t]=e[t]||{},e[t].removedIds=Object.keys(this._removedLayers[t]);return e}getUpdatedPaintProperties(){return this._updatedPaintProps}updatePaintProperties(e){this._updatedPaintProps.add(e.fqid),this.setDirty()}getUpdatedImages(){return Array.from(this._updatedImages.values())}updateImage(e){this._updatedImages.add(e),this.setDirty()}resetUpdatedImages(){this._updatedImages.clear()}reset(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps.clear(),this._updatedImages.clear()}}function Y(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class Z extends e.E{constructor(t){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded={},this.requestors=[],this.patterns={},this.atlasImage={},this.atlasTexture={},this.dirty=!0,this.spriteFormat=t,"raster"!==t&&e.t()&&(this.imageRasterizerDispatcher=new e.D(e.x(),this,"Image Rasterizer Worker",1))}get imageRasterizer(){return this._imageRasterizer||(this._imageRasterizer=new e.I),this._imageRasterizer}createScope(t){this.images[t]={},this.loaded[t]=!1,this.updatedImages[t]={},this.patterns[t]={},this.callbackDispatchedThisFrame[t]={},this.atlasImage[t]=new e.r({width:1,height:1})}isLoaded(){for(const e in this.loaded)if(!this.loaded[e])return!1;return!0}setLoaded(e,t){if(this.loaded[t]!==e&&(this.loaded[t]=e,e)){for(const{ids:e,callback:r}of this.requestors)this._notify(e,t,r);this.requestors=[]}}hasImage(e,t){return!!this.getImage(e,t)}getImage(e,t){return this.images[t][e]}addImage(e,t,r){this._validate(e,r)&&(this.images[t][e]=r)}_validate(t,r){let n=!0;return this._validateStretch(r.stretchX,r.data&&r.data.width)||(this.fire(new e.y(new Error('Image "'.concat(t,'" has invalid "stretchX" value')))),n=!1),this._validateStretch(r.stretchY,r.data&&r.data.height)||(this.fire(new e.y(new Error('Image "'.concat(t,'" has invalid "stretchY" value')))),n=!1),this._validateContent(r.content,r)||(this.fire(new e.y(new Error('Image "'.concat(t,'" has invalid "content" value')))),n=!1),n}_validateStretch(e,t){if(!e)return!0;let r=0;for(const n of e){if(n[0]<r||n[1]<n[0]||t<n[1])return!1;r=n[1]}return!0}_validateContent(e,t){if(!e)return!0;if(4!==e.length)return!1;if(!t.usvg){if(e[0]<0||t.data.width<e[0])return!1;if(e[1]<0||t.data.height<e[1])return!1;if(e[2]<0||t.data.width<e[2])return!1;if(e[3]<0||t.data.height<e[3])return!1}return!(e[2]<e[0]||e[3]<e[1])}updateImage(e,t,r){r.version=this.images[t][e].version+1,this.images[t][e]=r,this.updatedImages[t][e]=!0,this.removeFromImageRasterizerCache(e,t)}removeFromImageRasterizerCache(t,r){"raster"!==this.spriteFormat&&(e.t()?this.imageRasterizerDispatcher.getActor().send("removeRasterizedImages",{imageIds:[t],scope:r}):this.imageRasterizer.removeImagesFromCacheByIds([t],r))}removeImage(e,t){const r=this.images[t][e];delete this.images[t][e],delete this.patterns[t][e],this.removeFromImageRasterizerCache(e,t),r.userImage&&r.userImage.onRemove&&r.userImage.onRemove()}listImages(e){return Object.keys(this.images[e])}getImages(e,t,r){let n=!0;const i=!!this.loaded[t];if(!i)for(const o of e)this.images[t][o]||(n=!1);i||n?this._notify(e,t,r):this.requestors.push({ids:e,scope:t,callback:r})}rasterizeImages(t,r){let{scope:n,imageTasks:i}=t;const o={};for(const e in i){const t=i[e],r=this.getImage(t.id,n);r&&(o[e]={image:r,imageIdWithOptions:t})}e.t()?this.imageRasterizerDispatcher.getActor().send("rasterizeImages",{imageTasks:o,scope:n},r):this.rasterizeImagesInMainThread({imageTasks:o,scope:n},r)}rasterizeImagesInMainThread(e,t){const{imageTasks:r,scope:n}=e,i={};for(const o in r){const{image:e,imageIdWithOptions:t}=r[o];i[o]=this.imageRasterizer.rasterize(t,e,n,"")}t(void 0,i)}getUpdatedImages(e){return this.updatedImages[e]}_notify(t,r,n){const i={};for(const o of t){this.images[r][o]||this.fire(new e.z("styleimagemissing",{id:o}));const t=this.images[r][o];t?i[o]={data:t.usvg?null:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,usvg:t.usvg,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.w('Image "'.concat(o,'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.'))}n(null,i)}getPixelSize(e){const{width:t,height:r}=this.atlasImage[e];return{width:t,height:r}}getPattern(t,r,n){const i=this.patterns[r][t],o=this.getImage(t,r);
2if(!o)return null;if(i&&i.position.version===o.version)return i.position;if(i)i.position.version=o.version;else{o.usvg&&!o.data&&(o.data=this.imageRasterizer.rasterize(e.A.from(t).getPrimary(),o,r,""));const n={w:o.data.width+2*e.B,h:o.data.height+2*e.B,x:0,y:0},i=new e.F(n,o,e.B);this.patterns[r][t]={bin:n,position:i}}return this._updatePatternAtlas(r,n),this.patterns[r][t].position}bind(t,r){const n=t.gl;let i=this.atlasTexture[r];i?this.dirty&&(i.update(this.atlasImage[r]),this.dirty=!1):(i=new e.T(t,this.atlasImage[r],n.RGBA8),this.atlasTexture[r]=i),i.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(t,r){const n=[];for(const e in this.patterns[t])n.push(this.patterns[t][e].bin);const{w:i,h:o}=e.C(n),a=this.atlasImage[t];a.resize({width:i||1,height:o||1});for(const s in this.patterns[t]){const{bin:n,position:i}=this.patterns[t][s];let o=i.padding;const l=n.x+o,c=n.y+o,u=this.images[t][s].data,d=u.width,h=u.height;o=o>1?o-1:o,e.r.copy(u,a,{x:0,y:0},{x:l,y:c},{width:d,height:h},r),e.r.copy(u,a,{x:0,y:h-o},{x:l,y:c-o},{width:d,height:o},r),e.r.copy(u,a,{x:0,y:0},{x:l,y:c+h},{width:d,height:o},r),e.r.copy(u,a,{x:d-o,y:0},{x:l-o,y:c},{width:o,height:h},r),e.r.copy(u,a,{x:0,y:0},{x:l+d,y:c},{width:o,height:h},r),e.r.copy(u,a,{x:d-o,y:h-o},{x:l-o,y:c-o},{width:o,height:o},r),e.r.copy(u,a,{x:0,y:h-o},{x:l+d,y:c-o},{width:o,height:o},r),e.r.copy(u,a,{x:0,y:0},{x:l+d,y:c+h},{width:o,height:o},r),e.r.copy(u,a,{x:d-o,y:0},{x:l-o,y:c+h},{width:o,height:o},r)}this.dirty=!0}beginFrame(){for(const e in this.images)this.callbackDispatchedThisFrame[e]={}}dispatchRenderCallbacks(e,t){for(const r of e){if(this.callbackDispatchedThisFrame[t][r])continue;this.callbackDispatchedThisFrame[t][r]=!0;const e=this.images[t][r];Y(e)&&this.updateImage(r,t,e)}}}function K(t){const r=t.key,n=t.value,i=t.valueSpec||{},o=t.objectElementValidators||{},a=t.style,s=t.styleSpec;let l=[];const c=e.H(n);if("object"!==c)return[new e.V(r,n,"object expected, ".concat(c," found"))];for(const u in n){const t=u.split(".")[0];let c;o[t]?c=o[t]:i[t]?c=_e:o["*"]?c=o["*"]:i["*"]&&(c=_e),c?l=l.concat(c({key:(r?"".concat(r,"."):r)+u,value:n[u],valueSpec:i[t]||i["*"],style:a,styleSpec:s,object:n,objectKey:u},n)):l.push(new e.G(r,n[u],'unknown property "'.concat(u,'"')))}for(const u in i)o[u]||i[u].required&&void 0===i[u].default&&void 0===n[u]&&l.push(new e.V(r,n,'missing required property "'.concat(u,'"')));return l}function X(t){const r=t.value,n=t.valueSpec,i=t.style,o=t.styleSpec,a=t.key,s=t.arrayElementValidator||_e;if("array"!==e.H(r))return[new e.V(a,r,"array expected, ".concat(e.H(r)," found"))];if(n.length&&r.length!==n.length)return[new e.V(a,r,"array length ".concat(n.length," expected, length ").concat(r.length," found"))];if(n["min-length"]&&r.length<n["min-length"])return[new e.V(a,r,"array length at least ".concat(n["min-length"]," expected, length ").concat(r.length," found"))];let l={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum,function:void 0};o.$version<7&&(l.function=n.function),"object"===e.H(n.value)&&(l=n.value);let c=[];for(let e=0;e<r.length;e++)c=c.concat(s({array:r,arrayIndex:e,value:r[e],valueSpec:l,style:i,styleSpec:o,key:"".concat(a,"[").concat(e,"]")},!0));return c}function J(t){const r=t.key,n=t.value,i=t.valueSpec;let o=e.H(n);if("number"===o&&n!=n&&(o="NaN"),"number"!==o)return[new e.V(r,n,"number expected, ".concat(o," found"))];if("minimum"in i){let o=i.minimum;if("array"===e.H(i.minimum)&&(o=i.minimum[t.arrayIndex]),n<o)return[new e.V(r,n,"".concat(n," is less than the minimum value ").concat(o))]}if("maximum"in i){let o=i.maximum;if("array"===e.H(i.maximum)&&(o=i.maximum[t.arrayIndex]),n>o)return[new e.V(r,n,"".concat(n," is greater than the maximum value ").concat(o))]}return[]}function Q(t){const r=t.valueSpec,n=e.K(t.value.type);let i,o,a,s={};const l="categorical"!==n&&void 0===t.value.property,c=!l,u="array"===e.H(t.value.stops)&&"array"===e.H(t.value.stops[0])&&"object"===e.H(t.value.stops[0][0]),d=K({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===n)return[new e.V(t.key,t.value,'identity function may not have a "stops" property')];let r=[];const i=t.value;return r=r.concat(X({key:t.key,value:i,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===e.H(i)&&0===i.length&&r.push(new e.V(t.key,i,"array must have at least one stop")),r},default:function(e){return _e({key:e.key,value:e.value,valueSpec:r,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&l&&d.push(new e.V(t.key,t.value,'missing required property "property"')),"identity"===n||t.value.stops||d.push(new e.V(t.key,t.value,'missing required property "stops"')),"exponential"===n&&t.valueSpec.expression&&!e.L(t.valueSpec)&&d.push(new e.V(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(c&&!e.M(t.valueSpec)?d.push(new e.V(t.key,t.value,"property functions not supported")):l&&!e.N(t.valueSpec)&&d.push(new e.V(t.key,t.value,"zoom functions not supported"))),"categorical"!==n&&!u||void 0!==t.value.property||d.push(new e.V(t.key,t.value,'"property" property is required')),d;function h(t){let n=[];const i=t.value,l=t.key;if("array"!==e.H(i))return[new e.V(l,i,"array expected, ".concat(e.H(i)," found"))];if(2!==i.length)return[new e.V(l,i,"array length 2 expected, length ".concat(i.length," found"))];if(u){if("object"!==e.H(i[0]))return[new e.V(l,i,"object expected, ".concat(e.H(i[0])," found"))];if(void 0===i[0].zoom)return[new e.V(l,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new e.V(l,i,"object stop key must have value")];const r=e.K(i[0].zoom);if("number"!=typeof r)return[new e.V(l,i[0].zoom,"stop zoom values must be numbers")];if(a&&a>r)return[new e.V(l,i[0].zoom,"stop zoom values must appear in ascending order")];r!==a&&(a=r,o=void 0,s={}),n=n.concat(K({key:"".concat(l,"[0]"),value:i[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:J,value:p}}))}else n=n.concat(p({key:"".concat(l,"[0]"),value:i[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},i));return e.O(e.Q(i[1]))?n.concat([new e.V("".concat(l,"[1]"),i[1],"expressions are not allowed in function stops.")]):n.
2concat(_e({key:"".concat(l,"[1]"),value:i[1],valueSpec:r,style:t.style,styleSpec:t.styleSpec}))}function p(t,a){const l=e.H(t.value),c=e.K(t.value),u=null!==t.value?t.value:a;if(i){if(l!==i)return[new e.V(t.key,u,"".concat(l," stop domain type must match previous stop domain type ").concat(i))]}else i=l;if("number"!==l&&"string"!==l&&"boolean"!==l&&"number"!=typeof c&&"string"!=typeof c&&"boolean"!=typeof c)return[new e.V(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==n){let i="number expected, ".concat(l," found");return e.M(r)&&void 0===n&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new e.V(t.key,u,i)]}return"categorical"!==n||"number"!==l||"number"==typeof c&&isFinite(c)&&Math.floor(c)===c?"categorical"!==n&&"number"===l&&"number"==typeof c&&"number"==typeof o&&void 0!==o&&c<o?[new e.V(t.key,u,"stop domain values must appear in ascending order")]:(o=c,"categorical"===n&&c in s?[new e.V(t.key,u,"stop domain values must be unique")]:(s[c]=!0,[])):[new e.V(t.key,u,"integer expected, found ".concat(String(c)))]}}function $(t){const r=("property"===t.expressionContext?e.S:e.U)(e.Q(t.value),t.valueSpec);if("error"===r.result)return r.value.map((r=>new e.V("".concat(t.key).concat(r.key),t.value,r.message)));const n=r.value.expression||r.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!n.outputDefined())return[new e.V(t.key,t.value,'Invalid data expression for "'.concat(t.propertyKey,'". Output values must be contained as literals within the expression.'))];if("property"===t.expressionContext&&"layout"===t.propertyType&&!e.W(n))return[new e.V(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext)return ee(n,t);if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!e.X(n,["zoom","feature-state"]))return[new e.V(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!e.Y(n))return[new e.V(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function ee(t,r){const n=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(r.valueSpec&&r.valueSpec.expression)for(const e of r.valueSpec.expression.parameters)n.delete(e);if(0===n.size)return[];const i=[];return t instanceof e.Z&&n.has(t.name)?[new e.V(r.key,r.value,'["'.concat(t.name,'"] expression is not supported in a filter for a ').concat(r.object.type," layer with id: ").concat(r.object.id))]:(t.eachChild((e=>{i.push(...ee(e,r))})),i)}function te(t){const r=t.key,n=t.value,i=t.valueSpec,o=[];return Array.isArray(i.values)?-1===i.values.indexOf(e.K(n))&&o.push(new e.V(r,n,"expected one of [".concat(i.values.join(", "),"], ").concat(JSON.stringify(n)," found"))):-1===Object.keys(i.values).indexOf(e.K(n))&&o.push(new e.V(r,n,"expected one of [".concat(Object.keys(i.values).join(", "),"], ").concat(JSON.stringify(n)," found"))),o}function re(t){return e.$(e.Q(t.value))?$(e.J({},t,{expressionContext:"filter",valueSpec:t.styleSpec["filter_".concat(t.layerType||"fill")]})):ne(t)}function ne(t){const r=t.value,n=t.key;if("array"!==e.H(r))return[new e.V(n,r,"array expected, ".concat(e.H(r)," found"))];const i=t.styleSpec;let o,a=[];if(r.length<1)return[new e.V(n,r,"filter array must have at least 1 element")];switch(a=a.concat(te({key:"".concat(n,"[0]"),value:r[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),e.K(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===e.K(r[1])&&a.push(new e.V(n,r,'"$type" cannot be use with operator "'.concat(r[0],'"')));case"==":case"!=":3!==r.length&&a.push(new e.V(n,r,'filter array for operator "'.concat(r[0],'" must have 3 elements')));case"in":case"!in":r.length>=2&&(o=e.H(r[1]),"string"!==o&&a.push(new e.V("".concat(n,"[1]"),r[1],"string expected, ".concat(o," found"))));for(let s=2;s<r.length;s++)o=e.H(r[s]),"$type"===e.K(r[1])?a=a.concat(te({key:"".concat(n,"[").concat(s,"]"),value:r[s],valueSpec:i.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&a.push(new e.V("".concat(n,"[").concat(s,"]"),r[s],"string, number, or boolean expected, ".concat(o," found")));break;case"any":case"all":case"none":for(let e=1;e<r.length;
2e++)a=a.concat(ne({key:"".concat(n,"[").concat(e,"]"),value:r[e],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":o=e.H(r[1]),2!==r.length?a.push(new e.V(n,r,'filter array for "'.concat(r[0],'" operator must have 2 elements'))):"string"!==o&&a.push(new e.V("".concat(n,"[1]"),r[1],"string expected, ".concat(o," found")))}return a}function ie(t,r){const n=t.key,i=t.style,o=t.layer,a=t.styleSpec,s=t.value,l=t.objectKey,c=a["".concat(r,"_").concat(t.layerType)];if(!c)return[];const u=l.match(/^(.*)-use-theme$/);if("paint"===r&&u&&c[u[1]])return _e({key:n,value:s,valueSpec:{type:"string"},style:i,styleSpec:a});const d=l.match(/^(.*)-transition$/);if("paint"===r&&d&&c[d[1]]&&c[d[1]].transition)return _e({key:n,value:s,valueSpec:a.transition,style:i,styleSpec:a});const h=t.valueSpec||c[l];if(!h)return[new e.G(n,s,'unknown property "'.concat(l,'"'))];let p;if("string"===e.H(s)&&e.M(h)&&!h.tokens&&(p=/^{([^}]+)}$/.exec(s))){const t='`{ "type": "identity", "property": '.concat(p?JSON.stringify(p[1]):'"_"'," }`");return[new e.V(n,s,'"'.concat(l,'" does not support interpolation syntax\nUse an identity property function instead: ').concat(t,"."))]}const f=[];if("symbol"===t.layerType)"text-field"!==l||!i||i.glyphs||i.imports||f.push(new e.V(n,s,'use of "text-field" requires a style "glyphs" property')),"text-font"===l&&e.a0(e.Q(s))&&"identity"===e.K(s.type)&&f.push(new e.V(n,s,'"text-font" does not support identity functions'));else if("model"===t.layerType&&"paint"===r&&o&&o.layout&&o.layout.hasOwnProperty("model-id")&&e.M(h)&&(e.a1(h)||e.N(h))){const t=e.S(e.Q(s),h),r=t.value.expression||t.value._styleExpression.expression;r&&!e.X(r,["measure-light"])&&("model-emissive-strength"===l&&e.Y(r)&&e.W(r)||f.push(new e.V(n,s,"".concat(l," does not support measure-light expressions when the model layer source is vector tile or GeoJSON."))))}return f.concat(_e({key:t.key,value:s,valueSpec:h,style:i,styleSpec:a,expressionContext:"property",propertyType:r,propertyKey:l}))}function oe(e){return ie(e,"paint")}function ae(e){return ie(e,"layout")}function se(t){let r=[];const n=t.value,i=t.key,o=t.style,a=t.styleSpec;n.type||n.ref||r.push(new e.V(i,n,'either "type" or "ref" is required'));
2let s=e.K(n.type);const l=e.K(n.ref);if(n.id){const a=e.K(n.id);for(let s=0;s<t.arrayIndex;s++){const t=o.layers[s];e.K(t.id)===a&&r.push(new e.V(i,n.id,'duplicate layer id "'.concat(n.id,'", previously used at line ').concat(t.id.__line__)))}}if("ref"in n){let t;["type","source","source-layer","filter","layout"].forEach((t=>{t in n&&r.push(new e.V(i,n[t],'"'.concat(t,'" is prohibited for ref layers')))})),o.layers.forEach((r=>{e.K(r.id)===l&&(t=r)})),t?t.ref?r.push(new e.V(i,n.ref,"ref cannot reference another ref layer")):s=e.K(t.type):"string"==typeof l&&r.push(new e.V(i,n.ref,'ref layer "'.concat(l,'" not found')))}else if("background"!==s&&"sky"!==s&&"slot"!==s)if(n.source){const t=o.sources&&o.sources[n.source],a=t&&e.K(t.type);t?"vector"===a&&"raster"===s?r.push(new e.V(i,n.source,'layer "'.concat(n.id,'" requires a raster source'))):"raster"===a&&"raster"!==s?r.push(new e.V(i,n.source,'layer "'.concat(n.id,'" requires a vector source'))):"vector"!==a||n["source-layer"]?"raster-dem"===a&&"hillshade"!==s?r.push(new e.V(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"raster-array"!==a||["raster","raster-particle"].includes(s)?"line"!==s||!n.paint||!n.paint["line-gradient"]&&!n.paint["line-trim-offset"]||"geojson"===a&&t.lineMetrics?"raster-particle"===s&&"raster-array"!==a&&r.push(new e.V(i,n.source,'layer "'.concat(n.id,"\" requires a 'raster-array' source."))):r.push(new e.V(i,n,'layer "'.concat(n.id,'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.'))):r.push(new e.V(i,n.source,"raster-array source can only be used with layer type 'raster'.")):r.push(new e.V(i,n,'layer "'.concat(n.id,'" must specify a "source-layer"'))):r.push(new e.V(i,n.source,'source "'.concat(n.source,'" not found')))}else r.push(new e.V(i,n,'missing required property "source"'));return r=r.concat(K({key:i,value:n,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>_e({key:"".concat(i,".type"),value:n.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:n,objectKey:"type"}),filter:t=>re(e.J({layerType:s},t)),layout:t=>K({layer:n,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>ae(e.J({layerType:s},t))}}),paint:t=>K({layer:n,key:t.key,value:t.value,valueSpec:{},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":t=>oe(e.J({layerType:s,layer:n},t))}})}})),r}function le(t){const r=t.value,n=t.key,i=e.H(r);return"string"!==i?[new e.V(n,r,"string expected, ".concat(i," found"))]:[]}const ce={promoteId:function(t){let{key:r,value:n}=t;if("string"===e.H(n))return le({key:r,value:n});{const e=[];for(const t in n)e.push(...le({key:"".concat(r,".").concat(t),value:n[t]}));return e}}};function ue(t){const r=t.value,n=t.key,i=t.styleSpec,o=t.style;if(!r.type)return[new e.V(n,r,'"type" is required')];const a=e.K(r.type);let s=[];switch(["vector","raster","raster-dem","raster-array"].includes(a)&&(r.url||r.tiles||s.push(new e.G(n,r,'Either "url" or "tiles" is required.'))),a){case"vector":case"raster":case"raster-dem":case"raster-array":return s=s.concat(K({key:n,value:r,valueSpec:i["source_".concat(a.replace("-","_"))],style:t.style,styleSpec:i,objectElementValidators:ce})),s;case"geojson":if(s=K({key:n,value:r,valueSpec:i.source_geojson,style:o,styleSpec:i,objectElementValidators:ce}),r.cluster)for(const e in r.clusterProperties){const[t,i]=r.clusterProperties[e],o="string"==typeof t?[t,["accumulated"],["get",e]]:t;s.push(...$({key:"".concat(n,".").concat(e,".map"),value:i,expressionContext:"cluster-map"})),s.push(...$({key:"".concat(n,".").concat(e,".reduce"),value:o,expressionContext:"cluster-reduce"}))}return s;case"video":return K({key:n,value:r,valueSpec:i.source_video,style:o,styleSpec:i});case"image":return K({key:n,value:r,valueSpec:i.source_image,style:o,styleSpec:i});case"canvas":return[new e.V(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return te({key:"".concat(n,".type"),value:r.type,valueSpec:{values:de(i)},style:o,styleSpec:i})}}function de(e){return e.source.reduce(((t,r)=>{const n=e[r];return"enum"===n.type.type&&(t=t.concat(Object.keys(n.type.values))),t}),[])}function he(t){const r=t.value,n=t.styleSpec,i=n.light,o=t.style;let a=[];const s=e.H(r);if(void 0===r)return a;
2if("object"!==s)return a=a.concat([new e.V("light",r,"object expected, ".concat(s," found"))]),a;for(const l in r){const t=l.match(/^(.*)-transition$/),s=l.match(/^(.*)-use-theme$/);a=a.concat(s&&i[s[1]]?_e({key:l,value:r[l],valueSpec:{type:"string"},style:o,styleSpec:n}):t&&i[t[1]]&&i[t[1]].transition?_e({key:l,value:r[l],valueSpec:n.transition,style:o,styleSpec:n}):i[l]?_e({key:l,value:r[l],valueSpec:i[l],style:o,styleSpec:n}):[new e.V(l,r[l],'unknown property "'.concat(l,'"'))])}return a}function pe(t){const r=t.value;let n=[];if(!r)return n;const i=e.H(r);if("object"!==i)return n=n.concat([new e.V("light-3d",r,"object expected, ".concat(i," found"))]),n;const o=t.styleSpec,a=o["light-3d"],s=t.key,l=t.style,c=t.style.lights;for(const h of["type","id"])if(!(h in r))return n=n.concat([new e.V("light-3d",r,"missing property ".concat(h," on light"))]),n;if(r.type&&c)for(let h=0;h<t.arrayIndex;h++){const t=e.K(r.type),i=c[h];e.K(i.type)===t&&n.push(new e.V(s,r.id,'duplicate light type "'.concat(r.type,'", previously defined at line ').concat(i.id.__line__)))}const u="properties_light_".concat(r.type);if(!(u in o))return n=n.concat([new e.V("light-3d",r,"Invalid light type ".concat(r.type))]),n;const d=o[u];for(const h in r)if("properties"===h){const i=r[h],a=e.H(i);if("object"!==a)return n=n.concat([new e.V("properties",i,"object expected, ".concat(a," found"))]),n;for(const r in i)n=n.concat(d[r]?_e({key:r,value:i[r],valueSpec:d[r],style:l,styleSpec:o}):[new e.G(t.key,i[r],'unknown property "'.concat(r,'"'))])}else{const t=h.match(/^(.*)-transition$/),i=h.match(/^(.*)-use-theme$/);n=n.concat(i&&a[i[1]]?_e({key:h,value:r[h],valueSpec:{type:"string"},style:l,styleSpec:o}):t&&a[t[1]]&&a[t[1]].transition?_e({key:h,value:r[h],valueSpec:o.transition,style:l,styleSpec:o}):a[h]?_e({key:h,value:r[h],valueSpec:a[h],style:l,styleSpec:o}):[new e.G(h,r[h],'unknown property "'.concat(h,'"'))])}return n}function fe(t){const r=t.value,n=t.key,i=t.style,o=t.styleSpec,a=o.terrain;let s=[];const l=e.H(r);if(void 0===r)return s;if("null"===l)return s;if("object"!==l)return s=s.concat([new e.V("terrain",r,"object expected, ".concat(l," found"))]),s;for(const c in r){const t=c.match(/^(.*)-transition$/),n=c.match(/^(.*)-use-theme$/);s=s.concat(n&&a[n[1]]?_e({key:c,value:r[c],valueSpec:{type:"string"},style:i,styleSpec:o}):t&&a[t[1]]&&a[t[1]].transition?_e({key:c,value:r[c],valueSpec:o.transition,style:i,styleSpec:o}):a[c]?_e({key:c,value:r[c],valueSpec:a[c],style:i,styleSpec:o}):[new e.G(c,r[c],'unknown property "'.concat(c,'"'))])}if(r.source){const t=i.sources&&i.sources[r.source],o=t&&e.K(t.type);t?"raster-dem"!==o&&s.push(new e.V(n,r.source,"terrain cannot be used with a source of type ".concat(String(o),', it only be used with a "raster-dem" source type'))):s.push(new e.V(n,r.source,'source "'.concat(r.source,'" not found')))}else s.push(new e.V(n,r,'terrain is missing required property "source"'));return s}function me(t){const r=t.value,n=t.style,i=t.styleSpec,o=i.fog;let a=[];const s=e.H(r);if(void 0===r)return a;
2if("object"!==s)return a=a.concat([new e.V("fog",r,"object expected, ".concat(s," found"))]),a;for(const l in r){const t=l.match(/^(.*)-transition$/),s=l.match(/^(.*)-use-theme$/);a=a.concat(s&&o[s[1]]?_e({key:l,value:r[l],valueSpec:{type:"string"},style:n,styleSpec:i}):t&&o[t[1]]&&o[t[1]].transition?_e({key:l,value:r[l],valueSpec:i.transition,style:n,styleSpec:i}):o[l]?_e({key:l,value:r[l],valueSpec:o[l],style:n,styleSpec:i}):[new e.G(l,r[l],'unknown property "'.concat(l,'"'))])}return a}const ge={"*":()=>[],array:X,boolean:function(t){const r=t.value,n=t.key,i=e.H(r);return"boolean"!==i?[new e.V(n,r,"boolean expected, ".concat(i," found"))]:[]},number:J,color:function(t){const r=t.key,n=t.value,i=e.H(n);return"string"!==i?[new e.V(r,n,"color expected, ".concat(i," found"))]:null===e._.parseCSSColor(n)?[new e.V(r,n,'color expected, "'.concat(n,'" found'))]:[]},enum:te,filter:re,function:Q,layer:se,object:K,source:ue,model:e.a2,light:he,"light-3d":pe,terrain:fe,fog:me,string:le,formatted:function(e){return 0===le(e).length?[]:$(e)},resolvedImage:function(e){return 0===le(e).length?[]:$(e)},projection:function(t){const r=t.value,n=t.styleSpec,i=n.projection,o=t.style;let a=[];const s=e.H(r);if("object"===s)for(const e in r)a=a.concat(_e({key:e,value:r[e],valueSpec:i[e],style:o,styleSpec:n}));else"string"!==s&&(a=a.concat([new e.V("projection",r,"object or string expected, ".concat(s," found"))]));return a},import:function(t){const{value:r,styleSpec:i}=t,{data:a}=r,s=n(r,o);Object.defineProperty(s,"__line__",{value:r.__line__,enumerable:!1});let l=K(e.J({},t,{value:s,valueSpec:i.import}));return""===e.K(s.id)&&l.push(new e.V("".concat(t.key,".id"),s,"import id can't be an empty string")),a&&(l=l.concat(ve(a,i,{key:"".concat(t.key,".data")}))),l}};function _e(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t.value,i=t.valueSpec,o=t.styleSpec;if(i.expression&&e.a0(e.K(n)))return Q(t);if(i.expression&&e.O(e.Q(n)))return $(t);if(i.type&&ge[i.type]){const n=ge[i.type](t);return!0===r&&n.length>0&&"array"===e.H(t.value)?$(t):n}return K(e.J({},t,{valueSpec:i.type?o[i.type]:i}))}function ye(t){const r=t.value,n=t.key,i=le(t);return i.length||(-1===r.indexOf("{fontstack}")&&i.push(new e.V(n,r,'"glyphs" url must include a "{fontstack}" token')),-1===r.indexOf("{range}")&&i.push(new e.V(n,r,'"glyphs" url must include a "{range}" token'))),i}function ve(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.a3;return _e({key:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).key||"",value:t,valueSpec:r.$root,styleSpec:r,style:t,objectElementValidators:{glyphs:ye,"*":()=>[]}})}function be(t){return Re(ve(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.a3))}const xe=e=>Re(ue(e)),we=e=>Re(he(e)),Ae=e=>Re(pe(e)),Se=e=>Re(fe(e)),Ee=e=>Re(me(e)),Te=t=>Re(function(t){const r=t.value,n=t.style,i=t.styleSpec,o=i.snow;let a=[];const s=e.H(r);if(void 0===r)return a;
2if("object"!==s)return a=a.concat([new e.V("snow",r,"object expected, ".concat(s," found"))]),a;for(const l in r){const t=l.match(/^(.*)-transition$/);a=a.concat(t&&o[t[1]]&&o[t[1]].transition?_e({key:l,value:r[l],valueSpec:i.transition,style:n,styleSpec:i}):o[l]?_e({key:l,value:r[l],valueSpec:o[l],style:n,styleSpec:i}):[new e.G(l,r[l],'unknown property "'.concat(l,'"'))])}return a}(t)),Pe=t=>Re(function(t){const r=t.value,n=t.style,i=t.styleSpec,o=i.rain;let a=[];const s=e.H(r);if(void 0===r)return a;if("object"!==s)return a=a.concat([new e.V("rain",r,"object expected, ".concat(s," found"))]),a;for(const l in r){const t=l.match(/^(.*)-transition$/);a=a.concat(t&&o[t[1]]&&o[t[1]].transition?_e({key:l,value:r[l],valueSpec:i.transition,style:n,styleSpec:i}):o[l]?_e({key:l,value:r[l],valueSpec:o[l],style:n,styleSpec:i}):[new e.G(l,r[l],'unknown property "'.concat(l,'"'))])}return a}(t)),Ce=e=>Re(se(e)),Ie=e=>Re(re(e)),Me=e=>Re(oe(e)),ke=e=>Re(ae(e)),Oe=t=>Re(e.a2(t));function Re(e){return e.slice().sort(((e,t)=>e.line&&t.line?e.line-t.line:0))}function Le(t,r){let n=!1;if(r&&r.length)for(const i of r)i instanceof e.G?e.w(i.message):(t.fire(new e.y(new Error(i.message))),n=!0);return n}let De;class Ne extends e.E{constructor(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flat";super(),this._transitionable=new e.a4(De||(De=new e.a5({anchor:new e.a6(e.a3.light.anchor),position:new e.a7(e.a3.light.position),color:new e.a6(e.a3.light.color),intensity:new e.a6(e.a3.light.intensity)}))),this.setLight(t,r),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._validate(we,e,r)||(this._transitionable.setTransitionOrValue(e),this.id=t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,r,n){return(!n||!1!==n.validate)&&Le(this,t.call(be,e.l({value:r,style:{glyphs:!0,sprite:!0},styleSpec:e.a3})))}}let Fe=class extends e.E{constructor(t,r,n,i){super(),this.scope=n,this._transitionable=new e.a4(new e.a5({source:new e.a6(e.a3.terrain.source),exaggeration:new e.a6(e.a3.terrain.exaggeration)}),n,i),this._transitionable.setTransitionOrValue(t,i),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=r}get(){return this._transitionable.serialize()}set(e,t){this._transitionable.setTransitionOrValue(e,t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}getExaggeration(t){return this._transitioning.possiblyEvaluate(new e.a8(t)).get("exaggeration")}getAttenuationRange(){if(!this.isZoomDependent())return null;const t=this._transitionable._values.exaggeration;if(!t)return null;const r=t.value.expression;if(!r)return null;let n=-1,i=-1,o=1;for(const a of r.zoomStops)o=r.evaluate(new e.a8(a)),o>.01?(n=a,i=-1):i=a;return o<.01&&n>0&&i>n?[n,i]:null}isZoomDependent(){const t=this._transitionable._values.exaggeration;return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof e.a9}};const ze=45,je=65,Be=.05;function Ue(t,r,n,i){const o=e.ac(ze,je,n),[a,s]=Ve(t,i);let l=1-Math.min(1,Math.exp((r-a)/(s-a)*-6));return l*=l*l,l=Math.min(1,1.00747*l),l*o*t.alpha}function Ve(e,t){const r=.5/Math.tan(.5*t);return[e.range[0]+r,e.range[1]+r]}function qe(t,r,n,i,o){const a=e.ab.vec3.transformMat4([],[r,n,i],o.mercatorFogMatrix);return Ue(t,e.ab.vec3.length(a),o.pitch,o._fov)}function He(t,r,n,i,o,a,s){const l=[[n,i,0],[o,i,0],[o,a,0],[n,a,0]];let c=Number.MAX_VALUE,u=-Number.MAX_VALUE;for(const d of l){const t=e.ab.vec3.transformMat4([],d,r),n=e.ab.vec3.length(t);c=Math.min(c,n),u=Math.max(u,n)}return[Ue(t,c,s.pitch,s._fov),Ue(t,u,s.pitch,s._fov)]}class Ge extends e.E{constructor(t,r,n,i){super();const o=new e.a5({range:new e.a6(e.a3.fog.range),color:new e.a6(e.a3.fog.color),"color-use-theme":new e.a6({type:"string","property-type":"data-constant",default:"default"}),"high-color":new e.a6(e.a3.fog["high-color"]),"high-color-use-theme":new e.a6({type:"string","property-type":"data-constant",default:"default"}),"space-color":new e.a6(e.a3.fog["space-color"]),"space-color-use-theme":new e.a6({type:"string","property-type":"data-constant",default:"default"}
2),"horizon-blend":new e.a6(e.a3.fog["horizon-blend"]),"star-intensity":new e.a6(e.a3.fog["star-intensity"]),"vertical-range":new e.a6(e.a3.fog["vertical-range"])});this._transitionable=new e.a4(o,n,new Map(i)),this.set(t,i),this._transitioning=this._transitionable.untransitioned(),this._transform=r,this.properties=new e.ad(o),this.scope=n}get state(){const t=this._transform,r="globe"===t.projection.name,n=e.ae(t.zoom),i=this.properties.get("range"),o=[.5,3];return{range:r?[e.af(o[0],i[0],n),e.af(o[1],i[1],n)]:i,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._validate(Ee,t,n))return;const i=e.l({},t);for(const o of Object.keys(e.a3.fog))void 0===i[o]&&(i[o]=e.a3.fog[o].default);this._options=i,this._transitionable.setTransitionOrValue(this._options,r)}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const r=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.ac(ze,je,t))*r.a}getOpacityAtLatLng(t,r){return this._transform.projection.supportsFog?function(t,r,n){const i=e.aa.fromLngLat(r),o=n.elevation?n.elevation.getAtPointOrZero(i):0;return qe(t,i.x,i.y,o,n)}(this.state,t,r):0}getOpacityForTile(t){if(!this._transform.projection.supportsFog)return[1,1];const r=this._transform.calculateFogTileMatrix(t.toUnwrapped());return He(this.state,r,0,0,e.ag,e.ag,this._transform)}getOpacityForBounds(e,t,r,n,i){return this._transform.projection.supportsFog?He(this.state,e,t,r,n,i,this._transform):[1,1]}getFovAdjustedRange(e){return this._transform.projection.supportsFog?Ve(this.state,e):[0,1]}isVisibleOnFrustum(t){if(!this._transform.projection.supportsFog)return!1;const r=[4,5,6,7];for(const n of r){const r=t.points[n];let i;if(r[2]>=0)i=r;else{const o=t.points[n-4];i=e.ah(o,r,o[2]/(o[2]-r[2]))}if(qe(this.state,i[0],i[1],0,this._transform)>=Be)return!0}return!1}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,r,n){return(!n||!1!==n.validate)&&Le(this,t.call(be,e.l({value:r,style:{glyphs:!0,sprite:!0},styleSpec:e.a3})))}}let We,Ye,Ze,Ke,Xe=class extends e.E{constructor(t,r,n,i){super();const o=We||(We=new e.a5({density:new e.a6(e.a3.snow.density),intensity:new e.a6(e.a3.snow.intensity),color:new e.a6(e.a3.snow.color),opacity:new e.a6(e.a3.snow.opacity),vignette:new e.a6(e.a3.snow.vignette),"vignette-color":new e.a6(e.a3.snow["vignette-color"]),"center-thinning":new e.a6(e.a3.snow["center-thinning"]),direction:new e.a6(e.a3.snow.direction),"flake-size":new e.a6(e.a3.snow["flake-size"])}));this._transitionable=new e.a4(o,n,new Map(i)),this.set(t,i),this._transitioning=this._transitionable.untransitioned(),this.properties=new e.ad(o),this.scope=n}get state(){const t=this.properties.get("opacity"),r=this.properties.get("color"),n=this.properties.get("direction"),i=e.ai(n[0]),o=-Math.max(e.ai(n[1]),.01),a=[Math.cos(i)*Math.cos(o),Math.sin(i)*Math.cos(o),Math.sin(o)],s=this.properties.get("vignette"),l=this.properties.get("vignette-color");return l.a=s,{density:this.properties.get("density"),intensity:this.properties.get("intensity"),color:new e.aj(r.r,r.g,r.b,r.a*t),direction:a,centerThinning:this.properties.get("center-thinning"),flakeSize:this.properties.get("flake-size"),vignetteColor:l}}get(){return this._transitionable.serialize()}set(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._validate(Te,t,n))return;const i=e.l({},t);for(const o of Object.keys(e.a3.snow))void 0===i[o]&&(i[o]=e.a3.snow[o].default);this._options=i,this._transitionable.setTransitionOrValue(this._options,r)}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,r,n){return(!n||!1!==n.validate)&&Le(this,t.call(be,e.l({value:r,style:{glyphs:!0,sprite:!0},styleSpec:e.a3})))}},Je=class extends e.E{constructor(t,r,n,i){super();const o=Ye||(Ye=new e.a5({density:new e.a6(e.a3.rain.density),intensity:new e.a6(e.a3.rain.intensity),color:new e.a6(e.a3.rain.color),opacity:new e.a6(e.a3.rain.opacity),vignette:new e.a6(e.a3.rain.vignette),"vignette-color":new e.a6(e.a3.rain["vignette-color"]),"center-thinning":new e.a6(e.a3.rain["center-thinning"]),direction:new e.a6(e.a3.rain.direction),"droplet-size":new e.a6(e.a3.rain["droplet-size"]),"distortion-strength":new e.a6(e.a3.rain["distortion-strength"])}));this._transitionable=new e.a4(o,n,new Map(i)),this.set(t,i),this._transitioning=this._transitionable.untransitioned(),this.properties=new e.ad(o),this.scope=n}get state(){const t=this.properties.get("opacity"),r=this.properties.get("color"),n=this.properties.get("direction"),i=e.ai(n[0]),o=-Math.max(e.ai(n[1]),.01),a=[Math.cos(i)*Math.cos(o),Math.sin(i)*Math.cos(o),Math.sin(o)],s=this.properties.get("vignette-color");return s.a=this.properties.get("vignette"),{density:this.properties.get("density"),intensity:this.properties.get("intensity"),color:new e.aj(r.r,r.g,r.b,r.a*t),direction:a,centerThinning:this.properties.get("center-thinning"),droplet
2Size:this.properties.get("droplet-size"),distortionStrength:this.properties.get("distortion-strength"),vignetteColor:s}}get(){return this._transitionable.serialize()}set(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._validate(Pe,t,n))return;const i=e.l({},t);for(const o of Object.keys(e.a3.rain))void 0===i[o]&&(i[o]=e.a3.rain[o].default);this._options=i,this._transitionable.setTransitionOrValue(this._options,r)}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,r,n){return(!n||!1!==n.validate)&&Le(this,t.call(be,e.l({value:r,style:{glyphs:!0,sprite:!0},styleSpec:e.a3})))}};class Qe extends e.E{constructor(t,r,n,i){super(),this.scope=n,this._options=t,this.properties=new e.ad(r),this._transitionable=new e.a4(r,n,new Map(i)),this._transitionable.setTransitionOrValue(t.properties),this._transitioning=this._transitionable.untransitioned()}updateConfig(e){this._transitionable.setTransitionOrValue(this._options.properties,new Map(e))}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}get(){return this._options.properties=this._transitionable.serialize(),this._options}set(e,t){this._options=e,this._transitionable.setTransitionOrValue(e.properties,t)}shadowsEnabled(){return!!this.properties&&!0===this.properties.get("cast-shadows")}}class $e{constructor(e,t,r,n){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=r,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,n)}static createFromScreenPoints(t,r){let n,i;if(t instanceof e.P||"number"==typeof t[0]){const o=e.P.convert(t);n=[o],i=r.isPointAboveHorizon(o)}else{const o=e.P.convert(t[0]),a=e.P.convert(t[1]);n=[o,a],i=e.al(o,a).every((e=>r.isPointAboveHorizon(e)))}return new $e(n,r.getCameraPoint(),i,r)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.al(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const r=this.screenBounds[0],n=1===this.screenBounds.length?this.screenBounds[0].add(new e.P(1,1)):this.screenBounds[1],i=e.al(r,n,0,!1);return this.cameraPoint.y>n.y&&(this.cameraPoint.x>r.x&&this.cameraPoint.x<n.x?i.splice(3,0,this.cameraPoint):this.cameraPoint.x>=n.x?i[2]=this.cameraPoint:this.cameraPoint.x<=r.x&&(i[3]=this.cameraPoint)),e.am(i,t)}bufferedCameraGeometryGlobe(t){const r=this.screenBounds[0],n=1===this.screenBounds.length?this.screenBounds[0].add(new e.P(1,1)):this.screenBounds[1],i=e.al(r,n,t),o=this.cameraPoint.clone();switch(3*((o.y>r.y)+(o.y>n.y))+((o.x>r.x)+(o.x>n.x))){case 0:i[0]=o,i[4]=o.clone();break;case 1:i.splice(1,0,o);break;case 2:i[1]=o;break;case 3:i.splice(4,0,o);break;case 5:i.splice(2,0,o);break;case 6:i[3]=o;break;case 7:i.splice(3,0,o);break;case 8:i[2]=o}return i}containsTile(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=t.queryPadding/r._pixelsPerMercatorPixel+1,a=n?this._bufferedCameraMercator(o,r):this._bufferedScreenMercator(o,r);let s=t.tileID.wrap+(a.unwrapped?i:0);const l=a.polygon.map((r=>e.an(t.tileTransform,r,s)));if(!e.ao(l,0,0,e.ag,e.ag))return;s=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?i:0);const c=this.screenGeometryMercator.polygon.map((r=>e.ap(t.tileTransform,r,s))),u=c.map((t=>new e.P(t[0],t[1]))),d=r.getFreeCameraOptions().position||new e.aa(0,0,0),h=e.ap(t.tileTransform,d,s),p=c.map((t=>{const r=e.ab.vec3.sub(t,t,h);return e.ab.vec3.normalize(r,r),new e.aq(h,r)})),f=e.ar(t,1,r.zoom)*r._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:u,tilespaceRays:p,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(m=e.as(l),m.min.x=e.aw(m.min.x,0,e.ag),m.min.y=e.aw(m.min.y,0,e.ag),m.max.x=e.aw(m.max.x,0,e.ag),m.max.y=e.aw(m.max.y,0,e.ag),m),tile:t,t
2ileID:t.tileID,pixelToTileUnitsFactor:f};var m}_bufferedScreenMercator(e,t){const r=rt(e);if(this._screenRaycastCache[r])return this._screenRaycastCache[r];{let n;return n="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._screenRaycastCache[r]=n,n}}_bufferedCameraMercator(e,t){const r=rt(e);if(this._cameraRaycastCache[r])return this._cameraRaycastCache[r];{let n;return n="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map((e=>t.pointCoordinate3D(e))),unwrapped:!0},this._cameraRaycastCache[r]=n,n}}_projectAndResample(t,r){const n=function(t,r){const n=e.ab.mat4.multiply([],r.pixelMatrix,r.globeMatrix),i=[0,-e.ax,0,1],o=[0,e.ax,0,1],a=[0,0,0,1];e.ab.vec4.transformMat4(i,i,n),e.ab.vec4.transformMat4(o,o,n),e.ab.vec4.transformMat4(a,a,n);const s=new e.P(i[0]/i[3],i[1]/i[3]),l=new e.P(o[0]/o[3],o[1]/o[3]),c=e.au(t,s)&&i[3]<a[3],u=e.au(t,l)&&o[3]<a[3];if(!c&&!u)return null;const d=function(e,t,r){for(let n=1;n<e.length;n++){const i=tt(t.pointCoordinate3D(e[n-1]).x),o=tt(t.pointCoordinate3D(e[n]).x);if(r<0){if(i<o)return{idx:n,t:-i/(o-1-i)}}else if(o<i)return{idx:n,t:(1-i)/(o+1-i)}}return null}(t,r,c?-1:1);if(!d)return null;const{idx:h,t:p}=d;let f=h>1?et(t.slice(0,h),r):[],m=h<t.length?et(t.slice(h),r):[];f=f.map((t=>new e.P(tt(t.x),t.y))),m=m.map((t=>new e.P(tt(t.x),t.y)));const g=[...f];0===g.length&&g.push(m[m.length-1]);const _=e.af(g[g.length-1].y,(0===m.length?f[0]:m[0]).y,p);let y;return y=c?[new e.P(0,_),new e.P(0,0),new e.P(1,0),new e.P(1,_)]:[new e.P(1,_),new e.P(1,1),new e.P(0,1),new e.P(0,_)],g.push(...y),0===m.length?g.push(f[0]):g.push(...m),{polygon:g.map((t=>new e.aa(t.x,t.y))),unwrapped:!1}}(t,r);if(n)return n;const i=function(t,r){let n=!1,i=-1/0,o=0;for(let e=0;e<t.length-1;e++)t[e].x>i&&(i=t[e].x,o=e);for(let e=0;e<t.length-1;e++){const r=(o+e)%(t.length-1),i=t[r],a=t[r+1];Math.abs(i.x-a.x)>.5&&(i.x<a.x?(i.x+=1,0===r&&(t[t.length-1].x+=1)):(a.x+=1,r+1===t.length-1&&(t[0].x+=1)),n=!0)}const a=e.at(r.center.lng);return n&&a<Math.abs(a-1)&&t.forEach((e=>{e.x-=1})),{polygon:t,unwrapped:n}}(et(t,r).map((t=>new e.P(tt(t.x),t.y))),r);return{polygon:i.polygon.map((t=>new e.aa(t.x,t.y))),unwrapped:i.unwrapped}}}function et(t,r){return e.av(t,(e=>{const t=r.pointCoordinate3D(e);e.x=t.x,e.y=t.y}),1/256)}function tt(e){return e<0?1+e%1:e%1}function rt(e){return 100*e|0}function nt(t,r,i,o,s){const l=function(n,i){if(n)return s(n);if(i){if(t.url&&i.tiles&&t.tiles&&delete t.tiles,i.variants){if(!Array.isArray(i.variants))return s(new Error("variants must be an array"));for(const t of i.variants){if(null==t||"object"!=typeof t||t.constructor!==Object)return s(new Error("variant must be an object"));if(!Array.isArray(t.capabilities))return s(new Error("capabilities must be an array"));if(1===t.capabilities.length&&"meshopt"===t.capabilities[0]){i=e.l(i,t);break}}}const n=e.ay(e.l({},i,t),["tilejson","tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding","vector_layers","raster_layers","worldview_options","worldview_default","worldview"]);n.tiles=r.canonicalizeTileset(n,t.url),s(null,n)}},c=function(e,t,r){if(!e)return null;if(!t&&!r)return e;r=r||e.worldview_default;const n=Object.values(e.language||{});if(0===n.length)return null;const i=Object.values(e.worldview||{});if(0===i.length)return null;const o=n.every((e=>e===t)),a=i.every((e=>e===r));return o&&a?e:t in(e.language_options||{})||r in(e.worldview_options||{})?null:e.language_options&&e.worldview_options?e:null}(t.data,i,o);return c?e.q.frame((()=>l(null,c))):t.url?e.n(r.transformRequest(r.normalizeSourceURL(t.url,null,i,o),e.R.Source),l):e.q.frame((()=>{const{data:e}=t,r=n(t,a);l(null,r)}))}class it{constructor(t,r,n){this.bounds=e.az.convert(this.validateBounds(t)),this.minzoom=r||0,this.maxzoom=n||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const r=Math.pow(2,t.z),n=Math.floor(e.at(this.bounds.getWest())*r),i=Math.floor(e.aA(this.bounds.getNorth())*r),o=Math.ceil(e.at(this.bounds.getE
2ast())*r),a=Math.ceil(e.aA(this.bounds.getSouth())*r);return t.x>=n&&t.x<o&&t.y>=i&&t.y<a}}class ot extends e.E{constructor(t,r,n,i){if(super(),this.id=t,this.dispatcher=n,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.l(this,e.ay(r,["url","scheme","tileSize","promoteId"])),this._options=e.l({type:"vector"},r),this._collectResourceTiming=!!r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(i),this._tileWorkers={},this._deduped=new e.aB}load(t){this._loaded=!1,this.fire(new e.z("dataloading",{dataType:"source"}));const r=Array.isArray(this.map._language)?this.map._language.join():this.map._language,n=this.map.getWorldview();this._tileJSONRequest=nt(this._options,this.map._requestManager,r,n,((i,o)=>{if(this._tileJSONRequest=null,this._loaded=!0,i)r&&console.warn("Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ".concat(r)),n&&console.warn("Requested worldview strings must be a valid ISO alpha-2 code. Found: ".concat(n)),this.fire(new e.y(i));else if(o){if(e.l(this,o),this.hasWorldviews=!!o.worldview_options,o.worldview_default&&(this.worldviewDefault=o.worldview_default),o.vector_layers){this.vectorLayers=o.vector_layers,this.vectorLayerIds=[],this.localizableLayerIds=new Set;for(const e of o.vector_layers)this.vectorLayerIds.push(e.id),o.worldview&&o.worldview[e.source]&&this.localizableLayerIds.add(e.id)}o.bounds&&(this.tileBounds=new it(o.bounds,this.minzoom,this.maxzoom)),D(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.z("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.z("data",{dataType:"source",sourceDataType:"content"}))}t&&t(i)}))}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.aC(this.id,this.scope);this.load((()=>this.map.style.clearSource(t)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return e.l({},this._options)}loadTile(t,r){const n=t.tileID.canonical.url(this.tiles,this.scheme),i=this.map._requestManager.normalizeTileURL(n),o=this.map._requestManager.transformRequest(i,e.R.Tile),a=this.map.style?this.map.style.getLut(this.scope):null,s=a?{image:a.image.clone()}:null,l={request:o,data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,lut:s,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
2ype,source:this.id,scope:this.scope,pixelRatio:e.q.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:t.isExtraShadowCaster,tessellationStep:this.map._tessellationStep,scaleFactor:this.map.getScaleFactor()};if(this.hasWorldviews&&e.f(n)&&(l.worldview=this.map.getWorldview()||this.worldviewDefault,l.localizableLayerIds=this.localizableLayerIds),l.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=r:t.request=t.actor.send("reloadTile",l,c.bind(this));else if(t.actor=this._tileWorkers[i]=this._tileWorkers[i]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",l,c.bind(this),void 0,!0);else{const r=e.aD.call({deduped:this._deduped},l,((e,r)=>{e||!r?c.call(this,e):(l.data={cacheControl:r.cacheControl,expires:r.expires,rawData:r.rawData.slice(0)},t.actor&&t.actor.send("loadTile",l,c.bind(this),void 0,!0))}),!0);t.request={cancel:r}}function c(n,i){return delete t.request,t.aborted?r(null):n&&404!==n.status?r(n):(i&&i.resourceTiming&&(t.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&&i&&t.setExpiryData(i),t.loadVectorData(i,this.map.painter),e.aE(this.dispatcher),r(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.t
2ype,source:this.id,scope:this.scope})}unloadTile(e,t){e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope}),e.destroy()}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class at extends e.E{constructor(t,r,n,i){super(),this.id=t,this.dispatcher=n,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.l({type:"raster"},r),e.l(this,e.ay(r,["url","scheme","tileSize"]))}load(t){this._loaded=!1,this.fire(new e.z("dataloading",{dataType:"source"})),this._tileJSONRequest=nt(this._options,this.map._requestManager,null,null,((r,n)=>{this._tileJSONRequest=null,this._loaded=!0,r?this.fire(new e.y(r)):n&&(e.l(this,n),n.raster_layers&&(this.rasterLayers=n.raster_layers,this.rasterLayerIds=this.rasterLayers.map((e=>e.id))),n.bounds&&(this.tileBounds=new it(n.bounds,this.minzoom,this.maxzoom)),D(n.tiles),this.fire(new e.z("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.z("data",{dataType:"source",sourceDataType:"content"}))),t&&t(r)}))}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.aC(this.id,this.scope);this.load((()=>this.map.style.clearSource(t)))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return e.l({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,r){const n=e.q.devicePixelRatio>=2,i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),n,this.tileSize);t.request=e.o(this.map._requestManager.transformRequest(i,e.R.Tile),((n,i,o,a)=>(delete t.request,t.aborted?(t.state="unloaded",r(null)):n?(t.state="errored",r(n)):i?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:a}),t.setTexture(i,this.map.painter),t.state="loaded",e.aE(this.dispatcher),void r(null)):r(null))))}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t&&t()}unloadTile(t,r){t.texture&&t.texture instanceof e.T?(t.destroy(!0),t.texture&&t.texture instanceof e.T&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),r&&r()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class st extends at{constructor(t,r,n,i){super(t,r,n,i),this.type="raster-array",this.maxzoom=22,this._options=e.l({type:"raster-array"},r)}triggerRepaint(e){const t=this.map.painter._terrain,r=this.map.style.getSourceCache(this.id);t&&t.enabled&&r&&t._clearRenderCacheForTile(r.id,e.tileID),this.map.triggerRepaint()}loadTile(t,r){const n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),i=this.map._requestManager.transformRequest(n,e.R.Tile);t.requestParams=i,t.actor||(t.actor=this.dispatcher.getActor()),t.request=t.fetchHeader(void 0,((e,n,i,o)=>{if(delete t.request,t.aborted)return t.state="unloaded",r(null);if(e){if(20===e.code)return;return t.state="errored",r(e)}this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:i,expires:o}),t.state="empty",r(null)}))}unloadTile(t,r){const n=t.texture;n&&n instanceof e.T?(t.destroy(!0),this.map.painter.saveTileTexture(n)):(t.destroy(),t.flushQueues(),t._isHeaderLoaded=!1,delete t._mrt,delete t.textureDescriptor),t.fbo&&(t.fbo.destroy(),delete t.fbo),delete t.request,delete t.requestParams,delete t.neighboringTiles,t.state="unloaded"}prepareTile(t,r,n){t._isHeaderLoaded&&("empty"!==t.state&&(t.state="reloading"),t.fetchBand(r,n,((r,n)=>{if(r)return t.state="errored",this.fire(new e.y(r)),void this.triggerRepaint(t);n&&(t.setTexture(n,this.map.painter),t.state="loaded",this.triggerRepaint(t))})))}getInitialBand(e){if(!this.rasterLayers)return 0;const t=this.rasterLayers.find((t=>{let{id:r}=t;return r===e})),r=t&&t.fields,n=r&&r.bands&&r.bands;return n?n[0]:0}
2getTextureDescriptor(t,r,n){if(!t)return;const i=r.sourceLayer||this.rasterLayerIds&&this.rasterLayerIds[0];if(!i)return;let o=null;r instanceof e.aH?o=r.paint.get("raster-array-band"):r instanceof e.aI&&(o=r.paint.get("raster-particle-array-band"));const a=o||this.getInitialBand(i);if(null!=a)if(t.textureDescriptor){if(!t.updateNeeded(i,a)||n)return Object.assign({},t.textureDescriptor,{texture:t.texture})}else this.prepareTile(t,i,a)}}const lt={vector:ot,raster:at,"raster-dem":class extends at{constructor(t,r,n,i){super(t,r,n,i),this.type="raster-dem",this.maxzoom=22,this._options=e.l({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}loadTile(t,r){const n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function i(e,n){e&&(t.state="errored",r(e)),n&&(t.dem=n,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",r(null))}t.request=e.o(this.map._requestManager.transformRequest(n,e.R.Tile),function(n,o,a,s){if(delete t.request,t.aborted)t.state="unloaded",r(null);else if(n)t.state="errored",r(n);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:a,expires:s});const r=ImageBitmap&&o instanceof ImageBitmap&&e.t(),n=1-(o.width-e.aF(o.width))/2;n<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const l=r?o:e.q.getImageData(o,n),c={uid:t.uid,coord:t.tileID,source:this.id,scope:this.scope,rawImageData:l,encoding:this.encoding,padding:n};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",c,i.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const r=t.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,o=0===r.x?t.wrap-1:t.wrap,a=(r.x+1+n)%n,s=r.x+1===n?t.wrap+1:t.wrap,l={};return l[new e.aG(t.overscaledZ,o,r.z,i,r.y).key]={backfilled:!1},l[new e.aG(t.overscaledZ,s,r.z,a,r.y).key]={backfilled:!1},r.y>0&&(l[new e.aG(t.overscaledZ,o,r.z,i,r.y-1).key]={backfilled:!1},l[new e.aG(t.overscaledZ,t.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new e.aG(t.overscaledZ,s,r.z,a,r.y-1).key]={backfilled:!1}),r.y+1<n&&(l[new e.aG(t.overscaledZ,o,r.z,i,r.y+1).key]={backfilled:!1},l[new e.aG(t.overscaledZ,t.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new e.aG(t.overscaledZ,s,r.z,a,r.y+1).key]={backfilled:!1}),l}},"raster-array":st,geojson:class extends e.E{constructor(t,r,n,i){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=n.getActor(),this.setEventedParent(i),this._data=r.data,this._options=e.l({},r),this._collectResourceTiming=r.collectResourceTiming,void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),void 0!==r.minzoom&&(this.minzoom=r.minzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;const o=e.ag/this.tileSize;this.workerOptions=e.l({source:this.id,scope:this.scope,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*o,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*o,extent:e.ag,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?r.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,r.clusterMinPoints||2),extent:e.ag,radius:(void 0!==r.clusterRadius?r.clusterRadius:50)*o,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties,filter:r.filter,dynamic:r.dynamic},r.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(t){if(!this._options.dynamic)return this.fire(new e.y(new Error("Can't call updateData on a GeoJSON source with dynamic set to false.")));if("string"!=typeof t&&("Feature"===t.type&&(t={type:"FeatureCollection",features:[t]}),"FeatureCollection"!==t.type))return this.fire(new e.y(new Error("Data to update should be a feature or a feature collection.")));if(this._coalesce&&"string"!=typeof t&&"string"!=typeof this._data&&"FeatureCollection"===this._data.type){const e=new Map;
2for(const t of this._data.features)e.set(t.id,t);for(const r of t.features)e.set(r.id,r);this._data.features=[...e.values()]}else this._data=t;return this._updateWorkerData(!0),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterLeaves(e,t,r,n){return this.actor.send("geojson.getClusterLeaves",{source:this.id,scope:this.scope,clusterId:e,limit:t,offset:r},n),this}_updateWorkerData(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.z("dataloading",{dataType:"source"})),this._loaded=!1;const r=e.l({append:t},this.workerOptions);r.scope=this.scope;const n=this._data;"string"==typeof n?(r.request=this.map._requestManager.transformRequest(e.q.resolveURL(n),e.R.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(n),this._pendingLoad=this.actor.send("".concat(this.type,".loadData"),r,((r,n)=>{if(this._loaded=!0,this._pendingLoad=null,r)this.fire(new e.y(r));else{const r={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(r.resourceTiming=n.resourceTiming[this.id]),t&&(this._partialReload=!0),this.fire(new e.z("data",r)),this._partialReload=!1,this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(t),this._coalesce=!1)}))}loaded(){return this._loaded}loadTile(t,r){const n=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const i=this.map.style?this.map.style.getLut(this.scope):null,o=i?{image:i.image.clone()}:null,a=this._partialReload,s={type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,lut:o,scope:this.scope,pixelRatio:e.q.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,brightness:this.map.style&&this.map.style.getBrightness()||0,scaleFactor:this.map.getScaleFactor(),partial:a};t.request=this.actor.send(n,s,((e,i)=>a&&!i?(t.state="loaded",r(null)):(delete t.request,t.destroy(),t.aborted?r(null):e?r(e):(t.loadVectorData(i,this.map.painter,"reloadTile"===n),r(null)))),void 0,"loadTile"===n)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e,t){this.actor.send("removeTile",{uid:e.uid,type:this.t
2ype,source:this.id,scope:this.scope}),e.destroy()}onRemove(e){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.l({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends e.aJ{constructor(e,t,r,n){super(e,t,r,n),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const r of t.urls)this.urls.push(this.map._requestManager.transformRequest(r,e.R.Source).url);e.aK(this.urls,((t,r)=>{this._loaded=!0,t?this.fire(new e.y(t)):r&&(this.video=r,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",(()=>{this.map.triggerRepaint()})),this.map&&this.video.play(),this._finishLoading())}))}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const r=this.video.seekable;t<r.start(0)||t>r.end(0)?this.fire(new e.y(new e.V("sources.".concat(this.id),null,"Playback for this video can be set only between the ".concat(r.start(0)," and ").concat(r.end(0),"-second mark.")))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,r=t.gl;this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new e.T(t,this.video,r.RGBA8),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:e.aJ,model:class extends e.E{constructor(e,t,r,n){super(),this.id=e,this.type="model",this.models=[],this._loaded=!1,this._options=t}load(){const t=[];for(const r in this._options.models){const n=this._options.models[r],i=e.aM(this.map._requestManager.transformRequest(n.uri,e.R.Model).url).then((t=>{if(!t)return;const i=e.aN(t),o=new e.aO(r,n.position,n.orientation,i);o.computeBoundsAndApplyParent(),this.models.push(o)})).catch((t=>{this.fire(new e.y(new Error("Could not load model ".concat(r," from ").concat(n.uri,": ").concat(t.message))))}));t.push(i)}return Promise.allSettled(t).then((()=>{this._loaded=!0,this.fire(new e.z("data",{dataType:"source",sourceDataType:"metadata"}))})).catch((t=>{this.fire(new e.y(new Error("Could not load models: ".concat(t.message))))}))}onAdd(e){this.map=e,this.load()}hasTransition(){return!1}loaded(){return this._loaded}getModels(){return this.models}loadTile(e,t){}serialize(){return{type:"model"}}},"batched-model":class extends e.E{constructor(e,t,r,n){super(),this.type="batched-model",this.id=e,this.tileSize=512,this._options=t,this.tiles=this._options.tiles,this.maxzoom=t.maxzoom||19,this.minzoom=t.minzoom||0,this.roundZoom=!0,this.usedInConflation=!0,this.dispatcher=r,this.reparseOverscaled=!1,this.scheme="xyz",this._loaded=!1,this.setEventedParent(n)}onAdd(e){this.map=e,this.load()}load(t){this._loaded=!1,this.fire(new e.z("dataloading",{dataType:"source"}));const r=Array.isArray(this.map._language)?this.map._language.join():this.map._language,n=this.map.getWorldview();this._tileJSONRequest=nt(this._options,this.map._requestManager,r,n,((i,o)=>{this._tileJSONRequest=null,this._loaded=!0,i?(r&&console.warn("Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ".concat(r)),n&&2!==n.length&&console.warn("Requested worldview strings must be a valid ISO alpha-2 code. Found: ".concat(n)),this.fire(new e.y(i))):o&&(e.l(this,o),o.bounds&&(this.tileBounds=new it(o.bounds,this.minzoom,this.maxzoom)),D(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.z("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.z("data",{dataType:"source",sourceDataType:"content"}))),t&&t(i)}))}hasTransition(){return!1}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loaded(){return this._loaded}loadTile(t,r){const n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,e.R.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
2ype,source:this.id,scope:this.scope,showCollisionBoxes:this.map.showCollisionBoxes,isSymbolTile:t.isSymbolTile,brightness:this.map.style&&this.map.style.getBrightness()||0,lut:null,maxZoom:null,promoteId:null,pixelRatio:null,scaleFactor:null};if(t.actor&&"expired"!==t.state)if("loading"===t.state)t.reloadCallback=r;else{if(t.buckets){const e=Object.values(t.buckets);for(const t of e)t.dirty=!0;return void(t.state="loaded")}t.request=t.actor.send("reloadTile",i,o.bind(this))}else t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",i,o.bind(this),void 0,!0);function o(e,n){return t.aborted?r(null):e&&404!==e.status?r(e):(this.map._refreshExpiredTiles&&n&&t.setExpiryData(n),t.loadModelData(n,this.map.painter),t.state="loaded",void r(null))}}serialize(){return e.l({},this._options)}},canvas:class extends e.aJ{constructor(t,r,n,i){super(t,r,n,i),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((e=>!Array.isArray(e)||2!==e.length||e.some((e=>"number"!=typeof e))))||this.fire(new e.y(new e.V("sources.".concat(t),null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.y(new e.V("sources.".concat(t),null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.y(new e.V("sources.".concat(t),null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof HTMLCanvasElement||this.fire(new e.y(new e.V("sources.".concat(t),null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.y(new e.V("sources.".concat(t),null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.y(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(e){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const r=this.map.painter.context;this.texture?!t&&!this._playing||this.texture instanceof e.aL||this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.T(r,this.canvas,r.gl.RGBA8,{premultiply:!0}),this._prepareData(r)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},custom:class extends e.E{constructor(t,r,n,i){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=n,this._implementation=r,this.setEventedParent(i),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.y(new Error("Missing implementation for ".concat(this.id," custom source")))),this._implementation.loadTile||this.fire(new e.y(new Error("Missing loadTile implementation for ".concat(this.id," custom source")))),this._implementation.bounds&&(this.tileBounds=new it(this._implementation.bounds,this.minzoom,this.maxzoom)),r.update=this._update.bind(this),r.clearTiles=this._clearTiles.bind(this),r.coveringTiles=this._coveringTiles.bind(this),e.l(this,e.ay(r,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.ay(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.z("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.z("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this.map=t,this._loaded=!1,this.fire(new e.z("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:r,z:n}=e.canonical;return this._implementation.hasTile({x:t,y:r,z:n})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){const{x:r,y:n,z:i}=e.tileID.canonical,o=new AbortController;e.request=Promise.resolve(this._implementation.loadTile({x:r,y:n,z:i},{signal:o.signal})).then(function(r){return delete e.request,e.aborted?(e.state="unloaded",t(null)):void 0===r?(e.state="errored",t(null)):null===r?(this.loadTileData(e,{width:this.tileSize,height:this.tileSize,data:null}),e.state="loaded",t(null)):function(e){return e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof ImageBitmap||e instanceof HTMLImageElement}(r)?(this.loadTileData(e,r),e.state="loaded",void t(null)):(e.state="errored",t(new Error("Can't infer data type for ".concat(this.id,", only raster data supported at the moment"))))}.bind(this)).catch((r=>{20!==r.code&&(e.state="errored",t(r))})),e.request.cancel=()=>o.abort()}loadTileData(e,t){e.setTexture(t,this.map.painter)}
2unloadTile(t,r){if(t.texture&&t.texture instanceof e.T?(t.destroy(!0),t.texture&&t.texture instanceof e.T&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),this._implementation.unloadTile){const{x:e,y:r,z:n}=t.tileID.canonical;this._implementation.unloadTile({x:e,y:r,z:n})}r&&r()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t&&t()}hasTransition(){return!1}_coveringTiles(){return this.map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map((e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z})))}_clearTiles(){const t=e.aC(this.id,this.scope);this.map.style.clearSource(t)}_update(){this.fire(new e.z("data",{dataType:"source",sourceDataType:"content"}))}}},ct=function(t,r,n,i){const o=new lt[r.type](t,r,n,i);if(o.id!==t)throw new Error("Expected Source id to be ".concat(t," instead of ").concat(o.id));return e.aP(["load","abort","unload","serialize","prepare"],o),o};function ut(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const o=t.sourceCache.transform,a=t.sourceCache.tilesIn(e,t.has3DLayers,i);a.sort(pt);const s=[];for(const l of a){const e=l.tile.queryRenderedFeatures(t,l,r,n,o,i);Object.keys(e).length&&s.push({wrappedTileID:l.tile.tileID.wrapped().key,queryResults:e})}return 0===s.length?{}:function(e){const t={},r={};for(const n of e){const e=n.queryResults,i=n.wrappedTileID,o=r[i]=r[i]||{};for(const r in e){const n=e[r],i=o[r]=o[r]||{},a=t[r]=t[r]||[];for(const e of n)i[e.featureIndex]||(i[e.featureIndex]=!0,a.push(e))}}return t}(s)}function dt(e,t,r,n,i){const o={},a=n.queryRenderedSymbols(e),s=[];for(const l of Object.keys(a).map(Number))s.push(i[l]);s.sort(pt);for(const l of s){const e=l.featureIndex.lookupSymbolFeatures(a[l.bucketInstanceId],l.bucketIndex,l.sourceLayerIndex,t,r);for(const t in e){const r=o[t]=o[t]||[],n=e[t];n.sort(((e,t)=>{const r=l.featureSortOrder;if(r){const n=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-n}return t.featureIndex-e.featureIndex}));for(const e of n)r.push(e)}}return o}function ht(e,t){const r=e.getRenderableIds().map((t=>e.getTileByID(t))),n=[],i={};for(let o=0;o<r.length;o++){const e=r[o],a=e.tileID.canonical.key;i[a]||(i[a]=!0,e.querySourceFeatures(n,t))}return n}function pt(e,t){const r=e.tileID,n=t.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}function ft(e,t){const r={};if(!t)return r;for(const n of e){const e=n.layerIds.map((e=>t.getLayer(e))).filter(Boolean);if(0!==e.length){n.layers=e,n.stateDependentLayerIds&&(n.stateDependentLayers=n.stateDependentLayerIds.map((t=>e.filter((e=>e.id===t))[0])));for(const t of e)r[t.fqid]=n}}return r}const mt=32,gt=33,_t=new Uint16Array(8184);for(let n=0;n<2046;n++){let e=n+2,t=0,r=0,i=0,o=0,a=0,s=0;for(1&e?i=o=a=mt:t=r=s=mt;(e>>=1)>1;){const n=t+i>>1,l=r+o>>1;1&e?(i=t,o=r,t=a,r=s):(t=i,r=o,i=a,o=s),a=n,s=l}const l=4*n;_t[l+0]=t,_t[l+1]=r,_t[l+2]=i,_t[l+3]=o}const yt=new Uint16Array(2178),vt=new Uint8Array(1089),bt=new Uint16Array(1089);function xt(e){return 0===e?-.03125:32===e?.03125:0}const wt={type:2,extent:e.ag,loadGeometry:()=>[[new e.P(0,0),new e.P(e.ag+1,0),new e.P(e.ag+1,e.ag+1),new e.P(0,e.ag+1),new e.P(0,0)]]};class At{constructor(t,r,n,i,o){this.tileID=t,this.uid=e.aV(),this.uses=0,this.tileSize=r,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=o,i&&i.style&&(this._lastUpdatedBrightness=i.style.getBrightness()),this.expiredRequestCount=0,this.state="loading",i&&i.transform&&(this.projection=i.transform.projection)}registerFadeDuration(t){const r=t+this.timeAdded;r<e.q.now()||this.fadeEndTime&&r<this.fadeEndTime||(this.fadeEndTime=r)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=e.aQ(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(t,r,n){if(this.unloadVectorData(),this.state="loaded",t){t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=ft(t.buckets,r.style),this.hasSymbolBuckets=!1;for(const t in this.buckets){const r=this.buckets[t];if(r instanceof e.aX){if(this.hasSymbolBuckets=!0,!n)break;r.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const t in this.buckets){const r=this.buckets[t];if(r instanceof e.aX&&r.hasRTLText){this.hasRTLText=!0,e.aY();break}}this.queryPadding=0;for(const e in this.buckets){const t=this.buckets[e],n=r.style.getOwnLayer(e);if(!n)continue;const i=n.queryRadius(t);this.queryPadding=Math.max(this.queryPadding,i)}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),t.lineAtlas&&(this.lineAtlas=t.lineAtlas),this._lastUpdatedBrightness=t.brightness}else this.collisionBoxArray=new e.aW}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}loadModelData(e,t,r){e&&(e.resourceTiming&&(this.resourceTiming=e.resourceTiming),this.buckets=i(i({},this.buckets),ft(e.buckets,t.style)),e.featureIndex&&(this.latestFeatureIndex=e.featureIndex))}getBucket(e){return this.buckets[e.fqid]}upload(t){for(const e in this.buckets){const r=this.buckets[e];r.uploadPending()&&r.upload(t)}const r=t.gl,n=this.imageAtlas;if(n&&!n.uploaded){const i=!!Object.keys(n.patternPositions).length;this.imageAtlasTexture=new e.T(t,n.image,r.RGBA8,{useMipmap:i}),this.imageAtlas.uploaded=!0}this.glyphAtlasImage&&(this.glyphAtlasTexture=new e.T(t,this.glyphAtlasImage,r.R8),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new e.T(t,this.lineAtlas.image,r.R8),this.lineAtlas.uploaded=!0)}prepare(e,t,r){if(this.imageAtlas&&this.imageAtlasTexture&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture,r),!t||!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData)return;const n=t.style.getBrightness();(this._lastUpdatedBrightness||n)&&(this._lastUpdatedBrightness&&n&&Math.abs(this._lastUpdatedBrightness-n)<.001||(this.updateBuckets(t,this._lastUpdatedBrightness!==n),this._lastUpdatedBrightness=n))}queryRenderedFeatures(t,r,n,i,o,a){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData&&!this.latestFeatureIndex.is3DTile)return{};const s=function(t,r){const n=e.ab.mat4.fromScaling([],[.5*t.width,.5*-t.height,1]);return e.ab.mat4.translate(n,n,[1,-1,0]),e.ab.mat4.multiply(n,n,t.calculateProjMatrix(r.toUnwrapped())),Float32Array.from(n)}(o,this.tileID);return this.latestFeatureIndex.query(t,{tilespaceGeometry:r,pixelPosMatrix:s,transform:i,availableImages:n,tileTransform:this.tileTransform})}querySourceFeatures(t,r){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const i=n.loadVTLayers(),o=r?r.sourceLayer:"",a=i._geojsonTileLayer||i[o];if(!a)return;const s=e.aZ(r&&r.filter),{z:l,x:c,y:u}=this.tileID.canonical,d={z:l,x:c,y:u};for(let h=0;h<a.length;h++){const r=a.feature(h);if(s.needGeometry){const t=e.a_(r,!0);
2if(!s.filter(new e.a8(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new e.a8(this.tileID.overscaledZ),r))continue;const i=n.getId(r,o),p=new e.a$(r,l,c,u,i);p.tile=d,t.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){const r=this.expirationTime;if(t.cacheControl){const r=e.b0(t.cacheControl);r["max-age"]&&(this.expirationTime=Date.now()+1e3*r["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){const e=Date.now();let t=!1;if(this.expirationTime>e)t=!1;else if(r)if(this.expirationTime<r)t=!0;else{const n=this.expirationTime-r;n?this.expirationTime=e+Math.max(n,3e4):t=!0}else t=!0;t?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}refreshFeatureState(e){this.latestFeatureIndex&&(this.latestFeatureIndex.rawTileData||this.latestFeatureIndex.is3DTile)&&e&&this.updateBuckets(e)}updateBuckets(t,r){if(!this.latestFeatureIndex)return;if(!t.style)return;const n=this.latestFeatureIndex.loadVTLayers(),i=t.style.listImages(),o=t.style.getBrightness();for(const a in this.buckets){if(!t.style.hasLayer(a))continue;const s=this.buckets[a],l=s.layers[0],c=l.sourceLayer||"_geojsonTileLayer",u=n[c],d=t.style.getLayerSourceCache(l);let h={};d&&(h=d._state.getState(c,void 0));const p=this.imageAtlas&&this.imageAtlas.patternPositions||{},f=Object.keys(h).length>0&&!r;f&&!s.stateDependentLayers.length&&!r||s.update(h,u,i,p,f?s.stateDependentLayers:s.layers,r,o),(s instanceof e.b1||s instanceof e.b2)&&t._terrain&&t._terrain.enabled&&d&&s.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(d.id,this.tileID);const m=t&&t.style&&t.style.getOwnLayer(a);m&&(this.queryPadding=Math.max(this.queryPadding,m.queryRadius(s)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<e.q.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(t){this.symbolFadeHoldUntil=e.q.now()+t}setTexture(t,r){const n=r.context,i=n.gl;this.texture=this.texture||r.getTileTexture(t.width),this.texture&&this.texture instanceof e.T?this.texture.update(t):(this.texture=new e.T(n,t,i.RGBA8,{useMipmap:!0}),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE))}setDependencies(e,t){const r={};for(const n of t)r[n]=!0;this.dependencies[e]=r}hasDependency(e,t){for(const r of e){const e=this.dependencies[r];if(e)for(const r of t)if(e[r])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(t,r){if(!r||"mercator"===r.name||this._tileDebugBuffer)return;const n=e.b3(wt,this.tileID.canonical,this.tileTransform)[0],i=new e.b4,o=new e.b5;for(let e=0;e<n.length;e++){const{x:t,y:r}=n[e];i.emplaceBack(t,r),o.emplaceBack(e)}o.emplaceBack(0),this._tileDebugIndexBuffer=t.createIndexBuffer(o),this._tileDebugBuffer=t.createVertexBuffer(i,e.b6.members),this._tileDebugSegments=e.b7.simpleSegment(0,0,i.length,o.length)}_makeTileBoundsBuffers(t,r){if(this._tileBoundsBuffer||!r||"mercator"===r.name)return;const n=e.b3(wt,this.tileID.canonical,this.tileTransform)[0];let i,o;if(this.isRaster){const t=function(t,r){const n=e.aQ(t,r),i=Math.pow(2,t.z);for(let u=0;u<gt;u++)for(let o=0;o<gt;o++){const a=e.aR((t.x+(o+xt(o))/mt)/i),s=e.aS((t.y+(u+xt(u))/mt)/i),l=r.project(a,s),c=u*gt+o;yt[2*c+0]=Math.round((l.x*n.scale-n.x)*e.ag),yt[2*c+1]=Math.round((l.y*n.scale-n.y)*e.ag)}vt.fill(0),bt.fill(0);for(let e=2045;e>=0;e--){const t=4*e,r=_t[t+0],n=_t[t+1],i=_t[t+2],o=_t[t+3],a=r+i>>1,s=n+o>>1,l=a+s-n,c=s+r-a,u=n*gt+r,d=o*gt+i,h=s*gt+a,p=Math.hypot((yt[2*u+0]+yt[2*d+0])/2-yt[2*h+0],(yt[2*u+1]+yt[2*d+1])/2-yt[2*h+1])>=16;vt[h]=vt[h]||(p?1:0),e<1022&&(vt[h]=vt[h]||vt[(n+c>>1)*gt+(r+l>>1)]||vt[(o+c>>1)*gt+(i+l>>1)])}const o=new e.aT,a=new e.aU;let s=0;function l(t,r){const n=r*gt+t;return 0===bt[n]&&(o.emplaceBack(yt[2*n+0],yt[2*n+1],t*e.ag/mt,r*e.ag/mt),bt[n]=++s),bt[n]-1}function c(e,t,r,n,i,o){const s=e+r>>1,u=t+n>>1;if(Math.abs(e-i)+Math.abs(t-o)>
vendor: 4,971 bytes, line 2
21&&vt[u*gt+s])c(i,o,e,t,s,u),c(r,n,i,o,s,u);else{const s=l(e,t),c=l(r,n),u=l(i,o);a.emplaceBack(s,c,u)}}return c(0,0,mt,mt,mt,0),c(mt,mt,0,0,0,mt),{vertices:o,indices:a}}(this.tileID.canonical,r);i=t.vertices,o=t.indices}else{i=new e.aT,o=new e.aU;for(const{x:e,y:r}of n)i.emplaceBack(e,r,0,0);const t=e.b8(i.int16,void 0,4);for(let e=0;e<t.length;e+=3)o.emplaceBack(t[e],t[e+1],t[e+2])}this._tileBoundsBuffer=t.createVertexBuffer(i,e.b9.members),this._tileBoundsIndexBuffer=t.createIndexBuffer(o),this._tileBoundsSegments=e.b7.simpleSegment(0,0,i.length,o.length)}_makeGlobeTileDebugBuffers(t,r){const n=r.projection;if(!n||"globe"!==n.name||r.freezeTileCoverage)return;const i=this.tileID.canonical,o=e.ba(i,r),a=e.bb(o),s=e.ae(r.zoom);let l;s>0&&(l=e.ab.mat4.invert(new Float64Array(16),r.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(t,i,r,a,l,s),this._makeGlobeTileDebugTextBuffer(t,i,r,a,l,s)}_globePoint(t,r,n,i,o,a,s){let l=e.bc(t,r,n);if(a){const o=1<<n.z,c=e.at(i.center.lng),u=e.aA(i.center.lat),d=(n.x+.5)/o-c;let h=0;d>.5?h=-1:d<-.5&&(h=1);let p=(t/e.ag+n.x)/o+h,f=(r/e.ag+n.y)/o;p=(p-c)*i._pixelsPerMercatorPixel+c,f=(f-u)*i._pixelsPerMercatorPixel+u;const m=[p*i.worldSize,f*i.worldSize,0];e.ab.vec3.transformMat4(m,m,a),l=e.bd(l,m,s)}return e.ab.vec3.transformMat4(l,l,o)}_makeGlobeTileDebugBorderBuffer(t,r,n,i,o,a){const s=new e.b4,l=new e.b5,c=new e.be,u=(e,t,u,d,h)=>{const p=(u-e)/(h-1),f=(d-t)/(h-1),m=s.length;for(let g=0;g<h;g++){const u=e+g*p,d=t+g*f;s.emplaceBack(u,d);const h=this._globePoint(u,d,r,n,i,o,a);c.emplaceBack(h[0],h[1],h[2]),l.emplaceBack(m+g)}},d=e.ag;u(0,0,d,0,16),u(d,0,d,d,16),u(d,d,0,d,16),u(0,d,0,0,16),this._tileDebugIndexBuffer=t.createIndexBuffer(l),this._tileDebugBuffer=t.createVertexBuffer(s,e.b6.members),this._globeTileDebugBorderBuffer=t.createVertexBuffer(c,e.bf.members),this._tileDebugSegments=e.b7.simpleSegment(0,0,s.length,l.length)}_makeGlobeTileDebugTextBuffer(t,r,n,i,o,a){const s=e.ag/4,l=new e.b4,c=new e.aU,u=new e.be,d=25;c.reserve(32),l.reserve(d),u.reserve(d);const h=(e,t)=>d*e+t;for(let e=0;e<d;e++){const t=e*s;for(let e=0;e<d;e++){const c=e*s;l.emplaceBack(c,t);const d=this._globePoint(c,t,r,n,i,o,a);u.emplaceBack(d[0],d[1],d[2])}}for(let e=0;e<4;e++)for(let t=0;t<4;t++){const r=h(e,t),n=h(e,t+1),i=h(e+1,t),o=h(e+1,t+1);c.emplaceBack(r,n,i),c.emplaceBack(i,n,o)}this._tileDebugTextIndexBuffer=t.createIndexBuffer(c),this._tileDebugTextBuffer=t.createVertexBuffer(l,e.b6.members),this._globeTileDebugTextBuffer=t.createVertexBuffer(u,e.bf.members),this._tileDebugTextSegments=e.b7.simpleSegment(0,0,d,32)}destroy(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&(this.imageAtlasTexture.destroy(),delete this.imageAtlasTexture),this.glyphAtlasTexture&&(this.glyphAtlasTexture.destroy(),delete this.glyphAtlasTexture),this.lineAtlasTexture&&(this.lineAtlasTexture.destroy(),delete this.lineAtlasTexture),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),!t&&this.texture&&this.texture instanceof e.T&&(this.texture.destroy(),delete this.texture),this.hillshadeFBO&&(this.hillshadeFBO.destroy(),delete this.hillshadeFBO),this.dem&&delete this.dem,this.neighboringTiles&&delete this.neighboringTiles,this.demTexture&&(this.demTexture.destroy(),delete this.demTexture),this.rasterParticleState&&(this.rasterParticleState.destroy(),delete this.rasterParticleState),this.latestFeatureIndex=null,this.state="unloaded"}}e.bg.setPbf(e.bh);class St extends At{constructor(e,t,r,n,i){super(e,t,r,n,i),this._workQueue=[],this._fetchQueue=[],this._isHeaderLoaded=!1}setTexture(t,r){const n=r.context,i=n.gl;this.texture=this.texture||r.getTileTexture(t.width),this.texture&&this.texture instanceof e.T?this.texture.update(t,{premultiply:!1}):this.texture=new e.T(n,t,i.RGBA8,{premultiply:!1})}flushQueues(){for(;this._workQueue.length;)this._workQueue.pop()();for(;this._fetchQueue.length;)this._fetchQueue.pop()()}fetchHeader(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16384,r=arguments.length>1?arguments[1]:void 0;const n=this._mrt=new e.bg(30),i=Object.assign({}
2,this.requestParams,{headers:{Range:"bytes=0-"+(t-1)}});return this.entireBuffer=null,this.request=e.bi(i,((e,i,o,a)=>{if(e)r(e);else try{const e=n.getHeaderLength(i);if(e>t)return void(this.request=this.fetchHeader(e,r));n.parseHeader(i),this._isHeaderLoaded=!0;let s=0;for(const t of Object.values(n.layers))s=Math.max(s,t.dataIndex[t.dataIndex.length-1].last_byte);i.byteLength>=s&&(this.entireBuffer=i),r(null,this.entireBuffer||i,o,a)}catch(e){r(e)}})),this.request}fetchBand(t,r,n){const i=this._mrt;if(!this._isHeaderLoaded||!i)return void n(new Error("Tile header is not ready"));const o=this.actor;if(!o)return void n(new Error("Can't fetch tile band without an actor"));let a;const s=(e,i)=>{a.complete(e,i),e?n(e):(this.updateTextureDescriptor(t,r),n(null,this.textureDescriptor&&this.textureDescriptor.img))},l=(e,t)=>{if(e)return n(e);const r=o.send("decodeRasterArray",{buffer:t,task:a},s,void 0,!0);this._workQueue.push((()=>{r&&r.cancel(),a.cancel()}))},c=i.getLayer(t);if(!c)return void n(new Error('Unknown sourceLayer "'.concat(t,'"')));if(c.hasDataForBand(r))return this.updateTextureDescriptor(t,r),void n(null,this.textureDescriptor?this.textureDescriptor.img:null);const u=c.getDataRange([r]);if(a=i.createDecodingTask(u),!a||a.tasks.length)if(this.flushQueues(),this.entireBuffer)l(null,this.entireBuffer.slice(u.firstByte,u.lastByte+1));else{const t=Object.assign({},this.requestParams,{headers:{Range:"bytes=".concat(u.firstByte,"-").concat(u.lastByte)}}),r=e.bi(t,l);this._fetchQueue.push((()=>{r.cancel(),a.cancel()}))}else n(null)}updateNeeded(e,t){return(!this.textureDescriptor||this.textureDescriptor.band!==t||this.textureDescriptor.layer!==e)&&"errored"!==this.state}updateTextureDescriptor(t,r){if(!this._mrt)return;const n=this._mrt.getLayer(t);if(!n||!n.hasBand(r)||!n.hasDataForBand(r))return;const{bytes:i,tileSize:o,buffer:a,offset:s,scale:l}=n.getBandView(r),c=o+2*a,u={data:i,width:c,height:c},d=this.texture;d&&d instanceof e.T&&d.update(u,{premultiply:!1}),this.textureDescriptor={layer:t,band:r,img:u,buffer:a,offset:s,tileSize:o,format:n.pixelFormat,mix:[l,256*l,65536*l,16777216*l]}}}class Et{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){const n=e.wrapped().key;void 0===this.data[n]&&(this.data[n]=[]);const i={value:t,timeout:void 0};if(void 0!==r&&(i.timeout=setTimeout((()=>{this.remove(e,i)}),r)),this.data[n].push(i),this.order.push(n),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const r=e.wrapped().key,n=void 0===t?0:this.data[r].indexOf(t),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&&clearTimeout(i.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const r in this.data)for(const n of this.data[r])e(n.value)||t.push(n);for(const r of t)this.remove(r.value.tileID,r)}}class Tt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,r,n){const i=String(r);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][i]=this.stateChanges[t][i]||{},e.l(this.stateChanges[t][i],n),null===this.deletedStates[t]){this.deletedStates[t]={};for(const e in this.state[t])e!==i&&(this.deletedStates[t][e]=null)}else if(this.deletedStates[t]&&null===this.deletedStates[t][i]){this.deletedStates[t][i]={};for(const e in this.state[t][i])n[e]||(this.deletedStates[t][i][e]=null)}else for(const e in n)this.deletedStates[t]&&this.deletedStates[t][i]&&null===this.deletedStates[t][i][e]&&delete this.deletedStates[t][i][e]}removeFeatureState(e,t,r){if(null===this.deletedStates[e])return;const n=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},r&&void 0!==t)null!==this.deletedStates[e][n]&&(this.deletedStates[e][n]=this.deletedStates[e][n]||{},this.deletedStates[e][n][r]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][n])for(r in this.deletedStates[e][n]={},this.stateChanges[e][n])this.deletedStates[e][n][r]=null;else this.deletedStates[e][n]=null;else this.deletedStates[e]=null}getState(t,r){const n=this.state[t]||{},i=this.stateChanges[t]||{},o=this.deletedStates[t];if(null===o)return{};if(void 0!==r){const t=String(r),a=e.l({},n[t],i[t]);if(o){const e=o[r];if(null===e)return{};for(const t in e)delete a[t]}return a}const a=e.l({},n,i);if(o)for(const e in o)delete a[e];return a}initializeTileState(e,t){e.refreshFeatureState(t)}coalesceChanges(t,r){const n={};for(const i in this.stateChanges){this.state[i]=this.state[i]||{};const t={};for(const r in this.stateChanges[i])this.state[i][r]||(this.state[i][r]={}),e.l(this.state[i][r],this.stateChanges[i][r]),t[r]=this.state[i][r];n[i]=t}for(const i in this.deletedStates){this.state[i]=this.state[i]||{};const t={};if(null===this.deletedStates[i])for(const e in this.state[i])t[e]={},this.state[i][e]={};else for(const e in this.deletedStates[i]){if(null===this.deletedStates[i][e])this.state[i][e]={};else if(this.state[i][e])for(const t of Object.keys(this.deletedStates[i][e]))delete this.state[i][e][t];t[e]=this.state[i][e]}n[i]=n[i]||{},e.l(n[i],t)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const e in t)t[e].refreshFeatureState(r)}}class Pt extends e.E{constructor(e,t,r){super(),this.id=e,this._onlySymbols=r,t.on("data",(e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))})),t.on("error",(()=>{this._sourceErrored=!0})),this._source=t,this._tiles={},this._cache=new Et(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={}
2,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this.castsShadows=!1,this.tileCoverLift=0,this._coveredTiles={},this._shadowCasterTiles={},this._state=new Tt,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"raster-array"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,e.isExtraShadowCaster=this._shadowCasterTiles[e.tileID.key],this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e)}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e)}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const r=this._tiles[t];r.upload(e),r.prepare(this.map.style.imageManager,this.map?this.map.painter:null,this._source.scope)}}getIds(){return e.bj(this._tiles).map((e=>e.tileID)).sort(Ct).map((e=>e.key))}getRenderableIds(t,r){const n=[];for(const e in this._tiles)this._isIdRenderable(+e,t,r)&&n.push(this._tiles[e]);return t?n.sort(((t,r)=>{const n=t.tileID,i=r.tileID,o=new e.P(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),a=new e.P(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-i.overscaledZ||a.y-o.y||a.x-o.x})).map((e=>e.tileID.key)):n.map((e=>e.tileID)).sort(Ct).map((e=>e.key))}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t,r){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())&&(r||!this._shadowCasterTiles[e])}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const r=this._tiles[e];r&&("loading"!==r.state&&(r.state=t),this._loadTile(r,this._tileLoaded.bind(this,r,e,t)))}_tileLoaded(t,r,n,i){if(i)if(t.state="errored",404!==i.status)this._source.fire(new e.y(i,{tile:t}));else{if(this._source.fire(new e.z("data",{dataType:"source",sourceDataType:"error",sourceId:this._source.id,tile:t})),!(t.tileID.key in this._loadedParentTiles))return;if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform)}else t.timeAdded=e.q.now(),"expired"===n&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),"raster-dem"===this._source.type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.z("data",{dataType:"source",tile:t,coord:t.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let n=0;n<t.length;n++){const i=t[n];if(e.neighboringTiles&&e.neighboringTiles[i]){const t=this.getTileByID(i);r(e,t),r(t,e)}}function r(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x;const n=t.tileID.canonical.y-e.tileID.canonical.y,i=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===r&&0===n||Math.abs(n)>1||(Math.abs(r)>1&&(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&&(r-=i)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,n),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}
2getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,r,n){for(const i in this._tiles){let o=this._tiles[i];if(n[i]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>r)continue;let a=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(a=e)}let s=a;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){n[a.key]=a;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const r=this._loadedParentTiles[e.key];return r&&r.tileID.overscaledZ>=t?r:null}for(let r=e.overscaledZ-1;r>=t;r--){const t=e.scaledTo(r),n=this._getLoadedTile(t);if(n)return n}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const r=Math.ceil(e.width/t)+1,n=Math.ceil(e.height/t)+1,i=Math.floor(r*n*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,i):i,a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(a)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const r in this._tiles){const n=this._tiles[r];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+t),e[n.tileID.key]=n}this._tiles=e;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(+t,this._tiles[t])}}update(t,r,n,i){if(this.transform=t,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;this.updateCacheSize(t,r),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._shadowCasterTiles={},this._coveredTiles={};const o="batched-model"===this._source.type;let a,s=this._source.maxzoom;const l=this.map&&this.map.painter?this.map.painter._terrain:null;if(l&&l.sourceCache===this&&l.attenuationRange()){const e=l.attenuationRange()[0],t=Math.floor(e)-Math.log2(l.getDemUpscale());s>t&&(s=t)}if(this.used||this.usedForTerrain){if(this._source.tileID)a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((t=>new e.aG(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)));else if(0!==this.tileCoverLift){const i=t.clone();i.tileCoverLift=this.tileCoverLift,a=i.coveringTiles({tileSize:r||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:s,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:o}),this._source.minzoom<=1&&"globe"===t.projection.name&&(a.push(new e.aG(1,0,1,0,0)),a.push(new e.aG(1,0,1,1,0)),a.push(new e.aG(1,0,1,0,1)),a.push(new e.aG(1,0,1,1,1)))}else if(a=t.coveringTiles({tileSize:r||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:s,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:o}),this._source.hasTile){const e=this._source.hasTile.bind(this._source);a=a.filter((t=>e(t)))}}else a=[];if(a.length>0&&this.castsShadows&&i&&"globe"!==this.transform.projection.name&&!this.usedForTerrain&&!It(this._source.type)){const e=t.coveringZoomLevel({tileSize:r||this._source.tileSize,roundZoom:this._source.roundZoom&&!n}),s=Math.min(e,this._source.maxzoom);if(o){const e=t.extendTileCover(a,s);for(const t of e)a.push(t)}else{const e=t.extendTileCover(a,s,i);for(const t of e)this._shadowCasterTiles[t.key]=!0,a.push(t)}}const c=this._updateRetainedTiles(a);if(It(this._source.type)&&0!==a.length){const t={},r={},n=Object.keys(c);for(const o of n){const n=c[o],i=this._tiles[o];if(!i||i.fadeEndTime&&i.fadeEndTime<=e.q.now())continue;const a=this.findLoadedParent(n,Math.max(n.overscaledZ-Pt.maxOverzooming,this._source.minzoom));a&&(this._addTile(a.tileID),t[a.tileID.key]=a.tileID),r[o]=n}const i=a[a.length-1].overscaledZ;for(const e in this._tiles){const t=this._tiles[e];if(c[e]||!t.hasData())continue;let n=t.tileID;for(;n.overscaledZ>i;){n=n.scaledTo(n.overscaledZ-1);const i=this._tiles[n.key];if(i&&i.hasData()&&r[n.key]){c[e]=t.tileID;break}}}for(const e in t)c[e]||(this._coveredTiles[e]=!0,c[e]=t[e])}for(const e in c)this._tiles[e].clearFadeHold();const u=e.bk(this._tiles,c);for(const e of u){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const r={},n=e.reduce(((e,t)=>
vendor: 4,340 bytes, line 2
2Math.min(e,t.overscaledZ)),1/0),i=e[0].overscaledZ,o=Math.max(i-Pt.maxOverzooming,this._source.minzoom),a=Math.max(i+Pt.maxUnderzooming,this._source.minzoom),s={};for(const l of e){const e=this._addTile(l);t[l.key]=l,e.hasData()||n<this._source.maxzoom&&(s[l.key]=l)}this._retainLoadedChildren(s,n,a,t);for(const l of e){let e=this._tiles[l.key];if(e.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const e=l.children(this._source.maxzoom)[0],r=this.getTile(e);if(r&&r.hasData()){t[e.key]=e;continue}}else{const e=l.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let n=e.wasRequested();for(let i=l.overscaledZ-1;i>=o;--i){const o=l.scaledTo(i);if(r[o.key])break;if(r[o.key]=!0,e=this.getTile(o),!e&&n&&(e=this._addTile(o)),e&&(t[o.key]=o,n=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let r,n=this._tiles[e].tileID;for(;n.overscaledZ>0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}t.push(n.key);const e=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(e),r)break;n=e}for(const e of t)this._loadedParentTiles[e]=r}}_addTile(t){let r=this._tiles[t.key];if(r)return!0!==r.isExtraShadowCaster||!!this._shadowCasterTiles[t.key]||this._reloadTile(t.key,"reloading"),r;r=this._cache.getAndRemove(t),r&&(this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,r)));const n=Boolean(r);if(!n){const e=this.map?this.map.painter:null,n=this._source.tileSize*t.overscaleFactor();r="raster-array"===this._source.type?new St(t,n,this.transform.tileZoom,e,this._isRaster):new At(t,n,this.transform.tileZoom,e,this._isRaster),this._loadTile(r,this._tileLoaded.bind(this,r,t.key,r.state))}return r?(r.uses++,this._tiles[t.key]=r,n||this._source.fire(new e.z("dataloading",{tile:r,coord:r.tileID,dataType:"source"})),r):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout((()=>{this._reloadTile(e,"expired"),delete this._timers[e]}),r))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state||"empty"===t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(t,r,n){const i=[],o=this.transform;if(!o)return i;const a="globe"===o.projection.name,s=e.at(o.center.lng);for(const l in this._tiles){const c=this._tiles[l];if(n&&c.clearQueryDebugViz(),c.holdingForFade())continue;let u;if(a){const t=c.tileID.canonical;if(0===t.z){const r=[Math.abs(e.aw(s,...Mt(t,-1))-s),Math.abs(e.aw(s,...Mt(t,1))-s)];u=[0,2*r.indexOf(Math.min(...r))-1]}else{const r=[Math.abs(e.aw(s,...Mt(t,-1))-s),Math.abs(e.aw(s,...Mt(t,0))-s),Math.abs(e.aw(s,...Mt(t,1))-s)];u=[r.indexOf(Math.min(...r))-1]}}else u=[0];for(const e of u){const n=t.containsTile(c,o,r,e);n&&i.push(n)}}return i}getShadowCasterCoordinates(){return this._getRenderableCoordinates(!1,!0)}getVisibleCoordinates(e){return this._getRenderableCoordinates(e)}_getRenderableCoordinates(e,t){const r=this.getRenderableIds(e,t).map((e=>this._tiles[e].tileID)),n="globe"===this.transform.projection.name;for(const i of r)i.projMatrix=this.transform.calculateProjMatrix(i.toUnwrapped()),i.expandedProjMatrix=n?this.transform.calculateProjMatrix(i.toUnwrapped(),!1,!0):i.projMatrix;return r}sortCoordinatesByDistance(e){const t=e.slice(),r=this.transform._camera.position,n=this.transform._camera.forward(),i={};for(const o of t){const e=1/(1<<o.canonical.z);i[o.key]=((o.canonical.x+.5)*e+o.wrap-r[0])*n[0]+((o.canonical.y+.5)*e-r[1])*n[1]-r[2]*n[2]}return t.sort(((e,t)=>i[e.key]-i[t.key])),t}hasTransition(){if(this._source.hasTransition())return!0;
2if(It(this._source.type))for(const t in this._tiles){const r=this._tiles[t];if(void 0!==r.fadeEndTime&&r.fadeEndTime>=e.q.now())return!0}return!1}setFeatureState(e,t,r){this._state.updateState(e=e||"_geojsonTileLayer",t,r)}removeFeatureState(e,t,r){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,r)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,r){const n=this._tiles[e];n&&n.setDependencies(t,r)}reloadTilesForDependencies(e,t){for(const r in this._tiles)this._tiles[r].hasDependency(e,t)&&this._reloadTile(+r,"reloading");this._cache.filter((r=>!r.hasDependency(e,t)))}_preloadTiles(t,r){if(!this._sourceLoaded){const e=()=>{this._sourceLoaded&&(this._source.off("data",e),this._preloadTiles(t,r))};return void this._source.on("data",e)}const n=new Map,i=Array.isArray(t)?t:[t],o=this.map.painter.terrain,a=this.usedForTerrain&&o?o.getScaledDemTileSize():this._source.tileSize;for(const e of i){const t=e.coveringTiles({tileSize:a,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)n.set(e.key,e);this.usedForTerrain&&e.updateElevation(!1)}const s=Array.from(n.values());e.bl(s,((e,t)=>{const r=new At(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(r,(e=>{"raster-dem"===this._source.type&&r.dem&&this._backfillDEM(r),t(e,r)}))}),r)}}function Ct(e,t){const r=Math.abs(2*e.wrap)-+(e.wrap<0),n=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||n-r||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function It(e){return"raster"===e||"image"===e||"video"===e||"custom"===e}function Mt(e,t){const r=1<<e.z;return[e.x/r+t,(e.x+1)/r+t]}Pt.maxOverzooming=10,Pt.maxUnderzooming=3;class kt{constructor(e){this.style=e,this.layersGotHidden=!1,this.layers=[]}processLayersChanged(){this.layers=[];const e=!1,t=!1;for(const r in this.style._mergedLayers){const n=this.style._mergedLayers[r];if("fill-extrusion"===n.type)this.layers.push({layer:n,visible:e,visibilityChanged:t});else if("model"===n.type){const r=this.style.getLayerSource(n);r&&"batched-model"===r.type&&this.layers.push({layer:n,visible:e,visibilityChanged:t})}}}onNewFrame(e){this.layersGotHidden=!1;for(const t of this.layers){const r=t.layer;let n=!1;"fill-extrusion"===r.type?n=!r.isHidden(e)&&r.paint.get("fill-extrusion-opacity")>0:"model"===r.type&&(n=!r.isHidden(e)&&r.paint.get("model-opacity").constantOr(1)>0),this.layersGotHidden=this.layersGotHidden||!n&&t.visible,t.visible=n}}updateZOffset(e,t){this.currentBuildingBuckets=[];for(const n of this.layers){const e=n.layer,r=this.style.getLayerSourceCache(e);let i=1;"fill-extrusion"===e.type&&(i=n.visible?e.paint.get("fill-extrusion-vertical-scale"):0);let o=r?r.getTile(t):null;if(!o&&r&&t.canonical.z>r.getSource().minzoom){let e=t.scaledTo(Math.min(r.getSource().maxzoom,t.overscaledZ-1));for(;e.overscaledZ>=r.getSource().minzoom&&(o=r.getTile(e),!o&&0!==e.overscaledZ);)e=e.scaledTo(e.overscaledZ-1)}this.currentBuildingBuckets.push({bucket:o?o.getBucket(e):null,tileID:o?o.tileID:t,verticalScale:i})}e.hasAnyZOffset=!1;let r=!1;for(let n=0;n<e.symbolInstances.length;n++){const i=e.symbolInstances.get(n),o=i.zOffset,a=this._getHeightAtTileOffset(t,i.tileAnchorX,i.tileAnchorY);i.zOffset=a!==Number.NEGATIVE_INFINITY?a:o,r||o===i.zOffset||(r=!0),e.hasAnyZOffset||0===i.zOffset||(e.hasAnyZOffset=!0)}r&&(e.zOffsetBuffersNeedUpload=!0,e.zOffsetSortDirty=!0)}_mapCoordToOverlappingTile(t,r,n,i){let o=r,a=n;if(t.canonical.z!==i.canonical.z){const s=i.canonical,l=1/(1<<t.canonical.z-s.z);o=(r+t.canonical.x*e.ag)*l-s.x*e.ag|0,a=(n+t.canonical.y*e.ag)*l-s.y*e.ag|0}return{tileX:o,tileY:a}}_getHeightAtTileOffset(e,t,r){let n,i;for(let o=0;o<this.layers.length;++o){if("fill-extrusion"!==this.layers[o].layer.type)continue;const{bucket:a,tileID:s,verticalScale:l}=this.currentBuildingBuckets[o];if(!a)continue;const{tileX:c,tileY:u}=this._mapCoordToOverlappingTile(e,t,r,s),d=a.getHeightAtTileCoord(c,u);d&&void 0!==d.height&&(d.hidden?n=d.height:i=Math.max(d.height*l,i||0))}if(void 0!==i)return i;for(let o=0;o<this.layers.length;++o){const i=this.layers[o];if("model"!==i.layer.type||!i.visible)continue;const{bucket:a,tileID:s}=this.currentBuildingBuckets[o];if(!a)continue;const{tileX:l,tileY:c}=this._mapCoordToOverlappingTile(e,t,r,s),u=a.getHeightAtTileCoord(l,c);if(u&&!u.hidden)return void 0===u.height&&void 0!==n?Math.min(u.maxHeight,n)*u.verticalScale:u.height?u.height*u.verticalScale:Number.NEGATIVE_INFINITY}return this.layersGotHidden?0:Number.NEGATIVE_INFINITY}}function Ot(t,r){const n={};for(const e in t)"ref"!==e&&(n[e]=t[e]);return e.bm.forEach((e=>{e in r&&(n[e]=r[e])})),n}function Rt(e){e=e.slice();const t=Object.create(null);for(let r=0;r<e.length;r++)t[e[r].id]=e[r];for(let r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Ot(e[r],t[e[r].ref]));return e}const Lt={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setSlot:"setSlot",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setSnow:"setSnow",setRain:"setRain",setCamera:"setCamera",setLights:"setLights",setProjection:"setProjection",addImport:"addImport",removeImport:"removeImport",updateImport:"updateImport"};
vendor: 4,399 bytes, line 2
2function Dt(e,t,r){r.push({command:Lt.addSource,args:[e,t[e]]})}function Nt(e,t,r){t.push({command:Lt.removeSource,args:[e]}),r[e]=!0}function Ft(e,t,r,n){Nt(e,r,n),Dt(e,t,r)}function zt(t,r,n){let i;for(i in t[n])if(t[n].hasOwnProperty(i)&&"data"!==i&&!e.bn(t[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&&"data"!==i&&!e.bn(t[n][i],r[n][i]))return!1;return!0}function jt(t,r,n,i,o,a){let s;for(s in r=r||{},t=t||{})t.hasOwnProperty(s)&&(e.bn(t[s],r[s])||n.push({command:a,args:[i,s,r[s],o]}));for(s in r)r.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(e.bn(t[s],r[s])||n.push({command:a,args:[i,s,r[s],o]}))}function Bt(e){return e.id}function Ut(e,t){return e[t.id]=t,e}class Vt{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r<this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.aw(t,0,1);let r=1,n=this._distances[r];const i=t*this.paddedLength+this.padding;for(;n<i&&r<this._distances.length;)n=this._distances[++r];const o=r-1,a=this._distances[o],s=n-a,l=s>0?(i-a)/s:0;return this.points[o].mult(1-l).add(this.points[r].mult(l))}}class qt{constructor(e,t,r){const n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let o=0;o<this.xCellCount*this.yCellCount;o++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,r,n,i){this._forEachCell(t,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)}insertCircle(e,t,r,n){this._forEachCell(t-n,r-n,t+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(r),this.circles.push(n)}_insertBoxCell(e,t,r,n,i,o){this.boxCells[i].push(o)}_insertCircleCell(e,t,r,n,i,o){this.circleCells[i].push(o)}_query(e,t,r,n,i,o){if(r<0||e>this.width||n<0||t>this.height)return!i&&[];const a=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=n){if(i)return!0;for(let e=0;e<this.boxKeys.length;e++)a.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],r=this.circles[3*e+1],n=this.circles[3*e+2];a.push({key:this.circleKeys[e],x1:t-n,y1:r-n,x2:t+n,y2:r+n})}return o?a.filter(o):a}return this._forEachCell(e,t,r,n,this._queryCell,a,{hitTest:i,seenUids:{box:{},circle:{}}},o),i?a.length>0:a}_queryCircle(e,t,r,n,i){const o=e-r,a=e+r,s=t-r,l=t+r;if(a<0||o>this.width||l<0||s>this.height)return!n&&[];const c=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,c,{hitTest:n,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length>0:c}query(e,t,r,n,i){return this._query(e,t,r,n,!1,i)}hitTest(e,t,r,n,i){return this._query(e,t,r,n,!0,i)}hitTestCircle(e,t,r,n){return this._queryCircle(e,t,r,!0,n)}_queryCell(e,t,r,n,i,o,a,s){const l=a.seenUids,c=this.boxCells[i];if(null!==c){const i=this.bboxes;for(const u of c)if(!l.box[u]){l.box[u]=!0;const c=4*u;if(e<=i[c+2]&&t<=i[c+3]&&r>=i[c+0]&&n>=i[c+1]&&(!s||s(this.boxKeys[u]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[u],x1:i[c],y1:i[c+1],x2:i[c+2],y2:i[c+3]})}}}const u=this.circleCells[i];if(null!==u){const i=this.circles;for(const c of u)if(!l.circle[c]){l.circle[c]=!0;const u=3*c;if(this._circleAndRectCollide(i[u],i[u+1],i[u+2],e,t,r,n)&&(!s||s(this.circleKeys[c]))){if(a.hitTest)return o.push(!0),!0;{const e=i[u],t=i[u+1],r=i[u+2];o.push({key:this.circleKeys[c],x1:e-r,y1:t-r,x2:e+r,y2:t+r})}}}}}_queryCellCircle(e,t,r,n,i,o,a,s){const l=a.circle,c=a.seenUids,u=this.boxCells[i];if(null!==u){const e=this.bboxes;for(const t of u)if(!c.box[t]){c.box[t]=!0;const r=4*t;if(this._circleAndRectCollide(l.x,l.y,l.radius,e[r+0],e[r+1],e[r+2],e[r+3])&&(!s||s(this.boxKeys[t])))return o.push(!0),!0}}const d=this.circleCells[i];if(null!==d){const e=this.circles;for(const t of d)if(!c.circle[t]){c.circle[t]=!0;const r=3*t;
2if(this._circlesCollide(e[r],e[r+1],e[r+2],l.x,l.y,l.radius)&&(!s||s(this.circleKeys[t])))return o.push(!0),!0}}}_forEachCell(e,t,r,n,i,o,a,s){const l=this._convertToXCellCoord(e),c=this._convertToYCellCoord(t),u=this._convertToXCellCoord(r),d=this._convertToYCellCoord(n);for(let h=l;h<=u;h++)for(let l=c;l<=d;l++)if(i.call(this,e,t,r,n,this.xCellCount*l+h,o,a,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,n,i,o){const a=n-e,s=i-t,l=r+o;return l*l>a*a+s*s}_circleAndRectCollide(e,t,r,n,i,o,a){const s=(o-n)/2,l=Math.abs(e-(n+s));if(l>s+r)return!1;const c=(a-i)/2,u=Math.abs(t-(i+c));if(u>c+r)return!1;if(l<=s||u<=c)return!0;const d=l-s,h=u-c;return d*d+h*h<=r*r}}const Ht={unknown:0,flipRequired:1,flipNotRequired:2},Gt=Math.tan(85*Math.PI/180);function Wt(t,r,n,i,o,a,s){const l=e.ab.mat4.create();if(n)if("globe"===a.name){const t=e.bo(o,r);e.ab.mat4.multiply(l,l,t)}else{const t=e.ab.mat2.invert([],s);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],i||e.ab.mat4.rotateZ(l,l,o.angle)}else e.ab.mat4.multiply(l,o.labelPlaneMatrix,t);return l}function Yt(e,t,r,n,i,o,a){const s=Wt(e,t,r,n,i,o,a);return"globe"===o.name&&r||(s[2]=s[6]=s[10]=s[14]=0),s}function Zt(t,r,n,i,o,a,s){if(n){if("globe"===a.name){const l=Wt(t,r,n,i,o,a,s);return e.ab.mat4.invert(l,l),e.ab.mat4.multiply(l,t,l),l}{const r=e.ab.mat4.clone(t),n=e.ab.mat4.identity([]);return n[0]=s[0],n[1]=s[1],n[4]=s[2],n[5]=s[3],e.ab.mat4.multiply(r,r,n),i||e.ab.mat4.rotateZ(r,r,-o.angle),r}}return o.glCoordMatrix}function Kt(t,r,n,i){const o=[t,r,n,1];n?e.ab.vec4.transformMat4(o,o,i):ar(o,o,i);const a=o[3];return o[0]/=a,o[1]/=a,o[2]/=a,o}function Xt(e,t){return Math.min(.5+e/t*.5,1.5)}function Jt(e,t){const r=e[0]/e[3],n=e[1]/e[3];return r>=-t[0]&&r<=t[0]&&n>=-t[1]&&n<=t[1]}function Qt(t,r,n,i,o,a,s,l,c,u){const d=n.transform,h=i?t.textSizeData:t.iconSizeData,p=e.bp(h,n.transform.zoom),f="globe"===d.projection.name,m=[256/n.width*2+1,256/n.height*2+1],g=i?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;g.clear();let _=null;f&&(_=i?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const y=t.lineVertexArray,v=i?t.text.placedSymbolArray:t.icon.placedSymbolArray,b=n.transform.width/n.transform.height;let x,w=!1;for(let A=0;A<v.length;A++){const i=v.get(A),{numGlyphs:f,writingMode:S}=i;if(S!==e.bq.vertical||w||x===e.bq.horizontal||(w=!0),x=S,(i.hidden||S===e.bq.vertical)&&!w){or(f,g);continue}w=!1;const E=new e.P(i.tileAnchorX,i.tileAnchorY);let{x:T,y:P,z:C}=d.projection.projectTilePoint(E.x,E.y,u.canonical);if(c){const[e,t,r]=c(E);T+=e,P+=t,C+=r}const I=[T,P,C,1];if(e.ab.vec4.transformMat4(I,I,r),!Jt(I,m)){or(f,g);continue}const M=I[3],k=Xt(n.transform.getCameraToCenterDistance(d.projection),M),O=e.br(h,p,i),R=s?O/k:O*k,L=Kt(T,P,C,o);if(L[3]<=0){or(f,g);continue}let D={};const N=s?null:c,F=tr(i,R,!1,l,r,o,a,t.glyphOffsetArray,y,g,_,L,E,D,b,N,d.projection,u,s);w=F.useVertical,N&&F.needsFlipping&&(D={}),(F.notEnoughRoom||w||F.needsFlipping&&tr(i,R,!0,l,r,o,a,t.glyphOffsetArray,y,g,_,L,E,D,b,N,d.projection,u,s).notEnoughRoom)&&or(f,g)}i?(t.text.dynamicLayoutVertexBuffer.updateData(g),_&&t.text.globeExtVertexBuffer&&t.text.globeExtVertexBuffer.updateData(_)):(t.icon.dynamicLayoutVertexBuffer.updateData(g),_&&t.icon.globeExtVertexBuffer&&t.icon.globeExtVertexBuffer.updateData(_))}function $t(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){const{lineStartIndex:g,glyphStartIndex:_,segment:y}=s,v=_+s.numGlyphs,b=g+s.lineLength,x=t.getoffsetX(_),w=t.getoffsetX(v-1),A=ir(e*x,r,n,i,o,a,y,g,b,l,c,u,d,h,!0,p,f,m);if(!A)return null;const S=ir(e*w,r,n,i,o,a,y,g,b,l,c,u,d,h,!0,p,f,m);return S?{first:A,last:S}:null}function er(t,r,n,i){return t===e.bq.horizontal&&Math.abs(i)>Math.abs(n)?{useVertical:!0}:t===e.bq.vertical?i>0?{needsFlipping:!0}:null:r!==Ht.unknown&&function(e,t){return 0===e||Math.abs(t/e)>Gt}(n,i)?r===Ht.flipRequired?{needsFlipping:!0}:null:n<0?{needsFlipping:!0}:null}function tr(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v){const b=r/24,x=t.lineOffsetX*b,w=t.lineOffsetY*b,{lineStartIndex:A,glyphStartIndex:S,numGlyphs:E,segment:T,writingMode:P,flipState:C}=t,I=A+t.lineLength,M=t=>{if(d){const[r,n,i]=t.up,o=u.length;e.bs(d,o+0,r,n,i),e.bs(d,o+1,r,n,i),e.bs(d,o+2,r,n,i),e.bs(d,o+3,r,n,i)}const[r,n,i]=t.point;e.bt(u,r,n,i,t.angle)};if(E>1){const e=$t(b,l,x,w,n,h,p,t,c,a,f,g,!1,_,y,v);if(!e)return{notEnoughRoom:!0};if(i&&!n){let[r,n,i]=e.first.point,[o,a,l]=e.last.point;[r,n]=Kt(r,n,i,s),[o,a]=Kt(o,a,l,s);const c=er(P,C,(o-r)*m,a-n);if(t.flipState=c&&c.needsFlipping?Ht.flipRequired:Ht.flipNotRequired,c)return c}M(e.first);for(let t=S+1;t<S+E-1;t++){const e=ir(b*l.getoffsetX(t),x,w,n,h,p,T,A,I,c,a,f,g,!1,!1,_,y,v);if(!e)return u.length-=4*(t-S),{notEnoughRoom:!0};M(e)}M(e.last)}else{if(i&&!n){const r=Kt(p.x,p.y,0,o),n=A+T+1,i=new e.P(c.getx(n),c.gety(n)),a=Kt(i.x,i.y,0,o),s=a[3]>0?a:nr(p,i,r,1,o,void 0,_,y.canonical),l=er(P,C,(s[0]-r[0])*m,s[1]-r[1]);if(t.flipState=l&&l.needsFlipping?Ht.flipRequired:Ht.flipNotRequired,l)return l}const r=ir(b*l.getoffsetX(S),x,w,n,h,p,T,A,I,c,a,f,g,!1,!1,_,y,v);if(!r)return{notEnoughRoom:!0};M(r)}return{}}function rr(e,t,r,n,i){const{x:o,y:a,z:s}=n.projectTilePoint(e.x,e.y,t);if(!i)return Kt(o,a,s,r);const[l,c,u]=i(e);return Kt(o+l,a+c,s+u,r)}function nr(t,r,n,i,o,a,s,l){const c=rr(t.sub(r)._unit()._add(t),l,o,s,a);return e.ab.vec3.sub(c,n,c),e.ab.vec3.normalize(c,c),e.ab.vec3.scaleAndAdd(c,n,c,i)}function ir(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y){const v=i?t-r:t+r;let b=v>0?1:-1,x=0;i&&(b*=-1,x=Math.PI),b<0&&(x+=Math.PI);let w=l+s+(b>0?0:1)|0,A=o,S=o,E=0,T=0;const P=Math.abs(v),C=[],I=[];let M=a,k=M;const O=()=>nr(k,M,S,P-E+1,d,p,g,_.canonical);for(;E+T<=P;){if(w+=b,w<l||w>=c)return null;if(S=A,k=M,C.push(S),f&&I.push(k),M=new e.P(u.getx(w),u.gety(w)),A=h[w],!A){const e=rr(M,_.canonical,d,g,p);A=e[3]>0?h[w]=e:O()}E+=T,T=e.ab.vec3.distance(S,A)}m&&p&&(h[w]&&(A=O(),T=e.ab.vec3.distance(S,A)),h[w]=A);const R=(P-E)/T,L=M.sub(k)._mult(R)._add(k),D=e.ab.vec3.sub([],A,S),N=e.ab.vec3.scaleAndAdd([],S,D,R);let F=[0,0,1],z=D[0],j=D[1];if(y&&(F=g.upVector(_.canonical,L.x,L.y),0!==F[0]||0!==F[1]||1!==F[2])){const t=[F[2],0,-F[0]],r=e.ab.vec3.cross([],F,t);e.ab.vec3.normalize(t,t),e.ab.vec3.normalize(r,r),z=e.ab.vec3.dot(D,t),j=e.ab.vec3.dot(D,r)}if(n){const t=e.ab.vec3.cross([],F,D);e.ab.vec3.normalize(t,t),e.ab.vec3.scaleAndAdd(N,N,t,n*b)}const B=x+Math.atan2(j,z);return C.push(N),f&&I.push(L),{point:N,angle:B,path:C,tilePath:I,up:F}}function or(e,t){const r=t.length,n=r+4*e;t.resize(n),t.float32.fill(-1/0,4*r,4*n)}function ar(e,t,r){const n=t[0],i=t[1];return e[0]=r[0]*n+r[4]*i+r[12],e[1]=r[1]*n+r[5]*i+r[13],e[3]=r[3]*n+r[7]*i+r[15],e}const sr=100;class lr{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new qt(e.width+200,e.height+200,25),n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new qt(e.width+200,e.height+200,25);this.transform=e,this.grid=r,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+sr,this.screenBottomBoundary=e.he
2ight+sr,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,r,n,i,o,a,s){let l=r.projectedAnchorX,c=r.projectedAnchorY,u=r.projectedAnchorZ;const d=r.elevation,h=r.tileID,p=e.getProjection();if(d&&h){const[e,t,n]=p.upVector(h.canonical,r.tileAnchorX,r.tileAnchorY),i=p.upVectorScale(h.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;l+=e*d*i,c+=t*d*i,u+=n*d*i}const f=this.projectAndGetPerspectiveRatio(a,l,c,u,r.tileID,"globe"===p.name||!!d||this.transform.pitch>0,p),m=o*f.perspectiveRatio,g=(r.x1*t+n.x-r.padding)*m+f.point.x,_=(r.y1*t+n.y-r.padding)*m+f.point.y,y=(r.x2*t+n.x+r.padding)*m+f.point.x,v=(r.y2*t+n.y+r.padding)*m+f.point.y,b=f.perspectiveRatio<=.55||f.occluded;return!this.isInsideGrid(g,_,y,v)||!i&&this.grid.hitTest(g,_,y,v,s)||b?{box:[],offscreen:!1,occluded:f.occluded}:{box:[g,_,y,v],offscreen:this.isOffscreen(g,_,y,v),occluded:!1}}placeCollisionCircles(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){const g=[],_=this.transform.elevation,y=t.getProjection(),v=_?_.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,y):null,b=new e.P(n.tileAnchorX,n.tileAnchorY);let{x:x,y:w,z:A}=y.projectTilePoint(b.x,b.y,m.canonical);if(v){const[e,t,r]=v(b);x+=e,w+=t,A+=r}const S="globe"===y.name,E=this.projectAndGetPerspectiveRatio(s,x,w,A,m,S||!!_||this.transform.pitch>0,y),{perspectiveRatio:T}=E,P=(d?a/T:a*T)/e.bw,C=Kt(x,w,A,l),I=E.signedDistanceFromCamera>0?$t(P,o,n.lineOffsetX*P,n.lineOffsetY*P,!1,C,b,n,i,l,{},_&&!d?v:null,d&&!!_,y,m,d):null;let M=!1,k=!1,O=!0;if(I&&!E.occluded){const t=.5*p*T+f,n=new e.P(-100,-100),i=new e.P(this.screenRightBoundary,this.screenBottomBoundary),o=new Vt,{first:a,last:s}=I,l=a.path.length;let d=[];for(let e=l-1;e>=1;e--)d.push(a.path[e]);for(let e=1;e<s.path.length;e++)d.push(s.path[e]);const m=2.5*t;c&&(d=d.map(((e,t)=>{let[r,n,i]=e;return v&&!S&&(i=v(t<l-1?a.tilePath[l-1-t]:s.tilePath[t-l+2])[2]),Kt(r,n,i,c)})),d.some((e=>e[3]<=0))&&(d=[]));let _=[];if(d.length>0){let t=1/0,r=-1/0,o=1/0,a=-1/0;for(const e of d)t=Math.min(t,e[0]),o=Math.min(o,e[1]),r=Math.max(r,e[0]),a=Math.max(a,e[1]);r>=n.x&&t<=i.x&&a>=n.y&&o<=i.y&&(_=[d.map((t=>new e.P(t[0],t[1])))],(t<n.x||r>i.x||o<n.y||a>i.y)&&(_=e.bu(_,n.x,n.y,i.x,i.y)))}for(const e of _){o.reset(e,.25*t);let n=0;n=o.length<=.5*t?1:Math.ceil(o.paddedLength/m)+1;for(let e=0;e<n;e++){const i=e/Math.max(n-1,1),a=o.lerp(i),s=a.x+sr,l=a.y+sr;g.push(s,l,t,0);const c=s-t,d=l-t,p=s+t,f=l+t;if(O=O&&this.isOffscreen(c,d,p,f),k=k||this.isInsideGrid(c,d,p,f),!r&&this.grid.hitTestCircle(s,l,t,h)&&(M=!0,!u))return{circles:[],offscreen:!1,collisionDetected:M,occluded:!1}}}}return{circles:!u&&M||!k?[]:g,offscreen:O,collisionDetected:M,occluded:E.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const r=[];let n=1/0,i=1/0,o=-1/0,a=-1/0;for(const u of t){const t=new e.P(u.x+sr,u.y+sr);n=Math.min(n,t.x),i=Math.min(i,t.y),o=Math.max(o,t.x),a=Math.max(a,t.y),r.push(t)}const s=this.grid.query(n,i,o,a).concat(this.ignoredGrid.query(n,i,o,a)),l={},c={};for(const u of s){const t=u.key;if(void 0===l[t.bucketInstanceId]&&(l[t.bucketInstanceId]={}),l[t.bucketInstanceId][t.featureIndex])continue;const n=[new e.P(u.x1,u.y1),new e.P(u.x2,u.y1),new e.P(u.x2,u.y2),new e.P(u.x1,u.y2)];e.bv(r,n)&&(l[t.bucketInstanceId][t.featureIndex]=!0,void 0===c[t.bucketInstanceId]&&(c[t.bucketInstanceId]=[]),c[t.bucketInstanceId].push(t.featureIndex))}return c}insertCollisionBox(e,t,r,n,i){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,r,n,i){const o=t?this.ignoredGrid:this.grid,a={bucketInstanceId:r,featureIndex:n,collisionGroupID:i};for(let s=0;s<e.length;s+=4)o.insertCircle(a,e[s],e[s+1],e[s+2])}projectAndGetPerspectiveRatio(t,r,n,i,o,a,s){const l=[r,n,i,1];let c=!1;if(i||this.transform.pitch>0){if(e.ab.vec4.transformMat4(l,l,t),this.fogState&&o&&"globe"!==s.name){const t=function(t,r,n,i,o,a){const s=a.calculateFogTileMatrix(o),l=[r,n,i];return e.ab.vec3.transformMat4(l,l,s),Ue(t,e.ab.vec3.length(l),a.pitch,a._fov)}(this.fogState,r,n,i,o.toUnwrapped(),this.transform);c=t>.9}}else ar(l,l,t);const u=l[3];return{point:new e.P((l[0]/u+1)/2*this.transform.width+sr,(-l[1]/u+1)/2*this.transform.height+sr),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(s)/u*.5,1.5),signedDistanceFromCamera:u,occluded:a&&l[2]>u||c}}isOffscreen(e,t,r,n){return r<sr||e>=this.screenRightBoundary||n<sr||t>this.screenBottomBoundary}isInsideGrid(e,t,r,n){return r>=0&&e<this.gridRightBoundary&&n>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.ab.mat4.identity([]);return e.ab.mat4.translate(t,t,[-100,-100,0]),t}}function cr(t,r,n){const i=r.createTileMatrix(t,t.worldSize,n.toUnwrapped());return e.ab.mat4.multiply(new Float32Array(16),t.projMatrix,i)}function ur(e,t,r){if(t.projection.name===r.projection.name)return e.projMatrix;const n=r.clone();return n.setProjection(t.projection),cr(n,t.getProjection(),e)}function dr(e,t,r){return t.name===r.projection.name?e.projMatrix:cr(r,t,e)}class hr{constructor(e,t,r,n){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):n&&r?1:0,this.placed=r}isHidden(){return 0===this.opacity&&!this.placed}}class pr{constructor(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.text=new hr(e?e.text:null,t,r,i),this.icon=new hr(e?e.icon:null,t,n,i),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}
2class fr{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.text=e,this.icon=t,this.skipFade=r,this.clipped=n}}class mr{constructor(){this.invProjMatrix=e.ab.mat4.create(),this.viewportMatrix=e.ab.mat4.create(),this.circles=[]}}class gr{constructor(e,t,r,n,i){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i}}class _r{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function yr(t,r,n,i,o){const{horizontalAlign:a,verticalAlign:s}=e.bD(t),l=-(a-.5)*r,c=-(s-.5)*n,u=e.bC(t,i);return new e.P(l+u[0]*o,c+u[1]*o)}function vr(t,r,n,i,o){const a=new e.P(t,r);return n&&a._rotate(i?o:-o),a}class br{constructor(e,t,r,n,i,o){this.transform=e.clone(),this.projection=e.projection.name,this.collisionIndex=new lr(this.transform,i),this.buildingIndex=o,this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new _r(r),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,r,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=n.getBucket(r),s=n.latestFeatureIndex;if(!a||!s||r.fqid!==a.layerIds[0])return;const l=a.layers[0].layout,c=a.layers[0].paint,u=n.collisionBoxArray,d=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),h=n.tileSize/e.ag,p=n.tileID.toUnwrapped();this.transform.setProjection(a.projection);const f=(m=n.tileID,g=a.getProjection(),_=this.transform,g.name===this.projection?_.calculateProjMatrix(m.toUnwrapped()):cr(_,g,m));var m,g,_;const y="map"===l.get("text-pitch-alignment"),v="map"===l.get("text-rotation-alignment");r.compileFilter(r.options);const b=r.dynamicFilter(),x=r.dynamicFilterNeedsFeature(),w=this.transform.calculatePixelsToTileUnitsMatrix(n),A=Yt(f,n.tileID.canonical,y,v,this.transform,a.getProjection(),w);let S=null;if(y){const t=Zt(f,n.tileID.canonical,y,v,this.transform,a.getProjection(),w);S=e.ab.mat4.multiply([],this.transform.labelPlaneMatrix,t)}let E=null;b&&n.latestFeatureIndex&&(E={unwrappedTileID:p,dynamicFilter:b,dynamicFilterNeedsFeature:x}),this.retainedQueryData[a.bucketInstanceId]=new gr(a.bucketInstanceId,s,a.sourceLayerIndex,a.index,n.tileID);const[T,P]=a.layers[0].layout.get("text-size-scale-range"),C=e.aw(o,T,P),[I,M]=l.get("icon-size-scale-range"),k=e.aw(o,I,M),O={bucket:a,layout:l,paint:c,posMatrix:f,textLabelPlaneMatrix:A,labelToScreenMatrix:S,clippingData:E,scale:d,textPixelRatio:h,holdingForFade:n.holdingForFade(),collisionBoxArray:u,partiallyEvaluatedTextSize:e.bp(a.textSizeData,this.transform.zoom,C),partiallyEvaluatedIconSize:e.bp(a.iconSizeData,this.transform.zoom,k),collisionGroup:this.collisionGroups.get(a.sourceID),latestFeatureIndex:n.latestFeatureIndex};if(i)for(const e of a.sortKeyRanges){const{sortKey:r,symbolInstanceStart:n,symbolInstanceEnd:i}=e;t.push({sortKey:r,symbolInstanceStart:n,symbolInstanceEnd:i,parameters:O})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:O})}attemptAnchorPlacement(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_){const{textOffset0:y,textOffset1:v,crossTileID:b}=d,x=[y,v],w=yr(e,r,n,x,i),A=this.collisionIndex.placeCollisionBox(p,i,t,vr(w.x,w.y,o,a,this.transform.angle),u,s,l,c.predicate);if(m){const e=p.getSymbolInstanceIconSize(_,this.transform.zoom,d.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(p,e,m,vr(w.x,w.y,o,a,this.transform.angle),u,s,l,c.predicate).box.length)return}if(A.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[b]&&this.prevPlacement.placements[b]&&this.prevPlacement.placements[b].text&&(t=this.prevPlacement.variableOffsets[b].anchor),this.variableOffsets[b]={textOffset:x,width:r,height:n,anchor:e,textScale:i,prevAnchor:t},this.markUsedJustification(p,e,d,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,d),this.placedOrientations[b]=f),{shift:w,placedGlyphBoxes:A}}}placeLayerBucketPart(t,r,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;
2const{bucket:a,layout:s,paint:l,posMatrix:c,textLabelPlaneMatrix:u,labelToScreenMatrix:d,clippingData:h,textPixelRatio:p,holdingForFade:f,collisionBoxArray:m,partiallyEvaluatedTextSize:g,partiallyEvaluatedIconSize:_,collisionGroup:y,latestFeatureIndex:v}=t.parameters,b=s.get("text-optional"),x=s.get("icon-optional"),w=s.get("text-allow-overlap"),A=s.get("icon-allow-overlap"),S="map"===s.get("text-rotation-alignment"),E="map"===s.get("text-pitch-alignment"),T=s.get("symbol-z-elevate"),P=l.get("symbol-z-offset"),C="sea"===s.get("symbol-elevation-reference"),[I,M]=s.get("text-size-scale-range"),[k,O]=s.get("icon-size-scale-range"),R=e.aw(o,I,M),L=e.aw(o,k,O);this.transform.setProjection(a.projection);let D=w&&(A||!a.hasIconData()||x),N=A&&(w||!a.hasTextData()||b);const F=!P.isConstant();!a.collisionArrays&&m&&a.deserializeCollisionBoxes(m),n&&i&&a.updateCollisionDebugBuffers(this.transform.zoom,m,R,L);const z=(t,i,l)=>{const{crossTileID:m,numVerticalGlyphVertices:T}=t;let I=null;if(h&&h.dynamicFilterNeedsFeature||F){const e=this.retainedQueryData[a.bucketInstanceId];I=v.loadFeature({featureIndex:t.featureIndex,bucketIndex:e.bucketIndex,sourceLayerIndex:e.s
vendor: 13,423 bytes, line 2
2ourceLayerIndex,layoutVertexArrayOffset:0})}if(h&&!(0,h.dynamicFilter)({zoom:this.transform.zoom,pitch:this.transform.pitch},I,this.retainedQueryData[a.bucketInstanceId].tileID.canonical,new e.P(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(h.unwrappedTileID)))return this.placements[m]=new fr(!1,!1,!1,!0),void r.add(m);const M=P.evaluate(I,{});if(r.has(m))return;if(f)return void(this.placements[m]=new fr(!1,!1,!1));let k=!1,O=!1,R=!0,L=!1,z=!1,j=null,B={box:null,offscreen:null,occluded:null},U={box:null,offscreen:null,occluded:null},V=null,q=null,H=null,G=0,W=0,Y=0;l.textFeatureIndex?G=l.textFeatureIndex:t.useRuntimeCollisionCircles&&(G=t.featureIndex),l.verticalTextFeatureIndex&&(W=l.verticalTextFeatureIndex);const Z=e=>{e.tileID=this.retainedQueryData[a.bucketInstanceId].tileID;const r=this.transform.elevation;e.elevation=C?M:M+(r?r.getAtTileOffset(e.tileID,e.tileAnchorX,e.tileAnchorY):0),e.elevation+=t.zOffset},K=l.textBox;if(K){Z(K);const r=r=>{let n=e.bq.horizontal;if(a.allowVerticalPlacement&&!r&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[m];e&&(this.placedOrientations[m]=e,n=e,this.markUsedOrientation(a,n,t))}return n},n=(t,r)=>{if(a.allowVerticalPlacement&&T>0&&l.verticalTextBox){for(const n of a.writingModes)if(n===e.bq.vertical?(B=r(),U=B):B=t(),B&&B.box&&B.box.length)break}else B=t()};if(s.get("text-variable-anchor")){let o=s.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[m]){const e=this.prevPlacement.variableOffsets[m];o.indexOf(e.anchor)>0&&(o=o.filter((t=>t!==e.anchor)),o.unshift(e.anchor))}const u=(e,r,n)=>{const s=a.getSymbolInstanceTextSize(g,t,this.transform.zoom,i),l=(e.x2-e.x1)*s+2*e.padding,u=(e.y2-e.y1)*s+2*e.padding,d=t.hasIconTextFit&&!A?r:null;d&&Z(d);let h={box:[],offscreen:!1,occluded:!1};const f=w?2*o.length:o.length;for(let m=0;m<f;++m){const r=this.attemptAnchorPlacement(o[m%o.length],e,l,u,s,S,E,p,c,y,m>=o.length,t,i,a,n,d,g,_);if(r&&(h=r.placedGlyphBoxes,h&&h.box&&h.box.length)){k=!0,j=r.shift;break}}return h};n((()=>u(K,l.iconBox,e.bq.horizontal)),(()=>{const t=l.verticalTextBox;return t&&Z(t),a.allowVerticalPlacement&&!(B&&B.box&&B.box.length)&&T>0&&t?u(t,l.verticalIconBox,e.bq.vertical):{box:null,offscreen:null,occluded:null}})),B&&(k=B.box,R=B.offscreen,L=B.occluded);const d=r(!(!B||!B.box));if(!k&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[m];e&&(this.variableOffsets[m]=e,this.markUsedJustification(a,e.anchor,t,d))}}else{const s=(r,n)=>{const s=a.getSymbolInstanceTextSize(g,t,this.transform.zoom,i,o),l=this.collisionIndex.placeCollisionBox(a,s,r,new e.P(0,0),w,p,c,y.predicate);return l&&l.box&&l.box.length&&(this.markUsedOrientation(a,n,t),this.placedOrientations[m]=n),l};n((()=>s(K,e.bq.horizontal)),(()=>{const t=l.verticalTextBox;return a.allowVerticalPlacement&&T>0&&t?(Z(t),s(t,e.bq.vertical)):{box:null,offscreen:null,occluded:null}})),r(!!(B&&B.box&&B.box.length))}}if(V=B,k=V&&V.box&&V.box.length>0,R=V&&V.offscreen,L=V&&V.occluded,t.useRuntimeCollisionCircles){const r=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),i=e.br(a.textSizeData,g,r),o=s.get("text-padding");q=this.collisionIndex.placeCollisionCircles(a,w,r,a.lineVertexArray,a.glyphOffsetArray,i,c,u,d,n,E,y.predicate,t.collisionCircleDiameter*i/e.bw,o,this.retainedQueryData[a.bucketInstanceId].tileID),k=w||q.circles.length>0&&!q.collisionDetected,R=R&&q.offscreen,L=q.occluded}if(l.iconFeatureIndex&&(Y=l.iconFeatureIndex),l.iconBox){const r=r=>{Z(r);const n=t.hasIconTextFit&&j?vr(j.x,j.y,S,E,this.transform.angle):new e.P(0,0),i=a.getSymbolInstanceIconSize(_,this.transform.zoom,t.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(a,i,r,n,A,p,c,y.predicate)};U&&U.box&&U.box.length&&l.verticalIconBox?(H=r(l.verticalIconBox),O=H.box.length>0):(H=r(l.iconBox),O=H.box.length>0),R=R&&H.offscreen,z=H.occluded}const X=b||0===t.numHorizontalGlyphVertices&&0===T,J=x||0===t.numIconVertices;if(X||J?J?X||(O=O&&k):k=O&&k:O=k=O&&k,k&&V&&V.box&&this.collisionIndex.insertCollisionBox(V.box,s.get("text-ignore-placement"),a.bucketInstanceId,U&&U.box&&W?W:G,y.ID),O&&H&&this.collisionIndex.insertCollisionBox(H.box,s.get("icon-ignore-placement"),a.bucketInstanceId,Y,y.ID),q&&(k&&this.collisionIndex.insertCollisionCircles(q.circles,s.get("text-ignore-placement"),a.bucketInstanceId,G,y.ID),n)){const e=a.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new mr);for(let r=0;r<q.circles.length;r+=4)t.circles.push(q.circles[r+0]),t.circles.push(q.circles[r+1]),t.circles.push(q.circles[r+2]),t.circles.push(q.collisionDetected?1:0)}const Q="globe"!==a.projection.name;D=D&&(Q||!L),N=N&&(Q||!z),this.placements[m]=new fr(k||D,O||N,R||a.justReloaded),r.add(m)};if(T&&this.buildingIndex&&(this.buildingIndex.updateZOffset(a,this.retainedQueryData[a.bucketInstanceId].tileID),a.updateZOffset()),a.sortFeaturesByY){const t=a.getSortedSymbolIndexes(this.transform.angle);for(let e=t.length-1;e>=0;--e){const r=t[e];z(a.symbolInstances.get(r),r,a.collisionArrays[r])}a.hasAnyZOffset&&e.w("".concat(a.layerIds[0]," layer symbol-z-elevate: symbols are not sorted by elevation if symbol-z-order is evaluated to viewport-y"))}else if(a.hasAnyZOffset){const e=a.getSortedIndexesByZOffset();for(let t=0;t<e.length;++t){const r=e[t];z(a.symbolInstances.get(r),r,a.collisionArrays[r])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)z(a.symbolInstances.get(e),e,a.collisionArrays[e]);if(n&&a.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[a.bucketInstanceId];e.ab.mat4.invert(t.invProjMatrix,c),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1}markUsedJustification(t,r,n,i){const{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:s,verticalPlacedTextSymbolIndex:l,crossTileID:c}=n,u=e.bB(r),d=i===e.bq.vertical?l:"left"===u?o:"center"===u?a:"right"===u?s:-1;o>=0&&(t.text.placedSymbolArray.get(o).crossTileID=d>=0&&o!==d?0:c),a>=0&&(t.text.placedSymbolArray.get(a).crossTileID=d>=0&&a!==d?0:c),s>=0&&(t.text.placedSymbolArray.get(s).crossTileID=d>=0&&s!==d?0:c),l>=0&&(t.text.placedSymbolArray.get(l).crossTileID=d>=0&&l!==d?0:c)}markUsedOrientation(t,r,n){const i=r===e.bq.horizontal||r===e.bq.horizontalOnly?r:0,o=r===e.bq.vertical?r:0,{leftJustifiedTextSymbolIndex:a,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=n,u=t.text.placedSymbolArray;a>=0&&(u.get(a).placedOrientation=i),s>=0&&(u.get(s).placedOrientation=i),l>=0&&(u.get(l).placedOrientation=i),c>=0&&(u.get(c).placedOrientation=o)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const n=t?t.symbolFadeChange(e):1,i=t?t.opacities:{},o=t?t.variableOffsets:{},a=t?t.placedOrientations:{};for(const s in this.placements){const e=this.placements[s],t=i[s];t?(this.opacities[s]=new pr(t,n,e.text,e.icon,null,e.clipped),r=r||e.text!==t.text.placed||e.icon!==t.icon.placed):(this.opacities[s]=new pr(null,n,e.text,e.icon,e.skipFade,e.clipped),r=r||e.text||e.icon)}for(const s in i){const e=i[s];if(!this.opacities[s]){const t=new pr(e,n,!1,!1);t.isHidden()||(this.opacities[s]=t,r=r||e.text.placed||e.icon.placed)}}for(const s in o)this.variableOffsets[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.variableOffsets[s]=o[s]);for(const s in a)this.placedOrientations[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.placedOrientations[s]=a[s]);r?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t,r,n){const i=new Set;for(const o of t){const t=o.getBucket(e);t&&o.latestFeatureIndex&&e.fqid===t.layerIds[0]&&(this.updateBucketOpacities(t,i,o,o.collisionBoxArray,r,n,o.tileID,e.scope),t.layers[0].layout.get("symbol-z-elevate")&&this.buildingIndex&&(this.buildingIndex.updateZOffset(t,o.tileID),t.updateZOffset()))}}updateBucketOpacities(t,r,n,i,o,a,s,l){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const c=t.layers[0].layout,u=t.layers[0].paint,d=!!t.layers[0].dynamicFilter(),h=new pr(null,0,!1,!1,!0),p=c.get("text-allow-overlap"),f=c.get("icon-allow-overlap"),m=c.get("text-variable-anchor"),g="map"===c.get("text-rotation-alignment"),_="map"===c.get("text-pitch-alignment"),y=u.get("symbol-z-offset"),v="sea"===c.get("symbol-elevation-reference"),b=!y.isConstant(),x=new pr(null,0,p&&(f||!t.hasIconData()||c.get("icon-optional")),f&&(p||!t.hasTextData()||c.get("text-optional")),!0);!t.collisionArrays&&i&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(i);const w=(e,t,r)=>{for(let n=0;n<t/4;n++)e.opacityVertexArray.emplaceBack(r)};let A=0;a&&t.updateReplacement(s,a);for(let S=0;S<t.symbolInstances.length;S++){const i=t.symbolInstances.get(S),{numHorizontalGlyphVertices:c,numVerticalGlyphVertices:u,crossTileID:p,numIconVertices:f,tileAnchorX:E,tileAnchorY:T}=i;let P=null;const C=this.retainedQueryData[t.bucketInstanceId];b&&i&&C&&(P=n.latestFeatureIndex.loadFeature({featureIndex:i.featureIndex,bucketIndex:C.bucketIndex,sourceLayerIndex:C.sourceLayerIndex,layoutVertexArrayOffset:0}));const I=y.evaluate(P,{}),M=r.has(p);let k=this.opacities[p];M?k=h:k||(k=x,this.opacities[p]=k),r.add(p);const O=c>0||u>0,R=f>0,L=this.placedOrientations[p],D=L===e.bq.vertical,N=L===e.bq.horizontal||L===e.bq.horizontalOnly;!O&&!R||k.isHidden()||A++;let F=!1;if((O||R)&&a)for(const r of t.activeReplacements){if(e.bx(r,o,e.by.Symbol,l))continue;if(r.min.x>E||E>r.max.x||r.min.y>T||T>r.max.y)continue;const t=e.bz(E,T,s.canonical,r.footprintTileId.canonical);if(F=e.bA(t,r.footprint),F)break}if(O){const e=F?Mr:Ir(k.text);w(t.text,c,D?Mr:e),w(t.text,u,N?Mr:e);const r=k.text.isHidden(),{leftJustifiedTextSymbolIndex:n,centerJustifiedTextSymbolIndex:o,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:s}=i,l=t.text.placedSymbolArray,d=r||D?1:0;n>=0&&(l.get(n).hidden=d),o>=0&&(l.get(o).hidden=d),a>=0&&(l.get(a).hidden=d),s>=0&&(l.get(s).hidden=r||N?1:0);const h=this.variableOffsets[p];h&&this.markUsedJustification(t,h.anchor,i,L);const f=this.placedOrientations[p];f&&(this.markUsedJustification(t,"left",i,f),this.markUsedOrientation(t,f,i))}if(R){const e=F?Mr:Ir(k.icon),{placedIconSymbolIndex:r,verticalPlacedIconSymbolIndex:n}=i,o=t.icon.placedSymbolArray,a=k.icon.isHidden()?1:0;r>=0&&(w(t.icon,f,D?Mr:e),o.get(r).hidden=a),n>=0&&(w(t.icon,i.numVerticalIconVertices,N?Mr:e),o.get(n).hidden=a)}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const r=t.collisionArrays[S];if(r){let n=new e.P(0,0),o=!0;if(r.textBox||r.verticalTextBox){if(m){const e=this.variableOffsets[p];e?(n=yr(e.anchor,e.width,e.height,e.textOffset,e.textScale),g&&n._rotate(_?this.transform.angle:-this.transform.angle)):o=!1}d&&(o=!k.clipped),r.textBox&&xr(t.textCollisionBox.collisionVertexArray,k.text.placed,!o||D,I,v,n.x,n.y),r.verticalTextBox&&xr(t.textCollisionBox.collisionVertexArray,k.text.placed,!o||N,I,v,n.x,n.y)}const a=o&&Boolean(!N&&r.verticalIconBox);r.iconBox&&xr(t.iconCollisionBox.collisionVertexArray,k.icon.placed,a,I,v,i.hasIconTextFit?n.x:0,i.hasIconTextFit?n.y:0),r.verticalIconBox&&xr(t.iconCollisionBox.collisionVertexArray,k.icon.placed,!a,I,v,i.hasIconTextFit?n.x:0,i.hasIconTextFit?n.y:0)}}}if(t.fullyClipped=0===A,t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const r=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*r>e}setStale(){this.stale=!0}}function xr(e,t,r,n,i,o,a){e.emplaceBack(t?1:0,r?1:0,o||0,a||0,n,i?1:0),e.emplaceBack(t?1:0,r?1:0,o||0,a||0,n,i?1:0),e.emplaceBack(t?1:0,r?1:0,o||0,a||0,n,i?1:0),e.emplaceBack(t?1:0,r?1:0,o||0,a||0,n,i?1:0)}
2const wr=Math.pow(2,25),Ar=Math.pow(2,24),Sr=Math.pow(2,17),Er=Math.pow(2,16),Tr=Math.pow(2,9),Pr=Math.pow(2,8),Cr=Math.pow(2,1);function Ir(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,r=Math.floor(127*e.opacity);return r*wr+t*Ar+r*Sr+t*Er+r*Tr+t*Pr+r*Cr+t}const Mr=0;class kr{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(e,t,r,n,i,o){const a=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(a,n,e[this._currentTileIndex],this._sortAcrossTiles,o),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,a.sort(((e,t)=>e.sortKey-t.sortKey)));this._currentPartIndex<a.length;){const e=a[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,r,0===e.symbolInstanceStart,o),this._currentPartIndex++,i())return!0}return!1}}class Or{constructor(e,t,r,n,i,o,a,s,l){this.placement=new br(e,i,o,a,s,l),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1}isDone(){return this._done}continuePlacement(t,r,n,i,o){const a=e.q.now(),s=()=>{const t=e.q.now()-a;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const a=r[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===a.type&&(!a.minzoom||a.minzoom<=l)&&(!a.maxzoom||a.maxzoom>l)){const t=a,r=t.layout.get("symbol-z-elevate"),l=void 0!==t.layout.get("symbol-sort-key").constantOr(1),c=t.layout.get("symbol-z-order"),u="viewport-y"===c||"auto"===c&&!("viewport-y"!==c&&l),d=t.layout.get("text-allow-overlap")||t.layout.get("icon-allow-overlap")||t.layout.get("text-ignore-placement")||t.layout.get("icon-ignore-placement"),h=u&&d,p=this._inProgressLayer=this._inProgressLayer||new kr(t),f=e.aC(a.source,a.scope);if(p.continuePlacement(r||h?i[f]:n[f],this.placement,this._showCollisionBoxes,a,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const Rr=512/e.ag/2;class Lr{constructor(t,r,n){this.tileID=t,this.bucketInstanceId=n,this.index=new e.bE(r.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const i=t.canonical.x*e.ag,o=t.canonical.y*e.ag;for(let e=0;e<r.length;e++){const{key:t,crossTileID:n,tileAnchorX:a,tileAnchorY:s}=r.get(e),l=Math.floor((i+a)*Rr),c=Math.floor((o+s)*Rr);this.index.add(l,c),this.keys.push(t),this.crossTileIDs.push(n)}this.index.finish()}findMatches(t,r,n){const i=this.tileID.canonical.z<r.canonical.z?1:Math.pow(2,this.tileID.canonical.z-r.canonical.z),o=Rr/Math.pow(2,r.canonical.z-this.tileID.canonical.z),a=r.canonical.x*e.ag,s=r.canonical.y*e.ag;for(let e=0;e<t.length;e++){const r=t.get(e);if(r.crossTileID)continue;const{key:l,tileAnchorX:c,tileAnchorY:u}=r,d=Math.floor((a+c)*o),h=Math.floor((s+u)*o),p=this.index.range(d-i,h-i,d+i,h+i);for(const e of p){const t=this.crossTileIDs[e];if(this.keys[e]===l&&!n.has(t)){n.add(t),r.crossTileID=t;break}}}}}class Dr{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Nr{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const r in this.indexes){const e=this.indexes[r],n={};for(const r in e){const i=e[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),n[i.tileID.key]=i}this.indexes[r]=n}this.lng=e}addBucket(e,t,r){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let i=0;i<t.symbolInstances.length;i++)t.symbolInstances.get(i).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]=new Set);const n=this.usedCrossTileIDs[e.overscaledZ];for(const i in this.indexes){const r=this.indexes[i];if(Number(i)>
2e.overscaledZ)for(const i in r){const o=r[i];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,n)}else{const o=r[e.scaledTo(Number(i)).key];o&&o.findMatches(t.symbolInstances,e,n)}}for(let i=0;i<t.symbolInstances.length;i++){const e=t.symbolInstances.get(i);e.crossTileID||(e.crossTileID=r.generate(),n.add(e.crossTileID))}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Lr(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const r of t.crossTileIDs)this.usedCrossTileIDs[e].delete(r)}removeStaleBuckets(e){let t=!1;for(const r in this.indexes){const n=this.indexes[r];for(const i in n)e[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],t=!0)}return t}}class Fr{constructor(){this.layerIndexes={},this.crossTileIDs=new Dr,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,r,n){let i=this.layerIndexes[e.fqid];void 0===i&&(i=this.layerIndexes[e.fqid]=new Nr);let o=!1;const a={};"globe"!==n.name&&i.handleWrapJump(r);for(const s of t){const t=s.getBucket(e);t&&e.fqid===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),i.addBucket(s.tileID,t,this.crossTileIDs)&&(o=!0),a[t.bucketInstanceId]=!0)}return i.removeStaleBuckets(a)&&(o=!0),o}pruneUnusedLayers(e){const t={};e.forEach((e=>{t[e]=!0}));for(const r in this.layerIndexes)t[r]||delete this.layerIndexes[r]}}const zr=771;class jr{constructor(e,t,r,n){this.blendFunction=e,this.blendColor=t,this.mask=r,this.blendEquation=n}}jr.Replace=[1,0,1,0],jr.disabled=new jr(jr.Replace,e.aj.transparent,[!1,!1,!1,!1]),jr.unblended=new jr(jr.Replace,e.aj.transparent,[!0,!0,!0,!0]),jr.alphaBlended=new jr([1,zr,1,zr],e.aj.transparent,[!0,!0,!0,!0]),jr.alphaBlendedNonPremultiplied=new jr([770,zr,770,zr],e.aj.transparent,[!0,!0,!0,!0]),jr.multiply=new jr([774,0,774,0],e.aj.transparent,[!0,!0,!0,!0]);class Br{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}}Br.ReadOnly=!1,Br.ReadWrite=!0,Br.disabled=new Br(519,Br.ReadOnly,[0,1]);const Ur=7680;class Vr{constructor(e,t,r,n,i,o){this.test=e,this.ref=t,this.mask=r,this.fail=n,this.depthFail=i,this.pass=o}}Vr.disabled=new Vr({func:519,mask:0},0,0,Ur,Ur,Ur);const qr=1029,Hr=2305;class Gr{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}}function Wr(t,r){const n=e.bG(t,3);e.ab.mat4.fromQuat(t,r),e.bI(t,3,n)}function Yr(t,r){const n=e.ab.quat.identity([]);return e.ab.quat.rotateZ(n,n,-r),e.ab.quat.rotateX(n,n,-t),n}function Zr(t,r){const n=[t[0],t[1],0],i=[r[0],r[1],0];if(e.ab.vec3.length(n)>=1e-15){const t=e.ab.vec3.normalize([],n);e.ab.vec3.scale(i,t,e.ab.vec3.dot(i,t)),r[0]=i[0],r[1]=i[1]}const o=e.ab.vec3.cross([],r,t);if(e.ab.vec3.len(o)<1e-15)return null;const a=Math.atan2(-o[1],o[0]);return Yr(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),a)}Gr.disabled=new Gr(!1,qr,Hr),Gr.backCCW=new Gr(!0,qr,Hr),Gr.backCW=new Gr(!0,qr,2304),Gr.frontCW=new Gr(!0,1028,2304),Gr.frontCCW=new Gr(!0,1028,Hr);class Kr{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const r=t instanceof e.aa?t:new e.aa(t[0],t[1],t[2]);
2this._renderWorldCopies&&(r.x=e.bF(r.x,0,1)),this._position=r}else this._position=null}lookAtPoint(t,r){if(this.orientation=null,!this.position)return;const n=this.position,i=this._elevation?this._elevation.getAtPointOrZero(e.aa.fromLngLat(t)):0,o=e.aa.fromLngLat(t,i),a=[o.x-n.x,o.y-n.y,o.z-n.z];r||(r=[0,0,1]),r[2]=Math.abs(r[2]),this.orientation=Zr(a,r)}setPitchBearing(t,r){this.orientation=Yr(e.ai(t),e.ai(-r))}}class Xr{constructor(t,r){this._transform=e.ab.mat4.identity([]),this.orientation=r,this.position=t}get mercatorPosition(){const t=this.position;return new e.aa(t[0],t[1],t[2])}get position(){const t=e.bG(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var r;t&&e.bI(this._transform,3,[(r=t)[0],r[1],r[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.ab.quat.identity([]),t&&Wr(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Yr(e,t),Wr(this._transform,this._orientation)}forward(){const t=e.bG(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.bG(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.bG(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,r){const n=new Float64Array(16);return e.ab.mat4.invert(n,this.getWorldToCamera(t,r)),n}getCameraToWorldMercator(){return this._transform}getWorldToCameraPosition(t,r,n){const i=this.position;e.ab.vec3.scale(i,i,-t);const o=new Float64Array(16);return e.ab.mat4.fromScaling(o,[n,n,n]),e.ab.mat4.translate(o,o,i),o[10]*=r,o}getWorldToCamera(t,r){const n=new Float64Array(16),i=new Float64Array(4),o=this.position;return e.ab.quat.conjugate(i,this._orientation),e.ab.vec3.scale(o,o,-t),e.ab.mat4.fromQuat(n,i),e.ab.mat4.translate(n,n,o),n[1]*=-1,n[5]*=-1,n[9]*=-1,n[13]*=-1,n[8]*=r,n[9]*=r,n[10]*=r,n[11]*=r,n}getCameraToClipPerspective(t,r,n,i){const o=new Float64Array(16);return e.ab.mat4.perspective(o,t,r,n,i),o}getCameraToClipOrthographic(t,r,n,i,o,a){const s=new Float64Array(16);return e.ab.mat4.ortho(s,t,r,n,i,o,a),s}getDistanceToElevation(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=0===t?0:e.bH(t,r?e.aS(this.position[1]):this.position[1]),i=this.forward();return(n-this.position[2])/i[2]}clone(){return new Xr([...this.position],[...this.orientation])}}const Jr={BaseColor:5,MetallicRoughness:6,Normal:7,Occlusion:8,Emission:9,LUT:10,ShadowMap0:11};class Qr{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
2if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(r)||r<0||isNaN(n)||n<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=r,this.right=n}interpolate(t,r,n){return null!=r.top&&null!=t.top&&(this.top=e.af(t.top,r.top,n)),null!=r.bottom&&null!=t.bottom&&(this.bottom=e.af(t.bottom,r.bottom,n)),null!=r.left&&null!=t.left&&(this.left=e.af(t.left,r.left,n)),null!=r.right&&null!=t.right&&(this.right=e.af(t.right,r.right,n)),this}getCenter(t,r){const n=e.aw((this.left+t-this.right)/2,0,t),i=e.aw((this.top+r-this.bottom)/2,0,r);return new e.P(n,i)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new Qr(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const $r=(e,t,r)=>(1-r)*e+r*t,en=e=>e*e*e*e*e;class tn{constructor(t,r,n,i,o,a,s){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=r||22,this._minPitch=null!==n&&void 0!==n?n:0,this._maxPitch=null!==i&&void 0!==i?i:60,this.setProjection(a),this.setMaxBounds(s),this.width=0,this.height=0,this._center=new e.bO(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new Qr,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._expandedProjMatrixCache={},this._distanceTileDataCache={},this._camera=new Xr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._tileCoverLift=0,this.freezeTileCoverage=!1,this._horizonShift=.1,this._orthographicProjectionAtLowPitch=!1}clone(){const e=new tn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForE
2xaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.mercatorFromTransition=this.mercatorFromTransition,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._orthographicProjectionAtLowPitch=this._orthographicProjectionAtLowPitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e}get isOrthographic(){return"globe"!==this.projection.name&&this._orthographicProjectionAtLowPitch&&this.pitch<15}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}get depthOcclusionForSymbolsAndCircles(){return"globe"!==this.projection.name&&!this.isOrthographic}updateElevation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForE
vendor: 3,955 bytes, line 2
2xaggeration;(null==this._seaLevelZoom||r)&&this._updateCameraOnTerrain(),(e||r)&&this._constrainCamera(t),this._calcMatrices()}getProjection(){return e.ay(this.projection,["name","center","parallels"])}setProjection(t){this.projectionOptions=t||{name:"mercator"};const r=this.projection?this.getProjection():void 0;this.projection=e.bP(this.projectionOptions);const n=this.getProjection(),i=!e.bn(r,n);return i&&this._calcMatrices(),this.mercatorFromTransition=!1,i}setOrthographicProjectionAtLowPitch(e){return this._orthographicProjectionAtLowPitch!==e&&(this._orthographicProjectionAtLowPitch=e,this._calcMatrices(),!0)}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.bP({name:"mercator"});const r=t!==this.projection.name;return r&&this._calcMatrices(),r}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.bH(1,this.center.lat)*this.cameraWorldSizeForFog}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.P(this.width,this.height)}get bearing(){return e.bF(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const r=-t*Math.PI/180;this.angle!==r&&(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=e.ab.mat2.create(),e.ab.mat2.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const r=e.aw(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&&(this._unmodified=!1,this._pitch=r,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const e=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/e)}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=e.ai(t),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}get tileCoverLift(){return this._tileCoverLift}set tileCoverLift(e){this._tileCoverLift!==e&&(this._tileCoverLift=e)}_updateCameraOnTerrain(){const e=this.elevation?this.elevation.getAtPoint(this.locationCoordinate(this.center),Number.NEGATIVE_INFINITY):Number.NEGATIVE_INFINITY,t=this.elevation&&e===Number.NEGATIVE_INFINITY&&this.elevation.visibleDemTiles.length>0&&this.elevation.exaggeration()>
20&&this._centerAltitudeValidForExaggeration;if(!this._elevation||e===Number.NEGATIVE_INFINITY&&(!t||!this._centerAltitude))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const r=this._elevation;t||this._centerAltitude&&this._centerAltitudeValidForExaggeration&&r.exaggeration()&&this._centerAltitudeValidForExaggeration!==r.exaggeration()?(this._centerAltitude=this._centerAltitude/this._centerAltitudeValidForExaggeration*r.exaggeration(),this._centerAltitudeValidForExaggeration=r.exaggeration()):(this._centerAltitude=e||0,this._centerAltitudeValidForExaggeration=r.exaggeration()),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,r=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],n=this.horizonLineFromTop();let i=0,o=0;for(let a=0;a<r.length;a++){const s=new e.P(r[a][0]*this.width,n+r[a][1]*(this.height-n)),l=t.pointCoordinate(s);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);i+=l[3]*c,o+=c}return 0===o?NaN:i/o}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),r=this.pixelsPerMeter/this.worldSize*t,n=this._mercatorZfromZoom(e),i=this._mercatorZfromZoom(this._maxZoom),o=Math.max(n-r,i);this._setZoom(this._zoomFromMercatorZ(o))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const r=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let n;n=t.z<this._camera.position[2]?[r.x,r.y,r.z]:[t.x,t.y,t.z];const i=e.ab.vec3.length(e.ab.vec3.sub([],this._camera.position,n));return e.aw(this._zoomFromMercatorZ(i),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let r=!1;if(t.orientation&&!e.ab.quat.exactEquals(t.orientation,this._camera.orientation)&&(r=this._setCameraOrientation(t.orientation)),t.position){const n=[t.position.x,t.position.y,t.position.z];e.ab.vec3.exactEquals(n,this._camera.position)||(this._setCameraPosition(n),r=!0)}r&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,r=new Kr;return r.position=new e.aa(t[0],t[1],t[2]),r.orientation=this._camera.orientation,r._elevation=this.elevation,r._renderWorldCopies=this.renderWorldCopies,r}_setCameraOrientation(t){if(!e.ab.quat.length(t))return!1;e.ab.quat.normalize(t,t);const r=e.ab.vec3.transformQuat([],[0,0,-1],t),n=e.ab.vec3.transformQuat([],[0,-1,0],t);if(n[2]<0)return!1;const i=Zr(r,n);return!!i&&(this._camera.orientation=i,!0)}_setCameraPosition(t){const r=this.zoomScale(this.minZoom)*this.tileSize,n=this.zoomScale(this.maxZoom)*this.tileSize,i=this.cameraToCenterDistance;t[2]=e.aw(t[2],i/n,i/r),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const r=[new e.bQ(0,t)];if(this.renderWorldCopies){const n=this.pointCoordinate(new e.P(0,0)),i=this.pointCoordinate(new e.P(this.width,0)),o=this.pointCoordinate(new e.P(this.width,this.height)),a=this.pointCoordinate(new e.P(0,this.height)),s=Math.floor(Math.min(n.x,i.x,o.x,a.x)),l=Math.floor(Math.max(n.x,i.x,o.x,a.x)),c=1;for(let u=s-c;u<=l+c;u++)0!==u&&r.push(new e.bQ(u,t))}return r}isLODDisabled(e){return(!e||this.pitch<=60)&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace}extendTileCover(t,r,n){let i=[];const o=void 0!==n,a=!o;if(a&&this.zoom<r)return i;if(o&&0===n[0]&&0===n[1])return i;const s=new Set,l=(t,r,n,o,a)=>{const l=e.c5(r,t,n,o,a);s.has(l)||(i.push(new e.aG(t,r,n,o,a)),s.add(l))};for(let e=0;e<t.length;e++){const i=t[e];if(a&&i.canonical.z!==r)continue;
vendor: 4,644 bytes, line 2
2const s=i.canonical,c=i.overscaledZ,u=i.wrap,d=1<<s.z,h=s.x+1<d,p=s.x>0,f=s.y+1<d,m=s.y>0,g=i.wrap-(p?0:1),_=i.wrap+(h?0:1),y=p?s.x-1:d-1,v=h?s.x+1:0;if(o)n[0]<0?(l(c,_,s.z,v,s.y),n[1]<0&&f&&(l(c,u,s.z,s.x,s.y+1),l(c,_,s.z,v,s.y+1)),n[1]>0&&m&&(l(c,u,s.z,s.x,s.y-1),l(c,_,s.z,v,s.y-1))):n[0]>0?(l(c,g,s.z,y,s.y),n[1]<0&&f&&(l(c,u,s.z,s.x,s.y+1),l(c,g,s.z,y,s.y+1)),n[1]>0&&m&&(l(c,u,s.z,s.x,s.y-1),l(c,g,s.z,y,s.y-1))):n[1]<0&&f?l(c,u,s.z,s.x,s.y+1):m&&l(c,u,s.z,s.x,s.y-1);else{const e=i.visibleQuadrants;1&e&&(l(c,g,s.z,y,s.y),m&&(l(c,u,s.z,s.x,s.y-1),l(c,g,s.z,y,s.y-1))),2&e&&(l(c,_,s.z,v,s.y),m&&(l(c,u,s.z,s.x,s.y-1),l(c,_,s.z,v,s.y-1))),4&e&&(l(c,g,s.z,y,s.y),f&&(l(c,u,s.z,s.x,s.y+1),l(c,g,s.z,y,s.y+1))),8&e&&(l(c,_,s.z,v,s.y),f&&(l(c,u,s.z,s.x,s.y+1),l(c,_,s.z,v,s.y+1)))}}const c=[];for(const e of i)i.some((t=>e.isChildOf(t)))||c.push(e);if(i=c.filter((e=>!t.some((t=>!!(e.overscaledZ<r&&t.isChildOf(e))||e.equals(t)||e.isChildOf(t))))),a){const e=1<<r,t="globe"===this.projection.name?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),n=[e*t.x,e*t.y],o=4,a=o*o;i=i.filter((e=>{const t=e.canonical.x+.5-n[0],r=e.canonical.y+.5-n[1];return t*t+r*r<a}))}return i}coveringTiles(t){let r=this.coveringZoomLevel(t);const n=r,i=this.elevation&&this.elevation.exaggeration(),o=i&&!t.isTerrainDEM,a="mercator"===this.projection.name;if(void 0!==t.minzoom&&r<t.minzoom)return[];void 0!==t.maxzoom&&r>t.maxzoom&&(r=t.maxzoom);const s=this.locationCoordinate(this.center),l=this.center.lat,c=1<<r,u=[c*s.x,c*s.y,0],d="globe"===this.projection.name,h=!d,p=e.bR.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r,h),f=d?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),m=c*e.bH(1,this.center.lat),g=this._camera.position[2]/e.bH(1,this.center.lat),_=[c*f.x,c*f.y,g*(h?1:m)],y=d||i,v=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),b=this.isLODDisabled(!0)?r:0;let x;if(this._elevation&&t.isTerrainDEM)x=1e4*this._elevation.exaggeration();else if(this._elevation){const e=this._elevation.getMinMaxForVisibleTiles();x=e?e.max:this._centerAltitude}else x=this._centerAltitude;const w=t.isTerrainDEM?-x:this._elevation?this._elevation.getMinElevationBelowMSL():0,A=this.projection.isReprojectedInTileSpace?e.bS(this):1,S=t=>{const r=1/4e4,n=new e.aa(t.x+r,t.y,t.z),i=new e.aa(t.x,t.y+r,t.z),o=t.toLngLat(),a=n.toLngLat(),s=i.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(a),u=this.locationCoordinate(s),d=Math.hypot(c.x-l.x,c.y-l.y),h=Math.hypot(u.x-l.x,u.y-l.y);return Math.sqrt(d*h)*A/r},E=t=>{const r=x,n=w;return{aabb:e.bV(this,c,0,0,0,t,n,r,this.projection),zoom:0,x:0,y:0,minZ:n,maxZ:r,wrap:t,fullyVisible:!1}},T=[];let P=[];const C=r,I=t.reparseOverscaled?n:r,M=(g-this._centerAltitude)*m,k=e=>{if(!this._elevation||!e.tileID||!a)return;const t=this._elevation.getMinMaxForTile(e.tileID),r=e.aabb;t?(r.min[2]=t.min,r.max[2]=t.max,r.center[2]=(r.min[2]+r.max[2])/2):(e.shouldSplit=R(e),e.shouldSplit||(r.min[2]=r.max[2]=r.center[2]=this._centerAltitude))},O=(e,t)=>{if(.707*t<e)return 1;const r=t/e;return r/(1.4144271570014144+(Math.pow(1.1,r-1.4144271570014144+1)-1)/(1.1-1)-1)},R=t=>{if(t.zoom<b)return!0;if(t.zoom===C)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const r=t.aabb.distanceX(_),i=t.aabb.distanceY(_);let s=M,c=1;if(d){s=t.aabb.distanceZ(_);const r=Math.pow(2,t.zoom),n=e.aS((t.y+1)/r),i=e.aS(t.y/r),o=Math.min(Math.max(l,n),i),a=e.c9(o)/e.c9(l);if(c=o===l?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,a/this._mercatorScaleRatio),this.zoom<=e.c6&&t.zoom===C-1&&a>=.9)return!0}else if(o&&(s=t.aabb.distanceZ(_)*m),this.projection.isReprojectedInTileSpace&&n<=5){const r=Math.pow(2,t.zoom),n=S(new e.aa((t.x+.5)/r,(t.y+.5)/r));c=n>.85?1:n}if(!a){const e=Math.sqrt(r*r+i*i+s*s);let n=(1<<C-t.zoom)*v*c;return n*=O(Math.max(s,M),e),e<n}let h=Number.MAX_VALUE,p=0;const f=t.aabb.getCorners(),g=[];for(const n of f){e.ab.vec3.sub(g,n,_),d||(o?g[2]*=m:g[2]=M);const t=e.ab.vec3.dot(g,this._camera.forward());t<h&&(h=t,p=Math.abs(g[2]))}let y=(1<<C-t.zoom)*v*c;if(y*=O(Math.max(p,M),h),h<y)return!0;const x=t.aabb.closestPoint(u);return x[0]===u[0]&&x[1]===u[1]};if(this.renderWorldCopies)for(let e=1;e<=3;e++)T.push(E(-e)),T.push(E(e));for(T.push(E(0));T.length>0;){const n=T.pop(),i=n.x,s=n.y;let l=n.fullyVisible;const h=()=>"globe"===this.projection.name&&(0===n.y||n.y===(1<<n.zoom)-1);if(!l){let t=y?n.aabb.intersects(p):n.aabb.intersectsFlat(p);if(0===t&&h()){const r=new e.bT(n.zoom,i,s);t=e.bU(this,c,r,!0).intersects(p)}if(0===t)continue;l=2===t}if(n.zoom!==C&&R(n))for(let t=0;t<4;t++){const r=(i<<1)+t%2,u=(s<<1)+(t>>
21),h={aabb:a?n.aabb.quadrant(t):e.bV(this,c,n.zoom+1,r,u,n.wrap,n.minZ,n.maxZ,this.projection),zoom:n.zoom+1,x:r,y:u,wrap:n.wrap,fullyVisible:l,tileID:void 0,shouldSplit:void 0,minZ:n.minZ,maxZ:n.maxZ};o&&!d&&(h.tileID=new e.aG(n.zoom+1===C?I:n.zoom+1,n.wrap,n.zoom+1,r,u),k(h)),T.push(h)}else{const o=n.zoom===C?I:n.zoom;if(t.minzoom&&t.minzoom>o)continue;let a=0;if(!l){let r=y?n.aabb.intersectsPrecise(p):n.aabb.intersectsPreciseFlat(p);if(0===r&&h()){const t=new e.bT(n.zoom,i,s);r=e.bU(this,c,t,!0).intersectsPrecise(p)}if(0===r)continue;if(t.calculateQuadrantVisibility)if(p.containsPoint(n.aabb.center))a=15;else for(let e=0;e<4;e++)0!==n.aabb.quadrant(e).intersects(p)&&(a|=1<<e)}const d=u[0]-(.5+i+(n.wrap<<n.zoom))*(1<<r-n.zoom),f=u[1]-.5-s,m=n.tileID?n.tileID:new e.aG(o,n.wrap,n.zoom,i,s);t.calculateQuadrantVisibility&&(m.visibleQuadrants=a),P.push({tileID:m,distanceSq:d*d+f*f})}}if(this.fogCullDistSq){const r=this.fogCullDistSq,n=this.horizonLineFromTop();P=P.filter((i=>{const o=[0,0,0,1],a=[e.ag,e.ag,0,1],s=this.calculateFogTileMatrix(i.tileID.toUnwrapped());e.ab.vec4.transformMat4(o,o,s),e.ab.vec4.transformMat4(a,a,s);const l=e.ab.vec4.min([],o,a),c=e.ab.vec4.max([],o,a),u=e.bW(l,c);if(0===u)return!0;let d=!1;const h=this._elevation;if(h&&u>r&&0!==n){const r=this.calculateProjMatrix(i.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=h.getMinMaxForTile(i.tileID)),o||(o={min:w,max:x});const a=e.c7(this.rotation),s=[a[0]*e.ag,a[1]*e.ag,o.max];e.ab.vec3.transformMat4(s,s,r),d=(1-s[1])*this.height*.5<n}return u<r||d}))}return P.sort(((e,t)=>e.distanceSq-t.distanceSq)).map((e=>e.tileID))}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const r=e.aw(t.lat,-e.bX,e.bX),n=this.projection.project(t.lng,r);return new e.P(n.x*this.worldSize,n.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/e.bH(1,this.center.lat)/this.worldSize}setLocationAtPoint(t,r){let n,i;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;n=(r.x-o.x)/e,i=(r.y-o.y)/e}else{const e=this.pointCoordinate(r),t=this.pointCoordinate(o);n=e.x-t.x,i=e.y-t.y}const a=this.locationCoordinate(t);this.setLocation(new e.aa(a.x-n,a.y-i))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this.projection.locationPoint(this,e,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,r){const n=r?e.bH(r,t.lat):void 0,i=this.projection.project(t.lng,t.lat);return new e.aa(i.x,i.y,n)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,r){const n=null!=r?r:this._centerAltitude,i=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.ab.vec4.transformMat4(i,i,this.pixelMatrixInverse),e.ab.vec4.transformMat4(o,o,this.pixelMatrixInverse);const a=o[3];e.ab.vec4.scale(i,i,1/i[3]),e.ab.vec4.scale(o,o,1/a);const s=i[2],l=o[2];return{p0:i,p1:o,t:s===l?0:(n-s)/(l-s)}}screenPointToMercatorRay(t){const r=[t.x,t.y,0,1],n=[t.x,t.y,1,1];return e.ab.vec4.transformMat4(r,r,this.pixelMatrixInverse),e.ab.vec4.transformMat4(n,n,this.pixelMatrixInverse),e.ab.vec4.scale(r,r,1/r[3]),e.ab.vec4.scale(n,n,1/n[3]),r[2]=e.bH(r[2],this._center.lat)*this.worldSize,n[2]=e.bH(n[2],this._center.lat)*this.worldSize,e.ab.vec4.scale(r,r,1/this.worldSize),e.ab.vec4.scale(n,n,1/this.worldSize),new e.aq([r[0],r[1],r[2]],e.ab.vec3.normalize([],e.ab.vec3.sub([],n,r)))}rayIntersectionCoordinate(t){const{p0:r,p1:n,t:i}=t,o=e.bH(r[2],this._center.lat),a=e.bH(n[2],this._center.lat);return new e.aa(e.af(r[0],n[0],i)/this.worldSize,e.af(r[1],n[1],i)/this.worldSize,e.af(o,a,i))}pointCoordinate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._centerAltitude;return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);let r=this.projection.pointCoordinate3D(this,t.x,t.y);if(r)return new e.aa(r[0],r[1],r[2]);let n=0,i=this.horizonLineFromTop();if(t.y>i)return this.pointCoordinate(t);const o=.02*i,a=t.clone();for(let s=0;s<10&&i-n>o;s++){a.y=e.af(n,i,.66);const t=this.projection.pointCoordinate3D(this,a.x,a.y);t?(i=a.y,r=t):n=a.y}return r?new e.aa(r[0],r[1],r[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}isPointOnSurface(t){if(t.y<0||t.y>this.height||t.x<0||t.x>this.width)return!1;if(this.elevation||this.zoom>=e.bY)return!this.isPointAboveHorizon(t);const r=this.pointCoordinate(t);return r.y>=0&&r.y<=1}_coordinatePoint(t,r){const n=r&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,i=[t.x*this.worldSize,t.y*this.worldSize,n+t.toAltitude(),1];return e.ab.vec4.transformMat4(i,i,this.pixelMatrix),i[3]>
20?new e.P(i[0]/i[3],i[1]/i[3]):new e.P(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:t,left:r}=this._edgeInsets,n=this.height-this._edgeInsets.bottom,i=this.width-this._edgeInsets.right,o=this.pointLocation3D(new e.P(r,t)),a=this.pointLocation3D(new e.P(i,t)),s=this.pointLocation3D(new e.P(i,n)),l=this.pointLocation3D(new e.P(r,n));let c=Math.min(o.lng,a.lng,s.lng,l.lng),u=Math.max(o.lng,a.lng,s.lng,l.lng),d=Math.min(o.lat,a.lat,s.lat,l.lat),h=Math.max(o.lat,a.lat,s.lat,l.lat);const p=Math.pow(2,-this.zoom)/16*270,f="globe"===this.projection.name?1:4,m=(t,r,n,i,o)=>{const a=(t+n)/2,s=(r+i)/2,l=new e.P(a,s),{lng:g,lat:_}=this.pointLocation3D(l),y=Math.max(0,c-g,d-_,g-u,_-h);c=Math.min(c,g),u=Math.max(u,g),d=Math.min(d,_),h=Math.max(h,_),(o<f||y>p)&&(m(t,r,a,s,o+1),m(a,s,n,i,o+1))};if(m(r,t,i,t,1),m(i,t,i,n,1),m(i,n,r,n,1),m(r,n,r,t,1),"globe"===this.projection.name){const[t,r]=e.bZ(this);t?(h=90,u=180,c=-180):r&&(d=-90,u=180,c=-180)}return new e.az(new e.bO(c,d),new e.bO(u,h))}_getBoundsRectangular(t,r){const{top:n,left:i}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,a=this.width-this._edgeInsets.right,s=new e.P(i,n),l=new e.P(a,n),c=new e.P(a,o),u=new e.P(i,o);let d=this.pointCoordinate(s,t),h=this.pointCoordinate(l,t);const p=this.pointCoordinate(c,r),f=this.pointCoordinate(u,r),m=(e,t)=>(t.y-e.y)/(t.x-e.x);return d.y>1&&h.y>=0?d=new e.aa((1-f.y)/m(f,d)+f.x,1):d.y<0&&h.y<=1&&(d=new e.aa(-f.y/m(f,d)+f.x,0)),h.y>1&&d.y>=0?h=new e.aa((1-p.y)/m(p,h)+p.x,1):h.y<0&&d.y<=1&&(h=new e.aa(-p.y/m(p,h)+p.x,0)),(new e.az).extend(this.coordinateLocation(d)).extend(this.coordinateLocation(h)).extend(this.coordinateLocation(f)).extend(this.coordinateLocation(p))}_getBoundsRectangularTerrain(){const e=this.elevation;if(!e.visibleDemTiles.length||e.isUsingMockSource())return this._getBoundsRectangular(0,0);const t=e.visibleDemTiles.reduce(((e,t)=>{if(t.dem){const r=t.dem.tree;e.min=Math.min(e.min,r.minimums[0]),e.max=Math.max(e.max,r.maximums[0])}return e}),{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))-this.centerOffset.y,r=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,r):r}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.bX,this.maxLat=e.bX,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=e.at(this.minLng)*this.tileSize,this.worldMaxX=e.at(this.maxLng)*this.tileSize,this.worldMinY=e.aA(this.maxLat)*this.tileSize,this.worldMaxY=e.aA(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const r=t.key,n=this._distanceTileDataCache;if(n[r])return n[r];const i=t.canonical,o=1/this.height,a=this.cameraWorldSize,s=a/this.zoomScale(i.z),l=(i.x+Math.pow(2,i.z)*t.wrap)*s,c=i.y*s,u=this.point;u.x*=a/this.worldSize,u.y*=a/this.worldSize;const d=this.angle,h=Math.sin(-d),p=-Math.cos(-d);return n[r]={bearing:[h,p],center:[(u.x-l)*o,(u.y-c)*o],scale:s/e.ag*o},n[r]}calculateFogTileMatrix(t){const r=t.key,n=this._fogTileMatrixCache;if(n[r])return n[r];const i=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,t);return e.ab.mat4.multiply(i,this.worldToFogMatrix,i),n[r]=new Float32Array(i),n[r]}calculateProjMatrix(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=t.key;let o;if(o=n?this._expandedProjMatrixCache:r?this._alignedProjMatrixCache:this._projMatrixCache,o[i])return o[i];const a=this.calculatePosMatrix(t,this.worldSize);let s;return s=this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.expandedFarZProjMatrix:r?this.alignedProjMatrix:this.projMatrix,e.ab.mat4.multiply(a,s,a),o[i]=new Float32Array(a),o[i]}calculatePixelsToTileUnitsMatrix(t){const r=t.tileID.key,n=this._pixelsToTileUnitsCache;if(n[r])return n[r];const i=e.b_(t,this);return n[r]=i,n[r]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const t=1/this.worldSize,r=e.ab.mat4.fromScaling([],[t,t,t]);return e.ab.mat4.multiply(r,r,this.globeMatrix),r}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const t=this._elevation;this._updateCameraState();const r=e.bH(1,this._center.lat)*this.worldSize,n=this._computeCameraPosition(r),i=this._camera.forward(),o=e.bH(1,this._center.lat);n[2]/=o,i[2]/=o,e.ab.vec3.normalize(i,i);const a=t.raycast(n,i,t.exaggeration());if(a){const t=e.ab.vec3.scaleAndAdd([],n,i,a),r=new e.aa(t[0],t[1],e.bH(t[2],e.aS(t[1]))),s=(r.z+e.ab.vec3.length([r.x-n[0],r.y-n[1],r.z-n[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(s),this._centerAltitude=r.toAltitude(),this._center=this.coordinateLocation(r),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._elevation)return;const r=this._elevation,n=e.bH(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(n),o=r.getAtPointOrZero(new e.aa(...i)),a=this.pixelsPerMeter/this.worldSize*o,s=this._minimumHeightOverTerrain(),l=i[2]-a;if(l<=s)if(l<0||t){const t=this.locationCoordinate(this._center,this._centerAltitude),r=[i[0],i[1],t.z-i[2]],n=e.ab.vec3.length(r);r[2]-=(s-l)/this._pixelsPerMercatorPixel;const o=e.ab.vec3.length(r);if(0===o)return;e.ab.vec3.scale(r,r,n/o*this._pixelsPerMercatorPixel),this._camera.position=[i[0],i[1],t.z*this._pixelsPerMercatorPixel-r[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const t="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||t){const r=this.center;return r.lat=e.aw(r.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!t)&&(r.lng=e.aw(r.lng,this.minLng,this.maxLng)),this.center=r,void(this._constraining=!1)}const r=this._unmodified,{x:n,y:i}=this.point;let o=0,a=n,s=i;const l=this.width/2,c=this.height/2,u=this.worldMinY*this.scale,d=this.worldMaxY*this.scale;if(i-c<u&&(s=u+c),i+c>d&&(s=d-c),d-u<this.height&&(o=Math.max(o,this.height/(d-u)),s=(d+u)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,r=this.worldSize/2-(e+t)/2;a=(n+r+this.worldSize)%this.worldSize-r,a-l<e&&(a=e+l),a+l>t&&(a=t-l),t-e<this.width&&(o=Math.max(o,this.width/(t-e)),a=(t+e)/2)}a===n&&s===i||(this.center=this.unproject(new e.P(a,s))),o&&(this.zoom+=this.scaleZoom(o)),this._constrainCamera(),this._unmodified=r,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}
2_calcMatrices(){if(!this.height)return;const t=this.centerOffset,r="globe"===this.projection.name,n=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=e.bH(1,this.center.lat)/e.bH(1,e.c8));const i=e.b$(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,i),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const o="meters"===this.projection.zAxisUnit?n:1,a=this._camera.getWorldToCamera(this.worldSize,o);let s;const l=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);if(l[8]=2*-t.x/this.width,l[9]=2*t.y/this.height,this.isOrthographic){let e=.5*this.height/Math.tan(this._fov/2)*1*Math.tan(.5*this._fov),r=e*this.aspect,n=-r,i=-e;r-=t.x,n-=t.x,e+=t.y,i+=t.y,s=this._camera.getCameraToClipOrthographic(n,r,i,e,this._nearZ,this._farZ),((e,t,r,n)=>{for(let i=0;i<16;i++)e[i]=$r(t[i],r[i],n)})(s,s,l,en(this.pitch>=15?1:this.pitch/15))}else s=l;const c=e.ab.mat4.mul([],l,a);let u=e.ab.mat4.mul([],s,a);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),r=e.ab.mat4.identity([]);e.ab.mat4.translate(r,r,[t.x*this.worldSize,t.y*this.worldSize,0]),e.ab.mat4.multiply(r,r,e.c0(this)),e.ab.mat4.translate(r,r,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.ab.mat4.multiply(u,u,r),e.ab.mat4.multiply(c,c,r),this.inverseAdjustmentMatrix=e.c1(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];if(this.mercatorMatrix=e.ab.mat4.scale([],u,[this.worldSize,this.worldSize,this.worldSize/o,1]),this.projMatrix=u,this.invProjMatrix=e.ab.mat4.invert(new Float64Array(16),this.projMatrix),r){const r=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,1/0);r[8]=2*-t.x/this.width,r[9]=2*t.y/this.height,this.expandedFarZProjMatrix=e.ab.mat4.mul([],r,a)}else this.expandedFarZProjMatrix=this.projMatrix;const d=e.ab.mat4.invert([],s);this.frustumCorners=e.c2.fromInvProjectionMatrix(d,this.horizonLineFromTop(),this.height),this.cameraFrustum=e.bR.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,0,!r);const h=new Float32Array(16);e.ab.mat4.identity(h),e.ab.mat4.scale(h,h,[1,-1,1]),e.ab.mat4.rotateX(h,h,this._pitch),e.ab.mat4.rotateZ(h,h,this.angle);const p=e.ab.mat4.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ);this.starsProjMatrix=e.ab.mat4.clone(p);const f=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;p[8]=2*-t.x/this.width,p[9]=2*(t.y+f)/this.height,this.skyboxMatrix=e.ab.mat4.multiply(h,p,h);const m=this.point,g=m.x,_=m.y,y=this.width%2/2,v=this.height%2/2,b=Math.cos(this.angle),x=Math.sin(this.angle),w=g-Math.round(g)+b*y+x*v,A=_-Math.round(_)+b*v+x*y,S=new Float64Array(u);if(e.ab.mat4.translate(S,S,[w>.5?w-1:w,A>.5?A-1:A,0]),this.alignedProjMatrix=S,u=e.ab.mat4.create(),e.ab.mat4.scale(u,u,[this.width/2,-this.height/2,1]),e.ab.mat4.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=e.ab.mat4.create(),e.ab.mat4.scale(u,u,[1,-1,1]),e.ab.mat4.translate(u,u,[-1,-1,0]),e.ab.mat4.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=e.ab.mat4.multiply(new Float64Array(16),this.labelPlaneMatrix,c),this._calcFogMatrices(),this._distanceTileDataCache={},u=e.ab.mat4.invert(new Float64Array(16),this.pixelMatrix),!u)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=u,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.c3(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.ab.vec3.transformMat4(t,t,a),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=u;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={},this._expandedProjMatrixCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSizeForFog,r=this.cameraPixelsPerMeter,n=this._camera.position,i=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,r];e.ab.vec3.scale(o,o,i),e.ab.vec3.scale(n,n,-1),e.ab.vec3.multiply(n,n,o);const a=e.ab.mat4.create();e.ab.mat4.translate(a,a,n),e.ab.mat4.scale(a,a,o),this.mercatorFogMatrix=a,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,r,i)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,r=this._camera.forward(),n=this.point,i=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[n.x/this.worldSize-r[0]*i,n.y/this.worldSize-r[1]*i,e/this.worldSize*this._centerAltitude-r[2]*i]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const r=this._maxCameraBoundsDistance()*Math.cos(this._pitch),n=this._camera.position[2],i=t[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),i>0&&(o=Math.min((r-n)/i,1)),this._camera.position=e.ab.vec3.scaleAndAdd([],this._camera.position,t,o),this._updateStateFromCamera()}_updateStateFromCamera(){const t=this._camera.position,r=this._camera.forward(),{pitch:n,bearing:i}=this._camera.getPitchBearing(),o=e.bH(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,a=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.ai(this._maxPitch)),s=Math.max((t[2]-o)/Math.cos(n),a),l=this._zoomFromMercatorZ(s);e.ab.vec3.scaleAndAdd(t,t,r,s),this._pitch=e.aw(n,e.ai(this.minPitch),e.ai(this.maxPitch)),this.angle=e.bF(i,-Math.PI,Math.PI),this._setZoom(e.aw(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.aa(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min(null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom,this._maxZoom)+4;return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}zoomFromMercatorZAdjusted(t){let r=0,n=e.bY,i=0,o=1/0;for(;n-r>1e-6&&n>r;){const e=r+.5*(n-r),a=this.tileSize*Math.pow(2,e),s=this.getCameraToCenterDistance(this.projection,e,a),l=this.scaleZoom(s/(t*this.tileSize)),c=Math.abs(e-l);c<o&&(o=c,i=e),e<l?r=e:n=e}return i}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.w("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(t,r){const n=Math.min(t.x,r.x),i=Math.max(t.x,r.x),o=Math.min(t.y,r.y),a=Math.max(t.y,r.y);if(o<this.horizonLineFromTop(!1))return!0;
2if("mercator"!==this.projection.name)return!1;const s=[new e.P(n,o),new e.P(i,a),new e.P(n,a),new e.P(i,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const e of s){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const r=this.rayIntersectionCoordinate(t);if(r.x<l||r.y<0||r.x>c||r.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.c4(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.P(0,0),new e.P(this.width,this.height))}zoomDeltaToMovement(t,r){const n=e.ab.vec3.length(e.ab.vec3.sub([],this._camera.position,t)),i=this._zoomFromMercatorZ(n)+r;return n-this._mercatorZfromZoom(i)}getCameraPoint(){if("globe"===this.projection.name){const t=function(t,r){let[n,i,o]=t;const a=[n,i,o,1];e.ab.vec4.transformMat4(a,a,r);const s=a[3]=Math.max(a[3],1e-6);return a[0]/=s,a[1]/=s,a[2]/=s,a}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.P(t[0],t[1])}{const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.P(0,t))}}getCameraToCenterDistance(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.zoom,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.worldSize;const i=e.b$(t,r,this.width,this.height,1024),o=t.pixelSpaceConversion(this.center.lat,n,i);let a=.5/Math.tan(.5*this._fov)*this.height*o;return this.isOrthographic&&(a=$r(1,a,en(this.pitch>=15?1:this.pitch/15))),a}getWorldToCameraMatrix(){const t=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&e.ab.mat4.multiply(t,t,this.globeMatrix),t}getFrustum(t){return e.bR.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,t,"meters"===this.projection.zAxisUnit)}}const rn=(t,r)=>{if(r>0&&t.terrain&&e.w("Cutoff is currently disabled on terrain"),r<=0||t.terrain)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,1]}};const n=t.transform,i=Math.max(Math.abs(n._zoom-(t.minCutoffZoom-1)),1),o=n.isLODDisabled(!1)?e.ac(60,45,n.pitch):e.ac(30,15,n.pitch),a=n._farZ-n._nearZ,s=r*n.height,l=((1-(c=o))*n.cameraToCenterDistance+c*(n._farZ+s))*i;var c;return{shouldRenderCutoff:o<1,uniformValues:{u_cutoff_params:[n._nearZ,n._farZ,(l-n._nearZ)/a,(l-s-n._nearZ)/a]}}},nn={cascadeCount:2,normalOffset:3,shadowMapResolution:2048};class on{constructor(e,t){this.aabb=e,this.lastCascade=t}}class an{add(e,t){const r=this.receivers[e.key];void 0!==r?(r.aabb.min[0]=Math.min(r.aabb.min[0],t.min[0]),r.aabb.min[1]=Math.min(r.aabb.min[1],t.min[1]),r.aabb.min[2]=Math.min(r.aabb.min[2],t.min[2]),r.aabb.max[0]=Math.max(r.aabb.max[0],t.max[0]),r.aabb.max[1]=Math.max(r.aabb.max[1],t.max[1]),r.aabb.max[2]=Math.max(r.aabb.max[2],t.max[2])):this.receivers[e.key]=new on(t,null)}clear(){this.receivers={}}get(e){return this.receivers[e.key]}computeRequiredCascades(t,r,n){const i=e.cd.fromPoints(t.points);let o=0;for(const a in this.receivers){const t=this.receivers[a];if(!t)continue;if(!i.intersectsAabb(t.aabb))continue;t.aabb.min=i.closestPoint(t.aabb.min),t.aabb.max=i.closestPoint(t.aabb.max);const s=t.aabb.getCorners();for(let i=0;i<n.length;i++){let a=!0;for(const t of s){const o=[t[0]*r,t[1]*r,t[2]];if(e.ab.vec3.transformMat4(o,o,n[i].matrix),o[0]<-1||o[0]>1||o[1]<-1||o[1]>1){a=!1;break}}if(t.lastCascade=i,o=Math.max(o,i),a)break}}return o+1}}class sn{constructor(e){this.painter=e,this._enabled=!1,this._shadowLayerCount=0,this._numCascadesToRender=0,this._cascades=[],this._groundShadowTiles=[],this._receivers=new an,this._depthMode=new Br(e.context.gl.LEQUAL,Br.ReadWrite,[0,1]),this._uniformValues={u_light_matrix_0:new Float32Array(16),u_light_matrix_1:new Float32Array(16),u_shadow_intensity:0,u_fade_range:[0,0],u_shadow_normal_offset:[1,1,1],u_shadow_texel_size:1,u_shadow_map_resolution:1,u_shadow_direction:[0,0,1],u_shadow_bias:[36e-5,.0012,.012],u_shadowmap_0:0,u_shadowmap_1:0},this._forceDisable=!1,this.useNormalOffset=!1,e.tp.registerParameter(this,["Shadows"],"_forceDisable",{label:"forceDisable"},(()=>{this.painter.style.map.triggerRepaint()})),e.tp.registerParameter(nn,["Shadows"],"cascadeCount",{min:1,max:2,step:1}),e.tp.registerParameter(nn,["Shadows"],"normalOffset",{min:0,max:10,step:.
205}),e.tp.registerParameter(nn,["Shadows"],"shadowMapResolution",{min:32,max:2048,step:32}),e.tp.registerBinding(this,["Shadows"],"_numCascadesToRender",{readonly:!0,label:"numCascadesToRender"})}destroy(){for(const e of this._cascades)e.texture.destroy(),e.framebuffer.destroy();this._cascades=[]}updateShadowParameters(t,r){const n=this.painter;if(this._enabled=!1,this._shadowLayerCount=0,this._receivers.clear(),!r||!r.properties)return;const i=r.properties.get("shadow-intensity");if(!r.shadowsEnabled()||i<=0)return;if(this._shadowLayerCount=n.style.order.reduce(((e,r)=>{const i=n.style._mergedLayers[r];return e+(i.hasShadowPass()&&!i.isHidden(t.zoom)?1:0)}),0),this._enabled=this._shadowLayerCount>0,!this.enabled)return;const o=n.context,a=nn.shadowMapResolution,s=nn.shadowMapResolution;if(0===this._cascades.length||nn.shadowMapResolution!==this._cascades[0].texture.size[0]){this._cascades=[];for(let t=0;t<nn.cascadeCount;++t){const t=n._shadowMapDebug,r=o.gl,i=o.createFramebuffer(a,s,t,"texture"),l=new e.T(o,{width:a,height:s,data:null},r.DEPTH_COMPONENT16);if(i.depthAttachment.set(l.texture),t){const t=new e.T(o,{width:a,height:s,data:null},r.RGBA8);i.colorAttachment.set(t.texture)}this._cascades.push({framebuffer:i,texture:l,matrix:[],far:0,boundingSphereRadius:0,frustum:new e.bR,scale:0})}}this.shadowDirection=cn(r);let l=0;if(t.elevation){const e=t.elevation,r=[1e4,-1e4];e.visibleDemTiles.filter((e=>e.dem)).forEach((e=>{const t=e.dem.tree;r[0]=Math.min(r[0],t.minimums[0]),r[1]=Math.max(r[1],t.maximums[0])})),1e4!==r[0]&&(l=(r[1]-r[0])*e.exaggeration())}const c=1.5*t.cameraToCenterDistance,u=3*c,d=new Float64Array(16);for(let f=0;f<this._cascades.length;++f){const r=this._cascades[f];let n=t.height/50,i=1;1===nn.cascadeCount?i=u:0===f?i=c:(n=c,i=u);const[o,a]=dn(t,this.shadowDirection,n,i,nn.shadowMapResolution,l);r.scale=t.scale,r.matrix=o,r.boundingSphereRadius=a,e.ab.mat4.invert(d,r.matrix),r.frustum=e.bR.fromInvProjectionMatrix(d,1,0,!0),r.far=i}const h=this._cascades.length-1;this._uniformValues.u_fade_range=[.75*this._cascades[h].far,this._cascades[h].far],this._uniformValues.u_shadow_intensity=i,this._uniformValues.u_shadow_direction=[this.shadowDirection[0],this.shadowDirection[1],this.shadowDirection[2]],this._uniformValues.u_shadow_texel_size=1/nn.shadowMapResolution,this._uniformValues.u_shadow_map_resolution=nn.shadowMapResolution,this._uniformValues.u_shadowmap_0=Jr.ShadowMap0,this._uniformValues.u_shadowmap_1=Jr.ShadowMap0+1,this._groundShadowTiles=n.transform.coveringTiles({tileSize:512,renderWorldCopies:!0});const p=n.transform.elevation;for(const e of this._groundShadowTiles){let t={min:0,max:0};if(p){const r=p.getMinMaxForTile(e);r&&(t=r)}this.addShadowReceiver(e.toUnwrapped(),t.min,t.max)}}get enabled(){return this._enabled&&!this._forceDisable}set enabled(e){this._enabled=e}drawShadowPass(t,r){if(!this.enabled)return;const n=this.painter,i=n.context;this._numCascadesToRender=this._receivers.computeRequiredCascades(n.transform.getFrustum(0),n.transform.worldSize,this._cascades),i.viewport.set([0,0,nn.shadowMapResolution,nn.shadowMapResolution]);for(let o=0;o<this._numCascadesToRender;++o){n.currentShadowCascade=o,i.bindFramebuffer.set(this._cascades[o].framebuffer.framebuffer),i.clear({color:e.aj.white,depth:1});for(const e of t.order){const i=t._mergedLayers[e];if(!i.hasShadowPass()||i.isHidden(n.transform.zoom))continue;const o=t.getLayerSourceCache(i),a=o?r[o.id]:void 0;("model"===i.type||a&&a.length)&&n.renderLayer(n,o,i,a)}}n.currentShadowCascade=0}drawGroundShadows(){if(!this.enabled)return;const e=this.painter,t=e.style,r=e.context,n=t.directionalLight,i=t.ambientLight;if(!n||!i)return;const o=[],a=rn(e,e.longestCutoffRange);a.shouldRenderCutoff&&o.push("RENDER_CUTOFF"),o.push("RENDER_SHADOWS","DEPTH_TEXTURE"),this.useNormalOffset&&o.push("NORMAL_OFFSET");const s=un(t,n,i),l=new Br(r.gl.LEQUAL,Br.ReadOnly,e.depthRangeFor3D);for(const c of this._groundShadowTiles){const t=c.toUnwrapped(),n=e.isTileAffectedByFog(c),i=e.getOrCreateProgram("groundShadow",{defines:o,overrideFog:n});
2this.setupShadows(t,i),e.uploadCommonUniforms(r,i,t,null,a);const u={u_matrix:e.transform.calculateProjMatrix(t),u_ground_shadow_factor:s};i.draw(e,r.gl.TRIANGLES,l,Vr.disabled,jr.multiply,Gr.disabled,u,"ground_shadow",e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments,{},e.transform.zoom,null,null)}}getShadowPassColorMode(){return this.painter._shadowMapDebug?jr.unblended:jr.disabled}getShadowPassDepthMode(){return this._depthMode}getShadowCastingLayerCount(){return this._shadowLayerCount}calculateShadowPassMatrixFromTile(t){const r=this.painter.transform,n=r.calculatePosMatrix(t,r.worldSize);return e.ab.mat4.multiply(n,this._cascades[this.painter.currentShadowCascade].matrix,n),Float32Array.from(n)}calculateShadowPassMatrixFromMatrix(t){return e.ab.mat4.multiply(t,this._cascades[this.painter.currentShadowCascade].matrix,t),Float32Array.from(t)}setupShadows(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!this.enabled)return;const o=this.painter.transform,a=this.painter.context,s=a.gl,l=this._uniformValues,c=new Float64Array(16),u=o.calculatePosMatrix(t,o.worldSize);for(let d=0;d<this._cascades.length;d++)e.ab.mat4.multiply(c,this._cascades[d].matrix,u),l[0===d?"u_light_matrix_0":"u_light_matrix_1"]=Float32Array.from(c),a.activeTexture.set(s.TEXTURE0+Jr.ShadowMap0+d),this._cascades[d].texture.bind(s.NEAREST,s.CLAMP_TO_EDGE);if(this.useNormalOffset=!!n,this.useNormalOffset){const r=e.cc(t.canonical),a=2/o.tileSize*e.ag/nn.shadowMapResolution,s=a*this._cascades[0].boundingSphereRadius,c=a*this._cascades[this._cascades.length-1].boundingSphereRadius,u=("vector-tile"===n?1:3)/Math.pow(2,i-t.canonical.z-(1-o.zoom+Math.floor(o.zoom)));l.u_shadow_normal_offset=[r,s*u,c*u],l.u_shadow_bias=[6e-5,.0012,.012]}else l.u_shadow_bias=[36e-5,.0012,.012];r.setShadowUniformValues(a,l)}setupShadowsFromMatrix(t,r){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.enabled)return;const i=this.painter.context,o=i.gl,a=this._uniformValues,s=new Float64Array(16);for(let l=0;l<nn.cascadeCount;l++)e.ab.mat4.multiply(s,this._cascades[l].matrix,t),a[0===l?"u_light_matrix_0":"u_light_matrix_1"]=Float32Array.from(s),i.activeTexture.set(o.TEXTURE0+Jr.ShadowMap0+l),this._cascades[l].texture.bind(o.NEAREST,o.CLAMP_TO_EDGE);if(this.useNormalOffset=n,n){const e=nn.normalOffset;a.u_shadow_normal_offset=[1,e,e],a.u_shadow_bias=[6e-5,.0012,.012]}else a.u_shadow_bias=[36e-5,.0012,.012];r.setShadowUniformValues(i,a)}getShadowUniformValues(){return this._uniformValues}getCurrentCascadeFrustum(){return this._cascades[this.painter.currentShadowCascade].frustum}computeSimplifiedTileShadowVolume(t,r,n,i){if(i[2]>=0)return{};const o=function(t,r,n){const i=n/(1<<t.canonical.z);return new e.cd([t.canonical.x*i+t.wrap*n,t.canonical.y*i+t.wrap*n,0],[(t.canonical.x+1)*i+t.wrap*n,(t.canonical.y+1)*i+t.wrap*n,r])}(t,r,n).getCorners(),a=r/-i[2];i[0]<0?(e.ab.vec3.add(o[0],o[0],[i[0]*a,0,0]),e.ab.vec3.add(o[3],o[3],[i[0]*a,0,0])):i[0]>0&&(e.ab.vec3.add(o[1],o[1],[i[0]*a,0,0]),e.ab.vec3.add(o[2],o[2],[i[0]*a,0,0])),i[1]<0?(e.ab.vec3.add(o[0],o[0],[0,i[1]*a,0]),e.ab.vec3.add(o[1],o[1],[0,i[1]*a,0])):i[1]>0&&(e.ab.vec3.add(o[2],o[2],[0,i[1]*a,0]),e.ab.vec3.add(o[3],o[3],[0,i[1]*a,0]));const s={};return s.vertices=o,s.planes=[ln(o[1],o[0],o[4]),ln(o[2],o[1],o[5]),ln(o[3],o[2],o[6]),ln(o[0],o[3],o[7])],s}addShadowReceiver(t,r,n){this._receivers.add(t,e.cd.fromTileIdAndHeight(t,r,n))}getMaxCascadeForTile(e){const t=this._receivers.get(e);return t&&t.lastCascade?t.lastCascade:0}}function ln(t,r,n){const i=e.ab.vec3.sub([],n,r),o=e.ab.vec3.sub([],t,r),a=e.ab.vec3.cross([],i,o),s=e.ab.vec3.length(a);return 0===s?[0,0,1,0]:(e.ab.vec3.scale(a,a,1/s),[a[0],a[1],a[2],-e.ab.vec3.dot(a,r)])}function cn(t){const r=t.properties.get("direction"),n=e.cb(r.x,r.y,r.z);
2n[2]=e.aw(n[2],0,75);const i=e.ce([n[0],n[1],n[2]]);return e.ab.vec3.fromValues(i.x,i.y,i.z)}function un(t,r,n){const i="none"===r.properties.get("color-use-theme"),o=r.properties.get("color"),a=r.properties.get("intensity"),s=r.properties.get("direction"),l=[s.x,s.y,s.z],c="none"===n.properties.get("color-use-theme"),u=n.properties.get("color"),d=n.properties.get("intensity"),h=Math.max(e.ab.vec3.dot([0,0,1],l),0),p=[0,0,0];e.ab.vec3.scale(p,u.toRenderColor(c?null:t.getLut(r.scope)).toArray01Linear().slice(0,3),d);const f=[0,0,0];return e.ab.vec3.scale(f,o.toRenderColor(i?null:t.getLut(n.scope)).toArray01Linear().slice(0,3),h*a),e.cf([p[0]>0?p[0]/(p[0]+f[0]):0,p[1]>0?p[1]/(p[1]+f[1]):0,p[2]>0?p[2]/(p[2]+f[2]):0])}function dn(t,r,n,i,o,a){const s=t.zoom,l=t.scale,c=t.worldSize,u=1/c,d=t.aspect,h=Math.sqrt(1+d*d)*Math.tan(.5*t.fovX),p=h*h,f=i-n,m=i+n;let g,_;p>f/m?(g=i,_=i*h):(g=.5*m*(1+p),_=.5*Math.sqrt(f*f+2*(i*i+n*n)*p+m*m*p*p));const y=t.projection.pixelsPerMeter(t.center.lat,c),v=t._camera.getCameraToWorldMercator(),b=[0,0,-g*u];e.ab.vec3.transformMat4(b,b,v);let x=_*u;const w=t._edgeInsets;if(!(0===w.left&&0===w.top&&0===w.right&&0===w.bottom||w.left===w.right&&w.top===w.bottom)){const r=t._camera.getWorldToCamera(t.worldSize,"meters"===t.projection.zAxisUnit?y:1),o=t._camera.getCameraToClipPerspective(t._fov,t.width/t.height,n,i);o[8]=2*-t.centerOffset.x/t.width,o[9]=2*t.centerOffset.y/t.height;const a=new Float64Array(16);e.ab.mat4.mul(a,o,r);const u=new Float64Array(16);e.ab.mat4.invert(u,a);const d=e.bR.fromInvProjectionMatrix(u,c,s,!0);for(const n of d.points){const r=((A=n)[0]/=l,A[1]/=l,A[2]=e.bH(A[2],t._center.lat),A);x=Math.max(x,e.ab.vec3.len(e.ab.vec3.subtract([],b,r)))}}var A;x*=o/(o-1);const S=Math.acos(r[2]),E=Math.atan2(-r[0],-r[1]),T=new Xr;T.position=b,T.setPitchBearing(S,E);const P=T.getWorldToCamera(c,y),C=x*c,I=Math.min(t._mercatorZfromZoom(17)*c*-2,-2*C),M=T.getCameraToClipOrthographic(-C,C,-C,C,I,(C+a*y)/r[2]),k=new Float64Array(16);e.ab.mat4.multiply(k,M,P);const O=e.ab.vec3.fromValues(Math.floor(1e6*b[0])/1e6*c,Math.floor(1e6*b[1])/1e6*c,0),R=.5*o,L=[0,0,0];e.ab.vec3.transformMat4(L,O,k),e.ab.vec3.scale(L,L,R);const D=[Math.floor(L[0]),Math.floor(L[1]),Math.floor(L[2])],N=[0,0,0];e.ab.vec3.sub(N,L,D),e.ab.vec3.scale(N,N,-1/R);const F=new Float64Array(16);return e.ab.mat4.identity(F),e.ab.mat4.translate(F,F,N),e.ab.mat4.multiply(k,F,k),[k,C]}class hn extends e.E{constructor(e){super(),this.requestManager=e,this.models={"":{}},this.numModelsLoading={}}loadModel(t,r){return e.aM(this.requestManager.transformRequest(r,e.R.Model).url).then((r=>{if(!r)return;const n=e.aN(r),i=new e.aO(t,void 0,void 0,n);return i.computeBoundsAndApplyParent(),i})).catch((n=>{if(n&&404===n.status)return null;this.fire(new e.y(new Error("Could not load model ".concat(t," from ").concat(r,": ").concat(n.message))))}))}load(t,r){this.models[r]||(this.models[r]={});const n=Object.keys(t);this.numModelsLoading[r]=(this.numModelsLoading[r]||0)+n.length;const i=[];for(const e of n)i.push(this.loadModel(e,t[e]));Promise.allSettled(i).then((t=>{for(let e=0;e<t.length;e++){const{status:i,value:o}=t[e];"fulfilled"===i&&o&&(this.models[r][n[e]]={model:o,numReferences:1})}this.numModelsLoading[r]-=n.length,this.fire(new e.z("data",{dataType:"style"}))})).catch((t=>{this.fire(new e.y(new Error("Could not load models: ".concat(t.message))))}))}isLoaded(){for(const e in this.numModelsLoading)if(this.numModelsLoading[e]>0)return!1;return!0}hasModel(e,t){return!!this.getModel(e,t)}getModel(e,t){return this.models[t]||(this.models[t]={}),this.models[t][e]?this.models[t][e].model:void 0}
2addModel(e,t,r){this.models[r]||(this.models[r]={}),this.hasModel(e,r)&&this.models[r][e].numReferences++,this.load({[e]:this.requestManager.normalizeModelURL(t)},r)}addModels(e,t){this.models[t]||(this.models[t]={});const r={};for(const n in e)this.models[t][n]={},r[n]=this.requestManager.normalizeModelURL(e[n]);this.load(r,t)}addModelsFromBucket(e,t){this.models[t]||(this.models[t]={});const r={};for(const n of e)this.hasModel(n,t)?this.models[t][n].numReferences++:r[n]=this.requestManager.normalizeModelURL(n);this.load(r,t)}removeModel(e,t){if(this.models[t]&&this.models[t][e]&&(this.models[t][e].numReferences--,0===this.models[t][e].numReferences)){const r=this.models[t][e].model;delete this.models[t][e],r.destroy()}}listModels(e){return this.models[e]||(this.models[e]={}),Object.keys(this.models[e])}upload(e,t){this.models[t]||(this.models[t]={});for(const r in this.models[t])this.models[t][r].model&&this.models[t][r].model.upload(e.context)}}const pn=new e.a5({data:new e.a6(e.a3.colorTheme.data)}),fn={"mbx-indoor-active-floorplans":{default:["literal",[]]},"mbx-indoor-underground":{default:["literal",!1]},"mbx-indoor-loaded-levels":{default:["literal",[]]},"mbx-indoor-level-height":{default:["literal",{}]},"mbx-indoor-level-base":{default:["literal",{}]},"mbx-indoor-level-selected":{default:["literal",{}]},"mbx-indoor-level-overlapped":{default:["literal",{}]}};function mn(e){return e=e||{},Object.assign(e,fn)}class gn extends e.E{constructor(t){super(),this.mergeFloors=!0,this._scope=void 0,this._queryFeatureSetId=void 0,this._buildingEntryFeatureSetId=void 0,this._selectedFloorplan=void 0,this._indoorData=void 0,this._selectedLevel=void 0,this._floorplanStates={},e.aP(["_onLoad","_onMove","_checkFloorplanVisible"],this),this._map=t,this._checkFloorplanVisible(!0),this._map.on("load",this._onLoad),this._map.on("move",this._onMove)}destroy(){this._map.indoor.off("load",this._onLoad),this._map.indoor.off("move",this._onMove),this._map=void 0}_onLoad(){this._map.style.forEachFragmentStyle((t=>{t.stylesheet.indoor&&(this._queryFeatureSetId?this.fire(new e.y(new Error("Multiple indoor map styles detected, simultaneous usage is not allowed currently."))):(this._queryFeatureSetId=t.stylesheet.indoor.floorplanFeaturesetId,this._buildingEntryFeatureSetId=t.stylesheet.indoor.buildingFeaturesetId,this._scope=t.scope))})),this._queryFeatureSetId&&this._buildingEntryFeatureSetId&&this._map.addInteraction("mbx-indoor-buildingclick",{type:"click",target:{featuresetId:this._buildingEntryFeatureSetId,importId:this._scope},handler:e=>(e.feature&&e.feature.properties.floorplan&&this.selectFloorplan(e.feature.properties.floorplan),!0)}),this._checkFloorplanVisible(!0)}_onMove(){this._checkFloorplanVisible(!1)}_checkFloorplanVisible(t){if(!this._queryFeatureSetId)return;if(!this._map.isStyleLoaded())return;if(this._map.transform.zoom<13)return;this._indoorData&&!function(e,t){const[r,n]=e,{center:i,radius:o}=t,[a,s]=i,l=Math.abs(r-a);return Math.sqrt((l>180?360-l:l)**2+(n-s)**2)<=o}([this._map.getCenter().lng,this._map.getCenter().lat],this._indoorData.circumCircle)&&(this._indoorData=void 0,this._selectedFloorplan=void 0,this._map.setConfigProperty(this._scope,"mbx-indoor-underground",!1),this._map.setConfigProperty(this._scope,"mbx-indoor-active-floorplans",["literal",[]]),this.fire(new e.z("floorplangone")));const r={target:{featuresetId:this._queryFeatureSetId,importId:this._scope}},n=new e.P(this._map.transform.width/2,this._map.transform.height/2),i=[new e.P(0,0),new e.P(this._map.transform.width,this._map.transform.height)],o=this._map.queryRenderedFeatures(t?i:n,r);o.length>0&&(this._selectedFloorplan&&o[0].properties.id===this._selectedFloorplan.properties.id||(this._selectedFloorplan=o[0],this._floorplanSelected(!1)))}_floorplanSelected(t){this._indoorData=JSON.parse(this._selectedFloorplan.properties["indoor-data"]),this._indoorData.id=this._selectedFloorplan.properties.id,this._indoorData.circumCircle=function(e){const[[t,r],[n,i]]=e,o=(n-t+360)%360,a=o>180?360-o:o;return{center:[(t+a/2+360)%360,(r+i)/2],radius:Math.sqrt(a**2+(i-r)**2)/2}}
2(this._indoorData.extent),this._floorplanStates[this._indoorData.id]||(this._floorplanStates[this._indoorData.id]={});const r=this._floorplanStates[this._indoorData.id].selectedBuilding,n=this._floorplanStates[this._indoorData.id].selectedLevel;let i;if(this._map.setConfigProperty(this._scope,"mbx-indoor-active-floorplans",this._indoorData.floorplanIDs),this._selectedLevel)for(const e of this._indoorData.levels)e.id===this._selectedLevel.id&&(i=e.id);if(this.fire(new e.z("floorplanselected",{buildings:this._indoorData.buildings,levels:this._indoorData.levels,selectedLevelId:i})),r){const e=this._indoorData.buildings.find((e=>e.id===r));this._buildingSelected(e,!1)}else this._indoorData.buildings.length>0&&this._buildingSelected(this._indoorData.buildings[0],!1);if(n){const e=this._indoorData.levels.find((e=>e.id===n));this._updateLevels(e,t)}else t&&this._indoorData["default-levels"].length>0&&this.selectLevel(this._indoorData["default-levels"][0])}_buildingSelected(t,r){r&&t&&t.extent&&this._map.fitBounds(t.extent,{pitch:this._map.getPitch(),bearing:this._map.getBearing()}),this._floorplanStates[this._indoorData.id].selectedBuilding=t?t.id:void 0;const n=this._indoorData.levels.filter((e=>t.levels.includes(e.id)));this.fire(new e.z("buildingselected",{buildingId:t.id,levels:n}))}_levelSelected(t){if("overview"===t)this._updateLevels(void 0,!0);else{const e=this._indoorData.levels.find((e=>e.id===t));this._updateLevels(e,!0)}this.fire(new e.z("levelselected",{levelId:"overview"===t?void 0:t}))}_updateLevels(e,t){if(!e)return this._map.setConfigProperty(this._scope,"mbx-indoor-loaded-levels",["literal",[]]),this._map.setConfigProperty(this._scope,"mbx-indoor-underground",!1),this._floorplanStates[this._indoorData.id].selectedLevel=void 0,void(t&&this._indoorData.extent&&this._map.fitBounds(this._indoorData.extent,{pitch:this._map.getPitch(),bearing:this._map.getBearing()}));function r(e){const t=e.indexOf("/floor/");if(-1===t)return e;const r=t+7,n=e.indexOf("/",r);return-1===n?e.slice(r):e.slice(r,n)}this._selectedLevel=e,this._floorplanStates[this._indoorData.id].selectedLevel=e?e.id:void 0;const n=[],i={},o={},a={},s={};for(const l of this._indoorData.levels)if(n.push(l.id),i[l.id]=l.height,o[l.id]=l.base,e){if(this.mergeFloors){const t=r(e.id),n=r(l.id);a[l.id]=n===t?"true":"false"}else a[l.id]=l.id===e.id?"true":"false";s[l.id]=l.base<e.base?"true":"false"}else s[l.id]=!0;if(this._map.setConfigProperty(this._scope,"mbx-indoor-loaded-levels",["literal",n]),this._map.setConfigProperty(this._scope,"mbx-indoor-level-height",["literal",i]),this._map.setConfigProperty(this._scope,"mbx-indoor-level-base",["literal",o]),this._map.setConfigProperty(this._scope,"mbx-indoor-level-selected",["literal",a]),this._map.setConfigProperty(this._scope,"mbx-indoor-level-overlapped",["literal",s]),e&&(this._map.setConfigProperty(this._scope,"mbx-indoor-underground",!!e.isUnderground),t&&e.extent)){const t=this._map.cameraForBounds(e.extent,{pitch:this._map.getPitch(),bearing:this._map.getBearing()}),r=this._map.getZoom(),n=t.zoom?Math.abs(r-t.zoom):0;this._map.fitBounds(e.extent,n>=1?{pitch:this._map.getPitch(),bearing:this._map.getBearing()}:{pitch:this._map.getPitch(),bearing:this._map.getBearing(),zoom:r})}}selectFloorplan(t){const r={target:{featuresetId:this._queryFeatureSetId,importId:this._scope}},n=[new e.P(0,0),new e.P(this._map.transform.width,this._map.transform.height)],i=this._map.queryRenderedFeatures(n,r);if(i.length>0)for(const e of i)if(JSON.parse(e.properties["indoor-data"]).floorplanIDs.includes(t)){this._selectedFloorplan=e,this._floorplanSelected(!0);break}}selectBuilding(e){const t=this._indoorData.buildings.find((t=>t.id===e));this._buildingSelected(t,!0)}selectLevel(e){this._levelSelected(e)}}function _n(e){if(!e.metadata||!e.metadata.content_area)return;const{left:t,top:r,width:n,height:i}=e.metadata.content_area;return[t,r,t+n,r+i]}const yn=(e,t)=>Le(e,t&&t.filter((e=>"source.canvas"!==e.identifier))),vn=e.ay(Lt,["addLayer","removeLayer","setLights","setPaintProperty","setLayoutProperty","setSlot","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setSnow","setRain","setProjection","setCamera","addImport","removeImport","updateImport"]),bn=e.ay(Lt,["setCenter","setZoom","setBearing","setP
2itch"]),xn=new Set(["background","sky","slot","custom"]),wn={version:8,layers:[],sources:{}},An={duration:300,delay:0};class Sn extends e.E{constructor(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.map=t,this.scope=r.scope||"",this.globalId=null,this.fragments=[],this.importDepth=r.importDepth||0,this.importsCache=r.importsCache||new Map,this.resolvedImports=r.resolvedImports||new Set,this.transition=e.l({},An),this._buildingIndex=new kt(this),this.crossTileSymbolIndex=new Fr,this._mergedOrder=[],this._drapedFirstOrder=[],this._mergedLayers={},this._mergedSourceCaches={},this._mergedOtherSourceCaches={},this._mergedSymbolSourceCaches={},this._clipLayerPresent=!1,this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this._changes=r.styleChanges||new W,this.dispatcher=r.dispatcher?r.dispatcher:new e.D(e.ci(),this),r.imageManager?this.imageManager=r.imageManager:(this.imageManager=new Z(this.map._spriteFormat),this.imageManager.setEventedParent(this)),this.imageManager.createScope(this.scope),this.glyphManager=r.glyphManager?r.glyphManager:new e.cj(t._requestManager,r.localFontFamily?e.ck.all:r.localIdeographFontFamily?e.ck.ideographs:e.ck.none,r.localFontFamily||r.localIdeographFontFamily),r.modelManager?this.modelManager=r.modelManager:(this.modelManager=new hn(t._requestManager),this.modelManager.setEventedParent(this)),this._layers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._precompileDone=!1,this._shouldPrecompile=!1,this._availableImages=[],this._order=[],this._markersNeedUpdate=!1,this.options=r.configOptions?r.configOptions:new Map,this._configDependentLayers=r.configDependentLayers?r.configDependentLayers:new Set,this._config=r.config,this._styleColorTheme={lut:null,lutLoading:!1,lutLoadingCorrelationID:0,colorTheme:null,colorThemeOverride:r.colorThemeOverride},this._styleColorThemeForScope={},this._initialConfig=r.initialConfig,this.dispatcher.broadcast("setReferrer",e.cl());const n=this;this._rtlTextPluginCallback=Sn.registerForPluginStateChange((t=>{n.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},((t,r)=>{if(e.cm(t),r&&r.every((e=>e)))for(const e in n._sourceCaches){const t=n._sourceCaches[e],r=t.getSource().type;"vector"!==r&&"geojson"!==r||t.reload()}}))})),this.on("data",(e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getOwnSource(e.sourceId);if(t&&t.vectorLayerIds)for(const r in this._layers){const e=this._layers[r];e.source===t.id&&this._validateLayer(e)}}))}load(e){return e?("string"==typeof e?this.loadURL(e):this.loadJSON(e),this):this}_getGlobalId(t){if(!t)return null;if("string"==typeof t){if(e.f(t))return t;const r=e.cn(t);if(!r.startsWith("http"))try{return new URL(r,location.href).toString()}catch(e){return r}return r}return"json://".concat(e.co(JSON.stringify(t)))}_diffStyle(t,r,n){this.globalId=this._getGlobalId(t);const i=(e,t)=>{try{t(null,this.setState(e,n))}catch(e){t(e,!1)}};if("string"==typeof t){const n=this.map._requestManager.normalizeStyleURL(t),o=this.map._requestManager.transformRequest(n,e.R.Style);e.n(o,((t,n)=>{t?this.fire(new e.y(t)):n&&i(n,r)}))}else"object"==typeof t&&i(t,r)}loadURL(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.z("dataloading",{dataType:"style"}));const n="boolean"==typeof r.validate?r.validate:!e.f(t);this.globalId=this._getGlobalId(t),t=this.map._requestManager.normalizeStyleURL(t,r.accessToken),this.resolvedImports.add(t);const i=this.importsCache.get(t);if(i)return this._load(i,n);const o=this.map._requestManager.transformRequest(t,e.R.Style);this._request=e.n(o,((r,i)=>{if(this._request=null,r)this.fire(new e.y(r));else if(i)return this.importsCache.set(t,i),this._load(i,n)}))}loadJSON(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.fire(new e.z("dataloading",{dataType:"style"})),this.globalId=this._getGlobalId(t),this._request=e.q.frame((()=>{this._request=null,this._load(t,!1!==r.validate)}))}loadEmpty(){this.fire(new e.z("dataloading",{dataType:"style"})),this._load(wn,!1)}_loadImports(t,r,n){if(this.importDepth>=4)return e.w("Style doesn't support nesting deeper than 5"),Promise.resolve();const i=[];for(const e of t){const t=this._createFragmentStyle(e),o=new Promise((e=>{t.once("style.import.load",e),t.once("error",e)})).then((()=>this.mergeAll()));if(i.push(o),this.resolvedImports.has(e.url)){t.loadEmpty();continue}const a=e.data||this.importsCache.get(e.url);a?(t.loadJSON(a,{validate:r}),this._isInternalStyle(a)&&(t.globalId=null)):e.url?t.loadURL(e.url,{validate:r}):t.loadEmpty();const s={style:t,id:e.id,config:e.config};if(n){const e=this.fragments.findIndex((e=>{let{id:t}=e;return t===n}));this.fragments=this.fragments.slice(0,e).concat(s).concat(this.fragments.slice(e))}else this.fragments.push(s)}return Promise.allSettled(i)}getImportGlobalIds(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const r of e.fragments)r.style.globalId&&t.add(r.style.globalId),this.getImportGlobalIds(r.style,t);return[...t.values()]}_createFragmentStyle(t){const r=this.scope?e.aC(t.id,this.scope):t.id;let n;const i=this._initialConfig&&this._initialConfig[r];(t.config||i)&&(n=e.l({},t.config,i));const o=new Sn(this.map,{scope:r,styleChanges:this._changes,importDepth:this.importDepth+1,importsCache:this.importsCache,resolvedImports:new Set(this.resolvedImports),dispatcher:this.dispatcher,imageManager:this.imageManager,glyphManager:this.glyphManager,modelManager:this.modelManager,config:n,configOptions:this.options,colorThemeOverride:t["color-theme"],configDependentLayers:this._configDependentLayers});return o.setEventedParent(this.map,{style:o}),o}_reloadImports(){this.mergeAll(),this._updateMapProjection(),this.updateConfigDependencies(),this.map._triggerCameraUpdate(this.camera),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),this._shouldPrecompile=this.map._precompilePrograms&&this.isRootStyle()}_isInternalStyle(e){return this.isRootStyle()&&(e.fragment||!!e.schema&&!1!==e.fragment)}_load(t,r){const n=t.indoor?mn(t.schema):t.schema;if(this._isInternalStyle(t)){const n=e.l({},wn,{imports:[{id:"basemap",data:t,url:""}]});return void this._load(n,r)}if(this.updateConfig(this._config,n),r&&yn(this,be(t)))return;this._loaded=!0,this.stylesheet=e.cp(t);const i=()=>{for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1,isInitialLoad:!0});t.sprite?this._loadIconset(t.sprite):(this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0})),this.glyphManager.setURL(t.glyphs,this.scope);
2const n=Rt(this.stylesheet.layers);if(this._order=n.map((e=>e.id)),this.stylesheet.light&&e.w("The `light` root property is deprecated, prefer using `lights` with `flat` light type instead."),this.stylesheet.lights)if(1===this.stylesheet.lights.length&&"flat"===this.stylesheet.lights[0].type){const e=this.stylesheet.lights[0];this.light=new Ne(e.properties,e.id)}else this.setLights(this.stylesheet.lights);this.light||(this.light=new Ne(this.stylesheet.light)),this._layers={};for(const t of n){const r=e.cu(t,this.scope,this._styleColorTheme.lut,this.options);0!==r.configDependencies.size&&this._configDependentLayers.add(r.fqid),r.setEventedParent(this,{layer:{id:r.id}}),this._layers[r.id]=r;const n=this.getOwnLayerSourceCache(r),i=!!this.directionalLight&&this.directionalLight.shadowsEnabled();n&&r.canCastShadows()&&i&&(n.castsShadows=!0)}this.stylesheet.featuresets&&this.setFeaturesetSelectors(this.stylesheet.featuresets),this.stylesheet.models&&this.modelManager.addModels(this.stylesheet.models,this.scope);const i=this.stylesheet.terrain;i&&(this.checkCanvasFingerprintNoise(),this.disableElevatedTerrain||this.terrainSetForDrapingOnly()||this._createTerrain(i,1)),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this.stylesheet.snow&&this._createSnow(this.stylesheet.snow),this.stylesheet.rain&&this._createRain(this.stylesheet.rain),this.stylesheet.transition&&this.setTransition(this.stylesheet.transition),this.fire(new e.z("data",{dataType:"style"}));const o=this.isRootStyle();t.imports?this._loadImports(t.imports,r).then((()=>{this._reloadImports(),this.fire(new e.z(o?"style.load":"style.import.load"))})):(this._reloadImports(),this.fire(new e.z(o?"style.load":"style.import.load")))};this._styleColorTheme.colorTheme=this.stylesheet["color-theme"];const o=this._styleColorTheme.colorThemeOverride?this._styleColorTheme.colorThemeOverride:this._styleColorTheme.colorTheme;if(o){const t=this._evaluateColorThemeData(o);this._loadColorTheme(t).then((()=>{i()})).catch((t=>{e.w("Couldn't load color theme from the stylesheet: ".concat(t)),i()}))}else this._styleColorTheme.lut=null,i()}isRootStyle(){return 0===this.importDepth}mergeAll(){let t,r,n,i,o,a,s,l,c,u;const d={};this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle((e=>{if(e.stylesheet){if(null!=e.light&&(t=e.light),e.stylesheet.lights)for(const t of e.stylesheet.lights)"ambient"===t.type&&null!=e.ambientLight&&(r=e.ambientLight),"directional"===t.type&&null!=e.directionalLight&&(n=e.directionalLight);i=this._prioritizeTerrain(i,e.terrain,e.stylesheet.terrain),e.stylesheet.fog&&null!=e.fog&&(o=e.fog),e.stylesheet.snow&&null!=e.snow&&(a=e.snow),e.stylesheet.rain&&null!=e.rain&&(s=e.rain),null!=e.stylesheet.camera&&(u=e.stylesheet.camera),null!=e.stylesheet.projection&&(l=e.stylesheet.projection),null!=e.stylesheet.transition&&(c=e.stylesheet.transition),d[e.scope]=e._styleColorTheme}})),this.light=t,this.ambientLight=r,this.directionalLight=n,this.fog=o,this.snow=a,this.rain=s,this._styleColorThemeForScope=d,null===i?delete this.terrain:this.terrain=i,this.camera=u||{"camera-projection":"perspective"},this.projection=l||{name:"mercator"},this.transition=e.l({},An,c),this.mergeSources(),this.mergeLayers()}forEachFragmentStyle(e){const t=r=>{for(const e of r.fragments)t(e.style);e(r)};t(this)}_prioritizeTerrain(e,t,r){const n=e&&0===e.drapeRenderMode;return null===r?t&&0===t.drapeRenderMode?t:n?e:null:null!=t&&(!e||n||t&&1===t.drapeRenderMode)?t:e}mergeTerrain(){let e;this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle((t=>{e=this._prioritizeTerrain(e,t.terrain,t.stylesheet.terrain)})),null===e?delete this.terrain:this.terrain=e}mergeProjection(){let e;this.forEachFragmentStyle((t=>{null!=t.stylesheet.projection&&(e=t.stylesheet.projection)})),this.projection=e||{name:"mercator"}}mergeSources(){const t={},r={},n={};this.forEachFragmentStyle((i=>{for(const r in i._sourceCaches){const n=e.aC(r,i.scope);t[n]=i._sourceCaches[r]}for(const t in i._otherSourceCaches){const n=e.aC(t,i.scope);r[n]=i._otherSourceCaches[t]}for(const t in i._symbolSourceCaches){const r=e.aC(t,i.scope);n[r]=i._symbolSourceCaches[t]}})),this._mergedSourceCaches=t,this._mergedOtherSourceCaches=r,this._mergedSymbolSourceCaches=n}mergeLayers(){var t=this;const r={},n=[],i={};this._mergedSlots=[],this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this.forEachFragmentStyle((t=>{for(const i of t._order){const o=t._layers[i];if("slot"===o.type){const t=e.cq(i);if(r[t])continue;r[t]=[]}o.slot&&r[o.slot]?r[o.slot].push(o):n.push(o)}})),this._mergedOrder=[];const o=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(const a of n)if("slot"===a.type){const n=e.cq(a.id);r[n]&&o(r[n]),t._mergedSlots.push(n)}else{const r=e.aC(a.id,a.scope);t._mergedOrder.push(r),i[r]=a,a.is3D()&&(t._has3DLayers=!0),"circle"===a.type&&(t._hasCircleLayers=!0),"symbol"===a.type&&(t._hasSymbolLayers=!0),"clip"===a.type&&(t._clipLayerPresent=!0)}};o(n),this._mergedOrder.sort(((e,t)=>{const r=i[e],n=i[t];return r.hasInitialOcclusionOpacityProperties?n.is3D()?1:0:r.is3D()&&n.hasInitialOcclusionOpacityProperties?-1:0})),this._mergedLayers=i,this.updateDrapeFirstLayers(),this._buildingIndex.processLayersChanged()}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}getCamera(){return this.stylesheet.camera}setCamera(t){return this.stylesheet.camera=e.l({},this.stylesheet.camera,t),this.camera=this.stylesheet.camera,this}_evaluateColorThemeData(t){return t.data?function(t,r,n){const i=e.l({},r);for(const a of Object.keys(e.a3.colorTheme))void 0===i[a]&&(i[a]=e.a3.colorTheme[a].default);const o=new e.a4(pn,t,new Map(n));return o.setTransitionOrValue(i,n),o.untransitioned().possiblyEvaluate(new e.a8(0))}(this.scope,t,this.options).get("data"):null}_loadColorTheme(t){this._styleColorTheme.lutLoading=!0,this._styleColorTheme.lutLoadingCorrelationID+=1;const r=this._styleColorTheme.lutLoadingCorrelationID;return new Promise(((n,i)=>{const o="data:image/png;base64,";if(!t||0===t.length)return this._styleColorTheme.lut=null,this._styleColorTheme.lutLoading=!1,void n();let a=t;a.startsWith(o)||(a=o+a);const s="mapbox-reserved-lut",l=new Image;l.src=a,l.onerror=()=>{this._styleColorTheme.lutLoading=!1,i(new Error("Failed to load image data"))},l.onload=()=>
2{if(this._styleColorTheme.lutLoadingCorrelationID!==r)return void n();this._styleColorTheme.lutLoading=!1;const{width:o,height:a,data:c}=e.q.getImageData(l);if(a>32)return void i(new Error("The height of the image must be less than or equal to 32 pixels."));if(o!==a*a)return void i(new Error("The width of the image must be equal to the height squared."));this.getImage(s)&&this.removeImage(s),this.addImage(s,{data:new e.r({width:o,height:a},c),pixelRatio:1,sdf:!1,usvg:!1,version:0});const u=this.imageManager.getImage(s,this.scope);u?(this._styleColorTheme.lut={image:u.data,data:t},n()):i(new Error("Missing LUT image."))}}))}getLut(e){const t=this._styleColorThemeForScope[e];return t?t.lut:null}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this.mergeProjection(),this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?(this.getTerrain()||this.stylesheet.terrain)&&!this.disableElevatedTerrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null,0))}_updateMapProjection(){this.isRootStyle()&&(this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.projection))}_loadSprite(t){this._spriteRequest=function(t,r,n){let i,o,a;const s=e.q.devicePixelRatio>1?"@2x":"";let l=e.n(r.transformRequest(r.normalizeSpriteURL(t,s,".json"),e.R.SpriteJSON),((e,t)=>{l=null,a||(a=e,i=t,u())})),c=e.o(r.transformRequest(r.normalizeSpriteURL(t,s,".png"),e.R.SpriteImage),((e,t)=>{c=null,a||(a=e,o=t,u())}));function u(){if(a)n(a);else if(i&&o){const t=e.q.getImageData(o),r={};for(const n in i){const{width:o,height:a,x:s,y:l,sdf:c,pixelRatio:u,stretchX:d,stretchY:h,content:p}=i[n],f=new e.r({width:o,height:a});e.r.copy(t,f,{x:s,y:l},{x:0,y:0},{width:o,height:a},null),r[n]={data:f,pixelRatio:u,sdf:c,stretchX:d,stretchY:h,content:p,usvg:!1}}n(null,r)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,((t,r)=>{if(this._spriteRequest=null,t)this.fire(new e.y(t));else if(r)for(const e in r)this.imageManager.addImage(e,this.scope,r[e]);this.imageManager.setLoaded(!0,this.scope),this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new e.z("data",{dataType:"style"}))}))}_loadIconset(t){if(!e.f(t)&&"icon_set"!==this.map._spriteFormat||"raster"===this.map._spriteFormat)return void this._loadSprite(t);const r="auto"===this.map._spriteFormat;var n,i;this._spriteRequest=(i=(n,i)=>{if(this._spriteRequest=null,n)r?this._loadSprite(t):this.fire(new e.y(n));else if(i)for(const e in i)this.imageManager.addImage(e,this.scope,i[e]);this.imageManager.setLoaded(!0,this.scope),this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new e.z("data",{dataType:"style"}))},e.bi((n=this.map._requestManager).transformRequest(n.normalizeIconsetURL(t),e.R.Iconset),((t,r)=>{if(t)return void i(t);const n={},o=e.cg(new e.bh(r));for(const i of o.icons){const t={version:1,pixelRatio:e.q.devicePixelRatio,content:_n(i),stretchX:i.metadata?i.metadata.stretch_x_areas:void 0,stretchY:i.metadata?i.metadata.stretch_y_areas:void 0,sdf:!1,usvg:!0,icon:i};n[i.name]=t}i(null,n)})))}_validateLayer(t){const r=this.getOwnSource(t.source);if(!r)return;const n=t.sourceLayer;n&&("geojson"===r.type||r.vectorLayerIds&&-1===r.vectorLayerIds.indexOf(n))&&this.fire(new e.y(new Error('Source layer "'.concat(n,'" does not exist on source "').concat(r.id,'" as specified by style layer "').concat(t.id,'"'))))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._changes.getUpdatedSourceCaches()).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;if(!this.imageManager.isLoaded())return!1;if(!this.modelManager.isLoaded())return!1;if(this._styleColorTheme.lutLoading)return!1;for(const{style:e}of this.fragments)if(!e.loaded())return!1;return!0}_serializeImports(){if(this.stylesheet.imports)return this.stylesheet.imports.map(((e,t)=>{const r=this.fragments[t];return r&&r.style&&(e.data=r.style.serialize()),e}))}_serializeSources(){const e={};for(const t in this._sourceCaches){const r=this._sourceCaches[t].getSource();e[r.id]||(e[r.id]=r.serialize())}return e}_serializeLayers(e){const t=[];for(const r of e){const e=this._layers[r];e&&"custom"!==e.type&&t.push(e.serialize())}return t}hasLightTransitions(){return!(!this.light||!this.light.hasTransition())||!(!this.ambientLight||!this.ambientLight.hasTransition())||!(!this.directionalLight||!this.directionalLight.hasTransition())}hasFogTransition(){return!!this.fog&&this.fog.hasTransition()}hasSnowTransition(){return!!this.snow&&this.snow.hasTransition()}hasRainTransition(){return!!this.rain&&this.rain.hasTransition()}hasTransitions(){if(this.hasLightTransitions())return!0;
2if(this.hasFogTransition())return!0;if(this.hasSnowTransition())return!0;if(this.hasRainTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.terrain?this._drapedFirstOrder:this._mergedOrder}_getOrder(e){return e?this.order:this._mergedOrder}isLayerDraped(e){return!!this.terrain&&e.isDraped(this.getLayerSourceCache(e))}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}_checkLayer(t){const r=this.getOwnLayer(t);if(r)return r;this.fire(new e.y(new Error("The layer '".concat(t,"' does not exist in the map's style."))))}_checkSource(t){const r=this.getOwnSource(t);if(r)return r;this.fire(new e.y(new Error("The source '".concat(t,"' does not exist in the map's style."))))}precompilePrograms(e,t){const r=this.map.painter;if(r)for(let n=e.minzoom||0;n<(e.maxzoom||25.5);n++){const n=e.getProgramIds();if(n)for(const i of n){const n=e.getDefaultProgramParams(i,t.zoom,this._styleColorTheme.lut);n&&(r.style=this,this.fog&&(r._fogVisible=!0,n.overrideFog=!0,r.getOrCreateProgram(i,n)),r._fogVisible=!1,n.overrideFog=!1,r.getOrCreateProgram(i,n),(this.stylesheet.terrain||this.stylesheet.projection&&"globe"===this.stylesheet.projection.name)&&(n.overrideRtt=!0,r.getOrCreateProgram(i,n)))}}}update(t){if(!this._loaded)return;this.ambientLight&&this.ambientLight.recalculate(t),this.directionalLight&&this.directionalLight.recalculate(t);const r=this.calculateLightsBrightness();t.brightness=r||0,r!==this._brightness&&(this._brightness=r,this.dispatcher.broadcast("setBrightness",r));const n=this._changes.isDirty();let i=!1;if(this._changes.isDirty()){const e=this._changes.getLayerUpdatesByScope();for(const t in e){const{updatedIds:r,removedIds:n}=e[t];(r||n)&&(this._updateWorkerLayers(t,r,n),i=!0)}this.updateSourceCaches(),this._updateTilesForChangedImages(),this.updateLayers(t),this.light&&this.light.updateTransitions(t),this.ambientLight&&this.ambientLight.updateTransitions(t),this.directionalLight&&this.directionalLight.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this.snow&&this.snow.updateTransitions(t),this.rain&&this.rain.updateTransitions(t),this._changes.reset()}const o={};for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e];o[e]=t.used,t.used=!1,t.tileCoverLift=0}for(const e of this._mergedOrder){const r=this._mergedLayers[e];if(r.recalculate(t,this._availableImages),!r.isHidden(t.zoom)){const e=this.getLayerSourceCache(r);e&&(e.used=!0,e.tileCoverLift=Math.max(e.tileCoverLift,r.tileCoverLift()))}!this._precompileDone&&this._shouldPrecompile&&("requestIdleCallback"in window?requestIdleCallback((()=>{this.precompilePrograms(r,t)})):this.precompilePrograms(r,t))}this._shouldPrecompile&&(this._precompileDone=!0),this.terrain&&i&&this.mergeLayers();for(const a in o){const t=this._mergedSourceCaches[a];o[a]!==t.used&&t.getSource().fire(new e.z("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light&&this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.snow&&this.snow.recalculate(t),this.rain&&this.rain.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new e.z("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=this._changes.getUpdatedImages();if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changes.resetUpdatedImages()}}_updateWorkerLayers(e,t,r){const n=this.getFragmentStyle(e);n&&this.dispatcher.broadcast("updateLayers",{layers:t?n._serializeLayers(t):[],scope:e,removedIds:r||[],options:n.options})}setState(t,r){if(this._checkLoaded(),yn(this,be(t)))return!1;(t=e.cp(t)).layers=Rt(t.layers);const n=function(t,r){if(!t)return[{command:Lt.setStyle,args:[r]}];let n=[];try{if(!e.bn(t.version,r.version))return[{command:Lt.setStyle,args:[r]}];if(e.bn(t.center,r.center)||n.push({command:Lt.setCenter,args:[r.center]}),e.bn(t.zoom,r.zoom)||n.push({command:Lt.setZoom,args:[r.zoom]}),e.bn(t.bearing,r.bearing)||n.push({command:Lt.setBearing,args:[r.bearing]}),e.bn(t.pitch,r.pitch)||n.push({command:Lt.setPitch,args:[r.pitch]}),e.bn(t.sprite,r.sprite)||n.push({command:Lt.setSprite,args:[r.sprite]}),e.bn(t.glyphs,r.glyphs)||n.push({command:Lt.setGlyphs,args:[r.glyphs]}),e.bn(t.imports,r.imports)||function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;r=r||[];const i=(t=t||[]).map(Bt),o=r.map(Bt),a=t.reduce(Ut,{}),s=r.reduce(Ut,{}),l=i.slice();let c,u,d,h;for(c=0,u=0;c<i.length;c++)d=i[c],s.hasOwnProperty(d)?u++:(n.push({command:Lt.removeImport,args:[d]}),l.splice(l.indexOf(d,u),1));for(c=0,u=0;c<o.length;c++)d=o[o.length-1-c],l[l.length-1-c]!==d&&(a.hasOwnProperty(d)?(n.push({command:Lt.removeImport,args:[d]}),l.splice(l.lastIndexOf(d,l.length-u),1)):u++,h=l[l.length-c],n.push({command:Lt.addImport,args:[s[d],h]}),l.splice(l.length-c,0,d));for(const p of r){const t=a[p.id];t&&!e.bn(t,p)&&n.push({command:Lt.updateImport,args:[p.id,p]})}}(t.imports,r.imports,n),e.bn(t.transition,r.transition)||n.push({command:Lt.setTransition,args:[r.transition]}),e.bn(t.light,r.light)||n.push({command:Lt.setLight,args:[r.light]}),e.bn(t.fog,r.fog)||n.push({command:Lt.setFog,args:[r.fog]}),e.bn(t.snow,r.snow)||n.push({command:Lt.setSnow,args:[r.snow]}),e.bn(t.rain,r.rain)||n.push({command:Lt.setRain,args:[r.rain]}),e.bn(t.projection,r.projection)||n.push({command:Lt.setProjection,args:[r.projection]}),e.bn(t.lights,r.lights)||n.push({command:Lt.setLights,args:[r.lights]}),e.bn(t.camera,r.camera)||n.push({command:Lt.setCamera,args:[r.camera]}),!e.bn(t["color-theme"],r["color-theme"]))return[{command:Lt.setStyle,args:[r]}];const i={},o=[];!function(t,r,n,i){let o;for(o in r=r||{},t=t||{})t.hasOwnProperty(o)&&(r.hasOwnProperty(o)||Nt(o,n,i));for(o in r){if(!r.hasOwnProperty(o))continue;const a=r[o];t.hasOwnProperty(o)?e.bn(t[o],a)||("geojson"===t[o].type&&"geojson"===a.type&&zt(t,r,o)?n.push({command:Lt.setGeoJSONSourceData,args:[o,a.data]}):Ft(o,r,n,i)):Dt(o,r,n)}}
2(t.sources,r.sources,o,i);const a=[];t.layers&&t.layers.forEach((e=>{e.source&&i[e.source]?n.push({command:Lt.removeLayer,args:[e.id]}):a.push(e)}));let s=t.terrain;s&&i[s.source]&&(n.push({command:Lt.setTerrain,args:[void 0]}),s=void 0),n=n.concat(o),e.bn(s,r.terrain)||n.push({command:Lt.setTerrain,args:[r.terrain]}),function(t,r,n){r=r||[];const i=(t=t||[]).map(Bt),o=r.map(Bt),a=t.reduce(Ut,{}),s=r.reduce(Ut,{}),l=i.slice(),c=Object.create(null);let u,d,h,p,f,m,g;for(u=0,d=0;u<i.length;u++)h=i[u],s.hasOwnProperty(h)?d++:(n.push({command:Lt.removeLayer,args:[h]}),l.splice(l.indexOf(h,d),1));for(u=0,d=0;u<o.length;u++)h=o[o.length-1-u],l[l.length-1-u]!==h&&(a.hasOwnProperty(h)?(n.push({command:Lt.removeLayer,args:[h]}),l.splice(l.lastIndexOf(h,l.length-d),1)):d++,m=l[l.length-u],n.push({command:Lt.addLayer,args:[s[h],m]}),l.splice(l.length-u,0,h),c[h]=!0);for(u=0;u<o.length;u++)if(h=o[u],p=a[h],f=s[h],!c[h]&&!e.bn(p,f))if(e.bn(p.source,f.source)&&e.bn(p["source-layer"],f["source-layer"])&&e.bn(p.type,f.type)){for(g in jt(p.layout,f.layout,n,h,null,Lt.setLayoutProperty),jt(p.paint,f.paint,n,h,null,Lt.setPaintProperty),e.bn(p.slot,f.slot)||n.push({command:Lt.setSlot,args:[h,f.slot]}),e.bn(p.filter,f.filter)||n.push({command:Lt.setFilter,args:[h,f.filter]}),e.bn(p.minzoom,f.minzoom)&&e.bn(p.maxzoom,f.maxzoom)||n.push({command:Lt.setLayerZoomRange,args:[h,f.minzoom,f.maxzoom]}),p)p.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&"slot"!==g&&(0===g.indexOf("paint.")?jt(p[g],f[g],n,h,g.slice(6),Lt.setPaintProperty):e.bn(p[g],f[g])||n.push({command:Lt.setLayerProperty,args:[h,g,f[g]]}));for(g in f)f.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&"slot"!==g&&(0===g.indexOf("paint.")?jt(p[g],f[g],n,h,g.slice(6),Lt.setPaintProperty):e.bn(p[g],f[g])||n.push({command:Lt.setLayerProperty,args:[h,g,f[g]]}))}else n.push({command:Lt.removeLayer,args:[h]}),m=l[l.lastIndexOf(h)+1],n.push({command:Lt.addLayer,args:[f,m]})}(a,r.layers,n)}catch(e){console.warn("Unable to compute style diff:",e),n=[{command:Lt.setStyle,args:[r]}]}return n}(this.serialize(),t).filter((e=>!(e.command in bn)));if(0===n.length)return!1;const i=n.filter((e=>!(e.command in vn)));if(i.length>0)throw new Error("Unimplemented: ".concat(i.map((e=>e.command)).join(", "),"."));const o=[];return n.forEach((e=>{o.push(this[e.command].apply(this,e.args))})),r&&Promise.all(o).then(r),this.stylesheet=t,this.mergeAll(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),!0}addImage(t,r){return this.getImage(t)?this.fire(new e.y(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,this.scope,r),this._afterImageUpdated(t),this)}updateImage(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.imageManager.updateImage(e,this.scope,t),r&&this._afterImageUpdated(e)}getImage(e){return this.imageManager.getImage(e,this.scope)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t,this.scope),this._afterImageUpdated(t),this):this.fire(new e.y(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(this.scope),this._changes.updateImage(t),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages}),this.fire(new e.z("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addModel(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._checkLoaded(),this._validate(Oe,"models.".concat(e),t,null,r)||(this.modelManager.addModel(e,t,this.scope),this._changes.setDirty()),this}hasModel(e){return this.modelManager.hasModel(e,this.scope)}removeModel(t){return this.hasModel(t)?(this.modelManager.removeModel(t,this.scope),this):this.fire(new e.y(new Error("No model with this ID exists.")))}listModels(){return this._checkLoaded(),this.modelManager.listModels(this.scope)}addSource(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._checkLoaded(),void 0!==this.getOwnSource(t))throw new Error('There is already a source with ID "'.concat(t,'".'));if(!r.type)throw new Error("The type property must be defined, but only the following properties were given: ".concat(Object.keys(r).join(", "),"."));if(["vector","raster","geojson","video","image"].indexOf(r.type)>
2=0&&this._validate(xe,"sources.".concat(t),r,null,n))return;this.map&&this.map._collectResourceTiming&&(r.collectResourceTiming=!0);const i=ct(t,r,this.dispatcher,this);i.scope=this.scope,i.setEventedParent(this,(()=>({isSourceLoaded:this._isSourceCacheLoaded(i.id),source:i.serialize(),sourceId:i.id})));const o=t=>{const r=(t?"symbol:":"other:")+i.id,n=e.aC(r,this.scope),o=this._sourceCaches[r]=new Pt(n,i,t);(t?this._symbolSourceCaches:this._otherSourceCaches)[i.id]=o,o.onAdd(this.map)};o(!1),"vector"!==r.type&&"geojson"!==r.type||o(!0),i.onAdd&&i.onAdd(this.map),n.isInitialLoad||(this.mergeSources(),this._changes.setDirty())}removeSource(t){this._checkLoaded();const r=this.getOwnSource(t);if(!r)throw new Error("There is no source with this ID");for(const i in this._layers)if(this._layers[i].source===t)return this.fire(new e.y(new Error('Source "'.concat(t,'" cannot be removed while layer "').concat(i,'" is using it.'))));if(this.terrain&&this.terrain.scope===this.scope&&this.terrain.get().source===t)return this.fire(new e.y(new Error('Source "'.concat(t,'" cannot be removed while terrain is using it.'))));const n=this.getOwnSourceCaches(t);for(const i of n){const t=e.cq(i.id);delete this._sourceCaches[t],this._changes.discardSourceCacheUpdate(i.id),i.fire(new e.z("data",{sourceDataType:"metadata",dataType:"source",sourceId:i.getSource().id})),i.setEventedParent(null),i.clearTiles()}return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],this.mergeSources(),r.setEventedParent(null),r.onRemove&&r.onRemove(this.map),this._changes.setDirty(),this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getOwnSource(e).setData(t),this._changes.setDirty()}getOwnSource(e){const t=this.getOwnSourceCache(e);return t&&t.getSource()}getOwnSources(){const e=[];for(const t in this._otherSourceCaches){const r=this.getOwnSourceCache(t);r&&e.push(r.getSource())}return e}areTilesLoaded(){const e=this._mergedSourceCaches;for(const t in e){const r=e[t]._tiles;for(const e in r){const t=r[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}setLights(t){if(this._checkLoaded(),!t)return delete this.ambientLight,void delete this.directionalLight;const r=this._getTransitionParameters();for(const i of t){if(this._validate(Ae,"lights",i))return;switch(i.type){case"ambient":if(this.ambientLight){const e=this.ambientLight;e.set(i),e.updateTransitions(r)}else this.ambientLight=new Qe(i,Ze||(Ze=new e.a5({color:new e.a6(e.a3.properties_light_ambient.color),"color-use-theme":new e.a6({type:"string",default:"default","property-type":"data-constant"}),intensity:new e.a6(e.a3.properties_light_ambient.intensity)})),this.scope,this.options);break;case"directional":if(this.directionalLight){const e=this.directionalLight;e.set(i),e.updateTransitions(r)}else this.directionalLight=new Qe(i,Ke||(Ke=new e.a5({direction:new e.ak(e.a3.properties_light_directional.direction),color:new e.a6(e.a3.properties_light_directional.color),"color-use-theme":new e.a6({type:"string",default:"default","property-type":"data-constant"}),intensity:new e.a6(e.a3.properties_light_directional.intensity),"cast-shadows":new e.a6(e.a3.properties_light_directional["cast-shadows"]),"shadow-quality":new e.a6(e.a3.properties_light_directional["shadow-quality"]),"shadow-intensity":new e.a6(e.a3.properties_light_directional["shadow-intensity"])})),this.scope,this.options)}}const n=new e.a8(this.z||0,r);this.ambientLight&&this.ambientLight.recalculate(n),this.directionalLight&&this.directionalLight.recalculate(n),this._brightness=this.calculateLightsBrightness(),this.dispatcher.broadcast("setBrightness",this._brightness)}calculateLightsBrightness(){const t=this.directionalLight,r=this.ambientLight;if(!t||!r)return;const n=e=>.2126*(e[0]<=.03928?e[0]/12.92:Math.pow((e[0]+.055)/1.055,2.4))+.7152*(e[1]<=.03928?e[1]/12.92:Math.pow((e[1]+.055)/1.055,2.4))+.0722*(e[2]<=.03928?e[2]/12.92:Math.pow((e[2]+.055)/1.055,2.4)),i=t.properties.get("color").toRenderColor(null).toArray01(),o=t.properties.get("intensity"),a=t.properties.get("direction"),s=1-e.cb(a.x,a.y,a.z)[2]/90,l=n(i)*o*s,c=r.properties.get("color").toRenderColor(null).toArray01(),u=r.properties.get("intensity"),d=n(c)
2*u;return Number(((l+d)/2).toFixed(6))}getBrightness(){return this._brightness}getLights(){if(!this.enable3dLights())return null;const e=[];return this.directionalLight&&e.push(this.directionalLight.get()),this.ambientLight&&e.push(this.ambientLight.get()),e}enable3dLights(){return!!this.ambientLight&&!!this.directionalLight}getFragmentStyle(t){if(!t)return this;if(e.cr(t)){const r=e.cs(t),n=this.fragments.find((e=>{let{id:t}=e;return t===r}));if(!n)throw new Error("Style import '".concat(t,"' not found"));const i=e.cq(t);return n.style.getFragmentStyle(i)}{const e=this.fragments.find((e=>{let{id:r}=e;return r===t}));if(!e)throw new Error("Style import '".concat(t,"' not found"));return e.style}}setFeaturesetSelectors(t){if(!t)return;const r={},n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(e,"::").concat(t)};this.featuresetSelectors={};for(const i in t){const o=this.featuresetSelectors[i]=[];for(const a of t[i].selectors){if(a.featureNamespace){const t=this.getOwnLayer(a.layer);if(!t){e.w("Layer is undefined for selector: ".concat(a.layer));continue}const o=n(t.source,t.sourceLayer);if(o in r&&r[o]!==a.featureNamespace){e.w('"featureNamespace '.concat(a.featureNamespace," of featureset ").concat(i,"'s selector is not associated to the same source, skip this selector"));continue}r[o]=a.featureNamespace}let t;if(a.properties)for(const r in a.properties){const n=e.U(a.properties[r]);"success"===n.result&&(t=t||{},t[r]=n.value)}o.push({layerId:a.layer,namespace:a.featureNamespace,properties:t})}}}getFeaturesetDescriptors(e){const t=this.getFragmentStyle(e);if(!t||!t.stylesheet.featuresets)return[];const r=[];for(const n in t.stylesheet.featuresets)r.push({featuresetId:n,importId:t.scope?t.scope:void 0});return r}getFeaturesetLayers(t,r){const n=this.getFragmentStyle(r),i=n.stylesheet.featuresets;if(!i||!i[t])return this.fire(new e.y(new Error("The featureset '".concat(t,"' does not exist in the map's style and cannot be queried.")))),[];const o=[];for(const e of i[t].selectors){const t=n.getOwnLayer(e.layer);t&&o.push(t)}return o}getConfigProperty(t,r){const n=this.getFragmentStyle(t);if(!n)return null;const i=e.aC(r,n.scope),o=n.options.get(i),a=o?o.value||o.default:null;return a?a.serialize():null}setConfigProperty(t,r,n){const o=this.getFragmentStyle(t);if(!o)return;const a=o.stylesheet.indoor?mn(o.stylesheet.schema):o.stylesheet.schema;if(!a||!a[r])return;const s=e.U(n);if("success"!==s.result)return void yn(this,s.value);const l=s.value.expression,c=e.aC(r,o.scope),u=o.options.get(c);if(!u)return;let d;const{minValue:h,maxValue:p,stepValue:f,type:m,values:g}=a[r],_=e.U(a[r].default);"success"===_.result&&(d=_.value.expression),d?(this.options.set(c,i(i({},u),{},{value:l,default:d,minValue:h,maxValue:p,stepValue:f,type:m,values:g})),this.updateConfigDependencies(r)):this.fire(new e.y(new Error('No schema defined for the config option "'.concat(r,'" in the "').concat(t,'" fragment.'))))}getConfig(t){const r=this.getFragmentStyle(t);if(!r)return null;const n=r.stylesheet.schema;if(!n)return null;const i={};for(const o in n){const t=e.aC(o,r.scope),n=r.options.get(t),a=n?n.value||n.default:null;i[o]=a?a.serialize():null}return i}setConfig(e,t){const r=this.getFragmentStyle(e);r&&(r.updateConfig(t,r.stylesheet.schema),this.updateConfigDependencies())}getSchema(e){const t=this.getFragmentStyle(e);return t?t.stylesheet.schema:null}setSchema(e,t){const r=this.getFragmentStyle(e);r&&(r.stylesheet.schema=t,r.updateConfig(r._config,t),this.updateConfigDependencies())}updateConfig(t,r){if(this._config=t,t||r)if(r)for(const n in r){let i,o;const a=e.U(r[n].default);if("success"===a.result&&(i=a.value.expression),t&&void 0!==t[n]){const r=e.U(t[n]);"success"===r.result&&(o=r.value.expression)}const{minValue:s,maxValue:l,stepValue:c,type:u,values:d}=r[n];if(i){const t=e.aC(n,this.scope);this.options.set(t,{default:i,value:o,minValue:s,maxValue:l,stepValue:c,type:u,values:d})}else this.fire(new e.y(new Error('No schema defined for config option "'.concat(n,'".'))))}else this.fire(new e.y(new Error("Attempting to set config for a style without schema.")))}updateConfigDependencies(e){for(const t of this._configDependentLayers){const r=this.getLayer(t);if(r){if(e&&!r.configDependencies.has(e))continue;r.possiblyEvaluateVisibility(),this._updateLayer(r)}}this.ambientLight&&this.ambientLight.updateConfig(this.options),this.directionalLight&&this.directionalLight.updateConfig(this.options),this.fog&&this.fog.updateConfig(this.options),this.snow&&this.snow.updateConfig(this.options),this.rain&&this.rain.updateConfig(this.options),this.forEachFragmentStyle((e=>{const t=e._styleColorTheme.colorThemeOverride?e._styleColorTheme.colorThemeOverride:e._styleColorTheme.colorTheme;if(t){const r=e._evaluateColorThemeData(t);(!e._styleColorTheme.lut&&""!==r||e._styleColorTheme.lut&&r!==e._styleColorTheme.lut.data)&&e.setColorTheme(t)}})),this._changes.setDirty()}addLayer(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();const i=t.id;if(this._layers[i])return void this.fire(new e.y(new Error('Layer with i
2d "'.concat(i,'" already exists on this map'))));let o;if("custom"===t.type){if(yn(this,e.ct(t)))return;o=e.cu(t,this.scope,this._styleColorTheme.lut,this.options)}else{if("object"==typeof t.source&&(this.addSource(i,t.source),t=e.cp(t),t=e.l(t,{source:i})),this._validate(Ce,"layers.".concat(i),t,{arrayIndex:-1},n))return;o=e.cu(t,this.scope,this._styleColorTheme.lut,this.options),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}})}0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid);let a=this._order.length;if(r){const t=this._order.indexOf(r);if(-1===t)return void this.fire(new e.y(new Error('Layer with id "'.concat(r,'" does not exist on this map.'))));o.slot===this._layers[r].slot?a=t:e.w('Layer with id "'.concat(r,'" has a different slot. Layers can only be rearranged within the same slot.'))}this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o;const s=this.getOwnLayerSourceCache(o),l=!!this.directionalLight&&this.directionalLight.shadowsEnabled();s&&o.canCastShadows()&&l&&(s.castsShadows=!0);const c=this._changes.getRemovedLayer(o);if(c&&o.source&&s&&"custom"!==o.type){this._changes.discardLayerRemoval(o);const t=e.aC(o.source,o.scope);c.type!==o.type?this._changes.updateSourceCache(t,"clear"):(this._changes.updateSourceCache(t,"reload"),s.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),o.scope=this.scope,this.mergeLayers()}moveLayer(t,r){this._checkLoaded();const n=this._checkLayer(t);if(!n)return;if(t===r)return;const i=this._order.indexOf(t);this._order.splice(i,1);let o=this._order.length;if(r){const t=this._order.indexOf(r);
2if(-1===t)return void this.fire(new e.y(new Error('Layer with id "'.concat(r,'" does not exist on this map.'))));n.slot===this._layers[r].slot?o=t:e.w('Layer with id "'.concat(r,'" has a different slot. Layers can only be rearranged within the same slot.'))}this._order.splice(o,0,t),this._changes.setDirty(),this._layerOrderChanged=!0,this.mergeLayers()}removeLayer(e){this._checkLoaded();const t=this._checkLayer(e);if(!t)return;t.setEventedParent(null);const r=this._order.indexOf(e);this._order.splice(r,1),delete this._layers[e],this._changes.setDirty(),this._layerOrderChanged=!0,this._configDependentLayers.delete(t.fqid),this._changes.removeLayer(t);const n=this.getOwnLayerSourceCache(t);if(n&&n.castsShadows){let e=!1;for(const r in this._layers)if(this._layers[r].source===t.source&&this._layers[r].canCastShadows()){e=!0;break}n.castsShadows=e}t.onRemove&&t.onRemove(this.map),this.mergeLayers()}getOwnLayer(e){return this._layers[e]}hasLayer(e){return e in this._mergedLayers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(e,t,r){this._checkLoaded();const n=this._checkLayer(e);n&&(n.minzoom===t&&n.maxzoom===r||(null!=t&&(n.minzoom=t),null!=r&&(n.maxzoom=r),this._updateLayer(n)))}getSlots(){return this._checkLoaded(),this._mergedSlots}setSlot(e,t){this._checkLoaded();const r=this._checkLayer(e);r&&r.slot!==t&&(r.slot=t,this._updateLayer(r))}setFilter(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();const i=this._checkLayer(t);if(i&&!e.bn(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(Ie,"layers.".concat(i.id,".filter"),r,{layerType:i.type},n)||(i.filter=e.cp(r),this._updateLayer(i)))}getFilter(t){const r=this._checkLayer(t);if(r)return e.cp(r.filter)}setLayoutProperty(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();const o=this._checkLayer(t);if(o&&!e.bn(o.getLayoutProperty(r),n)){if(null!=n&&(!i||!1!==i.validate)&&yn(o,ke.call(be,{key:"layers.".concat(t,".layout.").concat(r),layerType:o.type,objectKey:r,value:n,styleSpec:e.a3,style:{glyphs:!0,sprite:!0}})))return;o.setLayoutProperty(r,n),0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid),this._updateLayer(o)}}getLayoutProperty(e,t){const r=this._checkLayer(e);if(r)return r.getLayoutProperty(t)}setPaintProperty(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this._checkLoaded();const o=this._checkLayer(t);if(!o)return;if(e.bn(o.getPaintProperty(r),n))return;if(null!=n&&(!i||!1!==i.validate)&&yn(o,Me.call(be,{key:"layers.".concat(t,".paint.").concat(r),layerType:o.type,objectKey:r,value:n,styleSpec:e.a3})))return;const a=o.setPaintProperty(r,n);0!==o.configDependencies.size&&this._configDependentLayers.add(o.fqid),a&&this._updateLayer(o),this._changes.updatePaintProperties(o)}getPaintProperty(e,t){const r=this._checkLayer(e);if(r)return r.getPaintProperty(t)}setFeatureState(t,r){if(this._checkLoaded(),"target"in t){if("featuresetId"in t.target){const{featuresetId:e,importId:n}=t.target,i=this.getFragmentStyle(n),o=i.getFeaturesetLayers(e);for(const{source:a,sourceLayer:s}of o)i.setFeatureState({id:t.id,source:a,sourceLayer:s},r)}else if("layerId"in t.target){const{layerId:e}=t.target,n=this.getLayer(e);this.setFeatureState({id:t.id,source:n.source,sourceLayer:n.sourceLayer},r)}return}const n=t.source,i=t.sourceLayer,o=this._checkSource(n);if(!o)return;const a=o.type;if("geojson"===a&&i)return void this.fire(new e.y(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===a&&!i)return void this.fire(new e.y(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.y(new Error("The feature id parameter must be provided.")));const s=this.getOwnSourceCaches(n);for(const e of s)e.setFeatureState(i,t.id,r)}removeFeatureState(t,r){if(this._checkLoaded(),"target"in t){if("featuresetId"in t.target){const{featuresetId:e,importId:n}=t.target,i=this.getFragmentStyle(n),o=i.getFeaturesetLayers(e);for(const{source:a,sourceLayer:s}of o)i.removeFeatureState({id:t.id,source:a,sourceLayer:s},r)}else if("layerId"in t.target){const{layerId:e}=t.target,n=this.getLayer(e);this.removeFeatureState({id:t.id,source:n.source,sourceLayer:n.sourceLayer},r)}return}const n=t.source,i=this._checkSource(n);if(!i)return;
2const o=i.type,a="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!a)return void this.fire(new e.y(new Error("The sourceLayer parameter must be provided for vector source types.")));if(r&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.y(new Error("A feature id is required to remove its specific state property.")));const s=this.getOwnSourceCaches(n);for(const e of s)e.removeFeatureState(a,t.id,r)}getFeatureState(t){if(this._checkLoaded(),"target"in t){let r;if("featuresetId"in t.target){const{featuresetId:n,importId:i}=t.target,o=this.getFragmentStyle(i),a=o.getFeaturesetLayers(n);for(const{source:s,sourceLayer:l}of a){const n=o.getFeatureState({id:t.id,source:s,sourceLayer:l});if(n&&!r)r=n;else if(!e.bn(r,n))return void this.fire(new e.y(new Error("The same feature id exists in multiple sources in the featureset, but their feature states are not consistent through the sources.")))}}else if("layerId"in t.target){const{layerId:e}=t.target,n=this.getLayer(e);r=this.getFeatureState({id:t.id,source:n.source,sourceLayer:n.sourceLayer})}return r}const r=t.source,n=t.sourceLayer,i=this._checkSource(r);if(i){if("vector"!==i.type||n)return void 0===t.id&&this.fire(new e.y(new Error("The feature id parameter must be provided."))),this.getOwnSourceCaches(r)[0].getFeatureState(n,t.id);this.fire(new e.y(new Error("The sourceLayer parameter must be provided for vector source types.")))}}setTransition(t){return this.stylesheet.transition=e.l({},this.stylesheet.transition,t),this.transition=this.stylesheet.transition,this}getTransition(){return e.l({},this.stylesheet.transition)}serialize(){this._checkLoaded();const t=this.getTerrain(),r=t&&this.terrain&&this.terrain.scope===this.scope?t:this.stylesheet.terrain;return e.cv({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,fragment:this.stylesheet.fragment,imports:this._serializeImports(),schema:this.stylesheet.schema,camera:this.stylesheet.camera,light:this.stylesheet.light,lights:this.stylesheet.lights,terrain:r,fog:this.stylesheet.fog,snow:this.stylesheet.snow,rain:this.stylesheet.rain,center:this.stylesheet.center,"color-theme":this.stylesheet["color-theme"],zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:this._serializeSources(),layers:this._serializeLayers(this._order)},(e=>void 0!==e))}_updateFilteredLayers(e){for(const t of Object.values(this._mergedLayers))e(t)&&this._updateLayer(t)}_updateLayer(t){this._changes.updateLayer(t);const r=this.getLayerSourceCache(t),n=e.aC(t.source,t.scope),i=this._changes.getUpdatedSourceCaches();t.source&&!i[n]&&r&&"raster"!==r.getSource().type&&(this._changes.updateSourceCache(n,"reload"),r.pause()),t.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>this._mergedLayers[e].is3D(),r=this.order,n={},i=[];for(let a=r.length-1;a>=0;a--){const o=r[a];if(t(o)){n[o]=a;for(const t of e){const e=t[o];if(e)for(const t of e)i.push(t)}}}i.sort(((e,t)=>t.intersectionZ-e.intersectionZ));const o=[];for(let a=r.length-1;a>=0;a--){const s=r[a];if(t(s))for(let e=i.length-1;e>=0;e--){const t=i[e].feature;if(t.layer&&n[t.layer.id]<a)break;o.push(t),i.pop()}else for(const t of e){const e=t[s];if(e)for(const t of e)o.push(t.feature)}}return o}queryRenderedFeatures(t,r,n){let i;r&&!Array.isArray(r)&&r.filter&&(this._validate(Ie,"queryRenderedFeatures.filter",r.filter,null,r),i=e.aZ(r.filter));const o={},a=e=>{if(xn.has(e.type))return;const t=this.getOwnLayerSourceCache(e),r=o[t.id]=o[t.id]||{sourceCache:t,layers:{},has3DLayers:!1};e.is3D()&&(r.has3DLayers=!0),r.layers[e.fqid]=r.layers[e.fqid]||{styleLayer:e,targets:[]},r.layers[e.fqid].targets.push({filter:i})};if(r&&r.layers){if(!Array.isArray(r.layers))return this.fire(new e.y(new Error("parameters.layers must be an Array."))),[];for(const t of r.layers){const r=this._layers[t];if(!r)return this.fire(new e.y(new Error("The layer '".concat(t,"' does not exist in the map's style and cannot be queried for features.")))),[];a(r)}}else for(const e in this._layers)a(this._layers[e]);const s=this._queryRenderedFeatures(t,o,n),l=this._flattenAndSortRenderedFeatures(s),c=[];for(const u of l)e.cs(u.layer.id)===this.scope&&c.push(u);return c}queryRenderedFeatureset(t,r,n){let o;
2r&&!Array.isArray(r)&&r.filter&&(this._validate(Ie,"queryRenderedFeatures.filter",r.filter,null,r),o=e.aZ(r.filter));const a="mock",s=[];if(r&&r.target)s.push(i(i({},r),{},{targetId:a,filter:o}));else{const e=this.getFeaturesetDescriptors();for(const t of e)s.push({targetId:a,filter:o,target:t});for(const{style:t}of this.fragments){const e=t.getFeaturesetDescriptors();for(const t of e)s.push({targetId:a,filter:o,target:t})}}const l=this.queryRenderedTargets(t,s,n),c=[];for(const i of l)for(const t of i.variants[a])c.push(new e.cw(i,t));return c}queryRenderedTargets(t,r,n){const o={},a=(e,t,r,n)=>{const a=o[t.id]=o[t.id]||{sourceCache:t,layers:{},has3DLayers:!1};a.layers[e.fqid]=a.layers[e.fqid]||{styleLayer:e,targets:[]},e.is3D()&&(a.has3DLayers=!0),a.layers[e.fqid].targets.push(n?i(i({},r),{},{namespace:n.namespace,properties:n.properties}):r)};for(const i of r)if("featuresetId"in i.target){const{featuresetId:t,importId:r}=i.target,n=this.getFragmentStyle(r),o=n.featuresetSelectors[t];if(!o){this.fire(new e.y(new Error("The featureset '".concat(t,"' does not exist in the map's style and cannot be queried for features."))));continue}for(const e of o){const t=n.getOwnLayer(e.layerId);t&&!xn.has(t.type)&&a(t,n.getOwnLayerSourceCache(t),i,e)}}else if("layerId"in i.target){const{layerId:e}=i.target,t=this.getLayer(e);if(!t||xn.has(t.type))continue;a(t,this.getLayerSourceCache(t),i)}const s=this._queryRenderedFeatures(t,o,n);return this._flattenAndSortRenderedFeatures(s)}_queryRenderedFeatures(e,t,r){const n=[],i=!!this.map._showQueryGeometry,o=$e.createFromScreenPoints(e,r);for(const a in t){const e=ut(o,t[a],this._availableImages,r,i);Object.keys(e).length&&n.push(e)}if(this.placement)for(const a in t){if(!t[a].sourceCache._onlySymbols)continue;const e=dt(o.screenGeometry,t[a],this._availableImages,this.placement.collisionIndex,this.placement.retainedQueryData);Object.keys(e).length&&n.push(e)}return n}querySourceFeatures(e,t){const r=t&&t.filter;r&&this._validate(Ie,"querySourceFeatures.filter",r,null,t);let n=[];const i=this.getOwnSourceCaches(e);for(const o of i)n=n.concat(ht(o,t));return n}addSourceType(e,t,r){return Sn.getSourceType(e)?r(new Error('A source type called "'.concat(e,'" already exists.'))):(Sn.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))}getFlatLight(){return this.light.getLight()}setFlatLight(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._checkLoaded();const i=this.light.getLight();let o=!1;for(const s in t)if(!e.bn(t[s],i[s])){o=!0;break}if(!o)return;const a=this._getTransitionParameters();this.light.setLight(t,r,n),this.light.updateTransitions(a)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}checkCanvasFingerprintNoise(){void 0===this.disableElevatedTerrain&&(this.disableElevatedTerrain=e.q.hasCanvasFingerprintNoise(),this.disableElevatedTerrain&&e.w("Terrain and hillshade are disabled because of Canvas2D limitations when fingerprinting protection is enabled (e.g. in private browsing mode)."))}setTerrain(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._checkLoaded(),!t)return this.terrainSetForDrapingOnly()||(delete this.terrain,this.map.transform.projection.requiresDraping&&this.setTerrainForDraping()),0===r&&delete this.terrain,null===t?this.stylesheet.terrain=null:delete this.stylesheet.terrain,this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);this.checkCanvasFingerprintNoise();let n=t;const i=null==t.source;if(1===r){if(this.disableElevatedTerrain)return;if("object"==typeof n.source){const t="terrain-dem-src";this.addSource(t,n.source),n=e.cp(n),n=e.l(n,{source:t})}const t=e.l({},n),r={};if(this.terrain&&i){t.source=this.terrain.get().source;const e=this.terrain?this.getFragmentStyle(this.terrain.scope):null;e&&(r.style=e.serialize())}if(this._validate(Se,"terrain",t,r))return}if(!this.terrain||this.terrain.scope!==this.scope&&!i||this.terrain&&r!==this.terrain.drapeRenderMode){if(!n)return;this._createTerrain(n,r),this.fire(new e.z("data",{dataType:"style"}))}else{const r=this.terrain,i=r.get();for(const t of Object.keys(e.a3.terrain))!n.hasOwnProperty(t)&&e.a3.terrain[t].default&&(n[t]=e.a3.terrain[t].default);for(const n in t)if(!e.bn(t[n],i[n])){r.set(t,this.options),this.stylesheet.terrain=t;const n=this._getTransitionParameters({duration:0});r.updateTransitions(n),this.fire(new e.z("data",{dataType:"style"}));break}}this.mergeTerrain(),this.updateDrapeFirstLayers(),this._markersNeedU
2pdate=!0}_createFog(e){const t=this.fog=new Ge(e,this.map.transform,this.scope,this.options);this.stylesheet.fog=t.get();const r=this._getTransitionParameters({duration:0});t.updateTransitions(r)}_createSnow(e){const t=this.snow=new Xe(e,this.map.transform,this.scope,this.options);this.stylesheet.snow=t.get();const r=this._getTransitionParameters({duration:0});t.updateTransitions(r)}_createRain(e){const t=this.rain=new Je(e,this.map.transform,this.scope,this.options);this.stylesheet.rain=t.get();const r=this._getTransitionParameters({duration:0});t.updateTransitions(r)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask((()=>{for(const e of this.map._markers)e._evaluateOpacity()}))}getFog(){return this.fog?this.fog.get():null}setFog(t){if(this._checkLoaded(),!t)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const r=this.fog;if(!e.bn(r.get(),t)){r.set(t,this.options),this.stylesheet.fog=r.get();const e=this._getTransitionParameters({duration:0});r.updateTransitions(e)}}else this._createFog(t);this._markersNeedUpdate=!0}getSnow(){return this.snow?this.snow.get():null}setSnow(t){if(this._checkLoaded(),!t)return delete this.snow,void delete this.stylesheet.snow;if(this.snow){const r=this.snow;if(!e.bn(r.get(),t)){r.set(t,this.options),this.stylesheet.snow=r.get();const e=this._getTransitionParameters({duration:0});r.updateTransitions(e)}}else this._createSnow(t);this._markersNeedUpdate=!0}getRain(){return this.rain?this.rain.get():null}setRain(t){if(this._checkLoaded(),!t)return delete this.rain,void delete this.stylesheet.rain;if(this.rain){const r=this.rain;if(!e.bn(r.get(),t)){r.set(t,this.options),this.stylesheet.rain=r.get();const e=this._getTransitionParameters({duration:0});r.updateTransitions(e)}}else this._createRain(t);this._markersNeedUpdate=!0}_reloadColorTheme(){const t=()=>{for(const e in this._layers)this._layers[e].lut=this._styleColorTheme.lut;for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles()},r=this._styleColorTheme.colorThemeOverride?this._styleColorTheme.colorThemeOverride:this._styleColorTheme.colorTheme;if(!r)return this._styleColorTheme.lut=null,void t();const n=this._evaluateColorThemeData(r);this._loadColorTheme(n).then((()=>{this.fire(new e.z("colorthemeset")),t()})).catch((t=>{e.w("Couldn't set color theme: ".concat(t))}))}setColorTheme(t){this._checkLoaded(),this._styleColorTheme.colorThemeOverride&&e.w("Note: setColorTheme is called on a style with a color-theme override, the passed color-theme won't be visible."),this._styleColorTheme.colorTheme=t,this._reloadColorTheme()}setImportColorTheme(e,t){const r=this.getFragmentStyle(e);r&&(r._styleColorTheme.colorThemeOverride=t,r._reloadColorTheme())}_getTransitionParameters(t){return{now:e.q.now(),transition:e.l(this.transition,t)}}updateDrapeFirstLayers(){if(!this.terrain)return;const e=[],t=[];for(const r of this._mergedOrder)this.isLayerDraped(this._mergedLayers[r])?e.push(r):t.push(r);this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const r=this.terrain=new Fe(e,t,this.scope,this.options);1===t&&(this.stylesheet.terrain=e),this.mergeTerrain(),this.updateDrapeFirstLayers(),this._force3DLayerUpdate();const n=this._getTransitionParameters({duration:0});r.updateTransitions(n)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,r,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(o&&!1===o.validate)return!1;const a=e.l({},this.serialize());return yn(this,t.call(be,e.l({key:r,style:a,value:n,styleSpec:e.a3},i)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.cx.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._mergedLayers)this._mergedLayers[e].setEventedParent(null);for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles(),this._mergedSourceCaches[e].setEventedParent(null);this.setEventedParent(null),delete this.fog,delete this.snow,delete this.rain,delete this.terrain,delete this.ambientLight,delete this.directionalLight,this.isRootStyle()&&(this.imageManager.setEventedParent(null),this.modelManager.setEventedParent(null),this.dispatcher.remove())}clearSource(e){const t=this.getSourceCaches(e);for(const r of t)r.clearTiles()}clearSources(){for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles()}reloadSource(e){const t=this.getSourceCaches(e);for(const r of t)r.resume(),r.reload()}
2reloadSources(){for(const e of this.getSources())e.reload&&e.reload()}updateSources(e){let t;this.directionalLight&&(t=cn(this.directionalLight));for(const r in this._mergedSourceCaches)this._mergedSourceCaches[r].update(e,void 0,void 0,t)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,r,n,i,o,a){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=!1,c=!1;const u={},d={};for(const h of this._mergedOrder){const t=this._mergedLayers[h];if("symbol"!==t.type)continue;const n=e.aC(t.source,t.scope);let i=u[n];if(!i){const e=this.getLayerSourceCache(t);if(!e)continue;const r=e.getRenderableIds(!0).map((t=>e.getTileByID(t)));d[n]=r.slice(),i=u[n]=r.sort(((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)))}const o=this.crossTileSymbolIndex.addLayer(t,i,r.center.lng,r.projection);l=l||o}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._mergedOrder),s=s||this._layerOrderChanged||0===i,this._layerOrderChanged&&this.fire(new e.z("neworder")),(s||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.q.now(),r.zoom))&&(this.pauseablePlacement=new Or(r,this._mergedOrder,s,n,i,o,this.placement,this.fog&&r.projection.supportsFog?this.fog.state:null,this._buildingIndex),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._mergedOrder,this._mergedLayers,u,d,this.map.painter.scaleFactor),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.q.now()),c=!0),l&&this.pauseablePlacement.placement.setStale()),c||l){this._buildingIndex.onNewFrame(r.zoom);for(let t=0;t<this._mergedOrder.length;t++){const r=this._mergedLayers[this._mergedOrder[t]];if("symbol"!==r.type)continue;const n=this.isLayerClipped(r);this.placement.updateLayerOpacities(r,u[e.aC(r.source,r.scope)],t,n?a:null)}}return{needsRerender:!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.q.now())}}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}addImport(t,r){this._checkLoaded();const n=this.stylesheet.imports=this.stylesheet.imports||[];if(-1!==n.findIndex((e=>{let{id:r}=e;return r===t.id})))return void this.fire(new e.y(new Error("Import with id '".concat(t.id,"' already exists in the map's style."))));if(!r)return n.push(t),this._loadImports([t],!0);const i=n.findIndex((e=>{let{id:t}=e;return t===r}));return-1===i&&this.fire(new e.y(new Error('Import with id "'.concat(r,'" does not exist on this map.')))),this.stylesheet.imports=n.slice(0,i).concat(t).concat(n.slice(i)),this._loadImports([t],!0,r)}updateImport(t,r){this._checkLoaded();const n=this.stylesheet.imports||[],i=this.getImportIndex(t);return-1===i?this:"string"==typeof r?(this.setImportUrl(t,r),this):(r.url&&r.url!==n[i].url&&this.setImportUrl(t,r.url),e.bn(r.config,n[i].config)||this.setImportConfig(t,r.config),e.bn(r.data,n[i].data)||this.setImportData(t,r.data),this)}moveImport(e,t){this._checkLoaded();let r=this.stylesheet.imports||[];const n=this.getImportIndex(e);if(-1===n)return this;const i=this.getImportIndex(t);if(-1===i)return this;const o=r[n],a=this.fragments[n];return r=r.filter((t=>{let{id:r}=t;return r!==e})),this.fragments=this.fragments.filter((t=>{let{id:r}=t;return r!==e})),this.stylesheet.imports=r.slice(0,i).concat(o).concat(r.slice(i)),this.fragments=this.fragments.slice(0,i).concat(a).concat(this.fragments.slice(i)),this.mergeLayers(),this}setImportUrl(e,t){this._checkLoaded();const r=this.stylesheet.imports||[],n=this.getImportIndex(e);if(-1===n)return this;r[n].url=t;const i=this.fragments[n];return i.style=this._createFragmentStyle(r[n]),i.style.on("style.import.load",(()=>this.mergeAll())),i.style.loadURL(t),this}setImportData(e,t){this._checkLoaded();const r=this.getImportIndex(e),n=this.stylesheet.imports||[];return-1===r?this:t?(this.fragments[r].style.setState(t),this._reloadImports(),this):(delete n[r].data,this.setImportUrl(e,n[r].url))}setImportConfig(e,t){this._checkLoaded();const r=this.getImportIndex(e),n=this.stylesheet.imports||[];if(-1===r)return this;t?n[r].config=t:delete n[r].config;const i=this.fragments[r],o=i.style.stylesheet&&i.style.stylesheet.schema;return i.config=t,i.style.updateConfig(t,o),this.updateConfigDependencies(),this}removeImport(e){this._checkLoaded();const t=this.stylesheet.imports||[],r=this.getImportIndex(e);-1!==r&&(t.splice(r,1),this.fragments[r].style._remove(),this.fragments.splice(r,1),this._reloadImports())}getImportIndex(t){const r=(this.stylesheet.imports||[]).findIndex((e=>e.id===t));return-1===r&&this.fire(new e.y(new Error("Import '".concat(t,"' does not exist in the map's style and cannot be updated.")))),r}getLayer(e){return this._mergedLayers[e]}getSources(){const e=[];for(const t in this._mergedOtherSourceCaches){const r=this._mergedOtherSourceCaches[t];r&&e.push(r.getSource())}return e}getSource(e,t){const r=this.getSourceCache(e,t);return r&&r.getSource()}getLayerSource(e){const t=this.getLayerSourceCache(e);return t&&t.getSource()}getSourceCache(t,r){const n=e.aC(t,r);return this._mergedOtherSourceCaches[n]}getLayerSourceCache(t){const r=e.aC(t.source,t.scope);return"symbol"===t.type?this._mergedSymbolSourceCaches[r]:this._mergedOtherSourceCaches[r]}getSourceCaches(e){if(null==e)return Object.values(this._mergedSourceCaches);const t=[];return this._mergedOtherSourceCaches[e]&&t.push(this._mergedOtherSourceCaches[e]),this._mergedSymbolSourceCaches[e]&&t.push(this._mergedSymbolSourceCaches[e]),t}
2updateSourceCaches(){const e=this._changes.getUpdatedSourceCaches();for(const t in e){const r=e[t];"reload"===r?this.reloadSource(t):"clear"===r&&this.clearSource(t)}}updateLayers(e){const t=this._changes.getUpdatedPaintProperties();for(const r of t){const t=this.getLayer(r);t&&t.updateTransitions(e)}}getImages(e,t,r){this.imageManager.getImages(t.icons,t.scope,r),this._updateTilesForChangedImages();const n=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};n(this._otherSourceCaches[t.source]),n(this._symbolSourceCaches[t.source])}rasterizeImages(e,t,r){this.imageManager.rasterizeImages(t,r)}getGlyphs(e,t,r){this.glyphManager.getGlyphs(t.stacks,t.scope,r)}getResource(t,r,n){return e.cy(r,n)}getOwnSourceCache(e){return this._otherSourceCaches[e]}getOwnLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}getOwnSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const r=this.getOwnSourceCaches(t);return 0===r.length?(this.fire(new e.y(new Error("There is no source with ID '".concat(t,"'")))),!1):r.every((e=>e.loaded()))}has3DLayers(){return this._has3DLayers}hasSymbolLayers(){return this._hasSymbolLayers}hasCircleLayers(){return this._hasCircleLayers}isLayerClipped(e,t){if(!this._clipLayerPresent&&"fill-extrusion"!==e.type)return!1;const r="fill-extrusion"===e.type&&"building"===e.sourceLayer;if(e.is3D()){if(r||t&&"batched-model"===t.type)return!0;if("model"===e.type)return!0}else if("symbol"===e.type)return!0;return!1}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.fragments.forEach((e=>{e.style._remove()})),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}Sn.getSourceType=function(e){return lt[e]},Sn.setSourceType=function(e,t){lt[e]=t},Sn.registerForPluginStateChange=e.ch;var En="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#ifdef RENDER_CUTOFF\nfloat cutoff_opacity(vec4 cutoff_params,float depth) {float near=cutoff_params.x;float far=cutoff_params.y;float cutoffStart=cutoff_params.z;float cutoffEnd=cutoff_params.w;float linearDepth=(depth-near)/(far-near);return clamp((linearDepth-cutoffStart)/(cutoffEnd-cutoffStart),0.0,1.0);}\n#endif",Tn="\nout vec4 glFragColor;highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#ifdef INDICATOR_CUTOUT\nuniform vec3 u_indicator_cutout_centers;uniform vec4 u_indicator_cutout_params;\n#endif\nvec4 applyCutout(vec4 color,float height) {\n#ifdef INDICATOR_CUTOUT\nfloat verticalFadeRange=u_indicator_cutout_centers.z*0.25;float holeMinOpacity=mix(1.0,u_indicator_cutout_params.x,smoothstep(u_indicator_cutout_centers.z,u_indicator_cutout_centers.z+verticalFadeRange,height));float holeRadius=max(u_indicator_cutout_params.y,0.0);float holeAspectRatio=u_indicator_cutout_params.z;float fadeStart=u_indicator_cutout_params.w;float distA=distance(vec2(gl_FragCoord.x,gl_FragCoord.y*holeAspectRatio),vec2(u_indicator_cutout_centers[0],u_indicator_cutout_centers[1]*holeAspectRatio));return color*min(smoothstep(fadeStart,holeRadius,distA)+holeMinOpacity,1.0);\n#else\nreturn color;\n#endif\n}\n#ifdef DEBUG_WIREFRAME\n#define HANDLE_WIREFRAME_DEBUG \\\nglFragColor=vec4(0.7,0.0,0.0,0.7); \\\ngl_FragDepth=gl_FragCoord.z-0.0001;\n#else\n#define HANDLE_WIREFRAME_DEBUG\n#endif\n#ifdef RENDER_CUTOFF\nuniform highp vec4 u_cutoff_params;in float v_cutoff_opacity;\n#endif\nvec4 textureLodCustom(sampler2D image,highp vec2 pos,highp vec2 lod_coord) {highp vec2 size=vec2(textureSize(image,0));highp vec2 dx=dFdx(lod_coord.xy*size);highp vec2 dy=dFdy(lod_coord.xy*size);highp float delta_max_sqr=max(dot(dx,dx),dot(dy,dy));highp float lod=0.5*log2(delta_max_sqr);return textureLod(image,pos,lod);}vec4 applyLUT(highp sampler3D lut,vec4 col) {vec3 size=vec3(textureSize(lut,0));vec3 uvw=(col.rbg*float(size-1.0)+0.5)/size;return vec4(texture(lut,uvw).rgb,col.a);}vec3 applyLUT(highp sampler3D lut,vec3 col) {return applyLUT(lut,vec4(col,1.0)).rgb;}",Pn="\n#define EXTENT 8192.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0\nfloat wrap(float n,float min,float max) {float d=max-min;
2float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const vec2 units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (units_to_pixels*pos+offset)/pattern_size;}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {return get_pattern_pos(pixel_coord_upper,pixel_coord_lower,pattern_size,vec2(tile_units_to_pixels),pos);}float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(PI/4.0+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}\n#ifdef RENDER_CUTOFF\nuniform vec4 u_cutoff_params;out float v_cutoff_opacity;\n#endif\nconst vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);const float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}",Cn="in highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;out highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",In="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}
2float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(dd,0)).r;float bl=texture(u_dem,pos+vec2(0,dd)).r;float br=texture(u_dem,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture(u_dem_prev,pos).r;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=texture(u_dem_prev,pos).r;float tr=texture(u_dem_prev,pos+vec2(dd,0)).r;float bl=texture(u_dem_prev,pos+vec2(0,dd)).r;float br=texture(u_dem_prev,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nvec4 fourSample(vec2 pos,vec2 off) {float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(off.x,0.0)).r;float bl=texture(u_dem,pos+vec2(0.0,off.y)).r;float br=texture(u_dem,pos+off).r;return vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }\n#endif\n#ifdef DEPTH_OCCLUSION\nuniform highp sampler2D u_depth;uniform highp vec2 u_depth_size_inv;uniform highp vec2 u_depth_range_unpack;uniform highp float u_occluder_half_size;uniform highp float u_occlusion_depth_offset;\n#ifdef DEPTH_D24\nfloat unpack_depth(float depth) {return depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}vec4 unpack_depth4(vec4 depth) {return depth*u_depth_range_unpack.x+vec4(u_depth_range_unpack.y);}\n#else\nhighp float unpack_depth_rgba(vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;\n#ifdef DEPTH_D24\nfloat depth=unpack_depth(texture(u_depth,(coord.xy+1.0)*0.5).r);\n#else\nfloat depth=unpack_depth_rgba(texture(u_depth,(coord.xy+1.0)*0.5));\n#endif\nreturn coord.z+u_occlusion_depth_offset > depth;}highp vec4 getCornerDepths(vec2 coord) {highp vec3 df=vec3(u_occluder_half_size*u_depth_
2size_inv,0.0);highp vec2 uv=0.5*coord.xy+0.5;\n#ifdef DEPTH_D24\nhighp vec4 depth=vec4(\ntexture(u_depth,uv-df.xz).r,texture(u_depth,uv+df.xz).r,texture(u_depth,uv-df.zy).r,texture(u_depth,uv+df.zy).r\n);depth=unpack_depth4(depth);\n#else\nhighp vec4 depth=vec4(\nunpack_depth_rgba(texture(u_depth,uv-df.xz)),unpack_depth_rgba(texture(u_depth,uv+df.xz)),unpack_depth_rgba(texture(u_depth,uv-df.zy)),unpack_depth_rgba(texture(u_depth,uv+df.zy))\n);\n#endif\nreturn depth;}highp float occlusionFadeMultiSample(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;highp vec2 uv=0.5*coord.xy+0.5;int NX=3;int NY=4;highp vec2 df=u_occluder_half_size*u_depth_size_inv;highp vec2 oneStep=2.0*u_occluder_half_size*u_depth_size_inv/vec2(NX-1,NY-1);highp float res=0.0;for (int y=0; y < NY;++y) {for (int x=0; x < NX;++x) {\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)));\n#endif\nres+=1.0-clamp(300.0*(coord.z+u_occlusion_depth_offset-depth),0.0,1.0);}}res=clamp(2.0*res/float(NX*NY)-0.5,0.0,1.0);return res;}highp float occlusionFade(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;highp vec4 depth=getCornerDepths(coord.xy);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z+u_occlusion_depth_offset)-depth),0.0,1.0));}\n#else\nbool isOccluded(vec4 frag) { return false; }highp float occlusionFade(vec4 frag) { return 1.0; }highp float occlusionFadeMultiSample(vec4 frag) { return 1.0; }\n#endif//DEPTH_OCCLUSION",Mn="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;out vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",kn="highp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;in vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos,float opacity_limit) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,min(opacity,opacity_limit));}vec3 fog_apply(vec3 color,vec3 pos) {return fog_apply(color,pos,1.0);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}
2vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) {\n#ifdef FOG_DITHERING\nvec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);\n#else\nreturn color;\n#endif\n}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif",On="#ifdef RASTER_ARRAY\nuniform highp sampler2D u_image0;uniform sampler2D u_image1;const vec4 NODATA=vec4(1);ivec4 _raTexLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}vec2 _raTexLinearMix(highp vec2 fxy,highp vec4 colorMix,highp float colorOffset,highp vec4 t00,highp vec4 t10,highp vec4 t01,highp vec4 t11) {vec2 c00=t00==NODATA ? vec2(0) : vec2(colorOffset+dot(t00,colorMix),1);vec2 c10=t10==NODATA ? vec2(0) : vec2(colorOffset+dot(t10,colorMix),1);vec2 c01=t01==NODATA ? vec2(0) : vec2(colorOffset+dot(t01,colorMix),1);vec2 c11=t11==NODATA ? vec2(0) : vec2(colorOffset+dot(t11,colorMix),1);return mix(mix(c01,c11,fxy.x),mix(c00,c10,fxy.x),fxy.y);}vec2 raTexture2D_image0_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image0,c.yz,0),texelFetch(u_image0,c.xz,0),texelFetch(u_image0,c.yw,0),texelFetch(u_image0,c.xw,0)\n);}vec2 raTexture2D_image1_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image1,c.yz,0),texelFetch(u_image1,c.xz,0),texelFetch(u_image1,c.yw,0),texelFetch(u_image1,c.xw,0)\n);}vec2 raTexture2D_image0_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image0,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}vec2 raTexture2D_image1_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image1,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}\n#endif",Rn="#ifdef RASTER_ARRAY\nuniform sampler2D u_velocity;uniform mediump vec2 u_velocity_res;uniform mediump float u_max_speed;const vec4 NO_DATA=vec4(1);const vec2 INVALID_VELOCITY=vec2(-1);uniform highp vec2 u_uv_offset;uniform highp float u_data_offset;uniform highp vec2 u_data_scale;ivec4 rasterArrayLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}highp vec2 lookup_velocity(highp vec2 uv) {uv=u_uv_offset.x+u_uv_offset.y*uv;highp vec2 fxy;ivec4 c=rasterArrayLinearCoord(uv,u_velocity_res,fxy);highp vec4 tl=texelFetch(u_velocity,c.yz,0);highp vec4 tr=texelFetch(u_velocity,c.xz,0);highp vec4 bl=texelFetch(u_velocity,c.yw,0);highp vec4 br=texelFetch(u_velocity,c.xw,0);if (tl==NO_DATA) {return INVALID_VELOCITY;}if (tr==NO_DATA) {return INVALID_VELOCITY;}if (bl==NO_DATA) {return INVALID_VELOCITY;}if (br==NO_DATA) {return INVALID_VELOCITY;}highp vec4 t=mix(mix(bl,br,fxy.x),mix(tl,tr,fxy.x),fxy.y);highp vec2 velocity=u_data_offset+vec2(dot(t.rg,u_data_scale),dot(t.ba,u_data_scale));velocity.y=-velocity.y;velocity/=max(u_max_speed,length(velocity));return velocity;}\n#endif\nuniform highp float u_particle_pos_scale;uniform highp vec2 u_particle_pos_offset;highp vec4 pack_pos_to_rgba(highp vec2 p) {highp vec2 v=(p+u_particle_pos_offset)/u_particle_pos_scale;highp vec4 r=vec4(v.x,fract(v.x*255.0),v.y,fract(v.y*255.0));return vec4(r.x-r.y/255.0,r.y,r.z-r.w/255.0,r.w);}highp vec2 unpack_pos_from_rgba(highp vec4 v) {v=floor(v*255.0+0.5)/255.0;highp vec2 p=vec2(v.x+(v.y/255.0),v.z+(v.w/255.0));return u_particle_pos_scale*p-u_particle_pos_offset;}",Ln="#ifdef RENDER_SHADOWS\nuniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_normal_offset;vec3 shadow_normal_offset(vec3 normal) {float tileInMeters=u_shadow_normal_offset[0];vec3 n=vec3(-normal.xy,tileInMeters*normal.z);float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return n*dotScale;}vec3 shadow_normal_offset_model(vec3 normal) {vec3 transformed_normal=vec3(-normal.xy,normal.z);float NDotL=dot(normalize(transformed_normal),u_shadow_direction);float dotScale=min(1.0-NDotL,1.0)*0.5+0.5;return normal*dotScale;}float shadow_normal_offset_multiplier0() {return u_shadow_normal_offset[1];}float shadow_normal_offset_multiplier1() {return u_shadow_normal_offset[2];}\n#endif//RENDER_SHADOWS",Dn="#ifdef RENDER_SHADOWS\n#ifdef DEPTH_TEXTURE\nuniform highp sampler2D u_shadowmap_0;uniform highp sampler2D u_shadowmap_1;\n#else\nuniform sampler2D u_shadowmap_0;uniform sampler2D u_shadowmap_1;\n#endif\nuniform float u_shadow_intensity;uniform float u_shadow_map_resolution;uniform float u_shadow_texel_size;uniform highp vec3 u_shadow_normal_offset;uniform vec2 u_fade_range;uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_bias;highp float shadow_sample_1(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture(u_shadowmap_1,uv).r;\n#else\nshadow_depth=unpack_depth(texture(u_shadowmap_1,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}highp float shadow_sample_0(highp vec2 uv,highp float compare) {highp float shadow_depth;\n#ifdef DEPTH_TEXTURE\nshadow_depth=texture(u_shadowmap_0,uv).r;\n#else\nshadow_depth=unpack_depth(texture(u_shadowmap_0,uv))*0.5+0.5;\n#endif\nreturn step(shadow_depth,compare);}
2float shadow_occlusion_1(highp vec4 pos,highp float bias) {highp vec2 uv=pos.xy;return shadow_sample_1(uv,pos.z-bias);}float shadow_occlusion_0(highp vec4 pos,highp float bias) {highp float compare0=pos.z-bias;\n#ifdef TEXTURE_GATHER\nhighp vec2 uv=pos.xy;highp vec4 samples=textureGather(u_shadowmap_0,uv,0);lowp vec4 stepSamples=step(samples,vec4(compare0));\n#else\nhighp vec2 uv00=pos.xy-vec2(0.5*u_shadow_texel_size);highp vec2 uv10=uv00+vec2(u_shadow_texel_size,0.0);highp vec2 uv01=uv00+vec2(0.0,u_shadow_texel_size);highp vec2 uv11=uv01+vec2(u_shadow_texel_size,0.0);lowp vec4 stepSamples=vec4(\nshadow_sample_0(uv01,compare0),shadow_sample_0(uv11,compare0),shadow_sample_0(uv10,compare0),shadow_sample_0(uv00,compare0)\n);\n#endif\nvec2 f=fract(pos.xy*u_shadow_map_resolution-vec2(0.5));lowp vec2 lerpx=mix(stepSamples.wx,stepSamples.zy,f.xx);return mix(lerpx.x,lerpx.y,f.y);}float shadow_occlusion(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,highp float bias) {\n#ifdef SHADOWS_SINGLE_CASCADE\nlight_view_pos0.xyz/=light_view_pos0.w;vec2 abs_bounds=abs(light_view_pos0.xy);if (abs_bounds.x >=1.0 || abs_bounds.y >=1.0) {return 0.0;}light_view_pos0.xyz=light_view_pos0.xyz*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);\n#else\nlight_view_pos0.xyz/=light_view_pos0.w;light_view_pos1.xyz/=light_view_pos1.w;vec4 uv=vec4(light_view_pos0.xy,light_view_pos1.xy);vec4 abs_bounds=abs(uv);if (abs_bounds.x < 1.0 && abs_bounds.y < 1.0) {light_view_pos0.xyz=light_view_pos0.xyz*0.5+0.5;return shadow_occlusion_0(light_view_pos0,bias);}if (abs_bounds.z >=1.0 || abs_bounds.w >=1.0) {return 0.0;}light_view_pos1.xyz=light_view_pos1.xyz*0.5+0.5;float occlusion1=shadow_occlusion_1(light_view_pos1,bias);return mix(occlusion1,0.0,smoothstep(u_fade_range.x,u_fade_range.y,view_depth));\n#endif\n}highp float calculate_shadow_bias(float NDotL) {\n#ifdef NORMAL_OFFSET\nreturn 0.5*u_shadow_bias.x;\n#else\nreturn 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_bias.z));\n#endif\n}float shadowed_light_factor_normal(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_opacity(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,float shadow_opacity) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias)*shadow_opacity;return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_unbiased(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}highp vec2 compute_receiver_plane_depth_bias(highp vec3 pos_dx,highp vec3 pos_dy)\n{highp vec2 biasUV=vec2(\npos_dy.y*pos_dx.z-pos_dx.y*pos_dy.z,pos_dx.x*pos_dy.z-pos_dy.x*pos_dx.z);biasUV*=1.0/((pos_dx.x*pos_dy.y)-(pos_dx.y*pos_dy.x));return biasUV;}float shadowed_light_factor_plane_bias(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {highp vec3 light_view_pos0_xyz=light_view_pos0.xyz/light_view_pos0.w*0.5+0.5;highp vec3 light_view_pos0_ddx=dFdx(light_view_pos0_xyz);highp vec3 light_view_pos0_ddy=dFdy(light_view_pos0_xyz);highp vec2 plane_depth_bias=compute_receiver_plane_depth_bias(light_view_pos0_ddx,light_view_pos0_ddy);highp float bias=dot(vec2(u_shadow_texel_size,u_shadow_texel_size),plane_depth_bias)+0.0001;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadowed_light_factor(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadow_occlusion(float ndotl,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=calculate_shadow_bias(ndotl);return shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);}\n#endif";const Nn=[];Vn(En,Nn),Vn(Pn,Nn),Vn(Tn,Nn);const Fn={"_prelude_fog.vertex.glsl":Mn,"_prelude_terrain.vertex.glsl":In,"_prelude_shadow.vertex.glsl":Ln,"_prelude_fog.fragment.glsl":kn,"_prelude_shadow.fragment.glsl":Dn,"_prelude_lighting.glsl":"\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0
2));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}\n#endif//LIGHTING_3D_MODE","_prelude_raster_array.glsl":On,"_prelude_raster_particle.glsl":Rn},zn={};qn("",In),qn(kn,Mn),qn(Dn,Ln),qn(On,""),qn(Rn,"");const jn=qn(Tn,Pn),Bn=En;var Un={background:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nin vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_lighting.glsl"\nin vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec4 u_color;out vec4 v_color;uniform float u_emissive_strength;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),backgroundPattern:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;in highp vec2 v_pos;void main() {highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=textureLodCustom(u_image,pos,v_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec2 u_pattern_units_to_pixels;in vec2 a_pos;out highp vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_pattern_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),circle:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec3 v_data;in float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nuniform float u_emissive_strength;void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float blur_positive=blur < 0.0 ? 0.0 : 1.0;lowp float antialiasblur=v_data.z;float extrude_length=length(extrude)+antialiasblur*(1.0-blur_positive);float antialiased_blur=-max(abs(blur),antialiasblur);float opacity_t=smoothstep((1.0-blur_positive)*antialiased_blur,blur_positive*antialiased_blur,extrude_length-1.0)-smoothstep(0.0,antialiasblur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
2/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\nglFragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;in vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nout vec3 v_data;out float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radiu
2s,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}'),clippingMask:qn("void main() {glFragColor=vec4(1.0);}","in vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:qn('#include "_prelude_fog.fragment.glsl"\nuniform highp float u_intensity;in vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);glFragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {glFragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;in vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nout vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),heatmapTexture:qn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(0.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}","in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:qn("in float v_placed;in float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",'#include "_prelude_terrain.vertex.glsl"\nin vec3 a_pos;in vec2 a_anchor_pos;in vec2 a_extrude;in vec2 a_placed;in vec2 a_shift;in vec2 a_elevation_from_sea;in float a_size_scale;in vec2 a_padding;in float a_auto_z_offset;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;out float v_placed;out float v_notUsed;void main() {float feature_elevation=a_elevation_from_sea.x+a_auto_z_offset;float terrain_elevation=(a_elevation_from_sea.y==1.0 ? 0.0 : elevation(a_anchor_pos));vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*(feature_elevation+terrain_elevation),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}'),collisionCircle:qn("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);glFragColor=color*alpha*opacity_t;}","in vec2 a_pos_2f;in float a_radius;in vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:qn("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}",'#include "_prelude_terrain.vertex.glsl"\nin vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;\n#endif\nout vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
2);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}'),fill:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nuniform float u_emissive_strength;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=opacity;\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_z_offset);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\nuniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp float z_offset\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=z_offset;\n#endif\n}'),fillOutline:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nin highp vec2 v_pos;uniform float u_emissive_strength;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nuniform mat4 u_matrix;uniform vec2 u_world;out highp vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp float z_offset\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillOutlinePattern:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_emissive_strength;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\nin highp vec2 v_pos;in highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nout highp vec2 v_pos;out highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize highp float z_offset\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillPattern:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;in highp vec2 v_pos;uniform float u_emissive_strength;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in vec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nout highp vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize highp float z_offset\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),fillExtrusion:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec4 v_color;in vec4 v_flat;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;\n#endif\nuniform lowp float u_opacity;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec2 v_ao;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nin vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nin highp vec3 v_normal;\n#endif\nuniform vec3 u_flood_light_color;uniform highp float u_vertical_scale;uniform float u_flood_light_intensity;uniform vec3 u_ground_shadow_factor;\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nin float v_flood_radiu
2s;in float v_has_floodlight;\n#endif\nin float v_height;\n#pragma mapbox: define highp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize highp float emissive_strength\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvec3 normal=normalize(v_normal);\n#endif\nfloat z;vec4 color=v_color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);\n#ifdef LIGHTING_3D_MODE\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#else\ncolor=mix(v_color,v_roof_color,z);\n#endif\n#endif\nfloat h=max(0.0,v_height);float ao_shade=1.0;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h_floors=h/(u_ao[1]*u_vertical_scale);float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);ao_shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);ao_shade*=mix(1.0,x_shade*x_shade*x_shade,concave);\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\ncolor.rgb*=mix(ao_shade,1.0,v_has_floodlight);\n#else\ncolor.rgb*=ao_shade;\n#endif\n#else\ncolor.rgb*=ao_shade;\n#endif\n#endif\n#ifdef LIGHTING_3D_MODE\nfloat flood_radiance=0.0;\n#ifdef FLOOD_LIGHT\nflood_radiance=(1.0-min(h/v_flood_radius,1.0))*u_flood_light_intensity*v_has_floodlight;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef FLOOD_LIGHT\nfloat ndotl_unclamped=dot(normal,u_shadow_direction);float ndotl=max(0.0,ndotl_unclamped);float occlusion=ndotl_unclamped < 0.0 ? 1.0 : shadow_occlusion(ndotl,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 litColor=apply_lighting(color.rgb,normal,(1.0-u_shadow_intensity*occlusion)*ndotl);vec3 floodLitColor=compute_flood_lighting(u_flood_light_color*u_opacity,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=mix(litColor,floodLitColor,flood_radiance);\n#else\nfloat shadowed_lighting_factor;\n#ifdef RENDER_CUTOFF\nshadowed_lighting_factor=shadowed_light_factor_normal_opacity(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,v_cutoff_opacity);if (v_cutoff_opacity==0.0) {discard;}\n#else\nshadowed_lighting_factor=shadowed_light_factor_normal(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);\n#endif\ncolor.rgb=apply_lighting(color.rgb,normal,shadowed_lighting_factor);\n#endif\n#else\ncolor.rgb=apply_lighting(color.rgb,normal);\n#ifdef FLOOD_LIGHT\ncolor.rgb=mix(color.rgb,u_flood_light_color*u_opacity,flood_radiance);\n#endif\n#endif\ncolor.rgb=mix(color.rgb,v_flat.rgb,emissive_strength);color*=u_opacity;\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos,h));\n#endif\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color,h);\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_lighting.glsl"\nuniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;uniform float u_width_scale;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec3 a_join_normal_inside;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nuniform highp float u_vertical_scale;out vec4 v_color;out vec4 v_flat;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nout vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nout highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec2 v_ao;\n#endif\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nout float v_flood_radiu
2s;out float v_has_floodlight;\n#endif\nout float v_height;vec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define highp float flood_light_wall_radius\n#pragma mapbox: define highp float line_width\n#pragma mapbox: define highp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize highp float flood_light_wall_radius\n#pragma mapbox: initialize highp float line_width\n#pragma mapbox: initialize highp float emissive_strength\nbase*=u_vertical_scale;height*=u_vertical_scale;vec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nv_normal=normal;\n#endif\nbase=max(0.0,base);float attr_height=height;height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele=0.0;vec3 pos;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;ele=elevation(pos_nx.xy);c_ele=is_flat_height || is_flat_base ? (centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);h=t > 0.0 ? max(h_base,h_height) : h_base;pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat cutoff=1.0;vec3 scaled_pos=pos;\n#ifdef RENDER_CUTOFF\nvec3 centroid_random=vec3(centroid_pos.xy,centroid_pos.x+centroid_pos.y+1.0);vec3 ground_pos=centroid_pos.x==0.0 ? pos.xyz : (centroid_random/8.0);vec4 ground=u_matrix*vec4(ground_pos.xy,ele,1.0);cutoff=cutoff_opacity(u_cutoff_params,ground.z);if (centroid_pos.y !=0.0 && centroid_pos.x !=0.0) {vec3 g=floor(ground_pos);vec3 mod_=centroid_random-g*8.0;float seed=min(1.0,0.1*(min(3.5,max(mod_.x+mod_.y,0.2*attr_height))*0.35+mod_.z));if (cutoff < 0.8-seed) {cutoff=0.0;}}float cutoff_scale=cutoff;v_cutoff_opacity=cutoff;scaled_pos.z=mix(c_ele,h,cutoff_scale);\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (cutoff==0.0 && centroid_pos.x !=0.0) || (color.a==0.0));\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside.xy/EXTENT);scaled_pos.xy+=(1.0-a_join_normal_inside.z)*wall_offset*0.5;scaled_pos.xy-=a_join_normal_inside.z*wall_offset*0.5;\n#endif\ngl_Position=mix(u_matrix*vec4(scaled_pos,1),AWAY,hidden);h=h-ele;v_height=h;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=pos;vec3 shd_pos1=pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(normal);shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifndef LIGHTING_3D_MODE\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);if (normal.y !=0.0) {float r=0.84;r=mix(0.7,0.98,1.0-u_lightintensity);NdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}
2\n#endif\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec2(mix(concave,-concave,start),y_ground);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\nfloat is_wall=1.0-float(t > 0.0 && top_up_ny.y > 0.0);v_has_floodlight=float(flood_light_wall_radius > 0.0 && is_wall > 0.0);v_flood_radius=flood_light_wall_radius*u_vertical_scale;\n#endif\nv_color=vec4(color.rgb,1.0);float ndotl=calculate_NdotL(normal);v_flat.rgb=sRGBToLinear(color.rgb);v_flat.rgb=v_flat.rgb*(ndotl+(1.0-min(ndotl*57.29,1.0))*emissive_strength);v_flat=vec4(linearTosRGB(v_flat.rgb),1.0);\n#else\nv_color=vec4(0.0,0.0,0.0,1.0);v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color=vec4(0.0,0.0,0.0,1.0);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),fillExtrusionDepth:qn("in highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\nglFragColor=pack_depth(v_depth);\n#endif\n}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_edge_radius;uniform float u_width_scale;uniform float u_vertical_scale;\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nin vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec3 a_join_normal_inside;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp float line_width\n#pragma mapbox: define highp vec4 color\nout highp float v_depth;void main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp float line_width\n#pragma mapbox: initialize highp vec4 color\nbase*=u_vertical_scale;height*=u_vertical_scale;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nvec3 pos;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;float ele=elevation(pos_nx.xy);float c_ele=is_flat_height || is_flat_base ? (centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);float h=t > 0.0 ? max(h_base,h_height) : h_base;pos=vec3(pos_nx.xy,h);\n#else\npos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside.xy/EXTENT);pos.xy+=(1.0-a_join_normal_inside.z)*wall_offset*0.5;pos.xy-=a_join_normal_inside.z*wall_offset*0.5;\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (color.a==0.0));gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);v_depth=gl_Position.z/gl_Position.w;}'),fillExtrusionPattern:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nin vec3 v_normal;\n#endif\nin highp vec2 v_pos;in vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,normalize(v_normal))*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
2),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,height);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_lighting.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_width_scale;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;in vec4 a_pos_normal_ed;in vec2 a_centroid_pos;\n#ifdef RENDER_WALL_MODE\nin vec3 a_join_normal_inside;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_pos_3;in vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nout highp vec2 v_pos;out vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nout vec3 v_normal;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define highp float pixel_ratio\n#pragma mapbox: define highp float line_width\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize highp float pixel_ratio\n#pragma mapbox: initialize highp float line_width\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;ele=elevation(pos_nx.xy);c_ele=is_flat_height || is_flat_base ? (centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);h=t > 0.0 ? max(h_base,h_height) : h_base;p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\n#ifdef RENDER_WALL_MODE\nvec2 wall_offset=u_width_scale*line_width*(a_join_normal_inside.xy/EXTENT);p.xy+=(1.0-a_join_normal_inside.z)*wall_offset*0.5;p.xy-=a_join_normal_inside.z*wall_offset*0.5;\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (color.a==0.0));gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);
2\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_normal=normal;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}'),groundShadow:qn('#include "_prelude_shadow.fragment.glsl"\nprecision highp float;uniform vec3 u_ground_shadow_factor;in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\nvoid main() {float light=shadowed_light_factor_plane_bias(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 shadow=mix(u_ground_shadow_factor,vec3(1.0),light);\n#ifdef RENDER_CUTOFF\nshadow=mix(vec3(1.0),shadow,cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w));\n#endif\n#ifdef FOG\nshadow=mix(shadow,vec3(1.0),v_fog_opacity);\n#endif\n#ifdef INDICATOR_CUTOUT\nshadow=mix(shadow,vec3(1.0),1.0-applyCutout(vec4(1.0),0.0).r);\n#endif\nglFragColor=vec4(shadow,1.0);}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;in vec2 a_pos;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light_matrix_0*vec4(a_pos,0.0,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(a_pos,0.0,1.0);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);v_fog_opacity=fog(v_fog_pos);\n#endif\n}'),fillExtrusionGroundEffect:qn("uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;\n#ifdef SDF_SUBPASS\nin highp vec2 v_pos;in highp vec4 v_line_segment;in highp float v_flood_light_radius_tile;in highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);}\n#ifdef FOG\nin highp float v_fog;\n#endif\n#endif\nvoid main() {\n#ifdef CLEAR_SUBPASS\nvec4 color=vec4(1.0);\n#ifdef CLEAR_FROM_TEXTURE\ncolor=texture(u_fb,gl_FragCoord.xy/vec2(u_fb_size));\n#endif\nglFragColor=color;\n#else\n#ifdef SDF_SUBPASS\nhighp float d=line_df(v_line_segment.xy,v_line_segment.zw,v_pos);highp float effect_radius=mix(v_flood_light_radius_tile,v_ao.y,u_ao_pass);d/=effect_radius;d=min(d,1.0);d=1.0-pow(1.0-d,u_attenuation);highp float effect_intensity=mix(u_flood_light_intensity,v_ao.x,u_ao_pass);highp float fog=1.0;\n#ifdef FOG\nfog=v_fog;\n#endif\n#ifdef RENDER_CUTOFF\nfog*=v_cutoff_opacity;\n#endif\nglFragColor=vec4(vec3(0.0),mix(1.0,d,effect_intensity*u_opacity*fog));\n#else\nvec4 color=mix(vec4(u_flood_light_color,1.0),vec4(vec3(0.0),1.0),u_ao_pass);\n#ifdef OVERDRAW_INSPECTOR\ncolor=vec4(1.0);\n#endif\nglFragColor=color;\n#endif\nHANDLE_WIREFRAME_DEBUG;\n#endif\n}",'#include "_prelude_fog.vertex.glsl"\nin highp vec4 a_pos_end;in highp float a_angular_offset_factor;in highp float a_hidden_by_landmark;\n#ifdef SDF_SUBPASS\nout highp vec2 v_pos;out highp vec4 v_line_segment;out highp float v_flood_light_radius_tile;out highp vec2 v_ao;\n#ifdef FOG\nout highp float v_fog;\n#endif\n#endif\nuniform highp float u_flood_light_intensity;uniform highp mat4 u_matrix;uniform highp float u_ao_pass;uniform highp float u_meter_to_tile;uniform highp float u_edge_radius;uniform highp float u_dynamic_offset;uniform highp vec2 u_ao;
2\n#pragma mapbox: define highp float flood_light_ground_radius\nconst float TANGENT_CUTOFF=4.0;const float NORM=32767.0;void main() {\n#pragma mapbox: initialize highp float flood_light_ground_radius\nvec2 p=a_pos_end.xy;vec2 q=floor(a_pos_end.zw*0.5);vec2 start_bottom=a_pos_end.zw-q*2.0;float fl_ground_radius=flood_light_ground_radius;fl_ground_radius=abs(flood_light_ground_radius);float direction=flood_light_ground_radius < 0.0 ?-1.0 : 1.0;float flood_radius_tile=fl_ground_radius*u_meter_to_tile;vec2 v=normalize(q-p);float ao_radius=u_ao.y/3.5;float effect_radius=mix(flood_radius_tile,ao_radius,u_ao_pass)+u_edge_radius;float angular_offset_factor=a_angular_offset_factor/NORM*TANGENT_CUTOFF;float angular_offset=direction*angular_offset_factor*effect_radius;float top=1.0-start_bottom.y;float side=(0.5-start_bottom.x)*2.0;vec2 extrusion_parallel=v*side*mix(u_dynamic_offset,angular_offset,top);vec2 perp=vec2(v.y,-v.x);vec2 extrusion_perp=direction*perp*effect_radius*top;vec3 pos=vec3(mix(q,p,start_bottom.x),0.0);pos.xy+=extrusion_parallel+extrusion_perp;\n#ifdef SDF_SUBPASS\nv_pos=pos.xy;v_line_segment=vec4(p,q)+perp.xyxy*u_edge_radius;v_flood_light_radius_tile=flood_radius_tile;v_ao=vec2(u_ao.x,ao_radius);\n#ifdef FOG\nv_fog_pos=fog_position(pos);v_fog=1.0-fog(v_fog_pos);\n#endif\n#endif\nfloat hidden_by_landmark=0.0;\n#ifdef HAS_CENTROID\nhidden_by_landmark=a_hidden_by_landmark;\n#endif\nfloat isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);float hidden=mix(1.0-isFloodlit,isFloodlit,u_ao_pass);hidden+=hidden_by_landmark;gl_Position=mix(u_matrix*vec4(pos,1.0),AWAY,float(hidden > 0.0));\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}'),hillshadePrepare:qn("precision highp float;uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));glFragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}","uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);glFragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\nglFragColor=apply_lighting_with_emission_ground(glFragColor,u_emissive_strength);\n#endif\n#ifdef FOG\nglFragColor=fog_dither(fog_apply_premultiplied(glFragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}'),line:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform lowp float u_device_pixel_ratio;uniform highp float u_width_scale;uniform highp float u_floor_width_scale;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;uniform highp vec2 u_trim_fade_range;uniform lowp vec4 u_trim_color;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec4 v_uv;\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;in vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\nfloat luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}uniform float u_emissive_strength;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\nfloat linearstep(float edge0,float edge1,float x) {return  clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat dist=length(v_normal)*v_width2.s;float blur2=(u_width_scale*blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture(u_dash_image,v_tex).r;
2float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;float scaled_floorwidth=(floorwidth*u_floor_width_scale);alpha*=linearstep(0.5-sdfgamma/scaled_floorwidth,0.5+sdfgamma/scaled_floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trim_alpha=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {highp float start_transition=max(0.0,min(1.0,(line_progress-trim_start)/max(u_trim_fade_range[0],1.0e-9)));highp float end_transition=max(0.0,min(1.0,(trim_end-line_progress)/max(u_trim_fade_range[1],1.0e-9)));highp float transition_factor=min(start_transition,end_transition);out_color=mix(out_color,u_trim_color,transition_factor);trim_alpha=1.0-transition_factor;}\n#endif\nif (u_alpha_discard_threshold !=0.0) {if (alpha < u_alpha_discard_threshold) {discard;}}\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=((border_width*u_width_scale)+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);if (border_color.a==0.0) {float Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}} else {out_color=mix(border_color*trim_alpha,out_color,smoothAlpha);}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#ifdef ELEVATED_ROADS\nout_color.rgb*=mix(v_road_z_offset > 0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#else\nout_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=(alpha*opacity);\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_z_offset);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define EXTRUDE_SCALE 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS) || defined(VARIABLE_LINE_WIDTH)\nin vec2 a_z_offset_width;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nin highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nin float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;uniform float u_width_scale;uniform highp float u_floor_width_scale;\n#ifdef ELEVATED\nuniform lowp float u_zbias_factor;uniform lowp float u_tile_to_meter;float sample_elevation(vec2 apos) {\n#ifdef ELEVATION_REFERENCE_SEA\nreturn 0.0;\n#else\nreturn elevation(apos);\n#endif\n}\n#endif\nout vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec4 v_uv;\n#ifdef ELEVATED_ROADS\nout highp float v_road_z_offset;\n#endif\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;out vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\nfloat a_z_offset;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\na_z_offset=a_z_offset_width.x;\n#endif\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth;\n#ifdef VARIABLE_LINE_WIDTH\nhalfwidth=(u_width_scale*a_z_offset_width.y)/2.0;\n#else\nhalfwidth=(u_width_scale*width)/2.0;\n#endif\noffset=-1.0*offset*u_width_scale;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);float hidden=float(opacity==0.0);vec2 extrude=dist*u_pixels_to_tile_units;
2vec4 projected_extrude=u_matrix*vec4(extrude,0.0,0.0);vec2 projected_extrude_xy=projected_extrude.xy;\n#ifdef ELEVATED_ROADS\nv_road_z_offset=a_z_offset;gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,a_z_offset+0.01*step(0.01,a_z_offset),1.0)+projected_extrude;\n#else\n#ifdef ELEVATED\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 offset_pos=pos+offsetTile;float ele=0.0;\n#ifdef CROSS_SLOPE_VERTICAL\nfloat top=a_pos_normal.y-2.0*floor(a_pos_normal.y*0.5);float line_height=2.0*u_tile_to_meter*outset*top*u_pixels_to_tile_units[1][1]+a_z_offset;ele=sample_elevation(offset_pos)+line_height;projected_extrude=vec4(0);\n#else\n#ifdef CROSS_SLOPE_HORIZONTAL\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,max(ele1,ele2));ele=ele_max+a_z_offset;\n#else\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,0.5*(ele1+ele2));ele=ele_max-ele0+ele1+a_z_offset;\n#endif\n#endif\ngl_Position=u_matrix*vec4(offset_pos,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*u_zbias_factor*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);gl_Position=mix(gl_Position,AWAY,hidden);\n#else\ngl_Position=mix(u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude,AWAY,hidden);\n#endif\n#endif\n#ifdef ELEVATED_ROADS\n#ifdef RENDER_SHADOWS\nvec3 shd_pos=vec3(pos+(offset2+dist)*u_pixels_to_tile_units,a_z_offset);vec3 shd_pos0=shd_pos;vec3 shd_pos1=shd_pos;\n#ifdef NORMAL_OFFSET\nvec3 shd_pos_offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=shd_pos_offset*shadow_normal_offset_multiplier0();shd_pos1+=shd_pos_offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#endif\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude_xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=mix(extrude_length_without_perspective/extrude_length_with_perspective,1.0,step(0.01,blur));\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/(floorwidth*u_floor_width_scale),(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=a_z_offset;\n#endif\n}'),linePattern:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform highp float u_device_pixel_ratio;uniform highp float u_width_scale;uniform highp float u_alpha_discard_threshold;uniform highp vec2 u_texsize;uniform highp float u_tile_units_to_pixels;uniform highp vec2 u_trim_offset;uniform highp vec2 u_trim_fade_range;uniform lowp vec4 u_trim_color;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in highp float v_linesofar;in float v_gamma_scale;in float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec4 v_uv;\n#endif\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef LINE_JOIN_NONE\nin vec2 v_pattern_data;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\nuniform float u_emissive_strength;\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define mediump float pixel_ratio\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize mediump float pixel_ratio\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;highp float pattern_size=display_size.x/u_tile_units_to_pixels;float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(u_width_scale*blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);highp float pattern_x=v_linesofar/pattern_size*aspect;highp float x=mod(pattern_x,1.0);highp float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;highp vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));highp vec2 lod_pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(pattern_x,y));vec4 color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {highp float start_transition=max(0.0,min(1.0,(line_progress-trim_start)/max(u_trim_fade_range[0],1.0e-9)));highp float end_transition=max(0.0,min(1.0,(trim_end-line_progress)/max(u_trim_fade_range[1],1.0e-9)));highp float transition_factor=min(start_transition,end_transition);color=mix(color,color.a*u_trim_color,transition_factor);}\n#endif\n#ifdef LINE_JOIN_NONE\nhighp float pattern_len=pattern_size/aspect;highp float segment_phase=pattern_len-mod(v_linesofar-v_pattern_data.x+pattern_len,pattern_len);highp float visible_start=segment_phase-step(pattern_len*0.5,segment_phase)*pattern_len;highp float visible_end=floor((v_pattern_data.y-segment_phase)/pattern_len)*pattern_len+segment_phase;visible_end+=step(pattern_len*0.5,v_pattern_data.y-visible_end)*pattern_len;if (v_pattern_data.x < visible_start || v_pattern_data.x >=visible_end) {color=vec4(0.0);}\n#endif\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting_with_emission_ground(color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#ifdef ELEVATED_ROADS\ncolor.rgb*=mix(v_road_z_offset > 0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#else\ncolor.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=(alpha*opacity);if (u_alpha_discard_threshold !=0.0) {if (color.a < u_alpha_discard_threshold) {discard;}}\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color,v_z_offset);\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define scale 0.015873016\nin vec2 a_pos_normal;in vec4 a_data;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\nin vec2 a_z_offset_width;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec4 a_packed;\n#endif\nin highp float a_linesofar;\n#ifdef LINE_JOIN_NONE\nin highp vec3 a_pattern_data;out vec2 v_pattern_data;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\nuniform mat4 u_matrix;uniform float u_tile_units_to_pixels;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform float u_device_pixel_ratio;uniform float u_width_scale;uniform float u_floor_width_scale;\n#ifdef ELEVATED\nuniform lowp float u_zbias_factor;uniform lowp float u_tile_to_meter;float sample_elevation(vec2 apos) {\n#ifdef ELEVATION_REFERENCE_SEA\nreturn 0.0;\n#else\nreturn elevation(apos);\n#endif\n}\n#endif\nout vec2 v_normal;out vec2 v_width2;out highp float v_linesofar;out float v_gamma_scale;out float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nout highp vec4 v_uv;\n#endif\n#ifdef ELEVATED_ROADS\nout highp float v_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\n#pragma mapbox: define mediump float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define mediump float floorwidth\n#pragma mapbox: define mediump vec4 pattern\n#pragma mapbox: define mediump float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\n#pragma mapbox: initialize mediump float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize mediump float pixel_ratio\nfloat a_z_offset;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\na_z_offset=a_z_offset_width.x;\n#endif\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=(u_width_scale*width)/2.0;offset=-1.0*offset*u_width_scale;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);vec2 dist=outset*a_extrude*scale;float u=0.5*a_direction;float t=1.0-abs(u);vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float hidden=float(opacity==0.0);vec2 extrude=dist*u_pixels_to_tile_units;vec4 projected_extrude=u_matrix*vec4(extrude,0.0,0.0);vec2 projected_extrude_xy=projected_extrude.xy;\n#ifdef ELEVATED_ROADS\nv_road_z_offset=a_z_offset;gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,a_z_offset+0.01*step(0.01,a_z_offset),1.0)+projected_extrude;\n#else\n#ifdef ELEVATED\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 offset_pos=pos+offsetTile;float ele=0.0;\n#ifdef CROSS_SLOPE_VERTICAL\nfloat top=a_pos_normal.y-2.0*floor(a_pos_normal.y*0.5);float line_height=2.0*u_tile_to_meter*outset*top*u_pixels_to_tile_units[1][1]+a_z_offset;ele=sample_elevation(offset_pos)+line_height;projected_extrude=vec4(0);\n#else\n#ifdef CROSS_SLOPE_HORIZONTAL\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,max(ele1,ele2));ele=ele_max+a_z_offset;\n#else\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,0.5*(ele1+ele2));ele=ele_max-ele0+ele1+a_z_offset;\n#endif\n#endif\ngl_Position=u_matrix*vec4(offset_pos,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*u_zbias_factor*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);gl_Position=mix(gl_Position,AWAY,hidden);\n#else\ngl_Position=mix(u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude,AWAY,hidden);\n#endif\n#endif\n#ifdef ELEVATED_ROADS\n#ifdef RENDER_SHADOWS\nvec3 shd_pos=vec3(pos+(offset2+dist)*u_pixels_to_tile_units,a_z_offset);vec3 shd_pos0=shd_pos;vec3 shd_pos1=shd_pos;\n#ifdef NORMAL_OFFSET\nvec3 shd_pos_offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=shd_pos_offset*shadow_normal_offset_multiplier0();shd_pos1+=shd_pos_offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#endif\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude_xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=mix(extrude_length_without_perspective/extrude_length_with_perspective,1.0,step(0.01,blur));\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nfloat a_uv_x=a_packed[0];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];v_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=(floorwidth*u_floor_width_scale);\n#ifdef LINE_JOIN_NONE\nv_width=(floorwidth*u_floor_width_scale)+ANTIALIASING;mediump float pixels_to_tile_units=1.0/u_tile_units_to_pixels;mediump float pixel_ratio_inverse=1.0/pixel_ratio;mediump float aspect=v_width/((pattern.w-pattern.y)*pixel_ratio_inverse);highp float subt_multiple=(pattern.z-pattern.x)*pixel_ratio_inverse*pixels_to_tile_units*aspect*32.0;highp float subt=floor(a_pattern_data.z/subt_multiple)*subt_multiple;float offset_sign=(fract(a_pattern_data.x)-0.5)*4.0;float line_progress_offset=offset_sign*v_width*0.5*pixels_to_tile_units;v_linesofar=(a_pattern_data.z-subt)+a_linesofar+line_progress_offset;v_pattern_data=vec2(a_pattern_data.x+line_progress_offset,a_pattern_data.y);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=a_z_offset;\n#endif\n}'),raster:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_raster_array.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;uniform highp float u_zoom_transition;in vec2 v_pos0;in vec2 v_pos1;in float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nin float v_split_fade;\n#endif\nuniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;uniform float u_emissive_strength;\n#ifndef RASTER_ARRAY\nuniform highp sampler2D u_image0;uniform sampler2D u_image1;\n#endif\n#ifdef RASTER_COLOR\nuniform sampler2D u_color_ramp;uniform highp vec4 u_colorization_mix;uniform highp float u_colorization_offset;uniform vec2 u_texture_res;\n#endif\nvoid main() {vec4 color0,color1,color;vec2 value;\n#ifdef RASTER_COLOR\n#ifdef RASTER_ARRAY\n#ifdef RASTER_ARRAY_LINEAR\nvalue=mix(\nraTexture2D_image0_linear(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_linear(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#else\nvalue=mix(\nraTexture2D_image0_nearest(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_nearest(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#endif\nif (value.y > 0.0) value.x/=value.y;\n#else\ncolor=mix(texture(u_image0,v_pos0),texture(u_image1,v_pos1),u_fade_t);value=vec2(u_colorization_offset+dot(color.rgb,u_colorization_mix.rgb),color.a);\n#endif\ncolor=texture(u_color_ramp,vec2(value.x,0.5));if (color.a > 0.0) color.rgb/=color.a;color.a*=value.y;\n#else\ncolor0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);\n#endif\ncolor.a*=u_opacity;\n#ifdef GLOBE_POLES\ncolor.a*=1.0-smoothstep(0.0,0.05,u_zoom_transition);\n#endif\nvec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),u_emissive_strength).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef PROJECTION_GLOBE_VIEW\nglFragColor*=mix(1.0,1.0-smoothstep(0.0,0.05,u_zoom_transition),smoothstep(0.8,0.9,v_split_fade));\n#endif\n#ifdef RENDER_CUTOFF\nglFragColor=glFragColor*cutoff_opacity(u_cutoff_params,v_depth);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;uniform vec2 u_texture_offset;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin vec2 a_pos;in vec2 a_texture_pos;\n#endif\nout vec2 v_pos0;out vec2 v_pos1;out float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nout float v_split_fade;\n#endif\nvoid main() {vec2 uv;\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;gl_Position=u_matrix*u_globe_matrix*vec4(globe_pos   ,1.0);uv=a_uv;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(a_globe_pos,1.0)).xyz);\n#endif\n#else\nfloat w=1.0+dot(a_texture_pos,u_perspective_transform);uv=a_texture_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]);    \nv_split_fade=0.0;if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;float opposite_merc_center=mod(u_merc_center.x+0.5,1.0);float dist_from_poles=(abs(mercatorY-0.5)*2.0);float range=0.1;v_split_fade=abs(opposite_merc_center-mercatorX);v_split_fade=clamp(1.0-v_split_fade,0.0,1.0);v_split_fade=max(smoothstep(1.0-range,1.0,dist_from_poles),max(smoothstep(1.0-range,1.0,v_split_fade),smoothstep(1.0-range,1.0,1.0-v_split_fade)));}float tiles=u_grid_matrix[0][2];
2if (tiles > 0.0) {float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvY=mercatorY*tiles-idy;float uvX=mercatorX*tiles-idx;uv=vec2(uvX,uvY);}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\ngl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n#endif\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;v_pos0=u_texture_offset.x+u_texture_offset.y*v_pos0;v_pos1=u_texture_offset.x+u_texture_offset.y*v_pos1;\n#ifdef RENDER_CUTOFF\nv_depth=gl_Position.z;\n#endif\n}'),rasterParticle:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;in vec2 v_pos0;in vec2 v_pos1;uniform sampler2D u_image0;uniform sampler2D u_image1;void main() {vec4 color0,color1,color;color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 out_color=color.rgb;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),0.0).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\nin vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {float w=1.0;vec2 uv;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]);float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvX=mercatorX*tiles-idx;float uvY=mercatorY*tiles-idy;uv=vec2(uvX,uvY);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\nuv=a_texture_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*w,u_raster_elevation*w,w);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}'),rasterParticleDraw:qn("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}",'#include "_prelude_raster_particle.glsl"\nin float a_index;uniform sampler2D u_particle_texture;uniform float u_particle_texture_side_len;uniform vec2 u_tile_offset;out float v_particle_speed;void main() {ivec2 pixel_coord=ivec2(\nmod(a_index,u_particle_texture_side_len),a_index/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-1.0,0,1);v_particle_speed=length(velocity);}gl_PointSize=1.0;}'),rasterParticleTexture:qn("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}","in vec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*a_pos+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"),rasterParticleUpdate:qn('#include "_prelude_raster_particle.glsl"\nuniform sampler2D u_particle_texture;uniform mediump float u_particle_texture_side_len;uniform mediump float u_speed_factor;uniform highp float u_reset_rate;uniform highp float u_rand_seed;in highp vec2 v_tex_coord;
2vec2 linearstep(vec2 edge0,vec2 edge1,vec2 x) {return  clamp((x-edge0)/(edge1-edge0),vec2(0),vec2(1));}const highp vec3 rand_constants=vec3(12.9898,78.233,4375.85453);highp float rand(const highp vec2 co) {highp float t=dot(rand_constants.xy,co);return fract(sin(t)*(rand_constants.z+t));}void main() {ivec2 pixel_coord=ivec2(v_tex_coord*u_particle_texture_side_len);highp vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);highp vec2 pos=unpack_pos_from_rgba(pixel);highp vec2 velocity=lookup_velocity(clamp(pos,0.0,1.0));highp vec2 dp=velocity==INVALID_VELOCITY ? vec2(0) : velocity*u_speed_factor;pos=pos+dp;highp vec2 seed=(pos+v_tex_coord)*u_rand_seed;highp vec2 random_pos=vec2(rand(seed+1.3),rand(seed+2.1));highp vec2 persist_rate=pow(\nlinearstep(vec2(-u_particle_pos_offset),vec2(0),pos)*linearstep(vec2(1.0+u_particle_pos_offset),vec2(1),pos),vec2(4)\n);highp vec2 per_frame_persist=pow(persist_rate,abs(dp)/u_particle_pos_offset);highp float drop_rate=1.0-per_frame_persist.x*per_frame_persist.y;drop_rate=any(greaterThanEqual(abs(pos-0.5),vec2(0.5+u_particle_pos_offset))) ? 1.0 : drop_rate;highp float drop=step(1.0-drop_rate-u_reset_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}',"in vec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*(a_pos+vec2(1.0));gl_Position=vec4(a_pos,0.0,1.0);}"),symbol:qn('#include "_prelude_lighting.glsl"\n#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;uniform lowp float u_scale_factor;\n#ifdef ICON_TRANSITION\nuniform float u_icon_transition;\n#endif\n#ifdef COLOR_ADJUSTMENT\nuniform mat4 u_color_adj_mat;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\nin vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nin vec2 v_tex_b;\n#endif\nin float v_draw_halo;in vec3 v_gamma_scale_size_fade_opacity;\n#ifdef RENDER_TEXT_AND_SYMBOL\nin float is_sdf;in vec2 v_tex_a_icon;\n#endif\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\n#pragma mapbox: initialize lowp float emissive_strength\nvec4 out_color;float fade_opacity=v_gamma_scale_size_fade_opacity[2];\n#ifdef RENDER_TEXT_AND_SYMBOL\nif (is_sdf==ICON) {vec2 tex_icon=v_tex_a_icon;lowp float alpha=opacity*fade_opacity;glFragColor=texture(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nreturn;}\n#endif\n#ifdef RENDER_SDF\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_gamma_scale_size_fade_opacity.x;float size=v_gamma_scale_size_fade_opacity.y;float fontScale=u_is_text ? size/24.0 : size;out_color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo=v_draw_halo > 0.0;if (draw_halo) {out_color=halo_color;gamma=(halo_blur*u_scale_factor*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width*u_scale_factor/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,v_tex_a).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);out_color*=alpha;\n#else\n#ifdef ICON_TRANSITION\nvec4 a=texture(u_texture,v_tex_a)*(1.0-u_icon_transition);vec4 b=texture(u_texture,v_tex_b)*u_icon_transition;out_color=(a+b);\n#else\nout_color=texture(u_texture,v_tex_a);\n#endif\n#ifdef COLOR_ADJUSTMENT\nout_color=u_color_adj_mat*out_color;\n#endif\n#endif\nout_color*=opacity*fade_opacity;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_z_offset);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\nin vec4 a_pos_offset;in vec4 a_tex_size;in vec4 a_pixeloffset;in vec4 a_projected_pos;in float a_fade_opacity;\n#ifdef Z_OFFSET\nin float a_auto_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin vec3 a_globe_anchor;in vec3 a_globe_normal;\n#endif\n#ifdef ICON_TRANSITION\nin vec2 a_texb;\n#endif\n#ifdef OCCLUSION_QUERIES\nin float a_occlusion_query_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_elevation_from_sea;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;uniform bool u_is_halo;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nout vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nout vec2 v_tex_b;\n#endif\nout float v_draw_halo;out vec3 v_gamma_scale_size_fade_opacity;\n#ifdef RENDER_TEXT_AND_SYMBOL\nout float is_sdf;out vec2 v_tex_a_icon;\n#endif\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\n#pragma mapbox: define lowp float emissive_strength\n#pragma mapbox: define lowp float occlusion_opacity\n#pragma mapbox: define lowp float z_offset\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\n#pragma mapbox: initialize lowp float emissive_strength\n#pragma mapbox: initialize lowp float occlusion_opacity\n#pragma mapbox: initialize lowp float z_offset\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;float e=u_elevation_from_sea ? z_offset : z_offset+elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_auto_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;vec3 world_pos_globe;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos_globe=a_globe_anchor+h;world_pos=mix_globe_mercator(world_pos_globe,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;vec2 a;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);vec4 projected_point_globe=u_matrix*vec4(world_pos_globe,1);a=projected_point_globe.xy/projected_point_globe.w;\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);a=projected_point.xy/projected_point.w;\n#endif\nvec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\n#ifdef Z_OFFSET\nz+=u_pitch_with_map ? a_auto_z_offset+(u_elevation_from_sea ? z_offset : z_offset) : 0.0;\n#else\nz+=u_pitch_with_map ? (u_elevation_from_sea ? z_offset : z_offset) : 0.0;\n#endif\nfloat occlusion_fade=globe_occlusion_fade;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float out_fade_opacity=interpolated_fade_opacity*projection_transition_fade;\n#ifdef DEPTH_OCCLUSION\nfloat depth_occlusion=occlusionFadeMultiSample(projected_point);float depth_occlusion_multplier=mix(occlusion_opacity,1.0,depth_occlusion);out_fade_opacity*=depth_occlusion_multplier;\n#endif\n#ifdef OCCLUSION_QUERIES\nfloat occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);out_fade_opacity*=occludedFadeMultiplier;\n#endif\nfloat alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,hidden);\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,hidden);\n#endif\nfloat gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_gamma_scale_size_fade_opacity=vec3(gamma_scale,size,out_fade_opacity);v_tex_a=a_tex/u_texsize;\n#ifdef RENDER_TEXT_AND_SYMBOL\nis_sdf=a_size[0]-2.0*a_size_min;v_tex_a_icon=a_tex/u_texsize_icon;\n#endif\n#ifdef ICON_TRANSITION\nv_tex_b=a_texb/u_texsize;\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=e;\n#endif\n}'),terrainRaster:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;in vec2 v_pos0;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nin vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#endif\nuniform vec3 u_ground_shadow_factor;void main() {vec4 image_color=texture(u_image0,v_pos0);vec4 color;\n#ifdef LIGHTING_3D_MODE\nconst vec3 normal=vec3(0.0,0.0,1.0);\n#ifdef RENDER_SHADOWS\nfloat cutoffOpacity=1.0;\n#ifdef RENDER_CUTOFF\ncutoffOpacity=cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w);\n#endif\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nvec3 unlit_base=image_color.rgb*(1.0-image_color.a);vec3 emissive_base=image_color.rgb*image_color.a;float ndotl=u_shadow_direction.z;float occlusion=ndotl < 0.0 ? 1.0 : shadow_occlusion(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,0.0);ndotl=max(0.0,ndotl);vec3 lit=apply_lighting(unlit_base,normal,mix(1.0,(1.0-(u_shadow_intensity*occlusion))*ndotl,cutoffOpacity));vec3 emissive=compute_emissive_draped(emissive_base,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=lit+emissive;color.a=1.0;\n#else\nfloat lighting_factor=shadowed_light_factor_normal_unbiased(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);color=apply_lighting(image_color,normal,mix(1.0,lighting_factor,cutoffOpacity));\n#endif\n#else\nfloat lighting_factor=u_lighting_directional_dir.z;color=apply_lighting(image_color,normal,lighting_factor);\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor.rgb=mix(color.rgb,image_color.rgb,image_color.a);color.a=1.0;\n#endif\n#endif\n#else\ncolor=image_color;\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
2\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_skirt_height;in vec2 a_pos;out vec2 v_pos0;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;out float v_depth;\n#endif\nvoid main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);\n#endif\n}'),terrainDepth:qn("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;in vec2 a_pos;out float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}'),skybox:qn('#include "_prelude_fog.fragment.glsl"\nin lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
2nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=texture(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);glFragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',Cn),skyboxGradient:qn('#include "_prelude_fog.fragment.glsl"\nin highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',Cn),skyboxCapture:qn
vendor: 3,689 bytes, line 2
2("\nin highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;precision highp float;\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;glFragColor=vec4(color,1.0);}","in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;
2v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;uniform float u_far_z_cutoff;in vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nraster=apply_lighting_with_emission_ground(raster,raster.a);color=vec4(raster.rgb*antialias,antialias);\n#else\nraster=apply_lighting_ground(raster);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\ncolor=apply_lighting_with_emission_ground(color,color.a);color.a=1.0;\n#else\ncolor=apply_lighting_ground(color);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=1.0-step(u_far_z_cutoff,1.0/gl_FragCoord.w);glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin vec2 a_pos;\n#endif\nout vec2 v_pos0;void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);globe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}'),globeAtmosphere:qn('#include "_prelude_fog.fragment.glsl"\nuniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;in highp vec3 v_ray_dir;in highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {\n#ifdef ALPHA_PASS\nglFragColor=vec4(0,0,0,0);return;\n#else\n#ifdef NATIVE\nglFragColor=vec4(1,1,1,1);\n#else\nglFragColor=vec4(0,0,0,1);\n#endif\nreturn;\n#endif\n}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(clamp(dot(dir,horizon_dir),-1.0,1.0)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;highp float closest_point_to_center=length(closest_point-u_globe_pos);highp float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;
2vec3 color_stop_2=u_space_color.rgb;\n#ifdef ALPHA_PASS\nfloat a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);glFragColor=vec4(1.0,1.0,1.0,a);\n#else\nvec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c=c2;\n#ifndef NATIVE\nc=dither(c,gl_FragCoord.xy+u_temporal_offset);\n#endif\nglFragColor=vec4(c*t,t);\n#endif\n}',"in vec3 a_pos;in vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;out highp vec3 v_ray_dir;out highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}"),model:qn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_opacity;uniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;in highp vec4 v_position_height;in lowp vec4 v_color_mix;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in float v_depth_shadows;\n#endif\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nuniform vec4 u_occlusionTextureTransform;\n#endif\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#ifdef HAS_ATTRIBUTE_a_pbr\nin lowp vec4 v_roughness_metallic_emissive_alpha;in mediump vec4 v_height_based_emission_params;\n#endif\n#ifdef HAS_TEXTURE_u_baseColorTexture\nuniform sampler2D u_baseColorTexture;uniform bool u_baseTextureIsAlpha;uniform bool u_alphaMask;uniform float u_alphaCutoff;\n#endif\n#ifdef HAS_TEXTURE_u_metallicRoughnessTexture\nuniform sampler2D u_metallicRoughnessTexture;\n#endif\n#ifdef HAS_TEXTURE_u_occlusionTexture\nuniform sampler2D u_occlusionTexture;uniform float u_aoIntensity;\n#endif\n#ifdef HAS_TEXTURE_u_normalTexture\nuniform sampler2D u_normalTexture;\n#endif\n#ifdef HAS_TEXTURE_u_emissionTexture\nuniform sampler2D u_emissionTexture;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nin highp float v_depth;uniform highp sampler2D u_depthTexture;uniform highp vec2 u_inv_depth_size;uniform highp vec2 u_depth_range_unpack;\n#ifdef DEPTH_D24\nhighp float unpack_depth(highp float depth) {return  depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}\n#else\nhighp float unpack_depth_rgba(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded() {highp vec2 coord=gl_FragCoord.xy*u_inv_depth_size;\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depthTexture,coord).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depthTexture,coord));\n#endif\nreturn v_depth > depth+0.0005;}\n#endif\n#define saturate(_x) clamp(_x,0.,1.)\nvec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}float calculate_NdotL(vec3 normal,vec3 lightDir) {const float ext=0.70710678118;return (clamp(dot(normal,lightDir),-ext,1.0)+ext)/(1.0+ext);}vec3 getDiffuseShadedColor(vec3 albedo,vec3 normal,vec3 lightDir,vec3 lightColor)\n{\n#ifdef LIGHTING_3D_MODE\nvec3 transformed_normal=vec3(-normal.xy,normal.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=saturate(dot(transformed_normal,u_lighting_directional_dir));\n#endif\nreturn apply_lighting(albedo,transformed_normal,lighting_factor);\n#else\nvec3 n=normal;float colorvalue=((albedo.x*0.2126)+(albedo.y*0.7152))+(albedo.z*0.0722);vec3 c=vec3(0.03,0.03,0.03);float directional=clamp(dot(n,vec3(lightDir)),0.0,1.0);directional=mix(1.0-u_lightintensity,max((1.0-colorvalue)+u_lightintensity,1.0),directional);vec3 c3=c+clamp((albedo*directional)*lightColor,mix(vec3(0.0),vec3(0.3),vec3(1.0)-light
2Color),vec3(1.0));return c3;\n#endif\n}vec4 getBaseColor() {vec4 albedo=u_baseColorFactor;\n#ifdef HAS_ATTRIBUTE_a_color_3f\nalbedo*=vec4(color_3f,1.0);\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#else\n#ifdef HAS_ATTRIBUTE_a_color_4f\nalbedo*=color_4f;\n#endif\n#endif\n#if defined (HAS_TEXTURE_u_baseColorTexture) && defined (HAS_ATTRIBUTE_a_uv_2f)\nvec4 texColor=texture(u_baseColorTexture,uv_2f);if(u_alphaMask) {if (texColor.w < u_alphaCutoff) {discard;}}\n#ifdef UNPREMULT_TEXTURE_IN_SHADER\nif(texColor.w > 0.0) {texColor.rgb/=texColor.w;}texColor.w=1.0;\n#endif\nif(u_baseTextureIsAlpha) {if (texColor.r < 0.5) {discard;}} else {texColor.rgb=sRGBToLinear(texColor.rgb);albedo*=texColor;}\n#endif\nvec4 color=vec4(mix(albedo.rgb,v_color_mix.rgb,v_color_mix.a),albedo.a);\n#ifdef APPLY_LUT_ON_GPU\ncolor=applyLUT(u_lutTexture,color);\n#endif\nreturn color;}highp mat3 cotangentFrame(highp vec3 N,highp vec3 p,highp vec2 uv ) {\n#ifdef HAS_TEXTURE_u_normalTexture\nhighp vec3 dp1=vec3(dFdx(p.x),dFdx(p.y),dFdx(p.z));highp vec3 dp2=vec3(dFdy(p.x),dFdy(p.y),dFdy(p.z));highp vec2 duv1=vec2(dFdx(uv.x),dFdx(uv.y));highp vec2 duv2=vec2(dFdy(uv.x),dFdy(uv.y));highp vec3 dp2perp=cross( dp2,N );highp vec3 dp1perp=cross( N,dp1 );highp vec3 T=dp2perp*duv1.x+dp1perp*duv2.x;highp vec3 B=dp2perp*duv1.y+dp1perp*duv2.y;highp float lengthT=dot(T,T);highp float lengthB=dot(B,B);highp float maxLength=max(lengthT,lengthB);highp float invmax=inversesqrt( maxLength );highp mat3 res=mat3( T*invmax,B*invmax,N );return res;\n#else\nreturn mat3(1.0);\n#endif\n}highp vec3 getNormal(){highp vec3 n;\n#ifdef HAS_ATTRIBUTE_a_normal_3f\nn=normalize(normal_3f);\n#else\nhighp vec3 fdx=vec3(dFdx(v_position_height.x),dFdx(v_position_height.y),dFdx(v_position_height.z));highp vec3 fdy=vec3(dFdy(v_position_height.x),dFdy(v_position_height.y),dFdy(v_position_height.z));n=normalize(cross(fdx,fdy))*-1.0;\n#endif\n#if defined(HAS_TEXTURE_u_normalTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nvec3 nMap=texture( u_normalTexture,uv_2f).xyz;nMap=normalize(2.0*nMap-vec3(1.0));highp vec3 v=normalize(-v_position_height.xyz);highp mat3 TBN=cotangentFrame(n,v,uv_2f);n=normalize(TBN*nMap);\n#endif\nreturn n;}struct Material {float perceptualRoughness;float alphaRoughness;float metallic;vec3 f90;vec4 baseColor;vec3 diffuseColor;vec3 specularColor;highp vec3 normal;};Material getPBRMaterial() {Material mat;mat.baseColor=getBaseColor();mat.perceptualRoughness=u_roughnessFactor;mat.metallic=u_metallicFactor;\n#ifdef HAS_ATTRIBUTE_a_pbr\nmat.perceptualRoughness=v_roughness_metallic_emissive_alpha.x;mat.metallic=v_roughness_metallic_emissive_alpha.y;mat.baseColor.w*=v_roughness_metallic_emissive_alpha.w;\n#endif\n#if defined(HAS_TEXTURE_u_metallicRoughnessTexture) && defined(HAS_ATTRIBUTE_a_uv_2f) \nvec4 mrSample=texture(u_metallicRoughnessTexture,uv_2f);mat.perceptualRoughness*=mrSample.g;mat.metallic*=mrSample.b;\n#endif\nconst float c_minRoughness=0.04;mat.perceptualRoughness=clamp(mat.perceptualRoughness,c_minRoughness,1.0);mat.metallic=saturate(mat.metallic);mat.alphaRoughness=mat.perceptualRoughness*mat.perceptualRoughness;const vec3 f0=vec3(0.04);mat.diffuseColor=mat.baseColor.rgb*(vec3(1.0)-f0);mat.diffuseColor*=1.0-mat.metallic;mat.specularColor=mix(f0,mat.baseColor.rgb,mat.metallic);highp float reflectance=max(max(mat.specularColor.r,mat.specularColor.g),mat.specularColor.b);highp float reflectance90=saturate(reflectance*25.0);mat.f90=vec3(reflectance90);mat.normal=getNormal();return mat;}float V_GGX(float NdotL,float NdotV,float roughness)\n{float a2=roughness*roughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-a2)+a2);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-a2)+a2);return 0.5/(GGXV+GGXL);}float V_GGXFast(float NdotL,float NdotV,float roughness) {float a=roughness;float GGXV=NdotL*(NdotV*(1.0-a)+a);float GGXL=NdotV*(NdotL*(1.0-a)+a);return 0.5/(GGXV+GGXL);}vec3 F_Schlick(vec3 specularColor,vec3 f90,float VdotH)\n{return specularColor+(f90-specularColor)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}vec3 F_SchlickFast(vec3 specularColor,float VdotH)\n{float x=1.0-VdotH;float x4=x*x*x*x;return specularColor+(1.0-specularColor)*x4*x;}float D_GGX(highp float NdotH,float alphaRoughness)\n{highp float a4=alphaRoughness*alphaRoughness;highp float f=(NdotH*a4-NdotH)*NdotH+1.0;return a4/(PI*f*f);}vec3 diffuseBurley(Material mat,float LdotH,float NdotL,float NdotV)\n{float f90=2.0*LdotH*LdotH*mat.alphaRoughness-0.5;return (mat.diffuseColor/PI)*(1.0+f90*pow((1.0-NdotL),5.0))*(1.0+f90*pow((1.0-NdotV),5.0));}vec3 diffuseLambertian(Material mat)\n{\n#ifdef LIGHTING_3D_MODE\nreturn mat.diffuseColor;\n#else\nreturn mat.diffuseColor/PI;\n#endif\n}vec3 EnvBRDFApprox(vec3 specularColor,float roughness,highp float NdotV)\n{vec4 c0=vec4(-1,-0.0275,-0.572,0.022);vec4 c1=vec4(1,0.0425,1.04,-0.04);highp vec4 r=roughness*c0+c1;highp float a004=min(r.x*r.x,exp2(-9.28*NdotV))*r.x+r.y;vec2 AB=vec2(-1.04,1.04)*a004+r.zw;return specularColor*AB.x+AB.y;}vec3 computeIndirectLightContribution(Material mat,float NdotV,vec3 normal)\n{vec3 env_light=vec3(0.65,0.65,0.65);\n#ifdef LIGHTING_3D_MODE\nfloat ambient_factor=calculate_ambient_directional_factor(normal);env_light=u_lighting_ambient_color*ambient_factor;\n#endif\nvec3 envBRDF=EnvBRDFApprox(mat.specularColor,mat.perceptualRoughness,NdotV);vec3 indirectSpecular= envBRDF*env_light;vec3 indirectDiffuse=mat.diffuseColor*env_light;return indirectSpecular+indirectDiffuse;}vec3 computeLightContribution(Material mat,vec3 lightPosition,vec3 lightColor)\n{highp vec3 n=mat.normal;highp vec3 v=normalize(-v_position_height.xyz);highp vec3 l=normalize(lightPosition);highp vec3 h=normalize(v+l);float NdotV=clamp(abs(dot(n,v)),0.001,1.0);float NdotL=saturate(dot(n,l));highp float NdotH=saturate(dot(n,h));float VdotH=saturate(dot(v,h));vec3 f=F_SchlickFast(mat.specularColor,VdotH);float g=V_GGXFast(NdotL,NdotV,mat.alphaRoughness);float d=D_GGX(NdotH,mat.alphaRoughness);vec3 diffuseTerm=(1.0-f)*diffuseLambertian(mat);vec3 specularTerm=f*g*d;vec3 transformed_normal=vec3(-n.xy,n.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=NdotL;\n#endif\nvec3 directLightColor=(specularTerm+diffuseTerm)*lighting_factor*light
2Color;vec3 indirectLightColor=computeIndirectLightContribution(mat,NdotV,transformed_normal);vec3 color=(saturate(directLightColor)+indirectLightColor);float intensityFactor=1.0;\n#if !defined(LIGHTING_3D_MODE)\nconst vec3 luminosityFactor=vec3(0.2126,0.7152,0.0722);float luminance=dot(diffuseTerm,luminosityFactor);intensityFactor=mix((1.0-u_lightintensity),max((1.0-luminance+u_lightintensity),1.0),NdotL);\n#endif\ncolor*=intensityFactor;return color;}void main() {\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nif (isOccluded()) {discard;}\n#endif\nvec3 lightDir=u_lightpos;vec3 lightColor=u_lightcolor;\n#ifdef LIGHTING_3D_MODE\nlightDir=u_lighting_directional_dir;lightDir.xy=-lightDir.xy;lightColor=u_lighting_directional_color;\n#endif\nvec4 finalColor;\n#ifdef DIFFUSE_SHADED\nvec3 N=getNormal();vec3 baseColor=getBaseColor().rgb;vec3 diffuse=getDiffuseShadedColor(baseColor,N,lightDir,lightColor);\n#ifdef HAS_TEXTURE_u_occlusionTexture\nfloat ao=(texture(u_occlusionTexture,uv_2f).r-1.0)*u_aoIntensity+1.0;diffuse*=ao;\n#endif\nfinalColor=vec4(mix(diffuse,baseColor,u_emissive_strength),1.0)*u_opacity;\n#else\nMaterial mat=getPBRMaterial();vec3 color=computeLightContribution(mat,lightDir,lightColor);float ao=1.0;\n#if defined (HAS_TEXTURE_u_occlusionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nvec2 uv=uv_2f.xy*u_occlusionTextureTransform.zw+u_occlusionTextureTransform.xy;\n#else\nvec2 uv=uv_2f;\n#endif\nao=(texture(u_occlusionTexture,uv).x-1.0)*u_aoIntensity+1.0;color*=ao;\n#endif\nvec4 emissive=u_emissiveFactor;\n#if defined(HAS_TEXTURE_u_emissionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nemissive.rgb*=sRGBToLinear(texture(u_emissionTexture,uv_2f).rgb);\n#endif\n#ifdef APPLY_LUT_ON_GPU\nfloat emissiveFactorLength=max(length(u_emissiveFactor.rgb),0.001);emissive.rgb=sRGBToLinear(applyLUT(u_lutTexture,linearTosRGB(emissive.rgb/emissiveFactorLength).rbg))*emissiveFactorLength;\n#endif\ncolor+=emissive.rgb;float opacity=mat.baseColor.w*u_opacity;\n#ifdef HAS_ATTRIBUTE_a_pbr\nfloat resEmission=v_roughness_metallic_emissive_alpha.z;resEmission*=v_height_based_emission_params.z+v_height_based_emission_params.w*pow(clamp(v_height_based_emission_params.x,0.0,1.0),v_height_based_emission_params.y);vec3 color_mix=v_color_mix.rgb;\n#ifdef APPLY_LUT_ON_GPU\ncolor_mix=applyLUT(u_lutTexture,color_mix);\n#endif\ncolor=mix(color,color_mix,min(1.0,resEmission));\n#ifdef HAS_ATTRIBUTE_a_color_4f\nfloat distance=length(vec2(1.3*max(0.0,abs(color_4f.x)-color_4f.z),color_4f.
2y));distance+= mix(0.5,0.0,clamp(resEmission-1.0,0.0,1.0));opacity*=v_roughness_metallic_emissive_alpha.w*saturate(1.0-distance*distance);\n#endif\n#endif\nvec3 unlitColor=mat.baseColor.rgb*ao+emissive.rgb;color=mix(color,unlitColor,u_emissive_strength);color=linearTosRGB(color);color*=opacity;finalColor=vec4(color,opacity);\n#endif\n#ifdef FOG\nfinalColor=fog_dither(fog_apply_premultiplied(finalColor,v_fog_pos,v_position_height.w));\n#endif\n#ifdef RENDER_CUTOFF\nfinalColor*=v_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\nfinalColor=applyCutout(finalColor,v_position_height.w);\n#endif\nglFragColor=finalColor;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec3 a_pos_3f;\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute-vertex-shader-only highp vec4 pbr\n#pragma mapbox: define-attribute-vertex-shader-only highp vec3 heightBasedEmissiveStrength\nuniform mat4 u_matrix;uniform mat4 u_node_matrix;uniform mat4 u_lighting_matrix;uniform vec3 u_camera_pos;uniform vec4 u_color_mix;\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_normal_matrix;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out float v_depth_shadows;\n#endif\nout vec4 v_position_height;out lowp vec4 v_color_mix;\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nout highp float v_depth;\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\nout lowp vec4 v_roughness_metallic_emissive_alpha;out mediump vec4 v_height_based_emission_params;\n#endif\nvec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}void main() {\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute-custom highp vec4 pbr\n#pragma mapbox: initialize-attribute-custom highp vec3 heightBasedEmissiveStrength\nhighp mat4 normal_matrix;\n#ifdef INSTANCED_ARRAYS\nnormal_matrix=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\nnormal_matrix=u_normal_matrix;\n#endif\nvec3 local_pos;mat3 rs;\n#ifdef MODEL_POSITION_ON_GPU\nvec3 pos_color=normal_matrix[0].xyz;vec4 translate=normal_matrix[1];vec3 pos_a=floor(pos_color);vec3 rgb=1.05*(pos_color-pos_a);float hidden=float(pos_a.x > EXTENT);float color_mix=pos_a.z/100.0;v_color_mix=vec4(sRGBToLinear(rgb),color_mix);float meter_to_tile=normal_matrix[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);rs[0].x=normal_matrix[1].w;rs[0].yz=normal_matrix[2].xy;rs[1].xy=normal_matrix[2].zw;rs[1].z=normal_matrix[3].x;rs[2].xyz=normal_matrix[3].yzw;vec4 pos_node=u_lighting_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;local_pos=pos.xyz;gl_Position=mix(u_matrix*pos,AWAY,hidden);pos.z*=meter_to_tile;v_position_height.xyz=pos.xyz-u_camera_pos;\n#else\nlocal_pos=a_pos_3f;gl_Position=u_matrix*vec4(a_pos_3f,1);v_position_height.xyz=vec3(u_lighting_matrix*vec4(a_pos_3f,1));v_color_mix=vec4(sRGBToLinear(u_color_mix.rgb),u_color_mix.a);\n#endif\nv_position_height.w=a_pos_3f.z;\n#ifdef HAS_ATTRIBUTE_a_pbr\nvec4 albedo_c=decode_color(pbr.xy);vec2 e_r_m=unpack_float(pbr.z);vec2 r_m= unpack_float(e_r_m.y*16.0);r_m.r=r_m.r*16.0;v_color_mix=vec4(albedo_c.rgb,1.0);v_roughness_metallic_emissive_alpha=vec4(vec3(r_m,e_r_m.x)/255.0,albedo_c.a);v_roughness_metallic_emissive_alpha.z*=2.0;float heightBasedRelativeIntepolation=a_pos_3f.z*heightBasedEmissiveStrength.x+heightBasedEmissiveStrength.y;v_height_based_emission_params.x=heightBasedRelativeIntepolation;v_height_based_emission_params.y=heightBasedEmissiveStrength.z;vec2 emissionMultiplierValues=unpack_float(pbr.w)/256.0;v_height_based_emission_params.z=emissionMultiplierValues.x;v_height_based_emission_params.w=emissionMultiplierValues.y-emissionMultiplierValues.x;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(local_pos);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nv_depth=gl_Position.z/gl_Position.w;\n#endif\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nfloat x_squared_scale=dot(rs[0],rs[0]);float y_squared_scale=dot(rs[1],rs[1]);float z_squared_scale=dot(rs[2],rs[2]);vec3 squared_scale=vec3(x_squared_scale,y_squared_scale,z_squared_scale);normal_3f=rs*((u_lighting_matrix*vec4(normal_3f,0.0)).xyz/squared_scale);normal_3f=normalize(normal_3f);
2\n#else\nnormal_3f=vec3(normal_matrix*vec4(normal_3f,0));\n#endif\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#ifdef HAS_ATTRIBUTE_a_color_4f\nv_roughness_metallic_emissive_alpha.w=clamp(color_4f.a*v_roughness_metallic_emissive_alpha.w*(v_roughness_metallic_emissive_alpha.z-1.0),0.0,1.0);\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec4 shadow_pos=u_node_matrix*vec4(local_pos,1.0);\n#ifdef NORMAL_OFFSET\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nvec3 offset=shadow_normal_offset(vec3(-normal_3f.xy,normal_3f.z));shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#else\nvec3 offset=shadow_normal_offset_model(normal_3f);shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#endif\n#endif\n#endif\nv_pos_light_view_0=u_light_matrix_0*shadow_pos;v_pos_light_view_1=u_light_matrix_1*shadow_pos;v_depth_shadows=gl_Position.w;\n#endif\n}'),modelDepth:qn("in highp float v_depth;void main() {\n#ifndef DEPTH_TEXTURE\nglFragColor=pack_depth(v_depth);\n#endif\n}","in vec3 a_pos_3f;uniform mat4 u_matrix;out highp float v_depth;\n#ifdef MODEL_POSITION_ON_GPU\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_instance;\n#endif\nuniform highp mat4 u_node_matrix;\n#endif\nvoid main() {\n#ifdef MODEL_POSITION_ON_GPU\nhighp mat4 instance;\n#ifdef INSTANCED_ARRAYS\ninstance=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\ninstance=u_instance;\n#endif\nvec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_color);float hidden=float(pos_a.x > EXTENT);float meter_to_tile=instance[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);mat3 rs;rs[0].x=instance[1].w;rs[0].yz=instance[2].xy;
2rs[1].xy=instance[2].zw;rs[1].z=instance[3].x;rs[2].xyz=instance[3].yzw;vec4 pos_node=u_node_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;gl_Position=mix(u_matrix*pos,AWAY,hidden);\n#else\ngl_Position=u_matrix*vec4(a_pos_3f,1);\n#endif\nv_depth=gl_Position.z/gl_Position.w;}"),stars:qn("in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv)\n{float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;glFragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}","\nin vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_fade_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_fade_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}"),snowParticle:qn("in highp vec2 uv;in highp float alphaMultiplier;uniform vec4 u_particleColor;uniform vec2 u_simpleShapeParameters;void main() {float t=clamp((length(uv)-u_simpleShapeParameters.x)/(1.0-u_simpleShapeParameters.x),0.0,1.0);float alpha=1.0-pow(t,pow(10.0,u_simpleShapeParameters.y));alpha*=alphaMultiplier;alpha*=u_particleColor.a;vec3 color=u_particleColor.rgb*alpha;glFragColor=vec4(color,alpha) ;HANDLE_WIREFRAME_DEBUG;}","\nin highp vec3 a_pos_3f;in highp vec2 a_uv;in highp vec4 a_snowParticleData;in highp vec4 a_snowParticleDataHorizontalOscillation;uniform mat4 u_modelview;uniform mat4 u_projection;uniform vec3 u_cam_pos;uniform vec2 u_screenSize;uniform float u_time;uniform float u_boxSize;uniform float u_velocityConeAperture; \nuniform float u_velocity;uniform vec3 u_direction;uniform float u_horizontalOscillationRadius; \nuniform float u_horizontalOscillationRate; \nuniform float u_billboardSize;uniform vec2 u_thinningCenterPos;uniform vec3 u_thinningShape;uniform float u_thinningAffectedRatio;uniform float u_thinningParticleOffset;out highp vec2 uv;out highp float alphaMultiplier;void main() {vec3 pos=a_pos_3f;float halfBoxSize=0.5*u_boxSize;pos.xyz*=halfBoxSize;pos+=u_cam_pos;float velocityConeApertureRad=radians(u_velocityConeAperture*0.5);float coneAnglePichRad=velocityConeApertureRad*a_snowParticleData.z;float coneAngleHeadingRad=a_snowParticleData.w*radians(360.0);vec3 localZ=normalize(u_direction);vec3 localX=normalize(cross(localZ,vec3(1,0,0)));vec3 localY=normalize(cross(localZ,localX));vec3 direction;direction.x=cos(coneAngleHeadingRad)*sin(coneAnglePichRad);direction.y=sin(coneAngleHeadingRad)*sin(coneAnglePichRad);direction.z=cos(coneAnglePichRad);direction=normalize(direction);vec3 simPosLocal=vec3(0,0,0);float velocityScale=(1.0+3.0*a_snowParticleData.y)*u_velocity;simPosLocal+=direction*velocityScale*u_time;float horizontalOscillationRadius=u_horizontalOscillationRadius*a_snowParticleDataHorizontalOscillation.x;float horizontalOscillationAngle=u_horizontalOscillationRate*u_time*(-1.0+2.0*a_snowParticleDataHorizontalOscillation.y);simPosLocal.xy+=horizontalOscillationRadius*vec2(cos(horizontalOscillationAngle),sin(horizontalOscillationAngle));vec3 simPos=localX*simPosLocal.x+\nlocalY*simPosLocal.y+localZ*simPosLocal.z;pos+=simPos;pos=fract((pos+vec3(halfBoxSize))/vec3(u_boxSize))*u_boxSize-vec3(halfBoxSize);float clipZ=-u_cam_pos.z+pos.z;vec4 posView=u_modelview*vec4(pos,1.0);float size=u_billboardSize;alphaMultiplier=1.0;vec4 posScreen=u_projection*posView;posScreen/=posScreen.w;posScreen.xy=vec2(0.5)+posScreen.xy*0.5;posScreen.xy*=u_screenSize;vec2 thinningCenterPos=u_thinningCenterPos.xy;thinningCenterPos.y=u_screenSize.y-thinningCenterPos.y;float screenDist=length((thinningCenterPos-posScreen.xy)/(0.5*u_screenSize));screenDist+=a_snowParticleData.x*u_thinningParticleOffset;float scaleFactorMode=0.0;float thinningShapeDist=u_thinningShape.x+u_thinningShape.y;if (screenDist < thinningShapeDist) {float thinningFadeRatio=clamp((screenDist-u_thinningShape.x)/u_thinningShape.y,0.0,1.0);thinningFadeRatio=pow(thinningFadeRatio,u_thinningShape.z);if (a_snowParticleData.x < u_thinningAffectedRatio) {scaleFactorMode=1.0-thinningFadeRatio;alphaMultiplier=thinningFadeRatio;}}vec4 posScreen1=u_projection*vec4(posView.x-size,posView.yzw);posScreen1/=posScreen1.w;vec4 posScreen2=u_projection*vec4(posView.x+size,posView.yzw);posScreen2/=posScreen2.w;posScreen1.xy=vec2(0.5)+posScreen1.xy*0.5;posScreen1.xy*=u_screenSize;posScreen2.xy=vec2(0.5)+posScreen2.xy*0.5;posScreen2.xy*=u_screenSize;float screenLength=length(posScreen1.xy-posScreen2.xy);float screenEpsilon=3.0;float scaleFactor=1.0;if (screenLength < screenEpsilon) {scaleFactor=screenEpsilon/max(screenLength,0.01);scaleFactor=mix(scaleFactor,1.0,scaleFactorMode);}float screenEpsilon2=15.0;if (screenLength > screenEpsilon2) {scaleFactor=screenEpsilon2/max(screenLength,0.01);}size*=scaleFactor;vec2 right=size*vec2(1,0);vec2 up=size*vec2(0,1);posView.xy+=right*a_uv.x;posView.xy+=up*a_uv.y;uv=a_uv;gl_Position=u_projection*posView;}"),rainParticle:qn("in highp vec2 uv;in highp float particleRandomValue;uniform sampler2D u_texScreen;uniform float u_distortionStrength;uniform vec4 u_color;uniform vec2 u_thinningCenterPos;uniform vec3 u_thinningShape;uniform float u_thinningAffectedRatio;uniform float u_thinningParticleOffset;uniform float u_shapeDirectionalPower;uniform float u_mode;void main() {vec2 st=uv*0.5+vec2(0.5);vec2 uvm=uv;uvm.y=-1.0+2.0*pow(st.y,u_shapeDirectionalPower);float shape=clamp(1.0-length(uvm),0.0,1.0);float alpha=abs(shape)*u_color.a;vec2 screenSize=vec2(textureSize(u_texScreen,0));vec2 thinningCenterPos=u_thinningCenterPos.xy;thinningCenterPos.y=screenSize.y-thinningCenterPos.y;float screenDist=length((thinningCenterPos-gl_FragCoord.xy)/(0.5*screenSize));screenDist+=(0.5+0.5*particleRandomValue)*u_thinningParticleOffset;float thinningShapeDist=u_thinningShape.x+u_thinningShape.y;float thinningAlpha=1.0;if (screenDist < thinningShapeDist) {float thinningFadeRatio=clamp((screenDist-u_thinningShape.x)/u_thinningShape.y,0.0,1.0);thinningFadeRatio=pow(thinningFadeRatio,u_thinningShape.z);thinningAlpha*=thinningFadeRatio;}vec2 offsetXY=normalize(uvm)*abs(shape);vec2 stScreen=(gl_FragCoord.xy+offsetXY*u_distortionStrength*thinningAlpha)/screenSize;vec3 colorScreen=texture(u_texScreen,stScreen).rgb;alpha*=thinningAlpha;glFragColor=mix(vec4(colorScreen,1.0),vec4(u_color.rgb*alpha,alpha),u_mode);HANDLE_WIREFRAME_DEBUG;}","\nin highp vec3 a_pos_3f;in highp vec2 a_uv;in highp vec4 a_rainParticleData;uniform mat4 u_modelview;uniform mat4 u_projection;uniform vec3 u_cam_pos;uniform float u_time;uniform float u_boxSize;uniform float u_velocityConeAperture; \nuniform float u_velocity; \nuniform vec2 u_rainDropletSize;uniform vec3 u_rainDirection;out highp vec2 uv;out highp float particleRandomValue;void main() {vec3 pos=a_pos_3f;float halfBoxSize=0.5*u_boxSize;
2pos*=halfBoxSize; \npos+=u_cam_pos;float velocityConeApertureRad=radians(u_velocityConeAperture*0.5);float coneAnglePichRad=velocityConeApertureRad*a_rainParticleData.z;float coneAngleHeadingRad=a_rainParticleData.w*radians(360.0);vec3 localZ=normalize(u_rainDirection);vec3 localX=normalize(cross(localZ,vec3(1,0,0)));vec3 localY=normalize(cross(localZ,localX));vec3 directionLocal;directionLocal.x=cos(coneAngleHeadingRad)*sin(coneAnglePichRad);directionLocal.y=sin(coneAngleHeadingRad)*sin(coneAnglePichRad);directionLocal.z=cos(coneAnglePichRad);directionLocal=normalize(directionLocal);vec3 directionWorld=localX*directionLocal.x+localY*directionLocal.y+localZ*directionLocal.z;float velocityScale=(1.0+3.0*a_rainParticleData.y)*u_velocity;vec3 simPosLocal=vec3(0,0,0);simPosLocal+=directionLocal*velocityScale*u_time;vec3 simPos=localX*simPosLocal.x+\nlocalY*simPosLocal.y+localZ*simPosLocal.z;pos+=simPos;pos=fract((pos+vec3(halfBoxSize))/vec3(u_boxSize))*u_boxSize-vec3(halfBoxSize);vec4 posView=u_modelview*vec4(pos,1.0);vec3 directionView=normalize((u_modelview*vec4(directionWorld,0.0)).xyz);vec3 side=cross(directionView,normalize(posView.xyz));posView.xyz+=side*a_uv.x*u_rainDropletSize.x;posView.xyz+=directionView*a_uv.y*u_rainDropletSize.y;uv=a_uv;particleRandomValue=a_rainParticleData.x;gl_Position=u_projection*posView;}"),vignette:qn("uniform vec3 u_vignetteShape;uniform vec4 u_vignetteColor;in vec2 st;void main() {float screenDist=length(st);float alpha=clamp((screenDist-u_vignetteShape.x)/u_vignetteShape.y,0.0,1.0);alpha=pow(alpha,u_vignetteShape.z)*u_vignetteColor.a;vec3 color=u_vignetteColor.rgb;glFragColor=vec4(color*alpha,alpha) ;}","in vec2 a_pos_2f;out vec2 st;void main() {st=a_pos_2f;gl_Position=vec4(a_pos_2f,0,1);}"),occlusion:qn("uniform vec4 u_color;void main() {glFragColor=u_color;}",'#include "_prelude_terrain.vertex.glsl"\nin highp vec2 a_offset_xy;uniform highp vec3 u_anchorPos;uniform mat4 u_matrix;uniform vec2 u_screenSizePx;uniform vec2 u_occluderSizePx;void main() {vec3 world_pos=u_anchorPos;\n#ifdef TERRAIN\nfloat e=elevation(world_pos.xy);world_pos.z+=e;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1.0);projected_point.xy+=projected_point.w*a_offset_xy*0.5*u_occluderSizePx/u_screenSizePx;gl_Position=projected_point;}')};function Vn(e,t){const r=e.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let n of r)if(n=n.trim(),"#"===n[0]&&n.includes("if")&&!n.includes("endif")){n=n.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const e=n.split(" ");for(const r of e)t.includes(r)||t.push(r)}}function qn(e,t){const r=/#include\s+"([^"]+)"/g,n=/#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g;let i=t.match(/(attribute(\S*)|(^\s*|;)in) (highp |mediump |lowp )?([\w]+) ([\w]+)/gm);i&&(i=i.map((e=>{const t=e.split(" ");return t[t.length-1]})),i=[...new Set(i)]);const o={},a=[],s=[];if(e=e.replace(r,((e,t)=>
2(s.push(t),""))),(t=t.replace(r,((e,t)=>(a.push(t),"")))).includes("flat out"))return void console.error('The usage of "flat" qualifier is disallowed, see: https://bugs.webkit.org/show_bug.cgi?id=268071');let l=[...Nn];Vn(e,l),Vn(t,l);for(const c of[...a,...s])Fn[c]||console.error("Undefined include: ".concat(c)),zn[c]||(zn[c]=[],Vn(Fn[c],zn[c])),l=[...l,...zn[c]];return{fragmentSource:e=e.replace(n,((e,t,r,n,i)=>(o[i]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(i,"\nin ").concat(r," ").concat(n," ").concat(i,";\n#else\nuniform ").concat(r," ").concat(n," u_").concat(i,";\n#endif\n"):"initialize"===t?"\n#ifdef HAS_UNIFORM_u_".concat(i,"\n    ").concat(r," ").concat(n," ").concat(i," = u_").concat(i,";\n#endif\n"):"define-attribute"===t?"\n#ifdef HAS_ATTRIBUTE_a_".concat(i,"\n    in ").concat(r," ").concat(n," ").concat(i,";\n#endif\n"):"initialize-attribute"===t?"":void 0))),vertexSource:t=t.replace(n,((e,t,r,n,i)=>{const a="float"===n?"vec2":n,s=i.match(/color/)?"color":a;return"define-attribute-vertex-shader-only"===t?"\n#ifdef HAS_ATTRIBUTE_a_".concat(i,"\nin ").concat(r," ").concat(n," a_").concat(i,";\n#endif\n"):o[i]?"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(i,"\nuniform lowp float u_").concat(i,"_t;\nin ").concat(r," ").concat(a," a_").concat(i,";\nout ").concat(r," ").concat(n," ").concat(i,";\n#else\nuniform ").concat(r," ").concat(n," u_").concat(i,";\n#endif\n"):"initialize"===t?"vec4"===s?"\n#ifndef HAS_UNIFORM_u_".concat(i,"\n    ").concat(i," = a_").concat(i,";\n#else\n    ").concat(r," ").concat(n," ").concat(i," = u_").concat(i,";\n#endif\n"):"\n#ifndef HAS_UNIFORM_u_".concat(i,"\n    ").concat(i," = unpack_mix_").concat(s,"(a_").concat(i,", u_").concat(i,"_t);\n#else\n    ").concat(r," ").concat(n," ").concat(i," = u_").concat(i,";\n#endif\n"):"define-attribute"===t?"\n#ifdef HAS_ATTRIBUTE_a_".concat(i,"\n    in ").concat(r," ").concat(n," a_").concat(i,";\n    out ").concat(r," ").concat(n," ").concat(i,";\n#endif\n"):"initialize-attribute"===t?"\n#ifdef HAS_ATTRIBUTE_a_".concat(i,"\n    ").concat(i," = a_").concat(i,";\n#endif\n"):void 0:"define"===t?"\n#ifndef HAS_UNIFORM_u_".concat(i,"\nuniform lowp float u_").concat(i,"_t;\nin ").concat(r," ").concat(a," a_").concat(i,";\n#else\nuniform ").concat(r," ").concat(n," u_").concat(i,";\n#endif\n"):"define-instanced"===t?"mat4"===s?"\n#ifdef INSTANCED_ARRAYS\nin vec4 a_".concat(i,"0;\nin vec4 a_").concat(i,"1;\nin vec4 a_").concat(i,"2;\nin vec4 a_").concat(i,"3;\n#else\nuniform ").concat(r," ").concat(n," u_").concat(i,";\n#endif\n"):"\n#ifdef INSTANCED_ARRAYS\nin ".concat(r," ").concat(a," a_").concat(i,";\n#else\nuniform ").concat(r," ").concat(n," u_").concat(i,";\n#endif\n"):"initialize-attribute-custom"===t?"\n#ifdef HAS_ATTRIBUTE_a_".concat(i,"\n    ").concat(r," ").concat(n," ").concat(i," = a_").concat(i,";\n#endif\n"):"vec4"===s?"\n#ifndef HAS_UNIFORM_u_".concat(i,"\n    ").concat(r," ").concat(n," ").concat(i," = a_").concat(i,";\n#else\n    ").concat(r," ").concat(n," ").concat(i," = u_").concat(i,";\n#endif\n"):"\n#ifndef HAS_UNIFORM_u_".concat(i,"\n    ").concat(r," ").concat(n," ").concat(i," = unpack_mix_").concat(s,"(a_").concat(i,", u_").concat(i,"_t);\n#else\n    ").concat(r," ").concat(n," ").concat(i," = u_").concat(i,";\n#endif\n")})),staticAttributes:i,usedDefines:l,vertexIncludes:a,fragmentIncludes:s}}class Hn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,r,n,i,o,a,s){this.context=e;let l=this.boundPaintVertexBuffers.length!==n.length;for(let u=0;!l&&u<n.length;u++)this.boundPaintVertexBuffers[u]!==n[u]&&(l=!0);let c=this.boundDynamicVertexBuffers.length!==a.length;for(let u=0;!c&&u<a.length;u++)this.boundDynamicVertexBuffers[u]!==a[u]&&(c=!0);if(!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==r||l||c||this.boundIndexBuffer!==i||this.boundVertexOffset!==o)this.freshBind(t,r,n,i,o,a,s);else{e.bindVertexArrayOES.set(this.vao);for(const r of a)r&&(r.bind(),s&&r.instanceCount&&r.setVertexAttribDivisor(e.gl,t,s));i&&i.dynamicDraw&&i.bind()}}freshBind(e,t,r,n,i,o,a){const s=e.numAttributes,l=this.context,c=l.gl;this.vao&&this.destroy(),this.vao=l.gl.createVertexArray(),l.bindVertexArrayOES.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffers=o,t.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,i);for(const u of r)u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,i);for(const u of o)u&&(u.enableAttributes(c,e),u.bind(),u.setVertexAttribPointers(c,e,i),a&&u.instanceCount&&u.setVertexAttribDivisor(c,e,a));n&&n.bind(),l.currentNumAttributes=s}destroy(){this.vao&&(this.context.gl.deleteVertexArray(this.vao),this.vao=null)}}function Gn(t,r){const n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new e.aa(0,i/n).toLngLat().lat,new e.aa(0,(i+1)/n).toLngLat().lat]}function Wn(t,r,n,i,o,a,s){const l=t.context,c=l.gl,u=n.hillshadeFBO;if(!u)return;t.prepareDrawTile();const d=t.isTileAffectedByFog(r),h=t.getOrCreateProgram("hillshade",{overrideFog:d});l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,u.colorAttachment.get());const p=((t,r,n,i)=>{const o=n.paint.get("hillshade-shadow-color"),a="none"===n.paint.get("hillshade-shadow-color-use-theme").
vendor: 5,494 bytes, line 2
2constantOr("default"),s=n.paint.get("hillshade-highlight-color"),l="none"===n.paint.get("hillshade-highlight-color-use-theme").constantOr("default"),c=n.paint.get("hillshade-accent-color"),u="none"===n.paint.get("hillshade-accent-color-use-theme").constantOr("default"),d=n.paint.get("hillshade-emissive-strength");let h=e.ai(n.paint.get("hillshade-illumination-direction"));if("viewport"===n.paint.get("hillshade-illumination-anchor"))h-=t.transform.angle;else if(t.style&&t.style.enable3dLights()&&t.style.directionalLight){const r=t.style.directionalLight.properties.get("direction"),n=e.cb(r.x,r.y,r.z);h=e.ai(n[1])}const p=!t.options.moving;return{u_matrix:i||t.transform.calculateProjMatrix(r.tileID.toUnwrapped(),p),u_image:0,u_latrange:Gn(0,r.tileID),u_light:[n.paint.get("hillshade-exaggeration"),h],u_shadow:o.toRenderColor(a?null:n.lut),u_highlight:s.toRenderColor(l?null:n.lut),u_emissive_strength:d,u_accent:c.toRenderColor(u?null:n.lut)}})(t,n,i,t.terrain?r.projMatrix:null);t.uploadCommonUniforms(l,h,r.toUnwrapped());const{tileBoundsBuffer:f,tileBoundsIndexBuffer:m,tileBoundsSegments:g}=t.getTileBoundsBuffers(n);h.draw(t,c.TRIANGLES,o,a,s,Gr.disabled,p,i.id,f,m,g)}function Yn(t,r,n){if(!r.needsDEMTextureUpload)return;const i=t.context,o=i.gl;i.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||t.getTileTexture(n.stride);const a=n.getPixels();r.demTexture?r.demTexture.update(a,{premultiply:!1}):r.demTexture=new e.T(i,a,o.R32F,{premultiply:!1}),r.needsDEMTextureUpload=!1}function Zn(t,r,n){const i=t.context,o=i.gl;if(!r.dem)return;const a=r.dem;if(i.activeTexture.set(o.TEXTURE1),Yn(t,r,a),!r.demTexture)return;r.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE);const s=a.dim;i.activeTexture.set(o.TEXTURE0);let l=r.hillshadeFBO;if(!l){const t=new e.T(i,{width:s,height:s,data:null},o.RGBA8);t.bind(o.LINEAR,o.CLAMP_TO_EDGE),l=r.hillshadeFBO=i.createFramebuffer(s,s,!0,"renderbuffer"),l.colorAttachment.set(t.texture)}i.bindFramebuffer.set(l.framebuffer),i.viewport.set([0,0,s,s]);const{tileBoundsBuffer:c,tileBoundsIndexBuffer:u,tileBoundsSegments:d}=t.getMercatorTileBoundsBuffers(),h=[];t.linearFloatFilteringSupported()&&h.push("TERRAIN_DEM_FLOAT_FORMAT"),t.getOrCreateProgram("hillshadePrepare",{defines:h}).draw(t,o.TRIANGLES,Br.disabled,Vr.disabled,jr.unblended,Gr.disabled,((t,r)=>{const n=r.stride,i=e.ab.mat4.create();return e.ab.mat4.ortho(i,0,e.ag,-e.ag,0,0,1),e.ab.mat4.translate(i,i,[0,-e.ag,0]),{u_matrix:i,u_image:1,u_dimension:[n,n],u_zoom:t.overscaledZ}})(r.tileID,a),n.id,c,u,d),r.needsHillshadePrepare=!1}class Kn{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class Xn extends Kn{getDefault(){return e.aj.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class Jn extends Kn{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class Qn extends Kn{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class $n extends Kn{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class ei extends Kn{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class ti extends Kn{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class ri extends Kn{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class ni extends Kn{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class ii extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class oi extends Kn{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class ai extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class si extends Kn{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class li extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class ci extends Kn{getDefault(){const e=this.gl;return[e.ONE,e.ZERO,e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.blendFuncSeparate(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class ui extends Kn{getDefault(){return e.aj.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor
vendor: 4,863 bytes, line 2
2(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class di extends Kn{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquationSeparate(e,e),this.current=e,this.dirty=!1)}}class hi extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class pi extends Kn{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class fi extends Kn{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}let mi=class extends Kn{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}};class gi extends Kn{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class _i extends Kn{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class yi extends Kn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class vi extends Kn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class bi extends Kn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class xi extends Kn{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class wi extends Kn{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class Ai extends Kn{getDefault(){return null}set(e){this.gl&&(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}}class Si extends Kn{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class Ei extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class Ti extends Kn{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class Pi extends Kn{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class Ci extends Pi{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Ii extends Pi{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class Mi extends Pi{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,this.attachment(),t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class ki extends Ii{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}const Oi=(e,t,r)=>({u_matrix:e,u_image0:0,u_skirt_height:t,u_ground_shadow_factor:r}),Ri=(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(n),u_merc_matrix:r,u_zoom_transition:i,u_merc_center:o,u_image0:0,u_frustum_tl:a,u_frustum_tr:s,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:u,u_globe_radius:d,u_viewport:h,u_grid_matrix:m?Float32Array.from(m):new Float32Array(9),u_skirt_height:p,u_far_z_cutoff:f});function Li(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const Di=new class{constructor(){this.operations={}}newMorphing(e,t,r,n,i){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==r.tileID.key&&(t.queued=r)}else this.operations[e]={startTime:n,phase:0,duration:i,from:t,to:r,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const r=this.operations[t];for(r.phase=(e-r.startTime)/r.duration;r.phase>
2=1||!this._validOp(r);)if(!this._nextOp(r,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},Ni={0:null,1:"TERRAIN_VERTEX_MORPHING"};function Fi(e,t,r){if(0===t)return 0;const n=t<1&&514===r?.25/t:1;return 6*Math.pow(1.5,22-e)*Math.max(t,1)*n}function zi(e,t){const r=1<<e.z;return!t&&(0===e.x||e.x===r-1)||0===e.y||e.y===r-1}const ji=e=>({u_matrix:e});function Bi(t,r,n,i,o){if(o>0){const a=e.q.now(),s=(a-t.timeAdded)/o,l=r?(a-r.timeAdded)/o:-1,c=n.getSource(),u=i.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),d=!r||Math.abs(r.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),h=d&&t.refreshedUponExpiration?1:e.aw(d?s:1-l,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),r?{opacity:1,mix:1-h}:{opacity:h,mix:0}}return{opacity:1,mix:0}}class Ui extends Pt{constructor(t){const r={type:"raster-dem",maxzoom:t.transform.maxZoom},n=new e.D(e.ci(),null),i=ct("mock-dem",r,n,t.style);super("mock-dem",i,!1),i.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class Vi extends Pt{constructor(t){const r=ct("proxy",{type:"geojson",maxzoom:t.transform.maxZoom},new e.D(e.ci(),null),t.style);super("proxy",r,!1),r.setEventedParent(this),this.map=this.getSource().map=t,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(e,t,r){if(e.freezeTileCoverage)return;this.transform=e;const n=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce(((t,r)=>{if(t[r.key]="",!this._tiles[r.key]){const t=new At(r,this._source.tileSize*r.overscaleFactor(),e.tileZoom);t.state="loaded",this._tiles[r.key]=t}return t}),{});for(const i in this._tiles)i in n||(this.freeFBO(i),this._tiles[i].unloadVectorData(),delete this._tiles[i])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const r=Object.values(t);this.renderCachePool.push(...r),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach((e=>e.fb.destroy())),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class qi extends e.aG{constructor(e,t,r){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=r}}class Hi extends e.cJ{constructor(t,r){super(),this._debugParams={sortTilesHiZFirst:!0,disableRenderCache:!1},t.tp.registerParameter(this._debugParams,["Terrain"],"sortTilesHiZFirst",{},(()=>{this._style.map.triggerRepaint()})),t.tp.registerParameter(this._debugParams,["Terrain"],"disableRenderCache",{},(()=>{this._style.map.triggerRepaint()})),t.tp.registerButton(["Terrain"],"Invalidate Render Cache",(()=>{this.invalidateRenderCache=!0,this._style.map.triggerRepaint()})),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[n,i,o]=function(){const t=new e.b4,r=new e.aU,n=131;t.reserve(17161),r.reserve(33800);const i=e.ag/128,o=e.ag+i/2,a=o+i;for(let l=-i;l<a;l+=i)for(let r=-i;r<a;r+=i){const n=r<0||r>o||l<0||l>o?24575:0,i=e.aw(Math.round(r),0,e.ag),a=e.aw(Math.round(l),0,e.ag);t.emplaceBack(i+n,a)}const s=(e,t)=>{const i=t*n+e;r.emplaceBack(i+1,i,i+n),r.emplaceBack(i+n,i+n+1,i+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)s(t,e);return[0,129].forEach((e=>{for(let t=0;t<130;t++)s(t,e),s(e,t)})),[t,r,32768]}(),a=t.context;this.gridBuffer=a.createVertexBuffer(n,e.b6.members),this.gridIndexBuffer=a.createIndexBuffer(i),this.gridSegments=e.b7.simpleSegment(0,0,n.length,i.length),this.gridNoSkirtSegments=e.b7.simpleSegment(0,0,n.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new Vi(r.map),this.orthoMatrix=e.ab.mat4.create(),e.ab.mat4.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,e.ag,0,e.ag,0,1);const s=a.gl;this._overlapStencilMode=new Vr({func:s.GEQUAL,mask:255},0,255,s.KEEP,s.KEEP,s.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=r,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Ui(r.map),this._pendingGroundEffectLayers=[]}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),this._style=e,this._style.map.on("moveend",(()=>{this._clearLineLayersFromRenderCache()}))}update(t,r,n){if(t&&t.terrain){this._style!==t&&(this.style=t,this._evaluationZoom=void 0);const i=t.terrain.properties,o=0===t.terrain.drapeRenderMode,a=t.terrain.isZoomDependent();this._previousUpdateTimestamp=this.enabled?this._updateTimestamp:void 0,this._updateTimestamp=e.q.now();const s=t.terrain&&t.terrain.scope,l=i.get("source"),c=o?this._mockSourceCache:t.getSourceCache(l,s);if(!c)return void e.w("Couldn't find terrain source \"".concat(l,'".'));if(this.sourceCache=c,this._attenuationRange=t.terrain.getAttenuationRange(),this._exaggeration=a?this.calculateExaggeration(r):i.get("exaggeration"),!r.projection.requiresDraping&&a&&0===this._exaggeration)return void this._disable();this.enabled=!0;const u=()=>{this.sourceCache.used&&e.w("Raster DEM source '".concat(this.sourceCache.id,"' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source."));const t=this.getScaledDemTileSize();this.sourceCache.update(r,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,u(),this._initializing=!0),u(),r.updateElevation(!0,n),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(r),this._emptyDEMTextureDirty=!0,this._previousZoom=r.zoom}else this._disable()}calculateExaggeration(t){if(this._attenuationRange&&t.zoom>=Math.ceil(this._attenuationRange[1]))return this._style.terrain.getExaggeration(t.zoom);const r=this._previousCameraAltitude,n=t.getFreeCameraOptions().position.z/t.pixelsPerMeter*t.worldSize;this._previousCameraAltitude=n;const i=null!=r?n-r:Number.MAX_VALUE;if(Math.abs(i)<2)return this._exaggeration;const o=t.zoom,a=this._style.terrain;if(!this._previousUpdateTimestamp)return a.getExaggeration(o);let s=o-this._previousZoom;const l=this._previousUpdateTimestamp;let c=o;null!=this._evaluationZoom&&(c=this._evaluationZoom,Math.abs(o-c)>.5&&(s=.5*(o-c+s)),s*i<0&&(c+=s)),this._evaluationZoom=c;const u=a.getExaggeration(c),d=u===a.getExaggeration(Math.max(0,c-.1));if(d&&Math.abs(u-this._exaggeration)<.01)return u;let h=Math.min(.1,.00375*(this._updateTimestamp-l));return(d||u<.1||Math.abs(s)<1e-4)&&(h=Math.min(.2,4*h)),e.af(this._exaggeration,u,h)}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}attenuationRange(){return this._attenuationRange}getDemUpscale(){return this.proxySourceCache.getSource().tileSize/128}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this.invalidateRenderCache=!0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this._previousCameraAltitude=void 0)}_disable(){if(this.enabled&&(this.enabled=!1,this._emptyDEMTextureDirty=!0,this._sharedDepthStencil=void 0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._mergedSourceCaches)this._style._mergedSourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this.pool.forEach((e=>e.fb.destroy())),this.pool=[],this.framebufferCopyTexture&&this.framebufferCopyTexture.destroy()}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this.enabled?this._exaggeration:0}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const r=this.proxySourceCache,n=this.painter.transform;this._initializing&&(this._initializing=0===n._centerAltitude&&-1===this.getAtPointOrZero(e.aa.fromLngLat(n.center),-1),this._emptyDEMTextureDirty=!this._initializing);const i=this.proxyCoords=r.getIds().map((e=>{const t=r.getTileByID(e).tileID;return t.projMatrix=n.calculateProjMatrix(t.toUnwrapped()),t}));!function(t,r){const n=r.transform.pointCoordinate(r.transform.getCameraPoint()),i=new e.P(n.x,n.y);t.sort(((t,r)=>
vendor: 9,488 bytes, line 2
2{if(r.overscaledZ-t.overscaledZ)return r.overscaledZ-t.overscaledZ;const n=new e.P(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),o=new e.P(r.canonical.x+(1<<r.canonical.z)*r.wrap,r.canonical.y),a=i.mult(1<<t.canonical.z);return a.x-=.5,a.y-=.5,a.distSqr(n)-a.distSqr(o)}))}(i,this.painter);const o=this.proxyToSource||{};this.proxyToSource={},i.forEach((e=>{this.proxyToSource[e.key]={}})),this.terrainTileForTile={};const a=this._style._mergedSourceCaches;for(const e in a){const r=a[e];if(!r.used)continue;if(r!==this.sourceCache&&this.resetTileLookupCache(r.id),this._setupProxiedCoordsForOrtho(r,t[e],o),r.usedForTerrain)continue;const n=t[e];r.getSource().reparseOverscaled&&this._assignTerrainTiles(n)}this.proxiedCoords[r.id]=i.map((e=>new qi(e,e.key,this.orthoMatrix))),this._assignTerrainTiles(i),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1;const s={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const r=t.tileID.key;r in s||(this._visibleDemTiles.push(t),s[r]=r)}}_assignTerrainTiles(e){this._initializing||e.forEach((e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)}))}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const r in this.terrainTileForTile){const n=this.terrainTileForTile[r],i=n.dem;!i||n.demTexture&&!n.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),Yn(this.painter,n,i))}}_prepareDemTileUniforms(e,t,r,n){if(!t||null==t.demTexture)return!1;const i=e.tileID.canonical,o=Math.pow(2,t.tileID.canonical.z-i.z),a=n||"";return r["u_dem_tl".concat(a)]=[i.x*o%1,i.y*o%1],r["u_dem_scale".concat(a)]=o,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}_getLoadedAreaMinimum(){if(!this.enabled)return 0;let e=0;const t=this._visibleDemTiles.reduce(((t,r)=>{if(!r.dem)return t;const n=r.dem.tree.minimums[0];return n>0&&e++,t+n}),0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,r=t.gl;t.activeTexture.set(r.TEXTURE2);const n=this._getLoadedAreaMinimum(),i=new e.cK({width:1,height:1},new Float32Array([n]));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(i,{premultiply:!1}):o=this._emptyDEMTexture=new e.T(t,i,r.R32F,{premultiply:!1}),o}setupElevationDraw(t,r,n){const i=this.painter.context,o=i.gl,a={u_dem:2,u_dem_prev:4,u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0};a.u_exaggeration=this.exaggeration();let s=null,l=null,c=1;if(n&&n.morphing&&this._useVertexMorphing){const e=n.morphing.srcDemTile,r=n.morphing.dstDemTile;c=n.morphing.phase,e&&r&&(this._prepareDemTileUniforms(t,e,a,"_prev")&&(l=e),this._prepareDemTileUniforms(t,r,a)&&(s=r))}const u=e=>e&&e.demTexture&&this.painter.linearFloatFilteringSupported()?o.LINEAR:o.NEAREST;let d=null;var h;if(this.enabled?l&&s?(d=s.demTexture,i.activeTexture.set(o.TEXTURE4),l.demTexture.bind(u(l),o.CLAMP_TO_EDGE),a.u_dem_lerp=c):(s=this.terrainTileForTile[t.tileID.key],d=this._prepareDemTileUniforms(t,s,a)?s.demTexture:this.emptyDEMTexture):d=this.emptyDEMTexture,i.activeTexture.set(o.TEXTURE2),d&&(a.u_dem_size=1===(h=d).size[0]?1:h.size[0]-2,d.bind(u(s),o.CLAMP_TO_EDGE)),this.painter.setupDepthForOcclusion(n&&n.useDepthForOcclusion,r,a),n&&n.useMeterToDem&&s){const t=(1<<s.tileID.canonical.z)*e.bH(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;a.u_meter_to_dem=t}if(n&&n.labelPlaneMatrixInv&&(a.u_label_plane_matrix_inv=n.labelPlaneMatrixInv),r.setTerrainUniformValues(i,a),"globe"===this.painter.transform.projection.name){const e=this.globeUniformValues(this.painter.transform,t.tileID.canonical,n&&n.useDenormalizedUpVectorScale);r.setGlobeUniformValues(i,e)}}globeUniformValues(t,r,n){const i=t.projection;return{u_tile_tl_up:i.upVector(r,0,0),u_tile_tr_up:i.upVector(r,e.ag,0),u_tile_br_up:i.upVector(r,e.ag,e.ag),u_tile_bl_up:i.upVector(r,0,e.ag),u_tile_up_scale:n?e.cL(1):i.upVectorScale(r,t.center.lat,t.worldSize).metersToTile}}renderToBackBuffer(t){const r=this.painter,n=this.painter.context;0!==t.length&&(n.bindFramebuffer.set(null),n.viewport.set([0,0,r.width,r.height]),r.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(t,r,n,i,o){if("globe"===t.transform.projection.name)!function(t,r,n,i,o){const a=t.context,s=a.gl;let l,c;const u=t.transform,d=e.cC(t,a,u),h=(e,r)=>{if(c===r)return;const n=[Ni[r],"PROJECTION_GLOBE_VIEW"];d&&n.push("CUSTOM_ANTIALIASING");const i=t.isTileAffectedByFog(e);l=t.getOrCreateProgram("globeRaster",{defines:n,overrideFog:i}),c=r},p=t.colorModeForRenderPass(),f=new Br(s.LEQUAL,Br.ReadWrite,t.depthRangeFor3D);Di.update(o);const m=e.cD(u),g=[e.at(u.center.lng),e.aA(u.center.lat)],_=t.globeSharedBuffers,y=[u.width*e.q.devicePixelRatio,u.height*e.q.devicePixelRatio],v=Float32Array.from(u.globeMatrix),b={useDenormalizedUpVectorScale:!0};{const u=t.transform,d=Fi(u.zoom,r.exaggeration(),r.sourceCache._source.tileSize);c=-1;const x=s.TRIANGLES;for(const c of i){const i=n.getTile(c),w=Vr.disabled,A=r.prevTerrainTileForTile[c.key],S=r.terrainTileForTile[c.key];Li(A,S)&&Di.newMorphing(c.key,A,S,o,250),a.activeTexture.set(s.TEXTURE0),i.texture&&i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const E=Di.getMorphValuesForProxy(c.key),T=E?1:0;E&&e.J(b,{morphing:{srcDemTile:E.from,dstDemTile:E.to,phase:e.cB(E.phase)}});const P=e.cE(c.canonical),C=e.cF(P.getCenter().lat),I=e.cG(c.canonical,P,C,u.worldSize/u._pixelsPerMercatorPixel),M=e.bb(e.cH(c.canonical)),k=Ri(u.expandedFarZProjMatrix,v,m,M,e.ae(u.zoom),g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,y,d,u._farZ,I);if(h(c,T),l&&(r.setupElevationDraw(i,l,b),t.uploadCommonUniforms(a,l,c.toUnwrapped()),_)){const[e,r,n]=_.getGridBuffers(C,0!==d);l.draw(t,x,f,w,p,Gr.backCCW,k,"globe_raster",e,r,n)}}}if(_&&(t.renderDefaultNorthPole||t.renderDefaultSouthPole)){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];d&&o.push("CUSTOM_ANTIALIASING"),l=t.getOrCreateProgram("globeRaster",{defines:o});for(const c of i){const{x:i,y:o,z:d}=c.canonical,h=0===o,m=o===(1<<d)-1,[v,x,w,A]=_.getPoleBuffers(d,!1);if(A&&(h||m)){const o=n.getTile(c);a.activeTexture.set(s.TEXTURE0),o.texture&&o.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);let _=e.cI(d,i,u);const S=e.bb(e.cH(c.canonical)),E=(e,r)=>e.draw(t,s.TRIANGLES,f,Vr.disabled,p,Gr.disabled,Ri(u.expandedFarZProjMatrix,_,_,S,0,g,u.frustumCorners.TL,u.frustumCorners.TR,u.frustumCorners.BR,u.frustumCorners.BL,u.globeCenterInViewSpace,u.globeRadius,y,0,u._farZ),"globe_pole_raster",r,w,A);r.setupElevationDraw(o,l,b),t.uploadCommonUniforms(a,l,c.toUnwrapped()),h&&t.renderDefaultNorthPole&&E(l,v),m&&t.renderDefaultSouthPole&&(_=e.ab.mat4.scale(e.ab.mat4.create(),_,[1,-1,1]),E(l,x))}}}}(t,r,n,i,o);else{const a=t.context,s=a.gl;let l,c;const u=t.shadowRenderer,d=rn(t,t.longestCutoffRange),h=e=>{if(c===e)return;const r=[];r.push(Ni[e]),d.shouldRenderCutoff&&r.push("RENDER_CUTOFF"),u&&(r.push("RENDER_SHADOWS","DEPTH_TEXTURE"),u.useNormalOffset&&r.push("NORMAL_OFFSET")),l=t.getOrCreateProgram("terrainRaster",{defines:r}),c=e},p=t.colorModeForRenderPass(),f=new Br(s.LEQUAL,Br.ReadWrite,t.depthRangeFor3D);Di.update(o);const m=t.transform,g=Fi(m.zoom,r.exaggeration(),r.sourceCache._source.tileSize);let _=[0,0,0];if(u){const e=t.style.directionalLight,r=t.style.ambientLight;e&&r&&(_=un(t.style,e,r))}{c=-1;const y=s.TRIANGLES,[v,b]=[r.gridIndexBuffer,r.gridSegments];for(const c of i){const i=n.getTile(c),x=Vr.disabled,w=r.prevTerrainTileForTile[c.key],A=r.terrainTileForTile[c.key];Li(w,A)&&Di.newMorphing(c.key,w,A,o,250),a.activeTexture.set(s.TEXTURE0),i.texture&&i.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const S=Di.getMorphValuesForProxy(c.key),E=S?1:0;let T;S&&(T={morphing:{srcDemTile:S.from,dstDemTile:S.to,phase:e.cB(S.phase)}});const P=Oi(c.projMatrix,zi(c.canonical,m.renderWorldCopies)?g/10:g,_);if(h(E),!l)continue;r.setupElevationDraw(i,l,T);const C=c.toUnwrapped();u&&u.setupShadows(C,l),t.uploadCommonUniforms(a,l,C,null,d),l.draw(t,y,f,x,p,Gr.backCCW,P,"terrain_raster",r.gridBuffer,v,b)}}}}(r,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,r.gpuTimingDeferredRenderEnd(),t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const r=this.painter,n=this.painter.context,i=this.proxySourceCache,o=this.proxiedCoords[i.id],a=this._drapedRenderBatches.shift(),s=r.style.order,l=[];let c=0;for(const u of o){const o=i.getTileByID(u.proxyTileKey),d=i.proxyCachedFBO[u.key]?i.proxyCachedFBO[u.key][t]:void 0,h=void 0!==d?i.renderCache[d]:this.pool[c++],p=void 0!==d;if(o.texture=h.tex,p&&!h.dirty){l.push(o.tileID);continue}let f;n.bindFramebuffer.set(h.fb.framebuffer),this.renderedToTile=!1,h.dirty&&(n.clear({color:e.aj.transparent,stencil:0}),h.dirty=!1);for(let e=a.start;e<=a.end;++e){const t=r.style._mergedLayers[s[e]];if(t.isHidden(r.transform.zoom))continue;const i=r.style.getLayerSourceCache(t),o=i?this.proxyToSource[u.key][i.id]:[u];if(!o)continue;const a=o;n.viewport.set([0,0,h.fb.width,h.fb.height]),f!==(i?i.id:null)&&(this._setupStencil(h,o,t,i
vendor: 6,591 bytes, line 2
2),f=i?i.id:null),r.renderLayer(r,i,t,a)}if(0===this._drapedRenderBatches.length)for(const e of this._pendingGroundEffectLayers){const t=r.style._mergedLayers[s[e]];if(t.isHidden(r.transform.zoom))continue;const i=r.style.getLayerSourceCache(t),o=i?this.proxyToSource[u.key][i.id]:[u];if(!o)continue;const a=o;n.viewport.set([0,0,h.fb.width,h.fb.height]),f!==(i?i.id:null)&&(this._setupStencil(h,o,t,i),f=i?i.id:null),r.renderLayer(r,i,t,a)}this.renderedToTile?(h.dirty=!0,l.push(o.tileID)):p||--c,5===c&&(c=0,this.renderToBackBuffer(l))}return this.renderToBackBuffer(l),this.renderingToTexture=!1,n.bindFramebuffer.set(null),n.viewport.set([0,0,r.width,r.height]),a.end+1}postRender(){}isLayerOrderingCorrect(e){const t=e.order.length;let r=-1,n=t;for(let i=0;i<t;++i)this._style.isLayerDraped(e._mergedLayers[e.order[i]])?r=Math.max(r,i):n=Math.min(n,i);return n>r}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter((e=>e.dem)).forEach((t=>{e=Math.min(e,t.dem.tree.minimums[0])})),0===e?e:(e-30)*this._exaggeration}raycast(e,t,r){if(!this._visibleDemTiles)return null;const n=this._visibleDemTiles.filter((e=>e.dem)).map((n=>{const i=n.tileID,o=1<<i.overscaledZ,{x:a,y:s}=i.canonical,l=a/o,c=(a+1)/o,u=s/o,d=(s+1)/o;return{minx:l,miny:u,maxx:c,maxy:d,t:n.dem.tree.raycastRoot(l,u,c,d,e,t,r),tile:n}}));n.sort(((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE)));for(const i of n){if(null==i.t)return null;const n=i.tile.dem.tree.raycast(i.minx,i.miny,i.maxx,i.maxy,e,t,r);if(null!=n)return n}return null}_createFBO(){const t=this.painter.context,r=t.gl,n=this.drapeBufferSize;t.activeTexture.set(r.TEXTURE0);const i=new e.T(t,{width:n[0],height:n[1],data:null},r.RGBA8);i.bind(r.LINEAR,r.CLAMP_TO_EDGE);const o=t.createFramebuffer(n[0],n[1],!0,null);return o.colorAttachment.set(i.texture),o.depthAttachment=new ki(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,n[0],n[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:i,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._debugParams.disableRenderCache)return!0;if(this._style.hasLightTransitions())return!0;for(const e in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[e].hasTransition())return!0;return this._style.order.some((e=>{const t=this._style._mergedLayers[e],r=t.isHidden(this.painter.transform.zoom);return"hillshade"===t.type||"custom"===t.type?!r&&t.shouldRedrape():!r&&t.hasTransition()}))}_clearLineLayersFromRenderCache(){let t=!1;for(const e of this._style.getSources())if(e instanceof ot){t=!0;break}if(!t)return;const r={};for(let n=0;n<this._style.order.length;++n){const t=this._style._mergedLayers[this._style.order[n]],i=this._style.getLayerSourceCache(t);if(i&&!r[i.id]&&!t.isHidden(this.painter.transform.zoom)&&"line"===t.type&&t.widthExpression()instanceof e.a9){r[i.id]=!0;for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][i.id];if(t)for(const e of t)this._clearRenderCacheForTile(i.id,e)}}}}_clearRasterLayersFromRenderCache(){let e=!1;for(const r in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[r]._source instanceof at){e=!0;break}if(!e)return;const t={};for(let r=0;r<this._style.order.length;++r){const e=this._style._mergedLayers[this._style.order[r]],n=this._style.getLayerSourceCache(e);if(!n||t[n.id])continue;if(e.isHidden(this.painter.transform.zoom)||"raster"!==e.type)continue;const i=e.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][n.id];if(e)for(const t of e){const e=Bi(n.getTile(t),n.findLoadedParent(t,0),n,this.painter.transform,i);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(n.id,t)}}}}_setupDrapedRenderBatches(){this._style.updateDrapeFirstLayers();const t=this._style.order,r=t.length;if(0===r)return;const n=[];this._pendingGroundEffectLayers=[];let i,o=0,a=this._style._mergedLayers[t[o]];for(;!this._style.isLayerDraped(a)&&a.isHidden(this.painter.transform.zoom)&&++o<r;)a=this._style._mergedLayers[t[o]];for(;o<r;++o){const e=this._style._mergedLayers[t[o]];e.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(e)?void 0===i&&(i=o):("fill-extrusion"===e.type&&this._pendingGroundEffectLayers.push(o),void 0!==i&&(n.push({start:i,end:o-1}),i=void 0)))}if(void 0!==i&&n.push({start:i,end:o-1}),0!==n.length){const t=n[n.length-1];this._pendingGroundEffectLayers.every((e=>e>t.end))||e.w("fill-extrusion with flood lighting and/or ground ambient occlusion should be moved to be on top of all draped layers.")}this._drapedRenderBatches=n}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this.invalidateRenderCache){if(this.invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let r=0;r<e.length;++r){const n=Object.values(e[r]);t.renderCachePool.push(...n)}}return}this._clearRasterLayersFromRenderCache();const r=this.proxyCoords,n=this._tilesDirty;for(let o=r.length-1;o>=0;o--){const i=r[o];if(t.getTileByID(i.key),void 0!==t.proxyCachedFBO[i.key]){const r=e[i.key],o=this.proxyToSource[i.key];let a=0;for(const e in o){const t=o[e],i=r[e];if(!i||i.length!==t.length||t.some(((t,r)=>t!==i[r]||n[e]&&n[e].hasOwnProperty(t.key)))){a=-1;break}++a}for(const e in t.proxyCachedFBO[i.key])t.renderCache[t.proxyCachedFBO[i.key][e]].dirty=a<0||a!==Object.values(r).length}}const i=[...this._drapedRenderBatches];i.sort(((e,t)=>t.end-t.start-(e.end-e.start)));for(const o of i)for(const e of r){if(t.proxyCachedFBO[e.key])continue;let r=t.renderCachePool.pop();void 0===r&&t.renderCache.length<50&&(r=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==r&&(t.proxyCachedFBO[e.key]={},t.proxyCachedFBO[e.key][o.start]=r,t.renderCache[r].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,r,n){if(!n||!this._sourceTilesOverlap[n.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const i=this.painter.context,o=i.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let a;if(r.isTileClipped())a=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>
vendor: 4,593 bytes, line 2
2t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);a=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+a>255&&(i.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=a,this._overlapStencilMode.ref=this._stencilRef,r.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):Vr.disabled}_renderTileClippingMasks(e,t){const r=this.painter,n=this.painter.context,i=n.gl;r._tileClippingMaskIDs={},n.setColorMode(jr.disabled),n.setDepthMode(Br.disabled);const o=r.getOrCreateProgram("clippingMask");for(const a of e){const e=r._tileClippingMaskIDs[a.key]=--t;o.draw(r,i.TRIANGLES,Br.disabled,new Vr({func:i.ALWAYS,mask:0},e,255,i.KEEP,i.KEEP,i.REPLACE),jr.disabled,Gr.disabled,ji(a.projMatrix),"$clipping",r.tileExtentBuffer,r.quadTriangleIndexBuffer,r.tileExtentSegments)}}pointCoordinate(t){const r=this.painter.transform;if(t.x<0||t.x>r.width||t.y<0||t.y>r.height)return null;const n=[t.x,t.y,1,1];e.ab.vec4.transformMat4(n,n,r.pixelMatrixInverse),e.ab.vec4.scale(n,n,1/n[3]),n[0]/=r.worldSize,n[1]/=r.worldSize;const i=r._camera.position,o=e.bH(1,r.center.lat),a=[i[0],i[1],i[2]/o,0],s=e.ab.vec3.subtract([],n.slice(0,3),a);e.ab.vec3.normalize(s,s);const l=this.raycast(a,s,this._exaggeration);return null!==l&&l?(e.ab.vec3.scaleAndAdd(a,a,s,l),a[3]=a[2],a[2]*=o,a):null}_setupProxiedCoordsForOrtho(t,r,n){if(t.getSource()instanceof e.aJ)return this._setupProxiedCoordsForImageSource(t,r,n);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const i=this.proxiedCoords[t.id]=[],o=this.proxyCoords;for(let e=0;e<o.length;e++){const r=o[e],a=this._findTileCoveringTileID(r,t);if(a){const e=this._createProxiedId(r,a,n[r.key]&&n[r.key][t.id]);i.push(e),this.proxyToSource[r.key][t.id]=[e]}}let a=!1;const s=new Set;for(let e=0;e<r.length;e++){const o=t.getTile(r[e]);if(!o||!o.hasData())continue;const l=this._findTileCoveringTileID(o.tileID,this.proxySourceCache);if(l&&l.tileID.canonical.z!==o.tileID.canonical.z){const e=this.proxyToSource[l.tileID.key][t.id],r=this._createProxiedId(l.tileID,o,n[l.tileID.key]&&n[l.tileID.key][t.id]);e?e.splice(e.length-1,0,r):this.proxyToSource[l.tileID.key][t.id]=[r];const c=this.proxyToSource[l.tileID.key][t.id];s.has(c)||s.add(c),i.push(r),a=!0}}if(this._sourceTilesOverlap[t.id]=a,a&&this._debugParams.sortTilesHiZFirst)for(const e of s)e.sort(((e,t)=>t.overscaledZ-e.overscaledZ))}_setupProxiedCoordsForImageSource(t,r,n){if(!t.getSource().loaded())return;const i=this.proxiedCoords[t.id]=[],o=this.proxyCoords,a=t.getSource(),s=a.tileID;if(!s)return;const l=new e.P(s.x,s.y)._div(1<<s.z),c=a.coordinates.map(e.aa.fromLngLat).reduce(((e,t)=>(e.min.x=Math.min(e.min.x,t.x-l.x),e.min.y=Math.min(e.min.y,t.y-l.y),e.max.x=Math.max(e.max.x,t.x-l.x),e.max.y=Math.max(e.max.y,t.y-l.y),e)),{min:new e.P(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.P(-Number.MAX_VALUE,-Number.MAX_VALUE)}),u=(t,r)=>{const n=t.wrap+t.canonical.x/(1<<t.canonical.z),i=t.canonical.y/(1<<t.canonical.z),o=e.ag/(1<<t.canonical.z),a=r.wrap+r.canonical.x/(1<<r.canonical.z),s=r.canonical.y/(1<<r.canonical.z);return n+o<a+c.min.x||n>a+c.max.x||i+o<s+c.min.y||i>s+c.max.y};for(let e=0;e<o.length;e++){const a=o[e];for(let e=0;e<r.length;e++){const o=t.getTile(r[e]);if(!o||!o.hasData())continue;if(u(a,o.tileID))continue;const s=this._createProxiedId(a,o,n[a.key]&&n[a.key][t.id]),l=this.proxyToSource[a.key][t.id];l?l.push(s):this.proxyToSource[a.key][t.id]=[s],i.push(s)}}}_createProxiedId(t,r,n){let i=this.orthoMatrix;if(n){const e=n.find((e=>e.key===r.tileID.key));if(e)return e}if(r.tileID.key!==t.key){const n=t.canonical.z-r.tileID.canonical.z;let o,a,s;i=e.ab.mat4.create();const l=r.tileID.wrap-t.wrap<<t.overscaledZ;n>0?(o=e.ag>>n,a=o*((r.tileID.canonical.x<<n)-t.canonical.x+l),s=o*((r.tileID.canonical.y<<n)-t.canonical.y)):(o=e.ag<<-n,a=e.ag*(r.tileID.canonical.x-(t.canonical.x+l<<-n)),s=e.ag*(r.tileID.canonical.y-(t.canonical.y<<-n))),e.ab.mat4.ortho(i,0,o,0,o,0,1),e.ab.mat4.translate(i,i,[a,s,0])}return new qi(r.tileID,t.key,i)}_findTileCoveringTileID(t,r){let n=r.getTile(t);if(n&&n.hasData())return n;const i=this._findCoveringTileCache[r.id],o=i[t.key];if(n=o?r.getTileByID(o):null,n&&n.hasData()||null===o)return n;
2let a=n?n.tileID:t,s=a.overscaledZ;const l=r.getSource().minzoom,c=[];if(!o){const i=r.getSource().maxzoom;if(t.canonical.z>=i){const n=t.canonical.z-i;r.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,r.transform.tileZoom),a=new e.aG(s,t.wrap,i,t.canonical.x>>n,t.canonical.y>>n)):0!==n&&(s=i,a=new e.aG(s,t.wrap,i,t.canonical.x>>n,t.canonical.y>>n))}a.key!==t.key&&(c.push(a.key),n=r.getTile(a))}const u=e=>{c.forEach((t=>{i[t]=e})),c.length=0};for(s-=1;s>=l&&(!n||!n.hasData());s--){n&&u(n.tileID.key);const e=a.calculateScaledKey(s);if(n=r.getTileByID(e),n&&n.hasData())break;const t=i[e];if(null===t)break;void 0===t?c.push(e):n=r.getTileByID(t)}return u(n?n.tileID.key:null),n&&n.hasData()?n:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let r=this._tilesDirty[e];r||(r=this._tilesDirty[e]={}),r[t.key]=!0}}function Gi(t,r,n){const i=function(t,r,n){const i=e.ab.vec3.dot(r,t),o=e.ab.vec3.dot(n,[.2126,.7152,.0722]),a=(e,t,r)=>(1-r)*e+r*t,s=a(1-.3*Math.min(o,1),1,Math.min(i+1,1));return a(.92,1,Math.asin(e.aw(r[2],-1,1))/Math.PI+.5)*s}(t,[0,0,1],r),o=[0,0,0];e.ab.vec3.scale(o,n.slice(0,3),i);const a=[0,0,0];e.ab.vec3.scale(a,r.slice(0,3),t[2]);const s=[0,0,0];return e.ab.vec3.add(s,o,a),e.cf(s)}const Wi=["fill","fillOutline","fillPattern","line","linePattern","background","backgroundPattern","hillshade","raster"],Yi=["stars","rainParticle","snowParticle","fillExtrusion","fillExtrusionGroundEffect","model","symbol"];class Zi{static cacheKey(e,t,r,n){let i="".concat(t).concat(n?n.cacheKey:"");for(const o of r)e.usedDefines.includes(o)&&(i+="/".concat(o));return i}constructor(t,r,n,i,o,a){const s=t.gl;this.program=s.createProgram(),this.configuration=i,this.name=r,this.fixedDefines=[...a];const l=i?i.getBinderAttributes():[],c=(n.staticAttributes||[]).concat(l);let u=i?i.defines():[];u=u.concat(a.map((e=>"#define ".concat(e))));const d="#version 300 es\n";let h=d+u.concat("precision mediump float;",Bn,jn.fragmentSource).join("\n");for(const e of n.fragmentIncludes)h+="\n".concat(Fn[e]);h+="\n".concat(n.fragmentSource);let p=d+u.concat("precision highp float;",Bn,jn.vertexSource).join("\n");for(const e of n.vertexIncludes)p+="\n".concat(Fn[e]);this.forceManualRenderingForInstanceIDShaders=t.forceManualRenderingForInstanceIDShaders&&-1!==n.vertexSource.indexOf("gl_InstanceID"),this.forceManualRenderingForInstanceIDShaders&&(p+="\nuniform int u_instanceID;\n"),p+="\n".concat(n.vertexSource),this.forceManualRenderingForInstanceIDShaders&&(p=p.replaceAll("gl_InstanceID","u_instanceID"));const f=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(f,h),s.compileShader(f),s.attachShader(this.program,f);const m=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())this.failedToCreate=!0;else{s.shaderSource(m,p),s.compileShader(m),s.attachShader(this.program,m),this.attributes={},this.numAttributes=c.length;for(let e=0;e<this.numAttributes;e++)if(c[e]){const t=c[e].startsWith("a_")?c[e]:"a_".concat(c[e]);s.bindAttribLocation(this.program,e,t),this.attributes[t]=e}s.linkProgram(this.program),s.deleteShader(m),s.deleteShader(f),this.fixedUniforms=o(t),this.binderUniforms=i?i.getUniforms(t):[],this.forceManualRenderingForInstanceIDShaders&&(this.instancingUniforms=(t=>({u_instanceID:new e.bN(t)}))(t)),(a.includes("TERRAIN")||-1!==r.indexOf("symbol")||-1!==r.indexOf("circle"))&&(this.terrainUniforms=(t=>({u_dem:new e.bN(t),u_dem_prev:new e.bN(t),u_dem_tl:new e.bK(t),u_dem_scale:new e.bM(t),u_dem_tl_prev:new e.bK(t),u_dem_scale_prev:new e.bM(t),u_dem_size:new e.bM(t),u_dem_lerp:new e.bM(t),u_exaggeration:new e.bM(t),u_depth:new e.bN(t),u_depth_size_inv:new e.bK(t),u_depth_range_unpack:new e.bK(t),u_occluder_half_size:new e.bM(t),u_occlusion_depth_offset:new e.bM(t),u_meter_to_dem:new e.bM(t),u_label_plane_matrix_inv:new e.bJ(t)}))(t)),a.includes("GLOBE")&&(this.globeUniforms=(t=>({u_tile_tl_up:new e.bL(t),u_tile_tr_up:new e.bL(t),u_tile_br_up:new e.bL(t),u_tile_bl_up:new e.bL(t),u_tile_up_scale:new e.bM(t)}))(t)),a.includes("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.bJ(t),u_fog_range:new e.bK(t),u_fog_color:new e.ca(t),u_fog_horizon_blend:new e.bM(t),u_fog_vertical_limit:new e.bK(t),u_fog_temporal_offset:new e.bM(t),u_frustum_tl:new e.b
2L(t),u_frustum_tr:new e.bL(t),u_frustum_br:new e.bL(t),u_frustum_bl:new e.bL(t),u_globe_pos:new e.bL(t),u_globe_radius:new e.bM(t),u_globe_transition:new e.bM(t),u_is_globe:new e.bN(t),u_viewport:new e.bK(t)}))(t)),a.includes("RENDER_CUTOFF")&&(this.cutoffUniforms=(t=>({u_cutoff_params:new e.ca(t)}))(t)),a.includes("LIGHTING_3D_MODE")&&(this.lightsUniforms=(t=>({u_lighting_ambient_color:new e.bL(t),u_lighting_directional_dir:new e.bL(t),u_lighting_directional_color:new e.bL(t),u_ground_radiance:new e.bL(t)}))(t)),a.includes("RENDER_SHADOWS")&&(this.shadowUniforms=(t=>({u_light_matrix_0:new e.bJ(t),u_light_matrix_1:new e.bJ(t),u_fade_range:new e.bK(t),u_shadow_normal_offset:new e.bL(t),u_shadow_intensity:new e.bM(t),u_shadow_texel_size:new e.bM(t),u_shadow_map_resolution:new e.bM(t),u_shadow_direction:new e.bL(t),u_shadow_bias:new e.bL(t),u_shadowmap_0:new e.bN(t),u_shadowmap_1:new e.bN(t)}))(t))}}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const r=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e]&&r[e].set(this.program,e,t[e])}}setGlobeUniformValues(e,t){if(!this.globeUniforms)return;const r=this.globeUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e]&&r[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const r=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setCutoffUniformValues(e,t){if(!this.cutoffUniforms)return;const r=this.cutoffUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setLightsUniformValues(e,t){if(!this.lightsUniforms)return;const r=this.lightsUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)r[e].set(this.program,e,t[e])}}setShadowUniformValues(e,t){if(this.failedToCreate||!this.shadowUniforms)return;const r=this.shadowUniforms;e.program.set(this.program);for(const n in t)r[n].set(this.program,n,t[n])}_drawDebugWireframe(t,r,n,i,o,a,s,l,c,u){const d=t.options.wireframe;if(!1===d.terrain&&!1===d.layers2D&&!1===d.layers3D)return;const h=t.context;if(!(()=>!(!d.terrain||"terrainRaster"!==this.name&&"globeRaster"!==this.name)||!(!d.layers2D||t._terrain&&t._terrain.renderingToTexture||!Wi.includes(this.name))||!(!d.layers3D||!Yi.includes(this.name)))())return;const p=h.gl,f=t.wireframeDebugCache.getLinesFromTrianglesBuffer(t.frameCounter,o,h);if(!f)return;const m=[...this.fixedDefines];m.push("DEBUG_WIREFRAME");const g=t.getOrCreateProgram(this.name,{config:this.configuration,defines:m});h.program.set(g.program);const _=(e,t,r)=>{if(t[e]&&r[e])for(const n in t[e])r[e][n]&&r[e][n].set(r.program,n,t[e][n].current)};c&&c.setUniforms(g.program,h,g.binderUniforms,s,{zoom:l}),_("fixedUniforms",this,g),_("terrainUniforms",this,g),_("globeUniforms",this,g),_("fogUniforms",this,g),_("lightsUniforms",this,g),_("shadowUniforms",this,g),f.bind(),h.setColorMode(new jr([p.ONE,p.ONE_MINUS_SRC_ALPHA,p.ZERO,p.ONE],e.aj.transparent,[!0,!0,!0,!1])),h.setDepthMode(new Br(r.func===p.LESS?p.LEQUAL:r.func,Br.ReadOnly,r.range)),h.setStencilMode(Vr.disabled);const y=3*a.primitiveLength*2,v=3*a.primitiveOffset*2*2;if(this.forceManualRenderingForInstanceIDShaders){const e=u||1;for(let t=0;t<e;++t)g.instancingUniforms.u_instanceID.set(this.program,"u_instanceID",t),p.drawElements(p.LINES,y,p.UNSIGNED_SHORT,v)}else u&&u>1?p.drawElementsInstanced(p.LINES,y,p.UNSIGNED_SHORT,v,u):p.drawElements(p.LINES,y,p.UNSIGNED_SHORT,v);o.bind(),h.program.set(this.program),h.setDepthMode(r),h.setStencilMode(n),h.setColorMode(i)}checkUniforms(e,t,r){if(this.fixedDefines.includes(t))for(const n of Object.keys(r))if(!r[n].initialized)throw new Error("Program '".concat(this.name,"', from draw '").concat(e,"': uniform ").concat(n," not set but required by ").concat(t," being defined"))}draw(e,t,r,n,i,o,a,s,l,c,u,d,h,p,f,m){const g=e.context,_=g.gl;if(this.failedToCreate)return;g.program.set(this.program),g.setDepthMode(r),g.setStencilMode(n),g.setColorMode(i),g.setCullFace(o);for(const b of Object.keys(this.fixedUniforms))this.fixedUniforms[b].set(this.program,b,a[b]);p&&p.setUniforms(this.program,g,this.binderUniforms,d,{zoom:h});const y={[_.POINTS]:1,[_.LINES]:2,[_.TRIANGLES]:3,[_.LINE_STRIP]:1}[t];this.checkUniforms(s,"RENDER_SHADOWS",this.shadowUniforms);const v=m&&m>0?1:void 0;for(const b of u.get()){const o=b.vaos||(b.vaos={});if((o[s]||(o[s]=new Hn)).bind(g,this,l,p?p.getPaintVertexBuffers():[],c,b.vertexOffset,f||[],v),this.forceManualRenderingForInstanceIDShaders){const e=m||1;for(let r=0;r<e;++r)this.instancingUniforms.u_instanceID.set(this.program,"u_instanceID",r),c?_.drawElements(t,b.primitiveLength*y,_.UNSIGNED_SHORT,b.primitiveOffset*y*2):_.drawArrays(t,b.vertexOffset,b.vertexLength)}else m&&m>1?_.drawElementsInstanced(t,b.primitiveLength*y,_.UNSIGNED_SHORT,b.primitiveOffset*y*2,m):c?_.drawElements(t,b.primitiveLength*y,_.UNSIGNED_SHORT,b.primitiveOffset*y*2):_.drawArrays(t,b.vertexOffset,b.vertexLength);t===_.TRIANGLES&&c&&this._drawDebugWireframe(e,r,n,i,c,b,d,h,p,m)}}}
2function Ki(t,r){const n=Math.pow(2,r.tileID.overscaledZ),i=r.tileSize*Math.pow(2,t.transform.tileZoom)/n,o=i*(r.tileID.canonical.x+r.tileID.wrap*n),a=i*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture?r.imageAtlasTexture.size:[0,0],u_tile_units_to_pixels:1/e.ar(r,1,t.transform.tileZoom),u_pixel_coord_upper:[o>>16,a>>16],u_pixel_coord_lower:[65535&o,65535&a]}}const Xi={terrain:0,flat:1},Ji=e.ab.mat4.create(),Qi=(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y)=>{const v=r.style.light,b=v.properties.get("position"),x=[b.x,b.y,b.z],w=e.ab.mat3.create();"viewport"===v.properties.get("anchor")&&(e.ab.mat3.fromRotation(w,-r.transform.angle),e.ab.vec3.transformMat3(x,x,w));const A=v.properties.get("color"),S=r.transform,E={u_matrix:t,u_lightpos:x,u_lightintensity:v.properties.get("intensity"),u_lightcolor:[A.r,A.g,A.b],u_vertical_gradient:+n,u_opacity:i,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Ji,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_height_type:Xi[u],u_base_type:Xi[d],u_ao:o,u_edge_radius:a,u_width_scale:s,u_flood_light_color:m,u_vertical_scale:g,u_flood_light_intensity:_,u_ground_shadow_factor:y};return"globe"===S.projection.name&&(E.u_tile_id=[l.canonical.x,l.canonical.y,1<<l.canonical.z],E.u_zoom_transition=h,E.u_inv_rot_matrix=f,E.u_merc_center=p,E.u_up_dir=S.projection.upVector(new e.bT(0,0,0),p[0]*e.ag,p[1]*e.ag),E.u_height_lift=c),E},$i=(e,t,r,n,i,o)=>({u_matrix:e,u_edge_radius:t,u_width_scale:r,u_vertical_scale:n,u_height_type:Xi[i],u_base_type:Xi[o]}),eo=(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_)=>{const y=Qi(t,r,n,i,o,a,s,l,u,d,h,p,f,m,g,_,1,[0,0,0]),v={u_height_factor:-Math.pow(2,l.overscaledZ)/c.tileSize/8};return e.l(y,Ki(r,c),v)},to=(e,t)=>({u_matrix:e,u_emissive_strength:t}),ro=(t,r,n,i)=>e.l(to(t,r),Ki(n,i)),no=(e,t,r)=>({u_matrix:e,u_world:r,u_emissive_strength:t}),io=(t,r,n,i,o)=>e.l(ro(t,r,n,i),{u_world:o}),oo=(t,r,n,i)=>{const o=e.ag/n.tileSize;return{u_matrix:t,u_camera_to_center_distance:r.getCameraToCenterDistance(i),u_extrude_scale:[r.pixelsToGLUnits[0]/o,r.pixelsToGLUnits[1]/o]}},ao=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return{u_matrix:e,u_color:t.toRenderColor(null),u_overlay:0,u_overlay_scale:r}},so=e.ab.mat4.create(),lo=(t,r,n,i,o,a,s)=>{const l=t.transform,c="globe"===l.projection.name,u=c?e.cN(l.zoom,r.canonical)*l._pixelsPerMercatorPixel:e.ar(n,1,a),d={u_matrix:r.projMatrix,u_extrude_scale:u,u_intensity:s,u_inv_rot_matrix:so,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){d.u_inv_rot_matrix=i,d.u_merc_center=o,d.u_tile_id=[r.canonical.x,r.canonical.y,1<<r.canonical.z],d.u_zoom_transition=e.ae(l.zoom);const t=o[0]*e.ag,n=o[1]*e.ag;d.u_up_dir=l.projection.upVector(new e.bT(0,0,0),t,n)}return d};function co(e,t,r){let[n,i,o,a]=t,[s,l]=r;if(s===l)return[0,0,0,0];const c=255*(e-1)/(e*(l-s));return[n*c,i*c,o*c,a*c]}function uo(e,t,r){let[n,i]=r;return n===i?0:.5/e+(t-n)*(e-1)/(e*(i-n))}const ho=(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x)=>({u_matrix:t,u_normalize_matrix:r,u_globe_matrix:n,u_merc_matrix:i,u_grid_matrix:o,u_tl_parent:a,u_scale_parent:u,u_fade_t:d.mix,u_opacity:d.opacity*h.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:h.paint.get("raster-brightness-min"),u_brightness_high:h.paint.get("raster-brightness-max"),u_saturation_factor:e.cO(h.paint.get("raster-saturation")),u_contrast_factor:e.cP(h.paint.get("raster-contrast")),u_spin_weights:po(h.paint.get("raster-hue-rotate")),u_perspective_transform:p,u_raster_elevation:f,u_zoom_transition:s,u_merc_center:l,u_cutoff_params:c,u_colorization_mix:co(e.cQ,g,y),u_colorization_offset:uo(e.cQ,_,y),u_color_ramp:m,u_texture_offset:[b/(v+2*b),v/(v+2*b)],u_texture_res:[v+2*b,v+2*b],u_emissive_strength:x});function po(e){e*=Math.PI/180;const t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}const fo=.05,mo=(e,t,r,n,i,o,a,s,l,c,u,d)=>({u_matrix:e,u_normalize_matrix:t,u_globe_matrix:r,u_merc_matrix:n,u_grid_matrix:i,u_tl_parent:o,u_scale_parent:c,u_fade_t:u.mix,u_opacity:u.opacity,u_image0:0,u_image1:1,u_raster_elevation:d,u_zoom_transition:a,u_merc_center:s,u_cutoff_params:l}),go=(e,t,r,n,i,o,a,s,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_tile_offset:r,u_velocity:n,u_color_ramp:o,u_velocity_res:i,u_max_speed:a,u_uv_offset:s,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[fo,fo]}),_o=(e,t,r,n,i,o,a,s,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_velocity:r,u_velocity_res:n,u_max_speed:i,u_speed_factor:o,u_reset_rate:a,u_rand_seed:Math.random(),u_uv_offset:s,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[fo,fo]}),yo=e.ab.mat4.create(),vo=(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v,b,x,w)=>{const A=o.transform,S={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:r?r.uSizeT:0,u_size:r?r.uSize:0,u_camera_to_center_distance:A.getCameraToCenterDistance(v),u_rotate_symbol:+n,u_aspect_ratio:A.width/A.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+u,u_elevation_from_sea:c?1:0,u_pitch_with_map:+i,u_texsize:d,u_texsize_icon:h,u_texture:0,u_texture_icon:1,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:yo,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:yo,u_up_vector:[0,-1,0],u_color_adj_mat:b,u_icon_transition:x||0,u_gamma_scale:i?o.transform.getCameraToCenterDistance(v)*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.q.devicePixelRatio,u_is_halo:+p,u_scale_factor:w||1};return"globe"===v.name&&(S.u_tile_id=[f.canonical.x,f.canonical.y,1<<f.canonical.z],S.u_zoom_transition=m,S.u_inv_rot_matrix=_,S.u_merc_center=g,S.u_camera_forward=A._camera.forward(),S.u_ecef_origin=e.cR(A.globeMatrix,f.toUnwrapped()),S.u_tile_matrix=Float32Array.from(A.globeMatrix),S.u_up_vector=y),S},bo=(e,t,r,n)=>({u_matrix:e,u_emissive_strength:t,u_opacity:r,u_color:n}),xo=(t,r,n,i,o,a,s,l,c)=>e.l(function(t,r,n,i,o,a){const{width:s,height:l}=i.imageManager.getPixelSize(r),c=Math.pow(2,a.tileID.overscaledZ
2),u=a.tileSize*Math.pow(2,i.transform.tileZoom)/c,d=u*(a.tileID.canonical.x+a.tileID.wrap*c),h=u*a.tileID.canonical.y;return{u_image:0,u_pattern_tl:n.tl,u_pattern_br:n.br,u_texsize:[s,l],u_pattern_size:n.displaySize,u_pattern_units_to_pixels:o?[i.transform.width,-1*i.transform.height]:[1/e.ar(a,1,i.transform.tileZoom),1/e.ar(a,1,i.transform.tileZoom)],u_pixel_coord_upper:[d>>16,h>>16],u_pixel_coord_lower:[65535&d,65535&h]}}(0,a,s,i,l,c),{u_matrix:t,u_emissive_strength:r,u_opacity:n}),wo=new Float32Array(e.ab.mat4.identity([])),Ao=function(t,r,n,i,o,a,s,l,c,u,d,h,p){let f=arguments.length>13&&void 0!==arguments[13]?arguments[13]:[0,0,0],m=arguments.length>14?arguments[14]:void 0;const g=o.style.light,_=g.properties.get("position"),y=[-_.x,-_.y,_.z],v=e.ab.mat3.create();"viewport"===g.properties.get("anchor")&&(e.ab.mat3.fromRotation(v,-o.transform.angle),e.ab.vec3.transformMat3(y,y,v));const b="MASK"===d.alphaMode,x=g.properties.get("color").toRenderColor(null),w=p.paint.get("model-ambient-occlusion-intensity"),A=p.paint.get("model-color").constantOr(e.aj.white).toRenderColor(null),S=p.paint.get("model-color-mix-intensity").constantOr(0);return{u_matrix:t,u_lighting_matrix:r,u_normal_matrix:n,u_node_matrix:i||wo,u_lightpos:y,u_lightintensity:g.properties.get("intensity"),u_lightcolor:[x.r,x.g,x.b],u_camera_pos:f,u_opacity:a,u_baseTextureIsAlpha:0,u_alphaMask:+b,u_alphaCutoff:d.alphaCutoff,u_baseColorFactor:[s.r,s.g,s.b,s.a],u_emissiveFactor:[l[0],l[1],l[2],1],u_metallicFactor:c,u_roughnessFactor:u,u_baseColorTexture:Jr.BaseColor,u_metallicRoughnessTexture:Jr.MetallicRoughness,u_normalTexture:Jr.Normal,u_occlusionTexture:Jr.Occlusion,u_emissionTexture:Jr.Emission,u_lutTexture:Jr.LUT,u_color_mix:[A.r,A.g,A.b,S],u_aoIntensity:w,u_emissive_strength:h,u_occlusionTextureTransform:m||[0,0,0,0]}},So=function(e){return{u_matrix:e,u_instance:arguments.length>1&&void 0!==arguments[1]?arguments[1]:wo,u_node_matrix:arguments.length>2&&void 0!==arguments[2]?arguments[2]:wo}},Eo={fillExtrusion:t=>({u_matrix:new e.bJ(t),u_lightpos:new e.bL(t),u_lightintensity:new e.bM(t),u_lightcolor:new e.bL(t),u_vertical_gradient:new e.bM(t),u_opacity:new e.bM(t),u_edge_radius:new e.bM(t),u_width_scale:new e.bM(t),u_ao:new e.bK(t),u_height_type:new e.bN(t),u_base_type:new e.bN(t),u_tile_id:new e.bL(t),u_zoom_transition:new e.bM(t),u_inv_rot_matrix:new e.bJ(t),u_merc_center:new e.bK(t),u_up_dir:new e.bL(t),u_height_lift:new e.bM(t),u_flood_light_color:new e.bL(t),u_vertical_scale:new e.bM(t),u_flood_light_intensity:new e.bM(t),u_ground_shadow_factor:new e.bL(t)}),fillExtrusionDepth:t=>({u_matrix:new e.bJ(t),u_edge_radius:new e.bM(t),u_width_scale:new e.bM(t),u_vertical_scale:new e.bM(t),u_height_type:new e.bN(t),u_base_type:new e.bN(t)}),fillExtrusionPattern:t=>({u_matrix:new e.bJ(t),u_lightpos:new e.bL(t),u_lightintensity:new e.bM(t),u_lightcolor:new e.bL(t),u_vertical_gradient:new e.bM(t),u_height_factor:new e.bM(t),u_edge_radius:new e.bM(t),u_width_scale:new e.bM(t),u_ao:new e.bK(t),u_height_type:new e.bN(t),u_base_type:new e.bN(t),u_tile_id:new e.bL(t),u_zoom_transition:new e.bM(t),u_inv_rot_matrix:new e.bJ(t),u_merc_center:new e.bK(t),u_up_dir:new e.bL(t),u_height_lift:new e.bM(t),u_image:new e.bN(t),u_texsize:new e.bK(t),u_pixel_coord_upper:new e.bK(t),u_pixel_coord_lower:new e.bK(t),u_tile_units_to_pixels:new e.bM(t),u_opacity:new e.bM(t)}),fillExtrusionGroundEffect:t=>({u_matrix:new e.bJ(t),u_opacity:new e.bM(t),u_ao_pass:new e.bM(t),u_meter_to_tile:new e.bM(t),u_ao:new e.bK(t),u_flood_light_intensity:new e.bM(t),u_flood_light_color:new e.bL(t),u_attenuation:new e.bM(t),u_edge_radius:new e.bM(t),u_fb:new e.bN(t),u_fb_size:new e.bM(t),u_dynamic_offset:new e.bM(t)}),fill:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t)}),fillPattern:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t),u_image:new e.bN(t),u_texsize:new e.bK(t),u_pixel_coord_upper:new e.bK(t),u_pixel_coord_lower:new e.bK(t),u_tile_units_to_pixels:new e.bM(t)}),fillOutline:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t),u_world:new e.bK(t)}),fillOutlinePattern:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t),u_world:new e.bK(t),u_image:new e.bN(t),u_texsize:new e.bK(t),u_pixel_coord_upper:new e.bK(t),u_pixel_coord_lower:new e.bK(t),u_tile_units_to_pixels:new e.bM(t)}),circle:e.cS,collisionBox:t=>({u_matrix:new e.bJ(t),u_camera_to_center_distance:new e.bM(t),u_extrude_scale:new e.bK(t)}),collisionCircle:t=>({u_matrix:new e.bJ(t),u_inv_matrix:new e.bJ(t),u_camera_to_center_distance:new e.bM(t),u_viewport_size:new e.bK(t)}),debug:t=>
2({u_color:new e.cz(t),u_matrix:new e.bJ(t),u_overlay:new e.bN(t),u_overlay_scale:new e.bM(t)}),clippingMask:t=>({u_matrix:new e.bJ(t)}),heatmap:t=>({u_extrude_scale:new e.bM(t),u_intensity:new e.bM(t),u_matrix:new e.bJ(t),u_inv_rot_matrix:new e.bJ(t),u_merc_center:new e.bK(t),u_tile_id:new e.bL(t),u_zoom_transition:new e.bM(t),u_up_dir:new e.bL(t)}),heatmapTexture:t=>({u_image:new e.bN(t),u_color_ramp:new e.bN(t),u_opacity:new e.bM(t)}),hillshade:t=>({u_matrix:new e.bJ(t),u_image:new e.bN(t),u_latrange:new e.bK(t),u_light:new e.bK(t),u_shadow:new e.cz(t),u_highlight:new e.cz(t),u_emissive_strength:new e.bM(t),u_accent:new e.cz(t)}),hillshadePrepare:t=>({u_matrix:new e.bJ(t),u_image:new e.bN(t),u_dimension:new e.bK(t),u_zoom:new e.bM(t)}),line:e.cT,linePattern:e.cU,raster:t=>({u_matrix:new e.bJ(t),u_normalize_matrix:new e.bJ(t),u_globe_matrix:new e.bJ(t),u_merc_matrix:new e.bJ(t),u_grid_matrix:new e.cA(t),u_tl_parent:new e.bK(t),u_scale_parent:new e.bM(t),u_fade_t:new e.bM(t),u_opacity:new e.bM(t),u_image0:new e.bN(t),u_image1:new e.bN(t),u_brightness_low:new e.bM(t),u_brightness_high:new e.bM(t),u_saturation_factor:new e.bM(t),u_contrast_factor:new e.bM(t),u_spin_weights:new e.bL(t),u_perspective_transform:new e.bK(t),u_raster_elevation:new e.bM(t),u_zoom_transition:new e.bM(t),u_merc_center:new e.bK(t),u_cutoff_params:new e.ca(t),u_colorization_mix:new e.ca(t),u_colorization_offset:new e.bM(t),u_color_ramp:new e.bN(t),u_texture_offset:new e.bK(t),u_texture_res:new e.bK(t),u_emissive_strength:new e.bM(t)}),rasterParticle:t=>({u_matrix:new e.bJ(t),u_normalize_matrix:new e.bJ(t),u_globe_matrix:new e.bJ(t),u_merc_matrix:new e.bJ(t),u_grid_matrix:new e.cA(t),u_tl_parent:new e.bK(t),u_scale_parent:new e.bM(t),u_fade_t:new e.bM(t),u_opacity:new e.bM(t),u_image0:new e.bN(t),u_image1:new e.bN(t),u_raster_elevation:new e.bM(t),u_zoom_transition:new e.bM(t),u_merc_center:new e.bK(t),u_cutoff_params:new e.ca(t)}),rasterParticleTexture:t=>({u_texture:new e.bN(t),u_opacity:new e.bM(t)}),rasterParticleDraw:t=>({u_particle_texture:new e.bN(t),u_particle_texture_side_len:new e.bM(t),u_tile_offset:new e.bK(t),u_velocity:new e.bN(t),u_color_ramp:new e.bN(t),u_velocity_res:new e.bK(t),u_max_speed:new e.bM(t),u_uv_offset:new e.bK(t),u_data_scale:new e.bK(t),u_data_offset:new e.bM(t),u_particle_pos_scale:new e.bM(t),u_particle_pos_offset:new e.bK(t)}),rasterParticleUpdate:t=>({u_particle_texture:new e.bN(t),u_particle_texture_side_len:new e.bM(t),u_velocity:new e.bN(t),u_velocity_res:new e.bK(t),u_max_speed:new e.bM(t),u_speed_factor:new e.bM(t),u_reset_rate:new e.bM(t),u_rand_seed:new e.bM(t),u_uv_offset:new e.bK(t),u_data_scale:new e.bK(t),u_data_offset:new e.bM(t),u_particle_pos_scale:new e.bM(t),u_particle_pos_offset:new e.bK(t)}),symbol:t=>({u_is_size_zoom_constant:new e.bN(t),u_is_size_feature_constant:new e.bN(t),u_size_t:new e.bM(t),u_size:new e.bM(t),u_camera_to_center_distance:new e.bM(t),u_rotate_symbol:new e.bN(t),u_aspect_ratio:new e.bM(t),u_fade_change:new e.bM(t),u_matrix:new e.bJ(t),u_label_plane_matrix:new e.bJ(t),u_coord_matrix:new e.bJ(t),u_is_text:new e.bN(t),u_elevation_from_sea:new e.bN(t),u_pitch_with_map:new e.bN(t),u_texsize:new e.bK(t),u_texsize_icon:new e.bK(t),u_texture:new e.bN(t),u_texture_icon:new e.bN(t),u_gamma_scale:new e.bM(t),u_device_pixel_ratio:new e.bM(t),u_tile_id:new e.bL(t),u_zoom_transition:new e.bM(t),u_inv_rot_matrix:new e.bJ(t),u_merc_center:new e.bK(t),u_c
2amera_forward:new e.bL(t),u_tile_matrix:new e.bJ(t),u_up_vector:new e.bL(t),u_ecef_origin:new e.bL(t),u_is_halo:new e.bN(t),u_icon_transition:new e.bM(t),u_color_adj_mat:new e.bJ(t),u_scale_factor:new e.bM(t)}),background:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t),u_opacity:new e.bM(t),u_color:new e.cz(t)}),backgroundPattern:t=>({u_matrix:new e.bJ(t),u_emissive_strength:new e.bM(t),u_opacity:new e.bM(t),u_image:new e.bN(t),u_pattern_tl:new e.bK(t),u_pattern_br:new e.bK(t),u_texsize:new e.bK(t),u_pattern_size:new e.bK(t),u_pixel_coord_upper:new e.bK(t),u_pixel_coord_lower:new e.bK(t),u_pattern_units_to_pixels:new e.bK(t)}),terrainRaster:t=>({u_matrix:new e.bJ(t),u_image0:new e.bN(t),u_skirt_height:new e.bM(t),u_ground_shadow_factor:new e.bL(t)}),skybox:t=>({u_matrix:new e.bJ(t),u_sun_direction:new e.bL(t),u_cubemap:new e.bN(t),u_opacity:new e.bM(t),u_temporal_offset:new e.bM(t)}),skyboxGradient:t=>({u_matrix:new e.bJ(t),u_color_ramp:new e.bN(t),u_center_direction:new e.bL(t),u_radius:new e.bM(t),u_opacity:new e.bM(t),u_temporal_offset:new e.bM(t)}),skyboxCapture:t=>({u_matrix_3f:new e.cA(t),u_sun_direction:new e.bL(t),u_sun_intensity:new e.bM(t),u_color_tint_r:new e.ca(t),u_color_tint_m:new e.ca(t),u_luminance:new e.bM(t)}),globeRaster:t=>({u_proj_matrix:new e.bJ(t),u_globe_matrix:new e.bJ(t),u_normalize_matrix:new e.bJ(t),u_merc_matrix:new e.bJ(t),u_zoom_transition:new e.bM(t),u_merc_center:new e.bK(t),u_image0:new e.bN(t),u_grid_matrix:new e.cA(t),u_skirt_height:new e.bM(t),u_far_z_cutoff:new e.bM(t),u_frustum_tl:new e.bL(t),u_frustum_tr:new e.bL(t),u_frustum_br:new e.bL(t),u_frustum_bl:new e.bL(t),u_globe_pos:new e.bL(t),u_globe_radius:new e.bM(t),u_viewport:new e.bK(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.bL(t),u_frustum_tr:new e.bL(t),u_frustum_br:new e.bL(t),u_frustum_bl:new e.bL(t),u_horizon:new e.bM(t),u_transition:new e.bM(t),u_fadeout_range:new e.bM(t),u_color:new e.ca(t),u_high_color:new e.ca(t),u_space_color:new e.ca(t),u_temporal_offset:new e.bM(t),u_horizon_angle:new e.bM(t)}),model:t=>({u_matrix:new e.bJ(t),u_lighting_matrix:new e.bJ(t),u_normal_matrix:new e.bJ(t),u_node_matrix:new e.bJ(t),u_lightpos:new e.bL(t),u_lightintensity:new e.bM(t),u_lightcolor:new e.bL(t),u_camera_pos:new e.bL(t),u_opacity:new e.bM(t),u_baseColorFactor:new e.ca(t),u_emissiveFactor:new e.ca(t),u_metallicFactor:new e.bM(t),u_roughnessFactor:new e.bM(t),u_baseTextureIsAlpha:new e.bN(t),u_alphaMask:new e.bN(t),u_alphaCutoff:new e.bM(t),u_baseColorTexture:new e.bN(t),u_metallicRoughnessTexture:new e.bN(t),u_normalTexture:new e.bN(t),u_occlusionTexture:new e.bN(t),u_emissionTexture:new e.bN(t),u_lutTexture:new e.bN(t),u_color_mix:new e.ca(t),u_aoIntensity:new e.bM(t),u_emissive_strength:new e.bM(t),u_occlusionTextureTransform:new e.ca(t)}),modelDepth:t=>({u_matrix:new e.bJ(t),u_instance:new e.bJ(t),u_node_matrix:new e.bJ(t)}),groundShadow:t=>({u_matrix:new e.bJ(t),u_ground_shadow_factor:new e.bL(t)}),stars:t=>({u_matrix:new e.bJ(t),u_up:new e.bL(t),u_right:new e.bL(t),u_intensity_multiplier:new e.bM(t)}),snowParticle:t=>({u_modelview:new e.bJ(t),u_projection:new e.bJ(t),u_time:new e.bM(t),u_cam_pos:new e.bL(t),u_velocityConeAperture:new e.bM(t),u_velocity:new e.bM(t),u_horizontalOscillationRadius:new e.bM(t),u_horizontalOscillationRate:new e.bM(t),u_boxSize:new e.bM(t),u_billboardSize:new e.bM(t),u_simpleShapeParameters:new e.bK(t),u_screenSize:new e.bK(t),u_thinningCenterPos:new e.bK(t),u_thinningShape:new e.bL(t),u_thinningAffectedRatio:new e.bM(t),u_thinningParticleOffset:new e.bM(t),u_particleColor:new e.ca(t),u_direction:new e.bL(t)}),rainParticle:t=>({u_modelview:new e.bJ(t),u_projection:new e.bJ(t),u_time:new e.bM(t),u_cam_pos:new e.bL(t),u_texScreen:new e.bN(t),u_velocityConeAperture:new e.bM(t),u_velocity:new e.bM(t),u_boxSize:new e.bM(t),u_rainDropletSize:new e.bK(t),u_distortionStrength:new e.bM(t),u_rainDirection:new e.bL(t),u_color:new e.ca(t),u_screenSize:new e.bK(t),u_thinningCenterPos:new e.bK(t),u_thinningShape:new e.bL(t),u_thinningAffectedRatio:new e.bM(t),u_thinningParticleOffset:new e.bM(t),u_shapeDirectionalPower:new e.bM(t),u_shapeNormalPower:new e.bM(t),u_mode:new e.bM(t)}),vignette:t=>
2({u_vignetteShape:new e.bL(t),u_vignetteColor:new e.ca(t)}),occlusion:t=>({u_matrix:new e.bJ(t),u_anchorPos:new e.bL(t),u_screenSizePx:new e.bK(t),u_occluderSizePx:new e.bK(t),u_color:new e.ca(t)})};class To{constructor(e,t,r,n){this.id=To.uniqueIdxCounter,To.uniqueIdxCounter++,this.context=e;const i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||n||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){this.id=To.uniqueIdxCounter,To.uniqueIdxCounter++;const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}To.uniqueIdxCounter=0;const Po={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class Co{constructor(e,t,r,n,i,o){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=n,this.instanceCount=o,this.context=e;const a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||i||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r=0;r<this.attributes.length;r++){const n=t.attributes[this.attributes[r].name];void 0!==n&&e.enableVertexAttribArray(n)}}setVertexAttribPointers(e,t,r){for(let n=0;n<this.attributes.length;n++){const i=this.attributes[n],o=t.attributes[i.name];void 0!==o&&e.vertexAttribPointer(o,i.components,e[Po[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}}setVertexAttribDivisor(e,t,r){for(let n=0;n<this.attributes.length;n++){const i=t.attributes[this.attributes[n].name];void 0!==i&&this.instanceCount&&this.instanceCount>0&&e.vertexAttribDivisor(i,r)}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Io{constructor(e,t,r,n,i){this.context=e,this.width=t,this.height=r;const o=this.framebuffer=e.gl.createFramebuffer();n&&(this.colorAttachment=new Ci(e,o)),i&&(this.depthAttachmentType=i,this.depthAttachment="renderbuffer"===i?new Ii(e,o):new Mi(e,o))}destroy(){const e=this.context.gl;if(this.colorAttachment){const t=this.colorAttachment.get();t&&e.deleteTexture(t)}if(this.depthAttachment&&this.depthAttachmentType)if("renderbuffer"===this.depthAttachmentType){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}else{const t=this.depthAttachment.get();t&&e.deleteTexture(t)}e.deleteFramebuffer(this.framebuffer)}}class Mo{constructor(e,t){this.gl=e,this.clearColor=new Xn(this),this.clearDepth=new Jn(this),this.clearStencil=new Qn(this),this.colorMask=new $n(this),this.depthMask=new ei(this),this.stencilMask=new ti(this),this.stencilFunc=new ri(this),this.stencilOp=new ni(this),this.stencilTest=new ii(this),this.depthRange=new oi(this),this.depthTest=new ai(this),this.depthFunc=new si(this),this.blend=new li(this),this.blendFunc=new ci(this),this.blendColor=new ui(this),this.blendEquation=new di(this),this.cullFace=new hi(this),this.cullFaceSide=new pi(this),this.frontFace=new fi(this),this.program=new mi(this),this.activeTexture=new gi(this),this.viewport=new _i(this),this.bindFramebuffer=new yi(this),this.bindRenderbuffer=new vi(this),this.bindTexture=new bi(this),this.bindVertexBuffer=new xi(this),this.bindElementBuffer=new wi(this),this.bindVertexArrayOES=new Ai(this),this.pixelStoreUnpack=new Si(this),this.pixelStoreUnpackPremultiplyAlpha=new Ei(this),this.pixelStoreUnpackFlipY=new Ti(this),this.options=t?i({},t):{},this.options.extTextureFilterAnisotropicForceOff||(this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT))),this.extDebugRendererInfo=e.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),this.forceManualRenderingForInstanceIDShaders=t&&!!t.forceManualRenderingForInstanceIDShaders||this.renderer&&-1!==this.renderer.indexOf("PowerVR"),this.options.extTextureFloatLinearForceOff||(this.extTextureFloatLinear=e.getExtension("OES_texture_float_linear")),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query_webgl2"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.maxPointSize=e.getParameter(e.ALIASED_POINT_SIZE_RANGE)[1]}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArrayOES.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t,r){return new To(this,e,t,r)}createVertexBuffer(e,t,r,n,i){return new Co(this,e,t,r,n,i)}createRenderbuffer(e,t,r){const n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),i}createFramebuffer(e,t,r,n){return new Io(this,e,t,r,n)}
2clear(e){let{color:t,depth:r,stencil:n,colorMask:i}=e;const o=this.gl;let a=0;t&&(a|=o.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set(i||[!0,!0,!0,!0])),void 0!==r&&(a|=o.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),void 0!==n&&(a|=o.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),o.clear(a)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(t){e.bn(t.blendFunction,jr.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor),t.blendEquation?this.blendEquation.set(t.blendEquation):this.blendEquation.setDefault()),this.colorMask.set(t.mask)}unbindVAO(){this.bindVertexArrayOES.set(null)}}let ko;function Oo(t,r,n,i,o,a,s){const l=t.context,c=l.gl,u=t.transform,d=t.getOrCreateProgram("collisionBox"),h=[];let p=0,f=0;for(let x=0;x<i.length;x++){const l=i[x],m=r.getTile(l),g=m.getBucket(n);if(!g)continue;const _=ur(l,g,u);let y=_;0===o[0]&&0===o[1]||(y=t.translatePosMatrix(_,m,o,a));const v=s?g.textCollisionBox:g.iconCollisionBox,b=g.collisionCircleArray;if(b.length>0){const t=e.ab.mat4.create(),r=y;e.ab.mat4.mul(t,g.placementInvProjMatrix,u.glCoordMatrix),e.ab.mat4.mul(t,t,g.placementViewportMatrix),h.push({circleArray:b,circleOffset:f,transform:r,invTransform:t,projection:g.getProjection()}),p+=b.length/4,f=p}v&&(t.terrain&&t.terrain.setupElevationDraw(m,d),d.draw(t,c.LINES,Br.disabled,Vr.disabled,t.colorModeForRenderPass(),Gr.disabled,oo(y,u,m,g.getProjection()),n.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,u.zoom,null,[v.collisionVertexBuffer,v.collisionVertexBufferExt]))}if(!s||!h.length)return;const m=t.getOrCreateProgram("collisionCircle"),g=new e.cV;g.resize(4*p),g._trim();let _=0;for(const e of h)for(let t=0;t<e.circleArray.length/4;t++){const r=4*t,n=e.circleArray[r+0],i=e.circleArray[r+1],o=e.circleArray[r+2],a=e.circleArray[r+3];g.emplace(_++,n,i,o,a,0),g.emplace(_++,n,i,o,a,1),g.emplace(_++,n,i,o,a,2),g.emplace(_++,n,i,o,a,3)}(!ko||ko.length<2*p)&&(ko=function(t){const r=2*t,n=new e.aU;n.resize(r),n._trim();for(let e=0;e<r;e++){const t=6*e;n.uint16[t+0]=4*e+0,n.uint16[t+1]=4*e+1,n.uint16[t+2]=4*e+2,n.uint16[t+3]=4*e+2,n.uint16[t+4]=4*e+3,n.uint16[t+5]=4*e+0}return n}(p));const y=l.createIndexBuffer(ko,!0),v=l.createVertexBuffer(g,e.cW.members,!0);for(const x of h){const r={u_matrix:x.transform,u_inv_matrix:x.invTransform,u_camera_to_center_distance:(b=u).getCameraToCenterDistance(x.projection),u_viewport_size:[b.width,b.height]};m.draw(t,c.TRIANGLES,Br.disabled,Vr.disabled,t.colorModeForRenderPass(),Gr.disabled,r,n.id,v,y,e.b7.simpleSegment(0,2*x.circleOffset,x.circleArray.length,x.circleArray.length/2),null,u.zoom)}var b;v.destroy(),y.destroy()}const Ro=e.ab.mat4.create();function Lo(t){const r=t._camera.getWorldToCamera(t.worldSize,1),n=e.ab.mat4.multiply([],r,t.globeMatrix);e.ab.mat4.invert(n,n);const i=[0,0,0],o=[0,1,0,0];return e.ab.vec4.transformMat4(o,o,n),i[0]=o[0],i[1]=o[1],i[2]=o[2],e.ab.vec3.normalize(i,i),i}function Do(t,r){let{width:n,height:i,anchor:o,textOffset:a,textScale:s}=t;const{horizontalAlign:l,verticalAlign:c}=e.bD(o),u=-(l-.5)*n,d=-(c-.5)*i,h=e.bC(o,a);return new e.P((u/s+h[0])*r,(d/s+h[1])*r)}function No(t,r,n,i,o,a,s,l,c,u,d){const h=t.text.placedSymbolArray,p=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={},g=t.getProjection(),_=dr(l,g,a),y=a.elevation,v=g.upVectorScale(l.canonical,a.center.lat,a.worldSize).metersToTile;p.clear();for(let b=0;b<h.length;b++){const f=h.get(b),{tileAnchorX:x,tileAnchorY:w,numGlyphs:A}=f,S=f.hidden||!f.crossTileID||t.allowVerticalPlacement&&!f.placedOrientation?null:i[f.crossTileID];if(S){let i=0,h=0,b=0;if(y){const e=y?y.getAtTileOffset(l,x,w):0,[t,r,n]=g.upVector(l.canonical,x,w);i=e*t*v,h=e*r*v,b=e*n*v}let[E,T,P,C]=Kt(f.projectedAnchorX+i,f.projectedAnchorY+h,f.projectedAnchorZ+b,n?_:s);const I=Xt(a.getCameraToCenterDistance(g),C);
2let M=o.evaluateSizeForFeature(t.textSizeData,u,f)*I/e.bw;n&&(M*=t.tilePixelRatio/c);const k=Do(S,M);n?(({x:E,y:T,z:P}=g.projectTilePoint(x+k.x,w+k.y,l.canonical)),[E,T,P]=Kt(E+i,T+h,P+b,s)):(r&&k._rotate(-a.angle),E+=k.x,T+=k.y,P=0);const O=t.allowVerticalPlacement&&f.placedOrientation===e.bq.vertical?Math.PI/2:0;for(let t=0;t<A;t++)e.bt(p,E,T,P,O);d&&f.associatedIconIndex>=0&&(m[f.associatedIconIndex]={x:E,y:T,z:P,angle:O})}else or(A,p)}if(d){f.clear();const r=t.icon.placedSymbolArray;for(let t=0;t<r.length;t++){const n=r.get(t),{numGlyphs:i}=n,o=m[t];if(n.hidden||!o)or(i,f);else{const{x:t,y:r,z:n,angle:a}=o;for(let o=0;o<i;o++)e.bt(f,t,r,n,a)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(p)}function Fo(t,r,n,i,o,a){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};const l=n.paint.get("icon-translate"),c=n.paint.get("text-translate"),u=n.paint.get("icon-translate-anchor"),d=n.paint.get("text-translate-anchor"),h=n.layout.get("icon-rotation-alignment"),p=n.layout.get("text-rotation-alignment"),f=n.layout.get("icon-pitch-alignment"),m=n.layout.get("text-pitch-alignment"),g=n.layout.get("icon-keep-upright"),_=n.layout.get("text-keep-upright"),y=n.paint.get("icon-color-saturation"),v=n.paint.get("icon-color-contrast"),b=n.paint.get("icon-color-brightness-min"),x=n.paint.get("icon-color-brightness-max"),w="sea"===n.layout.get("symbol-elevation-reference"),A=t.context,S=A.gl,E=t.transform,T="map"===h,P="map"===p,C="map"===f,I="map"===m,M=void 0!==n.layout.get("symbol-sort-key").constantOr(1);let k=!1;const O=t.depthModeForSublayer(0,Br.ReadOnly),R=[e.at(E.center.lng),e.aA(E.center.lat)],L=n.layout.get("text-variable-anchor"),D="globe"===E.projection.name,N=[],F=[0,-1,0];for(const z of i){const i=r.getTile(z),o=i.getBucket(n);if(!o)continue;if("mercator"===o.projection.name&&D)continue;if(o.fullyClipped)continue;const a="globe"===o.projection.name,h=a?e.ae(E.zoom):0,p=dr(z,o.getProjection(),E),f=E.calculatePixelsToTileUnitsMatrix(i),m=L&&o.hasTextData(),A=o.hasIconTextFit()&&m&&o.hasIconData(),O=o.getProjection().createInversionMatrix(E,z.canonical),j=e=>{E.depthOcclusionForSymbolsAndCircles&&(n.hasInitialOcclusionOpacityProperties||t.terrain)&&(e.push("DEPTH_D24"),e.push("DEPTH_OCCLUSION"))},B=()=>{const r=T&&"point"!==n.layout.get("symbol-placement"),s=[];j(s);const c=r||A,d=n.paint.get("icon-image-cross-fade").constantOr(0);t.terrainRenderModeElevated()&&C&&s.push("PITCH_WITH_MAP_TERRAIN"),a&&(s.push("PROJECTION_GLOBE_VIEW"),c&&s.push("PROJECTED_POS_ON_VIEWPORT")),d>0&&s.push("ICON_TRANSITION"),o.icon.zOffsetVertexBuffer&&s.push("Z_OFFSET"),0===y&&0===v&&0===b&&1===x||s.push("COLOR_ADJUSTMENT"),o.sdfIcons&&s.push("RENDER_SDF");const m=o.icon.programConfigurations.get(n.id),_=t.getOrCreateProgram("symbol",{config:m,defines:s}),P=i.imageAtlasTexture?i.imageAtlasTexture.size:[0,0],I=o.iconSizeData,M=e.bp(I,E.zoom),k=C||0!==E.pitch,L=Wt(p,i.tileID.canonical,C,T,E,o.getProjection(),f),N=Zt(p,i.tileID.canonical,C,T,E,o.getProjection(),f),B=t.translatePosMatrix(N,i,l,u,!0),U=t.translatePosMatrix(p,i,l,u),V=c?Ro:L,q=T&&!C&&!r;let H=F;!D&&!E.mercatorFromTransition||T||(H=Lo(E));const G=a?H:F,W=n.getColorAdjustmentMatrix(y,v,b,x),Y=vo(I.kind,M,q,C,t,U,V,B,w,!1,P,[0,0],!0,z,h,R,O,G,o.getProjection(),W,d),Z=i.imageAtlasTexture?i.imageAtlasTexture:null,K=1!==n.layout.get("icon-size").constantOr(0)||o.iconsNeedLinear,X=o.sdfIcons||t.options.rotating||t.options.zooming||K||k?S.LINEAR:S.NEAREST,J=o.sdfIcons&&0!==n.paint.get("icon-halo-width").constantOr(1),Q=t.terrain&&C&&r?e.ab.mat4.invert(e.ab.mat4.create(),L):Ro;if(r&&o.icon){const e=E.elevation,r=e?e.getAtTileOffsetFunc(z,E.center.lat,E.worldSize,o.getProjection()):null,n=Yt(p,i.tileID.canonical,C,T,E,o.getProjection(),f);Qt(o,p,t,!1,n,N,C,g,r,z)}return{program:_,buffers:o.icon,uniformValues:Y,atlasTexture:Z,atlasTextureIcon:null,atlasInterpolation:X,atlasInterpolationIcon:null,isSDF:o.sdfIcons,hasHalo:J,tile:i,labelPlaneMatrixInv:Q}},U=()=>{const r=P&&"point"!==n.layout.get("symbol-placement"),s=[],l=r||L||A;t.terrainRenderModeElevated()&&I&&s.push("PITCH_WITH_MAP_TERRAIN"),a&&(s.push("PROJECTION_GLOBE_VIEW"),l&&s.push("PROJECTED_POS_ON_VIEWPORT")),o.text.zOffsetVertexBuffer&&s.push("Z_OFFSET"),o.iconsInText&&s.push("RENDER_TEXT_AND_SYMBOL"),s.push("RENDER_SDF"),j(s);const u=o.text.programConfigurations.get(n.id),m=t.getOrCreateProgram("symbol",{c
2onfig:u,defines:s});let g,y=[0,0],v=null;const b=o.textSizeData;o.iconsInText&&(y=i.imageAtlasTexture?i.imageAtlasTexture.size:[0,0],v=i.imageAtlasTexture?i.imageAtlasTexture:null,g=I||0!==E.pitch||t.options.rotating||t.options.zooming||"composite"===b.kind||"camera"===b.kind?S.LINEAR:S.NEAREST);const x=i.glyphAtlasTexture?i.glyphAtlasTexture.size:[0,0],T=n.layout.get("text-size-scale-range"),C=e.aw(t.scaleFactor,T[0],T[1]),M=e.bp(b,E.zoom,C),k=Wt(p,i.tileID.canonical,I,P,E,o.getProjection(),f),N=Zt(p,i.tileID.canonical,I,P,E,o.getProjection(),f),B=t.translatePosMatrix(N,i,c,d,!0),U=t.translatePosMatrix(p,i,c,d),V=l?Ro:k,q=P&&!I&&!r;let H=F;!D&&!E.mercatorFromTransition||P||(H=Lo(E));const G=vo(b.kind,M,q,I,t,U,V,B,w,!0,x,y,!0,z,h,R,O,a?H:F,o.getProjection(),null,null,C),W=i.glyphAtlasTexture?i.glyphAtlasTexture:null,Y=S.LINEAR,Z=0!==n.paint.get("text-halo-width").constantOr(1),K=t.terrain&&I&&r?e.ab.mat4.invert(e.ab.mat4.create(),k):Ro;if(r&&o.text){const e=E.elevation,r=e?e.getAtTileOffsetFunc(z,E.center.lat,E.worldSize,o.getProjection()):null,n=Yt(p,i.tileID.canonical,I,P,E,o.getProjection(),f);Qt(o,p,t,!0,n,N,I,_,r,z)}return{program:m,buffers:o.text,uniformValues:G,atlasTexture:W,atlasTextureIcon:v,atlasInterpolation:Y,atlasInterpolationIcon:g,isSDF:!0,hasHalo:Z,tile:i,labelPlaneMatrixInv:K}},V=o.icon.segments.get().length,q=o.text.segments.get().length,H=V&&!s.onlyText?B():null,G=q&&!s.onlyIcons?U():null,W=n.paint.get("icon-opacity").constantOr(1),Y=n.paint.get("text-opacity").constantOr(1);if(M&&o.canOverlap){k=!0;const t=W&&!s.onlyText?o.icon.segments.get():[],r=Y&&!s.onlyIcons?o.text.segments.get():[];for(const n of t)N.push({segments:new e.b7([n]),sortKey:n.sortKey,state:H});for(const n of r)N.push({segments:new e.b7([n]),sortKey:n.sortKey,state:G})}else s.onlyText||N.push({segments:W?o.icon.segments:new e.b7([]),sortKey:0,state:H}),s.onlyIcons||N.push({segments:Y?o.text.segments:new e.b7([]),sortKey:0,state:G})}k&&N.sort(((e,t)=>
2e.sortKey-t.sortKey));for(const e of N){const r=e.state;if(r)if(t.terrain?t.terrain.setupElevationDraw(r.tile,r.program,{useDepthForOcclusion:E.depthOcclusionForSymbolsAndCircles,labelPlaneMatrixInv:r.labelPlaneMatrixInv}):t.setupDepthForOcclusion(E.depthOcclusionForSymbolsAndCircles,r.program),A.activeTexture.set(S.TEXTURE0),r.atlasTexture&&r.atlasTexture.bind(r.atlasInterpolation,S.CLAMP_TO_EDGE,!0),r.atlasTextureIcon&&(A.activeTexture.set(S.TEXTURE1),r.atlasTextureIcon&&r.atlasTextureIcon.bind(r.atlasInterpolationIcon,S.CLAMP_TO_EDGE,!0)),t.uploadCommonLightUniforms(t.context,r.program),r.hasHalo){const i=r.uniformValues;i.u_is_halo=1,zo(r.buffers,e.segments,n,t,r.program,O,o,a,i,2),i.u_is_halo=0}else{if(r.isSDF){const i=r.uniformValues;r.hasHalo&&(i.u_is_halo=1,zo(r.buffers,e.segments,n,t,r.program,O,o,a,i,1)),i.u_is_halo=0}zo(r.buffers,e.segments,n,t,r.program,O,o,a,r.uniformValues,1)}}}function zo(e,t,r,n,i,o,a,s,l,c){const u=[e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer,e.iconTransitioningVertexBuffer,e.globeExtVertexBuffer,e.zOffsetVertexBuffer];i.draw(n,n.context.gl.TRIANGLES,o,a,s,Gr.disabled,l,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,n.transform.zoom,e.programConfigurations.get(r.id),u,c)}function jo(t,r,n,i,o,a,s){const l=t.context.gl,c=n.paint.get("fill-pattern"),u=n.is3D(),d=u?t.stencilModeFor3D():Vr.disabled,h=c&&c.constantOr(1);let p,f,m,g,_;s?(f=h&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",p=l.LINES):(f=h?"fillPattern":"fill",p=l.TRIANGLES);for(const y of i){const i=r.getTile(y);if(h&&!i.patternsLoaded())continue;const v=i.getBucket(n);if(!v)continue;t.prepareDrawTile();const b=v.programConfigurations.get(n.id),x=t.isTileAffectedByFog(y),w=t.getOrCreateProgram(f,{config:b,overrideFog:x});h&&(t.context.activeTexture.set(l.TEXTURE0),i.imageAtlasTexture&&i.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),b.updatePaintBuffers());const A=c.constantOr(null);if(A&&i.imageAtlas){const t=i.imageAtlas,r=e.A.from(A),n=t.patternPositions[r.getSerializedPrimary()];n&&b.setConstantPatternPositions(n)}const S=t.translatePosMatrix(y.projMatrix,i,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor")),E=n.paint.get("fill-emissive-strength");if(s){g=v.indexBuffer2,_=v.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[l.drawingBufferWidth,l.drawingBufferHeight];m="fillOutlinePattern"===f&&h?io(S,E,t,i,e):no(S,E,e)}else g=v.indexBuffer,_=v.segments,m=h?ro(S,E,t,i):to(S,E);t.uploadCommonUniforms(t.context,w,y.toUnwrapped()),w.draw(t,p,o,u?d:t.stencilModeForClipping(y),a,Gr.disabled,m,n.id,v.layoutVertexBuffer,g,_,n.paint,t.transform.zoom,b,void 0)}}function Bo(t,r,n,i,o,a,s,l){n.resetLayerRenderingStats(t);const c=t.context,u=c.gl,d=t.transform,h=n.paint.get("fill-extrusion-pattern"),p=h.constantOr(1),f=n.paint.get("fill-extrusion-opacity"),m=t.style.enable3dLights(),g=n.paint.get(m&&!p?"fill-extrusion-ambient-occlusion-wall-radius":"fill-extrusion-ambient-occlusion-radius"),_=[n.paint.get("fill-extrusion-ambient-occlusion-intensity"),g],y=n.layout.get("fill-extrusion-edge-radius"),v=y>0&&!n.paint.get("fill-extrusion-rounded-roof"),b=v?0:y,x="globe"===d.projection.name?e.d3():0,w="globe"===d.projection.name,A=w?e.ae(d.zoom):0,S=[e.at(d.center.lng),e.aA(d.center.lat)],E="none"===n.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default"),T=n.paint.get("fill-extrusion-flood-light-color").toRenderColor(E?null:n.lut).toArray01().slice(0,3),P=n.paint.get("fill-extrusion-flood-light-intensity"),C=n.paint.get("fill-extrusion-vertical-scale"),I=0!==n.paint.get("fill-extrusion-line-width").constantOr(1),M=n.paint.get("fill-extrusion-height-alignment"),k=n.paint.get("fill-extrusion-base-alignment"),O=rn(t,n.paint.get("fill-extrusion-cutoff-fade-range")),R=[];let L;w&&R.push("PROJECTION_GLOBE_VIEW"),_[0]>0&&R.push("FAUX_AO"),v&&R.push("ZERO_ROOF_RADIUS"),l&&R.push("HAS_CENTROID"),P>0&&R.push("FLOOD_LIGHT"),O.shouldRenderCutoff&&R.push("RENDER_CUTOFF"),I&&R.push("RENDER_WALL_MODE");const D="shadow"===t.renderPass,N=t.shadowRenderer,F=D&&!!N;t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!0);let z=[0,0,0];if(N){const e=t.style.directionalLight,r=t.style.ambientLight;e&&r&&(z=un(t.style,e,r)),D||(R.push("RENDER_SHADOWS","DEPTH_TEXTURE"),N.useNormalOffset&&R.push("NORMAL_OFFSET")),L=R.c
2oncat(["SHADOWS_SINGLE_CASCADE"])}const j=F?"fillExtrusionDepth":p?"fillExtrusionPattern":"fillExtrusion",B=n.getLayerRenderingStats();for(const U of i){const i=r.getTile(U),m=i.getBucket(n);if(!m||m.projection.name!==d.projection.name)continue;let g=!1;N&&(g=0===N.getMaxCascadeForTile(U.toUnwrapped()));const y=t.isTileAffectedByFog(U),v=m.programConfigurations.get(n.id),E=t.getOrCreateProgram(j,{config:v,defines:g?L:R,overrideFog:y});if(t.terrain&&t.terrain.setupElevationDraw(i,E,{useMeterToDem:!0}),!m.centroidVertexBuffer){const e=E.attributes.a_centroid_pos;void 0!==e&&u.vertexAttrib2f(e,0,0)}!D&&N&&N.setupShadows(i.tileID.toUnwrapped(),E,"vector-tile",i.tileID.overscaledZ),p&&(t.context.activeTexture.set(u.TEXTURE0),i.imageAtlasTexture&&i.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),v.updatePaintBuffers());const F=h.constantOr(null);if(F&&i.imageAtlas){const t=i.imageAtlas,r=e.A.from(F),n=t.patternPositions[r.getSerializedPrimary()];n&&v.setConstantPatternPositions(n)}const V=n.paint.get("fill-extrusion-vertical-gradient"),q=1/m.tileToMeter;let H;if(D&&N){if(Wo(i.tileID,m,t))continue;const e=N.calculateShadowPassMatrixFromTile(i.tileID.toUnwrapped());H=$i(e,b,q,C,M,k)}else{const e=t.translatePosMatrix(U.expandedProjMatrix,i,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),r=d.projection.createInversionMatrix(d,U.canonical);H=p?eo(e,t,V,f,_,b,q,U,i,x,M,k,A,S,r,T,C):Qi(e,t,V,f,_,b,q,U,x,M,k,A,S,r,T,C,P,z)}t.uploadCommonUniforms(c,E,U.toUnwrapped(),null,O);let G=m.segments;if("mercator"===d.projection.name&&!D&&(G=m.getVisibleSegments(i.tileID,t.terrain,t.transform.getFrustum(0)),!G.get().length))continue;if(B)if(D)for(const e of G.get())B.numRenderedVerticesInShadowPass+=e.primitiveLength;else for(const e of G.get())B.numRenderedVerticesInTransparentPass+=e.primitiveLength;const W=[];(t.terrain||l)&&W.push(m.centroidVertexBuffer),w&&W.push(m.layoutVertexExtBuffer),I&&W.push(m.wallVertexBuffer),E.draw(t,c.gl.TRIANGLES,o,a,s,Gr.backCCW,H,n.id,m.layoutVertexBuffer,m.indexBuffer,G,n.paint,t.transform.zoom,v,W)}t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!1)}function Uo(t,r,n,i,o,a,s,l,c,u,d,h,p,f,m,g,_,y,v){const b=t.context,x=b.gl,w=t.transform,A=t.transform.zoom,S=[],E=rn(t,n.paint.get("fill-extrusion-cutoff-fade-range"));"clear"===u?(S.push("CLEAR_SUBPASS"),v&&(S.push("CLEAR_FROM_TEXTURE"),b.activeTexture.set(x.TEXTURE0),v.bind(x.LINEAR,x.CLAMP_TO_EDGE))):"sdf"===u&&S.push("SDF_SUBPASS"),_&&S.push("HAS_CENTROID"),E.shouldRenderCutoff&&S.push("RENDER_CUTOFF");const T=n.layout.get("fill-extrusion-edge-radius"),P=(e,r,i,u,y)=>{const x=r.programConfigurations.get(n.id),w=t.isTileAffectedByFog(e),P=t.getOrCreateProgram("fillExtrusionGroundEffect",{config:x,defines:S,overrideFog:w}),C=((e,t,r,n,i,o,a,s,l,c,u)=>({u_matrix:t,u_opacity:r,u_ao_pass:n?1:0,u_meter_to_tile:i,u_ao:o,u_flood_light_intensity:a,u_flood_light_color:s,u_attenuation:l,u_edge_radius:c,u_fb:0,u_fb_size:u,u_dynamic_offset:1}))(0,u,d,c,y,[h,p*y],f,m,g,A>=17?0:T*y,v?v.size[0]:0),I=[];_&&I.push(r.hiddenByLandmarkVertexBuffer),t.uploadCommonUniforms(b,P,e.toUnwrapped(),null,E),P.draw(t,b.gl.TRIANGLES,o,a,s,l,C,n.id,r.vertexBuffer,r.indexBuffer,i,n.paint,A,x,I)};for(const C of i){const i=r.getTile(C),o=i.getBucket(n);if(!o||o.projection.name!==w.projection.name||!o.groundEffect||o.groundEffect&&!o.groundEffect.hasData())continue;const a=o.groundEffect,s=1/o.tileToMeter;{const e=t.translatePosMatrix(C.projMatrix,i,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),r=a.getDefaultSegment();P(C,a,r,e,s)}if(y)for(let l=0;l<4;l++){const o=e.d4[l](C),a=r.getTile(o);if(!a)continue;const c=a.getBucket(n);if(!c||c.projection.name!==w.projection.name||!c.groundEffect||c.groundEffect&&!c.groundEffect.hasData())continue;const u=c.groundEffect;let d,h;0===l?(d=[-e.ag,0,0],h=1):1===l?(d=[e.ag,0,0],h=0):2===l?(d=[0,-e.ag,0],h=3):(d=[0,e.ag,0],h=2);const p=u.regionSegments[h];if(!p)continue;const f=new Float32Array(16);e.ab.mat4.translate(f,C.projMatrix,d),P(C,u,p,t.translatePosMatrix(f,i,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),s)}}}function Vo(t,r,n,i,o,a,s){0===i.centroidVertexArray.length&&i.createCentroidsBuffer();const l=a?a.findDEMTileFor(n):null;if(!(l&&l.dem||s))return;a&&l&&l.dem&&i.selfDEMTileTimestamp!==l.dem._timestamp&&(i.borderDoneWithNeighborZ=[-1,-1,-1,-1],i.selfDEMTileTimestamp=l.dem._timestamp);const c=t=>new e.P(Math.ceil((t+e.d7)*e.d8),0),u=e=>{const t=r.getSource().minzoom,n=e=>{const t=r.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},i=[0,-1,1];for(const r of i){if(e.overscaledZ+r<t)continue;const i=n(e.calculateScaledKey(e.overscaledZ+r));if(i)return i}},d=[0,0,0],h=(t,r)=>(d[0]=Math.min(t.min.y,r.min.y),d[1]=Math.max(t.max.y,r.max.y),d[2]=e.ag-r.min.x>t.max.x?r.min.x-e.ag:t.max.x,d),p=(t,r)=>(d[0]=Math.min(t.min.x,r.min.x),d[1]=Math.max(t.max.x,r.max.x),d[2]=e.ag-r.min.y>t.max.y?r.min.y-e.ag:t.max.y,d),f=[(e,t)=>h(e,t),(e,t)=>h(t,e),(e,t)=>p(e,t),(e,t)=>p(t,e)],m=(t,r,i,o,s,c,u)=>{if(!a)return 0;const d=[[c?i:t,c?t:i,0],[c?i:r,c?r:i,0]],h=u<0?e.ag+u:u,p=[c?h:(t+r)/2,c?(t+r)/2:h,0];return 0===i&&u<0||0!==i&&u>0?a.getForTilePoints(s,[p],!0,o):d.push(p),a.getForTilePoints(n,d,!0,l),Math.max(d[0][2],d[1][2],p[2])/a.exaggeration()};for(let y=0;y<4;y++){const t=i.borderFeatureIndices[y];if(0===t.length)continue;const r=e.d4[y](n),o=u(r);if(!(o&&o instanceof e.d5))continue;const l=a?a.findDEMTileFor(r):null;if(!(l&&l.dem||s))continue;if(a&&l&&l.dem&&i.borderDEMTileTimestamp[y]!==l.dem._timestamp&&(i.borderDoneWithNeighborZ[y]=-1,i.borderDEMTileTimestamp[y]=l.dem._timestamp),i.borderDoneWithNeighborZ[y]===o.canonical.z)continue;0===o.centroidVertexArray.length&&o.createCentroidsBuffer();const d=(y<2?1:5)-y,h=o.borderDoneWithNeighborZ[d]!==i.canonical.z,p=o.borderFeatureIndices[d];let v=0;if(i.canonical.z!==o.canonical.z){for(const e of t)i.showCentroid(i.featuresOnBorder[e]);if(h)for(const e of p)o.showCentroid(o.featuresOnBorder[e]);i.borderDoneWithNeighborZ[y]=o.canonical.z,o.borderDoneWithNeighborZ[d]=i.canonical.z}for(const n of t){const t=i.featuresOnBorder[n],a=i.centroidData[t.centroidDataIndex],u=t.borders[y];let h;for(;v<p.length;){h=o.featuresOnBorder[p[v]];const e=h.borders[d];if(e[1]>u[0]+3||e[0]>u[0]-3)break;o.showCentroid(h),v++}if(h&&v<p.length){const n=v;let b=0;for(;!(h.borders[d][0]>u[1]-3)&&(b++,++v!==p.length);)h=o.featuresOnBorder[p[v]];h=o.featuresOnBorder[p[n]];let x=!1;if(b>=1){const e=h.borders[d];Math.abs(u[0]-e[0])<3&&Math.abs(u[1]-e[1])<3&&(b=1,x=!0,v=n+1)}else if(0===b){i.showCentroid(t);continue}const w=o.centroidData[h.centroidDataIndex];s&&x&&(((g=a).flags|(_=w).flags)&e.d6?(g.flags|=e.d6,_.flags|=e.d6):(g.flags&=~e.d6,_.flags&=~e.d6));const A=t.intersectsCount()>1||h.intersectsCount()>1;
2if(b>1)v=n,a.centroidXY=w.centroidXY=new e.P(0,0);else if(l&&l.dem&&!A){const t=f[y](a,w),n=y%2?e.ag-1:0,i=m(t[0],Math.min(e.ag-1,t[1]),n,l,r,y<2,t[2]);a.centroidXY=w.centroidXY=c(i)}else A?a.centroidXY=w.centroidXY=new e.P(0,0):(a.centroidXY=i.encodeBorderCentroid(t),w.centroidXY=o.encodeBorderCentroid(h));i.writeCentroidToBuffer(a),o.writeCentroidToBuffer(w)}else i.showCentroid(t)}i.borderDoneWithNeighborZ[y]=o.canonical.z,o.borderDoneWithNeighborZ[d]=i.canonical.z}var g,_;(i.needsCentroidUpdate||!i.centroidVertexBuffer&&0!==i.centroidVertexArray.length)&&i.uploadCentroid(t)}const qo=[1,0,0],Ho=[0,1,0],Go=[0,0,1];function Wo(t,r,n){const i=n.transform,o=n.shadowRenderer;if(!o)return!0;const a=t.toUnwrapped(),s=i.tileSize*o._cascades[n.currentShadowCascade].scale;let l=r.maxHeight;if(i.elevation){const e=i.elevation.getMinMaxForTile(t);e&&(l+=e.max)}const c=[...o.shadowDirection];c[2]=-c[2];const u=o.computeSimplifiedTileShadowVolume(a,l,s,c);if(!u)return!1;const d=[qo,Ho,Go,c,[c[0],0,c[2]],[0,c[1],c[2]]],h="globe"===i.projection.name,p=i.scaleZoom(s),f=e.bR.fromInvProjectionMatrix(i.invProjMatrix,i.worldSize,p,!h),m=o.getCurrentCascadeFrustum();return 0===f.intersectsPrecise(u.vertices,u.planes,d)||0===m.intersectsPrecise(u.vertices,u.planes,d)}function Yo(t){return[t[0]*e.d9,t[1]*e.d9,t[2]*e.d9,0]}function Zo(t,r,n,i,o,a,s,l,c){const u=i.getSource(),d=n.globeSharedBuffers;if(!d)return;let h,p,f;if(r&&(h=i.getTile(r)),u instanceof e.aJ?(p=u.texture,f=e.cI(0,0,n.transform)):h&&r&&(p=h.texture,f=e.cI(r.canonical.z,r.canonical.x,n.transform)),!p||!f)return;t||(f=e.ab.mat4.scale(e.ab.mat4.create(),f,[1,-1,1]));const m=n.context,g=m.gl,_="nearest"===o.paint.get("raster-resampling")?g.NEAREST:g.LINEAR,y=n.colorModeForDrapableLayerRenderPass(a),v=s.defines;v.push("GLOBE_POLES");const b=new Br(g.LEQUAL,Br.ReadWrite,n.depthRangeFor3D),x=Float32Array.from(n.transform.expandedFarZProjMatrix),w=Float32Array.from(e.bb(e.cH(new e.bT(0,0,0))));n.terrain&&n.terrain.prepareDrawTile(),m.activeTexture.set(g.TEXTURE0),p.bind(_,g.CLAMP_TO_EDGE),m.activeTexture.set(g.TEXTURE1),p.bind(_,g.CLAMP_TO_EDGE),p.useMipmap&&m.extTextureFilterAnisotropic&&n.transform.pitch>20&&g.texParameterf(g.TEXTURE_2D,m.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,m.extTextureFilterAnisotropicMax);const[A,S,E,T]=r?d.getPoleBuffers(r.canonical.z,!1):d.getPoleBuffers(0,!0),P=o.paint.get("raster-elevation");let C;t?(C=A,n.renderDefaultNorthPole=0!==P):(C=S,n.renderDefaultSouthPole=0!==P);const I=Yo(s.mix),M=((e,t,r,n,i,o,a,s,l,c,u,d,h)=>ho(e,t,r,new Float32Array(16),new Float32Array(9),[0,0],n,[0,0],[0,0,0,0],1,{opacity:1,mix:0},o,[0,0]||0,s,2,c,u,d,1,0,h))(x,w,f,e.ae(n.transform.zoom),0,o,0,P,0,I,s.offset,s.range,a),k=n.getOrCreateProgram("raster",{defines:v});n.uploadCommonUniforms(m,k,null),k.draw(n,g.TRIANGLES,b,c,y,l,M,o.id,C,E,T)}function Ko(e){const t=e._nearZ,r=e.projection.farthestPixelDistance(e),n=r-t,i=.2*e.height,o=t+i;return[t,r,(o-i-t)/n,(o-t)/n]}function Xo(e,t,r,n){if(e)return t instanceof st&&e instanceof St?t.getTextureDescriptor(e,r,!0):{texture:e.texture,mix:Yo(n.mix),offset:n.offset,buffer:0,tileSize:1}}var Jo=e.da([{name:"a_index",type:"Int16",components:1}]);class Qo{constructor(t,r,n,i){const o={width:n[0],height:n[1],data:null},a=t.gl;this.targetColorTexture=new e.T(t,o,a.RGBA8,{useMipmap:!1}),this.backgroundColorTexture=new e.T(t,o,a.RGBA8,{useMipmap:!1}),this.context=t,this.updateParticleTexture(r,i),this.lastInvalidatedAt=0}updateParticleTexture(t,r){if(this.particleTextureDimension===r.width)return;(this.particleTexture0||this.particleTexture1||this.particleIndexBuffer||this.particleSegment)&&(this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleIndexBuffer.destroy(),this.particleSegment.destroy());const n=this.context.gl,i=r.width*r.height;this.particleTexture0=new e.T(this.context,r,n.RGBA8,{premultiply:!1,useMipmap:!1}),this.particleTexture1=new e.T(this.context,r,n.RGBA8,{premultiply:!1,useMipmap:!1});const o=new e.db;o.reserve(i);for(let e=0;e<i;e++)o.emplaceBack(e);this.particleIndexBuffer=this.context.createVertexBuffer(o,Jo.members,!0),this.particleSegment=e.b7.simpleSegment(0,0,this.particleIndexBuffer.length,0),this.particleTextureDimension=r.width}update(t){return!(this.lastInvalidatedAt<t&&(this.lastInvalidatedAt=e.q.now(),1))}destroy(){this.targetColorTexture.destroy(),this.backgroundColorTexture.destroy(),this.particleIndexBuffer.destroy(),this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleSegment.destroy()}}function $o(t,r,n){if(!t)return null;const i=r.getTextureDescriptor(t,n,!0);if(!i)return null;let{texture:o,mix:a,offset:s,tileSize:l,buffer:c,format:u}=i;if(!o||!u)return null;let d=!1;return"uint32"===u&&(d=!0,a[3]=0,a=co(e.dc,a,[0,n.paint.get("raster-particle-max-speed")]),s=uo(e.dc,s,[0,n.paint.get("raster-particle-max-speed")])),{texture:o,textureOffset:[c/(l+2*c),l/(l+2*c)],tileSize:l,scalarData:d,scale:a,offset:s,defines:["RASTER_ARRAY",{uint8:"DATA_FORMAT_UINT8",uint16:"DATA_FORMAT_UINT16",uint32:"DATA_FORMAT_UINT32"}[u]]}}function ea(e){const t=e._nearZ,r=e.projection.farthestPixelDistance(e),n=r-t,i=.2*e.height,o=t+i;return[t,r,(o-i-t)/n,(o-t)/n]}const ta=new e.aj(1,0,0,1),ra=new e.aj(0,1,0,1),na=new e.aj(0,0,1,1),ia=new e.aj(1,0,1,1),oa=new e.aj(0,1,1,1);function aa(t,r,n,i,o,a,s){const l=t.context,c=t.transform,u=l.gl,d="globe"===c.projection.name,h=d?["PROJECTION_GLOBE_VIEW"]:[];let p=e.ab.mat4.clone(n.projMatrix);if(d&&e.ae(c.zoom)>0){const t=e.ba(n.canonical,c),r=e.dd(t);p=e.ab.mat4.multiply(new Float32Array(16),c.globeMatrix,r),e.ab.mat4.multiply(
2p,c.projMatrix,p)}const f=e.ab.mat4.create();f[12]+=2*o/(e.q.devicePixelRatio*c.width),f[13]+=2*a/(e.q.devicePixelRatio*c.height),e.ab.mat4.multiply(p,f,p);const m=t.getOrCreateProgram("debug",{defines:h}),g=r.getTileByID(n.key);t.terrain&&t.terrain.setupElevationDraw(g,m);const _=Br.disabled,y=Vr.disabled,v=t.colorModeForRenderPass(),b="$debug";l.activeTexture.set(u.TEXTURE0),t.emptyTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),d?g._makeGlobeTileDebugBuffers(t.context,c):g._makeDebugTileBoundsBuffers(t.context,c.projection);const x=g._tileDebugBuffer||t.debugBuffer,w=g._tileDebugIndexBuffer||t.debugIndexBuffer,A=g._tileDebugSegments||t.debugSegments;if(m.draw(t,u.LINE_STRIP,_,y,v,Gr.disabled,ao(p,i),b,x,w,A,null,null,null,[g._globeTileDebugBorderBuffer]),s){const e=g.latestRawTileData,r=Math.floor((e&&e.byteLength||0)/1024);let i=n.canonical.toString();n.overscaledZ!==n.canonical.z&&(i+=" => ".concat(n.overscaledZ)),i+=" ".concat(g.state),i+=" ".concat(r,"kb"),function(e,t){e.initDebugOverlayCanvas();const r=e.debugOverlayCanvas,n=e.context.gl,i=e.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,r.width,r.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(t,5,5),i.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(t,i)}const S=r.getTile(n).tileSize,E=512/Math.min(S,512)*(n.overscaledZ/c.zoom)*.5,T=g._tileDebugTextBuffer||t.debugBuffer,P=g._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,C=g._tileDebugTextSegments||t.debugSegments;m.draw(t,u.TRIANGLES,_,y,jr.alphaBlended,Gr.disabled,ao(p,e.aj.transparent,E),b,T,P,C,null,null,null,[g._globeTileDebugTextBuffer])}function sa(e,t,r,n){ca(e,0,t+r/2,e.transform.width,r,n)}function la(e,t,r,n){ca(e,t-r/2,0,r,e.transform.height,n)}function ca(t,r,n,i,o,a){const s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*e.q.devicePixelRatio,n*e.q.devicePixelRatio,i*e.q.devicePixelRatio,o*e.q.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}const ua=e.da([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:da}=ua;function ha(e,t,r,n){e.emplaceBack(t,r,n)}class pa{constructor(t){this.vertexArray=new e.de,this.indices=new e.aU,ha(this.vertexArray,-1,-1,1),ha(this.vertexArray,1,-1,1),ha(this.vertexArray,-1,1,1),ha(this.vertexArray,1,1,1),ha(this.vertexArray,-1,-1,-1),ha(this.vertexArray,1,-1,-1),ha(this.vertexArray,-1,1,-1),ha(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,da),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.b7.simpleSegment(0,0,36,12)}}function fa(t,r,n,i,o,a){const s=t.context.gl,l=r.paint.get("sky-atmosphere-color"),c=r.paint.get("sky-atmosphere-halo-color"),u=r.paint.get("sky-atmosphere-sun-intensity"),d=((e,t,r,n,i)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:r,u_color_tint_r:[n.r,n.g,n.b,n.a],u_color_tint_m:[i.r,i.g,i.b,i.a],u_luminance:5e-5}))(e.ab.mat3.fromMat4(e.ab.mat3.create(),i),o,u,l,c);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_CUBE_MAP_POSITIVE_X+a,r.skyboxTexture,0),n.draw(t,s.TRIANGLES,Br.disabled,Vr.disabled,jr.unblended,Gr.frontCW,d,"skyboxCapture",r.skyboxGeometry.vertexBuffer,r.skyboxGeometry.indexBuffer,r.skyboxGeometry.segment)}const ma=e.da([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class ga{constructor(t){const r=new e.df;r.emplaceBack(-1,1,1,0,0),r.emplaceBack(1,1,1,1,0),r.emplaceBack(1,-1,1,1,1),r.emplaceBack(-1,-1,1,0,1);const n=new e.aU;n.emplaceBack(0,1,2),n.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(r,ma.members),this.indexBuffer=t.createIndexBuffer(n),this.segments=e.b7.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const _a=e.da([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_size_scale",components:1},{type:"Float32",name:"a_fade_opacity",components:1}]);class ya{constructor(){this.starsCount=16e3,this.sizeMultiplier=.15,this.sizeRange=100,this.intensityRange=200}}class va{constructor(t){this.colorModeAlphaBlendedWriteRGB=new jr([1,zr,1,zr],e.aj.transparent,[!0,!0,!0,!1]),this.colorModeWriteAlpha=new jr([1,0,1,0],e.aj.transparent,[!1,!1,!1,!0]),this.params=new ya,this.updateNeeded=!0,t.tp.registerParameter(this.params,["Stars"],"starsCount",{min:100,max:16e3,step:1},(()=>{this.updateNeeded=!0})),t.tp.registerParameter(this.params,["Stars"],"sizeMultiplier",{min:.01,max:2,step:.01}),t.tp.registerParameter(this.params,["Stars"],"sizeRange",{min:0,max:200,step:1},(()=>{this.updateNeeded=!0})),t.tp.registerParameter(this.params,["Stars"],"intensityRange",{min:0,max:200,step:1},(()=>{this.updateNeeded=!0}))}update(t){const r=t.context;if(!this.atmosphereBuffer||this.updateNeeded){this.updateNeeded=!1,this.atmosphereBuffer=new ga(r);const t=this.params.sizeRange,n=this.params.intensityRange,i=function(t){const r=e.di(30),n=[];for(let i=0;i<t;++i){const t=2*Math.PI*r(),i=Math.acos(1-2*r())-.5*Math.PI;n.push(e.ab.vec3.fromValues(Math.cos(i)*Math.cos(t),Math.cos(i)*Math.sin(t),Math.sin(i)))}return n}(this.params.starsCount),o=e.di(300),a=new e.dg,s=new e.aU;let l=0;for(let r=0;r<i.length;++r){const c=e.ab.vec3.scale([],i[r],200),u=Math.max(0,1+.01*t*(1*o()-.5)),d=Math.max(0,1+.01*n*(1*o()-.5));a.emplaceBack(c[0],c[1],c[2],-1,-1,u,d),a.emplaceBack(c[0],c[1],c[2],1,-1,u,d),a.emplaceBack(c[0],c[1],c[2],1,1,u,d),a.emplaceBack(c[0],c[1],c[2],-1,1,u,d),s.emplaceBack(l+0,l+1,l+2),s.emplaceBack(l+0,l+2,l+3),l+=4}this.starsVx=r.createVertexBuffer(a,_a.members),this.starsIdx=r.createIndexBuffer(s),this.starsSegments=e.b7.simpleSegment(0,0,a.length,s.length)}}destroy(){this.atmosphereBuffer&&this.atmosphereBuffer.destroy(),this.starsVx&&this.starsVx.destroy(),this.starsIdx&&this.starsIdx.destroy()}drawAtmosphereGlow(t,r){const n=t.context,i=n.gl,o=t.transform,a=new Br(i.LEQUAL,Br.ReadOnly,[0,1]),s=e.ae(o.zoom),l=t.style.getLut(r.scope),c="none"===r.properties.get("color-use-theme"),u=r.properties.get("color").toRenderColor(c?null:l).toArray01(),d="none"===r.properties.get("high-color-use-theme"),h=r.properties.get("high-color").toRenderColor(d?null:l).toArray01(),p="none"===r.properties.get("space-color-use-theme"),f=r.properties.get("space-color").toRenderColor(p?null:l).toArray01PremultipliedAlpha(),m=5e-4,g=e.dh(r.properties.get("horizon-blend"),0,1,m,.25),_=e.cC(t,n,o)&&g===m?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,y=t.frameCounter/1e3%1,v=e.ab.vec3.length(o.globeCenterInViewSpace),b=Math.sqrt(Math.pow(v,2)-Math.pow(_,2)),x=Math.acos(b/v),w=e=>{const r="globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];e&&r.push("ALPHA_PASS");const l=t.getOrCreateProgram("globeAtmosphere",{defines:r}),c=((e,t,r,n,i,o,a,s,l,c,u,d)=>({u_frustum_tl:e,u_frustum_tr:t,u_frustum_br:r,u_frustum_bl:n,u_horizon:i,u_transition:o,u_fadeout_range:a,u_color:s,u_high_color:l,u_space_color:c,u_temporal_offset:u,u_horizon_angle:d}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,s,g,u,h,f,y,x);t.uploadCommonUniforms(n,l);const d=this.atmosphereBuffer;d&&l.draw(t,i.TRIANGLES,a,Vr.disabled,e?this.colorModeWriteAlpha:this.colorModeAlphaBlendedWriteRGB,Gr.backCW,c,e?"atmosphere_glow_alpha":"atmosphere_glow",d.vertexBuffer,d.indexBuffer,d.segments)};w(!1),w(!0)}drawStars(t,r){const n=e.aw(r.properties.get("star-intensity"),0,1);if(0===n)return;const i=t.context,o=i.gl,a=t.transform,s=t.getOrCreateProgram("stars"),l=e.ab.quat.identity([]);e.ab.quat.rotateX(l,l,-a._pitch),e.ab.quat.rotateZ(l,l,-a.angle),e.ab.quat.rotateX(l,l,e.ai(a._center.lat)),e.ab.quat.rotateY(l,l,-e.ai(a._center.lng));const c=e.ab.mat4.fromQuat(new Float32Array(16),l),u=e.ab.mat4.multiply([],a.starsProjMatrix,c),d=e.ab.mat3.fromMat4([],c),h=e.ab.mat3.invert([],d),p=[0,1,0];e.ab.vec3.transformMat3(p,p,h),e.ab.vec3.scale(p,p,this.params.sizeMultiplier);const f=[1,0,0];e.ab.vec3.transformMat3(f,f,h),e.ab.vec3.scale(f,f,this.params.sizeMultiplier);const m=(g=p,_=f,y=n,{u_matrix:Float32Array.from(u),u_up:g,u_right:_,u_intensity_multiplier:y});var g,_,y;t.uploadCommonUniforms(i,s),this.starsVx&&this.starsIdx&&s.draw(t,o.TRIANGLES,Br.disabled,Vr.disabled,this.colorModeAlphaBlendedWriteRGB,Gr.disabled,m,"atmosphere_stars",this.starsVx,this.starsIdx,this.starsSegments)}}function ba(t,r){const n=[...t],i=r.cameraWorldSizeForFog/r.worldSize,o=e.ab.mat4.identity([]);return e.ab.mat4.scale(o,o,[i,i,1]),e.ab.mat4.multiply(n,o,n),e.ab.mat4.multiply(n,r.worldToFogMatrix,n),n}function xa(t,r,n,i,o){const a=n.material,s=i.context,{baseColorTexture:l,metallicRoughnessTexture:c}=a.pbrMetallicRoughness,{normalTexture:u,occlusionTexture:d,emissionTexture:h}=a;function p(e,r,n){if(e&&(t.push(r),s.activeTexture.set(s.gl.TEXTURE0+n),e.gfxTexture)){const{minFilter:t,magFilter:r,wrapS:n,wrapT:i}=e.sampler;e.gfxTexture.bindExtraParam(t,r,n,i)}}p(l,"HAS_TEXTURE_u_baseColorTexture",Jr.BaseColor),p(c,"HAS_TEXTURE_u_metallicRoughnessTexture",Jr.MetallicRoughness),p(u,"HAS_TEXTURE_u_normalTexture",Jr.Normal),p(d,"HAS_TEXTURE_u_occlusionTexture",Jr.Occlusion),p(h,"HAS_TEXTURE_u_emissionTexture",Jr.Emission),o&&(o.texture||(o.texture=new e.dk(i.context,o.image,[o.image.height,o.image.height,o.image.height],s.gl.RGBA8)),s.activeTexture.set(s.gl.TEXTURE0+Jr.LUT),o.texture&&o.texture.bind(s.gl.LINEAR,s.gl.CLAMP_TO_EDGE),t.push("APPLY_LUT_ON_GPU")),n.texcoordBuffer&&(t.push("HAS_ATTRIBUTE_a_uv_2f"),r.push(n.texcoordBuffer)),n.colorBuffer&&(t.push(12===n.colorBuffer.itemSize?"HAS_ATTRIBUTE_a_color_3f":"HAS_ATTRIBUTE_a_color_4f"),r.push(n.colorBuffer)),n.normalBuffer&&(t.push("HAS_ATTRIBUTE_a_normal_3f"),r.push(n.normalBuffer)),n.pbrBuffer&&(t.push("HAS_ATTRIBUTE_a_pbr"),t.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"),r.push(n.pbrBuffer)),"OPAQUE"!==a.alphaMode&&"MASK"!==a.alphaMode||t.push("UNPREMULT_TEXTURE_IN_SHADER"),a.defined||t.push("DIFFUSE_SHADED"),t.push("USE_STANDARD_DERIVATIVES");const f=i.shadowRenderer;f&&(t.push("RENDER_SHADOWS","DEPTH_TEXTURE"),f.useNormalOffset&&t.push("NORMAL_OFFSET"))}function wa(t,r,n,i,o,a){const s=n.paint.get("model-opacity").constantOr(1),l=r.context,c=new Br(r.context.gl.LEQUAL,Br.ReadWrite,r.depthRangeFor3D),u=r.transform,d=t.mesh,h=d.material,p=h.pbrMetallicRoughness,f=r.style.fog;let m;m="pixels"===r.transform.projection.zAxisUnit?[...t.nodeModelMatrix]:e.ab.mat4.multiply([],i.zScaleMatrix,t.nodeModelMatrix),e.ab.mat4.multiply(m,i.negCameraPosMatrix,m);const g=e.ab.mat4.invert([],m);e.ab.mat4.transpose(g,g);
2const _="none"===n.paint.get("model-color-use-theme").constantOr("default"),y=n.paint.get("model-emissive-strength").constantOr(0),v=Ao(new Float32Array(t.worldViewProjection),new Float32Array(m),new Float32Array(g),null,r,s,p.baseColorFactor.toRenderColor(null),h.emissiveFactor,p.metallicFactor,p.roughnessFactor,h,y,n),b={defines:[]},x=[],w=r.shadowRenderer;w&&(w.useNormalOffset=!1),xa(b.defines,x,d,r,_?null:n.lut);let A=null;if(f){const e=ba(t.nodeModelMatrix,r.transform);if(A=new Float32Array(e),"globe"!==u.projection.name){const t=d.aabb.min,r=d.aabb.max,[n,i]=f.getOpacityForBounds(e,t[0],t[1],r[0],r[1]);b.overrideFog=n>=Be||i>=Be}}const S=rn(r,n.paint.get("model-cutoff-fade-range"));S.shouldRenderCutoff&&b.defines.push("RENDER_CUTOFF");const E=r.getOrCreateProgram("model",b);r.uploadCommonUniforms(l,E,null,A,S),"shadow"!==r.renderPass&&w&&w.setupShadowsFromMatrix(t.nodeModelMatrix,E),E.draw(r,l.gl.TRIANGLES,c,o,a,d.material.doubleSided?Gr.disabled:Gr.backCCW,v,n.id,d.vertexBuffer,d.indexBuffer,d.segments,n.paint,r.transform.zoom,void 0,x)}function Aa(t,r,n,i,o,a,s){let l;l="globe"===t.projection.name?e.dl(n,t):[...n],e.ab.mat4.multiply(l,l,r.matrix);const c=e.ab.mat4.multiply([],i,l);if(r.meshes)for(const u of r.meshes){if("BLEND"!==u.material.alphaMode){s.push({mesh:u,depth:0,modelIndex:o,worldViewProjection:c,nodeModelMatrix:l});continue}const t=e.ab.vec3.transformMat4([],u.centroid,c);t[2]>0&&a.push({mesh:u,depth:t[2],modelIndex:o,worldViewProjection:c,nodeModelMatrix:l})}if(r.children)for(const e of r.children)Aa(t,e,n,i,o,a,s)}function Sa(e,t,r,n){const i=r.shadowRenderer;if(!i)return;const o=i.getShadowPassDepthMode(),a=i.getShadowPassColorMode(),s=i.calculateShadowPassMatrixFromMatrix(t),l=So(s);r.getOrCreateProgram("modelDepth",{defines:r._shadowMapDebug?[]:["DEPTH_TEXTURE"]}).draw(r,r.context.gl.TRIANGLES,o,Vr.disabled,a,Gr.backCCW,l,n.id,e.vertexBuffer,e.indexBuffer,e.segments,n.paint,r.transform.zoom,void 0,void 0)}function Ea(t,r,n){const i=r.updateZoomBasedPaintProperties(),o=function(t,r,n){let i,o,a,s=t.terrain?t.terrain.exaggeration():0;if(t.terrain&&s>0){const r=t.terrain,o=r.findDEMTileFor(n);o&&o.dem?i=e.dn.create(r,n,o):s=0}if(0===s&&(r.terrainElevationMin=0,r.terrainElevationMax=0),s===r.validForExaggeration&&(0===s||i&&i._demTile&&i._demTile.tileID===r.validForDEMTile.id&&i._dem._timestamp===r.validForDEMTile.timestamp))return!1;for(const e in r.instancesPerModel){const t=r.instancesPerModel[e];for(let e=0;e<t.instancedDataArray.length;++e){const n=(i?s*i.getElevationAt(0|t.instancedDataArray.float32[16*e],0|t.instancedDataArray.float32[16*e+1],!0,!0):0)+t.instancesEvaluatedElevation[e];t.instancedDataArray.float32[16*e+6]=n,o=o?Math.min(r.terrainElevationMin,n):n,a=a?Math.max(r.terrainElevationMax,n):n}}return r.terrainElevationMin=o||0,r.terrainElevationMax=a||0,r.validForExaggeration=s,r.validForDEMTile=i&&i._demTile?{id:i._demTile.tileID,timestamp:i._dem._timestamp}:{id:void 0,timestamp:0},!0}(t,r,n);(i||o)&&(r.uploaded=!1,r.upload(t.context))}const Ta={shadowUniformsInitialized:!1,useSingleShadowCascade:!1,tileMatrix:new Float64Array(16),shadowTileMatrix:new Float32Array(16),aabb:new e.cd([0,0,0],[e.ag,e.ag,0])};function Pa(t,r){const n=1<<t.canonical.z,i=r.getFreeCameraOptions().position,o=r.elevation,a=t.canonical.x/n,s=(t.canonical.x+1)/n,l=t.canonical.y/n,c=(t.canonical.y+1)/n;let u=r._centerAltitude;if(o){const e=o.getMinMaxForTile(t);e&&e.max>u&&(u=e.max)}const d=e.aw(i.x,a,s)-i.x,h=e.aw(i.y,l,c)-i.y,p=e.bH(u,r.center.lat)-i.z;return r._zoomFromMercatorZ(Math.sqrt(d*d+h*h+p*p))}function Ca(e,t,r,n,i,o,a){const s=e.context,l="shadow"===e.renderPass,c=e.shadowRenderer,u=l&&c?c.getShadowPassDepthMode():new Br(s.gl.LEQUAL,Br.ReadWrite,e.depthRangeFor3D),d=e.isTileAffectedByFog(o);if(r.meshes)for(const h of r.meshes){const p=["MODEL_POSITION_ON_GPU"],f=[];let m,g,_;n.instancedDataArray.length>20&&p.push("INSTANCED_ARRAYS");const y=rn(e,t.paint.get("model-cutoff-fade-range"));if(y.shouldRenderCutoff&&p.push("RENDER_CUTOFF"),l&&c)m=e.getOrCreateProgram("modelDepth",{defines:p}),g=So(a.shadowTileMatrix,a.shadowTileMatrix,Float32Array.from(r.matrix)),_=c.getShadowPassColorMode();
2else{xa(p,f,h,e,"none"===t.paint.get("model-color-use-theme").constantOr("default")?null:t.lut),m=e.getOrCreateProgram("model",{defines:p,overrideFog:d});const n=h.material,l=n.pbrMetallicRoughness,u=t.paint.get("model-opacity").constantOr(1),v=t.paint.get("model-emissive-strength").constantOr(0);g=Ao(o.expandedProjMatrix,Float32Array.from(r.matrix),new Float32Array(16),null,e,u,l.baseColorFactor.toRenderColor(null),n.emissiveFactor,l.metallicFactor,l.roughnessFactor,n,v,t,i),c&&(a.shadowUniformsInitialized?m.setShadowUniformValues(s,c.getShadowUniformValues()):(c.setupShadows(o.toUnwrapped(),m,"model-tile",o.overscaledZ),a.shadowUniformsInitialized=!0)),_=y.shouldRenderCutoff||u<1||"OPAQUE"!==n.alphaMode?jr.alphaBlended:jr.unblended}e.uploadCommonUniforms(s,m,o.toUnwrapped(),null,y);const v=h.material.doubleSided?Gr.disabled:Gr.backCCW;if(n.instancedDataArray.length>20)f.push(n.instancedDataBuffer),m.draw(e,s.gl.TRIANGLES,u,Vr.disabled,_,v,g,t.id,h.vertexBuffer,h.indexBuffer,h.segments,t.paint,e.transform.zoom,void 0,f,n.instancedDataArray.length);else{const r=l?"u_instance":"u_normal_matrix";for(let i=0;i<n.instancedDataArray.length;++i)g[r]=new Float32Array(n.instancedDataArray.arrayBuffer,64*i,16),m.draw(e,s.gl.TRIANGLES,u,Vr.disabled,_,v,g,t.id,h.vertexBuffer,h.indexBuffer,h.segments,t.paint,e.transform.zoom,void 0,f)}}if(r.children)for(const h of r.children)Ca(e,t,h,n,i,o,a)}const Ia=[1,-1,1];function Ma(t,r,n,i){if(!n.modelManager)return!0;const o=n.modelManager;if(!n.shadowRenderer)return!0;const a=n.shadowRenderer,s=r.aabb;let l=!0,c=t.maxHeight;if(0===c){let e=0;for(const r in t.instancesPerModel){const t=o.getModel(r,i);t?e=Math.max(e,Math.max(Math.max(t.aabb.max[0],t.aabb.max[1]),t.aabb.max[2])):l=!1}c=t.maxScale*e*1.41+t.maxVerticalOffset,l&&(t.maxHeight=c)}s.max[2]=c,s.min[2]+=t.terrainElevationMin,s.max[2]+=t.terrainElevationMax,e.ab.vec3.transformMat4(s.min,s.min,r.tileMatrix),e.ab.vec3.transformMat4(s.max,s.max,r.tileMatrix);const u=s.intersects(a.getCurrentCascadeFrustum());return 0===n.currentShadowCascade&&(t.isInsideFirstShadowMapFrustum=2===u),0===u}function ka(t,r){const n=t.uniformValues.u_cutoff_params[0],i=t.uniformValues.u_cutoff_params[1],o=t.uniformValues.u_cutoff_params[2],a=t.uniformValues.u_cutoff_params[3];return i===n||a===o?1:e.aw(((r-n)/(i-n)-o)/(a-o),0,1)}function Oa(t,r,n,i){if(r.pitch<20)return 1;const o=r.getWorldToCameraMatrix();e.ab.mat4.multiply(o,o,t);const a=e.ab.vec4.fromValues(n.min[0],n.min[1],n.min[2],1);let s=e.ab.vec4.transformMat4(e.ab.vec4.create(),a,o),l=s,c=s;a[1]=n.max[1],s=e.ab.vec4.transformMat4(e.ab.vec4.create(),a,o),l=s[1]<l[1]?s:l,c=s[1]>c[1]?s:c,a[0]=n.max[0],s=e.ab.vec4.transformMat4(e.ab.vec4.create(),a,o),l=s[1]<l[1]?s:l,c=s[1]>c[1]?s:c,a[1]=n.min[1],s=e.ab.vec4.transformMat4(e.ab.vec4.create(),a,o),l=s[1]<l[1]?s:l,c=s[1]>c[1]?s:c;const u=e.aw(i[0],0,1),d=100*r.pixelsPerMeter*e.aw(i[1],0,1),h=e.aw(i[2],0,1),p=e.ab.vec4.lerp(e.ab.vec4.create(),l,c,u),f=Math.tan(.5*r.fovX),m=-p[2]*f;if(0===d)return p[1]<-Math.abs(m)?h:1;const g=(-Math.abs(m)-p[1])/d,_=(e,t,r)=>(1-r)*e+r*t,y=e.aw(_(1,h,g),h,1);return _(1,y,e.aw((r.pitch-20)/20,0,1))}class Ra{}class La{constructor(){this._storage=new Map}getLinesFromTrianglesBuffer(t,r,n){{const e=this._storage.get(r.id);if(e)return e.lastUsedFrameIdx=t,e.buf}const i=n.gl,o=i.getBufferParameter(i.ELEMENT_ARRAY_BUFFER,i.BUFFER_SIZE),a=new ArrayBuffer(o),s=new Int16Array(a);i.getBufferSubData(i.ELEMENT_ARRAY_BUFFER,0,new Int16Array(a));const l=new e.dq;for(let e=0;e<o/2;e+=3){const t=s[e],r=s[e+1],n=s[e+2];l.emplaceBack(t,r),l.emplaceBack(r,n),l.emplaceBack(n,t)}const c=n.bindVertexArrayOES.current,u=new Ra;return u.buf=new To(n,l),u.lastUsedFrameIdx=t,this._storage.set(r.id,u),n.bindVertexArrayOES.set(c),u.buf}update(e){for(const[t,r]of this._storage)e-r.lastUsedFrameIdx>30&&(r.buf.destroy(),this._storage.delete(t))}destroy(){for(const[e,t]of this._storage)t.buf.destroy(),this._storage.delete(e)}}class Da{constructor(e){this.occluderSize=30,this.depthOffset=-1e-4,e.registerParameter(this,["Occlusion"],"occluderSize",{min:1,max:100,step:1}),e.registerParameter(this,["Occlusion"],"depthOffset",{min:-.05,max:0,step:1e-5})}}const Na=e.da([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_rainParticleData",components:4}]);class Fa{registerParameter(){}registerButton(){}registerBinding(){}refreshUI(){}}class za{constructor(e,t){this.revealStart=11,this.revealRange=2,e.registerParameter(this,[...t,"Reveal"],"revealStart",{min:0,max:17,step:.05}
2),e.registerParameter(this,[...t,"Reveal"],"revealRange",{min:.1,max:5.1,step:.05})}}const ja=e.da([{type:"Float32",name:"a_pos_2f",components:2}]);class Ba{destroy(){this.vignetteVx&&this.vignetteVx.destroy(),this.vignetteIdx&&this.vignetteIdx.destroy()}draw(t,r){const n=t.getOrCreateProgram("vignette");if(!this.vignetteVx||!this.vignetteIdx){const r=new e.dr,n=new e.aU;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1),n.emplaceBack(0,1,2),n.emplaceBack(0,2,3),this.vignetteVx=t.context.createVertexBuffer(r,ja.members),this.vignetteIdx=t.context.createIndexBuffer(n)}const i=e.b7.simpleSegment(0,0,4,6);if(this.vignetteVx&&this.vignetteIdx){t.uploadCommonUniforms(t.context,n);const e={u_vignetteShape:(o={vignetteShape:[r.start,r.range,Math.pow(10,r.fadePower)],vignetteColor:[r.color.r,r.color.g,r.color.b,r.color.a*r.strength]}).vignetteShape,u_vignetteColor:o.vignetteColor};n.draw(t,t.context.gl.TRIANGLES,Br.disabled,Vr.disabled,jr.alphaBlended,Gr.disabled,e,"vignette",this.vignetteVx,this.vignetteIdx,i,{})}var o}}class Ua{constructor(){this._accumulatedOffsetX=0,this._accumulatedOffsetY=0,this._accumulatedElevation=0}update(t,r){const n=t.getFreeCameraOptions().position,i=n.toAltitude(),o=n.toLngLat(),a=e.ai(o.lng),s=e.ai(o.lat),l=t.pixelsPerMeter/r,c=a*e.ds,u=e.ds*Math.log(Math.tan(Math.PI/4+s/2));if(void 0===this._offsetXPrev)this._offsetXPrev=0,this._offsetYPrev=0,this._elevationPrev=0,this._accumulatedOffsetX=0,this._accumulatedOffsetY=0,this._accumulatedElevation=0;else{const e=-this._offsetYPrev+u,t=-this._elevationPrev+i;this._accumulatedOffsetX+=(-this._offsetXPrev+c)*l,this._accumulatedOffsetY+=e*l,this._accumulatedElevation+=t*l,this._offsetXPrev=c,this._offsetYPrev=u,this._elevationPrev=i}}getPosition(){return[this._accumulatedOffsetX,this._accumulatedOffsetY,this._accumulatedElevation]}}function Va(e,t){return[-(e[0]-Math.floor(e[0]/t)*t),-(e[1]-Math.floor(e[1]/t)*t),-(e[2]-Math.floor(e[2]/t)*t)]}function qa(t){const r=e.di(1323123451230),n=[];for(let i=0;i<t;++i){const t=2*r()-1,i=2*r()-1,o=2*r()-1;n.push(e.ab.vec3.fromValues(t,i,o))}return n}function Ha(t,r,n,i,o){const a=e.aw((o-n)/(i-n),0,1);return(1-a)*t+a*r}class Ga{constructor(e){this._movement=new Ua,this._accumulatedTimeFromStart=0,this._prevTime=Date.now()/1e3,this._vignette=new Ba,this._ppmScaleFactor=e}destroy(){this.particlesVx&&this.particlesVx.destroy(),this.particlesIdx&&this.particlesIdx.destroy(),this._vignette&&this._vignette.destroy()}updateOnRender(t,r){const n=t.transform;this._movement.update(n,this._ppmScaleFactor);const i=n.starsProjMatrix,o=e.ab.quat.identity([]);e.ab.quat.rotateX(o,o,e.ai(90)-n._pitch),e.ab.quat.rotateZ(o,o,-n.angle);const a=e.ab.mat4.fromQuat(new Float32Array(16),o),s=e.ab.mat4.fromValues(1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1),l=e.ab.mat4.transpose([],s),c=e.ab.mat4.multiply([],l,a),u=Date.now()/1e3;return this._accumulatedTimeFromStart+=(u-this._prevTime)*r,this._prevTime=u,{projectionMatrix:i,modelviewMatrix:c}}}class Wa extends Ga{constructor(e){super(4.25),this._params={overrideStyleParameters:!1,intensity:.5,timeFactor:1,velocityConeAperture:0,velocity:300,boxSize:2500,dropletSizeX:1,dropletSizeYScale:10,distortionStrength:70,screenThinning:{intensity:.57,start:.46,range:1.17,fadePower:.17,affectedRatio:1,particleOffset:-.2},color:{r:.66,g:.68,b:.74,a:.7},direction:{x:-50,y:-35},shapeDirPower:2,shapeNormalPower:1},this._revealParams=new za(e.tp,["Precipitation","Rain"]),this._vignetteParams={strength:1,start:.7,range:1,fadePower:.4,color:{r:.27,g:.27,b:.27,a:1}},this.particlesCount=16e3}update(t){const r=t.context;if(!this.particlesVx){const t=qa(this.particlesCount),n=new e.dt,i=new e.aU;let o=0;const a=e.di(1323123451230);for(let e=0;e<t.length;++e){const r=t[e],s=[2*a()-1,a(),a(),a()];n.emplaceBack(r[0],r[1],r[2],-1,-1,...s),n.emplaceBack(r[0],r[1],r[2],1,-1,...s),n.emplaceBack(r[0],r[1],r[2],1,1,...s),n.emplaceBack(r[0],r[1],r[2],-1,1,...s),i.emplaceBack(o+0,o+1,o+2),i.emplaceBack(o+0,o+2,o+3),o+=4}this.particlesVx=r.createVertexBuffer(n,Na.members),this.particlesIdx=r.createIndexBuffer(i)}}draw(t){if(!this._params.overrideStyleParameters&&!t.style.rain)return;const r=this._params.overrideStyleParameters?this._revealParams:{revealStart:0,revealRange:.01},n=t.transform.zoom;if(r.revealStart>n)return;const i=Ha(0,1,r.revealStart,r.revealStart+r.revealRange,n);if(!this.particlesVx||!this.particlesIdx)return;const o=structuredClone(this._params);let a=[-o.direction.x,o.direction.y,-100];e.ab.vec3.normalize(a,a);
2const s=structuredClone(this._vignetteParams);s.strength*=i,o.overrideStyleParameters||(o.intensity=t.style.rain.state.density,o.timeFactor=t.style.rain.state.intensity,o.color=structuredClone(t.style.rain.state.color),a=structuredClone(t.style.rain.state.direction),o.screenThinning.intensity=t.style.rain.state.centerThinning,o.dropletSizeX=t.style.rain.state.dropletSize[0],o.dropletSizeYScale=t.style.rain.state.dropletSize[1]/t.style.rain.state.dropletSize[0],o.distortionStrength=100*t.style.rain.state.distortionStrength,s.strength=1,s.color=structuredClone(t.style.rain.state.vignetteColor));const l=this.updateOnRender(t,o.timeFactor),c=t.context,u=c.gl,d=t.transform;this.screenTexture&&this.screenTexture.size[0]===t.width&&this.screenTexture.size[1]===t.height||(this.screenTexture=new e.T(c,{width:t.width,height:t.height,data:null},u.RGBA8)),o.distortionStrength>0&&(c.activeTexture.set(u.TEXTURE0),this.screenTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),u.copyTexSubImage2D(u.TEXTURE_2D,0,0,0,0,0,t.width,t.height));const h=t.getOrCreateProgram("rainParticle");t.uploadCommonUniforms(c,h),c.activeTexture.set(u.TEXTURE0),this.screenTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE);const p=[o.color.r,o.color.g,o.color.b,o.color.a],f=(r,n)=>{const s=Va(this._movement.getPosition(),r),c=o.dropletSizeX,f=o.dropletSizeX*o.dropletSizeYScale,m=t.width/2,g=t.height/2,_=Ha(0,o.screenThinning.start,0,1,o.screenThinning.intensity),y=Ha(.001,o.screenThinning.range,0,1,o.screenThinning.intensity),v=Ha(0,o.screenThinning.particleOffset,0,1,o.screenThinning.intensity),b=(x={modelview:l.modelviewMatrix,projection:l.projectionMatrix,time:this._accumulatedTimeFromStart,camPos:s,velocityConeAperture:o.velocityConeAperture,velocity:o.velocity,boxSize:r,rainDropletSize:[c,f],distortionStrength:o.distortionStrength,rainDirection:a,color:p,screenSize:[d.width,d.height],thinningCenterPos:[m,g],thinningShape:[_,y,Math.pow(10,o.screenThinning.fadePower)],thinningAffectedRatio:o.screenThinning.affectedRatio,thinningParticleOffset:v,shapeDirectionalPower:o.shapeDirPower,shapeNormalPower:o.shapeNormalPower,mode:n?0:1},{u_modelview:Float32Array.from(x.modelview),u_projection:Float32Array.from(x.projection),u_time:x.time,u_cam_pos:x.camPos,u_texScreen:0,u_velocityConeAperture:x.velocityConeAperture,u_velocity:x.velocity,u_boxSize:x.boxSize,u_rainDropletSize:x.rainDropletSize,u_distortionStrength:x.distortionStrength,u_rainDirection:x.rainDirection,u_color:x.color,u_screenSize:x.screenSize,u_thinningCenterPos:x.thinningCenterPos,u_thinningShape:x.thinningShape,u_thinningAffectedRatio:x.thinningAffectedRatio,u_thinningParticleOffset:x.thinningParticleOffset,u_shapeDirectionalPower:x.shapeDirectionalPower,u_shapeNormalPower:x.shapeNormalPower,u_mode:x.mode});var x;const w=Math.round(i*o.intensity*this.particlesCount),A=e.b7.simpleSegment(0,0,4*w,2*w);h.draw(t,u.TRIANGLES,Br.disabled,Vr.disabled,jr.alphaBlended,Gr.disabled,b,"rain_particles",this.particlesVx,this.particlesIdx,A,{})};o.distortionStrength>0&&f(o.boxSize,!0),f(o.boxSize,!1),this._vignette.draw(t,s)}}const Ya=e.da([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_snowParticleData",components:4},{type:"Float32",name:"a_snowParticleDataHorizontalOscillation",components:2}]);class Za extends Ga{constructor(e){super(2.25),this._params={overrideStyleParameters:!1,intensity:.85,timeFactor:.75,velocityConeAperture:70,velocity:40,horizontalOscillationRadius:4,horizontalOscillationRate:1.5,boxSize:2e3,billboardSize:2,shapeFadeStart:.27,shapeFadePower:.21,screenThinning:{intensity:.4,start:.15,range:1.4,fadePower:.24,affectedRatio:1,particleOffset:-.2},color:{r:1,g:1,b:1,a:1},direction:{x:-50,y:-35}},this._revealParams=new za(e.tp,["Precipitation","Snow"]),this._vignetteParams={strength:.3,start:.78,range:.46,fadePower:.2,color:{r:1,g:1,b:1,a:1}},this.particlesCount=16e3}update(t){const r=t.context;if(!this.particlesVx){const t=qa(this.particlesCount),n=new e.du,i=new e.aU;let o=0;const a=e.di(1323123451230);for(let e=0;e<t.length;++e){const r=t[e],s=a(),l=a(),c=a(),u=[e/t.length,s,l,c],d=[a(),a()];n.emplaceBack(r[0],r[1],r[2],-1,-1,...u,...d),n.emplaceBack(r[0],r[1],r[2],1,-1,...u,...d),n.emplaceBack(r[0],r[1],r[2],1,1,...u,...d),n.emplaceBack(r[0],r[1],r[2],-1,1,...u,...d),i.emplaceBack(o+0,o+1,o+2),i.emplaceBack(o+0,o+2,o+3),o+=4}this.particlesVx=r.createVertexBuffer(n,Ya.members),this.particlesIdx=r.createIndexBuffer(i)}}draw(t){if(!this._params.overrideStyleParameters&&!t.style.snow)return;const r=structuredClone(this._params);let n=[-r.direction.x,r.direction.y,-100];e.ab.vec3.normalize(n,n);
2const i=structuredClone(this._vignetteParams),o=r.overrideStyleParameters?this._revealParams:{revealStart:0,revealRange:.01},a=t.transform.zoom;if(o.revealStart>a)return;const s=Ha(0,1,o.revealStart,o.revealStart+o.revealRange,a);i.strength*=s,r.overrideStyleParameters||(r.intensity=t.style.snow.state.density,r.timeFactor=t.style.snow.state.intensity,r.color=structuredClone(t.style.snow.state.color),n=structuredClone(t.style.snow.state.direction),r.screenThinning.intensity=t.style.snow.state.centerThinning,r.billboardSize=2.79*t.style.snow.state.flakeSize,i.strength=1,i.color=structuredClone(t.style.snow.state.vignetteColor));const l=this.updateOnRender(t,r.timeFactor);if(!this.particlesVx||!this.particlesIdx)return;const c=t.context,u=c.gl,d=t.transform,h=t.getOrCreateProgram("snowParticle");t.uploadCommonUniforms(c,h),((r,i,o)=>{const a=Va(this._movement.getPosition(),r),c=d.width/2,p=d.height/2,f=Ha(0,o.screenThinning.start,0,1,o.screenThinning.intensity),m=Ha(.001,o.screenThinning.range,0,1,o.screenThinning.intensity),g=Ha(0,o.screenThinning.particleOffset,0,1,o.screenThinning.intensity),_=(y={modelview:l.modelviewMatrix,projection:l.projectionMatrix,time:this._accumulatedTimeFromStart,camPos:a,velocityConeAperture:o.velocityConeAperture,velocity:o.velocity,horizontalOscillationRadius:o.horizontalOscillationRadius,horizontalOscillationRate:o.horizontalOscillationRate,boxSize:r,billboardSize:1*o.billboardSize,simpleShapeParameters:[o.shapeFadeStart,o.shapeFadePower],screenSize:[d.width,d.height],thinningCenterPos:[c,p],thinningShape:[f,m,Math.pow(10,o.screenThinning.fadePower)],thinningAffectedRatio:o.screenThinning.affectedRatio,thinningParticleOffset:g,color:[o.color.r,o.color.g,o.color.b,o.color.a],direction:n},{u_modelview:Float32Array.from(y.modelview),u_projection:Float32Array.from(y.projection),u_time:y.time,u_cam_pos:y.camPos,u_velocityConeAperture:y.velocityConeAperture,u_velocity:y.velocity,u_horizontalOscillationRadius:y.horizontalOscillationRadius,u_horizontalOscillationRate:y.horizontalOscillationRate,u_boxSize:y.boxSize,u_billboardSize:y.billboardSize,u_simpleShapeParameters:y.simpleShapeParameters,u_screenSize:y.screenSize,u_thinningCenterPos:y.thinningCenterPos,u_thinningShape:y.thinningShape,u_thinningAffectedRatio:y.thinningAffectedRatio,u_thinningParticleOffset:y.thinningParticleOffset,u_particleColor:y.color,u_direction:y.direction});var y;const v=Math.round(s*o.intensity*this.particlesCount),b=e.b7.simpleSegment(0,0,4*v,2*v);this.particlesVx&&this.particlesIdx&&h.draw(t,u.TRIANGLES,Br.disabled,Vr.disabled,jr.alphaBlended,Gr.disabled,_,"snow_particles",this.particlesVx,this.particlesIdx,b,{})})(r.boxSize,0,r),this._vignette.draw(t,i)}}const Ka={symbol:function(t,r,n,i,o){if("translucent"!==t.renderPass)return;const a=Vr.disabled,s=t.colorModeForRenderPass(),l=n.layout.get("text-variable-anchor"),c=n.layout.get("text-size-scale-range"),u=e.aw(t.scaleFactor,c[0],c[1]);l&&function(t,r,n,i,o,a,s,l){const c=r.transform,u="map"===o,d="map"===a;for(const h of t){const t=i.getTile(h),r=t.getBucket(n);if(!r||!r.text||!r.text.segments.get().length)continue;const o=e.bp(r.textSizeData,c.zoom,l),a=dr(h,r.getProjection(),c),p=c.calculatePixelsToTileUnitsMatrix(t),f=Wt(a,t.tileID.canonical,d,u,c,r.getProjection(),p),m=r.hasIconTextFit()&&r.hasIconData();if(o){const n=Math.pow(2,c.zoom-t.tileID.overscaledZ);No(r,u,d,s,e.cX,c,f,h,n,o,m)}}}(i,t,n,r,n.layout.get("text-rotation-alignment"),n.layout.get("text-pitch-alignment"),o,u);const d=0!==n.paint.get("icon-opacity").constantOr(1),h=0!==n.paint.get("text-opacity").constantOr(1);void 0!==n.layout.get("symbol-sort-key").constantOr(1)&&(d||h)?Fo(t,r,n,i,a,s):(d&&Fo(t,r,n,i,a,s,{onlyIcons:!0}),h&&Fo(t,r,n,i,a,s,{onlyText:!0})),r.map.showCollisionBoxes&&(Oo(t,r,n,i,n.paint.get("text-translate"),n.paint.get("text-translate-anchor"),!0),Oo(t,r,n,i,n.paint.get("icon-translate"),n.paint.get("icon-translate-anchor"),!1))},circle:function(t,r,n,i){if("translucent"!==t.renderPass)return;const o=n.paint.get("circle-opacity"),a=n.paint.get("circle-stroke-width"),s=n.paint.get("circle-stroke-opacity"),l=void 0!==n.layout.get("
2circle-sort-key").constantOr(1),c=n.paint.get("circle-emissive-strength");if(0===o.constantOr(1)&&(0===a.constantOr(1)||0===s.constantOr(1)))return;const u=t.context,d=u.gl,h=t.transform,p=t.depthModeForSublayer(0,Br.ReadOnly),f=Vr.disabled,m=t.colorModeForDrapableLayerRenderPass(c),g="globe"===h.projection.name,_=[e.at(h.center.lng),e.aA(h.center.lat)],y=[];for(let b=0;b<i.length;b++){const o=i[b],a=r.getTile(o),s=a.getBucket(n);if(!s||s.projection.name!==h.projection.name)continue;const c=s.programConfigurations.get(n.id),u=e.cY(n),d=t.isTileAffectedByFog(o);g&&u.push("PROJECTION_GLOBE_VIEW"),u.push("DEPTH_D24"),t.terrain&&h.depthOcclusionForSymbolsAndCircles&&u.push("DEPTH_OCCLUSION");const p=t.getOrCreateProgram("circle",{config:c,defines:u,overrideFog:d}),f=s.layoutVertexBuffer,m=s.globeExtVertexBuffer,v=s.indexBuffer,x=h.projection.createInversionMatrix(h,o.canonical),w={programConfiguration:c,program:p,layoutVertexBuffer:f,globeExtVertexBuffer:m,indexBuffer:v,uniformValues:e.cZ(t,o,a,x,_,n),tile:a};if(l){const t=s.segments.get();for(const r of t)y.push({segments:new e.b7([r]),sortKey:r.sortKey,state:w})}else y.push({segments:s.segments,sortKey:0,state:w})}l&&y.sort(((e,t)=>
2e.sortKey-t.sortKey));const v={useDepthForOcclusion:h.depthOcclusionForSymbolsAndCircles};for(const e of y){const{programConfiguration:r,program:i,layoutVertexBuffer:o,globeExtVertexBuffer:a,indexBuffer:s,uniformValues:l,tile:c}=e.state,g=e.segments;t.terrain&&t.terrain.setupElevationDraw(c,i,v),t.uploadCommonUniforms(u,i,c.tileID.toUnwrapped()),i.draw(t,d.TRIANGLES,p,f,m,Gr.disabled,l,n.id,o,s,g,n.paint,h.zoom,r,[a])}},heatmap:function(t,r,n,i){if(0!==n.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,a=o.gl,s=Vr.disabled,l=new jr([a.ONE,a.ONE,a.ONE,a.ONE],e.aj.transparent,[!0,!0,!0,!0]);!function(e,t,r,n){const i=e.gl,o=t.width*n,a=t.height*n;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,o,a]);let s=r.heatmapFbo;if(!s||s&&(s.width!==o||s.height!==a)){s&&s.destroy();const t=i.createTexture();i.bindTexture(i.TEXTURE_2D,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),s=r.heatmapFbo=e.createFramebuffer(o,a,!0,null),function(e,t,r,n,i,o){const a=e.gl;a.texImage2D(a.TEXTURE_2D,0,e.extRenderToTextureHalfFloat?a.RGBA16F:a.RGBA,i,o,0,a.RGBA,e.extRenderToTextureHalfFloat?a.HALF_FLOAT:a.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(e,0,t,s,o,a)}else i.bindTexture(i.TEXTURE_2D,s.colorAttachment.get()),e.bindFramebuffer.set(s.framebuffer)}(o,t,n,"globe"===t.transform.projection.name?.5:.25),o.clear({color:e.aj.transparent});const c=t.transform,u="globe"===c.projection.name,d=u?["PROJECTION_GLOBE_VIEW"]:[],h=u?Gr.frontCCW:Gr.disabled,p=[e.at(c.center.lng),e.aA(c.center.lat)];for(let e=0;e<i.length;e++){const f=i[e];if(r.hasRenderableParent(f))continue;const m=r.getTile(f),g=m.getBucket(n);if(!g||g.projection.name!==c.projection.name)continue;const _=t.isTileAffectedByFog(f),y=g.programConfigurations.get(n.id),v=t.getOrCreateProgram("heatmap",{config:y,defines:d,overrideFog:_}),{zoom:b}=t.transform;t.terrain&&t.terrain.setupElevationDraw(m,v),t.uploadCommonUniforms(o,v,f.toUnwrapped());const x=c.projection.createInversionMatrix(c,f.canonical);v.draw(t,a.TRIANGLES,Br.disabled,s,l,h,lo(t,f,m,x,p,b,n.paint.get("heatmap-intensity")),n.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,n.paint,t.transform.zoom,y,u?[g.globeExtVertexBuffer]:null)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,r){const n=t.context,i=n.gl,o=r.heatmapFbo;if(!o)return;n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,o.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);let a=r.colorRampTexture;a||(a=r.colorRampTexture=new e.T(n,r.colorRamp,i.RGBA8)),a.bind(i.LINEAR,i.CLAMP_TO_EDGE),t.getOrCreateProgram("heatmapTexture").draw(t,i.TRIANGLES,Br.disabled,Vr.disabled,t.colorModeForRenderPass(),Gr.disabled,((e,t)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,r),r.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,r.paint,t.transform.zoom)}(t,n))},line:function(t,r,n,i){if("translucent"!==t.renderPass)return;const o=n.paint.get("line-opacity"),a=n.paint.get("line-width");if(0===o.constantOr(1)||0===a.constantOr(1))return;const s=n.paint.get("line-emissive-strength"),l=n.paint.get("line-occlusion-opacity"),c=n.layout.get("line-elevation-reference"),u="meters"===n.layout.get("line-width-unit"),d="sea"===c,h=t.context,p=h.gl,f=!n.isDraped();if(f&&"globe"===t.transform.projection.name)return;const m=n.layout.get("line-cross-slope"),g=void 0!==m,_=m<1,y=f?new Br(t.depthOcclusion?p.GREATER:p.LEQUAL,Br.ReadOnly,t.depthRangeFor3D):t.depthModeForSublayer(0,Br.ReadOnly),v=t.colorModeForDrapableLayerRenderPass(s),b=t.terrain&&t.terrain.renderingToTexture,x=b?1:e.q.devicePixelRatio,w=n.paint.get("line-dasharray"),A=w.constantOr(1),S=n.layout.get("line-cap"),E=w.constantOr(null),T=S.constantOr(null),P=n.paint.get("line-pattern"),C=P.constantOr(1),I=P.constantOr(null),M=n.paint.get("line-opacity").constantOr(1);let k=!C&&1!==M||t.depthOcclusion&&l>0&&l<1;const O=n.paint.get("line-gradient"),R=C?"linePattern":"line",L=e.c_(n);let D;if(b&&t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(k=!1),0!==l&&t.depthOcclusion){const t=n.paint._values["line-opacity"];t&&t.value&&"constant"===t.value.kind?D=t.value:e.w("Occlusion opacity for layer ".concat(n.id," is supported only when line-opacity isn't data-driven."))}if(f&&(t.forceTerrainMode=!0),!f&&0!==l&&t.terrain&&!b)return void e.w("Occlusion opacity for layer ".concat(n.id," is supported on terrain only if the layer has line-z-offset enabled."));const N=k&&f?t.stencilModeFor3D():Vr.disabled;f&&(L.push("ELEVATED"),g&&L.push(_?"CROSS_SLOPE_HORIZONTAL":"CROSS_SLOPE_VERTICAL"),d&&L.push("ELEVATION_REFERENCE_SEA")),"constant"!==a.value.kind&&!1===a.value.isLineProgressConstant&&L.push("VARIABLE_LINE_WIDTH");for(const F of i){const i=r.getTile(F);if(C&&!i.patternsLoaded())continue;const o=i.getBucket(n);if(!o)continue;t.prepareDrawTile();const a=o.programConfigurations.get(n.id),s=t.isTileAffectedByFog(F),c=t.getOrCreateProgram(R,{config:a,defines:L,overrideFog:s,overrideRtt:!f&&void 0});if(I&&i.imageAtlas){const t=e.A.from(I),r=i.imageAtlas.patternPositions[t.getSerializedPrimary()];r&&a.setConstantPatternPositions(r)}if(!C&&E&&T&&i.lineAtlas){const e=i.lineAtlas.getDash(E,T);e&&a.setConstantPatternPositions(e)}let[m,g]=n.paint.get("line-trim-offset");if("round"===T||"square"===T){const e=1;m!==g&&(0===m&&(m-=e),1===g&&(g+=e))}const _=b?F.projMatrix:null,w=u?1/o.tileToMeter/e.ar(i,1,t.transform.zoom):1,S=u?1/o.tileToMeter/e.ar(i,1,Math.floor(t.transform.zoom)):1,P=C?e.c$(t,i,n,_,x,w,S,[m,g]):e.d0(t,i,n,_,o.lineClipsArray.length,x,w,S,[m,g]);if(O){const i=o.gradients[n.id];let a=i.texture;if(n.gradientVersion!==i.version){let s=256;if(n.stepInterpolant){const n=r.getSource().maxzoom,i=F.canonical.z===n?Math.ceil(1<<t.transform.maxZoom-F.canonical.z):1;s=e.aw(e.d1(o.maxLineLength/e.ag*1024*i),256,h.maxTextureSize)}i.gradient=e.d2({expression:n.gradientExpression(),evaluationKey:"lineProgress",resolution:s,image:i.gradient||void 0,clips:o.lineClipsArray}),i.texture?i.texture.update(i.gradient):i.texture=new e.T(h,i.gradient,p.RGBA8),i.version=n.gradientVersion,a=i.texture}h.activeTexture.set(p.TEXTURE1),a.bind(n.stepInterpolant?p.NEAREST:p.LINEAR,p.CLAMP_TO_EDGE)}A&&(h.activeTexture.set(p.TEXTURE0),i.lineAtlasTexture&&i.lineAtlasTexture.bind(p.LINEAR,p.REPEAT),a.updatePaintBuffers()),C&&(h.activeTexture.set(p.TEXTURE0),i.imageAtlasTexture&&i.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),a.updatePaintBuffers()),f&&!d&&t.terrain.setupElevationDraw(i,c),t.uploadCommonUniforms(h,c,F.toUnwrapped());const z=e=>{null!=D&&(D.value=M*l),c.draw(t,p.TRIANGLES,y,e,v,Gr.disabled,P,n.id,o.layoutVertexBuffer,o.indexBuffer,o.segments,n.paint,t.transform.zoom,a,[o.layoutVertexBuffer2,o.patternVertexBuffer,o.zOffsetVertexBuffer]),null!=D&&(D.value=M)};if(k&&!f){const e=t.stencilModeForClipping(F).ref;0===e&&b&&h.clear({stencil:0});const r={func:p.EQUAL,mask:255};P.u_alpha_discard_threshold=.8,z(new Vr(r,e,255,p.KEEP,p.KEEP,p.INVERT)),P.u_alpha_discard_threshold=0,z(ne
2w Vr(r,e,255,p.KEEP,p.KEEP,p.KEEP))}else k&&f&&(P.u_alpha_discard_threshold=.001),z(f?N:t.stencilModeForClipping(F))}f&&(t.forceTerrainMode=!1),k&&(t.resetStencilClippingMasks(),b&&h.clear({stencil:0})),0===l||t.depthOcclusion||b||t.layersWithOcclusionOpacity.push(t.currentLayer)},fill:function(t,r,n,i){const o=n.paint.get("fill-color"),a=n.paint.get("fill-opacity"),s=n.is3D(),l=new Br(t.context.gl.LEQUAL,Br.ReadWrite,t.depthRangeFor3D);if(0===a.constantOr(1))return;const c=n.paint.get("fill-emissive-strength"),u=t.colorModeForDrapableLayerRenderPass(c),d=n.paint.get("fill-pattern"),h=t.opaquePassEnabledForLayer()&&!d.constantOr(1)&&1===o.constantOr(e.aj.transparent).a&&1===a.constantOr(0)?"opaque":"translucent";if(t.renderPass===h){const e=s?l:t.depthModeForSublayer(1,"opaque"===t.renderPass?Br.ReadWrite:Br.ReadOnly);jo(t,r,n,i,e,u,!1)}if(!s&&"translucent"===t.renderPass&&n.paint.get("fill-antialias")){const e=s?l:t.depthModeForSublayer(n.getPaintProperty("fill-outline-color")?2:0,Br.ReadOnly);jo(t,r,n,i,e,u,!0)}},"fill-extrusion":function(t,r,n,i){const o=n.paint.get("fill-extrusion-opacity"),a=t.context,s=a.gl,l=t.terrain,c=l&&l.renderingToTexture;if(0===o)return;const u=t.conflationActive&&t.style.isLayerClipped(n,r.getSource()),d=t.style.order.indexOf(n.fqid);if(u&&function(e,t,r,n,i){for(const o of n){const n=t.getTile(o).getBucket(r);n&&(n.updateReplacement(o,e.replacementSource,i),n.uploadCentroid(e.context))}}(t,r,n,i,d),l||u)for(const e of i){const i=r.getTile(e).getBucket(n);i&&Vo(t.context,r,e,i,n,l,u)}if("shadow"===t.renderPass&&t.shadowRenderer){const a=t.shadowRenderer;if(l&&o<.65&&n._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof e.a9)return;const s=a.getShadowPassDepthMode(),c=a.getShadowPassColorMode();Bo(t,r,n,i,s,Vr.disabled,c,u)}else if("translucent"===t.renderPass){const d=!n.paint.get("fill-extrusion-pattern").constantOr(1),h=n.paint.get("fill-extrusion-color").constantOr(e.aj.white);if(!c&&0!==h.a){const e=new Br(t.context.gl.LEQUAL,Br.ReadWrite,t.depthRangeFor3D);1===o&&d?Bo(t,r,n,i,e,Vr.disabled,jr.unblended,u):(Bo(t,r,n,i,e,Vr.disabled,jr.disabled,u),Bo(t,r,n,i,e,t.stencilModeFor3D(),t.colorModeForRenderPass(),u),t.resetStencilClippingMasks())}if(t.style.enable3dLights()&&d&&(!l&&"globe"!==t.transform.projection.name||c)){const o=n.paint.get("fill-extrusion-opacity"),d=n.paint.get("fill-extrusion-ambient-occlusion-intensity"),h=n.paint.get("fill-extrusion-ambient-occlusion-ground-radius"),p=n.paint.get("fill-extrusion-flood-light-intensity"),f="none"===n.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default"),m=n.paint.get("fill-extrusion-flood-light-color").toRenderColor(f?null:n.lut).toArray01().slice(0,3),g=d>0&&h>0,_=p>0,y=(e,t,r)=>(1-r)*e+r*t,v=a=>{const l=t.depthModeForSublayer(1,Br.ReadOnly,s.LEQUAL,!0),c=n.paint.get(a?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),f=y(.1,3,c),g=t._showOverdrawInspector;if(!g){const c=new Vr({func:s.ALWAYS,mask:255},255,255,s.KEEP,s.KEEP,s.REPLACE),g=new jr([s.ONE,s.ONE,s.ONE,s.ONE],e.aj.transparent,[!1,!1,!1,!0],s.MIN);Uo(t,r,n,i,l,c,g,Gr.disabled,a,"sdf",o,d,h,p,m,f,u,!1)}{const c=g?Vr.disabled:new Vr({func:s.EQUAL,mask:255},255,255,s.KEEP,s.DECR,s.DECR),_=g?t.colorModeForRenderPass():new jr([s.ONE_MINUS_DST_ALPHA,s.DST_ALPHA,s.ONE,s.ONE],e.aj.transparent,[!0,!0,!0,!0]);Uo(t,r,n,i,l,c,_,Gr.disabled,a,"color",o,d,h,p,m,f,u,!1)}};if(c){const c=(a,l,c)=>{const f=t.depthModeForSublayer(1,Br.ReadOnly,s.LEQUAL,!1),g=n.paint.get(a?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),_=y(.1,3,g);{const c=new jr([s.ONE,s.ONE,s.ONE,s.ONE],e.aj.transparent,[!1,!1,!1,!0]);Uo(t,r,n,i,f,Vr.disabled,c,Gr.disabled,a,"clear",o,d,h,p,m,_,u,l)}{const c=new Vr({func:s.ALWAYS,mask:255},255,255,s.KEEP,s.KEEP,s.REPLACE),g=new jr([s.ONE,s.ONE,s.ONE,s.ONE],e.aj.transparent,[!1,!1,!1,!0],s.MIN);Uo(t,r,n,i,f,c,g,Gr.disabled,a,"sdf",o,d,h,p,m,_,u,l)}{const c=a?s.ZERO:s.ONE_MINUS_DST_ALPHA,g=new Vr({func:s.EQUAL,mask:255},255,255,s.KEEP,s.DECR,s.DECR),y=new jr([c,s.DST_ALPHA,s.ONE_MINUS_DST_ALPHA,s.ZERO],e.aj.transparent,[!0,!0,!0,!0]);Uo(t,r,n,i,f,g,y,Gr.disabled,a,"color",o,d,h,p,m,_,u,l)}{const g=new jr([s.ONE,s.ONE,s.ONE,a?s.ZERO:s.ONE],e.aj.transparent,[!1,!1,!1,!0],a?s.FUNC_ADD:s.MAX);Uo(t,r,n,i,f,Vr.disabled,g,Gr.disabled,a,"clear",o,d,h,p,m,_,u,l,c)}};if(g||_){let r;if(t.prepareDrawTile(),l){const t=l.drapeBufferSize[0],n=l.drapeBufferSize[1];r=l.framebufferCopyTexture,r&&(!r||r.size[0]===t&&r.size[1]===n)||(r&&r.destroy(),r=l.framebufferCopyTexture=new e.T(a,new e.r({width:t,height:n}),s.RGBA8)),r.bind(s.LINEAR,s.CLAMP_TO_EDGE),s.copyTexSubImage2D(s.TEXTURE_2D,0,0,0,0,0,t,n)}g&&c(!0,!1,r),_&&c(!1,!0,r)}}else g&&v(!0),_&&v(!1),(g||_)&&t.resetStencilClippingMasks()}}},hillshade:function(e,t,r,n){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;if(e.style.disableElevatedTerrain)return;const i=e.context,o=e.terrain&&e.terrain.renderingToTexture,[a,s]="translucent"!==e.renderPass||o?[{},n]:e.stencilConfigForOverlap(n);for(const l of s){const n=t.getTile(l);
2if(n.needsHillshadePrepare&&"offscreen"===e.renderPass)Zn(e,n,r);else if("translucent"===e.renderPass){const t=e.depthModeForSublayer(0,Br.ReadOnly),i=r.paint.get("hillshade-emissive-strength"),s=e.colorModeForDrapableLayerRenderPass(i),c=o&&e.terrain?e.terrain.stencilModeForRTTOverlap(l):a[l.overscaledZ];Wn(e,l,n,r,t,c,s)}}i.viewport.set([0,0,e.width,e.height]),e.resetStencilClippingMasks()},raster:function(t,r,n,i,o,a){if("translucent"!==t.renderPass)return;if(0===n.paint.get("raster-opacity"))return;const s="globe"===t.transform.projection.name,l=0!==n.paint.get("raster-elevation"),c=l&&s;if(t.renderElevatedRasterBackface&&!c)return;const u=t.context,d=u.gl,h=r.getSource(),p=function(t,r,n,i){const o=r.paint.get("raster-color"),a="raster-array"===t.type,s=[],l=r.paint.get("raster-resampling"),c=r.paint.get("raster-color-mix");let u=r.paint.get("raster-color-range");const d=[c[0],c[1],c[2],0],h=c[3];let p="nearest"===l?i.NEAREST:i.LINEAR;if(a&&(s.push("RASTER_ARRAY"),o||s.push("RASTER_COLOR"),"linear"===l&&s.push("RASTER_ARRAY_LINEAR"),p=i.NEAREST,!u&&t.rasterLayers)){const e=t.rasterLayers.find((e=>{let{id:t}=e;return t===r.sourceLayer}));e&&e.fields&&e.fields.range&&(u=e.fields.range)}if(u=u||[0,1],o){s.push("RASTER_COLOR"),n.activeTexture.set(i.TEXTURE2),r.updateColorRamp(u);let t=r.colorRampTexture;t||(t=r.colorRampTexture=new e.T(n,r.colorRamp,i.RGBA8)),t.bind(i.LINEAR,i.CLAMP_TO_EDGE)}return{mix:d,range:u,offset:h,defines:s,resampling:p}}(h,n,u,d);if(h instanceof e.aJ&&!i.length&&!s)return;const f=n.paint.get("raster-emissive-strength"),m=t.colorModeForDrapableLayerRenderPass(f),g=t.terrain&&t.terrain.renderingToTexture,_=!t.options.moving,y="nearest"===n.paint.get("raster-resampling")?d.NEAREST:d.LINEAR;if(h instanceof e.aJ&&!i.length&&(h.onNorthPole||h.onSouthPole)){const e=l?t.stencilModeFor3D():Vr.disabled;return void Zo(!!h.onNorthPole,null,t,r,n,f,p,Gr.disabled,e)}if(!i.length)return;const[v,b]=h instanceof e.aJ||g?[{},i]:t.stencilConfigForOverlap(i),x=b[b.length-1].overscaledZ;c&&p.defines.push("PROJECTION_GLOBE_VIEW"),l&&p.defines.push("RENDER_CUTOFF");const w=(i,o,b)=>{for(const w of i){const i=w.toUnwrapped(),A=r.getTile(w);if(g&&(!A||!A.hasData()))continue;u.activeTexture.set(d.TEXTURE0);const S=Xo(A,h,n,p);if(!S||!S.texture)continue;const{texture:E,mix:T,offset:P,tileSize:C,buffer:I}=S;let M,k;g?(M=Br.disabled,k=w.projMatrix):l?(M=new Br(d.LEQUAL,Br.ReadWrite,t.depthRangeFor3D),k=s?Float32Array.from(t.transform.expandedFarZProjMatrix):t.transform.calculateProjMatrix(i,_)):(M=t.depthModeForSublayer(w.overscaledZ-x,1===n.paint.get("raster-opacity")?Br.ReadWrite:Br.ReadOnly,d.LESS),k=t.transform.calculateProjMatrix(i,_));const O=t.terrain&&g?t.terrain.stencilModeForRTTOverlap(w):v[w.overscaledZ],R=a?0:n.paint.get("raster-fade-duration");A.registerFadeDuration(R);const L=r.findLoadedParent(w,0),D=Bi(A,L,r,t.transform,R);let N,F;t.terrain&&t.terrain.prepareDrawTile(),u.activeTexture.set(d.TEXTURE0),E.bind(y,d.CLAMP_TO_EDGE),u.activeTexture.set(d.TEXTURE1),L?(L.texture&&L.texture.bind(y,d.CLAMP_TO_EDGE),N=Math.pow(2,L.tileID.overscaledZ-A.tileID.overscaledZ),F=[A.tileID.canonical.x*N%1,A.tileID.canonical.y*N%1]):E.bind(y,d.CLAMP_TO_EDGE),E.useMipmap&&u.extTextureFilterAnisotropic&&t.transform.pitch>20&&d.texParameterf(d.TEXTURE_2D,u.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,u.extTextureFilterAnisotropicMax);const z=t.transform;let j;const B=l?Ko(z):[0,0,0,0];let U,V,q,H,G,W=0;if(c&&h instanceof e.aJ&&h.coordinates.length>3)U=Float32Array.from(e.bb(e.cH(new e.bT(0,0,0)))),V=Float32Array.from(z.globeMatrix),q=Float32Array.from(e.cD(z)),H=[e.at(z.center.lng),e.aA(z.center.lat)],j=h.elevatedGlobePerspectiveTransform,G=h.elevatedGlobeGridMatrix||new Float32Array(9);else if(c){const t=e.cE(w.canonical);W=e.cF(t.getCenter().lat),U=Float32Array.from(e.bb(e.cH(w.canonical))),V=Float32Array.from(z.globeMatrix),q=Float32Array.from(e.cD(z)),H=[e.at(z.center.lng),e.aA(z.center.lat)],j=[0,0],G=Float32Array.from(e.cG(w.canonical,t,W,z.worldSize/z._pixelsPerMercatorPixel))}else j=h instanceof e.aJ?h.perspectiveTransform:[0,0],U=new Float32Array(16),V=new Float32Array(9),q=new Float32Array(16),H=[0,0],G=new Float32Array(9);const Y=ho(k,U,V,q,G,F||[0,0],e.ae(t.transform.zoom),H,B,N||1,D,n,j,l?n.paint.get("raster-elevation"):0,2,T,P,p.range,C,I,f),Z=t.isTileAffectedByFog(w),K=t.getOrCreateProgram("raster",{defines:p.defines,overrideFog:Z});if(t.uploadCommonUniforms(u,K,i),h instanceof e.aJ){const r=h.elevatedGlobeVertexBuffer,i=h.elevatedGlobeIndexBuffer;if(g||!s)h.boundsBuffer&&h.boundsSegments&&K.draw(t,d.TRIANGLES,M,Vr.disabled,m,Gr.disabled,Y,n.id,h.boundsBuffer,t.quadTriangleIndexBuffer,h.boundsSegments);else if(r&&i){const a=z.zoom<=e.c6?h.elevatedGlobeSegments:h.getSegmentsForLongitude(z.center.lng);a&&K.draw(t,d.TRIANGLES,M,Vr.disabled,m,o,Y,n.id,r,i,a)}}else if(c){M=new Br(d.LEQUAL,Br.ReadOnly,t.depthRangeFor3D);const e=t.globeSharedBuffers;if(e){const[r,i,a]=e.getGridBuffers(W,!1);K.draw(t,d.TRIANGLES,M,b||O,t.colorModeForRenderPass(),o,Y,n.id,r,i,a)}}else{const{tileBoundsBuffer:e,tileBoundsIndexBuffer:r,tileBoundsSegments:i}=t.getTileBoundsBuffers(A);K.draw(t,d.TRIANGLES,M,O,m,Gr.disabled,Y,n.id,e,r,i)}}if(!(h instanceof e.aJ)&&c)for(const e of i){const i=e.canonical.y===(1<<e.canonical.z)-1;0===e.canonical.y&&Zo(!0,e,t,r,n,f,p,o,b||Vr.disabled),i&&Zo(!1,e,t,r,n,f,p,o===Gr.frontCW?Gr.backCW:Gr.frontCW,b||Vr.disabled)}};c?w(b,t.renderElevatedRasterBackface?Gr.backCW:Gr.frontCW,t.stencilModeFor3D()):w(b,Gr.disabled,void 0),t.resetStencilClippingMasks()},"raster-particle":function(t,r,n,i,o,a){"offscreen"===t.renderPass&&function(t,r,n,i){if(!i.length)return;const o=t.context,a=o.gl,s=r.getSource();if(!(s instanceof st))return;const l=Math.ceil(Math.sqrt(n.paint.get("raster-particle-count")));let c=n.particlePositionRGBAImage;if(!c||c.width!==l){const t=function(e){const t=e*e,r=new Uint8Array(4*t),n=function(e){return e|=0,e=Math.imul(2747636419^e,2654435769),e=Math.imul(e^e>>>16,2654435769),((e=Math.imul(e^e>>>16,2654435769))>>>0)/4294967296}
vendor: 13,064 bytes, line 2
2,i=1/1.1;for(let o=0;o<t;o++){const e=i*(n(2*o+0)+fo),t=i*(n(2*o+1)+fo),a=255*e%1,s=255*t%1,l=a,c=t-s/255,u=s;r[4*o+0]=255*(e-a/255),r[4*o+1]=255*l,r[4*o+2]=255*c,r[4*o+3]=255*u}return r}(l);c=n.particlePositionRGBAImage=new e.r({width:l,height:l},t)}let u=n.particleFramebuffer;u?u.width!==l&&(u.destroy(),u=n.particleFramebuffer=o.createFramebuffer(l,l,!0,null)):u=n.particleFramebuffer=o.createFramebuffer(l,l,!0,null);const d=[];for(const e of i){const t=r.getTile(e);if(!(t instanceof St))continue;const i=$o(t,s,n);if(!i)continue;const a=[t.tileSize,t.tileSize];let u=n.tileFramebuffer;u||(u=n.tileFramebuffer=o.createFramebuffer(a[0],a[1],!0,null));let h=t.rasterParticleState;h||(h=t.rasterParticleState=new Qo(o,e,a,c));const p=h.update(n.lastInvalidatedAt);h.particleTextureDimension!==l&&h.updateParticleTexture(e,c);const f=h.targetColorTexture;h.targetColorTexture=h.backgroundColorTexture,h.backgroundColorTexture=f;const m=h.particleTexture0;h.particleTexture0=h.particleTexture1,h.particleTexture1=m,d.push([e,i,h,p])}if(0===d.length)return;const h=e.q.now(),p=n.previousDrawTimestamp?.001*(h-n.previousDrawTimestamp):.0167;if(n.previousDrawTimestamp=h,n.hasColorMap()){o.activeTexture.set(a.TEXTURE0+2);let t=n.colorRampTexture;t||(t=n.colorRampTexture=new e.T(o,n.colorRamp,a.RGBA8)),t.bind(a.LINEAR,a.CLAMP_TO_EDGE)}o.bindFramebuffer.set(n.tileFramebuffer.framebuffer),function(t,r,n){const i=t.context,o=i.gl,a=r.tileFramebuffer;i.activeTexture.set(o.TEXTURE0);const s={u_texture:0,u_opacity:1.05*(c=r.paint.get("raster-particle-fade-opacity-factor"))/(c+.05)},l=t.getOrCreateProgram("rasterParticleTexture",{defines:[],overrideFog:!1});var c;for(const u of n){const[,,n,c]=u;a.colorAttachment.set(n.targetColorTexture.texture),i.viewport.set([0,0,a.width,a.height]),i.clear({color:e.aj.transparent}),c&&(n.backgroundColorTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),l.draw(t,o.TRIANGLES,Br.disabled,Vr.disabled,jr.alphaBlended,Gr.disabled,s,r.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments))}}(t,n,d),function(t,r,n,i){const o=t.context,a=o.gl,s=n.tileFramebuffer,l="globe"===t.transform.projection.name,c=n.paint.get("raster-particle-max-speed");for(const u of i){const[i,d,h]=u;o.activeTexture.set(a.TEXTURE0+0),d.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.colorAttachment.set(h.targetColorTexture.texture);const p=t.getOrCreateProgram("rasterParticleDraw",{defines:d.defines,overrideFog:!1});o.activeTexture.set(a.TEXTURE0+1);const f=d.scalarData?[]:[0,1,2,3].map((t=>e.d4[t](i)));f.push(i);const m=i.canonical.x,g=i.canonical.y;for(const e of f){const o=r.getTile(l?e.wrapped():e);if(!o)continue;const s=o.rasterParticleState;if(!s)continue;const u=e.canonical.x+(1<<e.canonical.z)*(e.wrap-i.wrap),h=e.canonical.y;s.particleTexture0.bind(a.NEAREST,a.CLAMP_TO_EDGE);const f=go(1,s.particleTexture0.size[0],[u-m,h-g],0,d.texture.size,2,c,d.textureOffset,d.scale,d.offset);p.draw(t,a.POINTS,Br.disabled,Vr.disabled,jr.alphaBlended,Gr.disabled,f,n.id,s.particleIndexBuffer,void 0,s.particleSegment)}}}(t,r,n,d),o.bindFramebuffer.set(n.particleFramebuffer.framebuffer),function(t,r,n,i){const o=t.context,a=o.gl,s=r.paint.get("raster-particle-max-speed"),l=i*r.paint.get("raster-particle-speed-factor")*.15,c=function(e){return Math.pow(e,6)}(.01+1*r.paint.get("raster-particle-reset-rate-factor")),u=r.particleFramebuffer;o.viewport.set([0,0,u.width,u.height]);for(const d of n){const[,n,i]=d;o.activeTexture.set(a.TEXTURE0+0),n.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE),o.activeTexture.set(a.TEXTURE0+1);const h=i.particleTexture0;h.bind(a.NEAREST,a.CLAMP_TO_EDGE);const p=_o(1,h.size[0],0,n.texture.size,s,l,c,n.textureOffset,n.scale,n.offset);u.colorAttachment.set(i.particleTexture1.texture),o.clear({color:e.aj.transparent}),t.getOrCreateProgram("rasterParticleUpdate",{defines:n.defines}).draw(t,a.TRIANGLES,Br.disabled,Vr.disabled,jr.unblended,Gr.disabled,p,r.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments)}}(t,n,d,p)}(t,r,n,i),"translucent"===t.renderPass&&(function(t,r,n,i){const o=t.context,a=o.gl,s=r.getSource().tileSize,l=5*(1-e.ac(e.bY,e.bY+1,t.transform.zoom))*s+n.paint.get("raster-particle-elevation"),c=!t.options.moving,u="globe"===t.transform.projection.name;if(!i.length)return;const[d,h]=t.stencilConfigForOverlap(i),p=[];u&&p.push("PROJECTION_GLOBE_VIEW");const f=t.stencilModeFor3D();for(const m of h){const i=m.toUnwrapped(),s=r.getTile(m);if(!s.rasterParticleState)continue;const h=s.rasterParticleState,g=100;s.registerFadeDuration(g);const _=r.findLoadedParent(m,0),y=Bi(s,_,r,t.transform,g);let v,b;t.terrain&&t.terrain.prepareDrawTile(),o.activeTexture.set(a.TEXTURE0),h.targetColorTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),o.activeTexture.set(a.TEXTURE1),_&&_.rasterParticleState?(_.rasterParticleState.targetColorTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),v=Math.pow(2,_.tileID.overscaledZ-s.tileID.overscaledZ),b=[s.tileID.canonical.x*v%1,s.tileID.canonical.y*v%1]):h.targetColorTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const x=u?Float32Array.from(t.transform.expandedFarZProjMatrix):t.transform.calculateProjMatrix(i,c),w=t.transform,A=ea(w),S=e.cE(m.canonical),E=e.cF(S.getCenter().lat);let T,P,C,I,M;u?(T=Float32Array.from(e.bb(e.cH(m.canonical))),P=Float32Array.from(w.globeMatrix),C=Float32Array.from(e.cD(w)),I=[e.at(w.center.lng),e.aA(w.center.lat)],M=Float32Array.from(e.cG(m.canonical,S,E,w.worldSize/w._pixelsPerMercatorPixel))):(T=new Float32Array(16),P=new Float32Array(9),C=new Float32Array(16),I=[0,0],M=new Float32Array(9));const k=mo(x,T,P,C,M,b||[0,0],e.ae(t.transform.zoom),I,A,v||1,y,l),O=t.isTileAffectedByFog(m),R=t.getOrCreateProgram("rasterParticle",{defines:p,overrideFog:O});if(t.uploadCommonUniforms(o,R,i),u){const e=new Br(a.LEQUAL,Br.ReadOnly,t.depthRangeFor3D),r=0,i=t.globeSharedBuffers;if(i){const[o,s,l]=i.getGridBuffers(E,0!==r);R.draw(t,a.TRIANGLES,e,f,jr.alphaBlended,t.renderElevatedRasterBackface?Gr.frontCCW:Gr.backCCW,k,n.id,o,s,l)}}else{const e=t.depthModeForSublayer(0,Br.ReadOnly),r=d[m.overscaledZ],{tileBoundsBuffer:i,tileBoundsIndexBuffer:o,tileBoundsSegments:l}=t.getTileBoundsBuffers(s);R.draw(t,a.TRIANGLES,e,r,jr.alphaBlended,Gr.disabled,k,n.id,i,o,l)}}t.resetStencilClippingMasks()}(t,r,n,i),t.style.map.triggerRepaint())},background:function(t,r,n,i){const o=n.paint.get("background-color"),a="none"===n.paint.get("background-color-use-theme").constantOr("default"),s=n.paint.get("background-opacity"),l=n.paint.get("background-emissive-strength"),c="viewport"===n.paint.get("background-pitch-alignment");if(0===s)return;const u=t.context,d=u.gl,h=t.transform,p=h.tileSize,f=n.paint.get("background-pattern");let m;if(void 0!==f){if(null===f)return;if(m=t.imageManager.getPattern(f.toString(),n.scope,t.style.getLut(n.scope)),!m)return}const g=!f&&1===o.a&&1===s&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==g)return;const _=Vr.disabled,y=t.depthModeForSublayer(0,"opaque"===g?Br.ReadWrite:Br.ReadOnly),v=t.colorModeForDrapableLayerRenderPass(l),b=f?"backgroundPattern":"background";let x,w=i;if(w||(x=t.getBackgroundTiles(),w=Object.values(x).map((e=>e.tileID))),f&&(u.activeTexture.set(d.TEXTURE0),t.imageManager.bind(t.context,n.scope)),c){const r=t.getOrCreateProgram(b,{overrideFog:!1,overrideRtt:!0}),i=new Float32Array(e.ab.mat4.identity([])),u=new e.aG(0,0,0,0,0),h=f?xo(i,l,s,t,0,n.scope,m,c,{tileID:u,tileSize:p}):bo(i,l,s,o.toRenderColor(a?null:n.lut));r.draw(t,d.TRIANGLES,y,_,v,Gr.disabled,h,n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments)}else for(const e of w){const g=t.isTileAffectedByFog(e),w=t.getOrCreateProgram(b,{overrideFog:g}),A=e.toUnwrapped(),S=i?e.projMatrix:t.transform.calculateProjMatrix(A);t.prepareDrawTile();const E=r?r.getTile(e):x?x[e.key]:new At(e,p,h.zoom,t),T=f?xo(S,l,s,t,0,n.scope,m,c,{tileID:e,tileSize:p}):bo(S,l,s,o.toRenderColor(a?null:n.lut));t.uploadCommonUniforms(u,w,A);const{tileBoundsBuffer:P,tileBoundsIndexBuffer:C,tileBoundsSegments:I}=t.getTileBoundsBuffers(E);w.draw(t,d.TRIANGLES,y,_,v,Gr.disabled,T,n.id,P,C,I)}},sky:function(t,r,n){const i=t._atmosphere?e.ae(t.transform.zoom):1,o=n.paint.get("sky-opacity")*i;if(0===o)return;const a=t.context,s=n.paint.get("sky-type"),l=new Br(a.gl.LEQUAL,Br.ReadOnly,[0,1]),c=t.frameCounter/1e3%1;"atmosphere"===s?"offscreen"===t.renderPass?n.needsSkyboxCapture(t)&&(function(t,r){const n=t.context,i=n.gl;let o=r.skyboxFbo;if(!o){o=r.skyboxFbo=n.createFramebuffer(32,32,!0,null),r.skyboxGeometry=new pa(n),r.skyboxTexture=n.gl.createTexture(),i.bindTexture(i.TEXTURE_CUBE_MAP,r.skyboxTexture),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_CUBE_MAP,i.TEXTURE_MAG_FILTER,i.LINEAR);for(let e=0;e<6;++e)i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,i.RGBA,32,32,0,i.RGBA,i.UNSIGNED_BYTE,null)}n.bindFramebuffer.set(o.framebuffer),n.viewport.set([0,0,32,32]);const a=r.getCenter(t,!0),s=t.getOrCreateProgram("skyboxCapture"),l=new Float64Array(16);e.ab.mat4.identity(l),e.ab.mat4.rotateY(l,l,.5*-Math.PI),fa(t,r,s,l,a,0),e.ab.mat4.identity(l),e.ab.mat4.rotateY(l,l,.5*Math.PI),fa(t,r,s,l,a,1),e.ab.mat4.identity(l),e.ab.mat4.rotateX(l,l,.5*-Math.PI),fa(t,r,s,l,a,2),e.ab.mat4.identity(l),e.ab.mat4.rotateX(l,l,.5*Math.PI),fa(t,r,s,l,a,3),e.ab.mat4.identity(l),fa(t,r,s,l,a,4),e.ab.mat4.identity(l),e.ab.mat4.rotateY(l,l,Math.PI),fa(t,r,s,l,a,5),n.viewport.set([0,0,t.width,t.height])}(t,n),n.markSkyboxValid(t)):"sky"===t.renderPass&&function(e,t,r,n,i){const o=e.context,a=o.gl,s=e.transform,l=e.getOrCreateProgram("skybox");o.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_CUBE_MAP,t.skyboxTexture);const c=((e,t,r,n,i)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:n,u_temporal_offset:i}))(s.skyboxMatrix,t.getCenter(e,!1),0,n,i);e.uploadCommonUniforms(o,l),l.draw(e,a.TRIANGLES,r,Vr.disabled,e.colorModeForRenderPass(),Gr.backCW,c,"skybox",t.skyboxGeometry.vertexBuffer,t.skyboxGeometry.indexBuffer,t.skyboxGeometry.segment)}(t,n,l,o,c):"gradient"===s&&"sky"===t.renderPass&&function(t,r,n,i,o){const a=t.context,s=a.gl,l=t.transform,c=t.getOrCreateProgram("skyboxGradient");r.skyboxGeometry||(r.skyboxGeometry=new pa(a)),a.activeTexture.set(s.TEXTURE0);let u=r.colorRampTexture;u||(u=r.colorRampTexture=new e.T(a,r.colorRamp,s.RGBA8)),u.bind(s.LINEAR,s.CLAMP_TO_EDGE);const d=((t,r,n,i,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:r,u_radius:e.ai(n),u_opacity:i,u_temporal_offset:o}))(l.skyboxMatrix,r.getCenter(t,!1),r.paint.get("sky-gradient-radius"),i,o);t.uploadCommonUniforms(a,c),c.draw(t,s.TRIANGLES,n,Vr.disabled,t.colorModeForRenderPass(),Gr.backCW,d,"skyboxGradient",r.skyboxGeometry.vertexBuffer,r.skyboxGeometry.indexBuffer,r.skyboxGeometry.segment)}(t,n,l,o,c)},debug:function(t,r,n,i,o,a){for(let s=0;s<n.length;s++)if(o){const o=1,l=.8,c=new e.aj(i.r*l,i.g*l,i.b*l,1);aa(t,r,n[s],i,-o,-o,a),aa(t,r,n[s],i,-o,o,a),aa(t,r,n[s],i,o,o,a),aa(t,r,n[s],i,o,-o,a),aa(t,r,n[s],c,0,0,a)}else aa(t,r,n[s],i,0,0,a)},custom:function(t,r,n,i){const o=t.context,a=n.implementation;if(!t.transform.projection.unsupportedLayers||!t.transform.projection.unsupportedLayers.includes("custom")||t.terrain&&(t.terrain.renderingToTexture||"offscreen"===t.renderPass)&&n.isDraped(r)){if("offscreen"===t.renderPass){const r=a.prerender;if(r){if(t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),"globe"===t.transform.projection.name){const n=t.transform.pointMerc;r.call(a,o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.ae(t.transform.zoom),[n.x,n.y],t.transform.pixelsPerMeterRatio)}else r.call(a,o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState()}}else if("translucent"===t.renderPass){if(t.terrain&&t.terrain.renderingToTexture){const r=a.renderToTile;if(r){const n=i[0].canonical,s=new e.aa(n.x+i[0].wrap*(1<<n.z),n.y,n.z);o.setDepthMode(Br.disabled),o.setStencilMode(Vr.disabled),o.setColorMode(t.colorModeForRenderPass()),t.setCustomLayerDefaults(),r.call(a,o.gl,s),o.setDirty(),t.setBaseState()}return}t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),o.setStencilMode(Vr.disabled);const r="3d"===a.renderingMode?new Br(t.context.gl.LEQUAL,Br.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Br.ReadOnly);if(o.setDepthMode(r),"globe"===t.transform.projection.name){const r=t.transform.pointMerc;a.render(o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.ae(t.transform.zoom),[r.x,r.y],t.transform.pixelsPerMeterRatio)}else a.render(o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState(),o.bindFramebuffer.set(null)}}else e.w("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")},model:function(t,r,n,o){if("opaque"===t.renderPass)return;const a=n.paint.get("model-opacity").constantOr(1);if(0===a)return;const s=n.paint.get("model-cast-shadows");
2if("shadow"===t.renderPass){if(!s)return;if(t.terrain&&a<.65&&n._transitionablePaint._values["model-opacity"].value.expression instanceof e.a9)return}const l=t.shadowRenderer,c=n.paint.get("model-receive-shadows");l&&(l.useNormalOffset=!0,c||(l.enabled=!1));const u=()=>{l&&(l.useNormalOffset=!0,c||(l.enabled=!0))},d=r.getSource();if("light-beam"===t.renderPass&&"batched-model"!==d.type)return;if("vector"===d.type||"geojson"===d.type)return function(t,r,n,o,a){const s=t.transform;if("mercator"!==s.projection.name)return void e.w("Drawing 3D models for ".concat(s.projection.name," projection is not yet implemented"));const l=s.getFreeCameraOptions().position;if(!t.modelManager)return;const c=t.modelManager;n.modelManager=c;const u=t.shadowRenderer;if(!n._unevaluatedLayout._values.hasOwnProperty("model-id"))return;const d=n._unevaluatedLayout._values["model-id"],h=i({},n.layout.get("model-id").parameters),p=t.style.order.indexOf(n.fqid);for(const i of o){const o=r.getTile(i).getBucket(n);if(!o||o.projection.name!==s.projection.name)continue;const f=o.getModelUris();f&&!o.modelsRequested&&(c.addModelsFromBucket(f,a),o.modelsRequested=!0);const m=Pa(i,s);h.zoom=m;const g=d.possiblyEvaluate(h);if(Ea(t,o,i),Ta.shadowUniformsInitialized=!1,Ta.useSingleShadowCascade=!!u&&0===u.getMaxCascadeForTile(i.toUnwrapped()),"shadow"===t.renderPass&&u){if(1===t.currentShadowCascade&&o.isInsideFirstShadowMapFrustum)continue;const r=s.calculatePosMatrix(i.toUnwrapped(),s.worldSize);if(Ta.tileMatrix.set(r),Ta.shadowTileMatrix=Float32Array.from(u.calculateShadowPassMatrixFromMatrix(r)),Ta.aabb.min.fill(0),Ta.aabb.max[0]=Ta.aabb.max[1]=e.ag,Ta.aabb.max[2]=0,Ma(o,Ta,t,n.scope))continue}const _=1<<i.canonical.z,y=[((l.x-i.wrap)*_-i.canonical.x)*e.ag,(l.y*_-i.canonical.y)*e.ag,l.z*_*e.ag];t.conflationActive&&Object.keys(o.instancesPerModel).length>0&&t.style.isLayerClipped(n,r.getSource())&&o.updateReplacement(i,t.replacementSource,p,a)&&(o.uploaded=!1,o.upload(t.context));for(let e in o.instancesPerModel){const r=o.instancesPerModel[e];r.features.length>0&&(e=g.evaluate(r.features[0].feature,{}));const s=c.getModel(e,a);if(s&&s.uploaded)for(const e of s.nodes)Ca(t,n,e,r,y,i,Ta)}}}(t,r,n,o,"vector"===d.type?n.scope:""),void u();if(!d.loaded())return;if("batched-model"===d.type)return function(t,r,n,i){n.resetLayerRenderingStats(t);const o=t.context,a=t.transform,s=t.style.fog,l=t.shadowRenderer;if("mercator"!==a.projection.name)return void e.w("Drawing 3D landmark models for ".concat(a.projection.name," projection is not yet implemented"));const c=t.transform.getFreeCameraOptions().position,u=e.ab.vec3.scale([],[c.x,c.y,c.z],t.transform.worldSize),d=e.ab.vec3.negate([],u),h=e.ab.mat4.identity([]),p=e.dj(a.center.lat,a.zoom),f=e.ab.mat4.fromScaling([],[1,1,1/p]);e.ab.mat4.translate(h,h,d);const m=n.paint.get("model-opacity").constantOr(1),g=new Br(o.gl.LEQUAL,Br.ReadWrite,t.depthRangeFor3D),_=new Br(o.gl.LEQUAL,Br.ReadOnly,t.depthRangeFor3D),y=new e.cd([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),v="shadow"===t.renderPass,b=v&&l?l.getCurrentCascadeFrustum():a.getFrustum(a.scaleZoom(a.worldSize)),x=n.paint.get("model-front-cutoff"),w=x[2]<1,A=rn(t,n.paint.get("model-cutoff-fade-range")),S=n.getLayerRenderingStats();(function(e,t,r,n){const i=e.terrain?e.terrain.exaggeration():0,o=e.transform.zoom;for(const a of n){const n=t.getTile(a).getBucket(r);n&&(e.conflationActive&&n.updateReplacement(a,e.replacementSource),n.evaluateScale(e,r),e.terrain&&i>0&&n.elevationUpdate(e.terrain,i,a,r.source),n.needsReEvaluation(e,o,r)&&n.evaluate(r))}})(t,r,n,i),function(){let c,d,E;w?(c=i.length-1,d=-1,E=-1):(c=0,d=i.length,E=1);const T=new Float64Array(16),P=e.ab.vec3.create(),C=new e.P(0,0);for(let I=c;I!==d;I+=E){const c=i[I],d=r.getTile(c).getBucket(n);if(!d||!d.uploaded)continue;let E=!1;l&&(E=0===l.getMaxCascadeForTile(c.toUnwrapped()));const M=a.calculatePosMatrix(c.toUnwrapped(),a.worldSize),k=d.modelTraits;!v&&w&&(e.ab.mat4.invert(T,M),e.ab.vec3.transformMat4(P,u,T),C.x=P[0],C.y=P[1]);const O=[];for(const r of d.getNodesInfo()){if(r.hiddenByReplacement)continue;if(!r.node.meshes)continue;const n=r.node;let i=0;t.terrain&&n.elevation&&(i=n.elevation*t.terrain.exaggeration());const o=(()=>{const t=r.aabb;return y.min=[...t.min],y.max=[...t.max],y.min[2]+=i,y.max[2]+=i,e.ab.vec3.transformMat4(y.min,y.min,M),e.ab.vec3.transformMat4(y.max,y.max,M),y})(),s=r.evaluatedScale;if(s[0]<=1&&s[1]<=1&&s[2]<=1&&0===o.intersects(b))continue;if(!v&&w){const t=1/6;r.cameraCollisionOpacity=u[0]>o.min[0]&&u[0]<o.max[0]&&u[1]>o.min[1]&&u[1]<o.max[1]&&u[2]*p<o.max[2]&&n.footprint&&e.bA(C,n.footprint)?Math.max(r.cameraCollisionOpacity-t,0):Math.min(1,r.cameraCollisionOpacity+t)}const l=[...M],c=n.anchor?n.anchor[0]:0,d=n.anchor?n.anchor[1]:0;e.ab.mat4.translate(l,l,[c*(s[0]-1),d*(s[1]-1),i]),e.ab.vec3.exactEquals(s,e.dm)||e.ab.mat4.scale(l,l,s);const h=e.ab.mat4.multiply([],l,n.matrix),f=e.ab.mat4.multiply([],a.expandedFarZProjMatrix,h),g=e.ab.mat4.multiply([],a.expandedFarZProjMatrix,l),_=e.ab.vec4.transformMat4([],[c,d,i,1],f)[2];n.hidden=!1;let S=m;v||(w&&(S*=r.cameraCollisionOpacity,S*=Oa(l,a,r.aabb,x)),S*=ka(A,_)),0!==S?O.push({nodeInfo:r,depth:_,opacity:S,wvpForNode:f,wvpForTile:g,nodeModelMatrix:h,tileModelMatrix:l}):n.hidden=!0}v||O.sort(((e,t)=>!w||1===e.opacity&&1===t.opacity?e.depth<t.depth?-1:1:1===e.opacity?-1:1===t.opacity?1:e.depth>t.depth?-1:1));for(const r of O){const i=r.nodeInfo,c=i.node;let u=e.ab.mat4.multiply([],f,r.tileModelMatrix);e.ab.mat4.multiply(u,h,u);const d=e.ab.mat4.invert([],u);e.ab.mat4.transpose(d,d),e.ab.mat4.scale(d,d,Ia),u=e.ab.mat4.multiply(u,u,c.matrix);const p="light-beam"===t.renderPass,m="none"===n.paint.get("model-color-use-theme").
2constantOr("default"),y=k&e.dp.HasMapboxMeshFeatures,b=y?0:i.evaluatedRMEA[0][2];for(let e=0;e<c.meshes.length;++e){const h=c.meshes[e],f=e===c.lightMeshIndex;let x=r.wvpForNode;if(f){if(!p&&!t.terrain&&t.shadowRenderer){t.currentLayer<t.firstLightBeamLayer&&(t.firstLightBeamLayer=t.currentLayer);continue}x=r.wvpForTile}else if(p)continue;const w={defines:[]},A=[];if(!v&&l&&(l.useNormalOffset=!!h.normalBuffer),xa(w.defines,A,h,t,m?null:n.lut),y||w.defines.push("DIFFUSE_SHADED"),E&&w.defines.push("SHADOWS_SINGLE_CASCADE"),S&&(v?S.numRenderedVerticesInShadowPass+=h.vertexArray.length:S.numRenderedVerticesInTransparentPass+=h.vertexArray.length),v){Sa(h,r.nodeModelMatrix,t,n);continue}let T=null;if(s){const e=ba(r.nodeModelMatrix,t.transform);if(T=new Float32Array(e),"globe"!==a.projection.name){const t=h.aabb.min,r=h.aabb.max,[n,i]=s.getOpacityForBounds(e,t[0],t[1],r[0],r[1]);w.overrideFog=n>=Be||i>=Be}}const P=h.material;let C;P.occlusionTexture&&P.occlusionTexture.offsetScale&&(C=P.occlusionTexture.offsetScale,w.defines.push("OCCLUSION_TEXTURE_TRANSFORM"));const I=t.getOrCreateProgram("model",w);!v&&l&&l.setupShadowsFromMatrix(r.tileModelMatrix,I,l.useNormalOffset),t.uploadCommonUniforms(o,I,null,T);const M=P.pbrMetallicRoughness;M.metallicFactor=.9,M.roughnessFactor=.5;const k=Ao(new Float32Array(x),new Float32Array(u),new Float32Array(d),new Float32Array(c.matrix),t,r.opacity,M.baseColorFactor.toRenderColor(null),P.emissiveFactor,M.metallicFactor,M.roughnessFactor,P,b,n,[0,0,0],C);!f&&(i.hasTranslucentParts||r.opacity<1)&&I.draw(t,o.gl.TRIANGLES,g,Vr.disabled,jr.disabled,Gr.backCCW,k,n.id,h.vertexBuffer,h.indexBuffer,h.segments,n.paint,t.transform.zoom,void 0,A),I.draw(t,o.gl.TRIANGLES,f?_:g,Vr.disabled,f||r.opacity<1||i.hasTranslucentParts?jr.alphaBlended:jr.unblended,Gr.backCCW,k,n.id,h.vertexBuffer,h.indexBuffer,h.segments,n.paint,t.transform.zoom,void 0,A)}}}}()}(t,r,n,o),void u();if("model"!==d.type)return;const h=d.getModels(),p=[],f=t.transform.getFreeCameraOptions().position,m=e.ab.vec3.scale([],[f.x,f.y,f.z],t.transform.worldSize);e.ab.vec3.negate(m,m);const g=[],_=[];let y=0;for(const i of h){const r=n.paint.get("model-rotation").constantOr(null),o=n.paint.get("model-scale").constantOr(null),a=n.paint.get("model-translation").constantOr(null);i.computeModelMatrix(t,r,o,a,!0,!0,!1);const s=e.ab.mat4.identity([]),l=e.dj(i.position.lat,t.transform.zoom),c=e.ab.mat4.fromScaling([],[1,1,1/l]);e.ab.mat4.translate(s,s,m),p.push({zScaleMatrix:c,negCameraPosMatrix:s});for(const e of i.nodes)Aa(t.transform,e,i.matrix,t.transform.expandedFarZProjMatrix,y,g,_);y++}if(g.sort(((e,t)=>t.depth-e.depth)),"shadow"!==t.renderPass){if(1===a)for(const e of _)wa(e,t,n,p[e.modelIndex],Vr.disabled,t.colorModeForRenderPass());else{for(const e of _)wa(e,t,n,p[e.modelIndex],Vr.disabled,jr.disabled);for(const e of _)wa(e,t,n,p[e.modelIndex],t.stencilModeFor3D(),t.colorModeForRenderPass());t.resetStencilClippingMasks()}for(const e of g)wa(e,t,n,p[e.modelIndex],Vr.disabled,t.colorModeForRenderPass());u()}else{for(const e of _)Sa(e.mesh,e.nodeModelMatrix,t,n);for(const e of g)Sa(e.mesh,e.nodeModelMatrix,t,n);u()}}},Xa={model:function(e,t,r){const n=t.getSource();if(!n.loaded())return;if("vector"===n.type||"geojson"===n.type)return void(r.modelManager&&r.modelManager.upload(r,"vector"===n.type?e.scope:""));if("batched-model"===n.type)return;if("model"!==n.type)return;const i=n.getModels();for(const o of i)o.upload(r.context)},raster:function(e,t,r){const n=t.getSource();if(!(n instanceof st&&n.loaded()))return;const i=e.sourceLayer||n.rasterLayerIds&&n.rasterLayerIds[0];if(!i)return;const o=e.paint.get("raster-array-band")||n.getInitialBand(i);if(null==o)return;const a=t.getIds().map((e=>t.getTileByID(e)));for(const s of a)s.updateNeeded(i,o)&&n.prepareTile(s,i,o)},"raster-particle":function(e,t,r){const n=t.getSource();if(!(n instanceof st&&n.loaded()))return;const i=e.sourceLayer||n.rasterLayerIds&&n.rasterLayerIds[0];if(!i)return;const o=e.paint.get("raster-particle-array-band")||n.getInitialBand(i);if(null==o)return;const a=t.getIds().map((e=>t.getTileByID(e)));for(const s of a)s.updateNeeded(i,o)&&n.prepareTile(s,i,o)}};class Ja{constructor(t,r,n,i,o){this.context=new Mo(t,r),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.tp=o,this._timeStamp=e.q.now(),this._averageFPS=0,this._fpsHistory=[],this._dt=0,this._debugParams={forceEnablePrecipitation:!1,showTerrainProxyTiles:!1,fpsWindow:30,continousRedraw:!1,enabledLayers:{}};const a=["fill","line","symbol","circle","heatmap","fill-extrusion","raster","raster-particle","hillshade","model","background","sky"];for(const e of a)this._debugParams.enabledLayers[e]=!0;o.registerParameter(this._debugParams,["Terrain"],"showTerrainProxyTiles",{},(()=>{this.style.map.triggerRepaint()})),o.registerParameter(this._debugParams,["Precipitation"],"forceEnablePrecipitation"),o.registerParameter(this._debugParams,["FPS"],"fpsWindow",{min:1,max:100,step:1}),o.registerBinding(this._debugParams,["FPS"],"continousRedraw",{readonly:!0,label:"continuous redraw"}),o.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"value"}),o.registerBinding(this,["FPS"],"_averageFPS",{readonly:!0,label:"graph",view:"graph",min:0,max:200});for(const e of a)o.registerParameter(this._debugParams.enabledLayers,["Debug","Layers"],e);this.occlusionParams=new Da(o),this.setup(),this.numSublayers=Pt.maxUnderzooming+Pt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this.conflationActive=!1,this.replacementSource=new e.dv,this.longestCutoffRange=0,this.minCutoffZoom=0,this._fogVisible=!1,this._cachedTileFogOpacities={},this._shadowRenderer=new sn(this),this._wireframeDebugCache=new La,this.renderDefaultNorthPole=!0,this.renderDefaultSouthPole=!0,this.layersWithOcclusionOpacity=[];const s=new e.r({width:1,height:1},Uint8Array.of(0,0,0,0));
vendor: 5,141 bytes, line 2
2this.emptyDepthTexture=new e.T(this.context,s,t.RGBA8),this._clippingActiveLastFrame=!1,this.scaleFactor=i}updateTerrain(e,t){const r=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(r||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new Hi(this,e));const n=this._terrain;this.transform.elevation=r?n:null,n.update(e,this.transform,t),this.transform.elevation&&!n.enabled&&(this.transform.elevation=null)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[r,n]=t.getFovAdjustedRange(this.transform._fov);if(r>n)return void(this.transform.fogCullDistSq=null);const i=r+.78*(n-r);this.transform.fogCullDistSq=i*i}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled||this._forceTerrainMode?this._terrain:null}get forceTerrainMode(){return this._forceTerrainMode}set forceTerrainMode(e){e&&!this._terrain&&(this._terrain=new Hi(this,this.style)),this._forceTerrainMode=e}get shadowRenderer(){return this._shadowRenderer&&this._shadowRenderer.enabled?this._shadowRenderer:null}get wireframeDebugCache(){return this._wireframeDebugCache}resize(t,r){if(this.width=t*e.q.devicePixelRatio,this.height=r*e.q.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._mergedLayers[e].resize()}setup(){const t=this.context,r=new e.b4;r.emplaceBack(0,0),r.emplaceBack(e.ag,0),r.emplaceBack(0,e.ag),r.emplaceBack(e.ag,e.ag),this.tileExtentBuffer=t.createVertexBuffer(r,e.b6.members),this.tileExtentSegments=e.b7.simpleSegment(0,0,4,2);const n=new e.b4;n.emplaceBack(0,0),n.emplaceBack(e.ag,0),n.emplaceBack(0,e.ag),n.emplaceBack(e.ag,e.ag),this.debugBuffer=t.createVertexBuffer(n,e.b6.members),this.debugSegments=e.b7.simpleSegment(0,0,4,5);const i=new e.b4;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(-1,1),i.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(i,e.b6.members),this.viewportSegments=e.b7.simpleSegment(0,0,4,2);const o=new e.aT;o.emplaceBack(0,0,0,0),o.emplaceBack(e.ag,0,e.ag,0),o.emplaceBack(0,e.ag,0,e.ag),o.emplaceBack(e.ag,e.ag,e.ag,e.ag),this.mercatorBoundsBuffer=t.createVertexBuffer(o,e.b9.members),this.mercatorBoundsSegments=e.b7.simpleSegment(0,0,4,2);const a=new e.aU;a.emplaceBack(0,1,2),a.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(a);const s=new e.b5;for(const e of[0,1,3,2,0])s.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.T(t,new e.r({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA8),this.identityMat=e.ab.mat4.create();const l=this.context.gl;this.stencilClearMode=new Vr({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const e=this.context.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.getOrCreateProgram("clippingMask").draw(this,e.TRIANGLES,Br.disabled,this.stencilClearMode,jr.disabled,Gr.disabled,ji(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(e,t,r){if(!t||this.currentStencilSource===t.id||!e.isTileClipped()||!r||0===r.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of r)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=t.id;const n=this.context,i=n.gl;this.nextStencilID+r.length>256&&this.clearStencil(),n.setColorMode(jr.disabled),n.setDepthMode(Br.disabled);const o=this.getOrCreateProgram("clippingMask");this._tileClippingMaskIDs={};for(const a of r){const e=t.getTile(a),r=this._tileClippingMaskIDs[a.key]=this.nextStencilID++,{tileBoundsBuffer:n,tileBoundsIndexBuffer:s,tileBoundsSegments:l}=this.getTileBoundsBuffers(e);o.draw(this,i.TRIANGLES,Br.disabled,new Vr({func:i.ALWAYS,mask:0},r,255,i.KEEP,i.KEEP,i.REPLACE),jr.disabled,Gr.disabled,ji(a.projMatrix),"$clipping",n,s,l)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,t=this.context.gl;return new Vr({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const t=this.context.gl;return new Vr({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){const t=this.context.gl,r=e.sort(((e,t)=>
2t.overscaledZ-e.overscaledZ)),n=r[r.length-1].overscaledZ,i=r[0].overscaledZ-n+1;if(i>1){this.currentStencilSource=void 0,this.nextStencilID+i>256&&this.clearStencil();const e={};for(let r=0;r<i;r++)e[r+n]=new Vr({func:t.GEQUAL,mask:255},r+this.nextStencilID,255,t.KEEP,t.KEEP,t.REPLACE);return this.nextStencilID+=i,[e,r]}return[{[n]:Vr.disabled},r]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const r=1/8;return new jr([t.CONSTANT_COLOR,t.ONE,t.CONSTANT_COLOR,t.ONE],new e.aj(r,r,r,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?jr.unblended:jr.alphaBlended}colorModeForDrapableLayerRenderPass(t){const r=this.context.gl;return(()=>this.style&&this.style.enable3dLights()&&this.terrain&&this.terrain.renderingToTexture)()&&"translucent"===this.renderPass?new jr([r.ONE,r.ONE_MINUS_SRC_ALPHA,r.CONSTANT_ALPHA,r.ONE_MINUS_SRC_ALPHA],new e.aj(0,0,0,void 0===t?0:t),[!0,!0,!0,!0]):this.colorModeForRenderPass()}depthModeForSublayer(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.depthOcclusion)return new Br(this.context.gl.GREATER,Br.ReadOnly,this.depthRangeFor3D);if(!this.opaquePassEnabledForLayer()&&!n)return Br.disabled;const i=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Br(r||this.context.gl.LEQUAL,t,[i,i])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}blitDepth(){const t=this.context.gl,r=Math.ceil(this.width),n=Math.ceil(this.height),i=this.context.bindFramebuffer.get(),o=t.getParameter(t.TEXTURE_BINDING_2D);this.depthFBO&&this.depthFBO.width===r&&this.depthFBO.height===n||(this.depthFBO&&(this.depthFBO.destroy(),this.depthFBO=void 0,this.depthTexture=void 0),0!==r&&0!==n&&(this.depthFBO=new Io(this.context,r,n,!1,"texture"),this.depthTexture=new e.T(this.context,{width:r,height:n,data:null},t.DEPTH24_STENCIL8),this.depthFBO.depthAttachment.set(this.depthTexture.texture))),this.context.bindFramebuffer.set(i),t.bindTexture(t.TEXTURE_2D,o),this.depthFBO&&(t.bindFramebuffer(t.READ_FRAMEBUFFER,null),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,this.depthFBO.framebuffer),t.blitFramebuffer(0,0,r,n,0,0,r,n,t.DEPTH_BUFFER_BIT,t.NEAREST),t.bindFramebuffer(t.FRAMEBUFFER,this.context.bindFramebuffer.current))}updateAverageFPS(){this._fpsHistory.push(0===this._dt?0:1e3/this._dt),this._fpsHistory.length>this._debugParams.fpsWindow&&this._fpsHistory.splice(0,this._fpsHistory.length-this._debugParams.fpsWindow),this._averageFPS=Math.round(this._fpsHistory.reduce(((e,t)=>e+t/this._fpsHistory.length),0))}render(t,r){const n=e.q.now();this._dt=n-this._timeStamp,this._timeStamp=n,this._wireframeDebugCache.update(this.frameCounter),this._debugParams.continousRedraw=t.map.repaint,this.style=t,this.options=r;const i=this.style._mergedLayers,o=this.style._getOrder(!(!this.terrain||!this.terrain.enabled)).filter((e=>{const t=i[e];return!(t.type in this._debugParams.enabledLayers)||this._debugParams.enabledLayers[t.type]}));let a=!1,s=!1;for(const e of o){const t=i[e];"circle"===t.type&&(a=!0),"symbol"===t.type&&(t.hasInitialOcclusionOpacityProperties?s=!0:a=!0)}const l=o.map((e=>i[e])),c=this.style._mergedSourceCaches;this.imageManager=t.imageManager,this.modelManager=t.modelManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.q.now()),this.imageManager.beginFrame();let u=0,d=!1;for(const e in c){const t=c[e];t.used&&(t.prepare(this.context),t.getSource().usedInConflation&&++u)}let h=!1;for(const e of l)e.isHidden(this.transform.zoom)||("clip"===e.type&&(h=!0),this.prepareLayer(e));const p={},f={},m={},g={},_={};for(const e in c){const t=c[e];p[e]=t.getVisibleCoordinates(),f[e]=p[e].slice().reverse(),m[e]=t.getVisibleCoordinates(!0).reverse(),g[e]=t.getShadowCasterCoordinates(),_[e]=t.sortCoordinatesByDistance(p[e])}const y=e=>{const t=this.style.getLayerSourceCache(e);return t&&t.used?t.getSource():null};if(u||h||this._clippingActiveLastFrame){const t=[],r=[];let n=0;for(const e of l)this.isSourceForClippingOrConflation(e,y(e))&&(t.push(e),r.push(n)),n++;if(t&&(h||t.length>1)||this._clippingActiveLastFrame){h=!1;const n=[];for(let i=0;i<t.length;i++){const o=t[i],a=r[i],s=this.style.getLayerSourceCache(o);if(!s||!s.used||!s.getSource().usedInConflation&&"clip"!==o.type)continue;let l=e.dx,c=e.by.None;const u=[];let d=!0;if("clip"===o.type){l=a;
2for(const t of o.layout.get("clip-layer-types"))c|="model"===t?e.by.Model:"symbol"===t?e.by.Symbol:e.by.FillExtrusion;for(const e of o.layout.get("clip-layer-scope"))u.push(e);o.isHidden(this.transform.zoom)?d=!1:h=!0}d&&n.push({layer:o.fqid,cache:s,order:l,clipMask:c,clipScope:u})}this.replacementSource.setSources(n),d=!0}}this._clippingActiveLastFrame=h,d||this.replacementSource.clear(),this.conflationActive=d,this.minCutoffZoom=0,this.longestCutoffRange=0,this.opaquePassCutoff=1/0,this._lastOcclusionLayer=-1,this.layersWithOcclusionOpacity=[];for(let e=0;e<l.length;e++){const t=l[e],r=t.cutoffRange();if(this.longestCutoffRange=Math.max(r,this.longestCutoffRange),r>0){const e=y(t);e&&(this.minCutoffZoom=Math.max(e.minzoom,this.minCutoffZoom)),t.minzoom&&(this.minCutoffZoom=Math.max(t.minzoom,this.minCutoffZoom))}t.is3D()&&(this.opaquePassCutoff===1/0&&(this.opaquePassCutoff=e),this._lastOcclusionLayer=e)}const v=this.style&&this.style.fog;v?(this._fogVisible=0!==v.getOpacity(this.transform.pitch),this._fogVisible&&"globe"!==this.transform.projection.name&&(this._fogVisible=v.isVisibleOnFrustum(this.transform.cameraFrustum))):this._fogVisible=!1,this._cachedTileFogOpacities={},this.terrain&&(this.terrain.updateTileBinding(m),this.opaquePassCutoff=0);const b=this._shadowRenderer;if(b){b.updateShadowParameters(this.transform,this.style.directionalLight);for(const e in c)for(const t of p[e]){let e={min:0,max:0};this.terrain&&(e=this.terrain.getMinMaxForTile(t)||e),b.addShadowReceiver(t.toUnwrapped(),e.min,e.max)}}"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.dw(this.context)),this.style.fog&&this.transform.projection.supportsFog?(this._atmosphere||(this._atmosphere=new va(this)),this._atmosphere.update(this)):this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0);const x=this._debugParams.forceEnablePrecipitation||!(!this.style||!this.style.snow),w=this._debugParams.forceEnablePrecipitation||!(!this.style||!this.style.rain);if(x&&!this._snow&&(this._snow=new Za(this)),!x&&this._snow&&(this._snow.destroy(),delete this._snow),w&&!this._rain&&(this._rain=new Wa(this)),!w&&this._rain&&(this._rain.destroy(),delete this._rain),this._snow&&this._snow.update(this),this._rain&&this._rain.update(this),!H.has(this.context.gl))return;this.renderPass="offscreen";for(const e of l){const r=t.getLayerSourceCache(e);if(!e.hasOffscreenPass()||e.isHidden(this.transform.zoom))continue;const n=r?f[r.id]:void 0;("custom"===e.type||"raster"===e.type||"raster-particle"===e.type||e.isSky()||n&&n.length)&&this.renderLayer(this,r,e,n)}this.depthRangeFor3D=[0,1-(l.length+2)*this.numSublayers*this.depthEpsilon],this._shadowRenderer&&(this.renderPass="shadow",this._shadowRenderer.drawShadowPass(this.style,g)),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);const A="globe"===this.transform.projection.name||this.transform.isHorizonVisible(),S=(()=>{if(r.showOverdrawInspector)return e.aj.black;const t=this.style.fog;if(t&&this.transform.projection.supportsFog){const r=this.style.getLut(t.scope);if(!A){const n="none"===t.properties.get("color-use-theme"),i=t.properties.get("color").toRenderColor(n?null:r).toArray01();return new e.aj(...i)}if(A){const n="none"===t.properties.get("space-color-use-theme"),i=t.properties.get("space-color").toRenderColor(n?null:r).toArray01();return new e.aj(...i)}}return e.aj.transparent})();if(this.context.clear({color:S,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.renderPass="opaque",this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&A&&this._atmosphere.drawStars(this,this.style.fog),!this.terrain)for(this.currentLayer=o.length-1;this.currentLayer>=0;this.currentLayer--){const e=l[this.currentLayer],r=t.getLayerSourceCache(e);if(e.isSky())continue;const n=r?(e.is3D()?_:f)[r.id]:void 0;this._renderTileClippingMasks(e,r,n),this.renderLayer(this,r,e,n)}if(this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&A&&this._atmosphere.drawAtmosphereGlow(this,this.style.fog),this.renderPass="sky",(!this._atmosphere||e.ae(this.transform.zoom)>0)&&("globe"===this.transform.projection.name||this.transform.isH
2orizonVisible()))for(this.currentLayer=0;this.currentLayer<o.length;this.currentLayer++){const e=l[this.currentLayer],r=t.getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,r,e,r?f[r.id]:void 0)}function E(e,t){let r;return t&&(r=("symbol"===e.type?m:e.is3D()?_:f)[t.id]),r}if(this.renderPass="translucent","globe"===this.transform.projection.name){for(this.renderElevatedRasterBackface=!0,this.currentLayer=0;this.currentLayer<o.length;){const e=l[this.currentLayer];if("raster"===e.type||"raster-particle"===e.type){const r=t.getLayerSourceCache(e);this.renderLayer(this,r,e,E(e,r))}++this.currentLayer}this.renderElevatedRasterBackface=!1}this.currentLayer=0,this.firstLightBeamLayer=Number.MAX_SAFE_INTEGER;let T=0;b&&(T=b.getShadowCastingLayerCount());let P=!1,C=-1;for(let e=0;e<o.length;++e){const t=l[e];t.isHidden(this.transform.zoom)||t.is3D()&&(C=e)}for(s&&-1===C&&(a=!0);this.currentLayer<o.length;){const e=l[this.currentLayer],r=t.getLayerSourceCache(e);if(e.isSky())++this.currentLayer;else if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer),this._lastOcclusionLayer=Math.max(this.currentLayer,this._lastOcclusionLayer)}else{if(a&&!P&&this.terrain&&!this.transform.isOrthographic&&(P=!0,this.blitDepth()),s&&-1!==C&&this.currentLayer===C+1&&!this.transform.isOrthographic&&this.blitDepth(),e.is3D()||this.terrain||this._renderTileClippingMasks(e,r,r?p[r.id]:void 0),this.renderLayer(this,r,e,E(e,r)),!this.terrain&&b&&T>0&&e.hasShadowPass()&&0==--T&&(b.drawGroundShadows(),this.firstLightBeamLayer<=this.currentLayer)){const e=this.currentLayer;for(this.renderPass="light-beam",this.currentLayer=this.firstLightBeamLayer;this.currentLayer<=e;this.currentLayer++){const e=l[this.currentLayer];if(!e.hasLightBeamPass())continue;const r=t.getLayerSourceCache(e);this.renderLayer(this,r,e,r?f[r.id]:void 0)}this.currentLayer=e,this.renderPass="translucent"}if(this.currentLayer>=this._lastOcclusionLayer&&this.layersWithOcclusionOpacity.length>0){const e=this.currentLayer;this.depthOcclusion=!0;for(const r of this.layersWithOcclusionOpacity){this.currentLayer=r;const e=l[this.currentLayer],n=t.getLayerSourceCache(e),i=n?f[n.id]:void 0;e.is3D()||this.terrain||this._renderTileClippingMasks(e,n,n?p[n.id]:void 0),this.renderLayer(this,n,e,i)}this.depthOcclusion=!1,this.currentLayer=e,this.renderPass="translucent",this.layersWithOcclusionOpacity=[]}++this.currentLayer}}if(this.terrain&&this.terrain.postRender(),this._snow&&this._snow.draw(this),this._rain&&this._rain.draw(this),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let r=null;l.forEach((e=>{const n=t.getLayerSourceCache(e);n&&!e.isHidden(this.transform.zoom)&&n.getVisibleCoordinates().length&&(!r||r.getSource().maxzoom<n.getSource().maxzoom)&&(r=n)})),r&&this.options.showTileBoundaries&&Ka.debug(this,r,r.getVisibleCoordinates(),e.aj.red,!1,this.options.showParseStatus)}this.terrain&&this._debugParams.showTerrainProxyTiles&&Ka.debug(this,this.terrain.proxySourceCache,this.terrain.proxyCoords,new e.aj(1,.8,.1,1),!0,this.options.showParseStatus),this.options.showPadding&&function(e){const t=e.transform.padding;sa(e,e.transform.height-(t.top||0),3,ta),sa(e,t.bottom||0,3,ra),la(e,t.left||0,3,na),la(e,e.transform.width-(t.right||0),3,ia);const r=e.transform.centerPoint;!function(e,t,r,n){ca(e,t-1,r-10,2,20,n),ca(e,t-10,r-1,20,2,n)}(e,r.x,e.transform.height-r.y,oa)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(performance.now()),this.saveC
vendor: 2,297 bytes, line 2
2anvasCopy()),d||(this.conflationActive=!1)}prepareLayer(e){this.gpuTimingStart(e);const{unsupportedLayers:t}=this.transform.projection,r=!t||!t.includes(e.type);if(Xa[e.type]&&(r||this.terrain&&"custom"===e.type)){const t=this.style.getLayerSourceCache(e);Xa[e.type](e,t,this)}this.gpuTimingEnd()}renderLayer(e,t,r,n){r.isHidden(this.transform.zoom)||("background"===r.type||"sky"===r.type||"custom"===r.type||"model"===r.type||"raster"===r.type||"raster-particle"===r.type||n&&n.length)&&(this.id=r.id,this.gpuTimingStart(r),e.transform.projection.unsupportedLayers&&e.transform.projection.unsupportedLayers.includes(r.type)&&(!e.terrain||"custom"!==r.type)||"clip"===r.type||Ka[r.type](e,t,r,n,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery,r=this.context.gl;let n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:r.createQuery()}),n.calls++,r.beginQuery(t.TIME_ELAPSED_EXT,n.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=this.context.gl,r=t.createQuery();this.deferredRenderGpuTimeQueries.push(r),t.beginQuery(e.TIME_ELAPSED_EXT,r)}}gpuTimingDeferredRenderEnd(){this.options.gpuTimingDeferredRender&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}gpuTimingEnd(){this.options.gpuTiming&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const r in e){const n=e[r],i=this.context.extTimerQuery,o=i.getQueryParameter(n.query,this.context.gl.QUERY_RESULT)/1e6;i.deleteQueryEXT(n.query),t[r]=o}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.gl;let r=0;for(const n of e)r+=t.getQueryParameter(n,t.QUERY_RESULT)/1e6,t.deleteQuery(n);return r}translatePosMatrix(t,r,n,i,o){if(!n[0]&&!n[1])return t;const a=o?"map"===i?this.transform.angle:0:"viewport"===i?-this.transform.angle:0;if(a){const e=Math.sin(a),t=Math.cos(a);n=[n[0]*t-n[1]*e,n[0]*e+n[1]*t]}
2const s=[o?n[0]:e.ar(r,n[0],this.transform.zoom),o?n[1]:e.ar(r,n[1],this.transform.zoom),0],l=new Float32Array(16);return e.ab.mat4.translate(l,t,s),l}saveTileTexture(e){const t=e.size[0],r=this._tileTextures[t];r?r.push(e):this._tileTextures[t]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture||this.forceTerrainMode}linearFloatFilteringSupported(){return null!=this.context.extTextureFloatLinear}currentGlobalDefines(e,t,r){const n=void 0===r?this.terrain&&this.terrain.renderingToTexture:r,i=[];return this.style&&this.style.enable3dLights()&&("globeRaster"===e||"terrainRaster"===e?(i.push("LIGHTING_3D_MODE"),i.push("LIGHTING_3D_ALPHA_EMISSIVENESS")):n||i.push("LIGHTING_3D_MODE")),"shadow"===this.renderPass&&(this._shadowMapDebug||i.push("DEPTH_TEXTURE")),this.terrainRenderModeElevated()&&(i.push("TERRAIN"),this.linearFloatFilteringSupported()&&i.push("TERRAIN_DEM_FLOAT_FORMAT")),"globe"===this.transform.projection.name&&i.push("GLOBE"),!this._fogVisible||n||void 0!==t&&!t||i.push("FOG","FOG_DITHERING"),n&&i.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&i.push("OVERDRAW_INSPECTOR"),i}getOrCreateProgram(e,t){this.cache=this.cache||{};const r=t&&t.defines||[],n=t&&t.config,i=this.currentGlobalDefines(e,t&&t.overrideFog,t&&t.overrideRtt).concat(r),o=Zi.cacheKey(Un[e],e,i,n);return this.cache[o]||(this.cache[o]=new Zi(this.context,e,Un[e],n,Eo[e],i)),this.cache[o]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA8))}destroy(){this._terrain&&this._terrain.destroy(),this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this._wireframeDebugCache.destroy(),this.depthFBO&&(this.depthFBO.destroy(),this.depthFBO=void 0,this.depthTexture=void 0),this.emptyDepthTexture&&this.emptyDepthTexture.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}uploadCommonLightUniforms(t,r){if(this.style.enable3dLights()){const n=this.style.directionalLight,i=this.style.ambientLight;if(n&&i){const o=((t,r,n)=>{const i=t.properties.get("direction"),o="none"===t.properties.get("color-use-theme"),a=t.properties.get("color").toRenderColor(o?null:n.getLut(t.scope)).toArray01(),s=t.properties.get("intensity"),l="none"===r.properties.get("color-use-theme"),c=r.properties.get("color").toRenderColor(l?null:n.getLut(r.scope)).toArray01(),u=r.properties.get("intensity"),d=[i.x,i.y,i.z],h=e.cM(c,u),p=e.cM(a,s);return{u_lighting_ambient_color:h,u_lighting_directional_dir:d,u_lighting_directional_color:p,u_ground_radiance:Gi(d,p,h)}})(n,i,this.style);r.setLightsUniformValues(t,o)}}}uploadCommonUniforms(t,r,n,i,o){if(this.uploadCommonLightUniforms(t,r),this.terrain&&this.terrain.renderingToTexture)return;const a=this.style.fog;if(a){const o=a.getOpacity(this.transform.pitch),s=((t,r,n,i,o,a,s,l,c,u,d,h)=>{const p=t.transform,f="none"===r.properties.get("color-use-theme"),m=r.properties.get("color").toRenderColor(f?null:t.style.getLut(r.scope)).toArray01();m[3]=i;const g=t.frameCounter/1e3%1,[_,y]=r.properties.get("vertical-range");return{u_fog_matrix:n?p.calculateFogTileMatrix(n):h||t.identityMat,u_fog_range:r.getFovAdjustedRange(p._fov),u_fog_color:m,u_fog_horizon_blend:r.properties.get("horizon-blend"),u_fog_vertical_limit:[Math.min(_,y),y],u_fog_temporal_offset:g,u_frustum_tl:o,u_frustum_tr:a,u_frustum_br:s,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:u,u_viewport:d,u_globe_transition:e.ae(p.zoom),u_is_globe:+("globe"===p.projection.name)}})(this,a,n,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.q.devicePixelRatio,this.transform.height*e.q.devicePixelRatio],i);r.setFogUniformValues(t,s)}o&&r.setCutoffUniformValues(t,o.uniformValues)}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){const e=this.canvasCopy();e&&(this.frameCopies.push(e),this.tileLoaded=!1)}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}
2getBackgroundTiles(){const e=this._backgroundTiles,t=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const n of r)t[n.key]=e[n.key]||new At(n,512,this.transform.tileZoom,this);return t}clearBackgroundTiles(){this._backgroundTiles={}}isSourceForClippingOrConflation(e,t){return!(!e.is3D()||"clip"!==e.type&&(e.minzoom&&e.minzoom>this.transform.zoom||(this.style._clipLayerPresent||"building"!==e.sourceLayer)&&(!t||"batched-model"!==t.type)))}isTileAffectedByFog(e){if(!this.style||!this.style.fog)return!1;if("globe"===this.transform.projection.name)return!0;let t=this._cachedTileFogOpacities[e.key];return t||(this._cachedTileFogOpacities[e.key]=t=this.style.fog.getOpacityForTile(e)),t[0]>=Be||t[1]>=Be}setupDepthForOcclusion(e,t,r){const n=this.context,i=n.gl,o=!!r;var a;r||(r={u_dem:2,u_dem_prev:4,u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0}),n.activeTexture.set(i.TEXTURE3),e&&this.depthFBO&&this.depthTexture?(this.depthTexture.bind(i.NEAREST,i.CLAMP_TO_EDGE),r.u_depth_size_inv=[1/this.depthFBO.width,1/this.depthFBO.height],r.u_depth_range_unpack=[2/((a=this.depthRangeFor3D)[1]-a[0]),-1-2*a[0]/(a[1]-a[0])],r.u_occluder_half_size=.5*this.occlusionParams.occluderSize,r.u_occlusion_depth_offset=this.occlusionParams.depthOffset):this.emptyDepthTexture.bind(i.NEAREST,i.CLAMP_TO_EDGE),n.activeTexture.set(i.TEXTURE0),o||t.setTerrainUniformValues(n,r)}}function Qa(e,t){let r=!1,n=null;const i=()=>{n=null,r&&(e(),n=setTimeout(i,t),r=!1)};return()=>(r=!0,n||i(),n)}class $a{constructor(t){this._hashName=t&&encodeURIComponent(t),e.aP(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Qa(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,window.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const t=es(e);if(this._hashName){const e=this._hashName;let r=!1;const n=location.hash.slice(1).split("&").map((n=>{const i=n.split("=")[0];return i===e?(r=!0,"".concat(i,"=").concat(t)):n})).filter((e=>e));return r||n.push("".concat(e,"=").concat(t)),"#".concat(n.join("&"))}return"#".concat(t)}_getCurrentHash(){const e=location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map((e=>e.split("="))).forEach((e=>{e[0]===this._hashName&&(t=e)})),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some((e=>isNaN(e)))){const r=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){history.replaceState(history.state,"",location.href.replace(/(#.+)?$/,this.getHashString()))}}function es(e,t){const r=e.getCenter(),n=Math.round(100*e.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,i),a=Math.round(r.lng*o)/o,s=Math.round(r.lat*o)/o,l=e.getBearing(),c=e.getPitch();let u=t?"/".concat(a,"/").concat(s,"/").concat(n):"".concat(n,"/").concat(s,"/").concat(a);return(l||c)&&(u+="/"+Math.round(10*l)/10),c&&(u+="/".concat(Math.round(c))),u}const ts={linearity:.3,easing:e.dy(0,0,.3,1)},rs=e.l({deceleration:2500,maxSpeed:1400},ts),ns=e.l({deceleration:20,maxSpeed:1400},ts),is=e.l({deceleration:1e3,maxSpeed:360},ts),os=e.l({deceleration:1e3,maxSpeed:90},ts);class as{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.q.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,r=e.q.now();for(;t.length>0&&r-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const r={zoom:0,bearing:0,pitch:0,pan:new e.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)r.zoom+=e.zoomDelta||0,r.bearing+=e.bearingDelta||0,r.pitch+=e.pitchDelta||0,e.panDelta&&r.pan._add(e.panDelta),e.around&&(r.around=e.around),e.pinchAround&&(r.pinchAround=e.pinchAround);const n=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,i={};if(r.pan.mag()){const o=ls(r.pan.mag(),n,e.l({},rs,t||{}));i.offset=r.pan.mult(o.amount/r.pan.mag()),i.center=this._map.transform.center,ss(i,o)}if(r.zoom){const e=ls(r.zoom,n,ns);i.zoom=this._map.transform.zoom+e.amount,ss(i,e)}if(r.bearing){const t=ls(r.bearing,n,is);
vendor: 9,242 bytes, line 2
2i.bearing=this._map.transform.bearing+e.aw(t.amount,-179,179),ss(i,t)}if(r.pitch){const e=ls(r.pitch,n,os);i.pitch=this._map.transform.pitch+e.amount,ss(i,e)}if(i.zoom||i.bearing){const e=void 0===r.pinchAround?r.around:r.pinchAround;i.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),i.noMoveStart=!0,i}}function ss(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function ls(t,r,n){const{maxSpeed:i,linearity:o,deceleration:a}=n,s=e.aw(t*o/(r/1e3),-i,i),l=Math.abs(s)/(a*o);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}class cs extends e.z{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,r,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=x(r.getCanvasContainer(),n),a=r.unproject(o);super(t,e.l({point:o,lngLat:a,originalEvent:n},i)),this._defaultPrevented=!1,this.target=r}}class us extends e.z{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,r,n){const i="touchend"===t?n.changedTouches:n.touches,o=w(r.getCanvasContainer(),i),a=o.map((e=>r.unproject(e))),s=o.reduce(((e,t,r,n)=>e.add(t.div(n.length))),new e.P(0,0));super(t,{points:o,point:s,lngLats:a,lngLat:r.unproject(s),originalEvent:n}),this._defaultPrevented=!1}}class ds extends e.z{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}}class hs{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new ds(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new cs(e.type,this._map,e))}mouseup(e){this._map.fire(new cs(e.type,this._map,e))}preclick(t){const r=e.l({},t);r.type="preclick",this._map.fire(new cs(r.type,this._map,r))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new cs(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new cs(e.type,this._map,e))}mouseover(e){this._map.fire(new cs(e.type,this._map,e))}mouseout(e){this._map.fire(new cs(e.type,this._map,e))}touchstart(e){return this._firePreventable(new us(e.type,this._map,e))}touchmove(e){this._map.fire(new us(e.type,this._map,e))}touchend(e){this._map.fire(new us(e.type,this._map,e))}touchcancel(e){this._map.fire(new us(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class ps{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new cs(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new cs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new cs(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class fs{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(_(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const r=t,n=this._startPos,i=this._lastPos;if(!n||!i||i.equals(r)||!this._box&&r.dist(n)<this._clickTolerance)return;this._lastPos=r,this._box||(this._box=h("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const o=Math.min(n.x,r.x),a=Math.max(n.x,r.x),s=Math.min(n.y,r.y),l=Math.max(n.y,r.y);this._map._requestDomTask((()=>{this._box&&(this._box.style.transform="translate(".concat(o,"px,").concat(s,"px)"),this._box.style.width=a-o+"px",this._box.style.height=l-s+"px")}))}mouseupWindow(t,r){if(!this._active)return;const n=this._startPos,i=r;if(n&&0===t.button){if(this.reset(),b(),n.x!==i.x||n.y!==i.y)return this._map.fire(new e.z("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(n,i,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),y(),delete this._startPos,delete this._lastPos}_fireEvent(t,r){return this._map.fire(new e.z(t,{originalEvent:r}))}}function ms(e,t){const r={};for(let n=0;n<e.length;n++)r[e[n].identifier]=t[n];return r}class gs{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,r,n){(this.centroid||n.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){const r=new e.P(0,0);for(const e of t)r._add(e);return r.div(t.length)}(r),this.touches=ms(n,r)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;const n=ms(r,t);for(const i in this.touches){const e=n[i];(!e||e.dist(this.touches[i])>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class _s{constructor(e){this.singleTap=new gs(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){const n=this.singleTap.touchend(e,t,r);if(n){const t=e.timeStamp-this.lastTime<500,r=!this.lastTap||this.lastTap.dist(n)<30;if(t&&r||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}}}class ys{constructor(){this._zoomIn=new _s({numTouches:1,numTaps:2}),this._zoomOut=new _s({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){const n=this._zoomIn.touchend(e,t,r),i=this._zoomOut.touchend(e,t,r);return n?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(n)},{originalEvent:e})}):i?(this._active=!0,e.preventDefault(),setTimeout((()=>this.reset()),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(i)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const vs={0:1,2:2};class bs{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const r=A(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}mousemoveWindow(e,t){const r=this._lastPoint;if(r)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const r=vs[t];return void 0===e.buttons||(e.buttons&r)!==r}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(r)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(r,t)}mouseupWindow(e){this._lastPoint&&A(e)===this._eventButton&&(this._moved&&b(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class xs extends bs{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class ws extends bs{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const r=.8*(t.x-e.x);if(r)return this._active=!0,{bearingDelta:r}}contextmenu(e){e.preventDefault()}}class As extends bs{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const r=-.5*(t.y-e.y);if(r)return this._active=!0,{pitchDelta:r}}contextmenu(e){e.preventDefault()}}class Ss{constructor(t,r){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=r.clickTolerance||1,this.reset(),e.aP(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.P(0,0)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(t,r,n){if(this._active&&!(n.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===n.length&&!e.dz())return void this._showTouchPanBlockerAlert();
vendor: 4,257 bytes, line 2
2"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return t.cancelable&&t.preventDefault(),this._calculateTransform(t,r,n)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&r.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,r,n){n.length>0&&(this._active=!0);const i=ms(n,r),o=new e.P(0,0),a=new e.P(0,0);let s=0;for(const e in i){const t=i[e],r=this._touches[e];r&&(o._add(t),a._add(t.sub(r)),s++,i[e]=t)}if(this._touches=i,s<this._minTouches||!a.mag())return;const l=a.div(s);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(s),panDelta:l}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=h("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize="".concat(Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth))),"px"))}_showTouchPanBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.removeAttribute("role")}),500)}}class Es{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,r){return{}}touchstart(e,t,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,r){const n=this._firstTwoTouches;if(!n)return;e.preventDefault();const[i,o]=n,a=Ts(r,t,i),s=Ts(r,t,o);if(!a||!s)return;const l=this._aroundCenter?null:a.add(s).div(2);return this._move([a,s],l,e)}touchend(e,t,r){if(!this._firstTwoTouches)return;const[n,i]=this._firstTwoTouches,o=Ts(r,t,n),a=Ts(r,t,i);o&&a||(this._active&&b(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Ts(e,t,r){for(let n=0;n<e.length;n++)if(e[n].identifier===r)return t[n]}function Ps(e,t){return Math.log(e/t)/Math.LN2}class Cs extends Es{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const r=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Ps(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Ps(this._distance,r),pinchAround:t}}}function Is(e,t){return 180*e.angleWith(t)/Math.PI}class Ms extends Es{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const r=this._vector;if(this._vector=e[0].sub(e[1]),r&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:Is(this._vector,r),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,r=this._startVector;if(!r)return!1;const n=Is(e,r);return Math.abs(n)<t}}function ks(e){return Math.abs(e.y)>Math.abs(e.x)}class Os extends Es{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,ks(e[0].sub(e[1]))&&(this._valid=!1)}_move(t,r,n){const i=this._lastPoints;if(!i)return;const o=t[0].sub(i[0]),a=t[1].sub(i[1]);return this._map._cooperativeGestures&&!e.dz()&&n.touches.length<3||(this._val
vendor: 5,087 bytes, line 2
2id=this.gestureBeginsVertically(o,a,n.timeStamp),!this._valid)?void 0:(this._lastPoints=t,this._active=!0,{pitchDelta:(o.y+a.y)/2*-.5})}gestureBeginsVertically(e,t,r){if(void 0!==this._valid)return this._valid;const n=e.mag()>=2,i=t.mag()>=2;if(!n&&!i)return;if(!n||!i)return null==this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return ks(e)&&ks(t)&&o}}const Rs={panStep:100,bearingStep:15,pitchStep:10};class Ls{constructor(){const e=Rs;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,n=0,i=0,o=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),i=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),i=1);break;case 38:e.shiftKey?n=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?n=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(r=0,n=0),{cameraAnimation:a=>{const s=a.getZoom();a.easeTo({duration:300,easeId:"keyboardHandler",easing:Ds,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:a.getBearing()+r*this._bearingStep,pitch:a.getPitch()+n*this._pitchStep,offset:[-i*this._panStep,-o*this._panStep],center:a.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Ds(e){return e*(2-e)}const Ns=4.000244140625,Fs=1/450;class zs{constructor(t,r){this._map=t,this._el=t.getCanvasContainer(),this._handler=r,this._delta=0,this._lastDelta=0,this._defaultZoomRate=.01,this._wheelZoomRate=Fs,e.aP(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||e.dz()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let r=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const n=e.q.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&&r%Ns==0?this._type="wheel":0!==r&&Math.abs(r)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=r,this._timeout=window.setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(i*r)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),t.shiftKey&&r&&(r/=4),this._type&&(this._lastWheelEvent=t,this._delta-=r,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=x(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform;"wheel"===this._type&&t.projection.wrap&&(t._center.lng>=180||t._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const r=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>Ns?this._wheelZoomRate:this._defaultZoomRate;let n=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==n&&(n=1/n);const i=r(),o=Math.pow(2,i),a="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(a*n))),"wheel"===this._type&&(this._startZoom=i,this._easing=this._smoothOutEasing(200)),this._lastDelta=this._delta,this._delta=0}const n="number"==typeof this._targetZoom?this._targetZoom:r(),i=this._startZoom,o=this._easing;let a,s=!1;if("wheel"===this._type&&i&&o){const t=Math.min((e.q.now()-this._lastWheelEventTime)/200,1),r=o(t);a=e.af(i,n,r),t<1?this._frameId||(this._frameId=!0):s=!0}else a=n,s=!0;this._active=!0,s&&(this._active=!1,this._finishTimeout=window.setTimeout((()=>
vendor: 9,149 bytes, line 2
2{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout}),200));let l=a-r();return l*this._lastDelta<0&&(l=0),{noInertia:!0,needsRenderFrame:!s,zoomDelta:l,around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let r=e.dA;if(this._prevEase){const t=this._prevEase,n=(e.q.now()-t.start)/t.duration,i=t.easing(n+.01)-t.easing(n),o=.27/Math.sqrt(i*i+1e-4)*.01,a=Math.sqrt(.0729-o*o);r=e.dy(o,a,.25,1)}return this._prevEase={start:e.q.now(),duration:t,easing:r},r}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=h("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize="".concat(Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth))),"px"))}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout((()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.removeAttribute("role")}),200)}}class js{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Bs{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:r.getZoom()+(e.shiftKey?-1:1),around:r.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Us{constructor(){this._tap=new _s({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,r){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?r.length>0&&(this._swipePoint=t[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(e,t,r))}touchmove(e,t,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;const n=t[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,e.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(e,t,r)}touchend(e,t,r){this._tapTime?this._swipePoint&&0===r.length&&this.reset():this._tap.touchend(e,t,r)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Vs{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class qs{constructor(e,t,r){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=r}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Hs{constructor(e,t,r,n){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Gs=e=>e.zoom||e.drag||e.pitch||e.rotate;class Ws extends e.z{}class Ys{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,r){const n=e.ab.vec3.sub([],r,t);this.radius=e.ab.vec3.length(n[2]<0?e.ab.vec3.div([],n,this.constants):[n[0],n[1],0])}projectRay(t){e.ab.vec3.div(t,t,this.constants),e.ab.vec3.normalize(t,t),e.ab.vec3.mul(t,t,this.constants);const r=e.ab.vec3.scale([],t,this.radius);if(r[2]>0){const t=e.ab.vec3.scale([],[0,0,1],e.ab.vec3.dot(r,[0,0,1])),n=e.ab.vec3.scale([],e.ab.vec3.normalize([],[r[0],r[1],0]),this.radius),i=e.ab.vec3.add([],r,e.ab.vec3.scale([],e.ab.vec3.sub([],e.ab.vec3.add([],n,t),r),2));r[0]=i[0],r[1]=i[1]}return r}}function Zs(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Ks{constructor(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new as(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Ys,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(r),e.aP(["handleEvent","handleWindowEvent"],this);const n=this._el;this._listeners=[[n,"touchstart",{passive:!0}],[n,"touchmove",{passive:!1}],[n,"touchend",void 0],[n,"touchcancel",void 0],[n,"mousedown",void 0],[n,"mousemove",void 0],[n,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[n,"mouseover",void 0],[n,"mouseout",void 0],[n,"dblclick",void 0],[n,"click",void 0],[n,"keydown",{capture:!1}],[n,"keyup",void 0],[n,"wheel",{passive:!1}],[n,"contextmenu",void 0],[window,"blur",void 0]];for(const[e,i,o]of this._listeners){const t=e===document?this.handleWindowEvent:this.handleEvent;e.addEventListener(i,t,o)}}destroy(){for(const[e,t,r]of this._listeners){const n=e===document?this.handleWindowEvent:this.handleEvent;e.removeEventListener(t,n,r)}}_addDefaultHandlers(e){const t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new hs(t,e));const n=t.boxZoom=new fs(t,e);this._add("boxZoom",n);const i=new ys,o=new Bs;t.doubleClickZoom=new js(o,i),this._add("tapZoom",i),this._add("clickZoom",o);const a=new Us;this._add("tapDragZoom",a);const s=t.touchPitch=new Os(t);this._add("touchPitch",s);const l=new ws(e),c=new As(e);t.dragRotate=new qs(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const u=new xs(e),d=new Ss(t,e);t.dragPan=new Vs(r,u,d),this._add("mousePan",u),this._add("touchPan",d,["touchZoom","touchRotate"]);const h=new Ms,p=new Cs;t.touchZoomRotate=new Hs(r,p,h,a),this._add("touchRotate",h,["touchPan","touchZoom"]),this._add("touchZoom",p,["touchPan","touchRotate"]),this._add("blockableMapEvent",new ps(t));const f=t.scrollZoom=new zs(t,this);this._add("scrollZoom",f,["mousePan"]);const m=t.keyboard=new Ls;this._add("keyboard",m);for(const g of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[g]&&t[g].enable(e[g])}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[],this._originalZoom=void 0}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Gs(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(e,t,r){for(const n in e)if(n!==r&&(!t||t.indexOf(n)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,"".concat(e.type,"Window"))}_getMapTouches(e){const t=[];for(const r of e)this._el.contains(r.target)&&t.push(r);return t}handleEvent(e,t){this._updatingCamera=!0;const r="renderFrame"===e.type,n=r?void 0:e,i={needsRenderFrame:!1},o={},a={},s=e.touches?this._getMapTouches(e.touches):void 0,l=s?w(this._el,s):r?void 0:x(this._el,e);for(const{handlerName:d,handler:h,allowed:p}of this._handlers){if(!h.isEnabled())continue;let r;this._blockedByActive(a,p,d)?h.reset():h[t||e.type]&&(r=h[t||e.type](e,l,s),this.mergeHandlerResult(i,o,r,d,n),r&&r.needsRenderFrame&&this._triggerRe
vendor: 3,284 bytes, line 2
2nderFrame()),(r||h.isActive())&&(a[d]=h)}const c={};for(const d in this._previousActiveHandlers)a[d]||(c[d]=n);this._previousActiveHandlers=a,(Object.keys(c).length||Zs(i))&&(this._changes.push([i,o,c]),this._triggerRenderFrame()),(Object.keys(a).length||Zs(i))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=i;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(t,r,n,i,o){if(!n)return;e.l(t,n);const a={handlerName:i,originalEvent:n.originalEvent||o};void 0!==n.zoomDelta&&(r.zoom=a),void 0!==n.panDelta&&(r.drag=a),void 0!==n.pitchDelta&&(r.pitch=a),void 0!==n.bearingDelta&&(r.rotate=a)}_applyChanges(){const t={},r={},n={};for(const[i,o,a]of this._changes)i.panDelta&&(t.panDelta=(t.panDelta||new e.P(0,0))._add(i.panDelta)),i.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+i.pitchDelta),void 0!==i.around&&(t.around=i.around),void 0!==i.aroundCoord&&(t.aroundCoord=i.aroundCoord),void 0!==i.pinchAround&&(t.pinchAround=i.pinchAround),i.noInertia&&(t.noInertia=i.noInertia),e.l(r,o),e.l(n,a);this._updateMapTransform(t,r,n),this._changes=[]}_updateMapTransform(t,r,n){const i=this._map,o=i.transform,a=e=>[e.x,e.y,e.z];if((()=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Zs(t)){const e=o.zoom;o.cameraElevationReference="sea",null!=this._originalZoom&&o._orthographicProjectionAtLowPitch&&"globe"!==o.projection.name&&0===o.pitch?(o.cameraElevationReference="ground",o.zoom=this._originalZoom):(o.recenterOnTerrain(),o.cameraElevationReference="ground"),e!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&i._stop(!0),!Zs(t))return void this._fireEvents(r,n,!0);let{panDelta:s,zoomDelta:l,bearingDelta:c,pitchDelta:u,around:d,aroundCoord:h,pinchAround:p}=t;o._isCameraConstrained&&(l>0&&(l=0),o._isCameraConstrained=!1),void 0!==p&&(d=p),(l||(e=>r[e]&&!this._eventsInProgress[e])("drag"))&&d&&(this._dragOrigin=a(o.pointCoordinate3D(d)),this._originalZoom=o.zoom,this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",i._stop(!0),d=d||i.transform.centerPoint,c&&(o.bearing+=c),u&&(o.pitch+=u),o._updateCameraState();const f=[0,0,0];if(s)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(d).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(d.sub(s)).dir);f[0]=t[0]-e[0],f[1]=t[1]-e[1]}else{const t=o.pointCoordinate(d);if("globe"===o.projection.name){s=s.rotate(-o.angle);const r=o._pixelsPerMercatorPixel/o.worldSize;f[0]=-s.x*e.dB(e.aS(t.y))*r,f[1]=-s.y*e.dB(o.center.lat)*r}else{const e=o.pointCoordinate(d.sub(s));t&&e&&(f[0]=e.x-t.x,f[1]=e.y-t.y)}}const m=o.zoom,g=[0,0,0];if(l){const t=a(h||o.pointCoordinate3D(d)),r={dir:e.ab.vec3.normalize([],e.ab.vec3.sub([],t,o._camera.position))};if(r.dir[2]<0){const n=o.zoomDeltaToMovement(t,l);e.ab.vec3.scale(g,r.dir,n)}}const _=e.ab.vec3.add(f,f,g);o._translateCameraConstrained(_),l&&Math.abs(o.zoom-m)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(r,n,!0)}
vendor: 1,339 bytes, line 2
2_fireEvents(t,r,n){const i=Gs(this._eventsInProgress),o=Gs(t),a={};for(const e in t){const{originalEvent:r}=t[e];this._eventsInProgress[e]||(a["".concat(e,"start")]=r),this._eventsInProgress[e]=t[e]}!i&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in a)this._fireEvent(e,a[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:r}=t[e];this._fireEvent(e,r)}const s={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:n}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=r[t]||n,s["".concat(e,"end")]=l)}for(const e in s)this._fireEvent(e,s[e]);const c=Gs(this._eventsInProgress);if(n&&(i||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),r=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(r(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.z("moveend",{originalEvent:l})),r(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,r){this._map.fire(new e.z(t,r?{originalEvent:r}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add((e=>{this._frameId=void 0,this.handleEvent(new Ws("renderFrame",{timeStamp:e})),this._applyChanges()}))}
vendor: 10,071 bytes, line 2
2_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Xs="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Js extends e.E{constructor(t,r){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=r.bearingSnap,this._respectPrefersReducedMotion=!1!==r.respectPrefersReducedMotion,e.aP(["_renderFrameCallback"],this)}getCenter(){return new e.bO(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,r,n){return t=e.P.convert(t).mult(-1),this.panTo(this.transform.center,e.l({offset:t},r),n)}panTo(t,r,n){return this.easeTo(e.l({center:t},r),n)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,r,n){return this.easeTo(e.l({zoom:t},r),n)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,r,n){return this.easeTo(e.l({bearing:t},r),n)}resetNorth(t,r){return this.rotateTo(0,e.l({duration:1e3},t),r),this}resetNorthPitch(t,r){return this.easeTo(e.l({bearing:0,pitch:0,duration:1e3},t),r),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,r){t=e.az.convert(t);const n=r&&r.bearing||0,i=r&&r.pitch||0,o=t.getNorthWest(),a=t.getSouthEast();return this._cameraForBounds(this.transform,o,a,n,i,r)}_extendPadding(t){const r={top:0,right:0,bottom:0,left:0};return null==t?e.l({},r,this.transform.padding):"number"==typeof t?{top:t,bottom:t,right:t,left:t}:e.l({},r,t)}_extendCameraOptions(t){return(t=e.l({offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding=this._extendPadding(t.padding),t}_minimumAABBFrustumDistance(e,t){const r=t.max[0]-t.min[0],n=t.max[1]-t.min[1];return r/n>e.aspect?r/(2*Math.tan(.5*e.fovX)*e.aspect):n/(2*Math.tan(.5*e.fovY)*e.aspect)}_cameraForBoundsOnGlobe(t,r,n,i,o,a){const s=t.clone(),l=this._extendCameraOptions(a);s.bearing=i,s.pitch=o;const c=e.bO.convert(r),u=e.bO.convert(n),d=.5*(c.lat+u.lat),h=.5*(c.lng+u.lng),p=e.dC(d,h),f=e.ab.vec3.normalize([],p),m=e.ab.vec3.normalize([],e.ab.vec3.cross([],f,[0,1,0])),g=e.ab.vec3.cross([],m,f),_=[m[0],m[1],m[2],0,g[0],g[1],g[2],0,f[0],f[1],f[2],0,0,0,0,1],y=[p,e.dC(c.lat,c.lng),e.dC(u.lat,c.lng),e.dC(u.lat,u.lng),e.dC(c.lat,u.lng),e.dC(d,c.lng),e.dC(d,u.lng),e.dC(c.lat,h),e.dC(u.lat,h)];let v=e.cd.fromPoints(y.map((t=>[e.ab.vec3.dot(m,t),e.ab.vec3.dot(g,t),e.ab.vec3.dot(f,t)])));const b=e.ab.vec3.transformMat4([],v.center,_);0===e.ab.vec3.squaredLength(b)&&e.ab.vec3.set(b,0,0,1),e.ab.vec3.normalize(b,b),e.ab.vec3.scale(b,b,e.ax),s.center=e.dD(b);const x=s.getWorldToCameraMatrix(),w=e.ab.mat4.invert(new Float64Array(16),x);v=e.cd.applyTransform(v,e.ab.mat4.multiply([],x,_));const A=this._extendAABB(v,s,l,i);if(!A)return void e.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");v=A,e.ab.vec3.transformMat4(b,b,x);const S=.5*(v.max[2]-v.min[2]),E=this._minimumAABBFrustumDistance(s,v),T=e.ab.vec3.scale([],[0,0,1],S),P=e.ab.vec3.add(T,b,T),C=E+(0===s.pitch?0:e.ab.vec3.distance(b,P)),I=s.globeCenterInViewSpace,M=e.ab.vec3.sub([],b,[I[0],I[1],I[2]]);e.ab.vec3.normalize(M,M),e.ab.vec3.scale(M,M,C);const k=e.ab.vec3.add([],b,M);e.ab.vec3.transformMat4(k,k,w);const O=e.ds/e.ax,R=e.ab.vec3.length(k),L=e.bH(Math.max(R*O-e.ds,Number.EPSILON),0),D=Math.min(s.zoomFromMercatorZAdjusted(L),l.maxZoom);return D>.5*(e.c6+e.bY)?(s.setProjection({name:"mercator"}),s.zoom=D,this._cameraForBounds(s,r,n,i,o,a)):{center:s.center,zoom:D,bearing:i,pitch:o}}_extendAABB(t,r,n,i){const o=.5*((n.padding.left||0)+(n.padding.right||0)),a=.5*((n.padding.top||0)+(n.padding.bottom||0)),s=a,l=o,c=o,u=a,d=r.width-(l+c),h=r.height-(s+u),p=e.ab.vec3.sub([],t.max,t.min),f=Math.min(d/p[0],h/p[1]),m=Math.min(r.scaleZoom(r.scale*f),n.maxZoom);if(isNaN(m))return null;const g=r.scale/r.zoomScale(m),_=new e.cd([t.min[0]-l*g,t.min[1]-u*g,t.min[2]],[t.max[0]+c*g,t.max[1]+s*g,t.max[2]]),y=("number"==typeof n.offset.x&&"number"==typeof n.offset.y?new e.P(n.offset.x,n.offset.y):e.P.convert(n.offset)).rotate(-e.ai(i));return _.center[0]-=y.x*g,_.center[1]+=y.y*g,_}queryTerrainElevation(t,r){const n=this.transform.elevation;return n?(r=e.l({},{exaggerated:!0},r),n.getAtPoint(e.aa.fromLngLat(t),null,r.exaggerated)):null}_cameraForBounds(t,r,n,i,o,a){if("globe"===t.projection.name)return this._cameraForBoundsOnGlobe(t,r,n,i,o,a);const s=t.clone(),l=this._extendCameraOptions(a);s.bearing=i,s.pitch=o;const c=e.bO.convert(r),u=e.bO.convert(n),d=new e.bO(c.lng,u.lat),h=new e.bO(u.lng,c.lat),p=s.project(c),f=s.project(u),m=this.queryTerrainElevation(c),g=this.queryTerrainElevation(u),_=this.queryTerrainElevation(d),y=this.queryTerrainElevation(h),v=[[p.x,p.y,Math.min(m||0,g||0,_||0,y||0)],[f.x,f.y,Math.max(m||0,g||0,_||0,y||0)]];let b=e.cd.fromPoints(v);const x=s.getWorldToCameraMatrix(),w=e.ab.mat4.invert(new Float64Array(16),x);b=e.cd.applyTransform(b,x);const A=this._extendAABB(b,s,l,i);if(!A)return void e.w("Map cannot fit within canvas with the given bounds, padding, and/or offset.");b=A;const S=.5*e.ab.vec3.sub([],b.max,b.min)[2],E=this._minimumAABBFrustumDistance(s,b),T=[0,0,1,0];e.ab.vec4.transformMat4(T,T,x),e.ab.vec4.normalize(T,T);const P=e.ab.vec3.scale([],T,E+S),C=e.ab.vec3.add([],b.center,P);e.ab.vec3.transformMat4(b.center,b.center,w),e.ab.vec3.transformMat4(C,C,w);const I=s.unproject(new e.P(b.center[0],b.center[1])),M=e.dE(s.projection,I),k=Math.pow(2,M),O=Math.min(s._zoomFromMercatorZ(C[2]*s.pixelsPerMeter*k/s.worldSize),l.maxZoom);return s.mercatorFromTransition&&O<.5*(e.c6+e.bY)?(s.setProjection({name:"globe"}),s.zoom=O,this._cameraForBounds(s,r,n,i,o,a)):{center:I,zoom:O,bearing:i,pitch:o}}fitBounds(e,t,r){const n=this.cameraForBounds(e,t);return this._fitInternal(n,t,r)}fitScreenCoordinates(t,r,n,i,o){const a=e.P.convert(t),s=e.P.convert(r),l=new e.P(Math.min(a.x,s.x),Math.min(a.y,s.y)),c=new e.P(Math.max(a.x,s.x),Math.max(a.y,s.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(a,s))return this;const u=this.transform.pointLocation3D(l),d=this.transform.pointLocation3D(c),h=this.transform.pointLocation3D(new e.P(l.x,c.y)),p=this.transform.pointLocation3D(new e.P(c.x,l.y)),f=[Math.min(u.lng,d.lng,h.lng,p.lng),Math.min(u.lat,d.lat,h.lat,p.lat)],m=[Math.max(u.lng,d.lng,h.lng,p.lng),Math.max(u.lat,d.lat,h.lat,p.lat)],g=i&&i.pitch?i.pitch:this.getPitch(),_=this._cameraForBounds(this.transform,f,m,n,g,i);return this._fitInternal(_,i,o)}_fitInternal(t,r,n){return t?(r=e.l(t,r)).linear?this.easeTo(r,n):this.flyTo(r,n):this}jumpTo(t,r){this.stop();const n=t.preloadOnly?this.transform.clone():this.transform;let i=!1,o=!1,a=!1;"zoom"in t&&n.zoom!==+t.zoom&&(i=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=e.bO.convert(t.center)),"bearing"in t&&n.bearing!==+t.bearing&&(o=!0,n.bearing=+t.bearing),"pitch"in t&&n.pitch!==+t.pitch&&(a=!0,n.pitch=+t.pitch);const s="number"==typeof t.padding?this._extendPadding(t.padding):t.padding;if(null!=t.padding&&!n.isPaddingEqual(s))if(!1===t.retainPadding){const e=n.clone();e.padding=s,n.setLocationAtPoint(n.center,e.centerPoint)}else n.padding=s;return t.preloadOnly?(this._preloadTiles(n),this):(this.fire(new e.z("movestart",r)).fire(new e.z("move",r)),i&&this.fire(new e.z("zoomstart",r)).fire(new e.z("zoom",r)).fire(new e.z("zoomend",r)),o&&this.fire(new e.z("rotatestart",r)).fire(new e.z("rotate",r)).fire(new e.z("rotateend",r)),a&&this.fire(new e.z("pitchstart",r)).fire(new e.z("pitch",r)).fire(new e.z("pitchend",r)),this.fire(new e.z("moveend",r)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.w(Xs),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,r){const n=this.transform;if(!n.projection.supportsFreeCamera)return e.w(Xs),this;this.stop();const i=n.zoom,o=n.pitch,a=n.bearing;n.setFreeCameraOptions(t);const s=i!==n.zoom,l=o!==n.pitch,c=a!==n.bearing;return this.fire(new e.z("movestart",r)).fire(new e.z("move",r)),s&&this.fire(new e.z("zoomstart",r)).fire(new e.z("zoom",r)).fire(new e.z("zoomend",r)),c&&this.fire(new e.z("rotatestart",r)).fire(new e.z("rotate",r)).fire(new e.z("rotateend",r)),l&&this.fire(new e.z("pitchstart",r)).fire(new e.z("pitch",r)).fire(new e.z("pitchend",r)),this.fire(new e.z("moveend",r)),this}easeTo(t,r){this._stop(!1,t.easeId),(!1===(t=e.l({offset:[0,0],duration:500,easing:e.dA},t)).animate||this._prefersReducedMotion(t))&&(t.duration=0);const n=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l="zoom"in t?+t.zoom:i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:a,d=this._extendPadding(t.padding),h=e.P.convert(t.offset);let p,f,m;if("globe"===n.projection.name){const r=e.aa.fromLngLat(n.center),i=h.rotate(-n.angle);r.x+=i.x/n.worldSize,r.y+=i.y/n.worldSize;const o=r.toLngLat(),a=e.bO.convert(t.center||o);this._normalizeCenter(a),p=n.centerPoint.add(i),f=new e.P(r.x,r.y).mult(n.worldSize),m=new e.P(e.at(a.lng),e.aA(a.lat)).mult(n.worldSize).sub(f)}else{p=n.centerPoint.add(h);const r=n.pointLocation(p),i=e.bO.convert(t.center||r);this._normalizeCenter(i),f=n.project(r),m=n.project(i).sub(f)}const g=n.zoomScale(l-i);let _,y;t.around&&(_=e.bO.convert(t.around),y=n.locationPoint(_));const v=this._zooming||l!==i,b=this._rotating||o!==c,x=this._pitching||u!==a,w=!n.isPaddingEqual(d),A=!1===t.retainPadding?n.clone():n,S=n=>S=>{if(v&&(n.zoom=e.af(i,l,S)),b&&(n.bearing=e.af(o,c,S)),x&&(n.pitch=e.af(a,u,S)),w&&(A.interpolatePadding(s,d,S),p=A.centerPoint.add(h)),_)n.setLocationAtPoint(_,y);else{const e=n.zoomScale(n.zoom-i),t=l>i?Math.min(2,g):Math.max(.5,g),r=Math.pow(t,1-S),o=n.unproject(f.add(m.mult(S*r)).mult(e));
vendor: 6,913 bytes, line 2
2n.setLocationAtPoint(n.renderWorldCopies?o.wrap():o,p)}return t.preloadOnly||this._fireMoveEvents(r),n};if(t.preloadOnly){const e=this._emulate(S,t.duration,n);return this._preloadTiles(e),this}const E={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=v,this._rotating=b,this._pitching=x,this._padding=w,this._easeId=t.easeId,this._prepareEase(r,t.noMoveStart,E),this._ease(S(n),(e=>{"sea"===n.cameraElevationReference&&n.recenterOnTerrain(),this._afterEase(r,e)}),t),this}_prepareEase(t,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._moving=!0,this.transform.cameraElevationReference="sea",this.transform._orthographicProjectionAtLowPitch&&0===this.transform.pitch&&"globe"!==this.transform.projection.name&&(this.transform.cameraElevationReference="ground"),r||n.moving||this.fire(new e.z("movestart",t)),this._zooming&&!n.zooming&&this.fire(new e.z("zoomstart",t)),this._rotating&&!n.rotating&&this.fire(new e.z("rotatestart",t)),this._pitching&&!n.pitching&&this.fire(new e.z("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.z("move",t)),this._zooming&&this.fire(new e.z("zoom",t)),this._rotating&&this.fire(new e.z("rotate",t)),this._pitching&&this.fire(new e.z("pitch",t))}_afterEase(t,r){if(this._easeId&&r&&this._easeId===r)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const n=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&&this.fire(new e.z("zoomend",t)),i&&this.fire(new e.z("rotateend",t)),o&&this.fire(new e.z("pitchend",t)),this.fire(new e.z("moveend",t))}flyTo(t,r){if(this._prefersReducedMotion(t)){const n=e.ay(t,["center","zoom","bearing","pitch","around","padding","retainPadding"]);return this.jumpTo(n,r)}this.stop(),t=e.l({offset:[0,0],speed:1.2,curve:1.42,easing:e.dA},t);const n=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l="zoom"in t?e.aw(+t.zoom,n.minZoom,n.maxZoom):i,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,u="pitch"in t?+t.pitch:a,d=this._extendPadding(t.padding),h=n.zoomScale(l-i),p=e.P.convert(t.offset);let f=n.centerPoint.add(p);const m=n.pointLocation(f),g=e.bO.convert(t.center||m);this._normalizeCenter(g);const _=n.project(m),y=n.project(g).sub(_);let v=t.curve;const b=Math.max(n.width,n.height),x=b/h,w=y.mag();if("minZoom"in t){const r=e.aw(Math.min(t.minZoom,i,l),n.minZoom,n.maxZoom),o=b/n.zoomScale(r-i);v=Math.sqrt(o/w*2)}const A=v*v;function S(e){const t=(x*x-b*b+(e?-1:1)*A*A*w*w)/(2*(e?x:b)*A*w);return Math.log(Math.sqrt(t*t+1)-t)}function E(e){return(Math.exp(e)-Math.exp(-e))/2}function T(e){return(Math.exp(e)+Math.exp(-e))/2}const P=S(0);let C=function(e){return T(P)/T(P+v*e)},I=function(e){return b*((T(P)*(E(t=P+v*e)/T(t))-E(P))/A)/w;var t},M=(S(1)-P)/v;if(Math.abs(w)<1e-6||!isFinite(M)){if(Math.abs(b-x)<1e-6)return this.easeTo(t,r);const e=x<b?-1:1;M=Math.abs(Math.log(x/b))/v,I=function(){return 0},C=function(t){return Math.exp(e*v*t)}}t.duration="duration"in t?+t.duration:1e3*M/("screenSpeed"in t?+t.screenSpeed/v:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const k=o!==c,O=u!==a,R=!n.isPaddingEqual(d),L=!1===t.retainPadding?n.clone():n,D=n=>h=>{const m=h*M,v=1/C(m);n.zoom=1===h?l:i+n.scaleZoom(v),k&&(n.bearing=e.af(o,c,h)),O&&(n.pitch=e.af(a,u,h)),R&&(L.interpolatePadding(s,d,h),f=L.centerPoint.add(p));const b=1===h?g:n.unproject(_.add(y.mult(I(m))).mult(v));return n.setLocationAtPoint(n.renderWorldCopies?b.wrap():b,f),n._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(r),n};if(t.preloadOnly){const e=this._emulate(D,t.duration,n);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=k,this._pitching=O,this._padding=R,this._prepareEase(r,!1),this._ease(D(n),(()=>this._afterEase(r)),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_requestRenderFrame(e){}_cancelRenderFrame(e){}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,r,n){!1===n.animate||0===n.duration?(t(1),r()):(this._easeStart=e.q.now(),this._easeOptions=n,this._onEaseFrame=t,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.q.now()-this._easeStart)/this._easeOptions.duration,1),r=this._onEaseFrame;r&&r(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,r){t=e.bF(t,-180,180);const n=Math.abs(t-r);return Math.abs(t-360-r)<n&&(t-=360),Math.abs(t+360-r)<n&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(t.maxBounds)return;if("globe"!==t.projection.name&&!t.renderWorldCopies)return;const r=e.lng-t.center.lng;e.lng+=r>180?-360:r<-180?360:0}_prefersReducedMotion(t){return this._respectPrefersReducedMotion&&e.q.prefersReducedMotion&&!(t&&t.essential)}_emulate(e,t,r){const n=Math.ceil(15*t/1e3),i=[],o=e(r.clone());for(let a=0;a<=n;a++){const e=o(a/n);i.push(e.clone())}return i}_preloadTiles(e,t){}}class Qs{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,e.aP(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact,r=e._getUIString("AttributionControl.ToggleAttribution");this._map=e,this._container=h("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=h("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._compactButton.setAttribute("aria-label",r);const n=h("span","mapboxgl-ctrl-icon",this._compactButton);return n.setAttribute("aria-hidden","true"),n.setAttribute("title",r),this._innerContainer=h("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","fal
2se")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const r=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.e.ACCESS_TOKEN}];if(t){const n=r.reduce(((e,t,n)=>(t.value&&(e+="".concat(t.key,"=").concat(t.value).concat(n<r.length-1?"&":"")),e)),"?");t.href="".concat(e.e.FEEDBACK_URL,"/").concat(n,"#").concat(es(this._map,!0)),t.rel="noopener nofollow"}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._mergedSourceCaches;for(const n in t){const r=t[n];if(r.used){const t=r.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort(((e,t)=>e.length-t.length)),e=e.filter(((t,r)=>{for(let n=r+1;n<e.length;n++)if(e[n].indexOf(t)>=0)return!1;return!0})),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const r=e.join(" | ");r!==this._attribHTML&&(this._attribHTML=r,e.length?(this._innerContainer.innerHTML=r,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class $s{constructor(){e.aP(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=h("div","mapboxgl-ctrl");const t=h("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const r=e[t].getSource();if(r.hasOwnProperty("mapbox_logo")&&!r.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class el{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(const n of r)if(n.id===e)return void(n.cancelled=!0)}run(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=this._currentlyRunning=this._queue;this._queue=[];for(const r of t)if(!r.cancelled&&(r.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}class tl{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const r=e.cB((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-r)+this._end*r}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,r){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+r}}const rl={"AttributionControl.ToggleAttribution":"Toggle attribution","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox homepage","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},nl=["mouseenter","mouseover","mouseleave","mouseout"];class il extends e.z{constructor(e,t,r,n){const{point:i,lngLat:o,originalEvent:a,target:s}=e;super(e.type,{point:i,lngLat:o,originalEvent:a,target:s}),this.preventDefault=()=>{e.preventDefault()},this.id=t,this.interaction=r,this.feature=n}}class ol{constructor(e){this.map=e,this.interactionsByType=new Map,this.typeById=new Map,this.filters=new Map,this.delegatedHandlers=new Map,this.handleType=this.handleType.bind(this)}
2add(t,r){if(this.typeById.has(t))throw new Error('Interaction id "'.concat(t,'" already exists.'));const{type:n,filter:i}=r;i&&this.filters.set(t,e.aZ(i));const o=this.interactionsByType.get(n)||new Map;if(0===o.size){if(nl.includes(n)){const{mousemove:e,mouseout:n}=this._createDelegatedHandlers(t,r);this.map.on("mousemove",e),this.map.on("mouseout",n),this.delegatedHandlers.set(t,{mousemove:e,mouseout:n})}else this.map.on(n,this.handleType);this.interactionsByType.set(n,o)}o.set(t,r),this.typeById.set(t,n)}get(e){const t=this.typeById.get(e);if(!t)return;const r=this.interactionsByType.get(t);return r?r.get(e):void 0}remove(e){const t=this.typeById.get(e);if(!t)return;this.typeById.delete(e),this.filters.delete(e);const r=this.interactionsByType.get(t);if(r){if(r.delete(e),this.delegatedHandlers.has(e)){const{mousemove:t,mouseout:r}=this.delegatedHandlers.get(e);this.map.off("mousemove",t),this.map.off("mouseout",r),this.delegatedHandlers.delete(e)}0===r.size&&this.map.off(t,this.handleType)}}queryTargets(e,t){const r=[];for(const[n,i]of t)i.target&&r.push({targetId:n,target:i.target,filter:this.filters.get(n)});return this.map.style.queryRenderedTargets(e,r,this.map.transform)}handleType(t,r){const n=this.interactionsByType.get(t.type),i=Array.from(n).reverse();r=r||this.queryTargets(t.point,i);let o=!1;for(const a of r){for(const[r,n]of i){if(!n.target)continue;const i=a.variants?a.variants[r]:null;if(i){for(const s of i){const i=new e.cw(a,s);if(!1!==n.handler(new il(t,r,n,i))){o=!0;break}}if(o)break}}if(o)break}if(!o)for(const[e,a]of i){const{handler:r,target:n}=a;if(!n&&!1!==r(new il(t,e,a,null)))break}}_createDelegatedHandlers(e,t){switch(t.type){case"mouseenter":case"mouseover":{let r=!1,n=new Set;return{mousemove:i=>{const o=this.queryTargets(i.point,[[e,t]]),a=new Set;if(!o.length)return r=!1,void n.clear();const s=[];for(const e of o)n.has(e.id)||(a.add(e.id),s.push(e));r&&!s.length||(r=!0,n=a,i.type=t.type,this.handleType(i,s))},mouseout:()=>{r=!1,n.clear()}}}case"mouseleave":case"mouseout":{let r=[];return{mousemove:n=>{const i=this.queryTargets(n.point,[[e,t]]);if(!i.length)return n.type=t.type,this.handleType(n,r),void(r=i);const o=[],a=new Set(i.map((e=>e.id)));for(const e of r)a.has(e.id)||o.push(e);o.length&&(n.type=t.type,this.handleType(n,o)),r=i},mouseout:e=>{r.length&&(e.type=t.type,this.handleType(e,r),r=[])}}}}}}function al(t,r){if(Array.isArray(t)&&Array.isArray(r)){const e=new Set(t),n=new Set(r);return e.size===n.size&&t.every((e=>n.has(e)))}return e.bn(t,r)}const sl={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1,precompilePrograms:!0,scaleFactor:1,spriteFormat:"auto"},ll={showCompass:!0,showZoom:!0,visualizePitch:!1};class cl{constructor(t,r){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._clickTolerance=10,this.element=r,this.mouseRotate=new ws({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,n&&(this.mousePitch=new As({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.aP(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),r.addEventListener("mousedown",this.mousedown),r.addEventListener("touchstart",this.touchstart,{passive:!1}),r.addEventListener("touchmove",this.touchmove),r.addEventListener("touchend",this.touchend),r.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),_()}move(e,t){const r=this.map,n=this.mouseRotate.mousemoveWindow(e,t),i=n&&n.bearingDelta;if(i&&r.setBearing(r.getBearing()+i),this.mousePitch){const n=this.mousePitch.mousemoveWindow(e,t),i=n&&n.pitchDelta;i&&r.setPitch(r.getPitch()+i)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){y(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.l({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),x(this.element,t)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,x(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=w(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=w(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}function ul(t,r,n){if(t=new e.bO(t.lng,t.lat),r){const i=new e.bO(t.lng-360,t.lat),o=new e.bO(t.lng+360,t.lat),a=360*Math.ceil(Math.abs(t.lng-n.center.lng)/360),s=n.locationPoint(t).distSqr(r),l=r.x<0||r.y<0||r.x>n.width||r.y>n.height;n.locationPoint(i).distSqr(r)<s&&(l||Math.abs(i.lng-n.center.lng)<a)?t=i:n.locationPoint(o).distSqr(r)<s&&(l||Math.abs(o.lng-n.center.lng)<a)&&(t=o)}for(;Math.abs(t.lng-n.center.lng)>180;){const e=n.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=n.width&&e.y<=n.height)break;t.lng>n.center.lng?t.lng-=360:t.lng+=360}return t}
vendor: 4,165 bytes, line 2
2const dl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class hl extends e.E{constructor(t,r){if(super(),(t instanceof HTMLElement||r)&&(t=e.l({element:t},r)),e.aP(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&t.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=t&&t.occludedOpacity||.2,t&&t.element)this._element=t.element,this._offset=e.P.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=h("div");const r=41,n=27,i=p("svg",{display:"block",height:r*this._scale+"px",width:n*this._scale+"px",viewBox:"0 0 ".concat(n," ").concat(r)},this._element),o=p("radialGradient",{id:"shadowGradient"},p("defs",{},i));p("stop",{offset:"10%","stop-opacity":.4},o),p("stop",{offset:"100%","stop-opacity":.05},o),p("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},i),p("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},i),p("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},i),p("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},i),this._offset=e.P.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.hasAttribute("role")||this._element.setAttribute("role","img"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(e=>{e.preventDefault()})),this._element.addEventListener("mousedown",(e=>{e.preventDefault()}));const n=this._element.classList;for(const e in dl)n.remove("mapboxgl-marker-anchor-".concat(e));n.add("mapboxgl-marker-anchor-".concat(this._anchor));const i=t&&t.className?t.className.trim().split(/\s+/):[];n.add(...i),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.bO.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,r=13.5,n=Math.sqrt(Math.pow(r,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
20,-t],"bottom-left":[n,-1*(t-r+n)],"bottom-right":[-n,-1*(t-r+n)],left:[r,-1*(t-r)],right:[-r,-1*(t-r)]}:this._offset}this._popup=e,e._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(e){const t=e.code,r=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==r&&13!==r||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,r=this._element;this._popup&&(t===r||r.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const e=this._map,t=this._pos;if(!e||!t)return!1;const r=e.unproject(t),n=e.getFreeCameraOptions();if(!n.position)return!1;const i=n.position.toLngLat();return i.distanceTo(r)<.9*i.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const r=this._pos;if(!r||r.x<0||r.x>t.transform.width||r.y<0||r.y>t.transform.height)return void this._clearFadeTimer();const n=t.unproject(r);let i;t._showingGlobe()&&e.dH(t.transform,this._lngLat)?i=0:(i=1-t._queryFogOpacity(n),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(i*=this._occludedOpacity)),this._element.style.opacity="".concat(i),this._element.style.pointerEvents=i>0?"auto":"none",this._popup&&this._popup._setOpacity(i),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform="\n            translate(".concat(e.x,"px,").concat(e.y,"px)\n            ").concat(dl[this._anchor],"\n            ").concat(this._calculateXYTransform()," ").concat(this._calculateZTransform(),"\n            translate(").concat(t.x,"px,").concat(t.y,"px)\n        ")}_calculateXYTransform(){const t=this._pos,r=this._map,n=this.getPitchAlignment();if(!r||!t||"map"!==n)return"";if(!r._showingGlobe()){const e=r.getPitch();return e?"rotateX(".concat(e,"deg)"):""}const i=e.c4(e.dI(r.transform,this._lngLat)),o=t.sub(e.dJ(r.transform)),a=Math.abs(o.x)+Math.abs(o.y);if(0===a)return"";const s=i/a;return"rotateX(".concat(-o.y*s,"deg) rotateY(").concat(o.x*s,"deg)")}_calculateZTransform(){const t=this._pos,r=this._map;if(!r||!t)return"";let n=0;const i=this.getRotationAlignment();if("map"===i)if(r._showingGlobe()){const t=r.project(new e.bO(this._lngLat.lng,this._lngLat.lat+.001)),i=r.project(new e.bO(this._lngLat.lng,this._lngLat.lat-.001)).sub(t);n=e.c4(Math.atan2(i.y,i.x))-90}else n=-r.getBearing();else if("horizon"===i){const i=e.ac(4,6,r.getZoom()),o=e.dJ(r.transform);o.y+=i*r.transform.height;const a=t.sub(o),s=e.c4(Math.atan2(a.y,a.x));n=(s>90?s-270:s+90)*(1-i)}return n+=this._rotation,n?"rotateZ(".concat(n,"deg)"):""}_update(e){cancelAnimationFrame(this._updateFrameId);const t=this._map;
2t&&(t.transform.renderWorldCopies&&(this._lngLat=ul(this._lngLat,this._pos,t.transform)),this._pos=t.project(this._lngLat),!0===e?this._updateFrameId=requestAnimationFrame((()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())})):this._pos=this._pos.round(),t._requestDomTask((()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(t._showingGlobe()||t.getTerrain()||t.getFog())&&!this._fadeTimer&&(this._fadeTimer=window.setTimeout(this._evaluateOpacity.bind(this),60)))})))}getOffset(){return this._offset}setOffset(t){return this._offset=e.P.convert(t),this._update(),this}addClassName(e){return this._element.classList.add(e),this}removeClassName(e){return this._element.classList.remove(e),this}toggleClassName(e){return this._element.classList.toggle(e)}_onMove(t){const r=this._map;if(!r)return;const n=this._pointerdownPos,i=this._positionDelta;if(n&&i){if(!this._isDragging){const e=this._clickTolerance||r._clickTolerance;if(t.point.dist(n)<e)return;this._isDragging=!0}this._pos=t.point.sub(i),this._lngLat=r.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.z("dragstart"))),this.fire(new e.z("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.z("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map,r=this._pos;t&&r&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(r),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(e){return this._occludedOpacity=e||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const pl={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},fl={maxWidth:100,unit:"metric"},ml={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},gl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},_l=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function yl(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new e.P(0,0),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bottom";if("number"==typeof t){const n=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(r){case"top":return new e.P(0,t);case"top-left":return new e.P(n,n);case"top-right":return new e.P(-n,n);case"bottom":return new e.P(0,-t);case"bottom-left":return new e.P(n,-n);case"bottom-right":return new e.P(-n,-n);case"left":return new e.P(t,0);case"right":return new e.P(-t,0)}return new e.P(0,0)}return t instanceof e.P||Array.isArray(t)?e.P.convert(t):e.P.convert(t[r]||[0,0])}const vl={version:t,supported:d.supported,setRTLTextPlugin:e.dK,getRTLTextPluginStatus:e.dL,Map:class extends Js{constructor(t){s.mark(r.create);const n=t;if(null!=(t=e.l({},sl,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.dF(window)&&(t.antialias=!1,e.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new tn(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._repaint=!!t.repaint,this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileC
2acheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._collectResourceTiming=t.collectResourceTiming,this._language=this._parseLanguage(t.language),this._worldview=t.worldview,this._renderTaskQueue=new el,this._domRenderTaskQueue=new el,this._controls=[],this._markers=[],this._popups=[],this._mapId=e.aV(),this._locale=e.l({},rl,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._performanceMetricsCollection=t.performanceMetricsCollection,this._tessellationStep=t.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._precompilePrograms=t.precompilePrograms,this._scaleFactorChanged=!1,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new tl(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._scaleFactor=t.scaleFactor,this._requestManager=new P(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,this._contextCreateOptions=t.contextCreateOptions?i({},t.contextCreateOptions):{},"string"==typeof t.container){const e=document.getElementById(t.container);if(!e)throw new Error("Container '".concat(t.container.toString(),"' not found."));this._container=e}else{if(!(t.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._spriteFormat=t.spriteFormat,e.aP(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp||(this._tp=new Fa),this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},(()=>{this._update()})),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._tp.registerParameter(this,["Scaling"],"_scaleFactor",{min:.1,max:10,step:.1},(()=>{this.setScaleFactor(this._scaleFactor)})),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");if(this.on("move",(()=>this._update(!1))),this.on("moveend",(()=>this._update(!1))),this.on("zoom",(()=>this._update(!0))),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new Ks(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,(t.style||!t.testMode)&&this.setStyle(t.style||e.e.DEFAULT_STYLE,{config:t.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),this.indoor=new gn(this),t.hash&&(this._hash=new $a("string"==typeof t.hash&&t.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){null==n.center&&null==n.zoom||(this.transform._unmodified=!1),this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch});
2const r=t.bounds;r&&(this.resize(),this.fitBounds(r,e.l({},t.fitBoundsOptions,{duration:0})))}this.resize(),t.attributionControl&&this.addControl(new Qs({customAttribution:t.customAttribution})),this._logoControl=new $s,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",(()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()})),this.on("data",(t=>{this._update("style"===t.dataType),this.fire(new e.z("".concat(t.dataType,"data"),t))})),this.on("dataloading",(t=>{this.fire(new e.z("".concat(t.dataType,"dataloading"),t))})),this._interactions=new ol(this)}_getMapId(){return this._mapId}addControl(t,r){if(void 0===r&&(r=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.y(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const n=t.onAdd(this);this._controls.push(t);const i=this._controlPositions[r];return-1!==r.indexOf("bottom")?i.insertBefore(n,i.firstChild):i.appendChild(n),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.y(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const r=this._controls.indexOf(t);return r>-1&&this._controls.splice(r,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const r=!this._moving;return r&&this.fire(new e.z("movestart",t)).fire(new e.z("move",t)),this.fire(new e.z("resize",t)),r&&this.fire(new e.z("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.az.convert(t)),this._update()}setMinZoom(t){var r;if((t=null!==(r=t)&&void 0!==r?r:-2)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.z("zoomstart")).fire(new e.z("zoom")).fire(new e.z("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){var r;if((t=null!==(r=t)&&void 0!==r?r:22)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.z("zoomstart")).fire(new e.z("zoom")).fire(new e.z("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){var r;if((t=null!==(r=t)&&void 0!==r?r:0)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new e.z("pitchstart")).fire(new e.z("pitch")).fire(new e.z("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){var r;if((t=null!==(r=t)&&void 0!==r?r:85)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.z("pitchstart")).fire(new e.z("pitch")).fire(new e.z("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getScaleFactor(){return this._scaleFactor}setScaleFactor(e){return this._scaleFactor=e,this.painter.scaleFactor=e,this._tp.refreshUI(),this._scaleFactorChanged=!0,this.style._updateFilteredLayers((e=>"symbol"===e.type)),this._update(!0),this}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this.transform.renderWorldCopies||this._forceMar
vendor: 4,508 bytes, line 2
2kerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?navigator.language:Array.isArray(e)?0===e.length?void 0:e.map((e=>"auto"===e?navigator.language:e)):e}setLanguage(e){const t=this._parseLanguage(e);if(!this.style||t===this._language)return this;this._language=t,this.style.reloadSources();for(const r of this._controls)r._setLanguage&&r._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){return this.style&&e!==this._worldview?(this._worldview=e,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.projection)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,r=t.projection.name;let n;"globe"===r&&t.zoom>=e.bY?(t.setMercatorFromTransition(),n=!0):"mercator"===r&&t.zoom<e.bY&&(t.setProjection({name:"globe"}),n=!0),n&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(t){let r;return r="globe"===t.name&&this.transform.zoom>=e.bY?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),r&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(t){return this.transform.locationPoint3D(e.bO.convert(t))}unproject(t){return this.transform.pointLocation3D(e.P.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(e,t,r){const n=e=>{let r=[];if(Array.isArray(t)){const n=t.filter((e=>this.getLayer(e)));r=n.length?this.queryRenderedFeatures(e,{layers:n}):[]}else r=this.queryRenderedFeatures(e,{target:t});return r};if("mouseenter"===e||"mouseover"===e){let i=!1;const o=t=>{const o=n(t.point);o.length?i||(i=!0,r.call(this,new cs(e,this,t.originalEvent,{features:o}))):i=!1};return{listener:r,targets:t,delegates:{mousemove:o,mouseout:()=>{i=!1}}}}if("mouseleave"===e||"mouseout"===e){let i=!1;const o=t=>{n(t.point).length?i=!0:i&&(i=!1,r.call(this,new cs(e,this,t.originalEvent)))},a=t=>{i&&(i=!1,r.call(this,new cs(e,this,t.originalEvent)))};return{listener:r,targets:t,delegates:{mousemove:o,mouseout:a}}}{const i=e=>{const t=n(e.point);t.length&&(e.features=t,r.call(this,e),delete e.features)};return{listener:r,targets:t,delegates:{[e]:i}}}}on(e,t,r){if("function"==typeof t||void 0===r)return super.on(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const n=this._createDelegatedListener(e,t,r);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(n);for(const i in n.delegates)this.on(i,n.delegates[i]);return this}once(e,t,r){if("function"==typeof t||void 0===r)return super.once(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const n=this._createDelegatedListener(e,t,r);for(const i in n.delegates)this.once(i,n.delegates[i]);return this}off(e,t,r){if("function"==typeof t||void 0===r)return super.off(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const n=this._delegatedListeners?this._delegatedListeners[e]:void 0;return n&&(e=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.listener===r&&al(i.targets,t)){for(const e in i.delegates)this.off(e,i.delegates[e]);return e.splice(n,1),this}}})(n),this}queryRenderedFeatures(t,r){if(!this.style)return[];if(void 0===t||t instanceof e.P||Array.isArray(t)||void 0!==r||(r=t,t=void 0),t=t||[[0,0],[this.transform.width,this.transform.height]],!r){const e=this.style.queryRenderedFeatures(t,void 0,this.transform),r=this.style.queryRenderedFeatureset(t,void 0,this.transform);return e.concat(r)}let n=!0;if(r.target&&(n=this._isTargetValid(r.target),n&&!r.layers))return this.style.queryRenderedFeatureset(t,r,this.transform);let i=!0;
2if(r.layers&&Array.isArray(r.layers)){for(const e of r.layers)if(!this._isValidId(e)){i=!1;break}if(i&&!r.target)return this.style.queryRenderedFeatures(t,r,this.transform)}let o=[];return i&&(o=o.concat(this.style.queryRenderedFeatures(t,r,this.transform))),n&&(o=o.concat(this.style.queryRenderedFeatureset(t,r,this.transform))),o}querySourceFeatures(e,t){return!e||"string"==typeof e&&!this._isValidId(e)?[]:this.style.querySourceFeatures(e,t)}isPointOnSurface(t){const{name:r}=this.transform.projection;return"globe"!==r&&"mercator"!==r&&e.w("".concat(r," projection does not support isPointOnSurface, this API may behave unexpectedly.")),this.transform.isPointOnSurface(e.P.convert(t))}addInteraction(e,t){return this._interactions.add(e,t),this}removeInteraction(e){return this._interactions.remove(e),this}setStyle(t,r){return r=e.l({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},r),this.style&&t&&!1!==r.diff&&r.localFontFamily===this._localFontFamily&&r.localIdeographFontFamily===this._localIdeographFontFamily&&!r.config?(this.style._diffStyle(t,((n,i)=>{n?(e.w("Unable to perform style diff: ".concat(String(n.message||n.error||n),". Rebuilding the style from scratch.")),this._updateStyle(t,r)):i&&this._update(!0)}),(()=>{this._postStyleLoadEvent()})),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._localFontFamily=r.localFontFamily,this._updateStyle(t,r))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error("Missing UI string '".concat(e,"'"));return t}_updateStyle(t,r){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),t){const n=e.l({},r);r&&r.config&&(n.initialConfig=r.config,delete n.config),this.style=new Sn(this,n).load(t),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Sn(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.w("There is no style added to the map."),!1)}_isValidId(t){return null==t?(this.fire(new e.y(new Error("IDs can't be empty."))),!1):!e.cr(t)||(this.fire(new e.y(new Error("IDs can't contain special symbols: \"".concat(t,'".')))),!1)}_isTargetValid(e){return"featuresetId"in e?this._isValidId("importId"in e?e.importId:e.featuresetId):"layerId"in e&&this._isValidId(e.layerId)}_areTargetsValid(e){if(Array.isArray(e)){for(const t of e)if(!this._isValidId(t))return!1;return!0}return this._isTargetValid(e)}addSource(e,t){return this._isValidId(e)?(this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)):this}isSourceLoaded(e){return!!this._isValidId(e)&&!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(e,t,r){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,r)}removeSource(e){return this._isValidId(e)?(this.style.removeSource(e),this._updateTerrain(),this._update(!0)):this}getSource(e){return this._isValidId(e)?this.style.getOwnSource(e):null}addImage(t,r){let{pixelRatio:n=1,sdf:i=!1,stretchX:o,stretchY:a,content:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this._lazyInitEmptyStyle(),r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap){const{width:l,height:c,data:u}=e.q.getImageData(r);this.style.addImage(t,{data:new e.r({width:l,height:c},u),pixelRatio:n,stretchX:o,stretchY:a,content:s,sdf:i,version:0,usvg:!1})}else if(void 0===r.width||void 0===r.height)this.fire(new e.y(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:l,height:c}=r,u=r;this.style.addImage(t,{data:new e.r({width:l,height:c},new Uint8Array(u.data)),pixelRatio:n,stretchX:o,stretchY:a,content:s,sdf:i,usvg:!1,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,r){this._lazyInitEmptyStyle();const n=this.style.getImage(t);if(!n)return void this.fire(new e.y(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap?e.q.getImageData(r):r,{width:o,height:a,data:s}=i;
2if(void 0===o||void 0===a)return void this.fire(new e.y(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(o!==(n.usvg?n.icon.usvg_tree.width:n.data.width)||a!==(n.usvg?n.icon.usvg_tree.height:n.data.height))return void this.fire(new e.y(new Error("The width and height of the updated image (".concat(o,", ").concat(a,")\n                must be that same as the previous version of the image\n                (").concat(n.data.width,", ").concat(n.data.height,")"))));const l=!(r instanceof HTMLImageElement||ImageBitmap&&r instanceof ImageBitmap);let c=!1;n.usvg?(n.data=new e.r({width:o,height:a},new Uint8Array(s)),n.usvg=!1,n.icon=void 0,c=!0):n.data.replace(s,l),this.style.updateImage(t,n,c)}hasImage(t){return t?!!this.style&&!!this.style.getImage(t):(this.fire(new e.y(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,r){e.o(this._requestManager.transformRequest(t,e.R.Image),((t,n)=>{r(t,n instanceof HTMLImageElement?e.q.getImageData(n):n)}))}listImages(){return this.style.listImages()}addModel(e,t){this._lazyInitEmptyStyle(),this.style.addModel(e,t)}hasModel(t){return t?this.style.hasModel(t):(this.fire(new e.y(new Error("Missing required model id"))),!1)}removeModel(e){this.style.removeModel(e)}listModels(){return this.style.listModels()}addLayer(e,t){return this._isValidId(e.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)):this}getSlot(e){const t=this.getLayer(e);return t&&t.slot||null}setSlot(e,t){return this.style.setSlot(e,t),this.style.mergeLayers(),this._update(!0)}addImport(e,t){return this.style.addImport(e,t),this}updateImport(e,t){return"string"!=typeof t&&t.id!==e?(this.removeImport(e),this.addImport(t)):(this.style.updateImport(e,t),this._update(!0))}removeImport(e){return this.style.removeImport(e),this}moveImport(e,t){return this.style.moveImport(e,t),this._update(!0)}moveLayer(e,t){return this._isValidId(e)?(this.style.moveLayer(e,t),this._update(!0)):this}removeLayer(e){return this._isValidId(e)?(this.style.removeLayer(e),this._update(!0)):this}getLayer(e){if(!this._isValidId(e))return null;const t=this.style.getOwnLayer(e);return t?"custom"===t.type?t.implementation:t.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(e,t,r){return this._isValidId(e)?(this.style.setLayerZoomRange(e,t,r),this._update(!0)):this}setFilter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._isValidId(e)?(this.style.setFilter(e,t,r),this._update(!0)):this}getFilter(e){return this._isValidId(e)?this.style.getFilter(e):null}setPaintProperty(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this._isValidId(e)?(this.style.setPaintProperty(e,t,r,n),this._update(!0)):this}getPaintProperty(e,t){return this._isValidId(e)?this.style.getPaintProperty(e,t):null}setLayoutProperty(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this._isValidId(e)?(this.style.setLayoutProperty(e,t,r,n),this._update(!0)):this}getLayoutProperty(e,t){return this._isValidId(e)?this.style.getLayoutProperty(e,t):null}getSchema(e){return this.style.getSchema(e)}setSchema(e,t){return this.style.setSchema(e,t),this._update(!0)}getConfig(e){return this.style.getConfig(e)}setConfig(e,t){return this.style.setConfig(e,t),this._update(!0)}getConfigProperty(e,t){return this.style.getConfigProperty(e,t)}setConfigProperty(e,t,r){return this.style.setConfigProperty(e,t,r),this._update(!0)}getFeaturesetDescriptors(e){return this.style.getFeaturesetDescriptors(e)}setLights(e){if(this._lazyInitEmptyStyle(),e&&1===e.length&&"flat"===e[0].type){const t=e[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(e),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const e=this.style.getLights()||[];return 0===e.length&&e.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),e}
vendor: 6,097 bytes, line 2
2setLight(e){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:e}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setSnow(e){return this._lazyInitEmptyStyle(),this.style.setSnow(e),this._update(!0)}getSnow(){return this.style?this.style.getSnow():null}setRain(e){return this._lazyInitEmptyStyle(),this.style.setRain(e),this._update(!0)}getRain(){return this.style?this.style.getRain():null}setColorTheme(e){return this._lazyInitEmptyStyle(),this.style.setColorTheme(e),this._update(!0)}setImportColorTheme(e,t){return this._lazyInitEmptyStyle(),this.style.setImportColorTheme(e,t),this._update(!0)}setCamera(e){return this.style.setCamera(e),this._triggerCameraUpdate(e)}_triggerCameraUpdate(e){return this._update(this.transform.setOrthographicProjectionAtLowPitch("orthographic"===e["camera-projection"]))}getCamera(){return this.style.camera}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.bO.convert(t),this.transform):0}setFeatureState(e,t){return e.source&&!this._isValidId(e.source)?this:(this.style.setFeatureState(e,t),this._update())}removeFeatureState(e,t){return e.source&&!this._isValidId(e.source)?this:(this.style.removeFeatureState(e,t),this._update())}getFeatureState(e){return e.source&&!this._isValidId(e.source)?null:this.style.getFeatureState(e)}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,t=this._container.getBoundingClientRect().height||300;let r,n,i,o=this._container;for(;o&&(!n||!i);){const e=window.getComputedStyle(o).transform;e&&"none"!==e&&(r=e.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&"0"!==r[0]&&"1"!==r[0]&&(n=r[0]),r[3]&&"0"!==r[3]&&"1"!==r[3]&&(i=r[3])),o=o.parentElement}this._containerWidth=n?Math.abs(e/n):e,this._containerHeight=i?Math.abs(t/i):t}_detectMissingCSS(){"rgb(250, 128, 114)"!==window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=h("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=h("div","mapboxgl-canvas-container",e);this._canvas=h("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const r=this._controlContainer=h("div","mapboxgl-control-container",e),n=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach((e=>{n[e]=h("div","mapboxgl-ctrl-".concat(e),r)})),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,r){const n=e.q.devicePixelRatio||1;this._canvas.width=n*Math.ceil(t),this._canvas.height=n*Math.ceil(r),this._canvas.style.width="".concat(t,"px"),this._canvas.style.height="".concat(r,"px")}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_addPopup(e){this._popups.push(e)}_removePopup(e){const t=this._popups.indexOf(e);-1!==t&&this._popups.splice(t,1)}_setupPainter(){const t=e.l({},d.supported.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl2",t);r?(G(r,!0),this.painter=new Ja(r,this._contextCreateOptions,this.transform,this._scaleFactor,this._tp),this.on("data",(e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)})),e.m.testSupport(r)):this.fire(new e.y(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.z("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.z("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let n;this.fire(new e.z("renderstart")),++this._frameId;const i=this.painter.context.extTimerQuery,o=e.q.now(),a=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(n=a.createQuery(),a.beginQuery(i.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&
2(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const l=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,r=this.transform.pitch,n=e.q.now(),i=new e.a8(t,{now:n,fadeDuration:l,pitch:r,transition:this.style.transition});this.style.update(i)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let c=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),c=this._updateAverageElevation(o),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):c=this._updateAverageElevation(o);const u=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,l,this._crossSourceCollisions,this.painter.replacementSource,this._scaleFactorChanged);if(this._scaleFactorChanged&&(this._scaleFactorChanged=!1),u&&(this._placementDirty=u.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:l,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.z("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,s.mark(r.load),this.fire(new e.z("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&(this.style.snow||this.style.rain)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const t=e.q.now()-o;a.endQuery(i.TIME_ELAPSED_EXT),setTimeout((()=>{const r=a.getQueryParameter(n,a.QUERY_RESULT)/1e6;a.deleteQuery(n),this.fire(new e.z("gpu-timing-frame",{cpuTime:t,gpuTime:r}))}),50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout((()=>{const r=this.painter.queryGpuTimers(t);this.fire(new e.z("gpu-timing-layer",{layerTimes:r}))}),50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout((()=>{const r=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.z("gpu-timing-deferred-render",{gpuTime:r}))}),50)}const d=this._sourcesDirty||this._styleDirty||this._placementDirty||c;if(d||this._repaint)this.triggerRepaint();else{const t=this.idle();if(t&&(c=this._updateAverageElevation(o,!0)),c)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.z("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.z("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||d||(this._fullyLoaded=!0,s.mark(r.fullLoad),this._performanceMetricsCollection&&U(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(e){for(const t of this._markers)e&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!e||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&r(0);const n=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(n||(t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let i=this.transform.sampleAverageElevation();null!=this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(i)?i=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-i);if(o>1){if(this._isInitialLoad||n)return this._averageElevation.jumpTo(i),r(i);this._averageElevation.easeTo(i,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(i),r(i)}return!!this._averageElevation.isEasing(e)&&r(this._averageElevation.getValue(e))}_authenticate(){q(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(t=>
2{if(t&&(t.message===T||401===t.status)){const t=this.painter.context.gl;G(t,!1),this._logoControl instanceof $s&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.y(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}})),F(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,(()=>{}))}_postStyleLoadEvent(){this.style.globalId&&j(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const e=this._isDragging();this.painter.updateTerrain(this.style,e)}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const r=this.painter.context.gl,n=r.createFramebuffer();function i(e){r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e,0);const t=new Uint8Array(r.drawingBufferWidth*r.drawingBufferHeight*4);return r.readPixels(0,0,r.drawingBufferWidth,r.drawingBufferHeight,r.RGBA,r.UNSIGNED_BYTE,t),t}return r.bindFramebuffer(r.FRAMEBUFFER,n),this._canvasPixelComparison(i(e),t.canvasCopies.map(i),t.timeStamps)}_canvasPixelComparison(e,t,r){let n=r[1]-r[0];const i=e.length/4;for(let o=0;o<t.length;o++){const a=t[o];let s=0;for(let t=0;t<a.length;t+=4)a[t]===e[t]&&a[t+1]===e[t+1]&&a[t+2]===e[t+2]&&a[t+3]===e[t+3]&&(s+=1);n+=(r[o+2]-r[o+1])*(1-s/i)}return n}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.indoor.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),H.delete(this.painter.context.gl),V.remove(),N.remove(),this._removed=!0,this.fire(new e.z("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.q.frame((e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)})))}_preloadTiles(t){const r=this.style?this.style.getSourceCaches():[];return e.bl(r,((e,r)=>e._preloadTiles(t,r)),(()=>{this.triggerRepaint()})),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}_onVisibilityChange(){"hidden"===document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(e){this._showParseStatus!==e&&(this._showParseStatus=e,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(e){this._showLayers2DWireframe!==e&&(this._showLayers2DWireframe=e,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(e){this._showLayers3DWireframe!==e&&(this._showLayers3DWireframe=e,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,this._tp.refreshUI(),e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(e){this._showTileAABBs!==e&&(this._showTileAABBs=e,this._tp.refreshUI(),e&&this._update())}_setCacheLimits(t,r){e.dG(t,r)}get version(){return t}},NavigationControl:class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e.l({},ll,t),this._container=h("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this.options.showZoom&&(e.aP(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(e=>{this._map&&this._map.zoomIn({},{originalEvent:e})})),h("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(e=>{this._map&&this._map.zoomOut({},{originalEvent:e})})),h("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.aP(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))})),this._compassIcon=h("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;
2const t=e.getZoom(),r=t===e.getMaxZoom(),n=t===e.getMinZoom();this._zoomInButton.disabled=r,this._zoomOutButton.disabled=n,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",n.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?"scale(".concat(1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5),") rotateX(").concat(e.transform.pitch,"deg) rotateZ(").concat(e.transform.angle*(180/Math.PI),"deg)"):"rotate(".concat(e.transform.angle*(180/Math.PI),"deg)");e._requestDomTask((()=>{this._compassIcon&&(this._compassIcon.style.transform=t)}))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new cl(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const r=h("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}_setButtonTitle(e,t){if(!this._map)return;const r=this._map._getUIString("NavigationControl.".concat(t));e.setAttribute("aria-label",r),e.firstElementChild&&e.firstElementChild.setAttribute("title",r)}},GeolocateControl:class extends e.E{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();const r=navigator.geolocation;this.options=e.l({geolocation:r},pl,t),e.aP(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Qa(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=h("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(e){var t=this;const r=function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!!t.options.geolocation;t._supportsGeolocation=r,e(r)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==navigator.permissions?navigator.permissions.query({name:"geolocation"}).then((e=>r("denied"!==e.state))).catch((()=>r())):r()}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),r=e.coords;return!!t&&(r.longitude<t.getWest()||r.longitude>t.getEast()||r.latitude<t.getSouth()||r.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.z("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
2RROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.z("geolocate",t)),this._finish()}}_updateCamera(t){const r=new e.bO(t.coords.longitude,t.coords.latitude),n=t.coords.accuracy,i=this._map.getBearing(),o=e.l({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),o,{geolocateSource:!0})}_updateMarker(t){if(t){const r=new e.bO(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,r=e.bH(1,t._center.lat)*t.worldSize,n=Math.ceil(2*this._accuracy*r);this._circleElement.style.width="".concat(n,"px"),this._circleElement.style.height="".concat(n,"px")}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.z("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",(e=>e.preventDefault())),this._geolocateButton=h("button","mapboxgl-ctrl-geolocate",this._container),h("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.w("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=h("div","mapboxgl-user-location"),this._dotElement.appendChild(h("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(h("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new hl({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=h("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new hl({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.z("trackuserlocationend")))}))}}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return e.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.z("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.z("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.z("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const e=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};"undefined"!=typeof DeviceMotionEvent&&"function"==typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then((t=>{"granted"===t&&e()})).catch(console.error):e()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Qs,ScaleControl:class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e.l({},fl,t),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch(e){return!1}}(),e.aP(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,r=t._containerHeight/2,n=t._containerWidth/2-e/2,i=t.unproject([n,r]),o=t.unproject([n+e,r]),a=i.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*a;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,a/1852,"nautical-mile"):a>=1e3?this._setScale(e,a/1e3,"kilometer"):this._setScale(e,a,"meter")}_setScale(e,t,r){this._map._requestDomTask((()=>{const n=function(e){const t=Math.pow(10,"".concat(Math.floor(e)).length-1);let r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(r),t*r}(t),i=n/t;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==r?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:r}).format(n):"".concat(n,"&nbsp;").concat(ml[r]),this._container.style.width=e*i+"px"}))}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=h("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.w("Full screen control 'container' must be a DOM element.")),e.aP(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=h("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=h("button","mapboxgl-ctrl-fullscreen",this._controlContainer);h("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.E{constructor(t){super(),this.options=e.l(Object.create(gl),t),e.aP(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),t._addPopup(this),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.z("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),t._canvasContainer&&t._canvasContainer.classList.remove("mapboxgl-track-pointer"),t._removePopup(this),this._map=void 0),this.fire(new e.z("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.bO.convert(t),this._pos=null,this._trackPointer=!1,this._update();const r=this._map;return r&&(r.on("move",this._update),r.off("mousemove",this._onMouseEvent),r._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){const t=document.createDocumentFragment(),r=document.createElement("body");let n;for(r.innerHTML=e;n=r.firstChild,n;)t.appendChild(n);return this.setDOMContent(t)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=h("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=h("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="&#215;",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList.delete(e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,r=this._container,n=this._pos;if(!t||!r||!n)return"bottom";const i=r.offsetWidth,o=r.offsetHeight,a=n.x<i/2,s=n.x>t.transform.width-i/2;if(n.y+e<o)return a?"top-left":s?"top-right":"top";if(n.y>t.transform.height-o){if(a)return"bottom-left";if(s)return"bottom-right"}return a?"left":s?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push("mapboxgl-popup-anchor-".concat(this._anchor)),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(t){const r=this._map,n=this._content;if(!r||!this._lngLat&&!this._trackPointer||!n)return;let i=this._container;if(i||(i=this._container=h("div","mapboxgl-popup",r.getContainer()),this._tip=h("div","mapboxgl-popup-tip",i),i.appendChild(n)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),r.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ul(this._lngLat,this._pos,r.transform)),!this._trackPointer||t){const n=this._pos=this._trackPointer&&t instanceof e.P?t:r.project(this._lngLat),i=yl(this.options.offset),o=this._anchor=this._getAnchor(i.y),a=yl(this.options.offset,o),s=n.add(a).round();r._requestDomTask((()=>{this._container&&o&&(this._container.style.transform="".concat(dl[o]," translate(").concat(s.x,"px,").concat(s.y,"px)"))}))}if(!this._marker&&r._showingGlobe()){const t=e.dH(r.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(_l);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity="".concat(e)),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:hl,Style:Sn,LngLat:e.bO,LngLatBounds:e.az,Point:e.P,MercatorCoordinate:e.aa,FreeCameraOptions:Kr,Evented:e.E,c
2onfig:e.e,prewarm:e.dM,clearPrewarmedResources:e.dN,get accessToken(){return e.e.ACCESS_TOKEN},set accessToken(t){e.e.ACCESS_TOKEN=t},get baseApiUrl(){return e.e.API_URL},set baseApiUrl(t){e.e.API_URL=t},get workerCount(){return e.dO.workerCount},set workerCount(t){e.dO.workerCount=t},get maxParallelImageRequests(){return e.e.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.e.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.dP(t)},get workerUrl(){return e.dQ.workerUrl},set workerUrl(t){e.dQ.workerUrl=t},get workerClass(){return e.dQ.workerClass},set workerClass(t){e.dQ.workerClass=t},get workerParams(){return e.dQ.workerParams},set workerParams(t){e.dQ.workerParams=t},get dracoUrl(){return e.dR()},set dracoUrl(t){e.dS(t)},get meshoptUrl(){return e.dT()},set meshoptUrl(t){e.dU(t)},setNow:e.q.setNow,restoreNow:e.q.restoreNow};return vl})),r}()},53701:e=>{"use strict";e.exports=Math.abs},78084:e=>{"use strict";e.exports=4294967295},47888:e=>{"use strict";e.exports=Number.MAX_SAFE_INTEGER||9007199254740991},31911:e=>{"use strict";e.exports=Math.floor},51194:(e,t,r)=>{"use strict";var n=r(42816);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},99507:(e,t,r)=>{"use strict";var n=r(53701),i=r(31911),o=r(42816),a=r(51194);e.exports=function(e){if("number"!==typeof e||o(e)||!a(e))return!1;var t=n(e);return i(t)===t}}
2,42816:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!==e}},4591:e=>{"use strict";e.exports=Math.max},61557:e=>{"use strict";e.exports=Math.min},87583:e=>{"use strict";e.exports=Math.pow},60969:e=>{"use strict";e.exports=Math.round},97792:(e,t,r)=>{"use strict";var n=r(42816);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},75328:function(e,t,r){var n,i,o;!function(a,s){"use strict";e.exports?e.exports=s(r(86178)):(i=[r(86178)],void 0===(o="function"===typeof(n=s)?n.apply(t,i):n)||(e.exports=o))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,r={},n={},i={},o={},a={},s=+(I=(e&&"string"==typeof e.version||T("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/"),e.version.split(".")))[0],l=+I[1];function c(e){return 96<e?e-87:64<e?e-29:e-48}function u(e){var t=0,r=(a=e.split("."))[0],n=a[1]||"",i=1,o=0,a=1;for(45===e.charCodeAt(0)&&(a=-(t=1));t<r.length;t++)o=60*o+c(r.charCodeAt(t));for(t=0;t<n.length;t++)i/=60,o+=c(n.charCodeAt(t))*i;return o*a}function d(e){for(var t=0;t<e.length;t++)e[t]=u(e[t])}function h(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=e[t[n]];return r}function p(e){for(var t=(e=e.split("|"))[2].split(" "),r=e[3].split(""),n=e[4].split(" "),i=(d(t),d(r),d(n),n),o=r.length,a=0;a<o;a++)i[a]=Math.round((i[a-1]||0)+6e4*i[a]);return i[o-1]=1/0,{name:e[0],abbrs:h(e[1].split(" "),r),offsets:h(t,r),untils:n,population:0|e[5]}}function f(e){e&&this._set(p(e))}function m(e,t){this.name=e,this.zones=t}function g(e){var t=e.toTimeString(),r=t.match(/\([a-z ]+\)/i);"GMT"===(r=r&&r[0]?(r=r[0].match(/[A-Z]/g))?r.join(""):void 0:(r=t.match(/[A-Z]{3,5}/g))?r[0]:void 0)&&(r=void 0),this.at=+e,this.abbr=r,this.offset=e.getTimezoneOffset()}function _(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function y(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function v(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&3<e.length){var t=o[b(e)];if(t)return t;T("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}for(var r,n,i=function(){for(var e,t,r,n=(new Date).getFullYear()-2,i=new g(new Date(n,0,1)),o=i.offset,a=[i],s=1;s<48;s++)(r=new Date(n,s,1).getTimezoneOffset())!==o&&(e=function(e,t){for(var r;r=6e4*((t.at-e.at)/12e4|0);)(r=new g(new Date(e.at+r))).offset===e.offset?e=r:t=r;return e}(i,t=new g(new Date(n,s,1))),a.push(e),a.push(new g(new Date(e.at+6e4))),i=t,o=r);for(s=0;s<4;s++)a.push(new g(new Date(n+s,0,1))),a.push(new g(new Date(n+s,6,1)));return a}(),s=i.length,l=function(e){for(var t,r,n,i=e.length,s={},l=[],c={},u=0;u<i;u++)if(r=e[u].offset,!c.hasOwnProperty(r)){for(t in n=a[r]||{})n.hasOwnProperty(t)&&(s[t]=!0);c[r]=!0}for(u in s)s.hasOwnProperty(u)&&l.push(o[u]);return l}(i),c=[],u=0;u<l.length;u++){for(r=new _(w(l[u])),n=0;n<s;n++)r.scoreOffsetAt(i[n]);c.push(r)}return c.sort(y),0<c.length?c[0].zone.name:void 0}function b(e){return(e||"").toLowerCase().replace(/\//g,"_")}function x(e){var t,n,i,s;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++){s=b(n=(i=e[t].split("|"))[0]),r[s]=e[t],o[s]=n,c=l=void 0;var l,c,u=s,h=i[2].split(" ");for(d(h),l=0;l<h.length;l++)c=h[l],a[c]=a[c]||{},a[c][u]=!0}}function w(e,t){e=b(e);var i=r[e];return i instanceof f?i:"string"==typeof i?(i=new f(i),r[e]=i):n[e]&&t!==w&&(t=w(n[e],w))?((i=r[e]=new f)._set(t),i.name=o[e],i):null}function A(e){var t,r,i,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)i=b((r=e[t].split("|"))[0]),a=b(r[1]),n[i]=a,o[i]=r[0],n[a]=i,o[a]=r[1]}function S(e){x(e.zones),A(e.links);var t,r,n,o=e.countries;if(o&&o.length)for(t=0;t<o.length;t++)r=(n=o[t].split("|"))[0].toUpperCase(),n=n[1].split(" "),i[r]=new m(r,n);P.dataVersion=e.version}function E(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function T(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function P(t){var r=Array.prototype.slice.call(arguments,0,-1),n=arguments[arguments.length-1];r=e.utc.apply(null,r);return!e.isMoment(t)&&E(r)&&(t=w(n))&&r.add(t.parse(r),"minutes"),r.tz(n),r}(s<2||2==s&&l<6)&&T("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),f.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){if(e=function(e,t){var r,n=t.length;if(e<t[0])return 0;if(1<n&&t[n-1]===1/0&&e>=t[n-2])return n-1;if(e>=t[n-1])return-1;for(var i=0,o=n-1;1<o-i;)t[r=Math.floor((i+o)/2)]<=e?i=r:o=r;return o}(+e,this.untils),0<=e)return e},countries:function(){var e=this.name;return Object.keys(i).filter((function(t){return-1!==i[t].zones.indexOf(e)}))},parse:function(e){for(var t,r,n,i=+e,o=this.offsets,a=this.untils,s=a.length-1,l=0;l<s;l++)if(t=o[l],r=o[l+1],n=o[l&&l-1],t<r&&P.moveAmbiguousForward?t=r:n<t&&P.moveInvalidForward&&(t=n),i<a[l]-6e4*t)return o[l];return o[s]},abbr:function(e){return this.abbrs[this._index(e)]}
vendor: 4,774 bytes, line 2
2,offset:function(e){return T("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},_.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},P.version="0.5.46",P.dataVersion="",P._zones=r,P._links=n,P._names=o,P._countries=i,P.add=x,P.link=A,P.load=S,P.zone=w,P.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,T("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!w(t)},P.guess=function(e){return t=t&&!e?t:v()},P.names=function(){var e,t=[];for(e in o)o.hasOwnProperty(e)&&(r[e]||r[n[e]])&&o[e]&&t.push(o[e]);return t.sort()},P.Zone=f,P.unpack=p,P.unpackBase60=u,P.needsOffset=E,P.moveInvalidForward=!0,P.moveAmbiguousForward=!1,P.countries=function(){return Object.keys(i)},P.zonesForCountry=function(e,t){var r;return r=(r=e).toUpperCase(),(e=i[r]||null)?(r=e.zones.sort(),t?r.map((function(e){return{name:e,offset:w(e).utcOffset(new Date)}})):r):null};var C,I=e.fn;function M(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function k(e){return function(){return this._z=null,e.apply(this,arguments)}}return e.tz=P,e.defaultZone=null,e.updateOffset=function(t,r){var n,i=e.defaultZone;void 0===t._z&&(i&&E(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z&&(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset?(n=t._z,t.utcOffset(-i,r),t._z=n):t.zone(i,r))},I.tz=function(t,r){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=w(t),this._z?e.updateOffset(this,r):T("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},I.zoneName=M(I.zoneName),I.zoneAbbr=M(I.zoneAbbr),I.utc=k(I.utc),I.local=k(I.local),I.utcOffset=(C=I.utcOffset,function(){return 0<arguments.length&&(this._z=null),C.apply(this,arguments)}),e.tz.setDefault=function(t){return(s<2||2==s&&l<9)&&T("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?w(t):null,e},I=e.momentProperties,"[object Array]"===Object.prototype.toString.call(I)?(I.push("_z"),I.push("_a")):I&&(I._z=null),S({version:"2024b",zones:["Africa/Abidjan|GMT|0|0||48e5","Africa/Nairobi|EAT|-30|0||47e5","Africa/Algiers|CET|-10|0||26e5","Africa/Lagos|WAT|-10|0||17e6","Africa/Khartoum|CAT|-20|0||51e5","Africa/Cairo|EET EEST|-20 -30|010101010101010|29NW0 1cL0 1cN0 1fz0 1a10 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0|15e6","Africa/Casablanca|+01 +00|-10 0|010101010101010101010101|208q0 e00 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600|32e5","Europe/Paris|CET CEST|-10 -20|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|11e6","Africa/Johannesburg|SAST|-20|0||84e5","Africa/Juba|EAT CAT|-30 -20|01|24nx0|","Africa/Sao_Tome|WAT GMT|-10 0|01|1XiN0|","Africa/Tripoli|EET|-20|0||11e5","America/Adak|HST HDT|a0 90|01010101010101010101010|1XKc0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AKST AKDT|90 80|01010101010101010101010|1XKb0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Santo_Domingo|AST|40|0||29e5","America/Fortaleza|-03|30|0||34e5","America/Asuncion|-03 -04|30 40|01010101010101010101010|1XPD0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0|28e5","America/Panama|EST|50|0||15e5","America/Mexico_City|CST CDT|60 50|010101010|1XVk0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|20e6","America/Managua|CST|60|0||22e5","America/Caracas|-04|40|0||29e5","America/Lima|-05|50|0||11e6","America/Denver|MST MDT|70 60|01010101010101010101010|1XK90 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Campo_Grande|-03 -04|30 40|01|1XBD0|77e4","America/Chicago|CST CDT|60 50|01010101010101010101010|1XK80 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|MST MDT CST|70 60 60|010101012|1XVl0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|81e4","America/Ciudad_Juarez|MST MDT CST|70 60 60|010101012010101010101010|1XK90 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 cm0 EP0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|","America/Phoenix|MST|70|0||42e5","America/Whitehorse|PST PDT MST|80 70 70|01012|1XKa0 1zb0 Op0 1z90|23e3","America/Ne
2w_York|EST EDT|50 40|01010101010101010101010|1XK70 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Los_Angeles|PST PDT|80 70|01010101010101010101010|1XKa0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Halifax|AST ADT|40 30|01010101010101010101010|1XK60 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Godthab|-03 -02 -01|30 20 10|0101010101212121212121|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 2so0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|17e3","America/Havana|CST CDT|50 40|01010101010101010101010|1XK50 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Mazatlan|MST MDT|70 60|010101010|1XVl0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0|44e4","America/Metlakatla|PST AKST AKDT|80 90 80|012121212121212121212121|1Xqy0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Miquelon|-03 -02|30 20|01010101010101010101010|1XK50 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Noronha|-02|20|0||30e2","America/Ojinaga|MST MDT CST CDT|70 60 60 50|01010101232323232323232|1XK90 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1wn0 Rc0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Santiago|-03 -04|30 40|01010101010101010101010|1XVf0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|62e5","America/Sao_Paulo|-02 -03|20 30|01|1XBC0|20e6","America/Scoresbysund|-01 +00 -02|10 0 20|0101010101020202020202|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 2pA0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|452","America/St_Johns|NST NDT|3u 2u|01010101010101010101010|1XK5u 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0|11e4","Antarctica/Casey|+11 +08|-b0 -80|0101010101|1XME0 1kr0 12l0 1o01 14kX 1lf1 14kX 1lf1 13bX|10","Asia/Bangkok|+07|-70|0||15e6","Asia/Vladivostok|+10|-a0|0||60e4","Australia/Sydney|AEDT AEST|-b0 -a0|01010101010101010101010|1XV40 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0|40e5","Asia/Tashkent|+05|-50|0||23e5","Pacific/Auckland|NZDT NZST|-d0 -c0|01010101010101010101010|1XV20 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0|14e5","Europe/Istanbul|+03|-30|0||13e6","Antarctica/Troll|+00 +02|0 -20|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|40","Antarctica/Vostok|+07 +05|-70 -50|01|2bnv0|25","Asia/Almaty|+06 +05|-60 -50|01|2bR60|15e5","Asia/Amman|EET EEST +03|-20 -30 -30|010101012|1XRy0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5","Asia/Kamchatka|+12|-c0|0||18e4","Asia/Dubai|+04|-40|0||39e5","Asia/Beirut|EET EEST|-20 -30|01010101010101010101010|1XSm0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|22e5","Asia/Dhaka|+06|-60|0||16e6","Asia/Kuala_Lumpur|+08|-80|0||71e5","Asia/Kolkata|IST|-5u|0||15e6","Asia/Chita|+09|-90|0||33e4","Asia/Shanghai|CST|-80|0||23e6","Asia/Colombo|+0530|-5u|0||22e5","Asia/Damascus|EET EEST +03|-20 -30 -30|010101012|1XRy0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5","Europe/Athens|EET EEST|-20 -30|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|35e5","Asia/Gaza|EET EEST|-20 -30|01010101010101010101010|1XRy0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 1cN0 1cL0 1a10 1fz0 17d0 1in0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|18e5","Asia/Hong_Kong|HKT|-80|0||73e5","Asia/Jakarta|WIB|-70|0||31e6","Asia/Jayapura|WIT|-90|0||26e4","Asia/Jerusalem|IST IDT|-20 -30|01010101010101010101010|1XRA0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0|81e4","Asia/Kabul|+0430|-4u|0||46e5","Asia/Karachi|PKT|-50|0||24e6","Asia/Kathmandu|+0545|-5J|0||12e5","Asia/Sakhalin|+11|-b0|0||58e4","Asia/Makassar|WITA|-80|0||15e5","Asia/Manila|PST|-80|0||24e6","Asia/Seoul|KST|-90|0||23e6","Asia/Rangoon|+0630|-6u|0||48e5","Asia/Tehran|+0330 +0430|-3u -4u|010101010|1XOIu 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0|14e6","Asia/Tokyo|JST|-90|0||38e6","Atlantic/Azores|-01 +00|10 0|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|25e4","Europe/Lisbon|WET WEST|0 -10|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|27e5","Atlantic/Cape_Verde|-01|10|0||50e4","Australia/Adelaide|ACDT ACST|-au -9u|01010101010101010101010|1XV4u 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0|11e5","Australia/Brisbane|AEST|-a0|0||20e5","Australia/Darwin|ACST|-9u|0||12e4","Australia/Eucla|+0845|-8J|0||368","Australia/Lord_Howe|+11 +1030|-b0 -au|01010101010101010101010|1XV30 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 
21cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu|347","Australia/Perth|AWST|-80|0||18e5","Pacific/Easter|-05 -06|50 60|01010101010101010101010|1XVf0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|30e2","Europe/Dublin|GMT IST|0 -10|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|12e5","Etc/GMT-1|+01|-10|0||","Pacific/Tongatapu|+13|-d0|0||75e3","Pacific/Kiritimati|+14|-e0|0||51e2","Etc/GMT-2|+02|-20|0||","Pacific/Tahiti|-10|a0|0||18e4","Pacific/Niue|-11|b0|0||12e2","Etc/GMT+12|-12|c0|0||","Pacific/Galapagos|-06|60|0||25e3","Etc/GMT+7|-07|70|0||","Pacific/Pitcairn|-08|80|0||56","Pacific/Gambier|-09|90|0||125","Etc/UTC|UTC|0|0||","Europe/London|GMT BST|0 -10|01010101010101010101010|1XSp0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|10e6","Europe/Chisinau|EET EEST|-20 -30|01010101010101010101010|1XSo0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0|67e4","Europe/Moscow|MSK|-30|0||16e6","Europe/Volgograd|+04 MSK|-40 -30|01|249a0|10e5","Pacific/Honolulu|HST|a0|0||37e4","Pacific/Chatham|+1345 +1245|-dJ -cJ|01010101010101010101010|1XV20 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0|600","Pacific/Apia|+14 +13|-e0 -d0|010101|1XV20 1a00 1fA0 1a00 1fA0|37e3","Pacific/Fiji|+13 +12|-d0 -c0|010101|1Xnq0 20o0 pc0 2hc0 bc0|88e4","Pacific/Guam|ChST|-a0|0||17e4","Pacific/Marquesas|-0930|9u|0||86e2","Pacific/Pago_Pago|SST|b0|0||37e2","Pacific/Norfolk|+11 +12|-b0 -c0|0101010101010101010101|219P0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0|25e4"],links:["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Bissau","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Monrovia","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|America/Danmarkshavn","Africa/Abidjan|Atlantic/Reykjavik","Africa/Abidjan|Atlantic/St_Helena","Africa/Abidjan|Etc/GMT","Africa/Abidjan|Etc/GMT+0","Africa/Abidjan|Etc/GMT-0","Africa/Abidjan|Etc/GMT0","Africa/Abidjan|Etc/Greenwich","Africa/Abidjan|GMT","Africa/Abidjan|GMT+0","Africa/Abidjan|GMT-0","Africa/Abidjan|GMT0","Africa/Abidjan|Greenwich","Africa/Abidjan|Iceland","Africa/Algiers|Africa/Tunis","Africa/Cairo|Egypt","Africa/Casablanca|Africa/El_Aaiun","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Khartoum|Africa/Blantyre","Africa/Khartoum|Africa/Bujumbura","Africa/Khartoum|Africa/Gaborone","Africa/Khartoum|Africa/Harare","Africa/Khartoum|Africa/Kigali","Africa/Khartoum|Africa/Lubumbashi","Africa/Khartoum|Africa/Lusaka","Africa/Khartoum|Africa/Maputo","Africa/Khartoum|Africa/Windhoek","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Ndjamena","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Europe/Kaliningrad","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|America/Juneau","America/Anchorage|America/Nome","America/Anchorage|America/Sitka","America/Anchorage|America/Yakutat","America/Anchorage|US/Alaska","America/Campo_Grande|America/Cuiaba","America/Caracas|America/Boa_Vista","America/Caracas|America/Guyana","America/Caracas|America/La_Paz","America/Caracas|America/Manaus","America/Caracas|America/Porto_Velho","America/Caracas|Brazil/West","America/Caracas|Etc/GMT+4","America/Chicago|America/Indiana/Knox","America/Chicago|America/Indiana/Tell_City","America/Chicago|America/Knox_IN","America/Chicago|America/Matamoros","America/Chicago|America/Menominee","America/Chicago|America/North_Dakota/Beulah","America/Chicago|America/North_Dakota/Center","America/Chicago|America/North_Dakota/New_Salem","America/Chicago|America/Rainy_River","America/Chicago|America/Rankin_Inlet","America/Chicago|America/Resolute","America/Chicago|America/Winnipeg","America/Chicago|CST6CDT","America/Chicago|Canada
2/Central","America/Chicago|US/Central","America/Chicago|US/Indiana-Starke","America/Denver|America/Boise","America/Denver|America/Cambridge_Bay","America/Denver|America/Edmonton","America/Denver|America/Inuvik","America/Denver|America/Shiprock","America/Denver|America/Yellowknife","America/Denver|Canada/Mountain","America/Denver|MST7MDT","America/Denver|Navajo","America/Denver|US/Mountain","America/Fortaleza|America/Araguaina","America/Fortaleza|America/Argentina/Buenos_Aires","America/Fortaleza|America/Argentina/Catamarca","America/Fortaleza|America/Argentina/ComodRivadavia","America/Fortaleza|America/Argentina/Cordoba","America/Fortaleza|America/Argentina/Jujuy","America/Fortaleza|America/Argentina/La_Rioja","America/Fortaleza|America/Argentina/Mendoza","America/Fortaleza|America/Argentina/Rio_Gallegos","America/Fortaleza|America/Argentina/Salta","America/Fortaleza|America/Argentina/San_Juan","America/Fortaleza|America/Argentina/San_Luis","America/Fortaleza|America/Argentina/Tucuman","America/Fortaleza|America/Argentina/Ushuaia","America/Fortaleza|America/Bahia","America/Fortaleza|America/Belem","America/Fortaleza|America/Buenos_Aires","America/Fortaleza|America/Catamarca","America/Fortaleza|America/Cayenne","America/Fortaleza|America/Cordoba","America/Fortaleza|America/Jujuy","America/Fortaleza|America/Maceio","America/Fortaleza|America/Mendoza","America/Fortaleza|America/Montevideo","America/Fortaleza|America/Paramaribo","America/Fortaleza|America/Punta_Arenas","America/Fortaleza|America/Recife","America/Fortaleza|America/Rosario","America/Fortaleza|America/Santarem","America/Fortaleza|Antarctica/Palmer","America/Fortaleza|Antarctica/Rothera","America/Fortaleza|Atlantic/Stanley","America/Fortaleza|Etc/GMT+3","America/Godthab|America/Nuuk","America/Halifax|America/Glace_Bay","America/Halifax|America/Goose_Bay","America/Halifax|America/Moncton","America/Halifax|America/Thule","America/Halifax|Atlantic/Bermuda","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Lima|America/Bogota","America/Lima|America/Eirunepe","America/Lima|America/Guayaquil","America/Lima|America/Porto_Acre","America/Lima|America/Rio_Branco","America/Lima|Brazil/Acre","America/Lima|Etc/GMT+5","America/Los_Angeles|America/Ensenada","America/Los_Angeles|America/Santa_Isabel","America/Los_Angeles|America/Tijuana","America/Los_Angeles|America/Vancouver","America/Los_Angeles|Canada/Pacific","America/Los_Angeles|Mexico/BajaNorte","America/Los_Angeles|PST8PDT","America/Los_Angeles|US/Pacific","America/Managua|America/Belize","America/Managua|America/Costa_Rica","America/Managua|America/El_Salvador","America/Managua|America/Guatemala","America/Managua|America/Regina","America/Managua|America/Swift_Current","America/Managua|America/Tegucigalpa","America/Managua|Canada/Saskatchewan","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|America/Bahia_Banderas","America/Mexico_City|America/Merida","America/Mexico_City|America/Monterrey","America/Mexico_City|Mexico/General","America/New_York|America/Detroit","America/New_York|America/Fort_Wayne","America/New_York|America/Grand_Turk
vendor: 2,561 bytes, line 2
2","America/New_York|America/Indiana/Indianapolis","America/New_York|America/Indiana/Marengo","America/New_York|America/Indiana/Petersburg","America/New_York|America/Indiana/Vevay","America/New_York|America/Indiana/Vincennes","America/New_York|America/Indiana/Winamac","America/New_York|America/Indianapolis","America/New_York|America/Iqaluit","America/New_York|America/Kentucky/Louisville","America/New_York|America/Kentucky/Monticello","America/New_York|America/Louisville","America/New_York|America/Montreal","America/New_York|America/Nassau","America/New_York|America/Nipigon","America/New_York|America/Pangnirtung","America/New_York|America/Port-au-Prince","America/New_York|America/Thunder_Bay","America/New_York|America/Toronto","America/New_York|Canada/Eastern","America/New_York|EST5EDT","America/New_York|US/East-Indiana","America/New_York|US/Eastern","America/New_York|US/Michigan","America/Noronha|Atlantic/South_Georgia","America/Noronha|Brazil/DeNoronha","America/Noronha|Etc/GMT+2","America/Panama|America/Atikokan","America/Panama|America/Cancun","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Panama|America/Jamaica","America/Panama|EST","America/Panama|Jamaica","America/Phoenix|America/Creston","America/Phoenix|America/Dawson_Creek","America/Phoenix|America/Fort_Nelson","America/Phoenix|America/Hermosillo","America/Phoenix|MST","America/Phoenix|US/Arizona","America/Santiago|Chile/Continental","America/Santo_Domingo|America/Anguilla","America/Santo_Domingo|America/Antigua","America/Santo_Domingo|America/Aruba","America/Santo_Domingo|America/Barbados","America/Santo_Domingo|America/Blanc-Sablon","America/Santo_Domingo|America/Curacao","America/Santo_Domingo|America/Dominica","America/Santo_Domingo|America/Grenada","America/Santo_Domingo|America/Guadeloupe","America/Santo_Domingo|America/Kralendijk","America/Santo_Domingo|America/Lower_Princes","America/Santo_Domingo|America/Marigot","America/Santo_Domingo|America/Martinique","America/Santo_Domingo|America/Montserrat","America/Santo_Domingo|America/Port_of_Spain","America/Santo_Domingo|America/Puerto_Rico","America/Santo_Domingo|America/St_Barthelemy","America/Santo_Domingo|America/St_Kitts","America/Santo_Domingo|America/St_Lucia","America/Santo_Domingo|America/St_Thomas","America/Santo_Domingo|America/St_Vincent","America/Santo_Domingo|America/Tortola","America/Santo_Domingo|America/Virgin","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Whitehorse|America/Dawson","America/Whitehorse|Canada/Yukon","Asia/
2Almaty|Asia/Qostanay","Asia/Bangkok|Antarctica/Davis","Asia/Bangkok|Asia/Barnaul","Asia/Bangkok|Asia/Ho_Chi_Minh","Asia/Bangkok|Asia/Hovd","Asia/Bangkok|Asia/Krasnoyarsk","Asia/Bangkok|Asia/Novokuznetsk","Asia/Bangkok|Asia/Novosibirsk","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Saigon","Asia/Bangkok|Asia/Tomsk","Asia/Bangkok|Asia/Vientiane","Asia/Bangkok|Etc/GMT-7","Asia/Bangkok|Indian/Christmas","Asia/Chita|Asia/Dili","Asia/Chita|Asia/Khandyga","Asia/Chita|Asia/Yakutsk","Asia/Chita|Etc/GMT-9","Asia/Chita|Pacific/Palau","Asia/Dhaka|Asia/Bishkek","Asia/Dhaka|Asia/Dacca","Asia/Dhaka|Asia/Kashgar","Asia/Dhaka|Asia/Omsk","Asia/Dhaka|Asia/Thimbu","Asia/Dhaka|Asia/Thimphu","Asia/Dhaka|Asia/Urumqi","Asia/Dhaka|Etc/GMT-6","Asia/Dhaka|Indian/Chagos","Asia/Dubai|Asia/Baku","Asia/Dubai|Asia/Muscat","Asia/Dubai|Asia/Tbilisi","Asia/Dubai|Asia/Yerevan","Asia/Dubai|Etc/GMT-4","Asia/Dubai|Europe/Astrakhan","Asia/Dubai|Europe/Samara","Asia/Dubai|Europe/Saratov","Asia/Dubai|Europe/Ulyanovsk","Asia/Dubai|Indian/Mahe","Asia/Dubai|Indian/Mauritius","Asia/Dubai|Indian/Reunion","Asia/Gaza|Asia/Hebron","Asia/Hong_Kong|Hongkong","Asia/Jakarta|Asia/Pontianak","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kamchatka|Asia/Anadyr","Asia/Kamchatka|Etc/GMT-12","Asia/Kamchatka|Kwajalein","Asia/Kamchatka|Pacific/Funafuti","Asia/Kamchatka|Pacific/Kwajalein","Asia/Kamchatka|Pacific/Majuro","Asia/Kamchatka|Pacific/Nauru","Asia/Kamchatka|Pacific/Tarawa","Asia/Kamchatka|Pacific/Wake","Asia/Kamchatka|Pacific/Wallis","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Brunei","Asia/Kuala_Lumpur|Asia/Choibalsan","Asia/Kuala_Lumpur|Asia/Irkutsk","Asia/Kuala_Lumpur|Asia/Kuching","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Asia/Ulaanbaatar","Asia/Kuala_Lumpur|Asia/Ulan_Bator","Asia/Kuala_Lumpur|Etc/GMT-8","Asia/Kuala_Lumpur|Singapore","Asia/Makassar|Asia/Ujung_Pandang","Asia/Rangoon|Asia/Yangon","Asia/Rangoon|Indian/Cocos","Asia/Sakhalin|Asia/Magadan","Asia/Sakhalin|Asia/Srednekolymsk","Asia/Sakhalin|Etc/GMT-11","Asia/Sakhalin|Pacific/Bougainville","Asia/Sakhalin|Pacific/Efate","Asia/Sakhalin|Pacific/Guadalcanal","Asia/Sakhalin|Pacific/Kosrae","Asia/Sakhalin|Pacific/Noumea","Asia/Sakhalin|Pacific/Pohnpei","Asia/Sakhalin|Pacific/Ponape","Asia/Seoul|Asia/Pyongyang","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|Asia/Macao","Asia/Shanghai|Asia/Macau","Asia/Shanghai|Asia/Taipei","Asia/Shanghai|PRC","Asia/Shanghai|ROC","Asia/Tashkent|Antarctica/Mawson","Asia/Tashkent|Asia/Aqtau","Asia/Tashkent|Asia/Aqtobe","Asia/Tashkent|Asia/Ashgabat","Asia/Tashkent|Asia/Ashkhabad","Asia/Tashkent|Asia/Atyrau","Asia/Tashkent|Asia/Dushanbe","Asia/Tashkent|Asia/Oral","Asia/Tashkent|Asia/Qyzylorda","Asia/Tashkent|Asia/Samarkand","Asia/Tashkent|Asia/Yekaterinburg","Asia/Tashkent|Etc/GMT-5","Asia/Tashkent|Indian/Kerguelen","Asia/Tashkent|Indian/Maldives","Asia/Tehran|Iran","Asia/Tokyo|Japan","Asia/Vladivostok|Antarctica/DumontDUrville","Asia/Vladivostok|Asia/Ust-Nera","Asia/Vladivostok|Etc/GMT-10","Asia/Vladivostok|Pacific/Chuuk","Asia/Vladivostok|Pacific/Port_Moresby","Asia/Vladivostok|Pacific/Truk","Asia/Vladivostok|Pacific/Yap","Atlantic/Cape_Verde|Etc/GMT+1","Australia/Adelaide|Australia/Broken_Hill","Australia/Adelaide|Australia/South","Australia/Adelaide|Australia/Yancowinna","Australia/Brisbane|Australia/Lindeman","Australia/Brisbane|Australia/Queensland","Australia/Darwin|Australia/North","Australia/Lord_Howe|Australia/LHI","Australia/Perth|Australia/West","Australia/Sydney|Antarctica/Macquarie","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/Currie","Australia/Sydney|Australia/Hobart","Australia/Sydney|Australia/Melbourne","Australia/Sydney|Australia/NSW","Australia/Sydney|Australia/Tasmania","Australia/Sydney|Australia/Victoria","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Athens|Asia/Famagusta","Europe/Athens|Asia/Nicosia","Europe/Athens|EET","Europe/Athens|Europe/Bucharest","Europe/Athens|Europe/Helsinki","Europe/Athens|Europe/Kiev","Europe/Athens|Europe/Kyiv","Europe/Athens|Europe/Mariehamn","Europe/Athens|Europe/Nicosia","Europe/Athens|Europe/Riga","Europe/Athens|Europe/Sofia","Europe/Athens|Europe/Tallinn","Europe/Athens|Europe/Uzhgorod","Europe/Athens|Europe/Vilnius","Europe/Athens|Europe/Zaporozhye","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Istanbul|Antarctica/Syowa","Europe/Istanbul|Asia/Aden","Europe/Istanbul|Asia/Baghdad","Europe/Istanbul|Asia/Bahrain","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Asia/Kuwait","Europe/Istanbul|Asia/Qatar","Europe/Istanbul|Asia/Riyadh","Europe/Istanbul|Etc/GMT-3","Europe/Istanbul|Europe/Minsk","Europe/Istanbul|Turkey","Europe/Lisbon|Atlantic/Canary","Europe/Lisbon|Atlantic/Faeroe","Europe/Lisbon|Atlantic/Faroe","Europe/Lisbon|Atlantic/Madeira","Europe/Lisbon|Portugal","Europe/Lisbon|WET","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|Europe/Kirov","Europe/Moscow|Europe/Simferopol","Europe/Moscow|W-SU","Europe/Paris|Africa/Ceuta","Europe/Paris|Arctic/Longyearbyen","Europe/Paris|Atlantic/Jan_Mayen","Europe/Paris|CET","Europe/Paris|Europe/Amsterdam","Europe/Paris|Europe/Andorra","Europe/Paris|Europe/Belgrade","Europe/Paris|Europe/Berlin","Europe/Paris|Europe/Bratislava","Europe/Paris|Europe/Brussels","Europe/Paris|Europe/Budapest","Europe/Paris|Europe/Busingen","Europe/Paris|Europe/Copenhagen","Europe/Paris|Europe/Gibraltar","Europe/Paris|Europe/Ljubljana","Europe/Paris|Europe/Luxembourg","Europe/Paris|Europe/Madrid","Europe/Paris|Europe/Malta","Europe/Paris|Europe/Monaco","Europe/Paris|Europe/Oslo","Europe/Paris|Europe/Podgorica","Europe/Paris|Europe/Prague","Europe/Paris|Europe/Rome","Europe/Paris|Europe/San_Marino","Europe/Paris|Europe/Sarajevo","Europe/Paris|Europe/Skopje","Europe/Paris|Europe/Stockholm","Europe/Paris|Europe/Tirane","Europe/Paris|Europe/Vaduz","Europe/Paris|Europe/Vatican","Europe/Paris|Europe/Vienna","Europe/Paris|Europe/Warsaw","Europe/Paris|Europe/Zagreb","Europe/Paris|Europe/Zurich","Europe/Paris|MET","Europe/Paris|Poland","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Galapagos|Etc/GMT+6","Pacific/Gambier|Etc/GMT+9","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|HST","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kiritimati|Etc/GMT-14","Pacific/Niue|Etc/GMT+11","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Pitcairn|Etc/GMT+8","Pacific/Tahiti|Etc/GMT+10","Pacific/Tahiti|Pacific/Rarotonga","Pacific/Tongatapu|Etc/GMT-13","Pacific/Tongatapu|Pacific/Enderbury","Pacific/Tongatapu|Pacific/Fakaofo","Pacific/Tongatapu|Pacific/Kanton"],countries:["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Puerto_Rico America/Antigua","AI|America/Puerto_Rico America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Troll Antarctica/Vostok Pacific/Auckland Pacific/Port_Moresby Asia/Riyadh Antarctica/McMurdo Antarctica/DumontDUrville Antarctica/Syowa","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Puerto_Rico America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Puerto_Rico America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Kuching Asia/Brunei","BO|America/La_Paz","BQ|America/Puerto_Rico America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Toronto America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Toronto America/Iqaluit America/Winnipeg America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Inuvik America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver America/Panama America/Puerto_Rico America/Phoenix America/Blanc-Sablon America/Atikokan America/Creston","CC|Asia/Yangon Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago
vendor: 7,127 bytes, line 2
2 America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Puerto_Rico America/Curacao","CX|Asia/Bangkok Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Berlin Europe/Copenhagen","DM|America/Puerto_Rico America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Kosrae Pacific/Port_Moresby Pacific/Guadalcanal Pacific/Chuuk Pacific/Pohnpei","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Puerto_Rico America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Abidjan Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Puerto_Rico America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Africa/Abidjan Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Kanton Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Puerto_Rico America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Puerto_Rico America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Brussels Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Paris Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Puerto_Rico America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Tarawa Pacific/Kwajalein Pacific/Majuro","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Puerto_Rico America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Chihuahua America/Ciudad_Juarez America/Ojinaga America/Mazatlan America/Bahia_Banderas America/Hermosillo America/Tijuana","MY|Asia/Kuching Asia/Singapore Asia/Kuala_Lumpur","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Brussels Europe/Amsterdam","NO|Europe/Berlin Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Asia/Dubai Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Asia/Dubai Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Berlin Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Berlin Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Puerto_Rico America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Asia/Dubai Indian/Maldives Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Puerto_Rico America/Port_of_Spain","TV|Pacific/Tarawa Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kyiv","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Tarawa Pacific/Midway Pacific/Wake","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Puerto_Rico America/St_Vincent","VE|America/Caracas","VG|America/Puerto_Rico America/Tortola","VI|America/Puerto_Rico America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Tarawa Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}
vendor: 11,373 bytes, line 2
2),e}))},86178:function(e,t,r){(e=r.nmd(e)).exports=function(){"use strict";var t,r;function n(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function p(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,r,n){return Yr(e,t,r,n,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function _(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=g(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function y(e){var t=f(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var v=n.momentProperties=[],b=!1;function x(e,t){var r,n,i,o=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)c(i=t[n=v[r]])||(e[n]=i);return e}function w(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,n.updateOffset(this),b=!1)}function A(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===n.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var r=!0;return p((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){var i,o,a,l=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"===typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}var T,P={};function C(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),P[e]||(S(t),P[e]=!0)}function I(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,r;for(r in e)s(e,r)&&(I(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function k(e,t){var r,n=p({},e);for(r in t)s(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},p(n[r],e[r]),p(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&a(e[r])&&(n[r]=p({},n[r]));return n}function O(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return I(n)?n.call(t,r):n}function D(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},j={};function B(e,t,r,n){var i=n;"string"===typeof n&&(i=function(){return this[n]()}),e&&(j[e]=i),t&&(j[t[0]]=function(){return D(i.apply(this,arguments),t[1],t[2])}),r&&(j[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(e){var t,r,n=e.match(N);for(t=0,r=n.length;t<r;t++)j[n[t]]?n[t]=j[n[t]]:n[t]=U(n[t]);return function(t){var i,o="";for(i=0;i<r;i++)o+=I(n[i])?n[i].call(t,e):n[i];return o}}function q(e,t){return e.isValid()?(t=H(t,e.localeData()),z[t]=z[t]||V(t),z[t](e)):e.localeData().invalidDate()}function H(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;r>=0&&F.test(e);)e=e.replace(F,n),F.lastIndex=0,r-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(N).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Y="Invalid date";function Z(){return this._invalidDate}var K="%d",X=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,t,r,n){var i=this._relativeTime[r];return I(i)?i(e,t,r,n):i.replace(/%d/i,e)}function ee(e,t){var r=this._relativeTime[e>0?"future":"past"];return I(r)?r(t):r.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ne(e){var t,r,n={};for(r in e)s(e,r)&&(t=re(r))&&(n[t]=e[r]);return n}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:ie[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}var ae,se=/\d/,le=/\d\d/,ce=/\d{3}/,ue=/\d{4}/,de=/[+-]?\d{6}/,he=/\d\d?/,pe=/\d\d\d\d?/,fe=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,_e=/[+-]?\d{1,6}/,ye=/\d+/,ve=/[+-]?\d+/,be=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,Ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,Ee=/^([1-9]\d|\d)/;function Te(e,t,r){ae[e]=I(t)?t:function(e,n){return e&&r?r:t}}function Pe(e,t){return s(ae,e)?ae[e](t._strict,t._locale):new RegExp(Ce(e))}function Ce(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ke(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=Me(t)),r}ae={};var Oe={};function Re(e,t){var r,n,i=t;for("string"===typeof e&&(e=[e]),u(t)&&(i=function(e,r){r[t]=ke(e)}),n=e.length,r=0;r<n;r++)Oe[e[r]]=i}function Le(e,t){Re(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function De(e,t,r){null!=t&&s(Oe,e)&&Oe[e](t,r._a,r,e)}function Ne(e){return e%4===0&&e%100!==0||e%400===0}var Fe=0,ze=1,je=2,Be=3,Ue=4,Ve=5,qe=6,He=7,Ge=8;function We(e){return Ne(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Te("Y",ve),Te("YY",he,le),Te("YYYY",ge,ue),Te("YYYYY",_e,de),Te("YYYYYY",_e,de),Re(["YYYYY","YYYYYY"],Fe),Re("YYYY",(function(e,t){t[Fe]=2===e.length?n.parseTwoDigitYear(e):ke(e)})),Re("YY",(function(e,t){t[Fe]=n.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[Fe]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return ke(e)+(ke(e)>68?1900:2e3)};var Ye,Ze=Xe("FullYear",!0);function Ke(){return Ne(this.year())}function Xe(e,t){return function(r){return null!=r?(Qe(this,e,r),n.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Qe(e,t,r){var n,i,o,a,s;if(e.isValid()&&!isNaN(r)){switch(n=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(i?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(i?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(i?n.setUTCHours(r):n.setHours(r));case"Date":return void(i?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=r,a=e.month(),s=29!==(s=e.date())||1!==a||Ne(o)?s:28,i?n.setUTCFullYear(o,a,s):n.setFullYear(o,a,s)}}function $e(e){return I(this[e=re(e)])?this[e]():this}function et(e,t){if("object"===typeof e){var r,n=oe(e=ne(e)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(I(this[e=re(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=tt(t,12);return e+=(t-r)/12,1===r?Ne(e)?29:28:31-r%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1}
vendor: 33,443 bytes, line 2
2)),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Te("M",he,Se),Te("MM",he,le),Te("MMM",(function(e,t){return t.monthsShortRegex(e)})),Te("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[ze]=ke(e)-1})),Re(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[ze]=i:g(r).invalidMonth=e}));var nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=Ae,st=Ae;function lt(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ct(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))||-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))||-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null}function dt(e,t,r){var n,i,o;if(this._monthsParseExact)return ut.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=f([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function ht(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ke(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var r=t,n=e.date();return n=n<29?n:Math.min(n,rt(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function pt(e){return null!=e?(ht(this,e),n.updateOffset(this,!0),this):Je(this,"Month")}function ft(){return rt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,r,n,i,o=[],a=[],s=[];for(t=0;t<12;t++)r=f([2e3,t]),n=Ie(this.monthsShort(r,"")),i=Ie(this.months(r,"")),o.push(n),a.push(i),s.push(i),s.push(n);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function yt(e,t,r,n,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,o,a),s}function vt(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,r){var n=7+t-r;return-(7+vt(e,0,n).getUTCDay()-t)%7+n-1}function xt(e,t,r,n,i){var o,a,s=1+7*(t-1)+(7+r-n)%7+bt(e,n,i);return s<=0?a=We(o=e-1)+s:s>We(e)?(o=e+1,a=s-We(e)):(o=e,a=s),{year:o,dayOfYear:a}}function wt(e,t,r){var n,i,o=bt(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?n=a+At(i=e.year()-1,t,r):a>At(e.year(),t,r)?(n=a-At(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function At(e,t,r){var n=bt(e,t,r),i=bt(e+1,t,r);return(We(e)-n+i)/7}function St(e){return wt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Te("w",he,Se),Te("ww",he,le),Te("W",he,Se),Te("WW",he,le),Le(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=ke(e)}));var Et={dow:0,doy:6};function Tt(){return this._week.dow}function Pt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Mt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function kt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Te("d",he),Te("e",he),Te("E",he),Te("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Te("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Te("dddd",(function(e,t){return t.weekdaysRegex(e)})),Le(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:g(r).invalidWeekday=e})),Le(["d","e","E"],(function(e,t,r,n){t[n]=ke(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nt=Ae,Ft=Ae,zt=Ae;function jt(e,t){var r=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(r,this._week.dow):e?r[e.day()]:r}function Bt(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Vt(e,t,r){var n,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._shortWeekdaysParse,a))||-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))||-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))||-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null}function qt(e,t,r){var n,i,o;if(this._weekdaysParseExact)return Vt.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=f([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Ht(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=kt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Nt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)r=f([2e3,1]).day(t),n=Ie(this.weekdaysMin(r,"")),i=Ie(this.weekdaysShort(r,"")),o=Ie(this.weekdays(r,"")),a.push(n),s.push(i),l.push(o),c.push(n),c.push(i),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function $t(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function er(e,t){return t._meridiemParse}function tr(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Jt),B("k",["kk",2],0,Qt),B("hmm",0,0,(function(){return""+Jt.apply(this)+D(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Jt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),$t("a",!0),$t("A",!1),Te("a",er),Te("A",er),Te("H",he,Ee),Te("h",he,Se),Te("k",he,Se),Te("HH",he,le),Te("hh",he,le),Te("kk",he,le),Te("hmm",pe),Te("hmmss",fe),Te("Hmm",pe),Te("Hmmss",fe),Re(["H","HH"],Be),Re(["k","kk"],(function(e,t,r){var n=ke(e);t[Be]=24===n?0:n})),Re(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),Re(["h","hh"],(function(e,t,r){t[Be]=ke(e),g(r).bigHour=!0})),Re("hmm",(function(e,t,r){var n=e.length-2;t[Be]=ke(e.substr(0,n)),t[Ue]=ke(e.substr(n)),g(r).bigHour=!0})),Re("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Be]=ke(e.substr(0,n)),t[Ue]=ke(e.substr(n,2)),t[Ve]=ke(e.substr(i)),g(r).bigHour=!0})),Re("Hmm",(function(e,t,r){var n=e.length-2;t[Be]=ke(e.substr(0,n)),t[Ue]=ke(e.substr(n))})),Re("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[Be]=ke(e.substr(0,n)),t[Ue]=ke(e.substr(n,2)),t[Ve]=ke(e.substr(i))}));var rr=/[ap]\.?m?\.?/i,nr=Xe("Hours",!0);function ir(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var or,ar={calendar:R,longDateFormat:G,invalidDate:Y,ordinal:K,dayOfMonthOrdinalParse:X,relativeTime:Q,months:nt,monthsShort:it,week:Et,weekdays:Rt,weekdaysMin:Dt,weekdaysShort:Lt,meridiemParse:rr},sr={},lr={};function cr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function ur(e){return e?e.toLowerCase().replace("_","-"):e}function dr(e){for(var t,r,n,i,o=0;o<e.length;){for(t=(i=ur(e[o]).split("-")).length,r=(r=ur(e[o+1]))?r.split("-"):null;t>0;){if(n=pr(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&cr(i,r)>=t-1)break;t--}o++}return or}function hr(e){return!(!e||!e.match("^[^/\\\\]*$"))}function pr(t){var r=null;if(void 0===sr[t]&&e&&e.exports&&hr(t))try{r=or._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),fr(r)}catch(n){sr[t]=null}return sr[t]}function fr(e,t){var r;return e&&((r=c(t)?_r(e):mr(e,t))?or=r:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),or._abbr}function mr(e,t){if(null!==t){var r,n=ar;if(t.abbr=e,null!=sr[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=sr[e]._config;else if(null!=t.parentLocale)if(null!=sr[t.parentLocale])n=sr[t.parentLocale]._config;else{if(null==(r=pr(t.parentLocale)))return lr[t.parentLocale]||(lr[t.parentLocale]=[]),lr[t.parentLocale].push({name:e,config:t}),null;n=r._config}return sr[e]=new O(k(n,t)),lr[e]&&lr[e].forEach((function(e){mr(e.name,e.config)})),fr(e),sr[e]}return delete sr[e],null}function gr(e,t){if(null!=t){var r,n,i=ar;null!=sr[e]&&null!=sr[e].parentLocale?sr[e].set(k(sr[e]._config,t)):(null!=(n=pr(e))&&(i=n._config),t=k(i,t),null==n&&(t.abbr=e),(r=new O(t)).parentLocale=sr[e],sr[e]=r),fr(e)}else null!=sr[e]&&(null!=sr[e].parentLocale?(sr[e]=sr[e].parentLocale,e===fr()&&fr(e)):null!=sr[e]&&delete sr[e]);return sr[e]}function _r(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return or;if(!o(e)){if(t=pr(e))return t;e=[e]}return dr(e)}function yr(){return T(sr)}function vr(e){var t,r=e._a;return r&&-2===g(e).overflow&&(t=r[ze]<0||r[ze]>11?ze:r[je]<1||r[je]>rt(r[Fe],r[ze])?je:r[Be]<0||r[Be]>24||24===r[Be]&&(0!==r[Ue]||0!==r[Ve]||0!==r[qe])?Be:r[Ue]<0||r[Ue]>59?Ue:r[Ve]<0||r[Ve]>59?Ve:r[qe]<0||r[qe]>999?qe:-1,g(e)._overflowDayOfYear&&(t<Fe||t>je)&&(t=je),g(e)._overflowWeeks&&-1===t&&(t=He),g(e)._overflowWeekday&&-1===t&&(t=Ge),g(e).overflow=t),e}var br=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wr=/Z|[+-]\d\d(?::?\d\d)?/,Ar=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Er=/^\/?Date\((-?\d+)/i,Tr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cr(e){var t,r,n,i,o,a,s=e._i,l=br.exec(s)||xr.exec(s),c=Ar.length,u=Sr.length;if(l){for(g(e).iso=!0,t=0,r=c;t<r;t++)if(Ar[t][1].exec(l[1])){i=Ar[t][0],n=!1!==Ar[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,r=u;t<r;t++)if(Sr[t][1].exec(l[3])){o=(l[2]||" ")+Sr[t][0];break}if(null==o)return void(e._isValid=!1)}if(!n&&null!=o)return void(e._isValid=!1);if(l[4]){if(!wr.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Br(e)}else e._isValid=!1}function Ir(e,t,r,n,i,o){var a=[Mr(e),it.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Mr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Or(e,t,r){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(r).weekdayMismatch=!0,r._isValid=!1,!1)}function Rr(e,t,r){if(e)return Pr[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}function Lr(e){var t,r=Tr.exec(kr(e._i));if(r){if(t=Ir(r[4],r[3],r[2],r[5],r[6],r[7]),!Or(r[1],t,e))return;e._a=t,e._tzm=Rr(r[8],r[9],r[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Dr(e){var t=Er.exec(e._i);null===t?(Cr(e),!1===e._isValid&&(delete e._isValid,Lr(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Nr(e,t,r){return null!=e?e:null!=t?t:r}function Fr(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zr(e){var t,r,n,i,o,a=[];if(!e._d){for(n=Fr(e),e._w&&null==e._a[je]&&null==e._a[ze]&&jr(e),null!=e._dayOfYear&&(o=Nr(e._a[Fe],n[Fe]),(e._dayOfYear>We(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),r=vt(o,0,e._dayOfYear),e._a[ze]=r.getUTCMonth(),e._a[je]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[Ue]&&0===e._a[Ve]&&0===e._a[qe]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?vt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function jr(e){var t,r,n,i,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,r=Nr(t.GG,e._a[Fe],wt(Zr(),1,4).year),n=Nr(t.W,1),((i=Nr(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=wt(Zr(),o,a),r=Nr(t.gg,e._a[Fe],c.year),n=Nr(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),n<1||n>At(r,o,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(r,n,i,o,a),e._a[Fe]=s.year,e._dayOfYear=s.dayOfYear)}function Br(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],g(e).empty=!0;var t,r,i,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=H(e._f,e._locale).match(N)||[]).length,t=0;t<l;t++)o=i[t],(r=(c.match(Pe(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(r))).length>0&&g(e).unusedInput.push(a),c=c.slice(c.indexOf(r)+r.length),d+=r.length),j[o]?(r?g(e).empty=!1:g(e).unusedTokens.push(o),De(o,r,e)):e._strict&&!r&&g(e).unusedTokens.push(o);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[Be]<=12&&!0===g(e).bigHour&&e._a[Be]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Be]=Ur(e._locale,e._a[Be],e._meridiem),null!==(s=g(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(s,e._a[Fe])),zr(e),vr(e)}else Lr(e);else Cr(e)}function Ur(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Vr(e){var t,r,n,i,o,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Br(t),_(t)&&(a=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<n&&(n=o,r=t):(null==n||o<n||a)&&(n=o,r=t,a&&(s=!0));p(e,r||t)}function qr(e){if(!e._d){var t=ne(e._i),r=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zr(e)}}function Hr(e){var t=new w(vr(Gr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gr(e){var t=e._i,r=e._f;return e._locale=e._locale||_r(e._l),null===t||void 0===r&&""===t?y({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),A(t)?new w(vr(t)):(d(t)?e._d=t:o(r)?Vr(e):r?Br(e):Wr(e),_(e)||(e._d=null),e))}function Wr(e){var t=e._i;c(t)?e._d=new Date(n.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Dr(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),zr(e)):a(t)?qr(e):u(t)?e._d=new Date(t):n.createFromInputFallback(e)}function Yr(e,t,r,n,i){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,Hr(s)}function Zr(e,t,r,n){return Yr(e,t,r,n,!1)}n.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Kr=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Xr=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Jr(e,t){var r,n;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Zr();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}function Qr(){return Jr("isBefore",[].slice.call(arguments,0))}function $r(){return Jr("isAfter",[].slice.call(arguments,0))}var en=function(){return Date.now?Date.now():+new Date},tn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rn(e){var t,r,n=!1,i=tn.length;for(t in e)if(s(e,t)&&(-1===Ye.call(tn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[tn[r]]){if(n)return!1;parseFloat(e[tn[r]])!==ke(e[tn[r]])&&(n=!0)}return!0}function nn(){return this._isValid}function on(){return Cn(NaN)}function an(e){var t=ne(e),r=t.year||0,n=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rn(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*n+12*r,this._data={},this._locale=_r(),this._bubble()}function sn(e){return e instanceof an}function ln(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cn(e,t,r){var n,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&ke(e[n])!==ke(t[n]))&&a++;return a+o}function un(e,t){B(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+D(~~(e/60),2)+t+D(~~e%60,2)}))}un("Z",":"),un("ZZ",""),Te("Z",xe),Te("ZZ",xe),Re(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=hn(xe,e)}));var dn=/([\+\-]|\d\d)/gi;function hn(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(dn)||["-",0,0])[1]+ke(r[2]))?0:"+"===r[0]?n:-n}function pn(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(A(e)||d(e)?e.valueOf():Zr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):Zr(e).local()}function fn(e){return-Math.round(e._d.getTimezoneOffset())}function mn(e,t,r){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=hn(xe,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=fn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Rn(this,Cn(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:fn(this)}function gn(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _n(e){return this.utcOffset(0,e)}function yn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fn(this),"m")),this}function vn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hn(be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bn(e){return!!this.isValid()&&(e=e?Zr(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function xn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Gr(t))._a?(e=t._isUTC?f(t._a):Zr(t._a),this._isDSTShifted=this.isValid()&&cn(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function An(){return!!this.isValid()&&!this._isUTC}function Sn(){return!!this.isValid()&&this._isUTC}function En(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Tn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Pn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cn(e,t){var r,n,i,o=e,a=null;return sn(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Tn.exec(e))?(r="-"===a[1]?-1:1,o={y:0,d:ke(a[je])*r,h:ke(a[Be])*r,m:ke(a[Ue])*r,s:ke(a[Ve])*r,ms:ke(ln(1e3*a[qe]))*r}):(a=Pn.exec(e))?(r="-"===a[1]?-1:1,o={y:In(a[2],r),M:In(a[3],r),w:In(a[4],r),d:In(a[5],r),h:In(a[6],r),m:In(a[7],r),s:In(a[8],r)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=kn(Zr(o.from),Zr(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),n=new an(o),sn(e)&&s(e,"_locale")&&(n._locale=e._locale),sn(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function In(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Mn(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function kn(e,t){var r;return e.isValid()&&t.isValid()?(t=pn(t,e),e.isBefore(t)?r=Mn(e,t):((r=Mn(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function On(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Rn(this,Cn(r,n),e),this}}function Rn(e,t,r,i){var o=t._milliseconds,a=ln(t._days),s=ln(t._months);e.isValid()&&(i=null==i||i,s&&ht(e,Je(e,"Month")+s*r),a&&Qe(e,"Date",Je(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&n.updateOffset(e,a||s))}Cn.fn=an.prototype,Cn.invalid=on;var Ln=On(1,"add"),Dn=On(-1,"subtract");function Nn(e){return"string"===typeof e||e instanceof String}function Fn(e){return A(e)||d(e)||Nn(e)||u(e)||jn(e)||zn(e)||null===e||void 0===e}function zn(e){var t,r,n=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)r=o[t],i=i||s(e,r);return n&&i}function jn(e){var t=o(e),r=!1;return t&&(r=0===e.filter((function(t){return!u(t)&&Nn(e)})).length),t&&r}function Bn(e){var t,r,n=a(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)r=o[t],i=i||s(e,r);return n&&i}function Un(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Vn(e,t){1===arguments.length&&(arguments[0]?Fn(arguments[0])?(e=arguments[0],t=void 0):Bn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Zr(),i=pn(r,this).startOf("day"),o=n.calendarFormat(this,i)||"sameElse",a=t&&(I(t[o])?t[o].call(this,r):t[o]);return this.format(a||this.localeData().calendar(o,this,Zr(r)))}function qn(){return new w(this)}function Hn(e,t){var r=A(e)?e:Zr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())}function Gn(e,t){var r=A(e)?e:Zr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())}function Wn(e,t,r,n){var i=A(e)?e:Zr(e),o=A(t)?t:Zr(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(o,r):!this.isAfter(o,r))}function Yn(e,t){var r,n=A(e)?e:Zr(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Zn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xn(e,t,r){var n,i,o;if(!this.isValid())return NaN;if(!(n=pn(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jn(this,n)/12;break;case"month":o=Jn(this,n);break;case"quarter":o=Jn(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-i)/864e5;break;case"week":o=(this-n-i)/6048e5;break;default:o=this-n}return r?o:Me(o)}function Jn(e,t){if(e.date()<t.date())return-Jn(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Qn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $n(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?q(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(r,"Z")):q(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(e+t+r+n)}function ti(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=q(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(A(e)&&e.isValid()||Zr(e).isValid())?Cn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ni(e){return this.from(Zr(),e)}function ii(e,t){return this.isValid()&&(A(e)&&e.isValid()||Zr(e).isValid())?Cn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Zr(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=_r(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ci=1e3,ui=60*ci,di=60*ui,hi=3506328*di;function pi(e,t){return(e%t+t)%t}function fi(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-hi:new Date(e,t,r).valueOf()}function mi(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-hi:Date.UTC(e,t,r)}function gi(e){var t,r;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?mi:fi,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,ui);break;case"second":t=this._d.valueOf(),t-=pi(t,ci)}return this._d.setTime(t),n.updateOffset(this,!0),this}function _i(e){var t,r;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?mi:fi,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,491 bytes, line 2
2case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-pi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-pi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-pi(t,ci)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function vi(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function xi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ai(){return this.isValid()?this.toISOString():null}function Si(){return _(this)}function Ei(){return p({},g(this))}function Ti(){return g(this).overflow}function Pi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ci(e,t){var r,i,o,a=this._eras||_r("en")._eras;for(r=0,i=a.length;r<i;++r)switch("string"===typeof a[r].since&&(o=n(a[r].since).startOf("day"),a[r].since=o.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":o=n(a[r].until).startOf("day").valueOf(),a[r].until=o.valueOf()}return a}function Ii(e,t,r){var n,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([o,a,s].indexOf(e)>=0)return l[n]}function Mi(e,t){var r=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function ki(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""}function Oi(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""}function Ri(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""}function Li(){var e,t,r,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-n(o[e].since).year())*r+o[e].offset;return this.year()}function Di(e){return s(this,"_erasNameRegex")||Vi.call(this),e?this._erasNameRegex:this._erasRegex}function Ni(e){return s(this,"_erasAbbrRegex")||Vi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fi(e){return s(this,"_erasNarrowRegex")||Vi.call(this),e?this._erasNarrowRegex:this._erasRegex}function zi(e,t){return t.erasAbbrRegex(e)}function ji(e,t){return t.erasNameRegex(e)}function Bi(e,t){return t.erasNarrowRegex(e)}function Ui(e,t){return t._eraYearOrdinalRegex||ye}function Vi(){var e,t,r,n,i,o=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r=Ie(c[e].name),n=Ie(c[e].abbr),i=Ie(c[e].narrow),a.push(r),o.push(n),s.push(i),l.push(r),l.push(n),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function qi(e,t){B(0,[e,e.length],0,t)}function Hi(e){return Xi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return At(this.year(),1,4)}function Yi(){return At(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return At(this.year(),e.dow,e.doy)}function Ki(){var e=this.localeData()._week;return At(this.weekYear(),e.dow,e.doy)}function Xi(e,t,r,n,i){var o;return null==e?wt(this,n,i).year:(t>
vendor: 9,565 bytes, line 2
2(o=At(e,n,i))&&(t=o),Ji.call(this,e,t,r,n,i))}function Ji(e,t,r,n,i){var o=xt(e,t,r,n,i),a=vt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Te("N",zi),Te("NN",zi),Te("NNN",zi),Te("NNNN",ji),Te("NNNNN",Bi),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?g(r).era=i:g(r).invalidEra=e})),Te("y",ye),Te("yy",ye),Te("yyy",ye),Te("yyyy",ye),Te("yo",Ui),Re(["y","yy","yyy","yyyy"],Fe),Re(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Fe]=r._locale.eraYearOrdinalParse(e,i):t[Fe]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),qi("gggg","weekYear"),qi("ggggg","weekYear"),qi("GGGG","isoWeekYear"),qi("GGGGG","isoWeekYear"),Te("G",ve),Te("g",ve),Te("GG",he,le),Te("gg",he,le),Te("GGGG",ge,ue),Te("gggg",ge,ue),Te("GGGGG",_e,de),Te("ggggg",_e,de),Le(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=ke(e)})),Le(["gg","GG"],(function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),Te("Q",se),Re("Q",(function(e,t){t[ze]=3*(ke(e)-1)})),B("D",["DD",2],"Do","date"),Te("D",he,Se),Te("DD",he,le),Te("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],je),Re("Do",(function(e,t){t[je]=ke(e.match(he)[0])}));var $i=Xe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Te("DDD",me),Te("DDDD",ce),Re(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=ke(e)})),B("m",["mm",2],0,"minute"),Te("m",he,Ee),Te("mm",he,le),Re(["m","mm"],Ue);var to=Xe("Minutes",!1);B("s",["ss",2],0,"second"),Te("s",he,Ee),Te("ss",he,le),Re(["s","ss"],Ve);var ro,no,io=Xe("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Te("S",me,se),Te("SS",me,le),Te("SSS",me,ce),ro="SSSS";ro.length<=9;ro+="S")Te(ro,ye);function oo(e,t){t[qe]=ke(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Re(ro,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}no=Xe("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var lo=w.prototype;function co(e){return Zr(1e3*e)}function uo(){return Zr.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Ln,lo.calendar=Vn,lo.clone=qn,lo.diff=Xn,lo.endOf=_i,lo.format=ti,lo.from=ri,lo.fromNow=ni,lo.to=ii,lo.toNow=oi,lo.get=$e,lo.invalidAt=Ti,lo.isAfter=Hn,lo.isBefore=Gn,lo.isBetween=Wn,lo.isSame=Yn,lo.isSameOrAfter=Zn,lo.isSameOrBefore=Kn,lo.isValid=Si,lo.lang=si,lo.locale=ai,lo.localeData=li,lo.max=Xr,lo.min=Kr,lo.parsingFlags=Ei,lo.set=et,lo.startOf=gi,lo.subtract=Dn,lo.toArray=xi,lo.toObject=wi,lo.toDate=bi,lo.toISOString=$n,lo.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ai,lo.toString=Qn,lo.unix=vi,lo.valueOf=yi,lo.creationData=Pi,lo.eraName=ki,lo.eraNarrow=Oi,lo.eraAbbr=Ri,lo.eraYear=Li,lo.year=Ze,lo.isLeapYear=Ke,lo.weekYear=Hi,lo.isoWeekYear=Gi,lo.quarter=lo.quarters=Qi,lo.month=pt,lo.daysInMonth=ft,lo.week=lo.weeks=Ct,lo.isoWeek=lo.isoWeeks=It,lo.weeksInYear=Zi,lo.weeksInWeekYear=Ki,lo.isoWeeksInYear=Wi,lo.isoWeeksInISOWeekYear=Yi,lo.date=$i,lo.day=lo.days=Ht,lo.weekday=Gt,lo.isoWeekday=Wt,lo.dayOfYear=eo,lo.hour=lo.hours=nr,lo.minute=lo.minutes=to,lo.second=lo.seconds=io,lo.millisecond=lo.milliseconds=no,lo.utcOffset=mn,lo.utc=_n,lo.local=yn,lo.parseZone=vn,lo.hasAlignedHourOffset=bn,lo.isDST=xn,lo.isLocal=An,lo.isUtcOffset=Sn,lo.isUtc=En,lo.isUTC=En,lo.zoneAbbr=ao,lo.zoneName=so,lo.dates=E("dates accessor is deprecated. Use date instead.",$i),lo.months=E("months accessor is deprecated. Use month instead",pt),lo.years=E("years accessor is deprecated. Use year instead",Ze),lo.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gn),lo.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var po=O.prototype;function fo(e,t,r,n){var i=_r(),o=f().set(n,t);return i[r](o,e)}function mo(e,t,r){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fo(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=fo(e,n,r,"month");return i}function go(e,t,r,n){"boolean"===typeof e?(u(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,u(t)&&(r=t,t=void 0),t=t||"");var i,o=_r(),a=e?o._week.dow:0,s=[];if(null!=r)return fo(t,(r+a)%7,n,"day");for(i=0;i<7;i++)s[i]=fo(t,(i+a)%7,n,"day");return s}function _o(e,t){return mo(e,t,"months")}function yo(e,t){return mo(e,t,"monthsShort")}function vo(e,t,r){return go(e,t,r,"weekdays")}function bo(e,t,r){return go(e,t,r,"weekdaysShort")}function xo(e,t,r){return go(e,t,r,"weekdaysMin")}po.calendar=L,po.longDateFormat=W,po.invalidDate=Z,po.ordinal=J,po.preparse=ho,po.postformat=ho,po.relativeTime=$,po.pastFuture=ee,po.set=M,po.eras=Ci,po.erasParse=Ii,po.erasConvertYear=Mi,po.erasAbbrRegex=Ni,po.erasNameRegex=Di,po.erasNarrowRegex=Fi,po.months=lt,po.monthsShort=ct,po.monthsParse=dt,po.monthsRegex=gt,po.monthsShortRegex=mt,po.week=St,po.firstDayOfYear=Pt,po.firstDayOfWeek=Tt,po.weekdays=jt,po.weekdaysMin=Ut,po.weekdaysShort=Bt,po.weekdaysParse=qt,po.weekdaysRegex=Yt,po.weekdaysShortRegex=Zt,po.weekdaysMinRegex=Kt,po.isPM=tr,po.meridiem=ir,fr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ke(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=E("moment.lang is deprecated. Use moment.locale instead.",fr),n.langData=E("moment.langData is deprecated. Use moment.localeData instead.",_r);var wo=Math.abs;function Ao(){var e=this._data;return this._milliseconds=wo(this._milliseconds),this._days=wo(this._days),this._months=wo(this._months),e.milliseconds=wo(e.milliseconds),e.seconds=wo(e.seconds),e.minutes=wo(e.minutes),e.hours=wo(e.hours),e.months=wo(e.months),e.years=wo(e.years),this}function So(e,t,r,n){var i=Cn(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Eo(e,t){return So(this,e,t,1)}function To(e,t){return So(this,e,t,-1)}function Po(e){return e<0?Math.floor(e):Math.ceil(e)}function Co(){var e,t,r,n,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Po(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=Me(o/1e3),l.seconds=e%60,t=Me(e/60),l.minutes=t%60,r=Me(t/60),l.hours=r%24,a+=Me(r/24),s+=i=Me(Io(a)),a-=Po(Mo(i)),n=Me(s/12),s%=12,l.days=a,l.months=s,l.years=n,this}function Io(e){return 4800*e/146097}function Mo(e){return 146097*e/4800}function ko(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Io(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Mo(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Oo(e){return function(){return this.as(e)}}var Ro=Oo("ms"),Lo=Oo("s"),Do=Oo("m"),No=Oo("h"),Fo=Oo("d"),zo=Oo("w"),jo=Oo("M"),Bo=Oo("Q"),Uo=Oo("y"),Vo=Ro;function qo(){return Cn(this)}function Ho(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Go(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wo=Go("milliseconds"),Yo=Go("seconds"),Zo=Go("minutes"),Ko=Go("hours"),Xo=Go("days"),Jo=Go("months"),Qo=Go("years");function $o(){return Me(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function na(e,t,r,n){var i=Cn(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),d=ea(i.as("y")),h=o<=r.ss&&["s",o]||o<r.s&&["ss",o]||a<=1&&["m"]||a<r.m&&["mm",a]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(h=h||u<=1&&["w"]||u<r.w&&["ww",u]),(h=h||c<=1&&["M"]||c<r.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=n,ra.apply(null,h)}function ia(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"
2s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,o=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=na(this,!i,o,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,o,a,s,l=sa(this._milliseconds)/1e3,c=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=Me(l/60),t=Me(e/60),l%=60,e%=60,r=Me(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(r?o+r+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var ua=an.prototype;return ua.isValid=nn,ua.abs=Ao,ua.add=Eo,ua.subtract=To,ua.as=ko,ua.asMilliseconds=Ro,ua.asSeconds=Lo,ua.asMinutes=Do,ua.asHours=No,ua.asDays=Fo,ua.asWeeks=zo,ua.asMonths=jo,ua.asQuarters=Bo,ua.asYears=Uo,ua.valueOf=Vo,ua._bubble=Co,ua.clone=qo,ua.get=Ho,ua.milliseconds=Wo,ua.seconds=Yo,ua.minutes=Zo,ua.hours=Ko,ua.days=Xo,ua.weeks=$o,ua.months=Jo,ua.years=Qo,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ai,ua.localeData=li,ua.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=si,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Te("x",ve),Te("X",we),Re("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,r){r._d=new Date(ke(e))})),n.version="2.30.1",i(Zr),n.fn=lo,n.min=Qr,n.max=$r,n.now=en,n.utc=f,n.unix=co,n.months=_o,n.isDate=d,n.locale=fr,n.invalid=y,n.duration=Cn,n.isMoment=A,n.weekdays=vo,n.parseZone=uo,n.localeData=_r,n.isDuration=sn,n.monthsShort=yo,n.weekdaysMin=xo,n.defineLocale=mr,n.updateLocale=gr,n.locales=yr,n.weekdaysShort=bo,n.normalizeUnits=re,n.relativeTimeRounding=ia,n.relativeTimeThreshold=oa,n.calendarFormat=Un,n.prototype=lo,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},68206:(e,t,r)=>{var n="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"===typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,_=String.prototype.match,y=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,x=String.prototype.toLowerCase,w=RegExp.prototype.test,A=Array.prototype.concat,S=Array.prototype.join,E=Array.prototype.slice,T=Math.floor,P="function"===typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,k="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-T(-e):T(e);if(n!==e){var i=String(n),o=y.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}
vendor: 4,286 bytes, line 2
2var D=r(42634),N=D.custom,F=H(N)?N:null,z={__proto__:null,double:'"',single:"'"},j={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,r){var n=r.quoteStyle||t,i=z[n];return i+e+i}function U(e){return v.call(String(e),/"/g,"&quot;")}function V(e){return"[object Array]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}function q(e){return"[object RegExp]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}function H(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,i,s){var l=n||{};if(W(l,"quoteStyle")&&!W(z,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!W(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return K(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return b?L(t,w):w}if("bigint"===typeof t){var T=String(t)+"n";return b?L(t,T):T}var C="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=C&&C>0&&"object"===typeof t)return V(t)?"[Array]":"[Object]";var N=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=S.call(Array(e.indent+1)," ")}return{base:r,prev:S.call(Array(t+1),r)}}(l,i);if("undefined"===typeof s)s=[];else if(Z(s,t)>=0)return"[Circular]";function j(t,r,n){if(r&&(s=E.call(s)).push(r),n){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!q(t)){var G=function(e){if(e.name)return e.name;var t=_.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),X=te(t,j);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(X.length>0?" { "+S.call(X,", ")+" }":"")}if(H(t)){var re=M?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!==typeof t||M?re:J(re)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+x.call(String(t.nodeName)),ie=t.attributes||[],oe=0;oe<ie.length;oe++)ne+=" "+ie[oe].name+"="+B(U(ie[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+x.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var ae=te(t,j);return N&&!function(e){for(var t=0;t<e.length;t++)if(Z(e[t],"\n")>=0)return!1;return!0}(ae)?"["+ee(ae,N)+"]":"[ "+S.call(ae,", ")+" ]"}if(function(e){return"[object Error]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t)){var se=te(t,j);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(se,", ")+" }":"{ ["+String(t)+"] "+S.call(A.call("[cause]: "+j(t.cause),se),", ")+" }"}if("object"===typeof t&&m){if(F&&"function"===typeof t[F]&&D)return D(t,{depth:C-i});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,r){le.push(j(r,t,!0)+" => "+j(e,t))})),$("Map",o.call(t),le,N)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ce=[];
vendor: 4,745 bytes, line 2
2return u&&u.call(t,(function(e){ce.push(j(e,t))})),$("Set",c.call(t),ce,N)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Q("WeakMap");if(function(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return J(j(Number(t)));if(function(e){if(!e||"object"!==typeof e||!P)return!1;try{return P.call(e),!0}catch(t){}return!1}(t))return J(j(P.call(t)));if(function(e){return"[object Boolean]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return J(f.call(t));if(function(e){return"[object String]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t))return J(j(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===Y(e)&&(!k||!("object"===typeof e&&k in e))}(t)&&!q(t)){var ue=te(t,j),de=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",pe=!de&&k&&Object(t)===t&&k in t?y.call(Y(t),8,-1):he?"Object":"",fe=(de||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||he?"["+S.call(A.call([],pe||[],he||[]),": ")+"] ":"");return 0===ue.length?fe+"{}":N?fe+"{"+ee(ue,N)+"}":fe+"{ "+S.call(ue,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return G.call(e,t)}function Y(e){return m.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function K(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(y.call(e,0,t.maxStringLength),t)+n}var i=j[t.quoteStyle||"single"];return i.lastIndex=0,B(v.call(v.call(e,i,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function J(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function $(e,t,r,n){return e+" ("+t+") {"+(n?ee(r,n):S.call(r,", "))+"}"}function ee(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+S.call(e,","+r)+"\n"+t.prev}function te(e,t){var r=V(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=W(e,i)?t(e[i],e):""}var o,a="function"===typeof C?C(e):[];if(M){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)W(e,l)&&(r&&String(Number(l))===l&&l<e.length||M&&o["$"+l]instanceof Symbol||(w.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"===typeof C)for(var c=0;c<a.length;c++)O.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},21038:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(80234),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)h.push(String(m));if(n&&e.length>0)for(var g=0;g<e.length;++g)h.push(String(g));else for(var _ in e)f&&"prototype"===_||!i.call(e,_)||h.push(String(_));if(l)for(var y=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}}(e),v=0;v<u.length;++v)y&&"constructor"===u[v]||!i.call(e,u[v])||h.push(u[v]);return h}}
2e.exports=n},2678:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(80234),o=Object.keys,a=o?function(e){return o(e)}:r(21038),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},80234:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},57588:function(e){(function(){var t,r,n,i,o,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,i=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),o=i-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},41497:(e,t,r)=>{"use strict";var n=r(13218);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return r.PropTypes=r,r}},65173:(e,t,r)=>{e.exports=r(41497)()},13218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9370:(e,t,r)=>{"use strict";const n=r(67491),i=r(95707),o=r(71289),a=r(10038),s=Symbol("encodeFragmentIdentifier");function l(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function u(e,t){return t.decode?i(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function h(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return(e,r,n)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const i="string"===typeof r&&r.includes(e.arrayFormatSeparator),o="string"===typeof r&&!i&&u(r,e).includes(e.arrayFormatSeparator);r=o?u(r,e):r;const a=i||o?r.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===r?r:u(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{const i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i)return void(n[t]=r?u(r,e):r);const o=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==n[t]?n[t]=[].concat(n[t],o):n[t]=o};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),r(u(e,t),a,n)}for(const i of Object.keys(n)){const e=n[i];if("object"===typeof e&&null!==e)for(const r of Object.keys(e))e[r]=f(e[r],t);else n[i]=f(e,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce(((e,t)=>{const r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=d(r):e[t]=r,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>{return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[",i,"]"].join("")]:[...r,[c(t,e),"[",c(i,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length?[[c(r,e),t,c(i,e)].join("")]:[[n,c(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}(t),i={};for(const a of Object.keys(e))r(a)||(i[a]=e[a]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map((r=>{const i=e[r];return void 0===i?"":null===i?c(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?c(r,t)+"[]":i.reduce(n(r),[]).join("&"):c(r,t)+"="+c(i,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>
2{t=Object.assign({decode:!0},t);const[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:u(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let l=t.stringify(a,r);l&&(l="?".concat(l));let u=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(r[s]?c(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(n).concat(l).concat(u)},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:i,query:o,fragmentIdentifier:l}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:l},n)},t.exclude=(e,r,n)=>{const i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},8073:(e,t,r)=>{for(var n=r(57588),i="undefined"===typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c<o.length;c++)s=i[o[c]+"Request"+a],l=i[o[c]+"Cancel"+a]||i[o[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,h=[],p=1e3/60;s=function(e){if(0===h.length){var t=n(),r=Math.max(0,p-(t-u));u=r+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},58414:(e,t,r)=>{r(8073).polyfill()},45085:(e,t,r)=>{r(25277)},25277:(e,t,r)=>{"use strict";(0,r(24994)(r(40008)).default)()},21903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={white:"#fff",gray:"#484848",grayLight:"#82888a",grayLighter:"#cacccd",grayLightest:"#f2f2f2",borderMedium:"#c4c4c4",border:"#dbdbdb",borderLight:"#e4e7e7",borderLighter:"#eceeee",borderBright:"#f4f5f5",primary:"#00a699",primaryShade_1:"#33dacd",primaryShade_2:"#66e2da",primaryShade_3:"#80e8e0",primaryShade_4:"#b2f1ec",primary_dark:"#008489",secondary:"#007a87",yellow:"#ffe8bc",yellow_dark:"#ffce71"},n={reactDates:{zIndex:0,border:{input:{border:0,borderTop:0,borderRight:0,borderBottom:"2px solid transparent",borderLeft:0,outlineFocused:0,borderFocused:0,borderTopFocused:0,borderLeftFocused:0,borderBottomFocused:"2px solid ".concat(r.primary_dark),borderRightFocused:0,borderRadius:0},pickerInput:{borderWidth:1,borderStyle:"solid",borderRadius:2}},color:{core:r,disabled:r.grayLightest,background:r.white,backgroundDark:"#f2f2f2",backgroundFocused:r.white,border:"rgb(219, 219, 219)",text:r.gray,textDisabled:r.border,textFocused:"#007a87",placeholderText:"#757575",outside:{backgroundColor:r.
2white,backgroundColor_active:r.white,backgroundColor_hover:r.white,color:r.gray,color_active:r.gray,color_hover:r.gray},highlighted:{backgroundColor:r.yellow,backgroundColor_active:r.yellow_dark,backgroundColor_hover:r.yellow_dark,color:r.gray,color_active:r.gray,color_hover:r.gray},minimumNights:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLighter,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter},hoveredSpan:{backgroundColor:r.primaryShade_4,backgroundColor_active:r.primaryShade_3,backgroundColor_hover:r.primaryShade_4,borderColor:r.primaryShade_3,borderColor_active:r.primaryShade_3,borderColor_hover:r.primaryShade_3,color:r.secondary,color_active:r.secondary,color_hover:r.secondary},selectedSpan:{backgroundColor:r.primaryShade_2,backgroundColor_active:r.primaryShade_1,backgroundColor_hover:r.primaryShade_1,borderColor:r.primaryShade_1,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},selected:{backgroundColor:r.primary,backgroundColor_active:r.primary,backgroundColor_hover:r.primary,borderColor:r.primary,borderColor_active:r.primary,borderColor_hover:r.primary,color:r.white,color_active:r.white,color_hover:r.white},blocked_calendar:{backgroundColor:r.grayLighter,backgroundColor_active:r.grayLighter,backgroundColor_hover:r.grayLighter,borderColor:r.grayLighter,borderColor_active:r.grayLighter,borderColor_hover:r.grayLighter,color:r.grayLight,color_active:r.grayLight,color_hover:r.grayLight}
2,blocked_out_of_range:{backgroundColor:r.white,backgroundColor_active:r.white,backgroundColor_hover:r.white,borderColor:r.borderLight,borderColor_active:r.borderLight,borderColor_hover:r.borderLight,color:r.grayLighter,color_active:r.grayLighter,color_hover:r.grayLighter}},spacing:{dayPickerHorizontalPadding:9,captionPaddingTop:22,captionPaddingBottom:37,inputPadding:0,displayTextPaddingVertical:void 0,displayTextPaddingTop:11,displayTextPaddingBottom:9,displayTextPaddingHorizontal:void 0,displayTextPaddingLeft:11,displayTextPaddingRight:11,displayTextPaddingVertical_small:void 0,displayTextPaddingTop_small:7,displayTextPaddingBottom_small:5,displayTextPaddingHorizontal_small:void 0,displayTextPaddingLeft_small:7,displayTextPaddingRight_small:7},sizing:{inputWidth:130,inputWidth_small:97,arrowWidth:24},noScrollBarOnVerticalScrollable:!1,font:{size:14,captionSize:18,input:{size:19,weight:200,lineHeight:"24px",size_small:15,lineHeight_small:"18px",letterSpacing_small:"0.2px",styleDisabled:"italic"}}}};t.default=n},40008:(e,t,r)=>{"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(i.default)};var i=n(r(3011)),o=n(r(6179))},6179:(e,t,r)=>{"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){i.default.registerInterface(e),i.default.registerTheme(o.default)};var i=n(r(42908)),o=n(r(21903))},82160:(e,t,r)=>{"use strict";var n=r(65043);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,a=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s={},l={};function c(e){return!!o.call(l,e)||!o.call(s,e)&&(a.test(e)?l[e]=!0:(s[e]=!0,!1))}function u(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
2-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,p);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){m.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var g=/["'&<>]/;function _(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=g.exec(e);if(t){var r,n="",i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var y=/([A-Z])/g,v=/^ms-/,b=Array.isArray;function x(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function A(e,t,r){if("object"!==typeof r)throw Error(i(62));for(var n in t=!0,r)if(o.call(r,n)){var a=r[n];if(null!=a&&"boolean"!==typeof a&&""!==a){if(0===n.indexOf("--")){var s=_(n);a=_((""+a).trim())}else{s=n;var l=w.get(s);void 0!==l||(l=_(s.replace(y,"-$1").toLowerCase().replace(v,"-ms-")),w.set(s,l)),s=l,a="number"===typeof a?0===a||o.call(f,n)?""+a:a+"px":_((""+a).trim())}t?(t=!1,e.push(' style="',s,":",a)):e.push(";",s,":",a)}}t||e.push('"')}function S(e,t,r,n){switch(r){case"style":return void A(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=d.hasOwnProperty(r)?d[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:!0===n?e.push(" ",r,'=""'):!1!==n&&e.push(" ",r,'="',_(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',_(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',_(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',_(n),'"')}}else if(c(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",r,'="',_(n),'"')}}function E(e,t,r){if(null!=t){if(null!=r)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function T(e,t,r,n){e.push(I(r));var i,a=r=null;for(i in t)if(o.call(t,i)){var s=t[i];if(null!=s)switch(i){case"children":r=s;break;case"dangerouslySetInnerHTML":a=s;break;default:S(e,n,i,s)}}return e.push(">"),E(e,a,r),"string"===typeof r?(e.push(_(r)),null):r}var P=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,C=new Map;function I(e){var t=C.get(e);if(void 0===t){if(!P.test(e))throw Error(i(65,e));t="<"+e,C.set(e,t)}return t}function M(e,t,r,a,s){switch(t){case"select":e.push(I("select"));var l=null,u=null;
vendor: 18,561 bytes, line 2
2for(f in r)if(o.call(r,f)){var d=r[f];if(null!=d)switch(f){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:S(e,a,f,d)}}return e.push(">"),E(e,u,l),l;case"option":u=s.selectedValue,e.push(I("option"));var h=d=null,p=null,f=null;for(l in r)if(o.call(r,l)){var m=r[l];if(null!=m)switch(l){case"children":d=m;break;case"selected":p=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":h=m;default:S(e,a,l,m)}}if(null!=u)if(r=null!==h?""+h:function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),b(u)){for(a=0;a<u.length;a++)if(""+u[a]===r){e.push(' selected=""');break}}else""+u===r&&e.push(' selected=""');else p&&e.push(' selected=""');return e.push(">"),E(e,f,d),d;case"textarea":for(d in e.push(I("textarea")),f=u=l=null,r)if(o.call(r,d)&&null!=(h=r[d]))switch(d){case"children":f=h;break;case"value":l=h;break;case"defaultValue":u=h;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:S(e,a,d,h)}if(null===l&&null!==u&&(l=u),e.push(">"),null!=f){if(null!=l)throw Error(i(92));if(b(f)&&1<f.length)throw Error(i(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(_(""+l)),null;case"input":for(u in e.push(I("input")),h=f=d=l=null,r)if(o.call(r,u)&&null!=(p=r[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":h=p;break;case"defaultValue":d=p;break;case"checked":f=p;break;case"value":l=p;break;default:S(e,a,u,p)}return null!==f?S(e,a,"checked",f):null!==h&&S(e,a,"checked",h),null!==l?S(e,a,"value",l):null!==d&&S(e,a,"value",d),e.push("/>"),null;case"menuitem":for(var g in e.push(I("menuitem")),r)if(o.call(r,g)&&null!=(l=r[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:S(e,a,g,l)}return e.push(">"),null;case"title":for(m in e.push(I("title")),l=null,r)if(o.call(r,m)&&null!=(u=r[m]))switch(m){case"children":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:S(e,a,m,u)}return e.push(">"),l;case"listing":case"pre":for(h in e.push(I(t)),u=l=null,r)if(o.call(r,h)&&null!=(d=r[h]))switch(h){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;default:S(e,a,h,d)}if(e.push(">"),null!=u){if(null!=l)throw Error(i(60));if("object"!==typeof u||!("__html"in u))throw Error(i(61));null!==(r=u.__html)&&void 0!==r&&("string"===typeof r&&0<r.length&&"\n"===r[0]?e.push("\n",r):e.push(""+r))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(I(t)),r)if(o.call(r,y)&&null!=(l=r[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:S(e,a,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return T(e,r,t,a);case"html":return 0===s.insertionMode&&e.push("<!DOCTYPE html>"),T(e,r,t,a);default:if(-1===t.indexOf("-")&&"string"!==typeof r.is)return T(e,r,t,a);for(p in e.push(I(t)),u=l=null,r)if(o.call(r,p)&&null!=(d=r[p]))switch(p){case"children":l=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":A(e,a,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(p)&&"function"!==typeof d&&"symbol"!==typeof d&&e.push(" ",p,'="',_(d),'"')}return e.push(">"),E(e,u,l),l}}function k(e,t,r){if(e.push('\x3c!--$?--\x3e<template id="'),null===r)throw Error(i(395));return e.push(r),e.push('"></template>')}var O=/[<\u2028\u2029]/g;function R(e){return JSON.stringify(e).replace(O,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function L(e,t,r,n){return r.generateStaticMarkup?(e.push(_(t)),!1):(""===t?e=n:(n&&e.push("\x3c!-- --\x3e"),e.push(_(t)),e=!0),e)}var D=Object.assign,N=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),V=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),Z=Symbol.for("react.scope"),K=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.default_value"),Q=Symbol.iterator;function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case z:return"Fragment";case F:return"Portal";case B:return"Profiler";case j:return"StrictMode";case H:return"Suspense";case G:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case U:return(e._context.displayName||"Context")+".Provider";case q:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case W:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return $(e(t))}catch(r){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var r,n={};for(r in e)n[r]=t[r];return n}var re=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(i(401))}else{if(null===r)throw Error(i(401));ne(e,r)}t.context._currentValue2=t.value}}function ie(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&ie(e)}function oe(e){var t=e.parent;null!==t&&oe(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?ne(e,t):ae(e,t)}function se(e,t){var r=t.parent;if(null===r)throw Error(i(402));e.depth===r.depth?ne(e,r):se(e,r),t.context._currentValue2=t.value}function le(e){var t=re;t!==e&&(null===t?oe(e):null===e?ie(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ae(t,e):se(t,e),re=e)}var ce={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ue(e,t,r,n){var i=void 0!==e.state?e.state:null;e.updater=ce,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue2:n,"function"===typeof(a=t.getDerivedStateFromProps)&&(i=null===(a=a(r,i))||void 0===a?i:D({},i,a),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ce.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,o,r,n):s)&&(i?(i=!1,o=D({},o,s)):D(o,s))}e.state=o}else o.queue=null}var de={id:1,overflow:""};function he(e,t,r){var n=e.id;e=e.overflow;var i=32-pe(n)-1;n&=~(1<<i),r+=1;var o=32-pe(t)+i;if(30<o){var a=i-i%5;return o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,{id:1<<32-pe(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/me|0)|0},fe=Math.log,me=Math.LN2;var ge="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},_e=null,ye=null,ve=null,be=null,xe=!1,we=!1,Ae=0,Se=null,Ee=0;function Te(){if(null===_e)throw Error(i(321));return _e}function Pe(){if(0<Ee)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Ce(){return null===be?null===ve?(xe=!1,ve=be=Pe()):(xe=!0,be=ve):null===be.next?(xe=!1,be=be.next=Pe()):(xe=!0,be=be.next),be}function Ie(){ye=_e=null,we=!1,ve=null,Ee=0,be=Se=null}function Me(e,t){return"function"===typeof t?t(e):t}function ke(e,t,r){if(_e=Te(),be=Ce(),xe){var n=be.queue;if(t=n.dispatch,null!==Se&&void 0!==(r=Se.get(n))){Se.delete(n),n=be.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);return be.memoizedState=n,[n,t]}return[be.memoizedState,t]}return e=e===Me?"function"===typeof t?t():t:void 0!==r?r(t):t,be.memoizedState=e,e=(e=be.queue={last:null,dispatch:null}).dispatch=Re.bind(null,_e,e),[be.memoizedState,e]}function Oe(e,t){if(_e=Te(),t=void 0===t?null:t,null!==(be=Ce())){var r=be.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!ge(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),be.memoizedState=[e,t],e}function Re(e,t,r){if(25<=Ee)throw Error(i(301));if(e===_e)if(we=!0,e={action:r,next:null},null===Se&&(Se=new Map),void 0===(r=Se.get(t)))Se.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Le(){throw Error(i(394))}function De(){}var Ne={readContext:function(e){return e._currentValue2},useContext:function(e){return Te(),e._currentValue2},useMemo:Oe,useReducer:ke,useRef:function(e){_e=Te();var t=(be=Ce()).memoizedState;return null===t?(e={current:e},be.memoizedState=e):t},useState:function(e){return ke(Me,e)},useInsertionEffect:De,useLayoutEffect:function(){},useCallback:function(e,t){return Oe((function(){return e}),t)},useImperativeHandle:De,useEffect:De,useDebugValue:De,useDeferredValue:function(e){return Te(),e},useTransition:function(){return Te(),[!1,Le]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var r=Fe;if(null===r)throw Error(i(404));return t=Ae++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Te(),t(e._source)},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(i(407));return r()}},Fe=null,ze=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function je(e){return console.error(e),null}function Be(){}function Ue(e,t,r,n,i,o,a,s){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&rt(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function Ve(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function qe(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function He(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Ge(e,t,r,n,i){for(_e={},ye=t,Ae=0,e=r(n,i);we;)we=!1,Ae=0,Ee+=1,be=null,e=r(n,i);return Ie(),e}function We(e,t,r,n){var o=r.render(),a=n.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof r.getChildContext)n=s;else{for(var l in r=r.getChildContext())if(!(l in a))throw Error(i(108,$(n)||"Unknown",l));n=D({},s,r)}t.legacyContext=n,Ke(e,t,o),t.legacyContext=s}else Ke(e,t,o)}function Ye(e,t){if(e&&e.defaultProps){for(var r in t=D({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ze(e,t,r,n,o){if("function"===typeof r)if(r.prototype&&r.prototype.isReactComponent){o=te(r,t.legacyContext);var a=r.contextType;ue(a=new r(n,"object"===typeof a&&null!==a?a._currentValue2:o),r,n,o),We(e,t,a,r)}else{o=Ge(e,t,r,n,a=te(r,t.legacyContext));var s=0!==Ae;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)ue(o,r,n,a),We(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=he(n,1,0);try{Ke(e,t,o)}finally{t.treeContext=n}}else Ke(e,t,o)}else{if("string"!==typeof r){switch(r){case X:case K:case j:case B:case z:case G:return void Ke(e,t,n.children);case Z:throw Error(i(343));case H:e:{r=t.blockedBoundary,o=t.blockedSegment,a=n.fallback,n=n.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=Ve(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=Ve(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Je(e,t,n),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,et(l,u),0===l.pendingTasks)break e}catch(d){u.status=4,l.forceClientRender=!0,l.errorDigest=qe(e,d)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=Ue(e,a,r,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof r&&null!==r)switch(r.$$typeof){case q:if(n=Ge(e,t,r.render,n,o),0!==Ae){r=t.treeContext,t.treeContext=he(r,1,0);try{Ke(e,t,n)}finally{t.treeContext=r}}else Ke(e,t,n);return;case W:return void Ze(e,t,r=r.type,n=Ye(r,n),o);case U:if(o=n.children,r=r._context,n=n.value,a=r._currentValue2,r._currentValue2=n,re=n={parent:s=re,depth:null===s?0:s.depth+1,context:r,parentValue:a,value:n},t.context=n,Ke(e,t,o),null===(e=re))throw Error(i(403));return n=e.parentValue,e.context._currentValue2=n===J?e.context._defaultValue:n,e=re=e.parent,void(t.context=e);case V:return void Ke(e,t,n=(n=n.children)(r._currentValue2));case Y:return void Ze(e,t,r=(o=r._init)(r._payload),n=Ye(r,n),void 0)}throw Error(i(130,null==r?r:typeof r,""))}switch(a=M((o=t.blockedSegment).chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return x(1,null!=r.value?r.value:r.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=e.insertionMode||0===e.insertionMode?x(1,null):e}(s,r,n),Je(e,t,a),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}}function Ke(e,t,r){if(t.node=r,"object"===typeof r&&null!==r){switch(r.$$typeof){case N:return void Ze(e,t,r.type,r.props,r.ref);case F:throw Error(i(257));case Y:var n=r._init;return void Ke(e,t,r=n(r._payload))}if(b(r))return void Xe(e,t,r);if(null===r||"object"!==typeof r?n=null:n="function"===typeof(n=Q&&r[Q]||r["@@iterator"])?n:null,n&&(n=n.call(r))){if(!(r=n.next()).done){var o=[];do{o.push(r.value),r=n.next()}while(!r.done);Xe(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}"string"===typeof r?(n=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText):"number"===typeof r&&((n=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function Xe(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=he(o,n,i);try{Je(e,t,r[i])}finally{t.treeContext=o}}}function Je(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return Ke(e,t,r)}catch(l){if(Ie(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,le(o),l;r=l;var a=t.blockedSegment,s=Ve(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Ue(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,le(o)}}function Qe(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function $e(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,null===n?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=void 0===r?Error(i(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach((function(e){return $e(e,t,r)})),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(n=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&et(e,r)}else e.completedSegments.push(t)}function tt(e,t,r){if(null===t){if(r.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(r.parentFlushed&&1===r.status&&et(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Qe,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&1===r.status&&(et(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function rt(e){if(2!==e.status){var t=re,r=ze.current;ze.current=Ne;var n=Fe;Fe=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){le(a.context);try{Ke(s,a,a.node),s.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),a.abortSet.delete(a),l.status=1,tt(s,a.blockedBoundary,l)}catch(p){if(Ie(),"object"===typeof p&&null!==p&&"function"===typeof p.then){var c=a.ping;p.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=p,h=qe(s,d);if(null===u?He(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=h,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}
vendor: 6,117 bytes, line 2
2o.splice(0,i),null!==e.destination&&lt(e,e.destination)}catch(p){qe(e,p),He(e,p)}finally{Fe=n,ze.current=r,r===Ne&&le(t)}}}function nt(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var a=0;r=r.children;for(var s=0;s<r.length;s++){for(o=r[s];a<o.index;a++)t.push(n[a]);o=it(e,t,o)}for(;a<n.length-1;a++)t.push(n[a]);return a<n.length&&(o=t.push(n[a])),o;default:throw Error(i(390))}}function it(e,t,r){var n=r.boundary;if(null===n)return nt(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),n&&(t.push(' data-dgst="'),n=_(n),t.push(n),t.push('"')),t.push("></template>")),nt(e,t,r),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),n=n.id=o,k(t,e.responseState,n),nt(e,t,r),t.push("\x3c!--/$--\x3e")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),k(t,e.responseState,n.id),nt(e,t,r),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(r=n.completedSegments).length)throw Error(i(391));return it(e,t,r[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ot(e,t,r){return function(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(i(397))}}(t,e.responseState,r.formatContext,r.id),it(e,t,r),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(i(397))}}(t,r.formatContext)}function at(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)st(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===n)throw Error(i(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function st(e,t,r,n){if(2===n.status)return!0;var o=n.id;if(-1===o){if(-1===(n.id=r.rootSegmentID))throw Error(i(392));return ot(e,t,n)}return ot(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function lt(e,t){try{var r=e.completedRootSegment;if(null!==r&&0===e.pendingRootTasks){it(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var s=a[o];n=t;var l=e.responseState,c=s.id,u=s.errorDigest,d=s.errorMessage,h=s.errorComponentStack;if(n.push(l.startInlineScript),l.sentClientRenderFunction?n.push('$RX("'):(l.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(i(395));if(n.push(c),n.push('"'),u||d||h){n.push(",");var p=R(u||"");n.push(p)}if(d||h){n.push(",");var f=R(d||"");n.push(f)}if(h){n.push(",");var m=R(h);n.push(m)}if(!n.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var g=e.completedBoundaries;for(o=0;o<g.length;o++)if(!at(e,t,g[o]))return e.destination=null,o++,void g.splice(0,o);g.splice(0,o);var _=e.partialBoundaries;for(o=0;o<_.length;o++){var y=_[o];e:{a=e,s=t;var v=y.completedSegments;for(l=0;l<v.length;l++)if(!st(a,s,y,v[l])){l++,v.splice(0,l);var b=!1;break e}v.splice(0,l),b=!0}if(!b)return e.destination=null,o++,void _.splice(0,o)}_.splice(0,o);var x=e.completedBoundaries;for(o=0;o<x.length;o++)if(!at(e,t,x[o]))return e.destination=null,o++,void x.splice(0,o);x.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ct(e,t){try{var r=e.abortableTasks;r.forEach((function(r){return $e(r,e,t)}
vendor: 11,321 bytes, line 2
2)),r.clear(),null!==e.destination&&lt(e,e.destination)}catch(n){qe(e,n),He(e,n)}}function ut(){}function dt(e,t,r,n){var o=!1,a=null,s="",l={push:function(e){return null!==e&&(s+=e),!0},destroy:function(e){o=!0,a=e}},c=!1;if(e=function(e,t,r,n,i,o,a,s,l){var c=[],u=new Set;return(r=Ve(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?je:i,onAllReady:void 0===o?Be:o,onShellReady:void 0===a?Be:a,onShellError:void 0===s?Be:s,onFatalError:void 0===l?Be:l},0,null,r,!1,!1)).parentFlushed=!0,e=Ue(t,e,null,r,u,ee,null,de),c.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ut,void 0,(function(){c=!0}),void 0,void 0),rt(e),ct(e,n),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(u){qe(e,u),He(e,u)}}if(o)throw a;if(!c)throw Error(i(426));return s}t.renderToNodeStream=function(){throw Error(i(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(i(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},68556:(e,t,r)=>{"use strict";var n=r(65043);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,a=0;function s(e,t){if(0!==t.length)if(512<t.length)0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=new Uint8Array(512),a=0),e.enqueue(t);else{var r=o.length-a;r<t.length&&(0===r?e.enqueue(o):(o.set(t.subarray(0,r),a),e.enqueue(o),t=t.subarray(r)),o=new Uint8Array(512),a=0),o.set(t,a),a+=t.length}}function l(e,t){return s(e,t),!0}function c(e){o&&0<a&&(e.enqueue(new Uint8Array(o.buffer,0,a)),o=null,a=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function h(e){return u.encode(e)}function p(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},_={};function y(e){return!!f.call(_,e)||!f.call(g,e)&&(m.test(e)?_[e]=!0:(g[e]=!0,!1))}function v(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];b[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var x=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(x,w);b[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(x,w);b[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(x,w);b[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var A={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(A).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),A[t]=A[e]}))}));var E=/["'&<>]/;function T(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=E.exec(e);if(t){var r,n="",i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}i!==r&&(n+=e.substring(i,r)),i=r+1,n+=t}e=i!==r?n+e.substring(i,r):n}return e}var P=/([A-Z])/g,C=/^ms-/,I=Array.isArray,M=h("<script>"),k=h("<\/script>"),O=h('<script src="'),R=h('<script type="module" src="'),L=h('" async=""><\/script>'),D=/(<\/|<)(s)(cript)/gi;function N(e,t,r,n){return t+("s"===r?"\\u0073":"\\u0053")+n}function F(e,t){return{insertionMode:e,selectedValue:t}}var z=h("\x3c!-- --\x3e");function j(e,t,r,n){return""===t?n:(n&&e.push(z),e.push(d(T(t))),!0)}var B=new Map,U=h(' style="'),V=h(":"),q=h(";");function H(e,t,r){if("object"!==typeof r)throw Error(i(62));for(var n in t=!0,r)if(f.call(r,n)){var o=r[n];if(null!=o&&"boolean"!==typeof o&&""!==o){if(0===n.indexOf("--")){var a=d(T(n));o=d(T((""+o).trim()))}else{a=n;var s=B.get(a);void 0!==s||(s=h(T(a.replace(P,"-$1").toLowerCase().replace(C,"-ms-"))),B.set(a,s)),a=s,o="number"===typeof o?0===o||f.call(A,n)?d(""+o):d(o+"px"):d(T((""+o).trim()))}t?(t=!1,e.push(U,a,V,o)):e.push(q,a,V,o)}}t||e.push(Y)}var G=h(" "),W=h('="'),Y=h('"'),Z=h('=""');function K(e,t,r,n){switch(r){case"style":return void H(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=b.hasOwnProperty(r)?b[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=d(t.attributeName),t.type){case 3:n&&e.push(G,r,Z);break;case 4:!0===n?e.push(G,r,Z):!1!==n&&e.push(G,r,W,d(T(n)),Y);break;case 5:isNaN(n)||e.push(G,r,W,d(T(n)),Y);break;case 6:!isNaN(n)&&1<=n&&e.push(G,r,W,d(T(n)),Y);break;default:t.sanitizeURL&&(n=""+n),e.push(G,r,W,d(T(n)),Y)}}else if(y(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(G,d(r),W,d(T(n)),Y)}}var X=h(">"),J=h("/>");function Q(e,t,r){if(null!=t){if(null!=r)throw Error(i(60));if("object"!==typeof t||!("__html"in t))throw Error(i(61));null!==(t=t.__html)&&void 0!==t&&e.push(d(""+t))}}var $=h(' selected=""');function ee(e,t,r,n){e.push(ie(r));var i,o=r=null;for(i in t)if(f.call(t,i)){var a=t[i];if(null!=a)switch(i){case"children":r=a;break;case"dangerouslySetInnerHTML":o=a;break;default:K(e,n,i,a)}}return e.push(X),Q(e,o,r),"string"===typeof r?(e.push(d(T(r))),null):r}var te=h("\n"),re=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ne=new Map;function ie(e){var t=ne.get(e);if(void 0===t){if(!re.test(e))throw Error(i(65,e));t=h("<"+e),ne.set(e,t)}return t}var oe=h("<!DOCTYPE html>");function ae(e,t,r,o,a){switch(t){case"select":e.push(ie("select"));var s=null,l=null;for(p in r)if(f.call(r,p)){var c=r[p];if(null!=c)switch(p){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"defaultValue":case"value":break;default:K(e,o,p,c)}}return e.push(X),Q(e,l,s),s;case"option":l=a.selectedValue,e.push(ie("option"));var u=c=null,h=null,p=null;for(s in r)if(f.call(r,s)){var m=r[s];if(null!=m)switch(s){case"children":c=m;break;case"selected":h=m;break;case"dangerouslySetInnerHTML":p=m;break;case"value":u=m;default:K(e,o,s,m)}}if(null!=l)if(r=null!==u?""+u:function(e){var t="";
vendor: 4,797 bytes, line 2
2return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),I(l)){for(o=0;o<l.length;o++)if(""+l[o]===r){e.push($);break}}else""+l===r&&e.push($);else h&&e.push($);return e.push(X),Q(e,p,c),c;case"textarea":for(c in e.push(ie("textarea")),p=l=s=null,r)if(f.call(r,c)&&null!=(u=r[c]))switch(c){case"children":p=u;break;case"value":s=u;break;case"defaultValue":l=u;break;case"dangerouslySetInnerHTML":throw Error(i(91));default:K(e,o,c,u)}if(null===s&&null!==l&&(s=l),e.push(X),null!=p){if(null!=s)throw Error(i(92));if(I(p)&&1<p.length)throw Error(i(93));s=""+p}return"string"===typeof s&&"\n"===s[0]&&e.push(te),null!==s&&e.push(d(T(""+s))),null;case"input":for(l in e.push(ie("input")),u=p=c=s=null,r)if(f.call(r,l)&&null!=(h=r[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,"input"));case"defaultChecked":u=h;break;case"defaultValue":c=h;break;case"checked":p=h;break;case"value":s=h;break;default:K(e,o,l,h)}return null!==p?K(e,o,"checked",p):null!==u&&K(e,o,"checked",u),null!==s?K(e,o,"value",s):null!==c&&K(e,o,"value",c),e.push(J),null;case"menuitem":for(var g in e.push(ie("menuitem")),r)if(f.call(r,g)&&null!=(s=r[g]))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(i(400));default:K(e,o,g,s)}return e.push(X),null;case"title":for(m in e.push(ie("title")),s=null,r)if(f.call(r,m)&&null!=(l=r[m]))switch(m){case"children":s=l;break;case"dangerouslySetInnerHTML":throw Error(i(434));default:K(e,o,m,l)}return e.push(X),s;case"listing":case"pre":for(u in e.push(ie(t)),l=s=null,r)if(f.call(r,u)&&null!=(c=r[u]))switch(u){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;default:K(e,o,u,c)}if(e.push(X),null!=l){if(null!=s)throw Error(i(60));if("object"!==typeof l||!("__html"in l))throw Error(i(61));null!==(r=l.__html)&&void 0!==r&&("string"===typeof r&&0<r.length&&"\n"===r[0]?e.push(te,d(r)):e.push(d(""+r)))}return"string"===typeof s&&"\n"===s[0]&&e.push(te),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var _ in e.push(ie(t)),r)if(f.call(r,_)&&null!=(s=r[_]))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(i(399,t));default:K(e,o,_,s)}return e.push(J),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,r,t,o);case"html":return 0===a.insertionMode&&e.push(oe),ee(e,r,t,o);default:if(-1===t.indexOf("-")&&"string"!==typeof r.is)return ee(e,r,t,o);for(h in e.push(ie(t)),l=s=null,r)if(f.call(r,h)&&null!=(c=r[h]))switch(h){case"children":s=c;break;case"dangerouslySetInnerHTML":l=c;break;case"style":H(e,o,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(h)&&"function"!==typeof c&&"symbol"!==typeof c&&e.push(G,d(h),W,d(T(c)),Y)}return e.push(X),Q(e,l,s),s}}var se=h("</"),le=h(">"),ce=h('<template id="'),ue=h('"></template>'),de=h("\x3c!--$--\x3e"),he=h('\x3c!--$?--\x3e<template id="'),pe=h('"></template>'),fe=h("\x3c!--$!--\x3e"),me=h("\x3c!--/$--\x3e"),ge=h("<template"),_e=h('"'),ye=h(' data-dgst="');h(' data-msg="'),h(' data-stck="');var ve=h("></template>");function be(e,t,r){if(s(e,he),null===r)throw Error(i(395));return s(e,r),l(e,pe)}var xe=h('<div hidden id="'),we=h('">'),Ae=h("</div>"),Se=h('<svg aria-hidden="true" style="display:none" id="'),Ee=h('">'),Te=h("</svg>"),Pe=h('<math aria-hidden="true" style="display:none" id="'),Ce=h('">'),Ie=h("</math>"),Me=h('<table hidden id="'),ke=h('">'),Oe=h("</table>"),Re=h('<table hidden><tbody id="'),Le=h('">'),De=h("</tbody></table>"),Ne=h('<table hidden><tr id="'),Fe=h('">'),ze=h("</tr></table>"),je=h('<table hidden><colgroup id="'),Be=h('">'),Ue=h("</colgroup></table>");var Ve=h('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),qe=h('$RS("'),He=h('","'),Ge=h('")<\/script>'),We=h('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ye=h('$RC("'),Ze=h('","'),Ke=h('")<\/script>'),Xe=h('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Je=h('$RX("'),Qe=h('"'),$e=h(")<\/script>
2"),et=h(","),tt=/[<\u2028\u2029]/g;function rt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,it=Symbol.for("react.element"),ot=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),st=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ct=Symbol.for("react.provider"),ut=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),gt=Symbol.for("react.scope"),_t=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),vt=Symbol.for("react.default_value"),bt=Symbol.iterator;function xt(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case at:return"Fragment";case ot:return"Portal";case lt:return"Profiler";case st:return"StrictMode";case ht:return"Suspense";case pt:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ut:return(e.displayName||"Context")+".Consumer";case ct:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:xt(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return xt(e(t))}catch(r){}}return null}var wt={};function At(e,t){if(!(e=e.contextTypes))return wt;var r,n={};for(r in e)n[r]=t[r];return n}var St=null;function Et(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(i(401))}else{if(null===r)throw Error(i(401));Et(e,r)}t.context._currentValue=t.value}}function Tt(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Tt(e)}function Pt(e){var t=e.parent;null!==t&&Pt(t),e.context._currentValue=e.value}function Ct(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(i(402));e.depth===t.depth?Et(e,t):Ct(e,t)}function It(e,t){var r=t.parent;if(null===r)throw Error(i(402));e.depth===r.depth?Et(e,r):It(e,r),t.context._currentValue=t.value}function Mt(e){var t=St;t!==e&&(null===t?Pt(e):null===e?Tt(t):t.depth===e.depth?Et(t,e):t.depth>e.depth?Ct(t,e):It(t,e),St=e)}var kt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Ot(e,t,r,n){var i=void 0!==e.state?e.state:null;e.updater=kt,e.props=r,e.state=i;var o={queue:[],replace:!1};e._reactInternals=o;var a=t.contextType;if(e.context="object"===typeof a&&null!==a?a._currentValue:n,"function"===typeof(a=t.getDerivedStateFromProps)&&(i=null===(a=a(r,i))||void 0===a?i:nt({},i,a),e.state=i),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&kt.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,a=o.replace,o.queue=null,o.replace=!1,a&&1===t.length)e.state=t[0];else{for(o=a?t[0]:e.state,i=!0,a=a?1:0;a<t.length;a++){var s=t[a];null!=(s="function"===typeof s?s.call(e,o,r,n):s)&&(i?(i=!1,o=nt({},o,s)):nt(o,s))}e.state=o}else o.queue=null}var Rt={id:1,overflow:""};function Lt(e,t,r){var n=e.id;e=e.overflow;var i=32-Dt(n)-1;n&=~(1<<i),r+=1;var o=32-Dt(t)+i;if(30<o){var a=i-i%5;return o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,{id:1<<32-Dt(t)+i|r<<i|n,overflow:o+e}}return{id:1<<o|r<<i|n,overflow:e}}var Dt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Nt(e)/Ft|0)|0},Nt=Math.log,Ft=Math.LN2;var zt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},jt=null,Bt=null,Ut=null,Vt=null,qt=!1,Ht=!1,Gt=0,Wt=null,Yt=0;function Zt(){if(null===jt)throw Error(i(321));return jt}function Kt(){if(0<Yt)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function Xt(){return null===Vt?null===Ut?(qt=!1,Ut=Vt=Kt()):(qt=!0,Vt=Ut):null===Vt.next?(qt=!1,Vt=Vt.next=Kt()):(qt=!0,Vt=Vt.next),Vt}function Jt(){Bt=jt=null,Ht=!1,Ut=null,Yt=0,Vt=Wt=null}function Qt(e,t){return"function"===typeof t?t(e):t}function $t(e,t,r){if(jt=Zt(),Vt=Xt(),qt){var n=Vt.queue;if(t=n.dispatch,null!==Wt&&void 0!==(r=Wt.get(n))){Wt.delete(n),n=Vt.memoizedState;do{n=e(n,r.action),r=r.next}
vendor: 10,376 bytes, line 2
2while(null!==r);return Vt.memoizedState=n,[n,t]}return[Vt.memoizedState,t]}return e=e===Qt?"function"===typeof t?t():t:void 0!==r?r(t):t,Vt.memoizedState=e,e=(e=Vt.queue={last:null,dispatch:null}).dispatch=tr.bind(null,jt,e),[Vt.memoizedState,e]}function er(e,t){if(jt=Zt(),t=void 0===t?null:t,null!==(Vt=Xt())){var r=Vt.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var i=0;i<n.length&&i<t.length;i++)if(!zt(t[i],n[i])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Vt.memoizedState=[e,t],e}function tr(e,t,r){if(25<=Yt)throw Error(i(301));if(e===jt)if(Ht=!0,e={action:r,next:null},null===Wt&&(Wt=new Map),void 0===(r=Wt.get(t)))Wt.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function rr(){throw Error(i(394))}function nr(){}var ir={readContext:function(e){return e._currentValue},useContext:function(e){return Zt(),e._currentValue},useMemo:er,useReducer:$t,useRef:function(e){jt=Zt();var t=(Vt=Xt()).memoizedState;return null===t?(e={current:e},Vt.memoizedState=e):t},useState:function(e){return $t(Qt,e)},useInsertionEffect:nr,useLayoutEffect:function(){},useCallback:function(e,t){return er((function(){return e}),t)},useImperativeHandle:nr,useEffect:nr,useDebugValue:nr,useDeferredValue:function(e){return Zt(),e},useTransition:function(){return Zt(),[!1,rr]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Dt(e)-1)).toString(32)+t;var r=or;if(null===r)throw Error(i(404));return t=Gt++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Zt(),t(e._source)},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(i(407));return r()}},or=null,ar=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function sr(e){return console.error(e),null}function lr(){}function cr(e,t,r,n,i,o,a,s){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Sr(e)},blockedBoundary:r,blockedSegment:n,abortSet:i,legacyContext:o,context:a,treeContext:s};return i.add(l),l}function ur(e,t,r,n,i,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:i,textEmbedded:o}}function dr(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hr(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function pr(e,t,r,n,i){for(jt={},Bt=t,Gt=0,e=r(n,i);Ht;)Ht=!1,Gt=0,Yt+=1,Vt=null,e=r(n,i);return Jt(),e}function fr(e,t,r,n){var o=r.render(),a=n.childContextTypes;if(null!==a&&void 0!==a){var s=t.legacyContext;if("function"!==typeof r.getChildContext)n=s;else{for(var l in r=r.getChildContext())if(!(l in a))throw Error(i(108,xt(n)||"Unknown",l));n=nt({},s,r)}t.legacyContext=n,_r(e,t,o),t.legacyContext=s}else _r(e,t,o)}function mr(e,t){if(e&&e.defaultProps){for(var r in t=nt({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function gr(e,t,r,n,o){if("function"===typeof r)if(r.prototype&&r.prototype.isReactComponent){o=At(r,t.legacyContext);var a=r.contextType;Ot(a=new r(n,"object"===typeof a&&null!==a?a._currentValue:o),r,n,o),fr(e,t,a,r)}else{o=pr(e,t,r,n,a=At(r,t.legacyContext));var s=0!==Gt;if("object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof)Ot(o,r,n,a),fr(e,t,o,r);else if(s){n=t.treeContext,t.treeContext=Lt(n,1,0);try{_r(e,t,o)}finally{t.treeContext=n}}else _r(e,t,o)}else{if("string"!==typeof r){switch(r){case yt:case _t:case st:case lt:case at:case pt:return void _r(e,t,n.children);case gt:throw Error(i(343));case ht:e:{r=t.blockedBoundary,o=t.blockedSegment,a=n.fallback,n=n.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},c=ur(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var u=ur(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(vr(e,t,n),u.lastPushedText&&u.textEmbedded&&u.chunks.push(z),u.status=1,wr(l,u),0===l.pendingTasks)break e}catch(h){u.status=4,l.forceClientRender=!0,l.errorDigest=dr(e,h)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=cr(e,a,r,c,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof r&&null!==r)switch(r.$$typeof){case dt:if(n=pr(e,t,r.render,n,o),0!==Gt){r=t.treeContext,t.treeContext=Lt(r,1,0);try{_r(e,t,n)}finally{t.treeContext=r}}else _r(e,t,n);return;case ft:return void gr(e,t,r=r.type,n=mr(r,n),o);case ct:if(o=n.children,r=r._context,n=n.value,a=r._currentValue,r._currentValue=n,St=n={parent:s=St,depth:null===s?0:s.depth+1,context:r,parentValue:a,value:n},t.context=n,_r(e,t,o),null===(e=St))throw Error(i(403));return n=e.parentValue,e.context._currentValue=n===vt?e.context._defaultValue:n,e=St=e.parent,void(t.context=e);case ut:return void _r(e,t,n=(n=n.children)(r._currentValue));case mt:return void gr(e,t,r=(o=r._init)(r._payload),n=mr(r,n),void 0)}throw Error(i(130,null==r?r:typeof r,""))}switch(a=ae((o=t.blockedSegment).chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,s=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return F(1,null!=r.value?r.value:r.defaultValue);case"svg":return F(2,null);case"math":return F(3,null);case"foreignObject":return F(1,null);case"table":return F(4,null);case"thead":case"tbody":case"tfoot":return F(5,null);case"colgroup":return F(7,null);case"tr":return F(6,null)}return 4<=e.insertionMode||0===e.insertionMode?F(1,null):e}(s,r,n),vr(e,t,a),o.formatContext=s,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(se,d(r),le)}o.lastPushedText=!1}}function _r(e,t,r){if(t.node=r,"object"===typeof r&&null!==r){switch(r.$$typeof){case it:return void gr(e,t,r.type,r.props,r.ref);case ot:throw Error(i(257));case mt:var n=r._init;return void _r(e,t,r=n(r._payload))}if(I(r))return void yr(e,t,r);if(null===r||"object"!==typeof r?n=null:n="function"===typeof(n=bt&&r[bt]||r["@@iterator"])?n:null,n&&(n=n.call(r))){if(!(r=n.next()).done){var o=[];do{o.push(r.value),r=n.next()}while(!r.done);yr(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}"string"===typeof r?(n=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText):"number"===typeof r&&((n=t.blockedSegment).lastPushedText=j(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function yr(e,t,r){for(var n=r.length,i=0;i<n;i++){var o=t.treeContext;t.treeContext=Lt(o,n,i);try{vr(e,t,r[i])}finally{t.treeContext=o}}}function vr(e,t,r){var n=t.blockedSegment.formatContext,i=t.legacyContext,o=t.context;try{return _r(e,t,r)}catch(l){if(Jt(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,Mt(o),l;r=l;var a=t.blockedSegment,s=ur(0,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=cr(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=i,t.context=o,Mt(o)}}function br(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Ar(this,t,e)}function xr(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,null===n?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=void 0===r?Error(i(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach((function(e){return xr(e,t,r)})),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(n=t.onAllReady)())}function wr(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&wr(e,r)}else e.completedSegments.push(t)}function Ar(e,t,r){if(null===t){if(r.parentFlushed){if(null!==e.completedRootSegment)throw Error(i(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=lr,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(r.parentFlushed&&1===r.status&&wr(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(br,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&1===r.status&&(wr(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Sr(e){if(2!==e.status){var t=St,r=ar.current;ar.current=ir;var n=or;or=e.responseState;try{var i,o=e.pingedTasks;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(0===l.status){Mt(a.context);try{_r(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(z),a.abortSet.delete(a),l.status=1,Ar(s,a.blockedBoundary,l)}catch(p){if(Jt(),"object"===typeof p&&null!==p&&"function"===typeof p.then){var c=a.ping;p.then(c,c)}else{a.abortSet.delete(a),l.status=4;var u=a.blockedBoundary,d=p,h=dr(s,d);if(null===u?hr(s,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=h,u.parentFlushed&&s.clientRenderedBoundaries.push(u))),s.allPendingTasks--,0===s.allPendingTasks)(0,s.onAllReady)()}}}}o.splice(0,i),null!==e.destination&&Mr(e,e.destination)}catch(p){dr(e,p),hr(e,p)}finally{or=n,ar.current=r,r===ir&&Mt(t)}}}function Er(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,s(t,ce),s(t,e.placeholderPrefix),s(t,e=d(n.toString(16))),l(t,ue);case 1:r.status=2;var o=!0;n=r.chunks;var a=0;r=r.children;for(var c=0;c<r.length;c++){for(o=r[c];a<o.index;a++)s(t,n[a]);o=Tr(e,t,o)}for(;a<n.length-1;a++)s(t,n[a]);return a<n.length&&(o=l(t,n[a])),o;default:throw Error(i(390))}}
vendor: 7,447 bytes, line 2
2function Tr(e,t,r){var n=r.boundary;if(null===n)return Er(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,l(t,fe),s(t,ge),n&&(s(t,ye),s(t,d(T(n))),s(t,_e)),l(t,ve),Er(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,a=o.nextSuspenseID++;o=h(o.boundaryPrefix+a.toString(16)),n=n.id=o,be(t,e.responseState,n),Er(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),be(t,e.responseState,n.id),Er(e,t,r);else{if(l(t,de),1!==(r=n.completedSegments).length)throw Error(i(391));Tr(e,t,r[0])}return l(t,me)}function Pr(e,t,r){return function(e,t,r,n){switch(r.insertionMode){case 0:case 1:return s(e,xe),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,we);case 2:return s(e,Se),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,Ee);case 3:return s(e,Pe),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,Ce);case 4:return s(e,Me),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,ke);case 5:return s(e,Re),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,Le);case 6:return s(e,Ne),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,Fe);case 7:return s(e,je),s(e,t.segmentPrefix),s(e,d(n.toString(16))),l(e,Be);default:throw Error(i(397))}}(t,e.responseState,r.formatContext,r.id),Tr(e,t,r),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Ae);case 2:return l(e,Te);case 3:return l(e,Ie);case 4:return l(e,Oe);case 5:return l(e,De);case 6:return l(e,ze);case 7:return l(e,Ue);default:throw Error(i(397))}}(t,r.formatContext)}function Cr(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)Ir(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,s(t,e.startInlineScript),e.sentCompleteBoundaryFunction?s(t,Ye):(e.sentCompleteBoundaryFunction=!0,s(t,We)),null===n)throw Error(i(395));return r=d(r.toString(16)),s(t,n),s(t,Ze),s(t,e.segmentPrefix),s(t,r),l(t,Ke)}function Ir(e,t,r,n){if(2===n.status)return!0;var o=n.id;if(-1===o){if(-1===(n.id=r.rootSegmentID))throw Error(i(392));return Pr(e,t,n)}return Pr(e,t,n),s(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?s(t,qe):(e.sentCompleteSegmentFunction=!0,s(t,Ve)),s(t,e.segmentPrefix),s(t,o=d(o.toString(16))),s(t,He),s(t,e.placeholderPrefix),s(t,o),l(t,Ge)}function Mr(e,t){o=new Uint8Array(512),a=0;try{var r=e.completedRootSegment;if(null!==r&&0===e.pendingRootTasks){Tr(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)s(t,n[r]);r<n.length&&l(t,n[r])}var u,h=e.clientRenderedBoundaries;for(u=0;u<h.length;u++){var p=h[u];n=t;var f=e.responseState,m=p.id,g=p.errorDigest,_=p.errorMessage,y=p.errorComponentStack;if(s(n,f.startInlineScript),f.sentClientRenderFunction?s(n,Je):(f.sentClientRenderFunction=!0,s(n,Xe)),null===m)throw Error(i(395));if(s(n,m),s(n,Qe),(g||_||y)&&(s(n,et),s(n,d(rt(g||"")))),(_||y)&&(s(n,et),s(n,d(rt(_||"")))),y&&(s(n,et),s(n,d(rt(y)))),!l(n,$e))return e.destination=null,u++,void h.splice(0,u)}h.splice(0,u);var v=e.completedBoundaries;for(u=0;u<v.length;u++)if(!Cr(e,t,v[u]))return e.destination=null,u++,void v.splice(0,u);v.splice(0,u),c(t),o=new Uint8Array(512),a=0;var b=e.partialBoundaries;for(u=0;u<b.length;u++){var x=b[u];e:{h=e,p=t;var w=x.completedSegments;for(f=0;f<w.length;f++)if(!Ir(h,p,x,w[f])){f++,w.splice(0,f);var A=!1;break e}w.splice(0,f),A=!0}if(!A)return e.destination=null,u++,void b.splice(0,u)}b.splice(0,u);var S=e.completedBoundaries;for(u=0;u<S.length;u++)if(!Cr(e,t,S[u]))return e.destination=null,u++,void S.splice(0,u);S.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function kr(e,t){try{var r=e.abortableTasks;r.forEach((function(r){return xr(r,e,t)})),r.clear(),null!==e.destination&&Mr(e,e.destination)}catch(n){dr(e,n),hr(e,n)}}t.renderToReadableStream=function(e,t){return new Promise((function(r,n){var i,o,a=new Promise((function(e,t){o=e,i=t})),s=function(e,t,r,n,i,o,a,s,l){var c=[],u=new Set;return(r=ur(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?sr:i,onAllReady:void 0===o?lr:o,onShellReady:void 0===a?lr:a,onShellError:void 0===s?lr:s,onFatalError:void 0===l?lr:l},0,null,r,!1,!1)).parentFlushed=!0,e=cr(t,e,null,r,u,wt,null,Rt),c.push(e),t}(e,function(e,t,r,n,i){e=void 0===e?"":e,t=void 0===t?M:h('<script nonce="'+T(t)+'">');var o=[];if(void 0!==r&&o.push(t,d((""+r).replace(D,N)),k),void 0!==n)for(r=0;r<n.length;r++)o.push(O,d(T(n[r])),L);if(void 0!==i)for(n=0;n<i.length;n++)o.push(R,d(T(i[n])),L);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:h(e+"P:"),segmentPrefix:h(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return F("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,o,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===s.status)s.status=2,p(e,s.fatalError);else if(2!==s.status&&null===s.destination){s.destination=e;try{Mr(s,e)}catch(t){dr(s,t),hr(s,t)}}},cancel:function(){kr(s)}},{highWaterMark:0});e.allReady=a,r(e)}),(function(e){a.catch((function(){})),n(e)}),i);if(t&&t.signal){var l=t.signal,c=function(){kr(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}Sr(s)}))},t.version="18.3.1"},82730:(e,t,r)=>{"use strict";var n=r(65043),i=r(78853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},f={};function m(e,t,r,n,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,r,n){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!d.call(f,e)||!d.call(p,e)&&(h.test(e)?f[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(_,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),P=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=L&&e[L]||e["@@iterator"])?e:null}var N,F=Object.assign;function z(e){if(void 0===N)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var j=!1;function B(e,t){if(!e||j)return"";j=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=n.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case A:return"Fragment";case w:return"Portal";case E:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case M:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return V(e(t))}catch(r){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var r=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function X(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=H(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){J(e,t);var r=H(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&Z(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+H(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(o(92));if(te(r)){if(1<r.length)throw Error(o(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function oe(e,t){var r=H(t.value),n=H(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(pe).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var _e=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(_e[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Ae=null,Se=null;function Ee(e){if(e=vi(e)){if("function"!==typeof we)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),we(e.stateNode,e.type,t))}}function Te(e){Ae?Se?Se.push(e):Se=[e]:Ae=e}function Pe(){if(Ae){var e=Ae,t=Se;if(Se=Ae=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Ce(e,t){return e(t)}function Ie(){}var Me=!1;function ke(e,t,r){if(Me)return e(t,r);Me=!0;try{return Ce(e,t,r)}finally{Me=!1,(null!==Ae||null!==Se)&&(Ie(),Pe())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var n=xi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(o(231,t,typeof r));return r}var Re=!1;if(u)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(ue){Re=!1}function De(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Ne=!1,Fe=null,ze=!1,je=null,Be={onError:function(e){Ne=!0,Fe=e}};function Ue(e,t,r,n,i,o,a,s,l){Ne=!1,Fe=null,De.apply(Be,arguments)}function Ve(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(o(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return He(i),e;if(a===n)return He(i),t;a=a.sibling}throw Error(o(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=a;break}if(l===n){s=!0,n=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=i;break}if(l===n){s=!0,n=a,r=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(r.alternate!==n)throw Error(o(190))}if(3!==r.tag)throw Error(o(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ye=i.unstable_scheduleCallback,Ze=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Je=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~i;0!==s?n=dt(s):0!==(o&=a)&&(n=dt(o))}else 0!==(a=r&~i)?n=dt(a):0!==o&&(n=dt(o));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-at(t)),n|=e[r],t&=~i;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function _t(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var vt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,wt,At,St,Et,Tt=!1,Pt=[],Ct=null,It=null,Mt=null,kt=new Map,Ot=new Map,Rt=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Nt(e,t,r,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=vi(t))&&wt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ft(e){var t=yi(e.target);if(null!==t){var r=Ve(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=qe(r)))return e.blockedOn=t,void Et(e.priority,(function(){At(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=vi(r))&&wt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);be=n,r.target.dispatchEvent(n),be=null,t.shift()}return!0}function jt(e,t,r){zt(e)&&r.delete(t)}function Bt(){Tt=!1,null!==Ct&&zt(Ct)&&(Ct=null),null!==It&&zt(It)&&(It=null),null!==Mt&&zt(Mt)&&(Mt=null),kt.forEach(jt),Ot.forEach(jt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return Ut(t,e)}if(0<Pt.length){Ut(Pt[0],e);for(var r=1;r<Pt.length;r++){var n=Pt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),null!==Mt&&Ut(Mt,e),kt.forEach(t),Ot.forEach(t),r=0;r<Rt.length;r++)(n=Rt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Rt.length&&null===(r=Rt[0]).blockedOn;)Ft(r),null===r.blockedOn&&Rt.shift()}var qt=b.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,r,n){var i=vt,o=qt.transition;qt.transition=null;try{vt=1,Yt(e,t,r,n)}finally{vt=i,qt.transition=o}}function Wt(e,t,r,n){var i=vt,o=qt.transition;qt.transition=null;try{vt=4,Yt(e,t,r,n)}finally{vt=i,qt.transition=o}}function Yt(e,t,r,n){if(Ht){var i=Kt(e,t,r,n);if(null===i)Hn(e,t,n,Zt,r),Dt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Ct=Nt(Ct,e,t,r,n,i),!0;case"dragenter":return It=Nt(It,e,t,r,n,i),!0;case"mouseover":return Mt=Nt(Mt,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Nt(kt.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ot.set(o,Nt(Ot.get(o)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Dt(e,n),4&t&&-1<Lt.indexOf(e)){for(;null!==i;){var o=vi(i);if(null!==o&&xt(o),null===(o=Kt(e,t,r,n))&&Hn(e,t,n,Zt,r),o===i)break;i=o}null!==i&&n.stopPropagation()}else Hn(e,t,n,null,r)}}var Zt=null;function Kt(e,t,r,n){if(Zt=null,null!==(e=yi(e=xe(n))))if(null===(t=Ve(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case $e:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,$t=null;function er(){if($t)return $t;var e,t,r=Qt,n=r.length,i="value"in Jt?Jt.value:Jt.textContent,o=i.length;for(e=0;e<n&&r[e]===i[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===i[o-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,o){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var or,ar,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=ir(lr),ur=F({},lr,{view:0,detail:0}),dr=ir(ur),hr=F({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(or=e.screenX-sr.screenX,ar=e.screenY-sr.screenY):ar=or=0,sr=e),or)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=ir(hr),fr=ir(F({},hr,{dataTransfer:0})),mr=ir(F({},ur,{relatedTarget:0})),gr=ir(F({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),_r=F({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(_r),vr=ir(F({},lr,{data:0})),br={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wr[e])&&!!t[e]}function Sr(){return Ar}var Er=F({},ur,{key:function(e){if(e.key){var t=br[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tr=ir(Er),Pr=ir(F({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cr=ir(F({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sr})),Ir=ir(F({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mr=F({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kr=ir(Mr),Or=[9,13,27,32],Rr=u&&"CompositionEvent"in window,Lr=null;u&&"documentMode"in document&&(Lr=document.documentMode);var Dr=u&&"TextEvent"in window&&!Lr,Nr=u&&(!Rr||Lr&&8<Lr&&11>=Lr),Fr=String.fromCharCode(32),zr=!1;function jr(e,t){switch(e){case"keyup":return-1!==Or.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Br(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1;var Vr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vr[e.type]:"textarea"===t}function Hr(e,t,r,n){Te(n),0<(t=Wn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,Wr=null;function Yr(e){zn(e,0)}function Zr(e){if(Y(bi(e)))return e}function Kr(e,t){if("change"===e)return t}var Xr=!1;if(u){var Jr;if(u){var Qr="oninput"in document;if(!Qr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Qr="function"===typeof $r.oninput}Jr=Qr}else Jr=!1;Xr=Jr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),Wr=Gr=null)}function tn(e){if("value"===e.propertyName&&Zr(Wr)){var t=[];Hr(t,Wr,e,xe(e)),ke(Yr,t)}}function rn(e,t,r){"focusin"===e?(en(),Wr=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zr(Wr)}function on(e,t){if("click"===e)return Zr(t)}function an(e,t){if("input"===e||"change"===e)return Zr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ln(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!d.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Z((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=void 0===n.end?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=un(r,o);var a=un(r,n);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,gn=null,_n=null,yn=null,vn=!1;function bn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;vn||null==gn||gn!==Z(n)||("selectionStart"in(n=gn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Wn(_n,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var wn={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},An={},Sn={};function En(e){if(An[e])return An[e];if(!wn[e])return e;var t,r=wn[e];for(t in r)if(r.hasOwnProperty(t)&&t in Sn)return An[e]=r[t];return e}u&&(Sn=document.createElement("div").style,"AnimationEvent"in window||(delete wn.animationend.animation,delete wn.animationiteration.animation,delete wn.animationstart.animation),"TransitionEvent"in window||delete wn.transitionend.transition);var Tn=En("animationend"),Pn=En("animationiteration"),Cn=En("animationstart"),In=En("transitionend"),Mn=new Map,kn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function On(e,t){Mn.set(e,t),l(t,[e])}for(var Rn=0;Rn<kn.length;Rn++){var Ln=kn[Rn];On(Ln.toLowerCase(),"on"+(Ln[0].toUpperCase()+Ln.slice(1)))}On(Tn,"onAnimationEnd"),On(Pn,"onAnimationIteration"),On(Cn,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(In,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function Fn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,s,l,c){if(Ue.apply(this,arguments),Ne){if(!Ne)throw Error(o(198));var u=Fe;Ne=!1,Fe=null,ze||(ze=!0,je=u)}}(n,t,void 0,e),e.currentTarget=null}function zn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Fn(i,s,c),o=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Fn(i,s,c),o=l}}}if(ze)throw e=je,ze=!1,je=null,e}function jn(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(qn(t,e,2,!1),r.add(n))}function Bn(e,t,r){var n=0;t&&(n|=4),qn(r,e,n,t)}var Un="_reactListening"+Math.random().toString(36).slice(2);function Vn(e){if(!e[Un]){e[Un]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nn.has(t)||Bn(t,!1,e),Bn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Un]||(t[Un]=!0,Bn("selectionchange",!1,t))}}function qn(e,t,r,n){switch(Xt(t)){case 1:var i=Gt;break;case 4:i=Wt;break;default:i=Yt}r=i.bind(null,t,r,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Hn(e,t,r,n,i){var o=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){n=o=a;continue e}s=s.parentNode}}n=n.return}ke((function(){var n=o,i=xe(r),a=[];e:{var s=Mn.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Tr;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Cr;break;case Tn:case Pn:case Cn:l=gr;break;case In:l=Ir;break;case"scroll":l=dr;break;case"wheel":l=kr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pr}var u=0!==(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=n;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Oe(f,h))&&u.push(Gn(f,m,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,r,i),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===be||!(c=r.relatedTarget||r.fromElement)||!yi(c)&&!c[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?yi(c):null)&&(c!==(d=Ve(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=pr,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pr,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:bi(l),p=null==c?s:bi(c),(s=new u(m,f+"leave",l,r,i)).target=d,s.relatedTarget=p,m=null,yi(i)===n&&((u=new u(h,f+"enter",c,r,i)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(h=c,f=0,p=u=l;p;p=Yn(p))f++;for(p=0,m=h;m;m=Yn(m))p++;for(;0<f-p;)u=Yn(u),f--;for(;0<p-f;)h=Yn(h),p--;for(;f--;){if(u===h||null!==h&&u===h.alternate)break e;u=Yn(u),h=Yn(h)}u=null}else u=null;null!==l&&Zn(a,s,l,u,!1),null!==c&&null!==d&&Zn(a,d,c,u,!0)}if("select"===(l=(s=n?bi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kr;else if(qr(s))if(Xr)g=an;else{g=nn;var _=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=on);switch(g&&(g=g(e,n))?Hr(a,g,r,i):(_&&_(e,s,n),"focusout"===e&&(_=s._wrapperState)&&_.controlled&&"number"===s.type&&ee(s,"number",s.value)),_=n?bi(n):window,e){case"focusin":(qr(_)||"true"===_.contentEditable)&&(gn=_,_n=n,yn=null);break;case"focusout":yn=_n=gn=null;break;case"mousedown":vn=!0;break;case"contextmenu":case"mouseup":case"dragend":vn=!1,bn(a,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":bn(a,r,i)}var y;if(Rr)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Ur?jr(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Nr&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==v?"onCompositionEnd"===v&&Ur&&(y=er()):(Qt="value"in(Jt=i)?Jt.value:Jt.textContent,Ur=!0)),0<(_=Wn(n,v)).length&&(v=new vr(v,e,null,r,i),a.push({event:v,listeners:_}
vendor: 87,882 bytes, line 2
2),y?v.data=y:null!==(y=Br(r))&&(v.data=y))),(y=Dr?function(e,t){switch(e){case"compositionend":return Br(t);case"keypress":return 32!==t.which?null:(zr=!0,Fr);case"textInput":return(e=t.data)===Fr&&zr?null:e;default:return null}}(e,r):function(e,t){if(Ur)return"compositionend"===e||!Rr&&jr(e,t)?(e=er(),$t=Qt=Jt=null,Ur=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Wn(n,"onBeforeInput")).length&&(i=new vr("onBeforeInput","beforeinput",null,r,i),a.push({event:i,listeners:n}),i.data=y))}zn(a,t)}))}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Wn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Oe(e,r))&&n.unshift(Gn(e,o,i)),null!=(o=Oe(e,t))&&n.push(Gn(e,o,i))),e=e.return}return n}function Yn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zn(e,t,r,n,i){for(var o=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Oe(r,o))&&a.unshift(Gn(r,l,s)):i||null!=(l=Oe(r,o))&&a.push(Gn(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Kn=/\r\n?/g,Xn=/\u0000|\uFFFD/g;function Jn(e){return("string"===typeof e?e:""+e).replace(Kn,"\n").replace(Xn,"")}function Qn(e,t,r){if(t=Jn(t),Jn(e)!==t&&r)throw Error(o(425))}function $n(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void Vt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);Vt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),hi="__reactFiber$"+di,pi="__reactProps$"+di,fi="__reactContainer$"+di,mi="__reactEvents$"+di,gi="__reactListeners$"+di,_i="__reactHandles$"+di;function yi(e){var t=e[hi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[fi]||r[hi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ui(e);null!==e;){if(r=e[hi])return r;e=ui(e)}return t}r=(e=r).parentNode}return null}function vi(e){return!(e=e[hi]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var wi=[],Ai=-1;function Si(e){return{current:e}}function Ei(e){0>Ai||(e.current=wi[Ai],wi[Ai]=null,Ai--)}function Ti(e,t){Ai++,wi[Ai]=e.current,e.current=t}var Pi={},Ci=Si(Pi),Ii=Si(!1),Mi=Pi;function ki(e,t){var r=e.type.contextTypes;if(!r)return Pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in r)o[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Ei(Ii),Ei(Ci)}function Li(e,t,r){if(Ci.current!==Pi)throw Error(o(168));Ti(Ci,t),Ti(Ii,r)}function Di(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return F({},r,n)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Mi=Ci.current,Ti(Ci,e),Ti(Ii,Ii.current),!0}function Fi(e,t,r){var n=e.stateNode;if(!n)throw Error(o(169));r?(e=Di(e,t,Mi),n.__reactInternalMemoizedMergedChildContext=e,Ei(Ii),Ei(Ci),Ti(Ci,e)):Ei(Ii),Ti(Ii,r)}var zi=null,ji=!1,Bi=!1;function Ui(e){null===zi?zi=[e]:zi.push(e)}function Vi(){if(!Bi&&null!==zi){Bi=!0;var e=0,t=vt;try{var r=zi;for(vt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}zi=null,ji=!1}catch(i){throw null!==zi&&(zi=zi.slice(e+1)),Ye($e,Vi),i}finally{vt=t,Bi=!1}}return null}var qi=[],Hi=0,Gi=null,Wi=0,Yi=[],Zi=0,Ki=null,Xi=1,Ji="";function Qi(e,t){qi[Hi++]=Wi,qi[Hi++]=Gi,Gi=e,Wi=t}function $i(e,t,r){Yi[Zi++]=Xi,Yi[Zi++]=Ji,Yi[Zi++]=Ki,Ki=e;var n=Xi;e=Ji;var i=32-at(n)-1;n&=~(1<<i),r+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Xi=1<<32-at(t)+i|r<<i|n,Ji=o+e}else Xi=1<<o|r<<i|n,Ji=e}function eo(e){null!==e.return&&(Qi(e,1),$i(e,1,0))}function to(e){for(;e===Gi;)Gi=qi[--Hi],qi[Hi]=null,Wi=qi[--Hi],qi[Hi]=null;for(;e===Ki;)Ki=Yi[--Zi],Yi[Zi]=null,Ji=Yi[--Zi],Yi[Zi]=null,Xi=Yi[--Zi],Yi[Zi]=null}var ro=null,no=null,io=!1,oo=null;function ao(e,t){var r=kc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function so(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,no=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,no=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Xi,overflow:Ji}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=kc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ro=e,no=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=no;if(t){var r=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ci(r.nextSibling);var n=ro;t&&so(e,t)?ao(n,r):(e.flags=-4097&e.flags|2,io=!1,ro=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,ro=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function ho(e){if(e!==ro)return!1;if(!io)return uo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=no)){if(lo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){no=ci(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}no=null}}else no=ro?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=no;e;)e=ci(e.nextSibling)}function fo(){no=ro=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var go=b.ReactCurrentBatchConfig;function _o(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(o(309));var n=r.stateNode}if(!n)throw Error(o(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!r._owner)throw Error(o(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vo(e){return(0,e._init)(e._payload)}function bo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Rc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Fc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){var o=r.type;return o===A?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&vo(o)===t.type)?((n=i(t,r.props)).ref=_o(e,t,r),n.return=e,n):((n=Lc(r.type,r.key,r.props,null,e.mode,n)).ref=_o(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=zc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Dc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function h(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fc(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(r=Lc(t.type,t.key,t.props,null,e.mode,r)).ref=_o(e,null,t),r.return=e,r;case w:return(t=zc(t,e.mode,r)).return=e,t;case O:return h(e,(0,t._init)(t._payload),r)}if(te(t)||D(t))return(t=Dc(t,e.mode,r,null)).return=e,t;yo(e,t)}return null}function p(e,t,r,n){var i=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==i?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return r.key===i?c(e,t,r,n):null;case w:return r.key===i?u(e,t,r,n):null;case O:return p(e,t,(i=r._init)(r._payload),n)}if(te(r)||D(r))return null!==i?null:d(e,t,r,n,null);yo(e,r)}return null}function f(e,t,r,n,i){if("string"===typeof n&&""!==n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case w:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case O:return f(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||D(n))return d(t,e=e.get(r)||null,n,i,null);yo(t,n)}return null}function m(i,o,s,l){for(var c=null,u=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var _=p(i,d,s[m],l);if(null===_){null===d&&(d=g);break}e&&d&&null===_.alternate&&t(i,d),o=a(_,o,m),null===u?c=_:u.sibling=_,u=_,d=g}if(m===s.length)return r(i,d),io&&Qi(i,m),c;if(null===d){for(;m<s.length;m++)null!==(d=h(i,s[m],l))&&(o=a(d,o,m),null===u?c=d:u.sibling=d,u=d);return io&&Qi(i,m),c}for(d=n(i,d);m<s.length;m++)null!==(g=f(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),io&&Qi(i,m),c}function g(i,s,l,c){var u=D(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,m=s,g=s=0,_=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(_=m,m=null):_=m.sibling;var v=p(i,m,y.value,c);if(null===v){null===m&&(m=_);break}e&&m&&null===v.alternate&&t(i,m),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v,m=_}if(y.done)return r(i,m),io&&Qi(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return io&&Qi(i,g),u}for(m=n(i,m);!y.done;g++,y=l.next())null!==(y=f(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),io&&Qi(i,g),u}return function e(n,o,a,l){if("object"===typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===A){if(7===u.tag){r(n,u.sibling),(o=i(u,a.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===O&&vo(c)===u.type){r(n,u.sibling),(o=i(u,a.props)).ref=_o(n,u,a),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}a.type===A?((o=Dc(a.props.children,n.mode,l,a.key)).return=n,n=o):((l=Lc(a.type,a.key,a.props,null,n.mode,l)).ref=_o(n,o,a),l.return=n,n=l)}return s(n);case w:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){r(n,o.sibling),(o=i(o,a.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(a,n.mode,l)).return=n,n=o}return s(n);case O:return e(n,o,(u=a._init)(a._payload),l)}if(te(a))return m(n,o,a,l);if(D(a))return g(n,o,a,l);yo(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(r(n,o.sibling),(o=i(o,a)).return=n,n=o):(r(n,o),(o=Fc(a,n.mode,l)).return=n,n=o),s(n)):r(n,o)}}var xo=bo(!0),wo=bo(!1),Ao=Si(null),So=null,Eo=null,To=null;function Po(){To=Eo=So=null}function Co(e){var t=Ao.current;Ei(Ao),e._currentValue=t}function Io(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mo(e,t){So=e,To=Eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(vs=!0),e.firstContext=null)}function ko(e){var t=e._currentValue;if(To!==e)if(e={context:e,memoizedValue:t,next:null},null===Eo){if(null===So)throw Error(o(308));Eo=e,So.dependencies={lanes:0,firstContext:e}}else Eo=Eo.next=e;return t}var Oo=null;function Ro(e){null===Oo?Oo=[e]:Oo.push(e)}function Lo(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Ro(t)):(r.next=i.next,i.next=r),t.interleaved=r,Do(e,n)}function Do(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var No=!1;function Fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function jo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bo(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Cl)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Do(e,r)}return null===(i=n.interleaved)?(t.next=t,Ro(n)):(t.next=i.next,i.next=t),n.interleaved=t,Do(e,r)}function Uo(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function Vo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,o=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===o?i=o=a:o=o.next=a,r=r.next}while(null!==r);null===o?i=o=t:o=o.next=t}else i=o=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function qo(e,t,r,n){var i=e.updateQueue;No=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,p=s.eventTime;if((n&h)===h){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=r,m.tag){case 1:if("function"===typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(h="function"===typeof(f=m.payload)?f.call(p,d,h):f)||void 0===h)break e;d=F({},d,h);break e;case 2:No=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Ho(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!==typeof i)throw Error(o(191,i));i.call(n)}}}var Go={},Wo=Si(Go),Yo=Si(Go),Zo=Si(Go);function Ko(e){if(e===Go)throw Error(o(174));return e}function Xo(e,t){switch(Ti(Zo,t),Ti(Yo,e),Ti(Wo,Go),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Wo),Ti(Wo,t)}function Jo(){Ei(Wo),Ei(Yo),Ei(Zo)}function Qo(e){Ko(Zo.current);var t=Ko(Wo.current),r=le(t,e.type);t!==r&&(Ti(Yo,e),Ti(Wo,r))}function $o(e){Yo.current===e&&(Ei(Wo),Ei(Yo))}var ea=Si(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=b.ReactCurrentDispatcher,oa=b.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,ha=0,pa=0;function fa(){throw Error(o(321))}function ma(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function ga(e,t,r,n,i,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?$a:es,e=r(n,i),da){a=0;do{if(da=!1,ha=0,25<=a)throw Error(o(301));a+=1,ca=la=null,t.updateQueue=null,ia.current=ts,e=r(n,i)}while(da)}if(ia.current=Qa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(o(300));return e}function _a(){var e=0!==ha;return ha=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function va(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(o(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function ba(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=la,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=n):c=c.next=h,sa.lanes|=d,Nl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(vs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,sa.lanes|=a,Nl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wa(e){var t=va(),r=t.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sn(a,t.memoizedState)||(vs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Aa(){}function Sa(e,t){var r=sa,n=va(),i=t(),a=!sn(n.memoizedState,i);if(a&&(n.memoizedState=i,vs=!0),n=n.queue,Na(Pa.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,ka(9,Ta.bind(null,r,n,i,t),void 0,null),null===Il)throw Error(o(349));0!==(30&aa)||Ea(r,t,i)}return i}function Ea(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ta(e,t,r,n){t.value=r,t.getSnapshot=n,Ca(t)&&Ia(e)}function Pa(e,t,r){return r((function(){Ca(t)&&Ia(e)}))}function Ca(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Ia(e){var t=Do(e,1);null!==t&&rc(t,e,1,-1)}function Ma(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t.queue=e,e=e.dispatch=Za.bind(null,sa,e),[t.memoizedState,e]}function ka(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Oa(){return va().memoizedState}function Ra(e,t,r,n){var i=ya();sa.flags|=e,i.memoizedState=ka(1|t,r,void 0,void 0===n?null:n)}function La(e,t,r,n){var i=va();n=void 0===n?null:n;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==n&&ma(n,a.deps))return void(i.memoizedState=ka(t,r,o,n))}sa.flags|=e,i.memoizedState=ka(1|t,r,o,n)}function Da(e,t){return Ra(8390656,8,e,t)}function Na(e,t){return La(2048,8,e,t)}function Fa(e,t){return La(4,2,e,t)}function za(e,t){return La(4,4,e,t)}function ja(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,La(4,4,ja.bind(null,t,e),r)}function Ua(){}function Va(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function qa(e,t){var r=va();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ma(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ha(e,t,r){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,vs=!0),e.memoizedState=r):(sn(r,t)||(r=mt(),sa.lanes|=r,Nl|=r,e.baseState=!0),t)}function Ga(e,t){var r=vt;vt=0!==r&&4>r?r:4,e(!0);var n=oa.transition;oa.transition={};try{e(!1),t()}finally{vt=r,oa.transition=n}}function Wa(){return va().memoizedState}function Ya(e,t,r){var n=tc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ka(e))Xa(t,r);else if(null!==(r=Lo(e,t,r,n))){rc(r,e,n,ec()),Ja(r,t,n)}}function Za(e,t,r){var n=tc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ka(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,a)){var l=t.interleaved;return null===l?(i.next=i,Ro(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(r=Lo(e,t,i,n))&&(rc(r,e,n,i=ec()),Ja(r,t,n))}}function Ka(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Xa(e,t){da=ua=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ja(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var Qa={readContext:ko,useCallback:fa,useContext:fa,useEffect:fa,useImperativeHandle:fa,useInsertionEffect:fa,useLayoutEffect:fa,useMemo:fa,useReducer:fa,useRef:fa,useState:fa,useDebugValue:fa,useDeferredValue:fa,useTransition:fa,useMutableSource:fa,useSyncExternalStore:fa,useId:fa,unstable_isNewReconciler:!1},$a={readContext:ko,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:ko,useEffect:Da,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Ra(4194308,4,ja.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var r=ya();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ya();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ya.bind(null,sa,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ma,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=Ga.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=sa,i=ya();if(io){if(void 0===r)throw Error(o(407));r=r()}else{if(r=t(),null===Il)throw Error(o(349));0!==(30&aa)||Ea(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Da(Pa.bind(null,n,a,e),[e]),n.flags|=2048,ka(9,Ta.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ya(),t=Il.identifierPrefix;if(io){var r=Ji;t=":"+t+"R"+(r=(Xi&~(1<<32-at(Xi)-1)).toString(32)+r),0<(r=ha++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:ko,useCallback:Va,useContext:ko,useEffect:Na,useImperativeHandle:Ba,useInsertionEffect:Fa,useLayoutEffect:za,useMemo:qa,useReducer:xa,useRef:Oa,useState:function(){return xa(ba)},useDebugValue:Ua,useDeferredValue:function(e){return Ha(va(),la.memoizedState,e)},useTransition:function(){return[xa(ba)[0],va().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1},ts={readContext:ko,useCallback:Va,useContext:ko,useEffect:Na,useImperativeHandle:Ba,useInsertionEffect:Fa,useLayoutEffect:za,useMemo:qa,useReducer:wa,useRef:Oa,useState:function(){return wa(ba)},useDebugValue:Ua,useDeferredValue:function(e){var t=va();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[wa(ba)[0],va().memoizedState]},useMutableSource:Aa,useSyncExternalStore:Sa,useId:Wa,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=F({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:F({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=jo(n,i);o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Bo(e,o,i))&&(rc(t,e,i,n),Uo(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),i=tc(e),o=jo(n,i);o.tag=1,o.payload=t,void 0!==r&&null!==r&&(o.callback=r),null!==(t=Bo(e,o,i))&&(rc(t,e,i,n),Uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),i=jo(r,n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Bo(e,i,n))&&(rc(t,e,n,r),Uo(t,e,n))}};function os(e,t,r,n,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(i,o))}function as(e,t,r){var n=!1,i=Pi,o=t.contextType;return"object"===typeof o&&null!==o?o=ko(o):(i=Oi(t)?Mi:Ci.current,o=(n=null!==(n=t.contextTypes)&&void 0!==n)?ki(e,i):Pi),t=new t(r,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Fo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ko(o):(o=Oi(t)?Mi:Ci.current,i.context=ki(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(ns(e,t,o,r),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&is.enqueueReplaceState(i,i.state,null),qo(e,r,i,n),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=U(n),n=n.return}while(n);var i=r}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=jo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Hl||(Hl=!0,Gl=n),ds(0,t)},r}function fs(e,t,r){(r=jo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!==typeof n&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ms(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ec.bind(null,e,t,r),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function _s(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=jo(-1,1)).tag=2,Bo(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var ys=b.ReactCurrentOwner,vs=!1;function bs(e,t,r,n){t.child=null===e?wo(t,null,r,n):xo(t,e.child,r,n)}function xs(e,t,r,n,i){r=r.render;var o=t.ref;return Mo(t,i),n=ga(e,t,r,n,o,i),r=_a(),null===e||vs?(io&&r&&eo(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function ws(e,t,r,n,i){if(null===e){var o=r.type;return"function"!==typeof o||Oc(o)||void 0!==o.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Lc(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,As(e,t,o,n,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(a,n)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Rc(o,n)).ref=t.ref,e.return=t,t.child=e}function As(e,t,r,n,i){if(null!==e){var o=e.memoizedProps;if(ln(o,n)&&e.ref===t.ref){if(vs=!1,t.pendingProps=n=o,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(vs=!0)}}return Ts(e,t,r,n,i)}function Ss(e,t,r){var n=t.pendingProps,i=n.children,o=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Rl,Ol),Ol|=r;else{if(0===(1073741824&r))return e=null!==o?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Rl,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==o?o.baseLanes:r,Ti(Rl,Ol),Ol|=n}else null!==o?(n=o.baseLanes|r,t.memoizedState=null):n=r,Ti(Rl,Ol),Ol|=n;return bs(e,t,i,r),t.child}function Es(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,r,n,i){var o=Oi(r)?Mi:Ci.current;return o=ki(t,o),Mo(t,i),r=ga(e,t,r,n,o,i),n=_a(),null===e||vs?(io&&n&&eo(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function Ps(e,t,r,n,i){if(Oi(r)){var o=!0;Ni(t)}else o=!1;if(Mo(t,i),null===t.stateNode)qs(e,t),as(t,r,n),ls(t,r,n,i),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;"object"===typeof c&&null!==c?c=ko(c):c=ki(t,c=Oi(r)?Mi:Ci.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,a,n,c),No=!1;var h=t.memoizedState;a.state=h,qo(t,n,a,i),l=t.memoizedState,s!==n||h!==l||Ii.current||No?("function"===typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=No||os(t,r,s,n,h,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,zo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"===typeof(l=r.contextType)&&null!==l?l=ko(l):l=ki(t,l=Oi(r)?Mi:Ci.current);var p=r.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ss(t,a,n,l),No=!1,h=t.memoizedState,a.state=h,qo(t,n,a,i);var f=t.memoizedState;s!==d||h!==f||Ii.current||No?("function"===typeof p&&(ns(t,r,p,n),f=t.memoizedState),(c=No||os(t,r,c,n,h,f,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,f,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,f,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),a.props=n,a.state=f,a.context=l,n=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Cs(e,t,r,n,o,i)}function Cs(e,t,r,n,i,o){Es(e,t);var a=0!==(128&t.flags);if(!n&&!a)return i&&Fi(t,r,!1),Hs(e,t,o);n=t.stateNode,ys.current=t;var s=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=xo(t,e.child,null,o),t.child=xo(t,null,s,o)):bs(e,t,s,o),t.memoizedState=n.state,i&&Fi(t,r,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Li(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Li(0,t.context,!1),Xo(e,t.containerInfo)}function Ms(e,t,r,n,i){return fo(),mo(i),t.flags|=256,bs(e,t,r,n),t.child}var ks,Os,Rs,Ls,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,r){var n,i=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ti(ea,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Nc(l,i,0,null),e=Dc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(r),t.memoizedState=Ds,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,js(e,t,s,n=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Nc({mode:"visible",children:n.children},i,0,null),(a=Dc(a,i,s,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&xo(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Ds,a);if(0===(1&t.mode))return js(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,js(e,t,s,n=us(a=Error(o(419)),n,void 0))}if(l=0!==(s&e.childLanes),vs||l){if(null!==(n=Il)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(e,i),rc(n,e,i,-1))}return mc(),js(e,t,s,n=us(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Pc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,no=ci(i.nextSibling),ro=t,io=!0,oo=null,null!==e&&(Yi[Zi++]=Xi,Yi[Zi++]=Ji,Yi[Zi++]=Ki,Xi=e.id,Ji=e.overflow,Ki=t),t=zs(t,n.children),t.flags|=4096,t)}(e,t,l,i,n,a,r);if(s){s=i.fallback,l=t.mode,n=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&l)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Rc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==n?s=Rc(n,s):(s=Dc(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ds,i}return e=(s=e.child).sibling,i=Rc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,r,n){return null!==n&&mo(n),xo(t,e.child,null,r),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Io(e.return,t,r)}function Us(e,t,r,n,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function Vs(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(bs(e,t,n.children,r),0!==(2&(n=ea.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,r,t);else if(19===e.tag)Bs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ti(ea,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Us(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ta(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Us(t,!0,r,null,o);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(r=Rc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Rc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Gs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ys(e,t,r){var n=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Oi(t.type)&&Ri(),Ws(t),null;case 3:return n=t.stateNode,Jo(),Ei(Ii),Ei(Ci),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ac(oo),oo=null))),Os(e,t),Ws(t),null;case 5:$o(t);var i=Ko(Zo.current);if(r=t.type,null!==e&&null!=t.stateNode)Rs(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Ko(Wo.current),ho(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[hi]=t,n[pi]=a,e=0!==(1&t.mode),r){case"dialog":jn("cancel",n),jn("close",n);break;case"iframe":case"object":case"embed":jn("load",n);break;case"video":case"audio":for(i=0;i<Dn.length;i++)jn(Dn[i],n);break;case"source":jn("error",n);break;case"img":case"image":case"link":jn("error",n),jn("load",n);break;case"details":jn("toggle",n);break;case"input":X(n,a),jn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},jn("invalid",n);break;case"textarea":ie(n,a),jn("invalid",n)}for(var l in ye(r,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?n.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,c,e),i=["children",c]):"number"===typeof c&&n.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&jn("scroll",n)}switch(r){case"input":W(n),$(n,a,!0);break;case"textarea":W(n),ae(n);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(n.onclick=$n)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[hi]=t,e[pi]=n,ks(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,n),r){case"dialog":jn("cancel",e),jn("close",e),i=n;break;case"iframe":case"object":case"embed":jn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Dn.length;i++)jn(Dn[i],e);i=n;break;case"source":jn("error",e),i=n;break;case"img":case"image":case"link":jn("error",e),jn("load",e),i=n;break;case"details":jn("toggle",e),i=n;break;case"input":X(e,n),i=K(e,n),jn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=F({},n,{value:void 0}),jn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),jn("invalid",e)}for(a in ye(r,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==r||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&jn("scroll",e):null!=u&&v(e,a,u,l))}switch(r){case"input":W(e),$(e,n,!1);break;case"textarea":W(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+H(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$n)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ls(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(o(166));if(r=Ko(Zo.current),Ko(Wo.current),ho(t)){if(n=t.stateNode,r=t.memoizedProps,n[hi]=t,(a=n.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Qn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qn(n.nodeValue,r,0!==(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[hi]=t,t.stateNode=n}return Ws(t),null;case 13:if(Ei(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==no&&0!==(1&t.mode)&&0===(128&t.flags))po(),fo(),t.flags|=98560,a=!1;else if(a=ho(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[hi]=t}else fo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Ll&&(Ll=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Jo(),Os(e,t),null===e&&Vn(t.stateNode.containerInfo),Ws(t),null;case 10:return Co(t.type._context),Ws(t),null;case 19:if(Ei(ea),null===(a=t.memoizedState))return Ws(t),null;if(n=0!==(128&t.flags),null===(l=a.rendering))if(n)Gs(a,!1);else{if(0!==Ll||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Gs(a,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ti(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Je()>Vl&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return Ws(t),null}else 2*Je()-a.renderingStartTime>Vl&&1073741824!==r&&(t.flags|=128,n=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=a.last)?r.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Je(),t.sibling=null,r=ea.current,Ti(ea,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Zs(e,t){switch(to(t),t.tag){case 1:return Oi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ei(Ii),Ei(Ci),na(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $o(t),null;case 13:if(Ei(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(ea),null;case 4:return Jo(),null;case 10:return Co(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}ks=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Os=function(){},Rs=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ko(Wo.current);var o,a=null;switch(r){case"input":i=K(e,i),n=K(e,n),a=[];break;case"select":i=F({},i,{value:void 0}),n=F({},n,{value:void 0}),a=[];break;case"textarea":i=ne(e,i),n=ne(e,n),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=$n)}for(u in ye(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(r||(r={}),r[o]=c[o])}else r||(a||(a=[]),a.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jn("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ls=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ks=!1,Xs=!1,Js="function"===typeof WeakSet?WeakSet:Set,Qs=null;function $s(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){Sc(e,t,n)}else r.current=null}function el(e,t,r){try{r()}catch(n){Sc(e,t,n)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&el(t,r,o)}i=i.next}while(i!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[pi],delete t[mi],delete t[gi],delete t[_i])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=$n));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Xs||$s(r,t);case 6:var n=ul,i=dl;ul=null,hl(e,t,r),dl=i,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),Vt(e)):li(ul,r.stateNode));break;case 4:n=ul,i=dl,ul=r.stateNode.containerInfo,dl=!0,hl(e,t,r),ul=n,dl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(r,t,a),i=i.next}while(i!==n)}hl(e,t,r);break;case 1:if(!Xs&&($s(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Sc(r,t,s)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,hl(e,t,r),Xs=n):hl(e,t,r);break;default:hl(e,t,r)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Cc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));pl(a,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),_l(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(g){Sc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),_l(e),512&n&&null!==r&&$s(r,r.return);break;case 5:if(ml(t,e),_l(e),512&n&&null!==r&&$s(r,r.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){Sc(e,e.return,g)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),ve(l,s);var u=ve(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?ge(i,h):"dangerouslySetInnerHTML"===d?de(i,h):"children"===d?he(i,h):v(i,d,h,u)}switch(l){case"input":Q(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?re(i,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),_l(e),4&n){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),_l(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),_l(e);break;case 13:ml(t,e),_l(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Je())),4&n&&fl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),_l(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Qs=e,d=e.child;null!==d;){for(h=Qs=d;null!==Qs;){switch(f=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:$s(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(n,r,g)}}break;case 5:$s(p,p.return);break;case 22:if(null!==p.memoizedState){xl(h);continue}}null!==f?(f.return=p,Qs=f):xl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{i=h.stateNode,u?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),_l(e),4&n&&fl(e);case 21:}}function _l(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var n=r;break e}r=r.return}throw Error(o(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(he(i,""),n.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var a=n.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,r){Qs=e,vl(e,t,r)}function vl(e,t,r){for(var n=0!==(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&n){var a=null!==i.memoizedState||Ks;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ks;var c=Xs;if(Ks=a,(Xs=l)&&!c)for(Qs=i;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?wl(i):null!==l?(l.return=a,Qs=l):wl(i);for(;null!==o;)Qs=o,vl(o,t,r),o=o.sibling;Qs=i,Ks=s,Xs=c}bl(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):bl(e)}}function bl(e){for(;null!==Qs;){var t=Qs;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xs||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Xs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ho(t,a,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ho(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&Vt(h)}}}break;default:throw Error(o(163))}Xs||512&t.flags&&il(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Qs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Qs=r;break}Qs=t.return}}function xl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Qs=r;break}Qs=t.return}}function wl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(l){Sc(t,r,l)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(l){Sc(t,i,l)}}var o=t.return;try{il(t)}catch(l){Sc(t,o,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var Al,Sl=Math.ceil,El=b.ReactCurrentDispatcher,Tl=b.ReactCurrentOwner,Pl=b.ReactCurrentBatchConfig,Cl=0,Il=null,Ml=null,kl=0,Ol=0,Rl=Si(0),Ll=0,Dl=null,Nl=0,Fl=0,zl=0,jl=null,Bl=null,Ul=0,Vl=1/0,ql=null,Hl=!1,Gl=null,Wl=null,Yl=!1,Zl=null,Kl=0,Xl=0,Jl=null,Ql=-1,$l=0;function ec(){return 0!==(6&Cl)?Je():-1!==Ql?Ql:Ql=Je()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Cl)&&0!==kl?kl&-kl:null!==go.transition?(0===$l&&($l=mt()),$l):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rc(e,t,r,n){if(50<Xl)throw Xl=0,Jl=null,Error(o(185));_t(e,r,n),0!==(2&Cl)&&e===Il||(e===Il&&(0===(2&Cl)&&(Fl|=r),4===Ll&&sc(e,kl)),nc(e,n),1===r&&0===Cl&&0===(1&t.mode)&&(Vl=Je()+500,ji&&Vi()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=i[a];-1===l?0!==(s&r)&&0===(s&n)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var n=ht(e,e===Il?kl:0);if(0===n)null!==r&&Ze(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ze(r),1===t)0===e.tag?function(e){ji=!0,Ui(e)}(lc.bind(null,e)):Ui(lc.bind(null,e)),ai((function(){0===(6&Cl)&&Vi()})),r=null;else{switch(bt(n)){case 1:r=$e;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Ic(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Ql=-1,$l=0,0!==(6&Cl))throw Error(o(327));var r=e.callbackNode;if(wc()&&e.callbackNode!==r)return null;var n=ht(e,e===Il?kl:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=gc(e,n);else{t=n;var i=Cl;Cl|=2;var a=fc();for(Il===e&&kl===t||(ql=null,Vl=Je()+500,hc(e,t));;)try{yc();break}catch(l){pc(e,l)}Po(),El.current=a,Cl=i,null!==Ml?t=0:(Il=null,kl=0,t=Ll)}if(0!==t){if(2===t&&(0!==(i=ft(e))&&(n=i,t=oc(e,i))),1===t)throw r=Dl,hc(e,0),sc(e,n),nc(e,Je()),r;if(6===t)sc(e,n);else{if(i=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!sn(o(),i))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gc(e,n))&&(0!==(a=ft(e))&&(n=a,t=oc(e,a))),1===t))throw r=Dl,hc(e,0),sc(e,n),nc(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(o(345));case 2:case 5:xc(e,Bl,ql);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Ul+500-Je())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(xc.bind(null,e,Bl,ql),t);break}xc(e,Bl,ql);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-at(n);a=1<<s,(s=t[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Je()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Sl(n/1960))-n)){e.timeoutHandle=ni(xc.bind(null,e,Bl,ql),n);break}xc(e,Bl,ql);break;default:throw Error(o(329))}}}return nc(e,Je()),e.callbackNode===r?ic.bind(null,e):null}function oc(e,t){var r=jl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=r,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(0!==(6&Cl))throw Error(o(327));wc();var t=ht(e,0);if(0===(1&t))return nc(e,Je()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var n=ft(e);0!==n&&(t=n,r=oc(e,n))}if(1===r)throw r=Dl,hc(e,0),sc(e,t),nc(e,Je()),r;if(6===r)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Bl,ql),nc(e,Je()),null}function cc(e,t){var r=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=r)&&(Vl=Je()+500,ji&&Vi())}}function uc(e){null!==Zl&&0===Zl.tag&&0===(6&Cl)&&wc();var t=Cl;Cl|=1;var r=Pl.transition,n=vt;try{if(Pl.transition=null,vt=1,e)return e()}finally{vt=n,Pl.transition=r,0===(6&(Cl=t))&&Vi()}}function dc(){Ol=Rl.current,Ei(Rl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Ml)for(r=Ml.return;null!==r;){var n=r;switch(to(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Ri();break;case 3:Jo(),Ei(Ii),Ei(Ci),na();break;case 5:$o(n);break;case 4:Jo();break;case 13:case 19:Ei(ea);break;case 10:Co(n.type._context);break;case 22:case 23:dc()}r=r.return}if(Il=e,Ml=e=Rc(e.current,null),kl=Ol=t,Ll=0,Dl=null,zl=Fl=Nl=0,Bl=jl=null,null!==Oo){for(t=0;t<Oo.length;t++)if(null!==(n=(r=Oo[t]).interleaved)){r.interleaved=null;var i=n.next,o=r.pending;if(null!==o){var a=o.next;o.next=i,n.next=a}r.pending=n}Oo=null}return e}function pc(e,t){for(;;){var r=Ml;try{if(Po(),ia.current=Qa,ua){for(var n=sa.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,ha=0,Tl.current=null,null===r||null===r.return){Ll=1,Dl=t,Ml=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=kl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,h=d.tag;if(0===(1&d.mode)&&(0===h||11===h||15===h)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,_s(f,s,l,0,t),1&f.mode&&ms(a,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(o(426))}else if(io&&1&l.mode){var _=gs(s);if(null!==_){0===(65536&_.flags)&&(_.flags|=256),_s(_,s,l,0,t),mo(cs(c,l));break e}}a=c=cs(c,l),4!==Ll&&(Ll=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,v=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===Wl||!Wl.has(v)))){a.flags|=65536,t&=-t,a.lanes|=t,Vo(a,fs(a,l,t));break e}}a=a.return}while(null!==a)}bc(r)}catch(b){t=b,Ml===r&&null!==r&&(Ml=r=r.return);continue}break}}function fc(){var e=El.current;return El.current=Qa,null===e?Qa:e}function mc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Il||0===(268435455&Nl)&&0===(268435455&Fl)||sc(Il,kl)}function gc(e,t){var r=Cl;Cl|=2;var n=fc();for(Il===e&&kl===t||(ql=null,hc(e,t));;)try{_c();break}catch(i){pc(e,i)}if(Po(),Cl=r,El.current=n,null!==Ml)throw Error(o(261));return Il=null,kl=0,Ll}function _c(){for(;null!==Ml;)vc(Ml)}function yc(){for(;null!==Ml&&!Ke();)vc(Ml)}function vc(e){var t=Al(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bc(e):Ml=t,Tl.current=null}function bc(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Ys(r,t,Ol)))return void(Ml=r)}else{if(null!==(r=Zs(r,t)))return r.flags&=32767,void(Ml=r);if(null===e)return Ll=6,void(Ml=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ml=t);Ml=t=e}while(null!==t);0===Ll&&(Ll=5)}function xc(e,t,r){var n=vt,i=Pl.transition;try{Pl.transition=null,vt=1,function(e,t,r,n){do{wc()}while(null!==Zl);if(0!==(6&Cl))throw Error(o(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-at(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}(e,a),e===Il&&(Ml=Il=null,kl=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Yl||(Yl=!0,Ic(tt,(function(){return wc(),null}))),a=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||a){a=Pl.transition,Pl.transition=null;var s=vt;vt=1;var l=Cl;Cl|=4,Tl.current=null,function(e,t){if(ei=Ht,pn(e=hn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(x){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,p=null;t:for(;;){for(var f;h!==r||0!==i&&3!==h.nodeType||(l=s+i),h!==a||0!==n&&3!==h.nodeType||(c=s+n),3===h.nodeType&&(s+=h.nodeValue.length),null!==(f=h.firstChild);)p=h,h=f;for(;;){if(h===e)break t;if(p===r&&++u===i&&(l=s),p===a&&++d===n&&(c=s),null!==(f=h.nextSibling))break;p=(h=p).parentNode}h=f}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},Ht=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,_=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:rs(t.type,g),_);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=tl,tl=!1}(e,r),gl(r,e),fn(ti),Ht=!!ei,ti=ei=null,e.current=r,yl(r,e,i),Xe(),Cl=l,vt=s,Pl.transition=a}else e.current=r;if(Yl&&(Yl=!1,Zl=e,Kl=i),a=e.pendingLanes,0===a&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),nc(e,Je()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,e=Gl,Gl=null,e;0!==(1&Kl)&&0!==e.tag&&wc(),a=e.pendingLanes,0!==(1&a)?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Vi()}(e,t,r,n)}finally{Pl.transition=i,vt=n}return null}function wc(){if(null!==Zl){var e=bt(Kl),t=Pl.transition,r=vt;try{if(Pl.transition=null,vt=16>e?16:e,null===Zl)var n=!1;else{if(e=Zl,Zl=null,Kl=0,0!==(6&Cl))throw Error(o(331));var i=Cl;for(Cl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Qs=u;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Qs=h;else for(;null!==Qs;){var p=(d=Qs).sibling,f=d.return;if(ol(d),d===u){Qs=null;break}if(null!==p){p.return=f,Qs=p;break}Qs=f}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(null!==g)}}Qs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!==(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Qs=y;break e}Qs=a.return}}var v=e.current;for(Qs=v;null!==Qs;){var b=(s=Qs).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,Qs=b;else e:for(s=v;null!==Qs;){if(0!==(2048&(l=Qs).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(w){Sc(l,l.return,w)}if(l===s){Qs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Qs=x;break e}Qs=l.return}}if(Cl=i,Vi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(w){}n=!0}return n}finally{vt=r,Pl.transition=t}}return!1}function Ac(e,t,r){e=Bo(e,t=ps(0,t=cs(r,t),1),1),t=ec(),null!==e&&(_t(e,1,t),nc(e,t))}function Sc(e,t,r){if(3===e.tag)Ac(e,e,r);else for(;null!==t;){if(3===t.tag){Ac(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Wl||!Wl.has(n))){t=Bo(t,e=fs(t,e=cs(r,e),1),1),e=ec(),null!==t&&(_t(t,1,e),nc(t,e));break}}t=t.return}}function Ec(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Il===e&&(kl&r)===r&&(4===Ll||3===Ll&&(130023424&kl)===kl&&500>Je()-Ul?hc(e,0):zl|=r),nc(e,t)}function Tc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=ec();null!==(e=Do(e,t))&&(_t(e,t,r),nc(e,r))}function Pc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Tc(e,r)}function Cc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(o(314))}null!==n&&n.delete(t),Tc(e,r)}function Ic(e,t){return Ye(e,t)}function Mc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kc(e,t,r,n){return new Mc(e,t,r,n)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Rc(e,t){var r=e.alternate;return null===r?((r=kc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Lc(e,t,r,n,i,a){var s=2;if(n=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return Dc(r.children,i,a,t);case S:s=8,i|=8;break;case E:return(e=kc(12,r,t,2|i)).elementType=E,e.lanes=a,e;case I:return(e=kc(13,r,t,i)).elementType=I,e.lanes=a,e;case M:return(e=kc(19,r,t,i)).elementType=M,e.lanes=a,e;case R:return Nc(r,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case P:s=9;break e;case C:s=11;break e;case k:s=14;break e;case O:s=16,n=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=kc(s,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function Dc(e,t,r,n){return(e=kc(7,e,n,t)).lanes=r,e}function Nc(e,t,r,n){return(e=kc(22,e,n,t)).elementType=R,e.lanes=r,e.stateNode={isHidden:!1},e}function Fc(e,t,r){return(e=kc(6,e,null,t)).lanes=r,e}function zc(e,t,r){return(t=kc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bc(e,t,r,n,i,o,a,s,l){return e=new jc(e,t,r,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=kc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fo(o),e}function Uc(e){if(!e)return Pi;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var r=e.type;if(Oi(r))return Di(e,r,t)}return t}function Vc(e,t,r,n,i,o,a,s,l){return(e=Bc(r,n,!0,e,0,o,0,s,l)).context=Uc(null),r=e.current,(o=jo(n=ec(),i=tc(r))).callback=void 0!==t&&null!==t?t:null,Bo(r,o,i),e.current.lanes=i,_t(e,i,n),nc(e,n),e}function qc(e,t,r,n){var i=t.current,o=ec(),a=tc(i);return r=Uc(r),null===t.context?t.context=r:t.pendingContext=r,(t=jo(o,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Bo(i,t,a))&&(rc(e,i,a,o),Uo(e,i,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Wc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Al=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ii.current)vs=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return vs=!1,function(e,t,r){switch(t.tag){case 3:Is(t),fo();break;case 5:Qo(t);break;case 1:Oi(t.type)&&Ni(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ti(Ao,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ti(ea,1&ea.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Fs(e,t,r):(Ti(ea,1&ea.current),null!==(e=Hs(e,t,r))?e.sibling:null);Ti(ea,1&ea.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Vs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,r)}return Hs(e,t,r)}(e,t,r);vs=0!==(131072&e.flags)}else vs=!1,io&&0!==(1048576&t.flags)&&$i(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qs(e,t),e=t.pendingProps;var i=ki(t,Ci.current);Mo(t,r),i=ga(null,t,n,e,i,r);var a=_a();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(n)?(a=!0,Ni(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fo(t),i.updater=is,t.stateNode=i,i._reactInternals=t,ls(t,n,e,r),t=Cs(null,t,n,!0,a,r)):(t.tag=0,io&&a&&eo(t),bs(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===k)return 14}return 2}(n),e=rs(n,e),i){case 0:t=Ts(null,t,n,e,r);break e;case 1:t=Ps(null,t,n,e,r);break e;case 11:t=xs(null,t,n,e,r);break e;case 14:t=ws(null,t,n,rs(n.type,e),r);break e}throw Error(o(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ts(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ps(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 3:e:{if(Is(t),null===e)throw Error(o(387));n=t.pendingProps,i=(a=t.memoizedState).element,zo(e,t),qo(t,n,null,r);var s=t.memoizedState;if(n=s.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ms(e,t,n,r,i=cs(Error(o(423)),t));break e}if(n!==i){t=Ms(e,t,n,r,i=cs(Error(o(424)),t));break e}for(no=ci(t.stateNode.containerInfo.firstChild),ro=t,io=!0,oo=null,r=wo(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fo(),n===i){t=Hs(e,t,r);break e}bs(e,t,n,r)}t=t.child}return t;case 5:return Qo(t),null===e&&co(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==a&&ri(n,a)&&(t.flags|=32),Es(e,t),bs(e,t,s,r),t.child;case 6:return null===e&&co(t),null;case 13:return Fs(e,t,r);case 4:return Xo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=xo(t,null,n,r):bs(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,xs(e,t,n,i=t.elementType===n?i:rs(n,i),r);case 7:return bs(e,t,t.pendingProps,r),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ti(Ao,n._currentValue),n._currentValue=s,null!==a)if(sn(a.value,s)){if(a.children===i.children&&!Ii.current){t=Hs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===a.tag){(c=jo(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Io(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Io(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}bs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Mo(t,r),n=n(i=ko(i)),t.flags|=1,bs(e,t,n,r),t.child;case 14:return i=rs(n=t.type,t.pendingProps),ws(e,t,n,i=rs(n.type,i),r);case 15:return As(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),qs(e,t),t.tag=1,Oi(n)?(e=!0,Ni(t)):e=!1,Mo(t,r),as(t,n,i),ls(t,n,i,r),Cs(null,t,n,!0,e,r);case 19:return Vs(e,t,r);case 22:return Ss(e,t,r)}throw Error(o(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function Zc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function $c(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Hc(a);s.call(e)}}qc(t,a,e,i)}else a=function(e,t,r,n,i){if(i){if("function"===typeof n){var o=n;n=function(){var e=Hc(a);o.call(e)}}var a=Vc(t,n,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[fi]=a.current,Vn(8===e.nodeType?e.parentNode:e),uc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof n){var s=n;n=function(){var e=Hc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=l,e[fi]=l.current,Vn(8===e.nodeType?e.parentNode:e),uc((function(){qc(t,l,r,n)})),l}(r,t,e,i,n);return Hc(a)}Kc.prototype.render=Zc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));qc(e,t,null,null)},Kc.prototype.unmount=Zc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){qc(null,e,null,null)})),t[fi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rt.length&&0!==t&&t<Rt[r].priority;r++);Rt.splice(r,0,e),0===r&&Ft(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),nc(t,Je()),0===(6&Cl)&&(Vl=Je()+500,Vi()))}break;case 13:uc((function(){var t=Do(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Wc(e,1)}},wt=function(e){if(13===e.tag){var t=Do(e,134217728);if(null!==t)rc(t,e,134217728,ec());Wc(e,134217728)}},At=function(e){if(13===e.tag){var t=tc(e),r=Do(e,t);if(null!==r)rc(r,e,t,ec());Wc(e,t)}},St=function(){return vt},Et=function(e,t){var r=vt;try{return vt=e,t()}finally{vt=r}},we=function(e,t,r){switch(t){case"input":if(Q(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=xi(n);if(!i)throw Error(o(90));Y(n),Q(n,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ce=cc,Ie=uc;var eu={usingClientEntryPoint:!1,Events:[vi,bi,xi,Te,Pe,cc]},tu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{it=nu.inject(ru),ot=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(o(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Xc(e))throw Error(o(299));var r=!1,n="",i=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Bc(e,1,!1,null,0,r,0,n,i),e[fi]=t.current,Vn(8===e.nodeType?e.parentNode:e),new Zc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Jc(t))throw Error(o(200));return $c(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(o(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",s=Yc;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Vc(t,null,e,1,null!=r?r:null,i,0,a,s),e[fi]=t.current,Vn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kc(t)},t.render=function(e,t,r){if(!Jc(t))throw Error(o(200));return $c(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){$c(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Jc(r))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return $c(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},84391:(e,t,r)=>{"use strict";var n=r(97950);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},97950:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(82730)},66885:(e,t,r)=>{"use strict";var n,i;
2n=r(82160),i=r(68556),n.version,n.renderToString,n.renderToStaticMarkup,n.renderToNodeStream,n.renderToStaticNodeStream,i.renderToReadableStream},66366:e=>{var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!o(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return o(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},49254:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(65043),i=r(65173),o=r.n(i);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,n.forwardRef)((function(e,t){var r=e.color,i=void 0===r?"currentColor":r,o=e.size,l=void 0===o?24:o,c=s(e,["color","size"]);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),n.createElement("circle",{cx:"12",cy:"8",r:"7"}),n.createElement("polyline",{points:"8.21 13.89 7 23 12 20 17 23 15.79 13.88"}))}));l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},l.displayName="Award";const c=l},34535:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(65043),i=r(65173),o=r.n(i);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function s(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=(0,n.forwardRef)((function(e,t){var r=e.color,i=void 0===r?"currentColor":r,o=e.size,l=void 0===o?24:o,c=s(e,["color","size"]);return n.createElement("svg",a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),n.createElement("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",ry:"2"}),n.createElement("path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"}))}));
2l.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},l.displayName="Briefcase";const c=l},56747:(e,t,r)=>{"use strict";r.d(t,{ED:()=>h});var n=r(58168),i=r(98587),o=r(79811),a=r(77775),s=r(65043);var l=function(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&!e.some((function(e,r){return e!==t[r]}))};function c(e){var t=s.useRef();return t.current||(t.current=e()),t.current}var u=o.iF.reduce((function(e,t){return e[t]=!0,e}),{}),d={"final-form":o.rE,"react-final-form":a.rE,"react-final-form-arrays":"3.1.2"},h=function(e){var t=e.name,r=e.subscription,h=e.defaultValue,p=e.initialValue,f=e.isEqual,m=e.validate,g=(0,i.A)(e,["name","subscription","defaultValue","initialValue","isEqual","validate"]),_=function(e,t){var r=void 0===t?{}:t,s=r.subscription,d=void 0===s?u:s,h=r.defaultValue,p=r.initialValue,f=r.isEqual,m=void 0===f?l:f,g=r.validate,_=(0,a.mN)("useFieldArray").mutators;if(!(_&&_.push&&_.pop))throw new Error("Array mutators not found. You need to provide the mutators from final-form-arrays to your form");var y=c((function(){return Object.keys(_).reduce((function(t,r){return t[r]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return _[r].apply(_,[e].concat(n))},t}),{})})),v=c((function(){return function(e,t,r){if(g){var n=g(e,t,r);if(!n||Array.isArray(n))return n;var i=[];return i[o.bS]=n,i}}})),b=(0,a.Mt)(e,{subscription:(0,n.A)({},d,{length:!0}),defaultValue:h,initialValue:p,isEqual:m,validate:v,format:function(e){return e}}),x=b.meta,w=x.length,A=(0,i.A)(x,["length"]),S=b.input,E=(0,i.A)(b,["meta","input"]);return{fields:(0,n.A)({name:e,forEach:function(t){for(var r=w||0,n=0;n<r;n++)t(e+"["+n+"]",n)},length:w||0,map:function(t){for(var r=w||0,n=[],i=0;i<r;i++)n.push(t(e+"["+i+"]",i));return n}},y,E,{value:S.value}),meta:A}}(t,{subscription:r,defaultValue:h,initialValue:p,isEqual:f,validate:m}),y=_.fields,v=_.meta;return function(e,t){var r=e.render,o=e.children,a=e.component,l=(0,i.A)(e,["render","children","component"]);if(a)return(0,s.createElement)(a,(0,n.A)({},l,{children:o,render:r}));if(r)return r(void 0===o?l:(0,n.A)({},l,{children:o}));
2if("function"!==typeof o)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+t);return o(l)}((0,n.A)({fields:y,meta:(0,n.A)({},v,{__versions:d})},g),"FieldArray("+t+")")}},77775:(e,t,r)=>{"use strict";r.d(t,{D0:()=>L,Mt:()=>O,Pc:()=>S,lV:()=>x,mN:()=>w,rE:()=>f});var n=r(58168),i=r(98587),o=r(65043),a=r(79811),s=["render","children","component"];function l(e,t,r){var n=e.render,a=e.children,l=e.component,c=(0,i.A)(e,s);if(l)return o.createElement(l,Object.assign(t,c,{children:a,render:n}));if(n)return n(void 0===a?Object.assign(t,c):Object.assign(t,c,{children:a}));if("function"!==typeof a)throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+r);return a(Object.assign(t,c))}function c(e,t,r){void 0===r&&(r=function(e,t){return e===t});var n=o.useRef(e);o.useEffect((function(){r(e,n.current)||(t(),n.current=e)}))}var u=function(e,t){if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<r.length;o++){var a=r[o];if(!i(a)||e[a]!==t[a])return!1}return!0},d=function(e){return!(!e||"function"!==typeof e.stopPropagation)},h=o.createContext();function p(e){var t=o.useRef(e);return o.useEffect((function(){t.current=e})),t}var f="6.5.8",m=function(e,t,r){r.forEach((function(r){Object.defineProperty(e,r,{get:function(){return t[r]},enumerable:!0})}))},g=function(e,t){return m(e,t,["active","dirty","dirtyFields","dirtySinceLastSubmit","dirtyFieldsSinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitError","submitErrors","submitFailed","submitSucceeded","submitting","touched","valid","validating","values","visited"])},_=function(e,t){return m(e,t,["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","validating","visited"])},y=["debug","decorators","destroyOnUnregister","form","initialValues","initialValuesEqual","keepDirtyOnReinitialize","mutators","onSubmit","subscription","validate","validateOnBlur"],v={"final-form":a.rE,"react-final-form":f},b=a.u9.reduce((function(e,t){return e[t]=!0,e}),{});function x(e){var t=e.debug,r=e.decorators,s=void 0===r?[]:r,f=e.destroyOnUnregister,m=e.form,_=e.initialValues,x=e.initialValuesEqual,w=e.keepDirtyOnReinitialize,A=e.mutators,S=e.onSubmit,E=e.subscription,T=void 0===E?b:E,P=e.validate,C=e.validateOnBlur,I=(0,i.A)(e,y),M={debug:t,destroyOnUnregister:f,initialValues:_,keepDirtyOnReinitialize:w,mutators:A,onSubmit:S,validate:P,validateOnBlur:C},k=function(e){var t=o.useRef();return t.current||(t.current=e()),t.current}((function(){var e=m||(0,a.DG)(M);return e.pauseValidation(),e})),O=o.useState((function(){var e={};return k.subscribe((function(t){e=t}),T)(),e})),R=O[0],L=O[1],D=p(R);o.useEffect((function(){k.isValidationPaused()&&k.resumeValidation();var e=[k.subscribe((function(e){u(e,D.current)||L(e)}),T)].concat(s?s.map((function(e){return e(k)})):[]);return function(){k.pauseValidation(),e.reverse().forEach((function(e){return e()}))}}),s),c(t,(function(){k.setConfig("debug",t)})),c(f,(function(){k.destroyOnUnregister=!!f})),c(w,(function(){k.setConfig("keepDirtyOnReinitialize",w)})),c(_,(function(){k.setConfig("initialValues",_)}),x||u),c(A,(function(){k.setConfig("mutators",A)})),c(S,(function(){k.setConfig("onSubmit",S)})),c(P,(function(){k.setConfig("validate",P)})),c(C,(function(){k.setConfig("validateOnBlur",C)}));var N={form:(0,n.A)({},k,{reset:function(e){d(e)?k.reset():k.reset(e)}}),handleSubmit:function(e){return e&&("function"===typeof e.preventDefault&&e.preventDefault(),"function"===typeof e.stopPropagation&&e.stopPropagation()),k.submit()}};return g(N,R),o.createElement(h.Provider,{value:k},l((0,n.A)({},I,{__versions:v}),N,"ReactFinalForm"))}function w(e){var t=o.useContext(h);if(!t)throw new Error((e||"useForm")+" must be used inside of a <Form> component");return t}var A=["onChange","subscription"];function S(e){var t=e.onChange,r=e.subscription,a=(0,i.A)(e,A),s=w("FormSpy"),c=function(e){var t=void 0===e?{}:e,r=t.onChange,n=t.subscription,i=void 0===n?b:n,a=w("useFormState"),s=o.useRef(!0),l=o.useRef(r);l.current=r;
2var c=o.useState((function(){var e={};return a.subscribe((function(t){e=t}),i)(),r&&r(e),e})),u=c[0],d=c[1];o.useEffect((function(){return a.subscribe((function(e){s.current?s.current=!1:(d(e),l.current&&l.current(e))}),i)}),[]);var h={};return g(h,u),h}({onChange:t,subscription:r});if(t)return null;var u={form:(0,n.A)({},s,{reset:function(e){d(e)?s.reset():s.reset(e)}})};return l((0,n.A)({},a,u),c,"FormSpy")}var E="undefined"!==typeof window&&window.navigator&&window.navigator.product&&"ReactNative"===window.navigator.product,T=function(e,t,r,n){if(!n&&e.nativeEvent&&void 0!==e.nativeEvent.text)return e.nativeEvent.text;if(n&&e.nativeEvent)return e.nativeEvent.text;var i=e.target,o=i.type,a=i.value,s=i.checked;switch(o){case"checkbox":if(void 0!==r){if(s)return Array.isArray(t)?t.concat(r):[r];if(!Array.isArray(t))return t;var l=t.indexOf(r);return l<0?t:t.slice(0,l).concat(t.slice(l+1))}return!!s;case"select-multiple":return function(e){var t=[];if(e)for(var r=0;r<e.length;r++){var n=e[r];n.selected&&t.push(n.value)}return t}(e.target.options);default:return a}};function P(e){var t=o.useRef(e);return o.useEffect((function(){t.current=e})),o.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.current.apply(null,r)}),[])}var C=a.iF.reduce((function(e,t){return e[t]=!0,e}),{}),I=function(e,t){return void 0===e?"":e},M=function(e,t){return""===e?void 0:e},k=function(e,t){return e===t};function O(e,t){void 0===t&&(t={});var r=t,n=r.afterSubmit,i=r.allowNull,a=r.component,s=r.data,l=r.defaultValue,c=r.format,u=void 0===c?I:c,d=r.formatOnBlur,h=r.initialValue,f=r.multiple,m=r.parse,g=void 0===m?M:m,y=r.subscription,v=void 0===y?C:y,b=r.type,x=r.validateFields,A=r.value,S=w("useField"),O=p(t),R=function(t,r){return S.registerField(e,t,v,{afterSubmit:n,beforeSubmit:function(){var t=O.current,r=t.beforeSubmit,n=t.formatOnBlur,i=t.format,o=void 0===i?I:i;if(n){var a=S.getFieldState(e).value,s=o(a,e);s!==a&&S.change(e,s)}return r&&r()},data:s,defaultValue:l,getValidator:function(){return O.current.validate},initialValue:h,isEqual:function(e,t){return(O.current.isEqual||k)(e,t)},silent:r,validateFields:x})},L=o.useRef(!0),D=o.useState((function(){var e={},t=S.destroyOnUnregister;return S.destroyOnUnregister=!1,R((function(t){e=t}),!0)(),S.destroyOnUnregister=t,e})),N=D[0],F=D[1];o.useEffect((function(){return R((function(e){L.current?L.current=!1:F(e)}),!1)}),[e,s,l,h]);var z={};_(z,N);var j={name:e,get value(){var t=N.value;return d?"input"===a&&(t=I(t)):t=u(t,e),null!==t||i||(t=""),"checkbox"===b||"radio"===b?A:"select"===a&&f?t||[]:t},get checked(){var t=N.value;return"checkbox"===b?(t=u(t,e),void 0===A?!!t:!(!Array.isArray(t)||!~t.indexOf(A))):"radio"===b?u(t,e)===A:void 0},onBlur:P((function(e){if(N.blur(),d){var t=S.getFieldState(N.name);N.change(u(t.value,N.name))}})),onChange:P((function(t){var r=t&&t.target?T(t,N.value,A,E):t;N.change(g(r,e))})),onFocus:P((function(e){return N.focus()}))};return f&&(j.multiple=f),void 0!==b&&(j.type=b),{input:j,meta:z}}var R=["afterSubmit","allowNull","beforeSubmit","children","component","data","defaultValue","format","formatOnBlur","initialValue","isEqual","multiple","name","parse","subscription","type","validate","validateFields","value"],L=o.forwardRef((function(e,t){var r=e.afterSubmit,a=e.allowNull,s=e.beforeSubmit,c=e.children,u=e.component,d=e.data,h=e.defaultValue,p=e.format,f=e.formatOnBlur,m=e.initialValue,g=e.isEqual,_=e.multiple,y=e.name,v=e.parse,b=e.subscription,x=e.type,w=e.validate,A=e.validateFields,S=e.value,E=(0,i.A)(e,R),T=O(y,{afterSubmit:r,allowNull:a,beforeSubmit:s,children:c,component:u,data:d,defaultValue:h,format:p,formatOnBlur:f,initialValue:m,isEqual:g,multiple:_,parse:v,subscription:b,type:x,validate:w,validateFields:A,value:S});if("function"===typeof c)return c((0,n.A)({},T,E));if("string"===typeof u)return o.createElement(u,(0,n.A)({},T.input,{children:c,ref:t},E));if(!y)throw new Error("prop name cannot be undefined in <Field> component");return l((0,n.A)({children:c,component:u,ref:t},E),T,"Field("+y+")")}))},29490:(e,t,r)=>{"use strict";r.d(t,{mg:()=>$,vd:()=>G});var n=r(65043),i=r(65173),o=r.n(i),a=r(66366),s=r.n(a),l=r(22740),c=r.n(l),u=r(17324),d=r.n(u);function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,540 bytes, line 2
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,f(e,t)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function m(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},_={rel:["amphtml","canonical","alternate"]},y={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},b=Object.keys(g).map((function(e){return g[e]})),x={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},w=Object.keys(x).reduce((function(e,t){return e[x[t]]=t,e}),{}),A=function(e,t){for(var r=e.length-1;r>=0;r-=1){var n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},S=function(e){var t=A(e,g.TITLE),r=A(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,(function(){return t}));var n=A(e,"defaultTitle");return t||n||void 0},E=function(e){return A(e,"onChangeClientState")||function(){}},T=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return h({},e,t)}),{})},P=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),i=0;i<n.length;i+=1){var o=n[i].toLowerCase();if(-1!==e.indexOf(o)&&r[o])return t.concat(r)}return t}),[])},C=function(e,t,r){var n={};return r.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,r){var i={};r.filter((function(e){for(var r,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a],l=s.toLowerCase();-1===t.indexOf(l)||"rel"===r&&"canonical"===e[r].toLowerCase()||"rel"===l&&"stylesheet"===e[l].toLowerCase()||(r=l),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!e[r])return!1;var c=e[r].toLowerCase();return n[r]||(n[r]={}),i[r]||(i[r]={}),!n[r][c]&&(i[r][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a+=1){var s=o[a],l=h({},n[s],i[s]);n[s]=l}return e}),[]).reverse()},I=function(e,t){if(Array.isArray(e)&&e.length)for(var r=0;r<e.length;r+=1)if(e[r][t])return!0;return!1},M=function(e){return Array.isArray(e)?e.join(""):e},k=function(e,t){return Array.isArray(e)?e.reduce((function(e,r){return function(e,t){for(var r=Object.keys(e),n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1}(r,t)?e.priority.push(r):e.default.push(r),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var r;return h({},e,((r={})[t]=void 0,r))},R=[g.NOSCRIPT,g.SCRIPT,g.STYLE],L=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},D=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},N=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,r){return t[x[r]||r]=e[r],t}),t)},F=function(e,t){return t.map((function(t,r){var i,o=((i={key:r})["data-rh"]=!0,i);return Object.keys(t).forEach((function(e){var r=x[e]||e;"innerHTML"===r||"cssText"===r?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[r]=t[e]})),n.createElement(e,o)}))},z=function(e,t,r){switch(e){case g.TITLE:return{toComponent:function(){return r=t.titleAttributes,(i={key:e=t.title})["data-rh"]=!0,o=N(r,i),[n.createElement(g.TITLE,o,e)];var e,r,i,o},toString:function(){return function(e,t,r,n){var i=D(r),o=M(t);return i?"<"+e+' data-rh="true" '+i+">"+L(o,n)+"</"+e+">":"<"+e+' data-rh="true">'+L(o,n)+"</"+e+">"}(e,t.title,t.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return N(t)},toString:function(){return D(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var i=Object.keys(n).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===n[t]?t:t+'="'+L(n[t],r)+'"';return e?e+" "+i:i}),""),o=n.innerHTML||n.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,r)}}}},j=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,o=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,h=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var f=function(e){var t=e.linkTags,r=e.scriptTags,n=e.encode,i=k(e.metaTags,v),o=k(t,_),a=k(r,y);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,i.priority),F(g.LINK,o.priority),F(g.SCR
2IPT,a.priority))},toString:function(){return z(g.META,i.priority,n)+" "+z(g.LINK,o.priority,n)+" "+z(g.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(e);p=f.priorityMethods,u=f.linkTags,d=f.metaTags,h=f.scriptTags}return{priority:p,base:z(g.BASE,t,n),bodyAttributes:z("bodyAttributes",r,n),htmlAttributes:z("htmlAttributes",i,n),link:z(g.LINK,u,n),meta:z(g.META,d,n),noscript:z(g.NOSCRIPT,o,n),script:z(g.SCRIPT,h,n),style:z(g.STYLE,a,n),title:z(g.TITLE,{title:l,titleAttributes:c},n)}},B=[],U=function(e,t){var r=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){r.context.helmet=e},helmetInstances:{get:function(){return r.canUseDOM?B:r.instances},add:function(e){(r.canUseDOM?B:r.instances).push(e)},remove:function(e){var t=(r.canUseDOM?B:r.instances).indexOf(e);(r.canUseDOM?B:r.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=j({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},V=n.createContext({}),q=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),H="undefined"!=typeof document,G=function(e){function t(r){var n;return(n=e.call(this,r)||this).helmetData=new U(n.props.context,t.canUseDOM),n}return p(t,e),t.prototype.render=function(){return n.createElement(V.Provider,{value:this.helmetData.value},this.props.children)},t}(n.Component);G.canUseDOM=H,G.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},G.defaultProps={context:{}}
vendor: 4,538 bytes, line 2
2,G.displayName="HelmetProvider";var W=function(e,t){var r,n=document.head||document.querySelector(g.HEAD),i=n.querySelectorAll(e+"[data-rh]"),o=[].slice.call(i),a=[];return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?n.innerHTML=t.innerHTML:"cssText"===i?n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText)):n.setAttribute(i,void 0===t[i]?"":t[i]));n.setAttribute("data-rh","true"),o.some((function(e,t){return r=t,n.isEqualNode(e)}))?o.splice(r,1):a.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:a}},Y=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-rh"),i=n?n.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s+=1){var l=a[s],c=t[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var u=o.indexOf(l);-1!==u&&o.splice(u,1)}for(var d=o.length-1;d>=0;d-=1)r.removeAttribute(o[d]);i.length===o.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},Z=function(e,t){var r=e.baseTag,n=e.htmlAttributes,i=e.linkTags,o=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;Y(g.BODY,e.bodyAttributes),Y(g.HTML,n),function(e,t){void 0!==e&&document.title!==e&&(document.title=M(e)),Y(g.TITLE,t)}(u,d);var h={baseTag:W(g.BASE,r),linkTags:W(g.LINK,i),metaTags:W(g.META,o),noscriptTags:W(g.NOSCRIPT,a),scriptTags:W(g.SCRIPT,l),styleTags:W(g.STYLE,c)},p={},f={};Object.keys(h).forEach((function(e){var t=h[e],r=t.newTags,n=t.oldTags;r.length&&(p[e]=r),n.length&&(f[e]=h[e].oldTags)})),t&&t(),s(e,p,f)},K=null,X=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).rendered=!1,t}p(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!d()(e,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var e,t,r=this.props.context,n=r.setHelmet,i=null,o=(e=r.helmetInstances.get().map((function(e){var t=h({},e.props);return delete t.context,t})),{baseTag:P(["href"],e),bodyAttributes:T("bodyAttributes",e),defer:A(e,"defer"),encode:A(e,"encodeSpecialCharacters"),htmlAttributes:T("htmlAttributes",e),linkTags:C(g.LINK,["rel","href"],e),metaTags:C(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:C(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:E(e),scriptTags:C(g.SCRIPT,["src","innerHTML"],e),styleTags:C(g.STYLE,["cssText"],e),title:S(e),titleAttributes:T("titleAttributes",e),prioritizeSeoTags:I(e,"prioritizeSeoTags")});G.canUseDOM?(t=o,K&&cancelAnimationFrame(K),t.defer?K=requestAnimationFrame((function(){Z(t,(function(){K=null}))})):(Z(t),K=null)):j&&(i=j(o)),n(i)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},t}(n.Component);X.propTypes={context:q.isRequired},X.displayName="HelmetDispatcher";var J=["children"],Q=["children"],$=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var r=t.prototype;return r.shouldComponentUpdate=function(e){return!s()(O(this.props,"helmetData"),O(e,"helmetData"))},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren;return h({},n,((t={})[r.type]=[].concat(n[r.type]||[],[h({},e.newChildProps,this.mapNestedChildrenToProps(r,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,r,n=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(n.type){case g.TITLE:return h({},i,((t={})[n.type]=a,t.titleAttributes=h({},o),t));case g.BODY:return h({},i,{bodyAttributes:h({},o)});case g.HTML:return h({},i,{htmlAttributes:h({},o)});default:return h({},i,((r={})[n.type]=h({},o),r))}},r.mapArrayTypeChildrenToProps=function(e,t){var r=h({},t);return Object.keys(e).forEach((function(t){var n;r=h({},r,((n={})[t]=e[t],n))})),r}
2,r.warnOnInvalidChildren=function(e,t){return c()(b.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+b.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(e,t){var r=this,i={};return n.Children.forEach(e,(function(e){if(e&&e.props){var n=e.props,o=n.children,a=m(n,J),s=Object.keys(a).reduce((function(e,t){return e[w[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():r.warnOnInvalidChildren(e,o),l){case g.FRAGMENT:t=r.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(i,t)},r.render=function(){var e=this.props,t=e.children,r=m(e,Q),i=h({},r),o=r.helmetData;return t&&(i=this.mapChildrenToProps(t,i)),!o||o instanceof U||(o=new U(o.context,o.instances)),o?n.createElement(X,h({},i,{context:o.value,helmetData:void 0})):n.createElement(V.Consumer,null,(function(e){return n.createElement(X,h({},i,{context:e}))}))},t}(n.Component);$.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},$.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},$.displayName="Helmet"},58211:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Kq:()=>u,ob:()=>d});var n=r(6326),i=r(65043),o=r(80219),a=r.n(o),s=r(23169);var l=i.createContext(null),c=l.Consumer,u=l.Provider,d=l;function h(e,t){var r,o=t||{},l=o.intlPropName,u=void 0===l?"intl":l,d=o.forwardRef,h=void 0!==d&&d,p=o.enforceContext,f=void 0===p||p,m=function(t){return i.createElement(c,null,(function(r){var o;f&&(0,s.HM)(r);var a=((o={})[u]=r,o);return i.createElement(e,(0,n.Cl)({},t,a,{ref:h?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((r=e).displayName||r.name||"Component",")"),m.WrappedComponent=e,h?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,n.Cl)({},e,{forwardedRef:t}))})),e):a()(m,e)}},97:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(65043),i=r(58211),o=r(23169);function a(){var e=n.useContext(i.ob);return(0,o.HM)(e),e}},23169:(e,t,r)=>{"use strict";r.d(t,{HM:()=>s,JF:()=>l,bN:()=>u,yU:()=>c});var n=r(6326),i=r(65043),o=r(73541),a=r(84530);function s(e){(0,o.V1)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var l=(0,n.Cl)((0,n.Cl)({},a.JF),{textComponent:i.Fragment});function c(e){return function(t){return e(i.Children.toArray(t))}}function u(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var a=r[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},95082:(e,t)=>{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===a||e===p||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=x},2086:(e,t,r)=>{"use strict";e.exports=r(95082)},97508:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>u,Ng:()=>q});var n=r(65043),i=n.createContext(null);var o=function(e){e()},a=function(){return o};var s={notify:function(){},get:function(){return[]}};function l(e,t){var r,n=s;function i(){l.onStateChange&&l.onStateChange()}function o(){r||(r=t?t.addNestedSub(i):e.subscribe(i),n=function(){var e=a(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],r=t;r;)e.push(r),r=r.next;return e},subscribe:function(e){var n=!0,i=r={callback:e,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){n&&null!==t&&(n=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}var l={addNestedSub:function(e){return o(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(r)},trySubscribe:o,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=s)},getListeners:function(){return n}};return l}var c="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect;const u=function(e){var t=e.store,r=e.context,o=e.children,a=(0,n.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),s=(0,n.useMemo)((function(){return t.getState()}),[t]);c((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var u=r||i;return n.createElement(u.Provider,{value:a},o)};var d=r(58168),h=r(98587),p=r(80219),f=r.n(p),m=r(32706),g=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_=["reactReduxForwardedRef"],y=[],v=[null,null];function b(e,t){var r=e[1];return[t.payload,r+1]}function x(e,t,r){c((function(){return e.apply(void 0,t)}),r)}function w(e,t,r,n,i,o,a){e.current=n,t.current=i,r.current=!1,o.current&&(o.current=null,a())}function A(e,t,r,n,i,o,a,s,l,c){if(e){var u=!1,d=null,h=function(){if(!u){var e,r,h=t.getState();try{e=n(h,i.current)}catch(p){r=p,d=p}r||(d=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,
vendor: 4,305 bytes, line 2
2c({type:"STORE_UPDATED",payload:{error:r}}))}};r.onStateChange=h,r.trySubscribe(),h();return function(){if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var S=function(){return[null,0]};function E(e,t){void 0===t&&(t={});var r=t,o=r.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,s=r.methodName,c=void 0===s?"connectAdvanced":s,u=r.renderCountProp,p=void 0===u?void 0:u,E=r.shouldHandleStateChanges,T=void 0===E||E,P=r.storeKey,C=void 0===P?"store":P,I=(r.withRef,r.forwardRef),M=void 0!==I&&I,k=r.context,O=void 0===k?i:k,R=(0,h.A)(r,g),L=O;return function(t){var r=t.displayName||t.name||"Component",i=a(r),o=(0,d.A)({},R,{getDisplayName:a,methodName:c,renderCountProp:p,shouldHandleStateChanges:T,storeKey:C,displayName:i,wrappedComponentName:r,WrappedComponent:t}),s=R.pure;var u=s?n.useMemo:function(e){return e()};function g(r){var i=(0,n.useMemo)((function(){var e=r.reactReduxForwardedRef,t=(0,h.A)(r,_);return[r.context,e,t]}),[r]),a=i[0],s=i[1],c=i[2],p=(0,n.useMemo)((function(){return a&&a.Consumer&&(0,m.isContextConsumer)(n.createElement(a.Consumer,null))?a:L}),[a,L]),f=(0,n.useContext)(p),g=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(f)&&Boolean(f.store);var E=g?r.store:f.store,P=(0,n.useMemo)((function(){return function(t){return e(t.dispatch,o)}(E)}),[E]),C=(0,n.useMemo)((function(){if(!T)return v;var e=l(E,g?null:f.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[E,g,f]),I=C[0],M=C[1],k=(0,n.useMemo)((function(){return g?f:(0,d.A)({},f,{subscription:I})}),[g,f,I]),O=(0,n.useReducer)(b,y,S),R=O[0][0],D=O[1];if(R&&R.error)throw R.error;var N=(0,n.useRef)(),F=(0,n.useRef)(c),z=(0,n.useRef)(),j=(0,n.useRef)(!1),B=u((function(){return z.current&&c===F.current?z.current:P(E.getState(),c)}),[E,R,c]);x(w,[F,N,j,c,B,z,M]),x(A,[T,E,I,P,F,N,j,z,M,D],[E,I,P]);var U=(0,n.useMemo)((function(){return n.createElement(t,(0,d.A)({},B,{ref:s}))}),[s,t,B]);return(0,n.useMemo)((function(){return T?n.createElement(p.Provider,{value:k},U):U}),[p,U,k])}var E=s?n.memo(g):g;if(E.WrappedComponent=t,E.displayName=g.displayName=i,M){var P=n.forwardRef((function(e,t){return n.createElement(E,(0,d.A)({},e,{reactReduxForwardedRef:t}))}));return P.displayName=i,P.WrappedComponent=t,f()(P,t)}return f()(E,t)}}function T(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function P(e,t){if(T(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!T(e[r[i]],t[r[i]]))return!1;return!0}function C(e){return function(t,r){var n=e(t,r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=I(e);var i=n(t,r);return"function"===typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=I(i),i=n(t,r)),i},n}}const k=[function(e){return"function"===typeof e?M(e):void 0},function(e){return e?void 0:C((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?C((function(t){return function(e,t){var r={},n=function(n){var i=e[n];"function"===typeof i&&(r[n]=function(){return t(i.apply(void 0,arguments))})};for(var i in e)n(i);return r}(e,t)})):void 0}];const O=[function(e){return"function"===typeof e?M(e):void 0},function(e){return e?void 0:C((function(){return{}}))}];function R(e,t,r){return(0,d.A)({},r,e,t)}const L=[function(e){return"function"===typeof e?function(e){return function(t,r){r.displayName;var n,i=r.pure,o=r.areMergedPropsEqual,a=!1;return function(t,r,s){var l=e(t,r,s);return a?i&&o(l,n)||(n=l):(a=!0,n=l),n}}}(e):void 0},function(e){return e?void 0:function(){return R}}];var D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function N(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function F(e,t,r,n,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1;function f(i,p){var f=!d(p,a),m=!u(i,o,p,a);
2return o=i,a=p,f&&m?(s=e(o,a),t.dependsOnOwnProps&&(l=t(n,a)),c=r(s,l,a)):f?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(n,a)),c=r(s,l,a)):m?function(){var t=e(o,a),n=!h(t,s);return s=t,n&&(c=r(s,l,a)),c}():c}return function(i,u){return p?f(i,u):(s=e(o=i,a=u),l=t(n,a),c=r(s,l,a),p=!0,c)}}function z(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,o=(0,h.A)(t,D),a=r(e,o),s=n(e,o),l=i(e,o);return(o.pure?F:N)(a,s,l,e,o)}var j=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function B(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function U(e,t){return e===t}function V(e){var t=void 0===e?{}:e,r=t.connectHOC,n=void 0===r?E:r,i=t.mapStateToPropsFactories,o=void 0===i?O:i,a=t.mapDispatchToPropsFactories,s=void 0===a?k:a,l=t.mergePropsFactories,c=void 0===l?L:l,u=t.selectorFactory,p=void 0===u?z:u;return function(e,t,r,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,m=void 0===f?U:f,g=a.areOwnPropsEqual,_=void 0===g?P:g,y=a.areStatePropsEqual,v=void 0===y?P:y,b=a.areMergedPropsEqual,x=void 0===b?P:b,w=(0,h.A)(a,j),A=B(e,o,"mapStateToProps"),S=B(t,s,"mapDispatchToProps"),E=B(r,c,"mergeProps");return n(p,(0,d.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:A,initMapDispatchToProps:S,initMergeProps:E,pure:u,areStatesEqual:m,areOwnPropsEqual:_,areStatePropsEqual:v,areMergedPropsEqual:x},w))}}const q=V();var H,G=r(97950);H=G.unstable_batchedUpdates,o=H},47358:(e,t)=>{"use strict";var r=60103,n=60106,i=60107,o=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,h=60115,p=60116,f=60121,m=60122,g=60117,_=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var v=Symbol.for;r=v("react.element"),n=v("react.portal"),i=v("react.fragment"),o=v("react.strict_mode"),a=v("react.profiler"),s=v("react.provider"),l=v("react.context"),c=v("react.forward_ref"),u=v("react.suspense"),d=v("react.suspense_list"),h=v("react.memo"),p=v("react.lazy"),f=v("react.block"),m=v("react.server.block"),g=v("react.fundamental"),_=v("react.debug_trace_mode"),y=v("react.legacy_hidden")}function b(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case s:return e;default:return t}}case n:return t}}}t.isContextConsumer=function(e){return b(e)===l}},32706:(e,t,r)=>{"use strict";e.exports=r(47358)},62582:(e,t,r)=>{"use strict";r.d(t,{Kd:()=>u,N_:()=>g});var n=r(91688),i=r(77387),o=r(65043),a=r(77321),s=r(58168),l=r(98587),c=r(3404),u=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).history=(0,a.zR)(t.props),t}return(0,i.A)(t,e),t.prototype.render=function(){return o.createElement(n.Ix,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"===typeof e?e(t):e},h=function(e,t){return"string"===typeof e?(0,a.yJ)(e,null,null,t):e},p=function(e){return e},f=o.forwardRef;"undefined"===typeof f&&(f=p);var m=f((function(e,t){var r=e.innerRef,n=e.navigate,i=e.onClick,a=(0,l.A)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.A)({},a,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),n())}});return u.ref=p!==f&&t||r,o.createElement("a",u)}));var g=f((function(e,t){var r=e.component,i=void 0===r?m:r,u=e.replace,g=e.to,_=e.innerRef,y=(0,l.A)(e,["component","replace","to","innerRef"]);return o.createElement(n.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var r=e.history,n=h(d(g,e.location),e.location),l=n?r.createHref(n):"",m=(0,s.A)({},y,{href:l,navigate:function(){var t=d(g,e.location),n=(0,a.AO)(e.location)===(0,a.AO)(h(t));(u||n?r.replace:r.push)(t)}});return p!==f?m.ref=t||_:m.innerRef=_,o.createElement(i,m)}))})),_=function(e){return e},y=o.forwardRef;"undefined"===typeof y&&(y=_);y((function(e,t){var r=e["aria-current"],i=void 0===r?"page":r,a=e.activeClassName,u=void 0===a?"active":a,p=e.activeStyle,f=e.className,m=e.exact,v=e.isActive,b=e.location,x=e.sensitive,w=e.strict,A=e.style,S=e.to,E=e.innerRef,T=(0,l.A)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(n.XZ.Consumer,null,(function(e){e||(0,c.A)(!1);var r=b||e.location,a=h(d(S,r),r),l=a.pathname,P=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=P?(0,n.B6)(r.pathname,{path:P,exact:m,sensitive:x,strict:w}):null,I=!!(v?v(C,r):C),M="function"===typeof f?f(I):f,k="function"===typeof A?A(I):A;I&&(M=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((function(e){return e})).join(" ")}(M,u),k=(0,s.A)({},k,p));var O=(0,s.A)({"aria-current":I&&i||null,className:M,style:k,to:a},T);return _!==y?O.ref=t||E:O.innerRef=E,o.createElement(g,O)}
2))}))},91688:(e,t,r)=>{"use strict";r.d(t,{B6:()=>k,Ix:()=>x,W6:()=>U,XZ:()=>b,dO:()=>z,qh:()=>O,rd:()=>P,y:()=>j,zy:()=>V});var n=r(77387),i=r(65043),o=r(65173),a=r.n(o),s=r(77321),l=r(3404),c=r(58168),u=r(44340),d=r.n(u),h=(r(2086),r(98587)),p=r(80219),f=r.n(p),m=1073741823,g="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{};var _=i.createContext||function(e,t){var r,o,s="__create-react-context-"+function(){var e="__global_unique_id__";return g[e]=(g[e]||0)+1}()+"__",l=function(e){function r(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(r,n){e=r,t.forEach((function(t){return t(e,n)}))}}}(t.props.value),t}(0,n.A)(r,e);var i=r.prototype;return i.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,i=e.value;((o=n)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?r=0:(r="function"===typeof t?t(n,i):m,0!==(r|=0)&&this.emitter.set(e.value,r))}var o,a},i.render=function(){return this.props.children},r}(i.Component);l.childContextTypes=((r={})[s]=a().object.isRequired,r);var c=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=t.call.apply(t,[this].concat(n))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,r){0!==((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}(0,n.A)(r,t);var i=r.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?m:t},i.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?m:e},i.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},i.getValue=function(){return this.context[s]?this.context[s].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(i.Component);return c.contextTypes=((o={})[s]=a().object,o),{Provider:l,Consumer:c}},y=function(e){var t=_();return t.displayName=e,t},v=y("Router-History"),b=y("Router"),x=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen((function(e){r._pendingLocation=e}))),r}(0,n.A)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return i.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.Component);i.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,n.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(i.Component);var A={},S=1e4,E=0;function T(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(A[e])return A[e];var t=d().compile(e);return E<S&&(A[e]=t,E++),t}(e)(t,{pretty:!0})}function P(e){var t=e.computedMatch,r=e.to,n=e.push,o=void 0!==n&&n;return i.createElement(b.Consumer,null,(function(e){e||(0,l.A)(!1);var n=e.history,a=e.staticContext,u=o?n.push:n.replace,d=(0,s.yJ)(t?"string"===typeof r?T(r,t.params):(0,c.A)({},r,{pathname:T(r.pathname,t.params)}):r);return a?(u(d),null):i.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var r=(0,s.yJ)(t.to);(0,s.Fu)(r,(0,c.A)({},d,{key:r.key}))||u(d)},to:r})}))}var C={},I=1e4,M=0;function k(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,i=r.exact,o=void 0!==i&&i,a=r.strict,s=void 0!==a&&a,l=r.sensitive,c=void 0!==l&&l;return[].concat(n).reduce((function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=C[r]||(C[r]={});if(n[e])return n[e];var i=[],o={regexp:d()(e,i,t),keys:i};return M<I&&(n[e]=o,M++),o}
vendor: 4,926 bytes, line 2
2(r,{end:o,strict:s,sensitive:c}),i=n.regexp,a=n.keys,l=i.exec(e);if(!l)return null;var u=l[0],h=l.slice(1),p=e===u;return o&&!p?null:{path:r,url:"/"===r&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,r){return e[t.name]=h[r],e}),{})}}),null)}var O=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var r=e.props.location||t.location,n=e.props.computedMatch?e.props.computedMatch:e.props.path?k(r.pathname,e.props):t.match,o=(0,c.A)({},t,{location:r,match:n}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===i.Children.count(e)}(s)&&(s=null),i.createElement(b.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:u?i.createElement(u,o):d?d(o):null:"function"===typeof s?s(o):null)}))},t}(i.Component);function R(e){return"/"===e.charAt(0)?e:"/"+e}function L(e,t){if(!e)return t;var r=R(e);return 0!==t.pathname.indexOf(r)?t:(0,c.A)({},t,{pathname:t.pathname.substr(r.length)})}function D(e){return"string"===typeof e?e:(0,s.AO)(e)}function N(e){return function(){(0,l.A)(!1)}}function F(){}i.Component;var z=function(e){function t(){return e.apply(this,arguments)||this}return(0,n.A)(t,e),t.prototype.render=function(){var e=this;return i.createElement(b.Consumer,null,(function(t){t||(0,l.A)(!1);var r,n,o=e.props.location||t.location;return i.Children.forEach(e.props.children,(function(e){if(null==n&&i.isValidElement(e)){r=e;var a=e.props.path||e.props.from;n=a?k(o.pathname,(0,c.A)({},e.props,{path:a})):t.match}})),n?i.cloneElement(r,{location:o,computedMatch:n}):null}))},t}(i.Component);function j(e){var t="withRouter("+(e.displayName||e.name)+")",r=function(t){var r=t.wrappedComponentRef,n=(0,h.A)(t,["wrappedComponentRef"]);return i.createElement(b.Consumer,null,(function(t){return t||(0,l.A)(!1),i.createElement(e,(0,c.A)({},n,t,{ref:r}))}))};return r.displayName=t,r.WrappedComponent=e,f()(r,e)}var B=i.useContext;function U(){return B(v)}function V(){return B(b).location}},54292:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},44340:(e,t,r)=>{var n=r(54292);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=p;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var r,n=[],o=0,s=0,l="",c=t&&t.delimiter||"/";null!=(r=i.exec(e));){var d=r[0],h=r[1],p=r.index;if(l+=e.slice(s,p),s=p+d.length,h)l+=h[1];else{var f=e[s],m=r[2],g=r[3],_=r[4],y=r[5],v=r[6],b=r[7];l&&(n.push(l),l="");var x=null!=m&&null!=f&&f!==m,w="+"===v||"*"===v,A="?"===v||"*"===v,S=m||c,E=_||y,T=m||("string"===typeof n[n.length-1]?n[n.length-1]:"");n.push({name:g||o++,prefix:m||"",delimiter:S,optional:A,repeat:w,partial:x,asterisk:!!b,pattern:E?u(E):b?".*":a(S,T)})}}return s<e.length&&(l+=e.substr(s)),l&&n.push(l),n}function a(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function s(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var r=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(r[i]=new RegExp("^(?:"+e[i].pattern+")$",h(t)));return function(t,i){for(var o="",a=t||{},l=(i||{}).pretty?s:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,h=a[u.name];if(null==h){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(n(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(d=l(h[p]),!r[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!r[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function h(e){return e&&e.sensitive?"":"i"}function p(e,t,r){n(t)||(r=t||r,t=[]);for(var i=(r=r||{}).strict,o=!1!==r.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"===typeof l)a+=c(l);else{var u=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+u+p+")*"),a+=p=l.optional?l.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")"}}var f=c(r.delimiter||"/"),m=a.slice(-f.length)===f;
2return i||(a=(m?a.slice(0,-f.length):a)+"(?:"+f+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+f+"|$)",d(new RegExp("^"+a,h(r)),t)}function f(e,t,r){return n(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?function(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(e,t):n(e)?function(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(f(e[i],t,r).source);return d(new RegExp("(?:"+n.join("|")+")",h(r)),t)}(e,t,r):function(e,t,r){return p(o(e,r),t,r)}(e,t,r)}},96856:(e,t,r)=>{"use strict";var n=r(24994);t.default=void 0;var i=n(r(23602)),o=n(r(20292)),a=r(8363),s=n(r(25531)),l=n(r(43455));var c={create:function(e){var t={},r=Object.keys(e),n=(o.default.get(a.GLOBAL_CACHE_KEY)||{}).namespace,i=void 0===n?"":n;return r.forEach((function(e){var r=(0,s.default)(i,e);t[e]=r})),t},resolve:function(e){var t=(0,i.default)(e,1/0),r=(0,l.default)(t),n=r.classNames,o=r.hasInlineStyles,a=r.inlineStyles,s={className:n.map((function(e,t){return"".concat(e," ").concat(e,"_").concat(t+1)})).join(" ")};return o&&(s.style=a),s}};t.default=c},8363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_SPECIFICITY=t.GLOBAL_CACHE_KEY=void 0;t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS";t.MAX_SPECIFICITY=20},25531:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=e.length>0?"".concat(e,"__"):"";return"".concat(r).concat(t)}},43455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){for(var t=[],r=!1,n={},i=0;i<e.length;i++){var o=e[i];o&&("string"===typeof o?t.push(o):(Object.assign(n,o),r=!0))}return{classNames:t,hasInlineStyles:r,inlineStyles:n}};t.default=r},3011:(e,t,r)=>{e.exports=r(96856).default},42908:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t._getInterface=function(){return r},t._getTheme=a,t.default=void 0;function i(e,t){var r=t(e(n));return function(){return r}}function o(e){return i(e,r.createLTR||r.create)}function a(){return n}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolve(t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveLTR?r.resolveLTR(t):s(t)}var c={registerTheme:function(e){n=e},registerInterface:function(e){r=e},create:o,createLTR:o,createRTL:function(e){return i(e,r.createRTL||r.create)},get:a,resolve:l,resolveLTR:l,resolveRTL:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.resolveRTL?r.resolveRTL(t):s(t)},flush:function(){r.flush&&r.flush()}};t.default=c},51153:(e,t,r)=>{"use strict";var n=r(65043),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,o={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},14202:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function _(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}function y(){}function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||f}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=_.prototype;var b=v.prototype=new y;b.constructor=v,m(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,A={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,i)&&!S.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:A.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var P=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return a=a(l=e),e=""===o?"."+C(l,0):o,x(a)?(i="",null!=e&&(i=e.replace(P,"$&/")+"/"),I(a,t,i,"",(function(e){return e}))):null!=a&&(T(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var u=o+C(s=e[c],c);l+=I(s,t,i,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=I(s=s.value,t,i,u=o+C(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function M(e,t,r){if(null==e)return e;var n=[],i=0;return I(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function k(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},R={transition:null},L={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:R,ReactCurrentOwner:A};function D(){throw Error("act(...) is not supported in production builds of React.")}
2t.Children={map:M,forEach:function(e,t,r){M(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=_,t.Fragment=i,t.Profiler=a,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=D,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,r){return O.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,r){return O.current.useReducer(e,t,r)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return O.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},65043:(e,t,r)=>{"use strict";e.exports=r(14202)},70579:(e,t,r)=>{"use strict";e.exports=r(51153)},50805:(e,t,r)=>{"use strict";r.d(t,{HY:()=>u,Tw:()=>h,Yl:()=>c,Zz:()=>d});var n=r(89379);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"===typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var c=function e(t,r,n){var a;if("function"===typeof r&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(i(0));if("function"===typeof r&&"undefined"===typeof n&&(n=r,r=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(i(1));return n(e)(t,r)}if("function"!==typeof t)throw new Error(i(2));var c=t,u=r,d=[],h=d,p=!1;function f(){h===d&&(h=d.slice())}function m(){if(p)throw new Error(i(3));return u}function g(e){if("function"!==typeof e)throw new Error(i(4));if(p)throw new Error(i(5));var t=!0;return f(),h.push(e),function(){if(t){if(p)throw new Error(i(6));t=!1,f();var r=h.indexOf(e);h.splice(r,1),d=null}}}function _(e){if(!l(e))throw new Error(i(7));if("undefined"===typeof e.type)throw new Error(i(8));if(p)throw new Error(i(9));try{p=!0,u=c(u,e)}finally{p=!1}for(var t=d=h,r=0;r<t.length;r++){(0,t[r])()}return e}return _({type:s.INIT}),(a={dispatch:_,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(i(10));c=e,_({type:s.REPLACE})}})[o]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(i(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[o]=function(){return this},e},a};function u(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"===typeof e[o]&&(r[o]=e[o])}var a,l=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if("undefined"===typeof r(void 0,{type:s.INIT}))throw new Error(i(12));if("undefined"===typeof r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(i(13))}))}(r)}catch(c){a=c}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<l.length;s++){var c=l[s],u=r[c],d=e[c],h=u(d,t);if("undefined"===typeof h){t&&t.type;throw new Error(i(14))}o[c]=h,n=n||h!==d}return(n=n||l.length!==Object.keys(e).length)?o:e}}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),o=function(){throw new Error(i(15))},a={getState:r.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return o=d.apply(void 0,s)(r.dispatch),(0,n.A)((0,n.A)({},r),{},{dispatch:o})}}}},40066:(e,t,r)=>{"use strict";
2var n=r(88117),i=r(43290),o=n("RegExp.prototype.exec"),a=r(54902);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},27234:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,f=!1,m=!1,g=!1,_="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=n(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function x(e){if(g=!1,b(e),!m)if(null!==n(c))m=!0,R(w);else{var t=n(u);null!==t&&L(x,t.startTime-e)}}function w(e,r){m=!1,g&&(g=!1,y(T),T=-1),f=!0;var o=p;try{for(b(r),h=n(c);null!==h&&(!(h.expirationTime>r)||e&&!I());){var a=h.callback;if("function"===typeof a){h.callback=null,p=h.priorityLevel;var s=a(h.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?h.callback=s:h===n(c)&&i(c),b(r)}else i(c);h=n(c)}if(null!==h)var l=!0;else{var d=n(u);null!==d&&L(x,d.startTime-r),l=!1}return l}finally{h=null,p=o,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,S=!1,E=null,T=-1,P=5,C=-1;function I(){return!(t.unstable_now()-C<P)}function M(){if(null!==E){var e=t.unstable_now();C=e;var r=!0;try{r=E(!0,e)}finally{r?A():(S=!1,E=null)}}else S=!1}if("function"===typeof v)A=function(){v(M)};else if("undefined"!==typeof MessageChannel){var k=new MessageChannel,O=k.port2;k.port1.onmessage=M,A=function(){O.postMessage(null)}}else A=function(){_(M,0)};function R(e){E=e,S||(S=!0,A())}function L(e,r){T=_((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,R(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,r(u,e),null===n(c)&&e===n(u)&&(g?(y(T),T=-1):g=!0,L(x,o-a))):(e.sortIndex=s,r(c,e),m||f||(m=!0,R(w))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},78853:(e,t,r)=>{"use strict";e.exports=r(27234)},34334:(e,t,r)=>{var n=r(17359),i=r(77066),o=r(29016),a=r(69538),s=r(6288),l=r(45262),c=r(22430);c.alea=n,c.xor128=i,c.xorwow=o,c.xorshift7=a,c.xor4096=s,c.tychei=l,e.exports=c},17359:function(e,t,r){var n;!function(e,i){function o(e){var t=this,r=function(){var e=4022871197,t=function(t){t=String(t);for(var r=0;r<t.length;r++){var n=.02519603282416938*(e+=t.charCodeAt(r));n-=e=n>>>0,e=(n*=e)>>>0,e+=4294967296*(n-=e)}return 2.3283064365386963e-10*(e>>>0)};return t}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=r(" "),t.s1=r(" "),t.s2=r(" "),t.s0-=r(e),t.s0<0&&(t.s0+=1),t.s1-=r(e),t.s1<0&&(t.s1+=1),t.s2-=r(e),t.s2<0&&(t.s2+=1),r=null}function a(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function s(e,t){var r=new o(e),n=t&&t.state,i=r.next;return i.int32=function(){return 4294967296*r.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,n&&("object"==typeof n&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.alea=s}(0,e=r.nmd(e),r.amdD)},45262:function(e,t,r){var n;!function(e,i){function o(e){var t=this,r="";t.next=function(){var e=t.b,r=t.c,n=t.d,i=t.a;return e=e<<25^e>>>7^r,r=r-n|0,n=n<<24^n>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-n|0,t.d=n<<16^r>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):r+=e;for(var n=0;n<r.length+20;n++)t.b^=0|r.charCodeAt(n),t.next()}function a(e,t){return t.a=e.a,t.b=e.b,t.c=e.c,t.d=e.d,t}function s(e,t){var r=new o(e),n=t&&t.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.tychei=s}(0,e=r.nmd(e),r.amdD)},77066:function(e,t,r){var n;!function(e,i){function o(e){var t=this,r="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=0|r.charCodeAt(n),t.next()}function a(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t}function s(e,t){var r=new o(e),n=t&&t.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.xor128=s}(0,e=r.nmd(e),r.amdD)},6288:function(e,t,r){var n;!function(e,i){function o(e){var t=this;t.next=function(){var e,r,n=t.w,i=t.X,o=t.i;return t.w=n=n+1640531527|0,r=i[o+34&127],e=i[o=o+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=i[o]=r^e,t.i=o,r+(n^n>>>16)|0},function(e,t){var r,n,i,o,a,s=[],l=128;for(t===(0|t)?(n=t,t=null):(t+="\0",n=0,l=Math.max(l,t.length)),i=0,o=-32;o<l;++o)t&&(n^=t.charCodeAt((o+32)%t.length)),0===o&&(a=n),n^=n<<10,n^=n>>>15,n^=n<<4,n^=n>>>13,o>
vendor: 5,179 bytes, line 2
2=0&&(a=a+1640531527|0,i=0==(r=s[127&o]^=n+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)n=s[i+34&127],r=s[i=i+1&127],n^=n<<13,r^=r<<17,n^=n>>>15,r^=r>>>12,s[i]=n^r;e.w=a,e.X=s,e.i=i}(t,e)}function a(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function s(e,t){null==e&&(e=+new Date);var r=new o(e),n=t&&t.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=r.next,i.quick=i,n&&(n.X&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.xor4096=s}(0,e=r.nmd(e),r.amdD)},69538:function(e,t,r){var n;!function(e,i){function o(e){var t=this;t.next=function(){var e,r,n=t.x,i=t.i;return e=n[i],r=(e^=e>>>7)^e<<24,r^=(e=n[i+1&7])^e>>>10,r^=(e=n[i+3&7])^e>>>3,r^=(e=n[i+4&7])^e<<7,e=n[i+7&7],r^=(e^=e<<13)^e<<9,n[i]=r,t.i=i+1&7,r},function(e,t){var r,n=[];if(t===(0|t))n[0]=t;else for(t=""+t,r=0;r<t.length;++r)n[7&r]=n[7&r]<<15^t.charCodeAt(r)+n[r+1&7]<<13;for(;n.length<8;)n.push(0);for(r=0;r<8&&0===n[r];++r);for(8==r?n[7]=-1:n[r],e.x=n,e.i=0,r=256;r>0;--r)e.next()}(t,e)}function a(e,t){return t.x=e.x.slice(),t.i=e.i,t}function s(e,t){null==e&&(e=+new Date);var r=new o(e),n=t&&t.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=r.next,i.quick=i,n&&(n.x&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.xorshift7=s}(0,e=r.nmd(e),r.amdD)},29016:function(e,t,r){var n;!function(e,i){function o(e){var t=this,r="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var n=0;n<r.length+64;n++)t.x^=0|r.charCodeAt(n),n==r.length&&(t.d=t.x<<10^t.x>>>4),t.next()}function a(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function s(e,t){var r=new o(e),n=t&&t.state,i=function(){return(r.next()>>>0)/4294967296};return i.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=r.next,i.quick=i,n&&("object"==typeof n&&a(n,r),i.state=function(){return a(r,{})}),i}i&&i.exports?i.exports=s:r.amdD&&r.amdO?void 0===(n=function(){return s}.call(t,r,t,i))||(i.exports=n):this.xorwow=s}(0,e=r.nmd(e),r.amdD)},22430:function(e,t,r){var n;!function(i,o,a){var s,l=256,c=a.pow(l,6),u=a.pow(2,52),d=2*u,h=255;function p(e,t,r){var n=[],h=_(g((t=1==t?{entropy:!0}:t||{}).entropy?[e,y(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(l):(e=new Uint8Array(l),(i.crypto||i.msCrypto).getRandomValues(e)),y(e)}catch(n){var t=i.navigator,r=t&&t.plugins;return[+new Date,i,r,i.screen,y(o)]}}():e,3),n),p=new f(n),v=function(){for(var e=p.g(6),t=c,r=0;e<u;)e=(e+r)*l,t*=l,r=p.g(1);for(;e>=d;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|p.g(4)},v.quick=function(){return p.g(4)/4294967296},v.double=v,_(y(p.S),o),(t.pass||r||function(e,t,r,n){return n&&(n.S&&m(n,p),e.state=function(){return m(p,{})}),r?(a.random=e,t):e})(v,h,"global"in t?t.global:this==a,t.state)}function f(e){var t,r=e.length,n=this,i=0,o=n.i=n.j=0,a=n.S=[];for(r||(e=[r++]);i<l;)a[i]=i++;for(i=0;i<l;i++)a[i]=a[o=h&o+e[i%r]+(t=a[i])],a[o]=t;(n.g=function(e){for(var t,r=0,i=n.i,o=n.j,a=n.S;e--;)t=a[i=h&i+1],r=r*l+a[h&(a[i]=a[o=h&o+t])+(a[o]=t)];return n.i=i,n.j=o,r})(l)}function m(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function g(e,t){var r,n=[],i=typeof e;if(t&&"object"==i)for(r in e)try{n.push(g(e[r],t-1))}catch(o){}return n.length?n:"string"==i?e:e+"\0"}function _(e,t){for(var r,n=e+"",i=0;i<n.length;)t[h&i]=h&(r^=19*t[h&i])+n.charCodeAt(i++);return y(t)}function y(e){return String.fromCharCode.apply(0,e)}if(_(a.random(),o),e.exports){e.exports=p;try{s=r(41234)}catch(v){}}else void 0===(n=function(){return p}.call(t,r,t,e))||(e.exports=n)}("undefined"!==typeof self?self:this,[],Math)},75438:(e,t,r)=>{"use strict";var n=r(60002),i=r(74992),o=r(12101)(),a=r(95558),s=r(54902),l=n("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},74939:(e,t,r)=>{"use strict";var n=r(51251);e.exports=n.setPrototypeOf||null},77189:e=>{"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.setPrototypeOf||null},90799:(e,t,r)=>{"use strict";var n=r(77189),i=r(74939),o=r(46133),a=r(54902);e.exports=n?function(e,t){if(n(e,t))return e;throw new a("Reflect.setPrototypeOf: failed to set [[Prototype]]")}:i||(o?function(e,t){return o(e,t),e}:null)},17324:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;
vendor: 5,146 bytes, line 2
2if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=r?r.call(n,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},59436:module=>{var e;window,e=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=190)}([function(e,t,r){"use strict";(function(e){var n=r(34);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,a=(s=Object.create(null),e=>{const t=i.call(e);return s[t]||(s[t]=t.slice(8,-1).toLowerCase())});var s;const l=e=>(e=e.toLowerCase(),t=>a(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,d=c("undefined"),h=l("ArrayBuffer"),p=c("string"),f=c("function"),m=c("number"),g=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==a(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},y=l("Date"),v=l("File"),b=l("Blob"),x=l("FileList"),w=l("URLSearchParams");function A(e,t){let r,n,{allOwnKeys:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=i?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let a;for(r=0;r<o;r++)a=n[r],t.call(null,e[a],a,e)}}function S(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:e,T=e=>!d(e)&&e!==E,P=(C="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>C&&e instanceof C);var C;const I=l("HTMLFormElement"),M=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),k=l("RegExp"),O=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};A(r,((r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)})),Object.defineProperties(e,n)},R="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:R,ALPHA_DIGIT:R+R.toUpperCase()+L},N=l("AsyncFunction");t.a={isArray:u,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=a(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:g,isPlainObject:_,isUndefined:d,isDate:y,isFile:v,isBlob:b,isRegExp:k,isFunction:f,isStream:e=>g(e)&&f(e.pipe),isURLSearchParams:w,isTypedArray:P,isFileList:x,forEach:A,merge:function e(){const{caseless:t}=T(this)&&this||{},r={},n=(n,i)=>{const o=t&&S(r,i)||i;_(r[o])&&_(n)?r[o]=e(r[o],n):_(n)?r[o]=e({},n):u(n)?r[o]=n.slice():r[o]=n};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&A(arguments[i],n);return r},extend:function(e,t,r){let{allOwnKeys:i}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return A(t,((t,i)=>{r&&f(t)?e[i]=Object(n.a)(t,r):e[i]=t}),{allOwnKeys:i}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,s;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],n&&!n(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>
2{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:I,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:O,freezeMethods:e=>{O(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return u(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:S,global:E,isContextDefined:T,ALPHABET:D,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.ALPHA_DIGIT,r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(g(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const i=u(e)?[]:{};return A(e,((e,t)=>{const o=r(e,n+1);!d(o)&&(i[t]=o)})),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:N,isThenable:e=>e&&(g(e)||f(e))&&f(e.then)&&f(e.catch)}}).call(this,r(22))},function(e,t,r){"use strict";var n=r(0);function i(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}n.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(e,t,r,a,s,l)=>{const c=Object.create(o);return n.a.toFlatObject(e,c,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),i.call(c,e.message,t,r,a,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c},t.a=i},function(e,t,r){var n=r(29);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(45);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},function(e,t,r){var n=r(50),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t,r){"use strict";(function(e){var n=r(0),i=r(1),o=r(35);function a(e){return n.a.isPlainObject(e)||n.a.isArray(e)}function s(e){return n.a.endsWith(e,"[]")?e.slice(0,-2):e}function l(e,t,r){return e?e.concat(t).map((function(e,t){return e=s(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const c=n.a.toFlatObject(n.a,{},null,(function(e){return/^is[A-Z]/.test(e)}));t.a=function(t,r,u){if(!n.a.isObject(t))throw new TypeError("target must be an object");r=r||new(o.a||FormData);const d=(u=n.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!n.a.isUndefined(t[e])}))).metaTokens,h=u.visitor||_,p=u.dots,f=u.indexes,m=(u.Blob||"undefined"!=typeof Blob&&Blob)&&n.a.isSpecCompliantForm(r);if(!n.a.isFunction(h))throw new TypeError("visitor must be a function");function g(t){if(null===t)return"";if(n.a.isDate(t))return t.toISOString();if(!m&&n.a.isBlob(t))throw new i.a("Blob is not supported. Use a Buffer instead.");return n.a.isArrayBuffer(t)||n.a.isTypedArray(t)?m&&"function"==typeof Blob?new Blob([t]):e.from(t):t}function _(e,t,i){let o=e;if(e&&!i&&"object"==typeof e)if(n.a.endsWith(t,"{}"))t=d?t:t.slice(0,-2),e=JSON.stringify(e);else if(n.a.isArray(e)&&function(e){return n.a.isArray(e)&&!e.some(a)}(e)||(n.a.isFileList(e)||n.a.endsWith(t,"[]"))&&(o=n.a.toArray(e)))return t=s(t),o.forEach((function(e,i){!n.a.isUndefined(e)&&null!==e&&r.append(!0===f?l([t],i,p):null===f?t:t+"[]",g(e))})),!1;return!!a(e)||(r.append(l(i,t,p),g(e)),!1)}const y=[],v=Object.assign(c,{defaultVisitor:_,convertValue:g,isVisitable:a});if(!n.a.isObject(t))throw new TypeError("data must be an object");return function e(t,i){if(!n.a.isUndefined(t)){if(-1!==y.indexOf(t))throw Error("Circular reference detected in "+i.join("."));y.push(t),n.a.forEach(t,(function(t,o){!0===(!(n.a.isUndefined(t)||null===t)&&h.call(r,t,n.a.isString(o)?o.trim():o,i,v))&&e(t,i?i.concat(o):[o])})),y.pop()}}(t),r}}).call(this,r(186).Buffer)},function(module,exports,__nested_webpack_require_15608__){(function(global){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.checkStringArgs=function(e,t,r){if(null==e)throw new TypeError("The 'this' value for String.prototype."+r
2+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return e+""},$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:void 0!==global&&null!=global?global:e},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(e,t,r,n){if(t){for(r=$jscomp.global,e=e.split("."),n=0;n<e.length-1;n++){var i=e[n];i in r||(r[i]={}),r=r[i]}(t=t(n=r[e=e[e.length-1]]))!=n&&null!=t&&$jscomp.defineProperty(r,e,{configurable:!0,writable:!0,value:t})}},$jscomp.polyfill("String.prototype.repeat",(function(e){return e||function(e){var t=$jscomp.checkStringArgs(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var r="";e;)1&e&&(r+=t),(e>>>=1)&&(t+=t);return r}}),"es6-impl","es3"),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(e){var t=0;return $jscomp.iteratorPrototype((function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}))},$jscomp.iteratorPrototype=function(e){return $jscomp.initSymbolIterator(),(e={next:e})[$jscomp.global.Symbol.iterator]=function(){return this},e},$jscomp.iteratorFromArray=function(e,t){$jscomp.initSymbolIterator(),e instanceof String&&(e+="");var r=0,n={next:function(){if(r<e.length){var i=r++;return{value:t(i,e[i]),done:!1}}return n.next=function(){return{done:!0,value:void 0}},n.next()}};return n[Symbol.iterator]=function(){return n},n},$jscomp.polyfill("Array.prototype.entries",(function(e){return e||function(){return $jscomp.iteratorFromArray(this,(function(e,t){return[e,t]}))}}),"es6-impl","es3"),$jscomp.polyfill("Array.prototype.keys",(function(e){return e||function(){return $jscomp.iteratorFromArray(this,(function(e){return e}))}}),"es6-impl","es3"),$jscomp.polyfill("Array.prototype.values",(function(e){return e||function(){return $jscomp.iteratorFromArray(this,(function(e,t){return t}))}}),"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=this,goog.isDef=function(e){return void 0!==e},goog.exportPath_=function(e,t,r){e=e.split("."),r=r||goog.global,e[0]in r||!r.execScript||r.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)!e.length&&goog.isDef(t)?r[n]=t:r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}},goog.define=function(e,t){var r=t;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,e)?r=goog.global.CLOSURE_UNCOMPILED_DEFINES[e]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,e)&&(r=goog.global.CLOSURE_DEFINES[e])),goog.exportPath_(e,r)},goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.STRICT_MODE_COMPATIBLE=!1,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide can not be used within a goog.module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var r=e;(r=r.substring(0,r.lastIndexOf(".")))&&!goog.getObjectByName(r);)goog.implicitNamespaces_[r]=!0}goog.exportPath_(e,t)},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(!goog.isString(e)||!e||-1==e.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInModuleLoader_())throw Error("Module "+e+" has been loaded incorrectly. Note, modules cannot be loaded as 
2normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e];if(!goog.implicitNamespaces_[e])return null!=(e=goog.getObjectByName(e))?e:null}return null},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return null!=goog.moduleLoaderState_},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&goog.isDefAndNotNull(goog.getObjectByName(e))},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,t){for(var r,n=e.split("."),i=t||goog.global;r=n.shift();){if(!goog.isDefAndNotNull(i[r]))return null;i=i[r]}return i},goog.globalize=function(e,t){var r,n=t||goog.global;for(r in e)n[r]=e[r]},goog.addDependency=function(e,t,r,n){if(goog.DEPENDENCIES_ENABLED){var i;e=e.replace(/\\/g,"/");var o=goog.dependencies_;n&&"boolean"!=typeof n||(n=n?{module:"goog"}:{});for(var a=0;i=t[a];a++)o.nameToPath[i]=e,o.loadFlags[e]=n;for(n=0;t=r[n];n++)e in o.requires||(o.requires[e]={}),o.requires[e][t]=!0}},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.IS_OLD_IE_&&goog.maybeProcessDeferredDep_(e),goog.isProvided_(e)){if(goog.isInModuleLoader_())return goog.module.getInternal_(e)}else if(goog.ENABLE_DEBUG_LOADER){var t=goog.getPathFromDeps_(e);if(!t)throw e="goog.require could not find: "+e,goog.logToConsole_(e),Error(e);goog.writeScripts_(t)}return null}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.TRANSPILER="transpile.js",goog.DEPENDENCIES_ENABLED&&(goog.dependencies_={loadFlags:{},nameToPath:{},requires:{},visited:{},written:{},deferred:{}},goog.inHtmlDocument_=function(){var e=goog.global.document;return null!=e&&"write"in e},goog.findBasePath_=function(){if(goog.isDef(goog.global.CLOSURE_BASE_PATH))goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var e=goog.global.document.getElementsByTagName("SCRIPT"),t=e.length-1;0<=t;--t){var r=e[t].src,n=-1==(n=r.lastIndexOf("?"))?r.length:n;if("base.js"==r.substr(n-7,7)){goog.basePath=r.substr(0,n-7);break}}},goog.importScript_=function(e,t){(goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_)(e,t)&&(goog.dependencies_.written[e]=!0)},goog.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.oldIeWaiting_=!1,goog.importProcessedScript_=function(e,t,r){goog.importScript_("",'goog.retrieveAndExec_("'+e+'", '+t+", "+r+");")},goog.queuedModules_=[],goog.wrapModule_=function(e,t){return goog.LOAD_MODULE_USING_EVAL&&goog.isDef(goog.global.JSON)?"goog.loadModule("+goog.global.JSON.stringify(t+"\n//# sourceURL="+e+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+t+"\n;return exports});\n//# sourceURL="+e+"\n"},goog.loadQueuedModules_=function(){var e=goog.queuedModules_.length;if(0<e){var t=goog.queuedModules_;goog.queuedModules_=[];for(var r=0;r<e;r++)goog.maybeProcessDeferredPath_(t[r])}goog.oldIeWaiting_=!1},goog.maybeProcessDeferredDep_=function(e){goog.isDeferredModule_(e)&&goog.allDepsAreAvailable_(e)&&(e=goog.getPathFromDeps_(e),goog.maybeProcessDeferredPath_(goog.basePath+e))},goog.isDeferredModule_=function(e){var t=(e=goog.getPathFromDeps_(e))&&goog.dependencies_.loadFlags[e]||{},r=t.lang||"es3";return!(!e||"goog"!=t.module&&!goog.needsTranspile_(r))&&goog.basePath+e in goog.dependencies_.deferred},goog.allDepsAreAvailable_=function(e){if((e=goog.getPathFromDeps_(e))&&e in goog.dependencies_.requires)for(var t in goog.dependencies_.requires[e])if(!goog.isProvided_(t)&&!goog.isDeferredModule_(t))return!1;return!0},goog.maybeProcessDeferredPath_=function(e){if(e in goog.dependencies_.deferred){var t=goog.dependencies_.deferred[e];delete goog.dependencies_.deferred[e],goog.globalEval(t)}},goog.loadModuleFromUrl=function(e){goog.retrieveAndExec_(e,!0,!1)},goog.writeScriptSrcNode_=function(e){goog.global.document.write('
2<script type="text/javascript" src="'+e+'"><\/script>')},goog.appendScriptSrcNode_=function(e){var t=goog.global.document,r=t.createElement("script");r.type="text/javascript",r.src=e,r.defer=!1,r.async=!1,t.head.appendChild(r)},goog.writeScriptTag_=function(e,t){if(goog.inHtmlDocument_()){var r=goog.global.document;if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&"complete"==r.readyState){if(/\bdeps.js$/.test(e))return!1;throw Error('Cannot write "'+e+'" after document load')}if(void 0===t)if(goog.IS_OLD_IE_){goog.oldIeWaiting_=!0;var n=" onreadystatechange='goog.onScriptLoad_(this, "+ ++goog.lastNonModuleScriptIndex_+")' ";r.write('<script type="text/javascript" src="'+e+'"'+n+"><\/script>")}else goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING?goog.appendScriptSrcNode_(e):goog.writeScriptSrcNode_(e);else r.write('<script type="text/javascript">'+goog.protectScriptTag_(t)+"<\/script>");return!0}return!1},goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.needsTranspile_=function(e){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(goog.requiresTranspilation_||(goog.requiresTranspilation_=goog.createRequiresTranspilation_()),e in goog.requiresTranspilation_)return goog.requiresTranspilation_[e];throw Error("Unknown language mode: "+e)},goog.requiresTranspilation_=null,goog.lastNonModuleScriptIndex_=0,goog.onScriptLoad_=function(e,t){return"complete"==e.readyState&&goog.lastNonModuleScriptIndex_==t&&goog.loadQueuedModules_(),!0},goog.writeScripts_=function(e){var t=[],r={},n=goog.dependencies_;!function e(i){if(!(i in n.written)&&!(i in n.visited)){if(n.visited[i]=!0,i in n.requires)for(var o in n.requires[i])if(!goog.isProvided_(o)){if(!(o in n.nameToPath))throw Error("Undefined nameToPath for "+o);e(n.nameToPath[o])}i in r||(r[i]=!0,t.push(i))}}(e);for(var i=0;i<t.length;i++)e=t[i],goog.dependencies_.written[e]=!0;var o=goog.moduleLoaderState_;for(goog.moduleLoaderState_=null,i=0;i<t.length;i++){if(!(e=t[i]))throw goog.moduleLoaderState_=o,Error("Undefined script input");var a=n.loadFlags[e]||{},s=goog.needsTranspile_(a.lang||"es3");"goog"==a.module||s?goog.importProcessedScript_(goog.basePath+e,"goog"==a.module,s):goog.importScript_(goog.basePath+e)}goog.moduleLoaderState_=o},goog.getPathFromDeps_=function(e){return e in goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[e]:null},goog.findBasePath_(),goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js")),goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(t){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(e){return"(function(){"+e+"\n;})();\n"},goog.loadModule=function(e){var t=goog.moduleLoaderState_;try{if(goog.moduleLoaderState_={moduleName:void 0,declareLegacyNamespace:!1},goog.isFunction(e))var r=e.call(void 0,{});else{if(!goog.isString(e))throw Error("Invalid module definition");goog.useSafari10Workaround()&&(e=goog.workaroundSafari10EvalBug(e)),r=goog.loadModuleFromSource_.call(void 0,e)}var n=goog.moduleLoaderState_.moduleName;if(!goog.isString(n)||!n)throw Error('Invalid module name "'+n+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(n,r):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof r&&null!=r&&Object.seal(r),goog.loadedModules_[n]=r}finally{goog.moduleLoaderState_=t}},goog.loadModuleFromSource_=function(a){return eval(a),{}},goog.normalizePath_=function(e){e=e.split("/");for(var t=0;t<e.length;)"."==e[t]?e.splice(t,1):t&&".."==e[t]&&e[t-1]&&".."!=e[t-1]?e.splice(--t,2):t++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var t=new goog.global.XMLHttpRequest;return t.open("get",e,!1),t.send(),0==t.status||200==t.status?t.responseText:null}catch(e){return null}},goog.retrieveAndExec_=function(e,t,r){if(!COMPILED){var n=e;e=goog.normalizePath_(e);var i=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_,o=goog.loadFileSync_(e);if(null==o)throw Error('Load of "'+e+'" failed');r&&(o=goog.transpile_.call(goog.global,o,e)),o=t?goog.wrapModule_(e,o):o+"\n//# sourceURL="+e,goog.IS_OLD_IE_&&goog.oldIeWaiting_?(goog.dependencies_.deferred[n]=o,goog.queuedModules_.push(n)):i(e,o)}},goog.transpile_=function(a,b){var c=goog.global.$jscomp;c||(goog.global.$jscomp=c={});var d=c.transpile;if(!d){var e=goog.basePath+goog.TRANSPILER,f=goog.loadFileSync_(e);if(f){if(eval(f+"\n//# sourceURL="+e),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,c=goog.global.$jscomp,d=c.transpile}}return d||(d=c.transpile=function(e,t){return goog.logToConsole_(t+" requires transpilation but no transpiler was found."),e}),d(a,b)},goog.typeOf=function(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var r=Object.prototype.toString.call(e);
2if("[object Window]"==r)return"object";if("[object Array]"==r||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==r||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t},goog.isNull=function(e){return null===e},goog.isDefAndNotNull=function(e){return null!=e},goog.isArray=function(e){return"array"==goog.typeOf(e)},goog.isArrayLike=function(e){var t=goog.typeOf(e);return"array"==t||"object"==t&&"number"==typeof e.length},goog.isDateLike=function(e){return goog.isObject(e)&&"function"==typeof e.getFullYear},goog.isString=function(e){return"string"==typeof e},goog.isBoolean=function(e){return"boolean"==typeof e},goog.isNumber=function(e){return"number"==typeof e},goog.isFunction=function(e){return"function"==goog.typeOf(e)},goog.isObject=function(e){var t=typeof e;return"object"==t&&null!=e||"function"==t},goog.getUid=function(e){return e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){null!==e&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch(e){}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){if("object"==(r=goog.typeOf(e))||"array"==r){if(e.clone)return e.clone();var t,r="array"==r?[]:{};for(t in e)r[t]=goog.cloneObject(e[t]);return r}return e},goog.bindNative_=function(e,t,r){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}},goog.bind=function(e,t,r){return Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,t){var r=Array.prototype.slice.call(arguments,1);return function(){var t=r.slice();return t.push.apply(t,arguments),e.apply(this,t)}},goog.mixin=function(e,t){for(var r in t)e[r]=t[r]},goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date},goog.globalEval=function(e){if(goog.global.execScript)goog.global.execScript(e,"JavaScript");else{if(!goog.global.eval)throw Error("goog.globalEval not available");if(null==goog.evalWorksForGlobals_)if(goog.global.eval("var _evalTest_ = 1;"),void 0!==goog.global._evalTest_){try{delete goog.global._evalTest_}catch(e){}goog.evalWorksForGlobals_=!0}else goog.evalWorksForGlobals_=!1;if(goog.evalWorksForGlobals_)goog.global.eval(e);else{var t=goog.global.document,r=t.createElement("SCRIPT");r.type="text/javascript",r.defer=!1,r.appendChild(t.createTextNode(e)),t.body.appendChild(r),t.body.removeChild(r)}}},goog.evalWorksForGlobals_=null,goog.getCssName=function(e,t){if("."==String(e).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var r=function(e){return goog.cssNameMapping_[e]||e},n=function(e){e=e.split("-");for(var t=[],n=0;n<e.length;n++)t.push(r(e[n]));return t.join("-")};return n=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?r:n:function(e){return e},n=t?e+"-"+n(t):n(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(n):n},goog.setCssNameMapping=function(e,t){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=t},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(e,t){return t&&(e=e.replace(/\{\$([^}]+)}/g,(function(e,r){return null!=t&&r in t?t[r]:e}))),e},goog.getMsgWithFallback=function(e,t){return e},goog.exportSymbol=function(e,t,r){goog.exportPath_(e,t,r)},goog.exportProperty=function(e,t,r){e[t]=r},goog.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.superClass_=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.base=function(e,r,n){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[r].apply(e,i)}},goog.base=function(e,t,r){var n=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!n)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode co
2de. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(n.superClass_){for(var i=Array(arguments.length-1),o=1;o<arguments.length;o++)i[o-1]=arguments[o];return n.superClass_.constructor.apply(e,i)}for(i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];o=!1;for(var a=e.constructor;a;a=a.superClass_&&a.superClass_.constructor)if(a.prototype[t]===n)o=!0;else if(o)return a.prototype[t].apply(e,i);if(e[t]===n)return e.constructor.prototype[t].apply(e,i);throw Error("goog.base called from a method of one name to a method of a different name")},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a goog.module.");e.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(e,t){var r=t.constructor,n=t.statics;return r&&r!=Object.prototype.constructor||(r=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),r=goog.defineClass.createSealingConstructor_(r,e),e&&goog.inherits(r,e),delete t.constructor,delete t.statics,goog.defineClass.applyProperties_(r.prototype,t),null!=n&&(n instanceof Function?n(r):goog.defineClass.applyProperties_(r,n)),r},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,t){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return e;var r=!goog.defineClass.isUnsealable_(t),n=function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],this.constructor===n&&r&&Object.seal instanceof Function&&Object.seal(t),t};return n},goog.defineClass.isUnsealable_=function(e){return e&&e.prototype&&e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);for(var n=0;n<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;n++)r=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},goog.tagUnsealableClass=function(e){!COMPILED&&goog.defineClass.SEAL_CLASS_INSTANCES&&(e.prototype[goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_]=!0)},goog.UNSEALABLE_CONSTRUCTOR_PROPERTY_="goog_defineClass_legacy_unsealable",goog.createRequiresTranspilation_=function(){function a(e,t){d?c[e]=!0:t()?c[e]=!1:d=c[e]=!0}function b(a){try{return!!eval(a)}catch(t){return!1}}var c={es3:!1},d=!1,e=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",(function(){return b("[1,].length==1")})),a("es6",(function(){var t=e.match(/Edge\/(\d+)(\.\d)*/i);return!(t&&15>Number(t[1]))&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es6-impl",(function(){return!0})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),c},goog.debug={},goog.debug.Error=function(e){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),this.reportErrorToServer=!0},goog.inherits(goog.debug.Error,Error),goog.debug.Error.prototype.name="CustomError",goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.string={},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"\xa0"},goog.string.startsWith=function(e,t){return 0==e.lastIndexOf(t,0)},goog.string.endsWith=function(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)==r},goog.string.caseInsensitiveStartsWith=function(e,t){return 0==goog.string.caseInsensitiveCompare(t,e.substr(0,t.length))},goog.string.caseInsensitiveEndsWith=function(e,t){return 0==goog.string.caseInsensitiveCompare(t,e.substr(e.length-t.length,t.length))},goog.string.caseInsensitiveEquals=function(e,t){return e.toLowerCase()==t.toLowerCase()},goog.string.subs=function(e,t){for(var r=e.split("%s"),n="",i=Array.prototype.slice.call(arguments,1
2);i.length&&1<r.length;)n+=r.shift()+i.shift();return n+r.join("%s")},goog.string.collapseWhitespace=function(e){return e.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=function(e){return/^[\s\xa0]*$/.test(e)},goog.string.isEmptyString=function(e){return 0==e.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(e){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(e){return!/[^\t\n\r ]/.test(e)},goog.string.isAlpha=function(e){return!/[^a-zA-Z]/.test(e)},goog.string.isNumeric=function(e){return!/[^0-9]/.test(e)},goog.string.isAlphaNumeric=function(e){return!/[^a-zA-Z0-9]/.test(e)},goog.string.isSpace=function(e){return" "==e},goog.string.isUnicodeChar=function(e){return 1==e.length&&" "<=e&&"~">=e||"\x80"<=e&&"\ufffd">=e},goog.string.stripNewlines=function(e){return e.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(e){return e.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(e){return e.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(e){return e.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(e){return e.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog.string.trimLeft=function(e){return e.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(e){return e.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=function(e,t){var r=String(e).toLowerCase(),n=String(t).toLowerCase();return r<n?-1:r==n?0:1},goog.string.numberAwareCompare_=function(e,t,r){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var n=e.toLowerCase().match(r),i=t.toLowerCase().match(r),o=Math.min(n.length,i.length),a=0;a<o;a++){r=n[a];var s=i[a];if(r!=s)return e=parseInt(r,10),!isNaN(e)&&(t=parseInt(s,10),!isNaN(t)&&e-t)?e-t:r<s?-1:1}return n.length!=i.length?n.length-i.length:e<t?-1:1},goog.string.intAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\D+/g)},goog.string.floatAwareCompare=function(e,t){return goog.string.numberAwareCompare_(e,t,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(e){return encodeURIComponent(String(e))},goog.string.urlDecode=function(e){return decodeURIComponent(e.replace(/\+/g," "))},goog.string.newLineToBr=function(e,t){return e.replace(/(\r\n|\r|\n)/g,t?"<br />":"<br>")},goog.string.htmlEscape=function(e,t){if(t)e=e.replace(goog.string.AMP_RE_,"&amp;").replace(goog.string.LT_RE_,"&lt;").replace(goog.string.GT_RE_,"&gt;").replace(goog.string.QUOT_RE_,"&quot;").replace(goog.string.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.NULL_RE_,"&#0;"),goog.string.DETECT_DOUBLE_ESCAPING&&(e=e.replace(goog.string.E_RE_,"&#101;"));else{if(!goog.string.ALL_RE_.test(e))return e;-1!=e.indexOf("&")&&(e=e.replace(goog.string.AMP_RE_,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(goog.string.LT_RE_,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(goog.string.GT_RE_,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(goog.string.QUOT_RE_,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(goog.string.SINGLE_QUOTE_RE_,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(goog.string.NULL_RE_,"&#0;")),goog.string.DETECT_DOUBLE_ESCAPING&&-1!=e.indexOf("e")&&(e=e.replace(goog.string.E_RE_,"&#101;"))}return e},goog.string.AMP_RE_=/&/g,goog.string.LT_RE_=/</g,goog.string.GT_RE_=/>/g,goog.string.QUOT_RE_=/"/g,goog.string.SINGLE_QUOTE_RE_=/'/g,goog.string.NULL_RE_=/\x00/g,goog.string.E_RE_=/e/g,goog.string.ALL_RE_=goog.string.DETECT_DOUBLE_ESCAPING?/[\x00&<>"'e]/:/[\x00&<>"']/,goog.string.unescapeEntities=function(e){return goog.string.contains(e,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(e):goog.string.unescapePureXmlEntities_(e):e},goog.string.unescapeEntitiesWithDocument=function(e,t){return goog.string.contains(e,"&")?goog.string.unescapeEntitiesUsingDom_(e,t):e},goog.string.unescapeEntitiesUsingDom_=function(e,t){var r={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},n=t?t.createElement("div"):goog.global.document.createElement("div");return e.replace(goog.string.HTML_ENTITY_PATTERN_,(function(e,t){var i=r[e];if(i)return i;if("#"==t.charAt(0)){var o=Number("0"+t.substr(1));isNaN(o)||(i=String.fromCharCode(o))}
2return i||(n.innerHTML=e+" ",i=n.firstChild.nodeValue.slice(0,-1)),r[e]=i}))},goog.string.unescapePureXmlEntities_=function(e){return e.replace(/&([^;]+);/g,(function(e,t){switch(t){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:if("#"==t.charAt(0)){var r=Number("0"+t.substr(1));if(!isNaN(r))return String.fromCharCode(r)}return e}}))},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(e,t){return goog.string.newLineToBr(e.replace(/  /g," &#160;"),t)},goog.string.preserveSpaces=function(e){return e.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(e,t){for(var r=t.length,n=0;n<r;n++){var i=1==r?t:t.charAt(n);if(e.charAt(0)==i&&e.charAt(e.length-1)==i)return e.substring(1,e.length-1)}return e},goog.string.truncate=function(e,t,r){return r&&(e=goog.string.unescapeEntities(e)),e.length>t&&(e=e.substring(0,t-3)+"..."),r&&(e=goog.string.htmlEscape(e)),e},goog.string.truncateMiddle=function(e,t,r,n){if(r&&(e=goog.string.unescapeEntities(e)),n&&e.length>t){n>t&&(n=t);var i=e.length-n;e=e.substring(0,t-n)+"..."+e.substring(i)}else e.length>t&&(n=Math.floor(t/2),i=e.length-n,e=e.substring(0,n+t%2)+"..."+e.substring(i));return r&&(e=goog.string.htmlEscape(e)),e},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(e){e=String(e);for(var t=['"'],r=0;r<e.length;r++){var n=e.charAt(r),i=n.charCodeAt(0);t[r+1]=goog.string.specialEscapeChars_[n]||(31<i&&127>i?n:goog.string.escapeChar(n))}return t.push('"'),t.join("")},goog.string.escapeString=function(e){for(var t=[],r=0;r<e.length;r++)t[r]=goog.string.escapeChar(e.charAt(r));return t.join("")},goog.string.escapeChar=function(e){if(e in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[e];if(e in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[e]=goog.string.specialEscapeChars_[e];var t=e.charCodeAt(0);if(31<t&&127>t)var r=e;else 256>t?(r="\\x",(16>t||256<t)&&(r+="0")):(r="\\u",4096>t&&(r+="0")),r+=t.toString(16).toUpperCase();return goog.string.jsEscapeCache_[e]=r},goog.string.contains=function(e,t){return-1!=e.indexOf(t)},goog.string.caseInsensitiveContains=function(e,t){return goog.string.contains(e.toLowerCase(),t.toLowerCase())},goog.string.countOf=function(e,t){return e&&t?e.split(t).length-1:0},goog.string.removeAt=function(e,t,r){var n=e;return 0<=t&&t<e.length&&0<r&&(n=e.substr(0,t)+e.substr(t+r,e.length-t-r)),n},goog.string.remove=function(e,t){return e.replace(t,"")},goog.string.removeAll=function(e,t){var r=new RegExp(goog.string.regExpEscape(t),"g");return e.replace(r,"")},goog.string.replaceAll=function(e,t,r){return t=new RegExp(goog.string.regExpEscape(t),"g"),e.replace(t,r.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(e,t){return e.repeat(t)}:function(e,t){return Array(t+1).join(e)},goog.string.padNumber=function(e,t,r){return-1==(r=(e=goog.isDef(r)?e.toFixed(r):String(e)).indexOf("."))&&(r=e.length),goog.string.repeat("0",Math.max(0,t-r))+e},goog.string.makeSafe=function(e){return null==e?"":String(e)},goog.string.buildString=function(e){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=function(e,t){for(var r=0,n=goog.string.trim(String(e)).split("."),i=goog.string.trim(String(t)).split("."),o=Math.max(n.length,i.length),a=0;0==r&&a<o;a++){var s=n[a]||"",l=i[a]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""],0==s[0].length&&0==l[0].length)break;r=0==s[1].length?0:parseInt(s[1],10);var c=0==l[1].length?0:parseInt(l[1],10);r=goog.string.compareElements_(r,c)||goog.string.compareElements_(0==s[2].length,0==l[2].length)||goog.string.compareElements_(s[2],l[2]),s=s[3],l=l[3]}while(0==r)}return r},goog.string.compareElements_=function(e,t){return e<t?-1:e>t?1:0},goog.string.hashCode=function(e){for(var t=0,r=0;r<e.length;++r)t=31*t+e.charCodeAt(r)>>>0;return t},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(e){var t=Number(e);return 0==t&&goog.string.isEmptyOrWhitespace(e)?NaN:t},goog.string.isLowerCamelCase=function(e){return/^[a-z]+([A-Z][a-z]*)*$/.test(e)}
2,goog.string.isUpperCamelCase=function(e){return/^([A-Z][a-z]*)+$/.test(e)},goog.string.toCamelCase=function(e){return String(e).replace(/\-([a-z])/g,(function(e,t){return t.toUpperCase()}))},goog.string.toSelectorCase=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(e,t){var r=goog.isString(t)?goog.string.regExpEscape(t):"\\s";return e.replace(new RegExp("(^"+(r?"|["+r+"]+":"")+")([a-z])","g"),(function(e,t,r){return t+r.toUpperCase()}))},goog.string.capitalize=function(e){return String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()},goog.string.parseInt=function(e){return isFinite(e)&&(e=String(e)),goog.isString(e)?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN},goog.string.splitLimit=function(e,t,r){e=e.split(t);for(var n=[];0<r&&e.length;)n.push(e.shift()),r--;return e.length&&n.push(e.join(t)),n},goog.string.lastComponent=function(e,t){if(!t)return e;"string"==typeof t&&(t=[t]);for(var r=-1,n=0;n<t.length;n++)if(""!=t[n]){var i=e.lastIndexOf(t[n]);i>r&&(r=i)}return-1==r?e:e.slice(r+1)},goog.string.editDistance=function(e,t){var r=[],n=[];if(e==t)return 0;if(!e.length||!t.length)return Math.max(e.length,t.length);for(var i=0;i<t.length+1;i++)r[i]=i;for(i=0;i<e.length;i++){n[0]=i+1;for(var o=0;o<t.length;o++)n[o+1]=Math.min(n[o]+1,r[o+1]+1,r[o]+Number(e[i]!=t[o]));for(o=0;o<r.length;o++)r[o]=n[o]}return n[t.length]},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(e,t){t.unshift(e),goog.debug.Error.call(this,goog.string.subs.apply(null,t)),t.shift(),this.messagePattern=e},goog.inherits(goog.asserts.AssertionError,goog.debug.Error),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(e){throw e},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.doAssertFailure_=function(e,t,r,n){var i="Assertion failed";if(r){i+=": "+r;var o=n}else e&&(i+=": "+e,o=t);e=new goog.asserts.AssertionError(""+i,o||[]),goog.asserts.errorHandler_(e)},goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=e)},goog.asserts.assert=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!e&&goog.asserts.doAssertFailure_("",null,t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,t){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(e)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isString(e)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(e)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isArray(e)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,t,r){return goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(e)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,t,r){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(e),e],t,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,t,r,n){return!goog.asserts.ENABLE_ASSERTS||e instanceof t||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(t),goog.asserts.getType_(e)],r,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var e in Object.prototype)goog.asserts.fail(e+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e},goog.object={},goog.object.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},goog.object.forEach=function(e,t,r){for(var n in e)t.call(r,e[n],n,e)},goog.object.filter=function(e,t,r){var n,i={};for(n in e)t.call(r,e[n],n,e)&&(i[n]=e[n]);return i},goog.object.map=function(e,t,r){var n,i={};for(n in e)i[n]=t.call(r,e[n],n,e);return i},goog.object.some=function(e,t,r){for(var n in e)if(t.call(r,e[n],n,e))return!0;return!1},goog.object.every=function(e,t,r){for(var n in e)if(!t.call(r,e[n],n,e))return!1;return!0},goog.object.getCount=function(e){var t,r=0;for(t in e)r++;return r},goog.object.getAnyKey=function(e){for(var t in e)return t},goog.object.getAnyValue=function(e){for(var t in e)return e[t]},goog.object.contains=function(e,t){return goog.object.containsValue(e,t)},goog.object.getValues=function(e){var t,r=[],n=0;for(t in e)r[n++]=e[t];return r},goog.object.getKeys=function(e){var t,r=[],n=0;for(t in e)r[n++]=t;return r},goog.object.getValueByKeys=function(e,t){for(var r=(n=goog.isArrayLike(t))?t:arguments,n=n?0:1;n<r.length&&(e=e[r[n]],goog.isDef(e));n++);return e},goog.object.containsKey=function(e,t){return null!==e&&t in e},goog.object.containsValue=function(e,t){for(var r in e)if(e[r]==t)return!0;return!1},goog.object.findKey=function(e,t,r){for(var n in e)if(t.call(r,e[n],n,e))return n},goog.object.findValue=function(e,t,r){return(t=goog.object.findKey(e,t,r))&&e[t]},goog.object.isEmpty=function(e){for(var t in e)return!1;return!0},goog.object.clear=function(e){for(var t in e)delete e[t]},goog.object.remove=function(e,t){var r;return(r=t in e)&&delete e[t],r},goog.object.add=function(e,t,r){if(null!==e&&t in e)throw Error('The object already contains the key "'+t+'"');goog.object.set(e,t,r)},goog.object.get=function(e,t,r){return null!==e&&t in e?e[t]:r},goog.object.set=function(e,t,r){e[t]=r},goog.object.setIfUndefined=function(e,t,r){return t in e?e[t]:e[t]=r}
2,goog.object.setWithReturnValueIfNotSet=function(e,t,r){return t in e?e[t]:(r=r(),e[t]=r)},goog.object.equals=function(e,t){for(var r in e)if(!(r in t)||e[r]!==t[r])return!1;for(r in t)if(!(r in e))return!1;return!0},goog.object.clone=function(e){var t,r={};for(t in e)r[t]=e[t];return r},goog.object.unsafeClone=function(e){if("object"==(r=goog.typeOf(e))||"array"==r){if(goog.isFunction(e.clone))return e.clone();var t,r="array"==r?[]:{};for(t in e)r[t]=goog.object.unsafeClone(e[t]);return r}return e},goog.object.transpose=function(e){var t,r={};for(t in e)r[e[t]]=t;return r},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(e,t){for(var r,n,i=1;i<arguments.length;i++){for(r in n=arguments[i])e[r]=n[r];for(var o=0;o<goog.object.PROTOTYPE_FIELDS_.length;o++)r=goog.object.PROTOTYPE_FIELDS_[o],Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}},goog.object.create=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(t%2)throw Error("Uneven number of arguments");for(var r={},n=0;n<t;n+=2)r[arguments[n]]=arguments[n+1];return r},goog.object.createSet=function(e){var t=arguments.length;if(1==t&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var r={},n=0;n<t;n++)r[arguments[n]]=!0;return r},goog.object.createImmutableView=function(e){var t=e;return Object.isFrozen&&!Object.isFrozen(e)&&(t=Object.create(e),Object.freeze(t)),t},goog.object.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)},goog.object.getAllPropertyNames=function(e,t,r){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(e);for(var n={};e&&(e!==Object.prototype||t)&&(e!==Function.prototype||r);){for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++)n[i[o]]=!0;e=Object.getPrototypeOf(e)}return goog.object.getKeys(n)},goog.reflect={},goog.reflect.object=function(e,t){return t},goog.reflect.objectProperty=function(e,t){return e},goog.reflect.sinkValue=function(e){return goog.reflect.sinkValue[" "](e),e},goog.reflect.sinkValue[" "]=goog.nullFunction,goog.reflect.canAccessProperty=function(e,t){try{return goog.reflect.sinkValue(e[t]),!0}catch(e){}return!1},goog.reflect.cache=function(e,t,r,n){return n=n?n(t):t,Object.prototype.hasOwnProperty.call(e,n)?e[n]:e[n]=r(t)},goog.math={},goog.math.Long=function(e,t){this.low_=0|e,this.high_=0|t},goog.math.Long.IntCache_={},goog.math.Long.valueCache_={},goog.math.Long.getCachedIntValue_=function(e){return goog.reflect.cache(goog.math.Long.IntCache_,e,(function(e){return new goog.math.Long(e,0>e?-1:0)}))},goog.math.Long.MAX_VALUE_FOR_RADIX_="  111111111111111111111111111111111111111111111111111111111111111 2021110011022210012102010021220101220221 13333333333333333333333333333333 1104332401304422434310311212 1540241003031030222122211 22341010611245052052300 777777777777777777777 67404283172107811827 9223372036854775807 1728002635214590697 41a792678515120367 10b269549075433c37 4340724c6c71dc7a7 160e2ad3246366807 7fffffffffffffff 33d3d8307b214008 16agh595df825fa7 ba643dci0ffeehh 5cbfjia3fh26ja7 2heiciiie82dh97 1adaibb21dckfa7 i6k448cf4192c2 acd772jnc9l0l7 64ie1focnn5g77 3igoecjbmca687 27c48l5b37oaop 1bk39f3ah3dmq7 q1se8f0m04isb hajppbc1fc207 bm03i95hia437 7vvvvvvvvvvvv 5hg4ck9jd4u37 3tdtk1v8j6tpp 2pijmikexrxp7 1y2p0ij32e8e7".split(" "),goog.math.Long.MIN_VALUE_FOR_RADIX_="  -1000000000000000000000000000000000000000000000000000000000000000 -2021110011022210012102010021220101220222 -20000000000000000000000000000000 -1104332401304422434310311213 -1540241003031030222122212 -22341010611245052052301 -1000000000000000000000 -67404283172107811828 -9223372036854775808 -1728002635214590698 -41a792678515120368 -10b269549075433c38 -4340724c6c71dc7a8 -160e2ad3246366808 -8000000000000000 -33d3d8307b214009 -16agh595df825fa8 -ba643dci0ffeehi -5cbfjia3fh26ja8 -2heiciiie82dh98 -1adaibb21dckfa8 -i6k448cf4192c3 -acd772jnc9l0l8 -64ie1focnn5g78 -3igoecjbmca688 -27c48l5b37oaoq -1bk39f3ah3dmq8 -q1se8f0m04isc -hajppbc1fc208 -bm03i95hia438 -8000000000000 -5hg4ck9jd4u38 -3tdtk1v8j6tpq -2pijmikexrxp8 -1y2p0ij32e8e8".split(" "),goog.math.Long.fromInt=function(e){var t=0|e;return goog.asserts.assert(e===t,"value should be a 32-bit integer"),-128<=t&&128>t?goog.math.Long.getCachedIntValue_(t):new goog.math.Long(t,0>t?-1:0)},goog.math.Long.fromNumber=function(e){return isNaN(e)?goog.math.Long.getZero():e<=-goog.math.Long.TWO_PWR_63_DBL_?goog.math.Long.getMinValue():e+1>=goog.math.Long.TWO_PWR_63_DBL_?goog.math.Long.getMaxValue():0>e?goog.math.Long.fromNumber(-e).negate():new goog.math.Long(e%goog.math.Long.TWO_PWR_32_DBL_|0,e/goog.math.Long.TWO_PWR_32_DBL_|0)},goog.math.Long.fromBits=function(e,t){return new goog.math.Long(e,t)},goog.math.Long.fromString=function(e,t){if(0==e.length)throw Error("number format error: empty string");var r=t||10;if(2>r||36<r)throw Error("radix out of range: "+r);if("-"==e.charAt(0))return goog.math.Long.fromString(e.substring(1),r).negate();if(0<=e.indexOf("-"))throw Error('number format error: interior "-" character: '+e);for(var n=goog.math.Long.fromNumber(Math.pow(r,8)),i=goog.math.Long.getZero(),o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),s=parseInt(e.substring(o,o+a),r);8>a?(a=goog.math.Long.fromNumber(Math.pow(r,a)),i=i.multiply(a).add(goog.math.Long.fromNumber(s))):i=(i=i.multiply(n)).add(goog.math.Long.fromNumber(s))}return i},goog.math.Long.isStringInRange=function(e,t){var r=t||10;if(2>r||36<r)throw Error("radix out of range: "+r);return r="-"==e.charAt(0)?goog.math.Long.MIN_VALUE_FOR_RADIX_[r]:goog.math.Long.MAX_VALUE_FOR_RADIX_[r],e.length<r.length||e.length==r.length&&e<=r},goog.math.Long.TWO_PWR_16_DBL_=65536,goog.math.Long.TWO_PWR_32_DBL_=goog.math.Long.TWO_PWR_16_DBL_*goog.math.Long.TWO_PWR_16_DBL_,goog.math.Long.TWO_PWR_64_DBL_=goog.math.Long.TWO_PWR_32_DBL_*goog.math.Long.TWO_PWR_32_DBL_,goog.math.Long.TWO_PWR_63_DBL_=goog.math.Long.TWO_PWR_64_DBL_/2,goog.math.Long.getZero=function(){return goog.math.Long.getCachedIntValue_(0)},goog.math.Long.getOne=function(){return goog.math.Long.getCachedIntValue_(1)},goog.math.Long.getNegOne=function(){return goog.math.Long.getCachedIntValue_(-1)},goog.math.Long.getMaxValue=function(){return goog.reflect.cache(goog.math.Long.valueCache_,goog.math.Long.ValueCacheId_.MAX_VALUE,(function(){return goog.math.Long.fromBits(-1,2147483647)}))},goog.math.Long.getMinValue=function(){return goog.reflect.cache(goog.math.Long.valueCache_,goog.math.Long.ValueCacheId_.MIN_VALUE,(function(){return goog.math.Long.fromBits(0,-2147483648)}))},goog.math.Long.getTwoPwr24=function(){return goog.reflect.cache(goog.math.Long.valueCache_,goog.math.Long.ValueCacheId_.TWO_PWR_24,(function(){return goog.math.Long.fromInt(16777216)}))},goog.math.Long.prototype.toInt=function(){return this.low_},goog.math.Long.prototype.toNumber=function(){return this.high_*goog.math.Long.TWO_PWR_32_DBL_+this.getLowBitsUnsigned()},goog.math.Long.prototype.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(this.isZero())return"0";if(this.isNegative()){if(this.equals(goog.math.Long.getMinValue())){var t=goog.math.Long.fromNumber(e),r=this.div(t);return t=r.multiply(t).subtract(this),r.toString(e)+t.toInt().toString(e)}return"-"+this.negate().toString(e)}r=goog.math.Long.fromNumber(Math.pow(e,6)),t=this;for(var n="";;){var i=t.div(r),o=(t.subtract(i.multiply(r)).toInt()>>>0).toString(e);if((t=i).isZero())return o+n;for(;6>o.length;)o="0"+o;n=""+o+n}},goog.math.Long.prototype.getHighBits=function(){return this.high_},goog.math.Long.prototype.getLowBits=function(){return this.low_},goog.math.Long.prototype.getLowBitsUnsigned=function(){return 0<=this.low_?this.low_:goog.math.Long.TWO_PWR_32_DBL_+this.low_},goog.math.Long.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(goog.math.Long.getMinValue())?64:this.negate().getNumBitsAbs();
2for(var e=0!=this.high_?this.high_:this.low_,t=31;0<t&&!(e&1<<t);t--);return 0!=this.high_?t+33:t+1},goog.math.Long.prototype.isZero=function(){return 0==this.high_&&0==this.low_},goog.math.Long.prototype.isNegative=function(){return 0>this.high_},goog.math.Long.prototype.isOdd=function(){return!(1&~this.low_)},goog.math.Long.prototype.equals=function(e){return this.high_==e.high_&&this.low_==e.low_},goog.math.Long.prototype.notEquals=function(e){return this.high_!=e.high_||this.low_!=e.low_},goog.math.Long.prototype.lessThan=function(e){return 0>this.compare(e)},goog.math.Long.prototype.lessThanOrEqual=function(e){return 0>=this.compare(e)},goog.math.Long.prototype.greaterThan=function(e){return 0<this.compare(e)},goog.math.Long.prototype.greaterThanOrEqual=function(e){return 0<=this.compare(e)},goog.math.Long.prototype.compare=function(e){if(this.equals(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.subtract(e).isNegative()?-1:1},goog.math.Long.prototype.negate=function(){return this.equals(goog.math.Long.getMinValue())?goog.math.Long.getMinValue():this.not().add(goog.math.Long.getOne())},goog.math.Long.prototype.add=function(e){var t=this.high_>>>16,r=65535&this.high_,n=this.low_>>>16,i=e.high_>>>16,o=65535&e.high_,a=e.low_>>>16;return n=0+((a=0+((e=(65535&this.low_)+(65535&e.low_)+0)>>>16)+(n+a))>>>16),t=0+((n+=r+o)>>>16)+(t+i)&65535,goog.math.Long.fromBits((65535&a)<<16|65535&e,t<<16|65535&n)},goog.math.Long.prototype.subtract=function(e){return this.add(e.negate())},goog.math.Long.prototype.multiply=function(e){if(this.isZero()||e.isZero())return goog.math.Long.getZero();if(this.equals(goog.math.Long.getMinValue()))return e.isOdd()?goog.math.Long.getMinValue():goog.math.Long.getZero();if(e.equals(goog.math.Long.getMinValue()))return this.isOdd()?goog.math.Long.getMinValue():goog.math.Long.getZero();if(this.isNegative())return e.isNegative()?this.negate().multiply(e.negate()):this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(goog.math.Long.getTwoPwr24())&&e.lessThan(goog.math.Long.getTwoPwr24()))return goog.math.Long.fromNumber(this.toNumber()*e.toNumber());var t=this.high_>>>16,r=65535&this.high_,n=this.low_>>>16,i=65535&this.low_,o=e.high_>>>16,a=65535&e.high_,s=e.low_>>>16,l=0+i*(e=65535&e.low_),c=0+(l>>>16)+n*e,u=0+(c>>>16);u+=(c=(65535&c)+i*s)>>>16;var d=0+((u+=r*e)>>>16);return d=(d+=(u=(65535&u)+n*s)>>>16)+((u=(65535&u)+i*a)>>>16)+(t*e+r*s+n*a+i*o)&65535,goog.math.Long.fromBits((65535&c)<<16|65535&l,d<<16|65535&u)},goog.math.Long.prototype.div=function(e){if(e.isZero())throw Error("division by zero");if(this.isZero())return goog.math.Long.getZero();if(this.equals(goog.math.Long.getMinValue())){if(e.equals(goog.math.Long.getOne())||e.equals(goog.math.Long.getNegOne()))return goog.math.Long.getMinValue();if(e.equals(goog.math.Long.getMinValue()))return goog.math.Long.getOne();var t=this.shiftRight(1);if((t=t.div(e).shiftLeft(1)).equals(goog.math.Long.getZero()))return e.isNegative()?goog.math.Long.getOne():goog.math.Long.getNegOne();var r=this.subtract(e.multiply(t));return t.add(r.div(e))}if(e.equals(goog.math.Long.getMinValue()))return goog.math.Long.getZero();if(this.isNegative())return e.isNegative()?this.negate().div(e.negate()):this.negate().div(e).negate();if(e.isNegative())return this.div(e.negate()).negate();var n=goog.math.Long.getZero();for(r=this;r.greaterThanOrEqual(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var i=48>=(i=Math.ceil(Math.log(t)/Math.LN2))?1:Math.pow(2,i-48),o=goog.math.Long.fromNumber(t),a=o.multiply(e);a.isNegative()||a.greaterThan(r);)t-=i,a=(o=goog.math.Long.fromNumber(t)).multiply(e);o.isZero()&&(o=goog.math.Long.getOne()),n=n.add(o),r=r.subtract(a)}return n},goog.math.Long.prototype.modulo=function(e){return this.subtract(this.div(e).multiply(e))},goog.math.Long.prototype.not=function(){return goog.math.Long.fromBits(~this.low_,~this.high_)},goog.math.Long.prototype.and=function(e){return goog.math.Long.fromBits(this.low_&e.low_,this.high_&e.high_)},goog.math.Long.prototype.or=function(e){return goog.math.Long.fromBits(this.low_|e.low_,this.high_|e.high_)},goog.math.Long.prototype.xor=function(e){return goog.math.Long.fromBits(this.low_^e.low_,this.high_^e.high_)},goog.math.Long.prototype.shiftLeft=function(e){if(0==(e&=63))return this;var t=this.low_;return 32>e?goog.math.Long.fromBits(t<<e,this.high_<<e|t>>>32-e):goog.math.Long.fromBits(0,t<<e-32)},goog.math.Long.prototype.shiftRight=function(e){if(0==(e&=63))return this;var t=this.high_;return 32>e?goog.math.Long.fromBits(this.low_>>>e|t<<32-e,t>>e):goog.math.Long.fromBits(t>>e-32,0<=t?0:-1)},goog.math.Long.prototype.shiftRightUnsigned=function(e){if(0==(e&=63))return this;var t=this.high_;return 32>e?goog.math.Long.fromBits(this.low_>>>e|t<<32-e,t>>>e):32==e?goog.math.Long.fromBits(t,0):goog.math.Long.fromBits(t>>>e-32,0)},goog.math.Long.ValueCacheId_={MAX_VALUE:1,MIN_VALUE:2,TWO_PWR_24:6};var com={cognitect:{}};com.cognitect.transit={},com.cognitect.transit.delimiters={},com.cognitect.transit.delimiters.ESC="~",com.cognitect.transit.delimiters.TAG="#",com.cognitect.transit.delimiters.SUB="^",com.cognitect.transit.delimiters.RES="`",com.cognitect.transit.delimiters.ESC_TAG="~#",com.cognitect.transit.caching={},com.cognitect.transit.caching.MIN_SIZE_CACHEABLE=3,com.cognitect.transit.caching.BASE_CHAR_IDX=48,com.cognitect.transit.caching.CACHE_CODE_DIGITS=44,com.cognitect.transit.caching.MAX_CACHE_ENTRIES=com.cognitect.transit.caching.CACHE_CODE_DIGITS*com.cognitect.transit.caching.CACHE_CODE_DIGITS,com.cognitect.transit.caching.MAX_CACHE_SIZE=4096,com.cognitect.transit.caching.
2isCacheable=function(e,t){if(e.length>com.cognitect.transit.caching.MIN_SIZE_CACHEABLE){if(t)return!0;var r=e.charAt(0),n=e.charAt(1);return r===com.cognitect.transit.delimiters.ESC&&(":"===n||"$"===n||"#"===n)}return!1},com.cognitect.transit.caching.idxToCode=function(e){var t=Math.floor(e/com.cognitect.transit.caching.CACHE_CODE_DIGITS);return e=String.fromCharCode(e%com.cognitect.transit.caching.CACHE_CODE_DIGITS+com.cognitect.transit.caching.BASE_CHAR_IDX),0===t?com.cognitect.transit.delimiters.SUB+e:com.cognitect.transit.delimiters.SUB+String.fromCharCode(t+com.cognitect.transit.caching.BASE_CHAR_IDX)+e},com.cognitect.transit.caching.WriteCache=function(){this.cacheSize=this.gen=this.idx=0,this.cache={}},com.cognitect.transit.caching.WriteCache.prototype.write=function(e,t){if(com.cognitect.transit.caching.isCacheable(e,t)){this.cacheSize===com.cognitect.transit.caching.MAX_CACHE_SIZE?(this.clear(),this.gen=0,this.cache={}):this.idx===com.cognitect.transit.caching.MAX_CACHE_ENTRIES&&this.clear();var r=this.cache[e];return null==r?(this.cache[e]=[com.cognitect.transit.caching.idxToCode(this.idx),this.gen],this.idx++,e):r[1]!=this.gen?(r[1]=this.gen,r[0]=com.cognitect.transit.caching.idxToCode(this.idx),this.idx++,e):r[0]}return e},com.cognitect.transit.caching.WriteCache.prototype.clear=function(){this.idx=0,this.gen++},com.cognitect.transit.caching.writeCache=function(){return new com.cognitect.transit.caching.WriteCache},com.cognitect.transit.caching.isCacheCode=function(e){return e.charAt(0)===com.cognitect.transit.delimiters.SUB&&" "!==e.charAt(1)},com.cognitect.transit.caching.codeToIdx=function(e){return 2===e.length?e.charCodeAt(1)-com.cognitect.transit.caching.BASE_CHAR_IDX:(e.charCodeAt(1)-com.cognitect.transit.caching.BASE_CHAR_IDX)*com.cognitect.transit.caching.CACHE_CODE_DIGITS+(e=e.charCodeAt(2)-com.cognitect.transit.caching.BASE_CHAR_IDX)},com.cognitect.transit.caching.ReadCache=function(){this.idx=0,this.cache=[]},com.cognitect.transit.caching.ReadCache.prototype.write=function(e,t){return this.idx==com.cognitect.transit.caching.MAX_CACHE_ENTRIES&&(this.idx=0),this.cache[this.idx]=e,this.idx++,e},com.cognitect.transit.caching.ReadCache.prototype.read=function(e,t){return this.cache[com.cognitect.transit.caching.codeToIdx(e)]},com.cognitect.transit.caching.ReadCache.prototype.clear=function(){this.idx=0},com.cognitect.transit.caching.readCache=function(){return new com.cognitect.transit.caching.ReadCache},com.cognitect.transit.util={},com.cognitect.transit.util.objectKeys=void 0!==Object.keys?function(e){return Object.keys(e)}:function(e){return goog.object.getKeys(e)},com.cognitect.transit.util.isArray=void 0!==Array.isArray?function(e){return Array.isArray(e)}:function(e){return"array"===goog.typeOf(e)},com.cognitect.transit.util.chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",com.cognitect.transit.util.randInt=function(e){return Math.round(Math.random()*e)},com.cognitect.transit.util.randHex=function(){return com.cognitect.transit.util.randInt(15).toString(16)},com.cognitect.transit.util.randomUUID=function(){var e=(8|3&com.cognitect.transit.util.randInt(14)).toString(16);return com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+"-"+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+"-4"+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+"-"+e+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+"-"+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()+com.cognitect.transit.util.randHex()},com.cognitect.transit.util.btoa=function(e){if("undefined"!=typeof btoa)return btoa(e);e=String(e);for(var t,r,n=0,i=com.cognitect.transit.util.chars,o="";e.charAt(0|n)||(i="=",n%1);o+=i.charAt(63&t>>8-n%1*8)){if(255<(r=e.charCodeAt(n+=.75)))throw Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return o}
2,com.cognitect.transit.util.atob=function(e){if("undefined"!=typeof atob)return atob(e);if(1==(e=String(e).replace(/=+$/,"")).length%4)throw Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,r,n=0,i=0,o="";r=e.charAt(i++);~r&&(t=n%4?64*t+r:r,n++%4)?o+=String.fromCharCode(255&t>>(-2*n&6)):0)r=com.cognitect.transit.util.chars.indexOf(r);return o},com.cognitect.transit.util.Uint8ToBase64=function(e){for(var t,r=0,n=e.length,i="";r<n;)t=e.subarray(r,Math.min(r+32768,n)),i+=String.fromCharCode.apply(null,t),r+=32768;return com.cognitect.transit.util.btoa(i)},com.cognitect.transit.util.Base64ToUint8=function(e){for(var t=(e=com.cognitect.transit.util.atob(e)).length,r=new Uint8Array(t),n=0;n<t;n++){var i=e.charCodeAt(n);r[n]=i}return r},com.cognitect.transit.eq={},com.cognitect.transit.eq.hashCodeProperty="transit$hashCode$",com.cognitect.transit.eq.hashCodeCounter=1,com.cognitect.transit.eq.equals=function(e,t){if(null==e)return null==t;if(e===t)return!0;if("object"==typeof e){if(com.cognitect.transit.util.isArray(e)){if(com.cognitect.transit.util.isArray(t)&&e.length===t.length){for(var r=0;r<e.length;r++)if(!com.cognitect.transit.eq.equals(e[r],t[r]))return!1;return!0}return!1}if(e.com$cognitect$transit$equals)return e.com$cognitect$transit$equals(t);if(null!=t&&"object"==typeof t){if(t.com$cognitect$transit$equals)return t.com$cognitect$transit$equals(e);r=0;var n,i=com.cognitect.transit.util.objectKeys(t).length;for(n in e)if(e.hasOwnProperty(n)&&(r++,!t.hasOwnProperty(n)||!com.cognitect.transit.eq.equals(e[n],t[n])))return!1;return r===i}}return!1},com.cognitect.transit.eq.hashCombine=function(e,t){return e^t+2654435769+(e<<6)+(e>>2)},com.cognitect.transit.eq.stringCodeCache={},com.cognitect.transit.eq.stringCodeCacheSize=0,com.cognitect.transit.eq.STR_CACHE_MAX=256,com.cognitect.transit.eq.hashString=function(e){var t=com.cognitect.transit.eq.stringCodeCache[e];if(null!=t)return t;for(var r=t=0;r<e.length;++r)t=31*t+e.charCodeAt(r),t%=4294967296;return com.cognitect.transit.eq.stringCodeCacheSize++,com.cognitect.transit.eq.stringCodeCacheSize>=com.cognitect.transit.eq.STR_CACHE_MAX&&(com.cognitect.transit.eq.stringCodeCache={},com.cognitect.transit.eq.stringCodeCacheSize=1),com.cognitect.transit.eq.stringCodeCache[e]=t},com.cognitect.transit.eq.hashMapLike=function(e){var t=0;if(null!=e.forEach)e.forEach((function(e,r,n){t=(t+(com.cognitect.transit.eq.hashCode(r)^com.cognitect.transit.eq.hashCode(e)))%4503599627370496}));else for(var r=com.cognitect.transit.util.objectKeys(e),n=0;n<r.length;n++){var i=r[n],o=e[i];t=(t+(com.cognitect.transit.eq.hashCode(i)^com.cognitect.transit.eq.hashCode(o)))%4503599627370496}return t},com.cognitect.transit.eq.hashArrayLike=function(e){var t=0;if(com.cognitect.transit.util.isArray(e))for(var r=0;r<e.length;r++)t=com.cognitect.transit.eq.hashCombine(t,com.cognitect.transit.eq.hashCode(e[r]));else e.forEach&&e.forEach((function(e,r){t=com.cognitect.transit.eq.hashCombine(t,com.cognitect.transit.eq.hashCode(e))}));return t},com.cognitect.transit.eq.hashCode=function(e){if(null==e)return 0;switch(typeof e){case"number":return e;case"boolean":return!0===e?1:0;case"string":return com.cognitect.transit.eq.hashString(e);case"function":var t=e[com.cognitect.transit.eq.hashCodeProperty];return t||(t=com.cognitect.transit.eq.hashCodeCounter,void 0!==Object.defineProperty?Object.defineProperty(e,com.cognitect.transit.eq.hashCodeProperty,{value:t,enumerable:!1}):e[com.cognitect.transit.eq.hashCodeProperty]=t,com.cognitect.transit.eq.hashCodeCounter++),t;default:return e instanceof Date?e.valueOf():com.cognitect.transit.util.isArray(e)?com.cognitect.transit.eq.hashArrayLike(e):e.com$cognitect$transit$hashCode?e.com$cognitect$transit$hashCode():com.cognitect.transit.eq.hashMapLike(e)}},com.cognitect.transit.eq.extendToEQ=function(e,t){return e.com$cognitect$transit$hashCode=t.hashCode,e.com$cognitect$transit$equals=t.equals,e},com.cognitect.transit.types={},com.cognitect.transit.types.ITERATOR="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",com.cognitect.transit.types.TaggedValue=function(e,t){this.tag=e,this.rep=t,this.hashCode=-1},com.cognitect.transit.types.TaggedValue.prototype.toString=function(){return"[TaggedValue: "+this.tag+", "+this.rep+"]"},com.cognitect.transit.types.TaggedValue.prototype.equiv=function(e){return com.cognitect.transit.eq.equals(this,e)},com.cognitect.transit.types.TaggedValue.prototype.equiv=com.cognitect.transit.types.TaggedValue.prototype.equiv,com.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$equals=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&this.tag===e.tag&&com.cognitect.transit.eq.equals(this.rep,e.rep)},com.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$hashCode=function(){return-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashCombine(com.cognitect.transit.eq.hashCode(this.tag),com.cognitect.transit.eq.hashCode(this.rep))),this.hashCode},com.cognitect.transit.types.taggedValue=function(e,t){return new com.cognitect.transit.types.TaggedValue(e,t)},com.cognitect.transit.types.isTaggedValue=function(e){return e instanceof com.cognitect.transit.types.TaggedValue},com.cognitect.transit.types.nullValue=function(){return null},com.cognitect.transit.types.boolValue=function(e){return"t"===e},com.cognitect.transit.types.MAX_INT=goog.math.Long.fromString("9007199254740991"),com.cognitect.transit.types.MIN_INT=goog.math.Long.fromString("-9007199254740991"),com.cognitect.transit.types.intValue=function(e){return"number"==typeof e||e instanceof goog.math.Long||(e=goog.math.Long.fromString(e,10)).greaterThan(com.cognitect.transit.types.MAX_INT)||e.lessThan(com.cognitect.transit.types.MIN_INT)?e:e.toNumber()},goog.math.Long.prototype.equiv=function(e){return com.cognitect.transit.eq.equals(this,e)},goog.math.Long.prototype.equiv=goog.math.Long.prototype.equiv,goog.math.Long.prototype.com$cognitect$transit$equals=function(e){return e instanceof goog.math.Long&&this.equals(e)},goog.math.Long.prototype.com$cognitect$transit$hashCode=function(){return this.toInt()},com.cognitect.transit.types.isInteger=function(e){return e instanceof goog.math.Long||"number"==typeof e&&!isNaN(e)&&1/0!==e&&parseFloat(e)===parseInt(e,10)},com.cognitect.transit.types.floatValue=function(e){return parseFloat(e)},com.cognitect.transit.types.bigInteger=function(e){return com.cognitect.transit.types.taggedValue("n",e)},com.cognitect.transit.types.isBigInteger=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"n"===e.tag},com.cognitect.transit.types.bigDecimalValue=function(e){return com.cognitect.transit.types.taggedValue("f",e)},com.cognitect.transit.types.isBigDecimal=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"f"===e.tag},com.cognitect.transit.types.charValue=function(e){return e},com.cognitect.transit.types.Keyword=function(e){this._name=e,this.hashCode=-1},com.cognitect.transit.types.Keyword.prototype.toString=function(){return":"+this._name},com.cognitect.transit.types.Keyword.prototype.namespace=function(){var e=this._name.indexOf("/");return-1!=e?this._name.substring(0,e):null},com.cognitect.transit.types.Keyword.prototype.name=function(){var e=this._name.indexOf("/");return-1!=e?this._name.substring(e+1,this._name.length):this._name},com.cognitect.transit.types.Keyword.prototype.equiv=function(e){return com.cognitect.transit.eq.equals(this,e)},com.cognitect.transit.types.Keyword.prototype.equiv=com.cognitect.transit.types.Keyword.prototype.equiv,com.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$equals=function(e){return e instanceof com.cognitect.transit.types.Keyword&&this._name==e._name},com.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$hashCode=function(){return-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashCode(this._name)),this.hashCode},com.cognitect.transit.types.keyword=function(e){return new com.cognitect.transit.types.Keyword(e)},com.cognitect.transit.types.isKeyword=function(e){return e instanceof com.cognitect.transit.types.Keyword},com.cognitect.transit.types.Symbol=function(e){this._name=e,this.hashCode=-1},com.cognitect.transit.types.Symbol.prototype.namespace=function(){var e=this._name.indexOf("/");return-1!=e?this._name.substring(0,e):null},com.cognitect.transit.types.Symbol.prototype.name=function(){var e=this._name.indexOf("/");return-1!=e?this._name.substring(e+1,this._name.length):this._name},com.cognitect.transit.types.Symbol.prototype.toString=function(){return this._name},com.cognitect.transit.types.Symbol.prototype.equiv=function(e){return com.cognitect.transit.eq.equals(this,e)},com.cognitect.transit.types.Symbol.prototype.equiv=com.cognitect.transit.types.Symbol.prototype.equiv,com.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$equals=function(e){return e instanceof com.cognitect.transit.types.Symbol&&this._name==e._name},com.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$hashCode=function(){return-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashCode(this._name)),this.hashCode},com.cognitect.transit.types.symbol=function(e){return new com.cognitect.transit.types.Symbol(e)}
2,com.cognitect.transit.types.isSymbol=function(e){return e instanceof com.cognitect.transit.types.Symbol},com.cognitect.transit.types.hexFor=function(e,t,r){var n="";r=r||t+1;for(var i=8*(7-t),o=goog.math.Long.fromInt(255).shiftLeft(i);t<r;t++,i-=8,o=o.shiftRightUnsigned(8)){var a=e.and(o).shiftRightUnsigned(i).toString(16);1==a.length&&(a="0"+a),n+=a}return n},com.cognitect.transit.types.UUID=function(e,t){this.high=e,this.low=t,this.hashCode=-1},com.cognitect.transit.types.UUID.prototype.getLeastSignificantBits=function(){return this.low},com.cognitect.transit.types.UUID.prototype.getMostSignificantBits=function(){return this.high},com.cognitect.transit.types.UUID.prototype.toString=function(){var e=this.high,t=this.low,r=com.cognitect.transit.types.hexFor(e,0,4)+"-";return r+=com.cognitect.transit.types.hexFor(e,4,6)+"-",r+=com.cognitect.transit.types.hexFor(e,6,8)+"-",(r+=com.cognitect.transit.types.hexFor(t,0,2)+"-")+com.cognitect.transit.types.hexFor(t,2,8)},com.cognitect.transit.types.UUID.prototype.equiv=function(e){return com.cognitect.transit.eq.equals(this,e)},com.cognitect.transit.types.UUID.prototype.equiv=com.cognitect.transit.types.UUID.prototype.equiv,com.cognitect.transit.types.UUID.prototype.com$cognitect$transit$equals=function(e){return e instanceof com.cognitect.transit.types.UUID&&this.high.equals(e.high)&&this.low.equals(e.low)},com.cognitect.transit.types.UUID.prototype.com$cognitect$transit$hashCode=function(){return-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashCode(this.toString())),this.hashCode},com.cognitect.transit.types.UUIDfromString=function(e){var t,r;e=e.replace(/-/g,"");var n=t=0;for(r=24;8>n;n+=2,r-=8)t|=parseInt(e.substring(n,n+2),16)<<r;var i=0;for(n=8,r=24;16>n;n+=2,r-=8)i|=parseInt(e.substring(n,n+2),16)<<r;var o=goog.math.Long.fromBits(i,t);for(t=0,n=16,r=24;24>n;n+=2,r-=8)t|=parseInt(e.substring(n,n+2),16)<<r;for(i=0,r=n=24;32>n;n+=2,r-=8)i|=parseInt(e.substring(n,n+2),16)<<r;return e=goog.math.Long.fromBits(i,t),new com.cognitect.transit.types.UUID(o,e)},com.cognitect.transit.types.uuid=function(e){return com.cognitect.transit.types.UUIDfromString(e)},com.cognitect.transit.types.isUUID=function(e){return e instanceof com.cognitect.transit.types.UUID},com.cognitect.transit.types.date=function(e){return e="number"==typeof e?e:parseInt(e,10),new Date(e)},com.cognitect.transit.types.verboseDate=function(e){return new Date(e)},Date.prototype.com$cognitect$transit$equals=function(e){return e instanceof Date&&this.valueOf()===e.valueOf()},Date.prototype.com$cognitect$transit$hashCode=function(){return this.valueOf()},com.cognitect.transit.types.binary=function(e,t){return t&&!1===t.preferBuffers||void 0===goog.global.Buffer?"undefined"!=typeof Uint8Array?com.cognitect.transit.util.Base64ToUint8(e):com.cognitect.transit.types.taggedValue("b",e):new goog.global.Buffer(e,"base64")},com.cognitect.transit.types.isBinary=function(e){return void 0!==goog.global.Buffer&&e instanceof goog.global.Buffer||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||e instanceof com.cognitect.transit.types.TaggedValue&&"b"===e.tag},com.cognitect.transit.types.uri=function(e){return com.cognitect.transit.types.taggedValue("r",e)},com.cognitect.transit.types.isURI=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"r"===e.tag},com.cognitect.transit.types.KEYS=0,com.cognitect.transit.types.VALUES=1,com.cognitect.transit.types.ENTRIES=2,com.cognitect.transit.types.TransitArrayMapIterator=function(e,t){this.entries=e,this.type=t||com.cognitect.transit.types.KEYS,this.idx=0},com.cognitect.transit.types.TransitArrayMapIterator.prototype.next=function(){if(this.idx<this.entries.length){var e={value:this.type===com.cognitect.transit.types.KEYS?this.entries[this.idx]:this.type===com.cognitect.transit.types.VALUES?this.entries[this.idx+1]:[this.entries[this.idx],this.entries[this.idx+1]],done:!1};return this.idx+=2,e}return{value:null,done:!0}},com.cognitect.transit.types.TransitArrayMapIterator.prototype.next=com.cognitect.transit.types.TransitArrayMapIterator.prototype.next,com.cognitect.transit.types.TransitArrayMapIterator.prototype[com.cognitect.transit.types.ITERATOR]=function(){return this},com.cognitect.transit.types.TransitMapIterator=function(e,t){this.map=e,this.type=t||com.cognitect.transit.types.KEYS,this.keys=this.map.getKeys(),this.idx=0,this.bucket=null,this.bucketIdx=0},com.cognitect.transit.types.TransitMapIterator.prototype.next=function(){if(this.idx<this.map.size){null!=this.bucket&&this.bucketIdx<this.bucket.length||(this.bucket=this.map.map[this.keys[this.idx]],this.bucketIdx=0);var e={value:this.type===com.cognitect.transit.types.KEYS?this.bucket[this.bucketIdx]:this.type===com.cognitect.transit.types.VALUES?this.bucket[this.bucketIdx+1]:[this.bucket[this.bucketIdx],this.bucket[this.bucketIdx+1]],done:!1};return this.idx++,this.bucketIdx+=2,e}return{value:null,done:!0}},com.cognitect.transit.types.TransitMapIterator.prototype.next=com.cognitect.transit.types.TransitMapIterator.prototype.next,com.cognitect.transit.types.TransitMapIterator.prototype[com.cognitect.transit.types.ITERATOR]=function(){return this},com.cognitect.transit.types.mapEquals=function(e,t){if(e instanceof com.cognitect.transit.types.TransitMap&&com.cognitect.transit.types.isMap(t)){if(e.size!==t.size)return!1;for(var r in e.map)for(var n=e.map[r],i=0;i<n.length;i+=2)if(!com.cognitect.transit.eq.equals(n[i+1],t.get(n[i])))return!1;return!0}if(e instanceof com.cognitect.transit.types.TransitArrayMap&&com.cognitect.transit.types.isMap(t)){if(e.size!==t.size)return!1;for(r=e._entries,i=0;i<r.length;i+=2)if(!com.cognitect.transit.eq.equals(r[i+1],t.get(r[i])))return!1;return!0}if(null!=t&&"object"==typeof t&&(r=(i=com.cognitect.transit.util.objectKeys(t)).length,e.size===r)){for(n=0;n<r;n++){var o=i[n];if(!e.has(o)||!com.cognitect.transit.eq.equals(t[o],e.get(o)))return!1}return!0}return!1},com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD=8,com.cognitect.transit.types.ARRAY_MAP_THRESHOLD=32,com.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD=32,com.cognitect.transit.types.print=function(e){return null==e?"null":goog.isArray(e)?"["+e.toString()+"]":goog.isString(e)?'"'+e+'"':e.toString()},com.cognitect.transit.types.printMap=function(e){var t=0,r="TransitMap {";return e.forEach((function(n,i){r+=com.cognitect.transit.types.print(i)+" => "+com.cognitect.transit.types.print(n),t<e.size-1&&(r+=", "),t++})),r+"}"},com.cognitect.transit.types.printSet=function(e){var t=0,r="TransitSet {";return e.forEach((function(n){r+=com.cognitect.transit.types.print(n),t<e.size-1&&(r+=", "),t++})),r+"}"},com.cognitect.transit.types.TransitArrayMap=function(e){this._entries=e,this.backingMap=null,this.hashCode=-1,this.size=e.length/2,this.accesses=0},com.cognitect.transit.types.TransitArrayMap.prototype.toString=function(){return com.cognitect.transit.types.printMap(this)},com.cognitect.transit.types.TransitArrayMap.prototype.inspect=function(){return this.toString()},com.cognitect.transit.types.TransitArrayMap.prototype.convert=function(){if(this.backingMap)throw Error("Invalid operation, already converted");return!(this.size<com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD)&&(this.accesses++,this.accesses>com.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD&&(this.backingMap=com.cognitect.transit.types.map(this._entries,!1,!0),this._entries=[],!0))},com.cognitect.transit.types.TransitArrayMap.prototype.clear=function(){this.hashCode=-1,this.backingMap?this.backingMap.clear():this._entries=[],this.size=0},com.cognitect.transit.types.TransitArrayMap.prototype.clear=com.cognitect.transit.types.TransitArrayMap.prototype.clear,com.cognitect.transit.types.TransitArrayMap.prototype.keys=function(){return this.backingMap?this.backingMap.keys():new com.cognitect.transit.types.TransitArrayMapIterator(this._entries,com.cognitect.transit.types.KEYS)},com.cognitect.transit.types.TransitArrayMap.prototype.keys=com.cognitect.transit.types.TransitArrayMap.prototype.keys,com.cognitect.transit.types.TransitArrayMap.prototype.keySet=function(){if(this.backingMap)return this.backingMap.keySet();for(var e=[],t=0,r=0;r<this._entries.length;t++,r+=2)e[t]=this._entries[r];return e},com.cognitect.transit.types.TransitArrayMap.prototype.keySet=com.cognitect.transit.types.TransitArrayMap.prototype.keySet,com.cognitect.transit.types.TransitArrayMap.prototype.entries=function(){return this.backingMap?this.backingMap.entries():new com.cognitect.transit.types.TransitArrayMapIterator(this._entries,com.cognitect.transit.types.ENTRIES)},com.cognitect.transit.types.TransitArrayMap.prototype.entries=com.cognitect.transit.types.TransitArrayMap.prototype.entries,com.cognitect.transit.types.TransitArrayMap.prototype.values=function(){return this.backingMap?this.backingMap.values():new com.cognitect.transit.types.TransitArrayMapIterator(this._entries,com.cognitect.transit.types.VALUES)},com.cognitect.transit.types.TransitArrayMap.prototype.values=com.cognitect.transit.types.TransitArrayMap.prototype.values,com.cognitect.transit.types.TransitArrayMap.prototype.forEach=function(e){if(this.backingMap)this.backingMap.forEac
2h(e);else for(var t=0;t<this._entries.length;t+=2)e(this._entries[t+1],this._entries[t])},com.cognitect.transit.types.TransitArrayMap.prototype.forEach=com.cognitect.transit.types.TransitArrayMap.prototype.forEach,com.cognitect.transit.types.TransitArrayMap.prototype.get=function(e,t){if(this.backingMap)return this.backingMap.get(e);if(this.convert())return this.get(e);for(var r=0;r<this._entries.length;r+=2)if(com.cognitect.transit.eq.equals(this._entries[r],e))return this._entries[r+1];return t},com.cognitect.transit.types.TransitArrayMap.prototype.get=com.cognitect.transit.types.TransitArrayMap.prototype.get,com.cognitect.transit.types.TransitArrayMap.prototype.has=function(e){if(this.backingMap)return this.backingMap.has(e);if(this.convert())return this.has(e);for(var t=0;t<this._entries.length;t+=2)if(com.cognitect.transit.eq.equals(this._entries[t],e))return!0;return!1},com.cognitect.transit.types.TransitArrayMap.prototype.has=com.cognitect.transit.types.TransitArrayMap.prototype.has,com.cognitect.transit.types.TransitArrayMap.prototype.set=function(e,t){if(this.hashCode=-1,this.backingMap)this.backingMap.set(e,t),this.size=this.backingMap.size;else{for(var r=0;r<this._entries.length;r+=2)if(com.cognitect.transit.eq.equals(this._entries[r],e))return void(this._entries[r+1]=t);this._entries.push(e),this._entries.push(t),this.size++,this.size>com.cognitect.transit.types.ARRAY_MAP_THRESHOLD&&(this.backingMap=com.cognitect.transit.types.map(this._entries,!1,!0),this._entries=null)}},com.cognitect.transit.types.TransitArrayMap.prototype.set=com.cognitect.transit.types.TransitArrayMap.prototype.set,com.cognitect.transit.types.TransitArrayMap.prototype.delete=function(e){if(this.hashCode=-1,this.backingMap)return e=this.backingMap.delete(e),this.size=this.backingMap.size,e;for(var t=0;t<this._entries.length;t+=2)if(com.cognitect.transit.eq.equals(this._entries[t],e))return e=this._entries[t+1],this._entries.splice(t,2),this.size--,e},com.cognitect.transit.types.TransitArrayMap.prototype.clone=function(){var e=com.cognitect.transit.types.map();return this.forEach((function(t,r){e.set(r,t)})),e},com.cognitect.transit.types.TransitArrayMap.prototype.clone=com.cognitect.transit.types.TransitArrayMap.prototype.clone,com.cognitect.transit.types.TransitArrayMap.prototype[com.cognitect.transit.types.ITERATOR]=function(){return this.entries()},com.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$hashCode=function(){return this.backingMap?this.backingMap.com$cognitect$transit$hashCode():(-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashMapLike(this)),this.hashCode)},com.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$equals=function(e){return this.backingMap?com.cognitect.transit.types.mapEquals(this.backingMap,e):com.cognitect.transit.types.mapEquals(this,e)},com.cognitect.transit.types.TransitMap=function(e,t,r){this.map=t||{},this._keys=e||[],this.size=r||0,this.hashCode=-1},com.cognitect.transit.types.TransitMap.prototype.toString=function(){return com.cognitect.transit.types.printMap(this)},com.cognitect.transit.types.TransitMap.prototype.inspect=function(){return this.toString()},com.cognitect.transit.types.TransitMap.prototype.clear=function(){this.hashCode=-1,this.map={},this._keys=[],this.size=0},com.cognitect.transit.types.TransitMap.prototype.clear=com.cognitect.transit.types.TransitMap.prototype.clear,com.cognitect.transit.types.TransitMap.prototype.getKeys=function(){return null!=this._keys?this._keys:com.cognitect.transit.util.objectKeys(this.map)},com.cognitect.transit.types.TransitMap.prototype.delete=function(e){this.hashCode=-1,this._keys=null;for(var t=com.cognitect.transit.eq.hashCode(e),r=this.map[t],n=0;n<r.length;n+=2)if(com.cognitect.transit.eq.equals(e,r[n]))return e=r[n+1],r.splice(n,2),0===r.length&&delete this.map[t],this.size--,e},com.cognitect.transit.types.TransitMap.prototype.entries=function(){return new com.cognitect.transit.types.TransitMapIterator(this,com.cognitect.transit.types.ENTRIES)},com.cognitect.transit.types.TransitMap.prototype.entries=com.cognitect.transit.types.TransitMap.prototype.entries,com.cognitect.transit.types.TransitMap.prototype.forEach=function(e){for(var t=this.getKeys(),r=0;r<t.length;r++)for(var n=this.map[t[r]],i=0;i<n.length;i+=2)e(n[i+1],n[i],this)},com.cognitect.transit.types.TransitMap.prototype.forEach=com.cognitect.transit.types.TransitMap.prototype.forEach,com.cognitect.transit.types.TransitMap.prototype.get=function(e,t){var r=com.cognitect.transit.eq.hashCode(e);if(null==(r=this.map[r]))return t;for(var n=0;n<r.length;n+=2)if(com.cognitect.transit.eq.equals(e,r[n]))return r[n+1]},com.cognitect.transit.types.TransitMap.prototype.get=com.cognitect.transit.types.TransitMap.prototype.get,com.cognitect.transit.types.TransitMap.prototype.has=function(e){var t=com.cognitect.transit.eq.hashCode(e);if(null!=(t=this.map[t]))for(var r=0;r<t.length;r+=2)if(com.cognitect.transit.eq.equals(e,t[r]))return!0;return!1},com.cognitect.transit.types.TransitMap.prototype.has=com.cognitect.transit.types.TransitMap.prototype.has,com.cognitect.transit.types.TransitMap.prototype.keys=function(){return new com.cognitect.transit.types.TransitMapIterator(this,com.cognitect.transit.types.KEYS)},com.cognitect.transit.types.TransitMap.prototype.keys=com.cognitect.transit.types.TransitMap.prototype.keys,com.cognitect.transit.types.TransitMap.prototype.keySet=function(){for(var e=this.getKeys(),t=[],r=0;r<e.length;r++)for(var n=this.map[e[r]],i=0;i<n.length;i+=2)t.push(n[i]);return t},com.cognitect.transit.types.TransitMap.prototype.keySet=com.cognitect.transit.types.TransitMap.prototype.keySet,com.cognitect.transit.types.TransitMap.prototype.set=function(e,t){this.hashCode=-1;var r=com.cognitect.transit.eq.hashCode(e),n=this.map[r];if(null==n)this._keys&&this._keys.push(r),this.map[r]=[e,t],this.size++;else{r=!0;for(var i=0;i<n.length;i+=2)if(com.cognitect.transit.eq.equals(t,n[i])){r=!1,n[i]=t;break}r&&(n.push(e),n.push(t),this.size++)}},com.cognitect.transit.types.TransitMap.prototype.set=com.cognitect.transit.types.TransitMap.prototype.set,com.cognitect.transit.types.TransitMap.prototype.values=function(){return new com.cognitect.transit.types.TransitMapIterator(this,com.cognitect.transit.types.VALUES)},com.cognitect.transit.types.TransitMap.prototype.values=com.cognitect.transit.types.TransitMap.prototype.values,com.cognitect.transit.types.TransitMap.prototype.clone=function(){var e=com.cognitect.transit.types.map();return this.forEach((function(t,r){e.set(r,t)})),e},com.cognitect.transit.types.TransitMap.prototype.clone=com.cognitect.transit.types.TransitMap.prototype.clone,com.cognitect.transit.types.TransitMap.prototype[com.cognitect.transit.types.ITERATOR]=function(){return this.entries()},com.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$hashCode=function(){return-1===this.hashCode&&(this.hashCode=com.cognitect.transit.eq.hashMapLike(this)),this.hashCode},com.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$equals=function(e){return com.cognitect.transit.types.mapEquals(this,e)},com.cognitect.transit.types.map=function(e,t,r){if(e=e||[],t=!1!==t||t,(!0!==r||!r)&&e.length<=2*com.cognitect.transit.types.ARRAY_MAP_THRESHOLD){if(t){var n=e;for(e=[],t=0;t<n.length;t+=2){var i=!1;for(r=0;r<e.length;r+=2)if(com.cognitect.transit.eq.equals(e[r],n[t])){e[r+1]=n[t+1],i=!0;break}i||(e.push(n[t]),e.push(n[t+1]))}}return new com.cognitect.transit.types.TransitArrayMap(e)}n={},i=[];var o=0;for(t=0;t<e.length;t+=2){var a=n[r=com.cognitect.transit.eq.hashCode(e[t])];if(null==a)i.push(r),n[r]=[e[t],e[t+1]],o++;else{var s=!0;for(r=0;r<a.length;r+=2)if(com.cognitect.transit.eq.equals(a[r],e[t])){a[r+1]=e[t+1],s=!1;break}s&&(a.push(e[t]),a.push(e[t+1]),o++)}}return new com.cognitect.transit.types.TransitMap(i,n,o)},com.cognitect.transit.types.isArrayMap=function(e){return e instanceof com.cognitect.transit.types.TransitArrayMap},com.cognitect.transit.types.isMap=function(e){return e instanceof com.cognitect.transit.types.TransitArrayMap||e instanceof com.cognitect.transit.types.TransitMap},com.cognitect.transit.types.TransitSet=function(e){this.map=e,this.size=e.size},com.cognitect.transit.types.TransitSet.prototype.toString=function(){return com.cognitect.transit.types.printSet(this)},com.cognitect.transit.types.TransitSet.prototype.inspect=function(){return this.toString()},com.cognitect.transit.types.TransitSet.prototype.add=function(e){this.map.set(e,e),this.size=this.map.size},com.cognitect.transit.types.TransitSet.prototype.add=com.cognitect.transit.types.TransitSet.prototype.add,com.cognitect.transit.types.TransitSet.prototype.clear=function(){this.map=new com.cognitect.transit.types.TransitMap,this.size=0},com.cognitect.transit.types.TransitSet.prototype.clear=com.cognitect.transit.types.TransitSet.prototype.clear,com.cognitect.transit.types.TransitSet.prototype.delete=function(e){return e=this.map.delete(e),this.size=this.map.size,e},com.cognitect.transit.types.TransitSet.prototype.entries=function(){return this.map.entries()},com.cognitect.transit.types.TransitSet.prototype.entries=com.cognitect.transit.types.TransitSet.prototype.entries,com.cognitect.transit.types.TransitSet.prototype.forEach=function(e,t){var r=this;
2this.map.forEach((function(t,n,i){e(n,r)}))},com.cognitect.transit.types.TransitSet.prototype.forEach=com.cognitect.transit.types.TransitSet.prototype.forEach,com.cognitect.transit.types.TransitSet.prototype.has=function(e){return this.map.has(e)},com.cognitect.transit.types.TransitSet.prototype.has=com.cognitect.transit.types.TransitSet.prototype.has,com.cognitect.transit.types.TransitSet.prototype.keys=function(){return this.map.keys()},com.cognitect.transit.types.TransitSet.prototype.keys=com.cognitect.transit.types.TransitSet.prototype.keys,com.cognitect.transit.types.TransitSet.prototype.keySet=function(){return this.map.keySet()},com.cognitect.transit.types.TransitSet.prototype.keySet=com.cognitect.transit.types.TransitSet.prototype.keySet,com.cognitect.transit.types.TransitSet.prototype.values=function(){return this.map.values()},com.cognitect.transit.types.TransitSet.prototype.values=com.cognitect.transit.types.TransitSet.prototype.values,com.cognitect.transit.types.TransitSet.prototype.clone=function(){var e=com.cognitect.transit.types.set();return this.forEach((function(t){e.add(t)})),e},com.cognitect.transit.types.TransitSet.prototype.clone=com.cognitect.transit.types.TransitSet.prototype.clone,com.cognitect.transit.types.TransitSet.prototype[com.cognitect.transit.types.ITERATOR]=function(){return this.values()},com.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$equals=function(e){return e instanceof com.cognitect.transit.types.TransitSet&&(this.size===e.size?com.cognitect.transit.eq.equals(this.map,e.map):void 0)},com.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$hashCode=function(e){return com.cognitect.transit.eq.hashCode(this.map)},com.cognitect.transit.types.set=function(e){e=e||[];for(var t={},r=[],n=0,i=0;i<e.length;i++){var o=t[a=com.cognitect.transit.eq.hashCode(e[i])];if(null==o)r.push(a),t[a]=[e[i],e[i]],n++;else{for(var a=!0,s=0;s<o.length;s+=2)if(com.cognitect.transit.eq.equals(o[s],e[i])){a=!1;break}a&&(o.push(e[i]),o.push(e[i]),n++)}}return new com.cognitect.transit.types.TransitSet(new com.cognitect.transit.types.TransitMap(r,t,n))},com.cognitect.transit.types.isSet=function(e){return e instanceof com.cognitect.transit.types.TransitSet},com.cognitect.transit.types.quoted=function(e){return com.cognitect.transit.types.taggedValue("'",e)},com.cognitect.transit.types.isQuoted=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"'"===e.tag},com.cognitect.transit.types.list=function(e){return com.cognitect.transit.types.taggedValue("list",e)},com.cognitect.transit.types.isList=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"list"===e.tag},com.cognitect.transit.types.link=function(e){return com.cognitect.transit.types.taggedValue("link",e)},com.cognitect.transit.types.isLink=function(e){return e instanceof com.cognitect.transit.types.TaggedValue&&"link"===e.tag},com.cognitect.transit.types.specialDouble=function(e){switch(e){case"-INF":return-1/0;case"INF":return 1/0;case"NaN":return NaN;default:throw Error("Invalid special double value "+e)}},com.cognitect.transit.handlers={},com.cognitect.transit.handlers.ctorGuid=0,com.cognitect.transit.handlers.ctorGuidProperty="transit$guid$"+com.cognitect.transit.util.randomUUID(),com.cognitect.transit.handlers.typeTag=function(e){if(null==e)return"null";if(e===String)return"string";if(e===Boolean)return"boolean";if(e===Number)return"number";if(e===Array)return"array";if(e===Object)return"map";var t=e[com.cognitect.transit.handlers.ctorGuidProperty];return null==t&&(void 0!==Object.defineProperty?(t=++com.cognitect.transit.handlers.ctorGuid,Object.defineProperty(e,com.cognitect.transit.handlers.ctorGuidProperty,{value:t,enumerable:!1})):e[com.cognitect.transit.handlers.ctorGuidProperty]=t=++com.cognitect.transit.handlers.ctorGuid),t},com.cognitect.transit.handlers.constructor=function(e){return null==e?null:e.constructor},com.cognitect.transit.handlers.padZeros=function(e,t){for(var r=e.toString(),n=r.length;n<t;n++)r="0"+r;return r},com.cognitect.transit.handlers.stringableKeys=function(e){e=com.cognitect.transit.util.objectKeys(e);for(var t=0;t<e.length;t++);return!0},com.cognitect.transit.handlers.NilHandler=function(){},com.cognitect.transit.handlers.NilHandler.prototype.tag=function(e){return"_"},com.cognitect.transit.handlers.NilHandler.prototype.rep=function(e){return null},com.cognitect.transit.handlers.NilHandler.prototype.stringRep=function(e){return"null"},com.cognitect.transit.handlers.StringHandler=function(){},com.cognitect.transit.handlers.StringHandler.prototype.tag=function(e){return"s"},com.cognitect.transit.handlers.StringHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.StringHandler.prototype.stringRep=function(e){return e},com.cognitect.transit.handlers.NumberHandler=function(){},com.cognitect.transit.handlers.NumberHandler.prototype.tag=function(e){return"i"},com.cognitect.transit.handlers.NumberHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.NumberHandler.prototype.stringRep=function(e){return e.toString()},com.cognitect.transit.handlers.IntegerHandler=function(){},com.cognitect.transit.handlers.IntegerHandler.prototype.tag=function(e){return"i"},com.cognitect.transit.handlers.IntegerHandler.prototype.rep=function(e){return e.toString()},com.cognitect.transit.handlers.IntegerHandler.prototype.stringRep=function(e){return e.toString()},com.cognitect.transit.handlers.BooleanHandler=function(){},com.cognitect.transit.handlers.BooleanHandler.prototype.tag=function(e){return"?"},com.cognitect.transit.handlers.BooleanHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.BooleanHandler.prototype.stringRep=function(e){return e.toString()},com.cognitect.transit.handlers.ArrayHandler=function(){},com.cognitect.transit.handlers.ArrayHandler.prototype.tag=function(e){return"array"},com.cognitect.transit.handlers.ArrayHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.ArrayHandler.prototype.stringRep=function(e){return null},com.cognitect.transit.handlers.MapHandler=function(){},com.cognitect.transit.handlers.MapHandler.prototype.tag=function(e){return"map"},com.cognitect.transit.handlers.MapHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.MapHandler.prototype.stringRep=function(e){return null},com.cognitect.transit.handlers.VerboseDateHandler=function(){},com.cognitect.transit.handlers.VerboseDateHandler.prototype.tag=function(e){return"t"},com.cognitect.transit.handlers.VerboseDateHandler.prototype.rep=function(e){return e.getUTCFullYear()+"-"+com.cognitect.transit.handlers.padZeros(e.getUTCMonth()+1,2)+"-"+com.cognitect.transit.handlers.padZeros(e.getUTCDate(),2)+"T"+com.cognitect.transit.handlers.padZeros(e.getUTCHours(),2)+":"+com.cognitect.transit.handlers.padZeros(e.getUTCMinutes(),2)+":"+com.cognitect.transit.handlers.padZeros(e.getUTCSeconds(),2)+"."+com.cognitect.transit.handlers.padZeros(e.getUTCMilliseconds(),3)+"Z"},com.cognitect.transit.handlers.VerboseDateHandler.prototype.stringRep=function(e,t){return t.rep(e)},com.cognitect.transit.handlers.DateHandler=function(){},com.cognitect.transit.handlers.DateHandler.prototype.tag=function(e){return"m"},com.cognitect.transit.handlers.DateHandler.prototype.rep=function(e){return e.valueOf()},com.cognitect.transit.handlers.DateHandler.prototype.stringRep=function(e){return e.valueOf().toString()},com.cognitect.transit.handlers.DateHandler.prototype.getVerboseHandler=function(e){return new com.cognitect.transit.handlers.VerboseDateHandler},com.cognitect.transit.handlers.UUIDHandler=function(){},com.cognitect.transit.handlers.UUIDHandler.prototype.tag=function(e){return"u"},com.cognitect.transit.handlers.UUIDHandler.prototype.rep=function(e){return e.toString()},com.cognitect.transit.handlers.UUIDHandler.prototype.stringRep=function(e){return e.toString()},com.cognitect.transit.handlers.KeywordHandler=function(){},com.cognitect.transit.handlers.KeywordHandler.prototype.tag=function(e){return":"},com.cognitect.transit.handlers.KeywordHandler.prototype.rep=function(e){return e._name},com.cognitect.transit.handlers.KeywordHandler.prototype.stringRep=function(e,t){return t.rep(e)},com.cognitect.transit.handlers.SymbolHandler=function(){},com.cognitect.transit.handlers.SymbolHandler.prototype.tag=function(e){return"$"},com.cognitect.transit.handlers.SymbolHandler.prototype.rep=function(e){return e._name},com.cognitect.transit.handlers.SymbolHandler.prototype.stringRep=function(e,t){return t.rep(e)},com.cognitect.transit.handlers.TaggedHandler=function(){},com.cognitect.transit.handlers.TaggedHandler.prototype.tag=function(e){return e.tag},com.cognitect.transit.handlers.TaggedHandler.prototype.rep=function(e){return e.rep}
2,com.cognitect.transit.handlers.TaggedHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.TransitSetHandler=function(){},com.cognitect.transit.handlers.TransitSetHandler.prototype.tag=function(e){return"set"},com.cognitect.transit.handlers.TransitSetHandler.prototype.rep=function(e){var t=[];return e.forEach((function(e,r){t.push(e)})),com.cognitect.transit.types.taggedValue("array",t)},com.cognitect.transit.handlers.TransitSetHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.TransitArrayMapHandler=function(){},com.cognitect.transit.handlers.TransitArrayMapHandler.prototype.tag=function(e){return"map"},com.cognitect.transit.handlers.TransitArrayMapHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.TransitArrayMapHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.TransitMapHandler=function(){},com.cognitect.transit.handlers.TransitMapHandler.prototype.tag=function(e){return"map"},com.cognitect.transit.handlers.TransitMapHandler.prototype.rep=function(e){return e},com.cognitect.transit.handlers.TransitMapHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.BufferHandler=function(){},com.cognitect.transit.handlers.BufferHandler.prototype.tag=function(e){return"b"},com.cognitect.transit.handlers.BufferHandler.prototype.rep=function(e){return e.toString("base64")},com.cognitect.transit.handlers.BufferHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.Uint8ArrayHandler=function(){},com.cognitect.transit.handlers.Uint8ArrayHandler.prototype.tag=function(e){return"b"},com.cognitect.transit.handlers.Uint8ArrayHandler.prototype.rep=function(e){return com.cognitect.transit.util.Uint8ToBase64(e)},com.cognitect.transit.handlers.Uint8ArrayHandler.prototype.stringRep=function(e,t){return null},com.cognitect.transit.handlers.defaultHandlers=function(e){return e.set(null,new com.cognitect.transit.handlers.NilHandler),e.set(String,new com.cognitect.transit.handlers.StringHandler),e.set(Number,new com.cognitect.transit.handlers.NumberHandler),e.set(goog.math.Long,new com.cognitect.transit.handlers.IntegerHandler),e.set(Boolean,new com.cognitect.transit.handlers.BooleanHandler),e.set(Array,new com.cognitect.transit.handlers.ArrayHandler),e.set(Object,new com.cognitect.transit.handlers.MapHandler),e.set(Date,new com.cognitect.transit.handlers.DateHandler),e.set(com.cognitect.transit.types.UUID,new com.cognitect.transit.handlers.UUIDHandler),e.set(com.cognitect.transit.types.Keyword,new com.cognitect.transit.handlers.KeywordHandler),e.set(com.cognitect.transit.types.Symbol,new com.cognitect.transit.handlers.SymbolHandler),e.set(com.cognitect.transit.types.TaggedValue,new com.cognitect.transit.handlers.TaggedHandler),e.set(com.cognitect.transit.types.TransitSet,new com.cognitect.transit.handlers.TransitSetHandler),e.set(com.cognitect.transit.types.TransitArrayMap,new com.cognitect.transit.handlers.TransitArrayMapHandler),e.set(com.cognitect.transit.types.TransitMap,new com.cognitect.transit.handlers.TransitMapHandler),void 0!==goog.global.Buffer&&e.set(goog.global.Buffer,new com.cognitect.transit.handlers.BufferHandler),"undefined"!=typeof Uint8Array&&e.set(Uint8Array,new com.cognitect.transit.handlers.Uint8ArrayHandler),e},com.cognitect.transit.handlers.Handlers=function(){this.handlers={},com.cognitect.transit.handlers.defaultHandlers(this)},com.cognitect.transit.handlers.Handlers.prototype.get=function(e){return null!=(e="string"==typeof e?this.handlers[e]:this.handlers[com.cognitect.transit.handlers.typeTag(e)])?e:this.handlers.default},com.cognitect.transit.handlers.Handlers.prototype.get=com.cognitect.transit.handlers.Handlers.prototype.get,com.cognitect.transit.handlers.validTag=function(e){switch(e){case"null":case"string":case"boolean":case"number":case"array":case"map":return!1}return!0},com.cognitect.transit.handlers.Handlers.prototype.set=function(e,t){"string"==typeof e&&com.cognitect.transit.handlers.validTag(e)?this.handlers[e]=t:this.handlers[com.cognitect.transit.handlers.typeTag(e)]=t},com.cognitect.transit.impl={},com.cognitect.transit.impl.decoder={},com.cognitect.transit.impl.decoder.Tag=function(e){this.str=e},com.cognitect.transit.impl.decoder.tag=function(e){return new com.cognitect.transit.impl.decoder.Tag(e)}
2,com.cognitect.transit.impl.decoder.isTag=function(e){return e&&e instanceof com.cognitect.transit.impl.decoder.Tag},com.cognitect.transit.impl.decoder.isGroundHandler=function(e){switch(e){case"_":case"s":case"?":case"i":case"d":case"b":case"'":case"array":case"map":return!0}return!1},com.cognitect.transit.impl.decoder.Decoder=function(e){for(var t in this.options=e||{},this.handlers={},this.defaults.handlers)this.handlers[t]=this.defaults.handlers[t];for(t in this.options.handlers){if(com.cognitect.transit.impl.decoder.isGroundHandler(t))throw Error('Cannot override handler for ground type "'+t+'"');this.handlers[t]=this.options.handlers[t]}this.preferStrings=null!=this.options.preferStrings?this.options.preferStrings:this.defaults.preferStrings,this.preferBuffers=null!=this.options.preferBuffers?this.options.preferBuffers:this.defaults.preferBuffers,this.defaultHandler=this.options.defaultHandler||this.defaults.defaultHandler,this.mapBuilder=this.options.mapBuilder,this.arrayBuilder=this.options.arrayBuilder},com.cognitect.transit.impl.decoder.Decoder.prototype.defaults={handlers:{_:function(e,t){return com.cognitect.transit.types.nullValue()},"?":function(e,t){return com.cognitect.transit.types.boolValue(e)},b:function(e,t){return com.cognitect.transit.types.binary(e,t)},i:function(e,t){return com.cognitect.transit.types.intValue(e)},n:function(e,t){return com.cognitect.transit.types.bigInteger(e)},d:function(e,t){return com.cognitect.transit.types.floatValue(e)},f:function(e,t){return com.cognitect.transit.types.bigDecimalValue(e)},c:function(e,t){return com.cognitect.transit.types.charValue(e)},":":function(e,t){return com.cognitect.transit.types.keyword(e)},$:function(e,t){return com.cognitect.transit.types.symbol(e)},r:function(e,t){return com.cognitect.transit.types.uri(e)},z:function(e,t){return com.cognitect.transit.types.specialDouble(e)},"'":function(e,t){return e},m:function(e,t){return com.cognitect.transit.types.date(e)},t:function(e,t){return com.cognitect.transit.types.verboseDate(e)},u:function(e,t){return com.cognitect.transit.types.uuid(e)},set:function(e,t){return com.cognitect.transit.types.set(e)},list:function(e,t){return com.cognitect.transit.types.list(e)},link:function(e,t){return com.cognitect.transit.types.link(e)},cmap:function(e,t){return com.cognitect.transit.types.map(e,!1)}},defaultHandler:function(e,t){return com.cognitect.transit.types.taggedValue(e,t)},preferStrings:!0,preferBuffers:!0},com.cognitect.transit.impl.decoder.Decoder.prototype.decode=function(e,t,r,n){if(null==e)return null;switch(typeof e){case"string":return this.decodeString(e,t,r,n);case"object":return com.cognitect.transit.util.isArray(e)?"^ "===e[0]?this.decodeArrayHash(e,t,r,n):this.decodeArray(e,t,r,n):this.decodeHash(e,t,r,n)}return e},com.cognitect.transit.impl.decoder.Decoder.prototype.decode=com.cognitect.transit.impl.decoder.Decoder.prototype.decode,com.cognitect.transit.impl.decoder.Decoder.prototype.decodeString=function(e,t,r,n){return com.cognitect.transit.caching.isCacheable(e,r)?(e=this.parseString(e,t,!1),t&&t.write(e,r),e):com.cognitect.transit.caching.isCacheCode(e)?t.read(e,r):this.parseString(e,t,r)},com.cognitect.transit.impl.decoder.Decoder.prototype.decodeHash=function(e,t,r,n){var i=(r=com.cognitect.transit.util.objectKeys(e))[0];if(n=1==r.length?this.decode(i,t,!1,!1):null,com.cognitect.transit.impl.decoder.isTag(n))return e=e[i],null!=(r=this.handlers[n.str])?r(this.decode(e,t,!1,!0),this):com.cognitect.transit.types.taggedValue(n.str,this.decode(e,t,!1,!1));if(this.mapBuilder){if(r.length<2*com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD&&this.mapBuilder.fromArray){var o=[];for(i=0;i<r.length;i++)n=r[i],o.push(this.decode(n,t,!0,!1)),o.push(this.decode(e[n],t,!1,!1));return this.mapBuilder.fromArray(o,e)}for(o=this.mapBuilder.init(e),i=0;i<r.length;i++)n=r[i],o=this.mapBuilder.add(o,this.decode(n,t,!0,!1),this.decode(e[n],t,!1,!1),e);return this.mapBuilder.finalize(o,e)}for(o=[],i=0;i<r.length;i++)n=r[i],o.push(this.decode(n,t,!0,!1)),o.push(this.decode(e[n],t,!1,!1));return com.cognitect.transit.types.map(o,!1)},com.cognitect.transit.impl.decoder.Decoder.prototype.decodeArrayHash=function(e,t,r,n){if(this.mapBuilder){if(e.length<2*com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD+1&&this.mapBuilder.fromArray){for(n=[],r=1;r<e.length;r+=2)n.push(this.decode(e[r],t,!0,!1)),n.push(this.decode(e[r+1],t,!1,!1));return this.mapBuilder.fromArray(n,e)}for(n=this.mapBuilder.init(e),r=1;r<e.length;r+=2)n=this.mapBuilder.add(n,this.decode(e[r],t,!0,!1),this.decode(e[r+1],t,!1,!1),e);return this.mapBuilder.finalize(n,e)}for(n=[],r=1;r<e.length;r+=2)n.push(this.decode(e[r],t,!0,!1)),n.push(this.decode(e[r+1],t,!1,!1));return com.cognitect.transit.types.map(n,!1)},com.cognitect.transit.impl.decoder.Decoder.prototype.decodeArray=function(e,t,r,n){if(n){var i=[];for(n=0;n<e.length;n++)i.push(this.decode(e[n],t,r,!1));return i}if(i=t&&t.idx,2===e.length&&"string"==typeof e[0]&&(n=this.decode(e[0],t,!1,!1),com.cognitect.transit.impl.decoder.isTag(n)))return i=e[1],null!=(e=this.handlers[n.str])?i=e(this.decode(i,t,r,!0),this):com.cognitect.transit.types.taggedValue(n.str,this.decode(i,t,r,!1));if(t&&i!=t.idx&&(t.idx=i),this.arrayBuilder){if(32>=e.length&&this.arrayBuilder.fromArray){for(i=[],n=0;n<e.length;n++)i.push(this.decode(e[n],t,r,!1));return this.arrayBuilder.fromArray(i,e)}for(i=this.arrayBuilder.init(e),n=0;n<e.length;n++)i=this.arrayBuilder.add(i,this.decode(e[n],t,r,!1),e);return this.arrayBuilder.finalize(i,e)}for(i=[],n=0;n<e.length;n++)i.push(this.decode(e[n],t,r,!1));return i},com.cognitect.transit.impl.decoder.Decoder.prototype.parseString=function(e,t,r){return e.charAt(0)===com.cognitect.transit.delimiters.ESC?(t=e.charAt(1))===com.cognitect.transit.delimiters.ESC||t===com.cognitect.transit.delimiters.SUB||t===com.cognitect.transit.delimiters.RES?e.substring(1):t===com.cognitect.transit.delimiters.TAG?com.cognitect.transit.impl.decoder.tag(e.substring(2)):null==(r=this.handlers[t])?this.defaultHandler(t,e.substring(2)):r(e.substring(2),this):e},com.cognitect.transit.impl.decoder.decoder=function(e){return new com.cognitect.transit.impl.decoder.Decoder(e)},com.cognitect.transit.impl.reader={},com.cognitect.transit.impl.reader.JSONUnmarshaller=function(e){this.decoder=new com.cognitect.transit.impl.decoder.Decoder(e)},com.cognitect.transit.impl.reader.JSONUnmarshaller.prototype.unmarshal=function(e,t){return this.decoder.decode(JSON.parse(e),t)},com.cognitect.transit.impl.reader.Reader=function(e,t){this.unmarshaller=e,this.options=t||{},this.cache=this.options.cache?this.options.cache:new com.cognitect.transit.caching.ReadCache},com.cognitect.transit.impl.reader.Reader.prototype.read=function(e){return e=this.unmarshaller.unmarshal(e,this.cache),this.cache.clear(),e},com.cognitect.transit.impl.reader.Reader.prototype.read=com.cognitect.transit.impl.reader.Reader.prototype.read,com.cognitect.transit.impl.writer={},com.cognitect.transit.impl.writer.escape=function(e){if(0<e.length){var t=e.charAt(0);return t===com.cognitect.transit.delimiters.ESC||t===com.cognitect.transit.delimiters.SUB||t===com.cognitect.transit.delimiters.RES?com.cognitect.transit.delimiters.ESC+e:e}return e},com.cognitect.transit.impl.writer.JSONMarshaller=function(e){if(this.opts=e||{},this.preferStrings=null==this.opts.preferStrings||this.opts.preferStrings,this.objectBuilder=this.opts.objectBuilder||null,this.transform=this.opts.transform||null,this.handlers=new com.cognitect.transit.handlers.Handlers,e=this.opts.handlers){if(com.cognitect.transit.util.isArray(e)||!e.forEach)throw Error('transit writer "handlers" option must be a map');var t=this;e.forEach((function(e,r){if(void 0===r)throw Error("Cannot create handler for JavaScript undefined");t.handlers.set(r,e)}))}this.handlerForForeign=this.opts.handlerForForeign,this.unpack=this.opts.unpack||function(e){return!(!com.cognitect.transit.types.isArrayMap(e)||null!==e.backingMap)&&e._entries},this.verbose=this.opts&&this.opts.verbose||!1},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.handler=function(e){var t=this.handlers.get(com.cognitect.transit.handlers.constructor(e));return null!=t?t:(e=e&&e.transitTag)?this.handlers.get(e):null},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.registerHandler=function(e,t){this.handlers.set(e,t)},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitNil=function(e,t){return e?this.emitString(com.cognitect.transit.delimiters.ESC,"_","",e,t):null},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitString=function(e,t,r,n,i){return e=e+t+r,i?i.write(e,n):e},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBoolean=function(e,t,r){return t?this.emitString(com.cognitect.transit.delimiters.ESC,"?",e.toString()[0],t,r):e},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitInteger=function(e,t,r){return 1/0===e?this.emitString(com.cognitect.transit.delimiters.ESC,"z","INF",t,r):-1/0===e?this.emitString(com.cognitect.transit.delimiters.ESC,"z","-INF",t,r):isNaN(e)?this.emitString(com.cognitect.transit.delimiters.ESC,"z","N
2aN",t,r):t||"string"==typeof e||e instanceof goog.math.Long?this.emitString(com.cognitect.transit.delimiters.ESC,"i",e.toString(),t,r):e},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitDouble=function(e,t,r){return t?this.emitString(e.ESC,"d",e,t,r):e},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBinary=function(e,t,r){return this.emitString(com.cognitect.transit.delimiters.ESC,"b",e,t,r)},com.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitQuoted=function(e,t,r){return e.verbose?((e={})[this.emitString(com.cognitect.transit.delimiters.ESC_TAG,"'","",!0,r)]=com.cognitect.transit.impl.writer.marshal(this,t,!1,r),e):[this.emitString(com.cognitect.transit.delimiters.ESC_TAG,"'","",!0,r),com.cognitect.transit.impl.writer.marshal(this,t,!1,r)]},com.cognitect.transit.impl.writer.emitObjects=function(e,t,r){var n=[];if(com.cognitect.transit.util.isArray(t))for(var i=0;i<t.length;i++)n.push(com.cognitect.transit.impl.writer.marshal(e,t[i],!1,r));else t.forEach((function(t,i){n.push(com.cognitect.transit.impl.writer.marshal(e,t,!1,r))}));return n},com.cognitect.transit.impl.writer.emitArray=function(e,t,r,n){return com.cognitect.transit.impl.writer.emitObjects(e,t,n)},com.cognitect.transit.impl.writer.isStringableKey=function(e,t){if("string"!=typeof t){var r=e.handler(t);return r&&1===r.tag(t).length}return!0},com.cognitect.transit.impl.writer.stringableKeys=function(e,t){var r=e.unpack(t),n=!0;if(r){for(var i=0;i<r.length&&(n=com.cognitect.transit.impl.writer.isStringableKey(e,r[i]));i+=2);return n}if(t.keys&&(i=null,(r=t.keys()).next)){for(i=r.next();!i.done&&(n=com.cognitect.transit.impl.writer.isStringableKey(e,i.value));)i=r.next();return n}if(t.forEach)return t.forEach((function(t,r){n=n&&com.cognitect.transit.impl.writer.isStringableKey(e,r)})),n;throw Error("Cannot walk keys of object type "+com.cognitect.transit.handlers.constructor(t).name)},com.cognitect.transit.impl.writer.isForeignObject=function(e){if(e.constructor.transit$isObject)return!0;var t="Object"==(t=(t=(t=e.constructor.toString()).substr(9)).substr(0,t.indexOf("(")));return void 0!==Object.defineProperty?Object.defineProperty(e.constructor,"transit$isObject",{value:t,enumerable:!1}):e.constructor.transit$isObject=t,t},com.cognitect.transit.impl.writer.emitMap=function(e,t,r,n){var i=null,o=null,a=null;if(i=null,r=0,t.constructor===Object||null!=t.forEach||e.handlerForForeign&&com.cognitect.transit.impl.writer.isForeignObject(t)){if(e.verbose){if(null!=t.forEach)if(com.cognitect.transit.impl.writer.stringableKeys(e,t)){var s={};t.forEach((function(t,r){s[com.cognitect.transit.impl.writer.marshal(e,r,!0,!1)]=com.cognitect.transit.impl.writer.marshal(e,t,!1,n)}))}else{if(i=e.unpack(t),o=[],a=e.emitString(com.cognitect.transit.delimiters.ESC_TAG,"cmap","",!0,n),i)for(;r<i.length;r+=2)o.push(com.cognitect.transit.impl.writer.marshal(e,i[r],!1,!1)),o.push(com.cognitect.transit.impl.writer.marshal(e,i[r+1],!1,n));else t.forEach((function(t,r){o.push(com.cognitect.transit.impl.writer.marshal(e,r,!1,!1)),o.push(com.cognitect.transit.impl.writer.marshal(e,t,!1,n))}));(s={})[a]=o}else for(i=com.cognitect.transit.util.objectKeys(t),s={};r<i.length;r++)s[com.cognitect.transit.impl.writer.marshal(e,i[r],!0,!1)]=com.cognitect.transit.impl.writer.marshal(e,t[i[r]],!1,n);return s}if(null!=t.forEach){if(com.cognitect.transit.impl.writer.stringableKeys(e,t)){if(i=e.unpack(t),s=["^ "],i)for(;r<i.length;r+=2)s.push(com.cognitect.transit.impl.writer.marshal(e,i[r],!0,n)),s.push(com.cognitect.transit.impl.writer.marshal(e,i[r+1],!1,n));else t.forEach((function(t,r){s.push(com.cognitect.transit.impl.writer.marshal(e,r,!0,n)),s.push(com.cognitect.transit.impl.writer.marshal(e,t,!1,n))}));return s}if(i=e.unpack(t),o=[],a=e.emitString(com.cognitect.transit.delimiters.ESC_TAG,"cmap","",!0,n),i)for(;r<i.length;r+=2)o.push(com.cognitect.transit.impl.writer.marshal(e,i[r],!1,n)),o.push(com.cognitect.transit.impl.writer.marshal(e,i[r+1],!1,n));else t.forEach((function(t,r){o.push(com.cognitect.transit.impl.writer.marshal(e,r,!1,n)),o.push(com.cognitect.transit.impl.writer.marshal(e,t,!1,n))}));return[a,o]}for(s=["^ "],i=com.cognitect.transit.util.objectKeys(t);r<i.length;r++)s.push(com.cognitect.transit.impl.writer.marshal(e,i[r],!0,n)),s.push(com.cognitect.transit.impl.writer.marshal(e,t[i[r]],!1,n));return s}if(null!=e.objectBuilder)return e.objectBuilder(t,(function(t){return com.cognitect.transit.impl.writer.marshal(e,t,!0,n)}),(function(t){return com.cognitect.transit.impl.writer.marshal(e,t,!1,n)}));throw r=com.cognitect.transit.handlers.constructor(t).name,(i=Error("Cannot write "+r)).data={obj:t,type:r},i},com.cognitect.transit.impl.writer.emitTaggedMap=function(e,t,r,n,i){return e.verbose?((n={})[e.emitString(com.cognitect.transit.delimiters.ESC_TAG,t,"",!0,i)]=com.cognitect.transit.impl.writer.marshal(e,r,!1,i),n):[e.emitString(com.cognitect.transit.delimiters.ESC_TAG,t,"",!0,i),com.cognitect.transit.impl.writer.marshal(e,r,!1,i)]},com.cognitect.transit.impl.writer.emitEncoded=function(e,t,r,n,i,o,a){if(1===r.length){if("string"==typeof n)return e.emitString(com.cognitect.transit.delimiters.ESC,r,n,o,a);if(o||e.preferStrings){if((n=e.verbose&&t.getVerboseHandler())?(r=n.tag(i),n=n.stringRep(i,n)):n=t.stringRep(i,t),null!==n)return e.emitString(com.cognitect.transit.delimiters.ESC,r,n,o,a);throw(e=Error('Tag "'+r+'" cannot be encoded as string')).data={tag:r,rep:n,obj:i},e}}return com.cognitect.transit.impl.writer.emitTaggedMap(e,r,n,o,a)},com.cognitect.transit.impl.writer.marshal=function(e,t,r,n){null!==e.transform&&(t=e.transform(t));var i=e.handler(t)||(e.handlerForForeign?e.handlerForForeign(t,e.handlers):null),o=i?i.tag(t):null,a=i?i.rep(t):null;if(null==i||null==o)throw e=com.cognitect.transit.handlers.constructor(t).name,(r=Error("Cannot write "+e)).data={obj:t,type:e},r;switch(o){case"_":return e.emitNil(r,n);case"s":return e.emitString("","",com.cognitect.transit.impl.writer.escape(a),r,n);
2case"?":return e.emitBoolean(a,r,n);case"i":return e.emitInteger(a,r,n);case"d":return e.emitDouble(a,r,n);case"b":return e.emitBinary(a,r,n);case"'":return e.emitQuoted(e,a,n);case"array":return com.cognitect.transit.impl.writer.emitArray(e,a,r,n);case"map":return com.cognitect.transit.impl.writer.emitMap(e,a,r,n);default:return com.cognitect.transit.impl.writer.emitEncoded(e,i,o,a,t,r,n)}},com.cognitect.transit.impl.writer.maybeQuoted=function(e,t){if(null!=(r=e.handler(t)||(e.handlerForForeign?e.handlerForForeign(t,e.handlers):null)))return 1===r.tag(t).length?com.cognitect.transit.types.quoted(t):t;var r=com.cognitect.transit.handlers.constructor(t).name,n=Error("Cannot write "+r);throw n.data={obj:t,type:r},n},com.cognitect.transit.impl.writer.marshalTop=function(e,t,r,n){return JSON.stringify(com.cognitect.transit.impl.writer.marshal(e,com.cognitect.transit.impl.writer.maybeQuoted(e,t),r,n))},com.cognitect.transit.impl.writer.Writer=function(e,t){this._marshaller=e,this.options=t||{},this.cache=!1===this.options.cache?null:this.options.cache?this.options.cache:new com.cognitect.transit.caching.WriteCache},com.cognitect.transit.impl.writer.Writer.prototype.marshaller=function(){return this._marshaller},com.cognitect.transit.impl.writer.Writer.prototype.marshaller=com.cognitect.transit.impl.writer.Writer.prototype.marshaller,com.cognitect.transit.impl.writer.Writer.prototype.write=function(e,t){var r=t||{},n=r.asMapKey||!1,i=!this._marshaller.verbose&&this.cache;return r=!1===r.marshalTop?com.cognitect.transit.impl.writer.marshal(this._marshaller,e,n,i):com.cognitect.transit.impl.writer.marshalTop(this._marshaller,e,n,i),null!=this.cache&&this.cache.clear(),r},com.cognitect.transit.impl.writer.Writer.prototype.write=com.cognitect.transit.impl.writer.Writer.prototype.write,com.cognitect.transit.impl.writer.Writer.prototype.register=function(e,t){this._marshaller.registerHandler(e,t)},com.cognitect.transit.impl.writer.Writer.prototype.register=com.cognitect.transit.impl.writer.Writer.prototype.register;var TRANSIT_DEV=!0,TRANSIT_NODE_TARGET=!0,TRANSIT_BROWSER_TARGET=!1,TRANSIT_BROWSER_AMD_TARGET=!1;com.cognitect.transit.reader=function(e,t){if("json"===e||"json-verbose"===e||null==e){var r=new com.cognitect.transit.impl.reader.JSONUnmarshaller(t);return new com.cognitect.transit.impl.reader.Reader(r,t)}throw Error("Cannot create reader of type "+e)},com.cognitect.transit.writer=function(e,t){if("json"===e||"json-verbose"===e||null==e){"json-verbose"===e&&(null==t&&(t={}),t.verbose=!0);var r=new com.cognitect.transit.impl.writer.JSONMarshaller(t);return new com.cognitect.transit.impl.writer.Writer(r,t)}throw(r=Error('Type must be "json"')).data={type:e},r},com.cognitect.transit.makeWriteHandler=function(e){var t=function(){};return t.prototype.tag=e.tag,t.prototype.rep=e.rep,t.prototype.stringRep=e.stringRep,t.prototype.getVerboseHandler=e.getVerboseHandler,new t},com.cognitect.transit.makeBuilder=function(e){var t=function(){};return t.prototype.init=e.init,t.prototype.add=e.add,t.prototype.finalize=e.finalize,t.prototype.fromArray=e.fromArray,new t}
2,com.cognitect.transit.date=com.cognitect.transit.types.date,com.cognitect.transit.integer=com.cognitect.transit.types.intValue,com.cognitect.transit.isInteger=com.cognitect.transit.types.isInteger,com.cognitect.transit.uuid=com.cognitect.transit.types.uuid,com.cognitect.transit.isUUID=com.cognitect.transit.types.isUUID,com.cognitect.transit.bigInt=com.cognitect.transit.types.bigInteger,com.cognitect.transit.isBigInt=com.cognitect.transit.types.isBigInteger,com.cognitect.transit.bigDec=com.cognitect.transit.types.bigDecimalValue,com.cognitect.transit.isBigDec=com.cognitect.transit.types.isBigDecimal,com.cognitect.transit.keyword=com.cognitect.transit.types.keyword,com.cognitect.transit.isKeyword=com.cognitect.transit.types.isKeyword,com.cognitect.transit.symbol=com.cognitect.transit.types.symbol,com.cognitect.transit.isSymbol=com.cognitect.transit.types.isSymbol,com.cognitect.transit.binary=com.cognitect.transit.types.binary,com.cognitect.transit.isBinary=com.cognitect.transit.types.isBinary,com.cognitect.transit.uri=com.cognitect.transit.types.uri,com.cognitect.transit.isURI=com.cognitect.transit.types.isURI,com.cognitect.transit.map=com.cognitect.transit.types.map,com.cognitect.transit.isMap=com.cognitect.transit.types.isMap,com.cognitect.transit.set=com.cognitect.transit.types.set,com.cognitect.transit.isSet=com.cognitect.transit.types.isSet,com.cognitect.transit.list=com.cognitect.transit.types.list,com.cognitect.transit.isList=com.cognitect.transit.types.isList,com.cognitect.transit.quoted=com.cognitect.transit.types.quoted,com.cognitect.transit.isQuoted=com.cognitect.transit.types.isQuoted,com.cognitect.transit.tagged=com.cognitect.transit.types.taggedValue,com.cognitect.transit.isTaggedValue=com.cognitect.transit.types.isTaggedValue,com.cognitect.transit.link=com.cognitect.transit.types.link,com.cognitect.transit.isLink=com.cognitect.transit.types.isLink,com.cognitect.transit.hash=com.cognitect.transit.eq.hashCode,com.cognitect.transit.hashMapLike=com.cognitect.transit.eq.hashMapLike,com.cognitect.transit.hashArrayLike=com.cognitect.transit.eq.hashArrayLike,com.cognitect.transit.equals=com.cognitect.transit.eq.equals,com.cognitect.transit.extendToEQ=com.cognitect.transit.eq.extendToEQ,com.cognitect.transit.mapToObject=function(e){var t={};return e.forEach((function(e,r){if("string"!=typeof r)throw Error("Cannot convert map with non-string keys");t[r]=e})),t},com.cognitect.transit.objectToMap=function(e){var t,r=com.cognitect.transit.map();for(t in e)e.hasOwnProperty(t)&&r.set(t,e[t]);return r},com.cognitect.transit.decoder=com.cognitect.transit.impl.decoder.decoder,com.cognitect.transit.readCache=com.cognitect.transit.caching.readCache,com.cognitect.transit.writeCache=com.cognitect.transit.caching.writeCache,com.cognitect.transit.UUIDfromString=com.cognitect.transit.types.UUIDfromString,com.cognitect.transit.randomUUID=com.cognitect.transit.util.randomUUID,com.cognitect.transit.stringableKeys=com.cognitect.transit.impl.writer.stringableKeys,TRANSIT_BROWSER_TARGET&&(goog.exportSymbol("transit.reader",com.cognitect.transit.reader),goog.exportSymbol("transit.writer",com.cognitect.transit.writer),goog.exportSymbol("transit.makeBuilder",com.cognitect.transit.makeBuilder),goog.exportSymbol("transit.makeWriteHandler",com.cognitect.transit.makeWriteHandler),goog.exportSymbol("transit.date",com.cognitect.transit.types.date),goog.exportSymbol("transit.integer",com.cognitect.transit.types.intValue),goog.exportSymbol("transit.isInteger",com.cognitect.transit.types.isInteger),goog.exportSymbol("transit.uuid",com.cognitect.transit.types.uuid),goog.exportSymbol("transit.isUUID",com.cognitect.transit.types.isUUID),goog.exportSymbol("transit.bigInt",com.cognitect.transit.types.bigInteger),goog.exportSymbol("transit.isBigInt",com.cognitect.transit.types.isBigInteger),goog.exportSymbol("transit.bigDec",com.cognitect.transit.types.bigDecimalValue),goog.exportSymbol("transit.isBigDec",com.cognitect.transit.types.isBigDecimal),goog.exportSymbol("transit.keyword",com.cognitect.transit.types.keyword),goog.exportSymbol("transit.isKeyword",com.cognitect.transit.types.isKeyword),goog.exportSymbol("transit.symbol",com.cognitect.transit.types.symbol),goog.exportSymbol("transit.isSymbol",com.cognitect.transit.types.isSymbol),goog.exportSymbol("transit.binary",com.cognitect.transit.types.binary),goog.exportSymbol("transit.isBinary",com.cognitect.transit.types.isBinary),goog.exportSymbol("transit.uri",com.cognitect.transit.types.uri),goog.exportSymbol("transit.isURI",com.cognitect.transit.types.isURI),goog.exportSymbol("transit.map",com.cognitect.transit.types.map),goog.exportSymbol("transit.isMap",com.cognitect.transit.types.isMap),goog.exportSymbol("transit.set",com.cognitect.transit.types.set),goog.exportSymbol("transit.isSet",com.cognitect.transit.types.isSet),goog.exportSymbol("transit.list",com.cognitect.transit.types.list),goog.exportSymbol("transit.isList",com.cognitect.transit.types.isList),goog.exportSymbol("transit.quoted",com.cognitect.transit.types.quoted),goog.exportSymbol("transit.isQuoted",com.cognitect.transit.types.isQuoted),goog.exportSymbol("transit.tagged",com.cognitect.transit.types.taggedValue),goog.exportSymbol("transit.isTaggedValue",com.cognitect.transit.types.isTaggedValue),goog.exportSymbol("transit.link",com.cognitect.transit.types.link),goog.exportSymbol("transit.isLink",com.cognitect.transit.types.isLink),goog.exportSymbol("transit.hash",com.cognitect.transit.eq.hashCode),goog.exportSymbol("transit.hashMapLike",com.cognitect.transit.eq.hashMapLike),goog.exportSymbol("transit.hashArrayLike",com.cognitect.transit.eq.hashArrayLike),goog.exportSymbol("transit.equals",com.cognitect.transit.eq.equals),goog.exportSymbol("transit.extendToEQ",com.cognitect.transit.eq.extendToEQ),goog.exportSymbol("transit.mapToObject",com.cognitect.transit.mapToObject),goog.exportSymbol("transit.objectToMap",com.cognitect.transit.objectToMap),goog.exportSymbol("transit.decoder",com.cognitect.transit.impl.decoder.decoder),goog.exportSymbol("transit.UUIDfromString",com.cognitect.transit.types.UUIDfromString),goog.exportSymbol("transit.randomUUID",com.cognitect.transit.util.randomUUID),goog.exportSymbol("transit.stringableKeys",com.cognitect.transit.impl.writer.stringableKeys),goog.exportSymbol("transit.readCache",com.cognitect.transit.caching.readCache),goog.exportSymbol("transit.writeCache",com.cognitect.transit.caching.writeCache)),TRANSIT_NODE_TARGET&&(module.exports={reader:com.cognitect.transit.reader,writer:com.cognitect.transit.writer,makeBuilder:com.cognitect.transit.makeBuilder,makeWriteHandler:com.cognitect.transit.makeWriteHandler,date:com.cognitect.transit.types.date,integer:com.cognitect.transit.types.intValue,isInteger:com.cognitect.transit.types.isInteger,uuid:com.cognitect.transit.types.uuid,isUUID:com.cognitect.transit.types.isUUID,bigInt:com.cognitect.transit.types.bigInteger,isBigInt:com.cognitect.transit.types.isBigInteger,bigDec:com.cognitect.transit.types.bigDecimalValue,isBigDec:com.cognitect.transit.types.isBigDecimal,keyword:com.cognitect.transit.types.keyword,isKeyword:com.cognitect.transit.types.isKeyword,symbol:com.cognitect.transit.types.symbol,isSymbol:com.cognitect.transit.types.isSymbol,binary:com.cognitect.transit.types.binary,isBinary:com.cognitect.transit.types.isBinary,uri:com.cognitect.transit.types.uri,isURI:com.cognitect.transit.types.isURI,map:com.cognitect.transit.types.map,isMap:com.cognitect.transit.types.isMap,set:com.cognitect.transit.types.set,isSet:com.cognitect.transit.types.isSet,list:com.cognitect.transit.types.list,isList:com.cognitect.transit.types.isList,quoted:com.cognitect.transit.types.quoted,isQuoted:com.cognitect.transit.types.isQuoted,tagged:com.cognitect.transit.types.taggedValue,isTaggedValue:com.cognitect.transit.types.isTaggedValue,link:com.cognitect.transit.types.link,isLink:com.cognitect.transit.types.isLink,hash:com.cognitect.transit.eq.hashCode,hashArrayLike:com.cognitect.transit.eq.hashArrayLike,hashMapLike:com.cognitect.transit.eq.hashMapLike,equals:com.cognitect.transit.eq.equals,extendToEQ:com.cognitect.transit.eq.extendToEQ,mapToObject:com.cognitect.transit.mapToObject,objectToMap:com.cognitect.transit.objectToMap,decoder:com.cognitect.transit.impl.decoder.decoder,UUIDfromString:com.cognitect.transit.types.UUIDfromString,randomUUID:com.cognitect.transit.util.randomUUID,stringableKeys:com.cognitect.transit.impl.writer.stringableKeys,readCache:com.cognitect.transit.caching.readCache,writeCache:com.cognitect.transit.caching.writeCache})}).call(this,__nested_webpack_require_15608__(22))},function(e,t,r){var n=r(79),i=r(84);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return e}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return s}));var n=r(78),i="undefined"!=typeof window&&void 0!==window.document,o=void 0!==e&&void 0!==e.versions?e.versions.node:"",a="sharetribe-flex-sdk-js/".concat(n.a);i?a=null:i||""===o||(a="".concat(a," (node/").concat(o,")"));var s=a}).call(this,r(185))},function(e,t,r){var n=r(177)(r(178));e.exports=n},function(e,t,r){var n=r(16),i=r(80),o=r(81),a=n?n.toStringTag:void 0;
vendor: 12,372 bytes, line 2
2e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,r){var n=r(183),i=r(184);e.exports=function(e,t,r){return null==e?e:n(e,t,i(r))}},function(e,t,r){var n=r(5).Symbol;e.exports=n},function(e,t,r){var n=r(49),i=r(39);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},function(e,t,r){var n=r(31);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,r){var n=r(14),i=r(159),o=r(9),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},function(e,t,r){var n=r(44),i=r(24),o=r(174),a=r(3);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},,function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(87),i=r(93),o=r(17);e.exports=function(e){return o(e)?n(e):i(e)}},function(e,t,r){var n=r(96),i=r(140),o=r(11),a=r(3),s=r(146);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},function(e,t,r){var n=r(98),i=r(99),o=r(100),a=r(101),s=r(102);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(40);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t,r){var n=r(8)(Object,"create");e.exports=n},function(e,t,r){var n=r(116);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},function(e,t,r){var n=r(30),i=r(18);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},function(e,t,r){var n=r(3),i=r(43),o=r(141),a=r(66);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,r){var n=r(14),i=r(9);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},function(e,t,r){var n=r(47),i=r(52),o=r(24);e.exports=function(e,t){var r={};return t=o(t,3),i(e,(function(e,i,o){n(r,i,t(e,i,o))})),r}},function(e,t){e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i}},function(e,t,r){"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";t.a=null},function(e,t,r){var n,i,o;o=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(n.read||n)(l,c)||t(l),r)try{l=JSON.parse(l)}catch(e){}if(i[c]=l,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}((function(){}))},void 0===(i="function"==typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=i),e.exports=o()},function(e,t,r){var n=r(89),i=r(9),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(8)(r(5),"Map");e.exports=n},function(e,t,r){var n=r(108),i=r(115),o=r(117),a=r(118),s=r(119);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(3),i=r(31),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},function(e,t,r){var n=r(149),i=r(30),o=r(38),a=r(10),s=r(18);e.exports=function(e,t,r,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var p=s(t[c]),f=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];void 0===(f=l?l(m,p,h):void 0)&&(f=a(m)?m:o(t[c+1])?[]:{})}n(h,p,f),h=h[p]}return e}},function(e,t,r){var n=r(153);e.exports=function(e){return null!=e&&e.length?n(e,1):[]}},function(e,t,r){var n=r(48);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},function(e,t,r){var n=r(8),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,r){var n=r(14),i=r(10);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(this,r(22))},function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,r){var n=r(85),i=r(23);e.exports=function(e,t){return e&&n(e,t,i)}},function(e,t,r){(function(e){var n=r(5),i=r(90),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,r(54)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(91),i=r(56),o=r(92),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},function(e,t,r){var n=r(25),i=r(103),o=r(104),a=r(105),s=r(106),l=r(107);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t,r){var n=r(120),i=r(9);e.exports=function e(t,r,o,a,s){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!=t&&r!=r:n(t,r,o,a,e,s))}},function(e,t,r){var n=r(61),i=r(123),o=r(62);e.exports=function(e,t,r,a,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var _=e[f],y=t[f];if(a)var v=c?a(y,_,f,t,e,l):a(_,y,f,e,t,l);if(void 0!==v){if(v)continue;m=!1;break}if(g){if(!i(t,(function(e,t){if(!o(g,t)&&(_===e||s(_,e,r,a,l)))return g.push(t)}))){m=!1;break}}else if(_!==y&&!s(_,y,r,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,r){var n=r(42),i=r(121),o=r(122);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},function(e,t,r){var n=r(10);e.exports=function(e){return e==e&&!n(e)}},function(e,t){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},function(e,t,r){var n=r(67);e.exports=function(e){return null==e?"":n(e)}},function(e,t,r){var n=r(16),i=r(44),o=r(3),a=r(31),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(e,t,r){var n=r(144),i=r(145);e.exports=function(e,t){return null!=e&&i(e,t,n)}},function(e,t,r){var n=r(155),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),n(e,this,c)}}},function(e,t,r){var n=r(156),i=r(158)(n);e.exports=i},function(e,t,r){var n=r(72),i=r(162),o=r(163);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},function(e,t){e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t){var r=/\s/;e.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},function(e,t,r){var n=r(150),i=r(152)((function(e,t){return null==e?{}:n(e,t)}));e.exports=i},function(e,t,r){var n=r(160),i=r(165),o=r(166),a=i((function(e,t){return o(e)?n(e,t):[]}));e.exports=a},function(e,t,r){var n=r(67),i=r(167),o=r(169),a=r(170),s=r(66),l=r(73);e.exports=function(e,t,r){if((e=s(e))&&(r||void 0===t))return e.slice(0,l(e)+1);if(!e||!(t=n(t)))return e;var c=a(e),u=o(c,a(t))+1;return i(c,0,u).join("")}},function(e,t){e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}},function(e,t,r){"use strict";t.a="1.21.1"},function(e,t,r){var n=r(49),i=r(82),o=r(10),a=r(51),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:s).test(a(e))}},function(e,t,r){var n=r(16),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},function(e,t,r){var n,i=r(83),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},function(e,t,r){var n=r(5)["__core-js_shared__"];e.exports=n},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,r){var n=r(86)();e.exports=n},function(e,t){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}},function(e,t,r){var n=r(88),i=r(37),o=r(3),a=r(53),s=r(38),l=r(55),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),p=r||u||d||h,f=p?n(e.length,String):[],m=f.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},function(e,t,r){var n=r(14),i=r(9);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},function(e,t){e.exports=function(){return!1}}
vendor: 4,937 bytes, line 2
2,function(e,t,r){var n=r(14),i=r(39),o=r(9),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},function(e,t,r){(function(e){var n=r(50),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,r(54)(e))},function(e,t,r){var n=r(94),i=r(95),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t,r){var n=r(57)(Object.keys,Object);e.exports=n},function(e,t,r){var n=r(97),i=r(139),o=r(65);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},function(e,t,r){var n=r(58),i=r(59);e.exports=function(e,t,r,o){var a=r.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=r[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=r[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(o)var f=o(d,h,u,e,t,p);if(!(void 0===f?i(h,d,3,o,p):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,r){var n=r(26),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},function(e,t,r){var n=r(26);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},function(e,t,r){var n=r(26);e.exports=function(e){return n(this.__data__,e)>-1}},function(e,t,r){var n=r(26);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(25);e.exports=function(){this.__data__=new n,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,r){var n=r(25),i=r(41),o=r(42);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},function(e,t,r){var n=r(109),i=r(25),o=r(41);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(110),i=r(111),o=r(112),a=r(113),s=r(114);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,r){var n=r(27);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,r){var n=r(27),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},function(e,t,r){var n=r(27),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},function(e,t,r){var n=r(27);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,r){var n=r(28);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,r){var n=r(28);e.exports=function(e){return n(this,e).get(e)}},function(e,t,r){var n=r(28);e.exports=function(e){return n(this,e).has(e)}},function(e,t,r){var n=r(28);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},function(e,t,r){var n=r(58),i=r(60),o=r(124),a=r(128),s=r(134),l=r(3),c=r(53),u=r(55),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,_){var y=l(e),v=l(t),b=y?h:s(e),x=v?h:s(t),w=(b=b==d?p:b)==p,A=(x=x==d?p:x)==p,S=b==x;
vendor: 4,757 bytes, line 2
2if(S&&c(e)){if(!c(t))return!1;y=!0,w=!1}if(S&&!w)return _||(_=new n),y||u(e)?i(e,t,r,m,g,_):o(e,t,b,r,m,g,_);if(!(1&r)){var E=w&&f.call(e,"__wrapped__"),T=A&&f.call(t,"__wrapped__");if(E||T){var P=E?e.value():e,C=T?t.value():t;return _||(_=new n),g(P,C,r,m,_)}}return!!S&&(_||(_=new n),a(e,t,r,m,g,_))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},function(e,t,r){var n=r(16),i=r(125),o=r(40),a=r(60),s=r(126),l=r(127),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var f=1&n;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=a(p(e),p(t),n,c,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t,r){var n=r(5).Uint8Array;e.exports=n},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},function(e,t,r){var n=r(129),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var p=s.get(e),f=s.get(t);if(p&&f)return p==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var _=e[h=c[d]],y=t[h];if(o)var v=l?o(y,_,h,t,e,s):o(_,y,h,e,t,s);if(!(void 0===v?_===y||a(_,y,r,o,s):v)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,r){var n=r(130),i=r(131),o=r(23);e.exports=function(e){return n(e,o,i)}},function(e,t,r){var n=r(63),i=r(3);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},function(e,t,r){var n=r(132),i=r(133),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,r){var n=r(135),i=r(41),o=r(136),a=r(137),s=r(138),l=r(14),c=r(51),u="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=c(n),g=c(i),_=c(o),y=c(a),v=c(s),b=l;(n&&b(new n(new ArrayBuffer(1)))!=f||i&&b(new i)!=u||o&&b(o.resolve())!=d||a&&b(new a)!=h||s&&b(new s)!=p)&&(b=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return f;case g:return u;case _:return d;case y:return h;case v:return p}return t}),e.exports=b},function(e,t,r){var n=r(8)(r(5),"DataView");e.exports=n},function(e,t,r){var n=r(8)(r(5),"Promise");e.exports=n},function(e,t,r){var n=r(8)(r(5),"Set");e.exports=n},function(e,t,r){var n=r(8)(r(5),"WeakMap");e.exports=n},function(e,t,r){var n=r(64),i=r(23);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},function(e,t,r){var n=r(59),i=r(2),o=r(68),a=r(43),s=r(64),l=r(65),c=r(18);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},function(e,t,r){var n=r(142),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)})),t}));e.exports=a},function(e,t,r){var n=r(143);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},function(e,t,r){var n=r(42);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}
vendor: 9,176 bytes, line 2
2i.Cache=n,e.exports=i},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,r){var n=r(30),i=r(37),o=r(3),a=r(38),s=r(39),l=r(18);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},function(e,t,r){var n=r(147),i=r(148),o=r(43),a=r(18);e.exports=function(e){return o(e)?n(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,r){var n=r(29);e.exports=function(e){return function(t){return n(t,e)}}},function(e,t,r){var n=r(47),i=r(40),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},function(e,t,r){var n=r(151),i=r(68);e.exports=function(e,t){return n(e,t,(function(t,r){return i(e,r)}))}},function(e,t,r){var n=r(29),i=r(45),o=r(30);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=n(e,c);r(u,c)&&i(l,o(c,e),u)}return l}},function(e,t,r){var n=r(46),i=r(69),o=r(70);e.exports=function(e){return o(i(e,void 0,n),e+"")}},function(e,t,r){var n=r(63),i=r(154);e.exports=function e(t,r,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,a,s):n(s,u):a||(s[s.length]=u)}return s}},function(e,t,r){var n=r(16),i=r(37),o=r(3),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},function(e,t,r){var n=r(157),i=r(48),o=r(11),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var r=Date.now;e.exports=function(e){var t=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,r){var n=r(57)(Object.getPrototypeOf,Object);e.exports=n},function(e,t,r){var n=r(61),i=r(161),o=r(164),a=r(44),s=r(56),l=r(62);e.exports=function(e,t,r,c){var u=-1,d=i,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;r&&(t=a(t,s(r))),c?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new n(t));e:for(;++u<p;){var g=e[u],_=null==r?g:r(g);if(g=c||0!==g?g:0,h&&_==_){for(var y=m;y--;)if(t[y]===_)continue e;f.push(g)}else d(t,_,c)||f.push(g)}return f}},function(e,t,r){var n=r(71);e.exports=function(e,t){return!(null==e||!e.length)&&n(e,t,0)>-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},function(e,t){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},function(e,t,r){var n=r(11),i=r(69),o=r(70);e.exports=function(e,t){return o(i(e,t,n),e+"")}},function(e,t,r){var n=r(17),i=r(9);e.exports=function(e){return i(e)&&n(e)}},function(e,t,r){var n=r(168);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},function(e,t){e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},function(e,t,r){var n=r(71);e.exports=function(e,t){for(var r=e.length;r--&&n(t,e[r],0)>-1;);return r}},function(e,t,r){var n=r(171),i=r(172),o=r(173);e.exports=function(e){return i(e)?o(e):n(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return r.test(e)}},function(e,t){var r="\\ud800-\\udfff",n="["+r+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+r+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+i+"|"+o+")?",u="[\\ufe0e\\ufe0f]?",d=u+c+"(?:\\u200d(?:"+[a,s,l].join("|")+")"+u+c+")*",h="(?:"+[a+i+"?",i,s,l,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+h+d,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,r){var n=r(175),i=r(17);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}},function(e,t,r){var n=r(52),i=r(176)(n);e.exports=i},function(e,t,r){var n=r(17);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,a=t?o:-1,s=Object(r);(t?a--:++a<o)&&!1!==i(s[a],a,s););return r}}},function(e,t,r){var n=r(24),i=r(17),o=r(23);e.exports=function(e){return function(t,r,a){var s=Object(t);if(!i(t)){var l=n(r,3);t=o(t),r=function(e){return l(s[e],e,s)}}var c=e(t,r,a);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,r){var n=r(72),i=r(24),o=r(179),a=Math.max;e.exports=function(e,t,r){var s=null==e?0:e.length;if(!s)return-1;var l=null==r?0:o(r);return l<0&&(l=a(s+l,0)),n(e,i(t,3),l)}},function(e,t,r){var n=r(180);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},function(e,t,r){var n=r(181),i=1/0;e.exports=function(e){return e?(e=n(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,r){var n=r(182),i=r(10),o=r(31),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}},function(e,t,r){var n=r(73),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},function(e,t,r){var n=r(29),i=r(45);e.exports=function(e,t,r,o){return i(e,t,r(n(e,t)),o)}},function(e,t,r){var n=r(11);e.exports=function(e){return"function"==typeof e?e:n}},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";(function(e){var n=r(187),i=r(188),o=r(189);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(t,r),i=(e=s(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|p(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?
vendor: 17,273 bytes, line 2
2s(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function _(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function b(e,t,r,n){return q(U(t,e.length-r),e,r,n)}function x(e,t,r,n){return q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return x(e,t,r,n)}function A(e,t,r,n){return q(V(t),e,r,n)}function S(e,t,r,n){return q(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return c(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return u(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),u=e.slice(t,r),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=B(e[o]);return i}function k(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,n,o){return o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;r=new l(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||O(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);R(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a|0)-s&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=l.isBuffer(e)?e:U(new l(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>
vendor: 4,647 bytes, line 2
2-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(22))},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=l(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(c(e,s,s+a>l?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=c}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+p]=255&a,p+=f,a/=256,c-=8);e[r+p-f]|=128*m}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";r.r(t),r.d(t,"createInstance",(function(){return xo})),r.d(t,"createMultitenantInstance",(function(){return wo})),r.d(t,"types",(function(){return n})),r.d(t,"tokenStore",(function(){return Ao})),r.d(t,"transit",(function(){return So})),r.d(t,"util",(function(){return Eo}));var n={};r.r(n),r.d(n,"UUID",(function(){return j})),r.d(n,"LatLng",(function(){return B})),r.d(n,"LatLngBounds",(function(){return U})),r.d(n,"Money",(function(){return V})),r.d(n,"BigDecimal",(function(){return q})),r.d(n,"toType",(function(){return H})),r.d(n,"replacer",(function(){return G})),r.d(n,"reviver",(function(){return W}));var i=r(32),o=r.n(i),a=r(4),s=r.n(a),l=r(2),c=r.n(l),u=r(74),d=r.n(u),h=r(19),p=r.n(h),f=r(75),m=r.n(f),g=r(76),_=r.n(g);function y(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function v(e){return A(e)||b(e)||w()}function b(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function x(e,t){return A(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||w()}
2function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function A(e){if(Array.isArray(e))return e}var S=function(e){return null==e?[]:Object.entries(e)},E=function(e){return _()(e,"/")},T=function(e){return m()(e.split("/"),"").map((function(e){return e.replace(/_\w/g,(function(e){return e[1].toUpperCase()}))}))},P=function(e){return S(e).reduce((function(e,t){var r=x(t,2),n=r[0],i=r[1];return e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(i))),e}),[]).join("&")},C=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return"";if(1===t.length){var n=t[0];if(1===n.length)return"";var i=n.slice(0,n.length-1).join("/");return"".concat(i,"/")}var o=t.length,a=t[0],s=t[o-1],l=v(a),c=l[0],u=l.slice(1),d=v(s),h=d[0],p=d.slice(1);return u.length>0&&p.length>0&&c===h?e([u,p],"".concat(r).concat(c,"/")):r},I=function(e){var t=y(new Set(e)).map((function(e){return"/"===e[0]?e.slice(1):e})).sort(),r=y(t).map((function(e){return e.split("/")})),n=C(r),i=n.length;return{pathPrefix:n,relativePaths:t.map((function(e){return e.substring(i)}))}},M="undefined"!=typeof console,k=[{path:"marketplace/show",method:"get"},{path:"users/show",method:"get"},{path:"current_user/show",method:"get"},{path:"current_user/create",method:"post"},{path:"current_user/create_with_idp",method:"post"},{path:"current_user/update_profile",method:"post"},{path:"current_user/change_email",method:"post"},{path:"current_user/change_password",method:"post"},{path:"current_user/delete",method:"post"},{path:"current_user/verify_email",method:"post"},{path:"current_user/send_verification_email",method:"post"},{path:"current_user/create_stripe_account",method:"post"},{path:"current_user/update_stripe_account",method:"post"},{path:"current_user/delete_stripe_account",method:"post"},{path:"password_reset/request",method:"post"},{path:"password_reset/reset",method:"post"},{path:"listings/show",method:"get"},{path:"own_listings/show",method:"get"},{path:"listings/query",method:"get"},{path:"own_listings/query",method:"get"},{path:"listings/search",method:"get"},{path:"own_listings/create",method:"post"},{path:"own_listings/create_draft",method:"post"},{path:"own_listings/publish_draft",method:"post"},{path:"own_listings/discard_draft",method:"post"},{path:"own_listings/update",method:"post"},{path:"own_listings/open",method:"post"},{path:"own_listings/close",method:"post"},{path:"own_listings/add_image",method:"post"},{path:"availability_exceptions/create",method:"post"},{path:"availability_exceptions/delete",method:"post"},{path:"availability_exceptions/query",method:"get"},{path:"images/upload",method:"post",multipart:!0},{path:"transactions/initiate",method:"post"},{path:"transactions/initiate_speculative",method:"post"},{path:"transactions/transition",method:"post"},{path:"transactions/transition_speculative",method:"post"},{path:"transactions/query",method:"get"},{path:"transactions/show",method:"get"},{path:"process_transitions/query",method:"get"},{path:"bookings/query",method:"get"},{path:"messages/query",method:"get"},{path:"messages/send",method:"post"},{path:"reviews/query",method:"get"},{path:"reviews/show",method:"get"},{path:"timeslots/query",method:"get"},{path:"stripe_account/create",method:"post"},{path:"stripe_account/fetch",method:"get"},{path:"stripe_account/update",method:"post"},{path:"stripe_account_links/create",method:"post"},{path:"stripe_persons/create",method:"post"},{path:"stripe_setup_intents/create",method:"post"},{path:"stripe_customer/create",method:"post"},{path:"stripe_customer/add_payment_method",method:"post"},{path:"stripe_customer/delete_payment_method",method:"post"},{path:"stock_adjustments/query",method:"get"},{path:"stock_adjustments/create",method:"post"},{path:"stock/compare_and_set",method:"post"},{path:"sitemap_data/query_listings",method:"get"},{path:"sitemap_data/query_assets",method:"get"}],O=[{path:"token",method:"post"},{path:"revoke",method:"post"},{path:"auth_with_idp",method:"post"}],R=[{pathFn:function(e){var t=e.clientId,r=e.version,n=e.assetPath;return"pub/".concat(t,"/v/").concat(r,"/").concat(n)},method:"get",name:"byVersion"},{pathFn:function(e){var t=e.clientId,r=e.alias,n=e.assetPath;return"pub/".concat(t,"/a/").concat(r,"/").concat(n)},method:"get",name:"byAlias"}],L=r(20),D=r.n(L),N=r(33),F=r.n(N);function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var j=function e(t){z(this,e),this._sdkType=this.constructor._sdkType,this.uuid=t};j._sdkType="UUID";var B=function e(t,r){z(this,e),this._sdkType=this.constructor._sdkType,this.lat=t,this.lng=r};B._sdkType="LatLng";var U=function e(t,r){z(this,e),this._sdkType=this.constructor._sdkType,this.ne=t,this.sw=r};U._sdkType="LatLngBounds";var V=function e(t,r){z(this,e),this._sdkType=this.constructor._sdkType,this.amount=t,this.currency=r};V._sdkType="Money";var q=function e(t){z(this,e),this._sdkType=this.constructor._sdkType,this.value=t};q._sdkType="BigDecimal";var H=function(e){switch(e&&e._sdkType){case"LatLng":return new B(e.lat,e.lng);case"LatLngBounds":return new U(e.ne,e.sw);case"UUID":return new j(e.uuid);case"Money":return new V(e.amount,e.currency);case"BigDecimal":return new q(e.value);default:return e}},G=function(e,t){return t},W=function(e,t){return H(t)};function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var Z=function(e){return encodeURIComponent(e).replace(/%2C/gi,",")},K="unknown-type",X=function e(t){var r;if(t instanceof j)r=t.uuid;else if(t instanceof B)r="".concat(t.lat,",").concat(t.lng);else if(t instanceof U)r="".concat(t.ne.lat,",").concat(t.ne.lng,",").concat(t.sw.lat,",").concat(t.sw.lng);else if(Array.isArray(t))r=t.map(e);else if(t instanceof Date)r=t.toISOString();else if(null==t)r=t;else{if("object"===Y(t))throw new Error(K);r=t}return r},J=function(e,t){var r;try{r=X(t)}catch(r){throw r&&r.message===K?new Error("Don't know how to serialize query parameter '".concat(e,"': ").concat(t)):r}return null==r?null:[e,Z(r)]},Q=function(e){return F()(D()(e,(function(e,t){var r=J(t,e);return r?r.join("="):null}))).join("&")};function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?$(r,!0).forEach((function(t){te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ne=function(e){var t=e.token_type&&e.token_type.toLowerCase();if("bearer"===t)return"Bearer ".concat(e.access_token);throw new Error("Unknown token type: ".concat(t))},ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.authToken,r=e.headers;return t?ee({},e,{headers:ee({},void 0===r?{}:r,{},{Authorization:ne(t)})}):e}}])&&re(t.prototype,r),e}();function oe(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(r,!0).forEach((function(t){le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ce=function(e){return Promise.resolve(e)},ue=function e(t){var r=function(e){var t,r,n=oe(e.leaveStack),i=oe(e.enterQueue);return e.error?(t=n.shift(),r="error"):i.length?(t=i.pop(),n.unshift(t),r="enter"):(t=n.shift(),r="leave"),[se({},e,{enterQueue:i,leaveStack:n}),t,r]}(t),n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(r,3),i=n[0],o=n[1],a=n[2];if(o)return function(e,t,r){return ce(e).then(t[r]||ce).catch((function(n){var i=n.ctx||e;return Promise.resolve(se({},i,{error:n,errorMiddleware:t.constructor.name,errorStage:r}))}))}(i,o,a).then(e);if(i.error){var s=i.error,l=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(i,["error"]);return s.ctx=l,Promise.reject(s)}return Promise.resolve(i)},de=function(e){return function(t){return ue(function(){return se({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enterQueue:oe(arguments.length>1?arguments[1]:void 0).reverse(),leaveStack:[]})}(t,e))}};function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var me=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"leave",value:function(e){var t=e.authToken,r=e.tokenStore,n=e.isLoggedInAs;return r?Promise.resolve().then((function(){return r.setToken(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?he(r,!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{isLoggedInAs:n}))})).then((function(){return e})):e}}],r&&fe(t.prototype,r),e}();function ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ve=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"leave",value:function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ge(r,!0).forEach((function(t){_e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ge(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{authToken:e.res.data})}}],r&&ye(t.prototype,r),e}();function be(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xe(r,!0).forEach((function(t){Ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xe(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Se(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ee=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(t){var r=t.enterQueue,n=t.refreshTokenRetry,i=(n=void 0===n?{}:n).attempts,o=void 0===i?0:i;return we({},t,{refreshTokenRetry:{retryQueue:[].concat(be(r),[new e]),attempts:o+1}})}},{key:"error",value:function(e){var t=e.authToken,r=e.clientId,n=e.tokenStore,i=e.endpointInterceptors,o=e.refreshTokenRetry,a=o.retryQueue,s=o.attempts;return s>1?e:e.res&&401===e.res.status&&t.refresh_token?de([new me,new ve].concat(be(i.auth.token)))({params:{client_id:r,grant_type:"refresh_token",refresh_token:t.refresh_token},tokenStore:n}).then((function(t){var r=t.authToken;return we({},e,{authToken:r,enterQueue:a,error:null})})).catch((function(t){return we({},e,{refreshTokenRetry:{retryQueue:a,attempts:s,res:t.response}})})):e}}])&&Se(t.prototype,r),e}();function Te(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Pe(r,!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ke=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(t){var r=t.enterQueue,n=t.anonTokenRetry,i=(n=void 0===n?{}:n).attempts,o=void 0===i?0:i;return Ce({},t,{anonTokenRetry:{retryQueue:[].concat(Te(r),[new e]),attempts:o+1}})}},{key:"error",value:function(e){var t=e.clientId,r=e.tokenStore,n=e.endpointInterceptors,i=e.anonTokenRetry,o=i.retryQueue;return i.attempts>1?e:e.res&&401===e.res.status?de([new me,new ve].concat(Te(n.auth.token)))({params:{client_id:t,grant_type:"client_credentials",scope:"public-read"},tokenStore:r}).then((function(t){var r=t.authToken;return Ce({},e,{authToken:r,enterQueue:o,error:null})})):e}}])&&Me(t.prototype,r),e}();function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(r,!0).forEach((function(t){Le(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Le(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ne=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"clearTokenAndResque",value:function(e){var t=e.tokenStore;return t?Promise.resolve().then(t.removeToken).then((function(){return Re({},e,{error:null})})):Re({},e,{error:null})}}],(r=[{key:"leave",value:function(t){return e.clearTokenAndResque(t)}},{key:"error",value:function(t){var r=(t.res||{}).status,n=c()(t,["refreshTokenRetry","res","status"]);return 401===r&&401===n?e.clearTokenAndResque(t):t}}])&&De(t.prototype,r),n&&De(t,n),e}();function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.authToken,r=(t=void 0===t?{}:t).refresh_token;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(r,!0).forEach((function(t){ze(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,r?{params:{token:r}}:{enterQueue:[]})}}])&&je(t.prototype,r),e}();function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}
2var He=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"enter",value:function(e){var t=e.tokenStore,r=e.authToken,n=e.endpointInterceptors,i=e.clientId;return r?e:de([new me,new ve].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(n.auth.token)))({params:{client_id:i,grant_type:"client_credentials",scope:"public-read"},tokenStore:t}).then((function(t){var r=t.authToken;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(r,!0).forEach((function(t){Ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{authToken:r})}))}}],r&&qe(t.prototype,r),e}();function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ze=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"enter",value:function(e){var t=e.tokenStore;return t?Promise.resolve().then(t.getToken).then((function(t){return t?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(r,!0).forEach((function(t){We(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{authToken:t}):e})):e}}],r&&Ye(t.prototype,r),e}();function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(r,!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var $e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.clientId,r=e.params;return Xe({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["clientId","params"]),{clientId:t,params:Xe({},r,{client_id:t})})}}])&&Qe(t.prototype,r),e}();function et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?et(r,!0).forEach((function(t){rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var it=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.clientSecret,r=e.params,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["clientSecret","params"]);if(!t)throw new Error("SDK instance is missing the clientSecret config.");return tt({},n,{clientSecret:t,params:tt({},r,{client_secret:t})})}}])&&nt(t.prototype,r),e}();function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(r,!0).forEach((function(t){st(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function st(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ct=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.authToken,r=e.params;return t&&t.access_token?at({},e,{params:at({},r,{subject_token:t.access_token})}):e}}])&&lt(t.prototype,r),e}();function ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"enter",value:function(e){var t=e.params.code;return t?function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ut(r,!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ut(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{isLoggedInAs:!!t}):e}}],r&&ht(t.prototype,r),e}();function ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _t=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"enter",value:function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?ft(r,!0).forEach((function(t){mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{isLoggedInAs:!0})}}],r&&gt(t.prototype,r),e}();function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(r,!0).forEach((function(t){bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t,r=e.params,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params"]),i=r.username,o=r.password,a=r.code;return i&&o?vt({},n,{params:vt({grant_type:"password"},r)}):a?(t=n.disableDeprecationWarnings,M&&console.warn&&!t&&console.warn("Using sdk.login to login as a user is deprecated. Use sdk.loginAs instead."),vt({},n,{params:vt({grant_type:"authorization_code"},r)})):vt({},n,{params:vt({},r)})}}])&&xt(t.prototype,r),e}();function At(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?At(r,!0).forEach((function(t){Et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):At(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Pt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params;return St({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params"]),{params:St({grant_type:"authorization_code"},t)})}}])&&Tt(t.prototype,r),e}();function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(r,!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ot=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params;return It({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params"]),{params:It({},t,{grant_type:"token_exchange"})})}}])&&kt(t.prototype,r),e}();function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Rt(r,!0).forEach((function(t){Dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ft=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params"]),n=t.username,i=t.password;return Lt({},r,n&&i?{params:Lt({scope:"user"},t)}:{params:Lt({},t)})}}])&&Nt(t.prototype,r),e}();function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(r,!0).forEach((function(t){Bt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ut(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.tokenStore;return t?Promise.resolve().then(t.getToken).then((function(t){if(t){var r=t.scope,n=t.isLoggedInAs;if(r){var i=r.split(" "),o="public-read"===r;return jt({},e,{res:{scopes:i,isAnonymous:o,grantType:o?"client_credentials":"refresh_token",isLoggedInAs:!!n}})}var a=!t.refresh_token;return jt({},e,{res:{isAnonymous:a,grantType:a?"client_credentials":"refresh_token",isLoggedInAs:!!n}})}return jt({},e,{res:{}})})):jt({},e,{res:{}})}}])&&Ut(t.prototype,r),e}();function qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(r,!0).forEach((function(t){Gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Yt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params"]);if(p()(t)){if("undefined"==typeof FormData)throw new Error("Don't know how to create multipart request from Object, when the FormData is undefined");return Ht({params:S(t).reduce((function(e,t){var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}
2(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,2),n=r[0],i=r[1];return e.append(n,i),e}),new FormData)},r)}return Ht({params:t},r)}}])&&Wt(t.prototype,r),e}(),Zt=r(10),Kt=r.n(Zt),Xt=r(46),Jt=r.n(Xt),Qt=r(13),$t=r.n(Qt),er=r(77),tr=r.n(er),rr=r(11),nr=r.n(rr),ir=r(7),or=r.n(ir);function ar(e){return ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ar(e)}function sr(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function lr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lr(r,!0).forEach((function(t){ur(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lr(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var hr=function(e,t){var r=e.reader,n=t?t.reader:nr.a;return function(e){return n(r(e))}},pr={u:j,geo:B,mn:V,f:q},fr=[{sdkType:j,reader:function(e){return new j(e)}},{sdkType:B,reader:function(e){var t=dr(e,2),r=t[0],n=t[1];return new B(r,n)}},{sdkType:V,reader:function(e){var t=dr(e,2),r=t[0],n=t[1];return new V(r,n)}},{sdkType:q,reader:function(e){return new q(e)}}],mr=[{sdkType:j,writer:function(e){return e.uuid}},{sdkType:B,writer:function(e){return[e.lat,e.lng]}},{sdkType:V,writer:function(e){return[e.amount,e.currency]}},{sdkType:q,writer:function(e){return e.value}}],gr=Jt()(D()(pr,(function(e,t){var r=$t()(mr,(function(t){return t.sdkType===e})),n=or.a.makeWriteHandler({tag:function(){return t},rep:r.writer});return[e,n]}))),_r={init:function(){return{}},add:function(e,t,r){return e[t]=r,e},finalize:nr.a},yr=function(){var e=function(e){return tr()(D()(pr,(function(t,r){var n=$t()(fr,(function(e){return e.sdkType===t})),i=$t()(e,(function(e){return e.sdkType===t}));return[r,hr(n,i)]})))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return or.a.reader("json",{handlers:cr({},e,{":":function(e){return e},set:function(e){return e},list:function(e){return e}}),mapBuilder:_r})},vr=[Object,or.a.makeWriteHandler({tag:function(){return"map"},rep:function(e){return S(e).reduce((function(e,t){var r=dr(t,2),n=r[0],i=r[1];return e.set(or.a.keyword(n),i),e}),or.a.map())}})],br=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).verbose?"json-verbose":"json";return or.a.writer(t,{handlers:or.a.map([].concat(sr(gr),vr)),transform:function(t){if(Kt()(t)){if(t._sdkType)return H(t);var r=$t()(e,(function(e){return e.appType&&t instanceof e.appType||e.canHandle&&e.canHandle(t)}));if(r)return r.writer(t)}return t},handlerForForeign:function(e,t){return Array.isArray(e)?t.get("array"):"object"===ar(e)?t.get("map"):null}})},xr=function(){var e=arguments.length>1?arguments[1]:void 0,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var r={sdkType:t.sdkType||t.type,reader:t.reader},n={sdkType:t.sdkType||t.type,appType:t.appType||t.customType,canHandle:t.canHandle,writer:t.writer};return e.readers.push(r),e.writers.push(n),e}),{readers:[],writers:[]}),r=t.readers,n=t.writers;return{reader:yr(r),writer:br(n,e)}};function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ar(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?wr(r,!0).forEach((function(t){Sr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wr(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params,r=e.headers,n=void 0===r?{}:r,i=e.typeHandlers,o=e.transitVerbose,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["params","headers","typeHandlers","transitVerbose"]);return"application/transit+json"===n["Content-Type"]?e:Ar({params:xr(i,{verbose:o}).writer.write(t),headers:Ar({},n,{"Content-Type":"application/transit+json"}),typeHandlers:i,transitVerbose:o},a)}}])&&Er(t.prototype,r),e}(),Pr=r(15),Cr=r.n(Pr);function Ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(r,!0).forEach((function(t){kr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Or(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Rr=function(e){return((e.headers||{})["content-type"]||"").startsWith("application/transit+json")},Lr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"error",value:function(e){var t=xr(e.typeHandlers).reader;return e.error.response&&Rr(e.error.response)?Cr()(Mr({},e),"error.response.data",(function(e){return t.read(e)})):e}},{key:"leave",value:function(e){var t=xr(e.typeHandlers).reader;return e.res&&Rr(e.res)?Cr()(Mr({},e),"res.data",(function(e){return t.read(e)})):e}}])&&Or(t.prototype,r),e}();function Dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dr(r,!0).forEach((function(t){Fr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dr(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var jr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"error",value:function(e){return e.error.response?Cr()(Nr({},e),"error.response",(function(e){return{status:e.status,statusText:e.statusText,data:e.data}})):e}},{key:"leave",value:function(e){return e.res?Cr()(Nr({},e),"res",(function(e){return{status:e.status,statusText:e.statusText,data:e.data}})):e}}])&&zr(t.prototype,r),e}();function Br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Br(r,!0).forEach((function(t){Vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Br(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qr(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Hr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Gr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.params,r=qr(e,["params"]),n=t.idpId,i=t.idpClientId,o=t.idpToken;return Ur({},r,{params:Ur({},n?{idp_id:n}:null,{},i?{idp_client_id:i}:null,{},o?{idp_token:o}:null,{},qr(t,["idpId","idpClientId","idpToken"]))})}}])&&Hr(t.prototype,r),e}(),Wr=r(0),Yr=r(34),Zr=r(6);function Kr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Xr(e,t){this._pairs=[],e&&Object(Zr.a)(e,this,t)}const Jr=Xr.prototype;Jr.append=function(e,t){this._pairs.push([e,t])},Jr.toString=function(e){const t=e?function(t){return e.call(this,t,Kr)}:Kr;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Qr=Xr;function $r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function en(e,t,r){if(!t)return e;const n=r&&r.encode||$r,i=r&&r.serialize;let o;if(o=i?i(t,r):Wr.a.isURLSearchParams(t)?t.toString():new Qr(t,r).toString(n),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var tn=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Wr.a.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},rn=r(1),nn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Qr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},an=function(e){function t(e,r,n,i){let o=e[i++];const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&Wr.a.isArray(n)?n.length:o,s?(Wr.a.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a):(n[o]&&Wr.a.isObject(n[o])||(n[o]=[]),t(e,r,n[o],i)&&Wr.a.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!a)}if(Wr.a.isFormData(e)&&Wr.a.isFunction(e.entries)){const r={};return Wr.a.forEachEntry(e,((e,n)=>{t(function(e){return Wr.a.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const sn={transitional:nn,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=Wr.a.isObject(e);if(i&&Wr.a.isHTMLForm(e)&&(e=new FormData(e)),Wr.a.isFormData(e))return n&&n?JSON.stringify(an(e)):e;if(Wr.a.isArrayBuffer(e)||Wr.a.isBuffer(e)||Wr.a.isStream(e)||Wr.a.isFile(e)||Wr.a.isBlob(e))return e;if(Wr.a.isArrayBufferView(e))return e.buffer;if(Wr.a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Object(Zr.a)(e,new on.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return on.isNode&&Wr.a.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}
vendor: 4,234 bytes, line 2
2(e,this.formSerializer).toString();if((o=Wr.a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Object(Zr.a)(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if(Wr.a.isString(e))try{return(0,JSON.parse)(e),Wr.a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||sn.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&Wr.a.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw rn.a.from(e,rn.a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Wr.a.forEach(["delete","get","head","post","put","patch"],(e=>{sn.headers[e]={}}));var ln=sn;const cn=Wr.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),un=Symbol("internals");function dn(e){return e&&String(e).trim().toLowerCase()}function hn(e){return!1===e||null==e?e:Wr.a.isArray(e)?e.map(hn):String(e)}function pn(e,t,r,n,i){return Wr.a.isFunction(n)?n.call(this,t,r):(i&&(t=r),Wr.a.isString(t)?Wr.a.isString(n)?-1!==t.indexOf(n):Wr.a.isRegExp(n)?n.test(t):void 0:void 0)}class fn{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=dn(t);if(!i)throw new Error("header name must be a non-empty string");const o=Wr.a.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=hn(e))}const o=(e,t)=>Wr.a.forEach(e,((e,r)=>i(e,r,t)));return Wr.a.isPlainObject(e)||e instanceof this.constructor?o(e,t):Wr.a.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&cn[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=dn(e)){const r=Wr.a.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Wr.a.isFunction(t))return t.call(this,e,r);if(Wr.a.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dn(e)){const r=Wr.a.findKey(this,e);return!(!r||void 0===this[r]||t&&!pn(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=dn(e)){const i=Wr.a.findKey(r,e);!i||t&&!pn(0,r[i],i,t)||(delete r[i],n=!0)}}return Wr.a.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!pn(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return Wr.a.forEach(this,((n,i)=>{const o=Wr.a.findKey(r,i);if(o)return t[o]=hn(n),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(i):String(i).trim();a!==i&&delete t[i],t[a]=hn(n),r[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Wr.a.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Wr.a.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];
2return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[un]=this[un]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=dn(e);t[n]||(function(e,t){const r=Wr.a.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})}))}(r,e),t[n]=!0)}return Wr.a.isArray(e)?e.forEach(n):n(e),this}}fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Wr.a.reduceDescriptors(fn.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),Wr.a.freezeMethods(fn);var mn=fn;function gn(e,t){const r=this||ln,n=t||r,i=mn.from(n.headers);let o=n.data;return Wr.a.forEach(e,(function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function _n(e){return!(!e||!e.__CANCEL__)}function yn(e,t,r){rn.a.call(this,null==e?"canceled":e,rn.a.ERR_CANCELED,t,r),this.name="CanceledError"}Wr.a.inherits(yn,rn.a,{__CANCEL__:!0});var vn=yn,bn=r(35),xn=on.isStandardBrowserEnv?{write:function(e,t,r,n,i,o){const a=[];a.push(e+"="+encodeURIComponent(t)),Wr.a.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Wr.a.isString(n)&&a.push("path="+n),Wr.a.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function wn(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var An=on.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=Wr.a.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};function Sn(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=n[a];i||(i=l),r[o]=s,n[o]=l;let u=a,d=0;for(;u!==o;)d+=r[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<t)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}}(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,l=n(s);r=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}var En="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const i=mn.from(e.headers).normalize(),o=e.responseType;let a,s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Wr.a.isFormData(n)&&(on.isStandardBrowserEnv||on.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.getContentType(/^\s*multipart\/form-data/)?Wr.a.isString(s=i.getContentType())&&i.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):i.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}const u=wn(e.baseURL,e.url);function d(){if(!c)return;const n=mn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new rn.a("Request failed with status code "+r.status,[rn.a.ERR_BAD_REQUEST,rn.a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),l()}),(function(e){r(e),l()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),en(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(r(new rn.a("Request aborted",rn.a.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new rn.a("Network Error",rn.a.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||nn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new rn.a(t,n.clarifyTimeoutError?rn.a.ETIMEDOUT:rn.a.ECONNABORTED,e,c)),c=null},on.isStandardBrowserEnv){const t=(e.withCredentials||An(u))&&e.xsrfCookieName&&xn.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===n&&i.setContentType(null),"setRequestHeader"in c&&Wr.a.forEach(i.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Wr.a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&"json"!==o&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&
2c.addEventListener("progress",Sn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Sn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(r(!t||t.type?new vn(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);h&&-1===on.protocols.indexOf(h)?r(new rn.a("Unsupported protocol "+h+":",rn.a.ERR_BAD_REQUEST,e)):c.send(n||null)}))};const Tn={http:bn.a,xhr:En};Wr.a.forEach(Tn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Pn=e=>"- ".concat(e),Cn=e=>Wr.a.isFunction(e)||null===e||!1===e;var In=e=>{e=Wr.a.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){let t;if(r=e[o],n=r,!Cn(r)&&(n=Tn[(t=String(r)).toLowerCase()],void 0===n))throw new rn.a("Unknown adapter '".concat(t,"'"));if(n)break;i[t||"#"+o]=n}if(!n){const e=Object.entries(i).map((e=>{let[t,r]=e;return"adapter ".concat(t," ")+(!1===r?"is not supported by the environment":"is not available in the build")}));let r=t?e.length>1?"since :\n"+e.map(Pn).join("\n"):" "+Pn(e[0]):"as no adapter specified";throw new rn.a("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function Mn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vn(null,e)}function kn(e){return Mn(e),e.headers=mn.from(e.headers),e.data=gn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),In(e.adapter||ln.adapter)(e).then((function(t){return Mn(e),t.data=gn.call(e,e.transformResponse,t),t.headers=mn.from(t.headers),t}),(function(t){return _n(t)||(Mn(e),t&&t.response&&(t.response.data=gn.call(e,e.transformResponse,t.response),t.response.headers=mn.from(t.response.headers))),Promise.reject(t)}))}const On=e=>e instanceof mn?e.toJSON():e;function Rn(e,t){t=t||{};const r={};function n(e,t,r){return Wr.a.isPlainObject(e)&&Wr.a.isPlainObject(t)?Wr.a.merge.call({caseless:r},e,t):Wr.a.isPlainObject(t)?Wr.a.merge({},t):Wr.a.isArray(t)?t.slice():t}function i(e,t,r){return Wr.a.isUndefined(t)?Wr.a.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!Wr.a.isUndefined(t))return n(void 0,t)}function a(e,t){return Wr.a.isUndefined(t)?Wr.a.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(On(e),On(t),!0)};return Wr.a.forEach(Object.keys(Object.assign({},e,t)),(function(n){const o=l[n]||i,a=o(e[n],t[n],n);Wr.a.isUndefined(a)&&o!==s||(r[n]=a)})),r}const Ln={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ln[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Dn={};Ln.transitional=function(e,t,r){function n(e,t){return"[Axios v1.5.1] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new rn.a(n(i," has been removed"+(t?" in "+t:"")),rn.a.ERR_DEPRECATED);return t&&!Dn[i]&&(Dn[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var Nn={assertOptions:function(e,t,r){if("object"!=typeof e)throw new rn.a("options must be an object",rn.a.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new rn.a("option "+o+" must be "+r,rn.a.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new rn.a("Unknown option "+o,rn.a.ERR_BAD_OPTION)}},validators:Ln};const Fn=Nn.validators;class zn{constructor(e){this.defaults=e,this.interceptors={request:new tn,response:new tn}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Rn(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&Nn.assertOptions(r,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)}
vendor: 2,353 bytes, line 2
2,!1),null!=n&&(Wr.a.isFunction(n)?t.paramsSerializer={serialize:n}:Nn.assertOptions(n,{encode:Fn.function,serialize:Fn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Wr.a.merge(i.common,i[t.method]);i&&Wr.a.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=mn.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[kn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let h=t;for(d=0;d<u;){const t=a[d++],r=a[d++];try{h=t(h)}catch(e){r.call(this,e);break}}try{c=kn.call(this,h)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return en(wn((e=Rn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Wr.a.forEach(["delete","get","head","options"],(function(e){zn.prototype[e]=function(t,r){return this.request(Rn(r||{},{method:e,url:t,data:(r||{}).data}))}})),Wr.a.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,i){return this.request(Rn(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}zn.prototype[e]=t(),zn.prototype[e+"Form"]=t(!0)}));var jn=zn;class Bn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,i){r.reason||(r.reason=new vn(e,n,i),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Bn((function(t){e=t})),cancel:e}}}var Un=Bn;const V
vendor: 1,212 bytes, line 2
2n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(
2Vn).forEach((e=>{let[t,r]=e;Vn[r]=t}));var qn=Vn;const Hn=function e(t){const r=new jn(t),n=Object(Yr.a)(jn.prototype.request,r);return Wr.a.extend(n,jn.prototype,r,{allOwnKeys:!0}),Wr.a.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Rn(t,r))},n}(ln);Hn.Axios=jn,Hn.CanceledError=vn,Hn.CancelToken=Un,Hn.isCancel=_n,Hn.VERSION="1.5.1",Hn.toFormData=Zr.a,Hn.AxiosError=rn.a,Hn.Cancel=Hn.CanceledError,Hn.all=function(e){return Promise.all(e)},Hn.spread=function(e){return function(t){return e.apply(null,t)}},Hn.isAxiosError=function(e){return Wr.a.isObject(e)&&!0===e.isAxiosError},Hn.mergeConfig=Rn,Hn.AxiosHeaders=mn,Hn.formToJSON=e=>an(Wr.a.isHTMLForm(e)?new FormData(e):e),Hn.getAdapter=In,Hn.HttpStatusCode=qn,Hn.default=Hn;var Gn=Hn,Wn=r(12);function Yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yn(r,!0).forEach((function(t){Kn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yn(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xn=function(e){var t=e.method,r=e.url,n=e.urlTemplate,i=e.httpOpts,o=i.headers,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(i,["headers"]);return{enter:function(e){var i=e.params,s=e.queryParams,l=e.pathParams,c=e.headers;return function(e){var t=e.params,r=void 0===t?{}:t,n=e.queryParams,i=void 0===n?{}:n,o=e.httpOpts,a=o.method,s=void 0===a?"get":a,l=o.headers,c=null,u=null;"post"===s.toLowerCase()?(c=r,u=i):u=r;var d=Wn.b?Zn({},l,{"User-Agent":Wn.b}):l,h=Zn({},o,{headers:d,method:s,data:c,params:u});return Gn.request(h)}({params:i,queryParams:s,httpOpts:Zn({},e.perRequestOpts,{method:t||"get",headers:Zn({},o,{},c)},a,{url:r||n(l)})}).then((function(t){return Zn({},e,{res:t})})).catch((function(t){var r=Zn({},e,{res:t.response});throw t.ctx=r,t}))}}};function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}var Qn=r(36),$n=r.n(Qn);function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ti(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ri=function(e){var t=e.clientId,r=e.cookieId,n=e.secure,i=function(e){return"".concat("st","-").concat(e,"-token")}(t||r);return{getToken:function(){return $n.a.getJSON(i)},setToken:function(e){var t=n?{secure:!0}:{};$n.a.set(i,e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ei(r,!0).forEach((function(t){ti(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ei(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({expires:30},t))},removeToken:function(){$n.a.remove(i)}}},ni=function(){var e;return{getToken:function(){return e},setToken:function(t){e=t},removeToken:function(){e=null}}},ii=function(e,t,r){return"object"===("undefined"==typeof document?"undefined":Jn(document))&&"string"==typeof document.cookie?ri({clientId:t,secure:r}):ni()};function oi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var si=function(e){throw e.response&&(Object.assign(e,e.response),delete e.response),e.ctx&&delete e.ctx,e.config&&delete e.config,e},li=function(e){var t=e.params,r=e.queryParams,n=e.pathParams,i=e.perRequestOpts,o=e.ctx,a=e.interceptors;return de(F()(a))(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?oi(r,!0).forEach((function(t){ai(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oi(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},o,{params:t,queryParams:r,pathParams:n,perRequestOpts:i})).then((function(e){return e.res})).catch(si)};function ci(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ui(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(r,!0).forEach((function(t){pi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fi={clientId:null,clientSecret:null,baseUrl:"https://flex-api.sharetribe.com",assetCdnBaseUrl:"https://cdn.st-api.com",typeHandlers:[],adapter:null,version:"v1",httpAgent:null,httpsAgent:null,transitVerbose:!1,disableDeprecationWarnings:!1},mi=function(e){return e?{"X-Transit-Verbose":"true",Accept:"application/transit+json"}:{Accept:"application/transit+json"}},gi={api:function(e){var t=e.baseUrl,r=e.version,n=e.adapter,i=e.httpAgent,o=e.httpsAgent,a=e.transitVerbose;return{headers:mi(a),baseURL:"".concat(t,"/").concat(r),transformRequest:function(e){return e},transformResponse:function(e){return e},adapter:n,paramsSerializer:Q,httpAgent:i,httpsAgent:o}},auth:function(e){var t=e.baseUrl,r=e.version,n=e.adapter,i=e.httpAgent,o=e.httpsAgent;return{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},baseURL:"".concat(t,"/").concat(r,"/"),transformRequest:[function(e){return P(e)}],adapter:n,httpAgent:i,httpsAgent:o}},assets:function(e){var t=e.assetCdnBaseUrl,r=e.version,n=e.adapter,i=e.httpAgent,o=e.httpsAgent;return{headers:{Accept:"application/json"},baseURL:"".concat(t,"/").concat(r),adapter:n,paramsSerializer:Q,httpAgent:i,httpsAgent:o}}},_i=[new Ze,new He,new ke,new Ee,new ie],yi=[new $e,new wt,new pt,new Ft,new me,new ve],vi=[new $e,new Pt,new _t,new me,new ve],bi=[new Ze,new Ne,new Ee,new ie,new Be],xi=[new Ze,new Ee,new $e,new it,new ct,new Ot],wi=[new $e,new it,new Gr,new me,new ve],Ai=function(e){var t=e.method,r=ui(e,["method"]);return t&&"post"===t.toLowerCase()?function(e){return function(){var t;return li(hi({params:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},queryParams:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},perRequestOpts:(t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d()(t,["onUploadProgress"]))},e))}}(r):function(e){return function(){return li(hi({params:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},e))}}(r)},Si=function(e){var t=e.ctx,r=e.interceptors;return function(){return li({params:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ctx:t,interceptors:r})}},Ei=function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n,i=function(e){if(!e.clientId)throw new Error("clientId must be provided");if(!e.baseUrl)throw new Error("baseUrl must be provided");
2if(!e.assetCdnBaseUrl)throw new Error("assetCdnBaseUrl must be provided");return Wn.a&&e.clientSecret&&!e.dangerouslyAllowClientSecretInBrowser&&(console.warn("Security warning! You are using client secret in a browser. This may expose the client secret to the public."),console.warn("If you know what you are doing and you have secured the website by other means (e.g. HTTP basic auth), you should set the SDK configuration `dangerouslyAllowClientSecretInBrowser` to `true` to dismiss this warning."),console.warn("In the future SDK versions, we may change this warning to an error causing the site not to work properly, unless `dangerouslyAllowClientSecretInBrowser` is set")),e}(function(e){var t=e.baseUrl,r=e.tokenStore,n=ui(e,["baseUrl","tokenStore"]);return hi({},n,{baseUrl:E(t),tokenStore:r||ii(0,n.clientId,!!n.secure)})}(hi({},fi,{},t))),a=o()(gi,(function(e){return e(i)})),l=(n=a.api,k.reduce((function(e,t){var r,i=t.path,o=t.method,a=t.multipart,l=T(i),c="api/".concat(i);return r="post"===o&&a?[new Yt]:"post"===o?[new Tr]:[],s()(e,l,[new Lr].concat(ci(r),[Xn({method:o,url:c,httpOpts:n})]))}),{})),u=function(e){return O.reduce((function(t,r){var n=r.path,i=r.method,o=T(n),a="auth/".concat(n);return s()(t,o,[Xn({method:i,url:a,httpOpts:e})])}),{})}(a.auth),d=function(e){return R.reduce((function(t,r){var n=r.pathFn,i=r.method,o=r.name;return s()(t,o,[Xn({method:i,urlTemplate:function(e){return"assets/".concat(n(e))},httpOpts:e})])}),{})}(a.assets),h={api:l,auth:u,assets:d},p={tokenStore:i.tokenStore,endpointInterceptors:h,clientId:i.clientId,clientSecret:i.clientSecret,typeHandlers:i.typeHandlers,transitVerbose:i.transitVerbose,disableDeprecationWarnings:i.disableDeprecationWarnings};(function(e,t){return k.map((function(r){var n=r.path,i=r.method,o=T(n);return{path:o,fn:Ai({method:i,ctx:t,interceptors:[new jr].concat(_i,ci(c()(e,o)||[]))})}}))})(l,p).forEach((function(e){var t=e.path,n=e.fn;return s()(r,t,n)})),function(e,t){return[{path:"login",fn:Si({ctx:t,interceptors:[new jr].concat(yi,ci(c()(e,"token")))})},{path:"loginAs",fn:Si({ctx:t,interceptors:[new jr].concat(vi,ci(c()(e,"token")))})},{path:"logout",fn:Si({ctx:t,interceptors:[new jr].concat(bi,ci(c()(e,"revoke")))})},{path:"exchangeToken",fn:Si({ctx:t,interceptors:[].concat(xi,ci(c()(e,"token")))})},{path:"authInfo",fn:Si({ctx:t,interceptors:[new Vt]})},{path:"loginWithIdp",fn:Si({ctx:t,interceptors:[].concat(wi,ci(c()(e,"authWithIdp")))})}]}(u,p).forEach((function(e){var t=e.path,n=e.fn;return s()(r,t,n)})),function(e,t){return[{path:"assetByAlias",fn:function(r){var n=r.path,i=r.alias;if(!n)throw new Error("Missing mandatory parameter `path`");if(!i)throw new Error("Missing mandatory parameter `alias`");return li({ctx:t,pathParams:{clientId:t.clientId,alias:i||"latest",assetPath:"/"===n[0]?n.slice(1):n},interceptors:[new jr].concat(ci(c()(e,"byAlias")))})}},{path:"assetByVersion",fn:function(r){var n=r.path,i=r.version;if(!i)throw new Error("Missing mandatory parameter `version`");if(!i)throw new Error("Missing mandatory parameter `version`");return li({ctx:t,pathParams:{clientId:t.clientId,version:i,assetPath:"/"===n[0]?n.slice(1):n},interceptors:[new jr].concat(ci(c()(e,"byVersion")))})}},{path:"assetsByAlias",fn:function(r){var n=r.paths,i=r.alias;if(!n)throw new Error("Missing mandatory parameter `paths`");if(0===n.length)throw new Error("`paths` must not be empty");if(!i)throw new Error("Missing mandatory parameter `alias`");var o=I(n),a=o.pathPrefix,s=o.relativePaths;return li({ctx:t,params:{assets:s},pathParams:{clientId:t.clientId,alias:i,assetPath:a},interceptors:[new jr].concat(ci(c()(e,"byAlias")))})}},{path:"assetsByVersion",fn:function(r){var n=r.paths,i=r.version;if(!n)throw new Error("Missing mandatory parameter `paths`");if(0===n.length)throw new Error("`paths` must not be empty");if(!i)throw new Error("Missing mandatory parameter `version`");var o=I(n),a=o.pathPrefix,s=o.relativePaths;return li({ctx:t,params:{assets:s},pathParams:{clientId:t.clientId,version:i,assetPath:a},interceptors:[new jr].concat(ci(c()(e,"byVersion")))})}}]}
2(d,p).forEach((function(e){var t=e.path,n=e.fn;return s()(r,t,n)}))};function Ti(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ci(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ii=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"leave",value:function(e){var t=e.res.data;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ti(r,!0).forEach((function(t){Pi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ti(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{authToken:{access_token:t.access_token,token_type:t.token_type,expires_in:t.expires_in,scope:t.scope}})}}],r&&Ci(t.prototype,r),e}(),Mi=function(){throw new Error("JWT support not implemented.")};function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ri(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Li={algorithm:"HS256",expiresIn:60},Di=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"enter",value:function(e){var t=e.multitenantClientSecret,r=e.hostname;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ki(r,!0).forEach((function(t){Oi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{multitenantClientSecretToken:Mi({hostname:r},t,Li)})}}],r&&Ri(t.prototype,r),e}();function Ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ni(r,!0).forEach((function(t){zi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ji(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Bi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.multitenantClientSecretToken,r=e.params;return Fi({},e,{params:Fi({},void 0===r?{}:r,{client_secret:t})})}}])&&ji(t.prototype,r),e}();function Ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ui(r,!0).forEach((function(t){qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ui(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Gi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.tokenStore;return Promise.resolve().then(t.getToken).then((function(t){if(!t||!t.access_token)throw new Error("No access token found in store");var r=t.scope.split(" ");if(!$t()(r,(function(e){return"user"===e})))throw new Error("Access token scope not supported");return Vi({},e,{params:Vi({},e.params,{scope:"trusted:user",grant_type:"multitenant_token_exchange",subject_token:t.access_token})})}))}}])&&Hi(t.prototype,r),e}();function Wi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Wi(r,!0).forEach((function(t){Zi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wi(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Xi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"leave",value:function(e){var t=e.res;return t?Yi({},e,{res:Yi({},t,{data:{client_data:t.data.client_data}})}):e}}])&&Ki(t.prototype,r),e}();function Ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ji(r,!0).forEach((function(t){$i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ji(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var to=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"enter",value:function(e){var t=e.multitenantClientSecretToken,r=e.headers;return Qi({},e,{headers:Qi({},void 0===r?{}:r,{},{Authorization:"Bearer ".concat(t)})})}}])&&eo(t.prototype,r),e}();function ro(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function io(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var oo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"leave",value:function(e){var t=e.res.data;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ro(r,!0).forEach((function(t){no(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ro(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{authToken:{access_token:t.access_token,refresh_token:t.refresh_token,token_type:t.token_type,expires_in:t.expires_in,scope:t.scope}})}}],r&&io(t.prototype,r),e}();function ao(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function so(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ao(r,!0).forEach((function(t){lo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ao(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function co(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var uo={hostname:null,multitenantClientSecret:null,baseUrl:"https://flex-api.sharetribe.com",adapter:null,version:"v1",httpAgent:null,httpsAgent:null},ho=[{path:"token",method:"post"},{path:"client_data",method:"get"},{path:"auth_with_idp",method:"post"}],po={auth:function(e){var t=e.baseUrl,r=e.version,n=e.adapter,i=e.httpAgent,o=e.httpsAgent;return{headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},baseURL:"".concat(t,"/").concat(r,"/"),transformRequest:[function(e){return P(e)}],adapter:n,httpAgent:i,httpsAgent:o}}},fo=function(e){return[new jr,new Xi,new Di,new Bi,new me,new Ii].concat(co(c()(e,"token")))},mo=function(e){return{enter:function(t){var r=t.tokenStore;return Promise.resolve().then(r.getToken).then((function(r){return r?de(function(e){return[new jr,new Di,new to].concat(co(c()(e,"clientData")))}(e))(t).then((function(e){var t=e.res;return so({},e,{res:so({},t,{data:{client_data:t.data}})})})):de(fo(e))(so({},t,{params:{grant_type:"multitenant_client_credentials"}}))}))}}},go=function(e){return[new jr,new Di,new Bi,new Gr,new me,new oo].concat(co(c()(e,"authWithIdp")))},_o=function(e){var t=e.ctx,r=e.interceptors;return function(){return li({params:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ctx:t,interceptors:r})}},yo=function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n,i,a,l,c=function(e){if(!e.hostname)throw new Error("hostname must be provided");
2if(!e.multitenantClientSecret)throw new Error("multitenantClientSecret must be provided");if(!e.baseUrl)throw new Error("baseUrl must be provided");if(Wn.a)throw new Error("Using the multitenant SDK in browser is not allowed.");return e}((i=(n=so({},uo,{},t)).baseUrl,a=n.tokenStore,so({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(n,["baseUrl","tokenStore"]),{baseUrl:E(i),tokenStore:a||ni()}))),u=o()(po,(function(e){return e(c)})),d=(l=u.auth,ho.reduce((function(e,t){var r=t.path,n=t.method,i=T(r),o="auth/multitenant/".concat(r);return s()(e,i,[Xn({method:n,url:o,httpOpts:l})])}),{}));(function(e,t){return[{path:"clientData",fn:_o({ctx:t,interceptors:[mo(e)]})},{path:"tokenExchange",fn:_o({ctx:t,interceptors:[new Gi].concat(co(fo(e)))})},{path:"loginWithIdp",fn:_o({ctx:t,interceptors:go(e)})}]})(d,{endpointInterceptors:{auth:d},multitenantClientSecret:c.multitenantClientSecret,hostname:c.hostname,tokenStore:c.tokenStore}).forEach((function(e){var t=e.path,n=e.fn;return s()(r,t,n)}))};function vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xo=function(e){return new Ei(e)},wo=function(e){return new yo(e)},Ao={memoryStore:ni,browserCookieStore:ri,expressCookieStore:function(e){var t,r=e.clientId,n=e.cookieId,i=e.req,o=e.res,a=e.secure,s=function(e){return"".concat("st","-").concat(e,"-token")}(r||n);return{getToken:function(){var e;return t=t||((e=i.cookies[s])?JSON.parse(e):null)},setToken:function(e){t=e;var r=a?{secure:!0}:{};o.cookie(s,JSON.stringify(e),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vo(r,!0).forEach((function(t){bo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vo(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({maxAge:15552e6},r))},removeToken:function(){t=null,o.clearCookie(s)}}}},So={read:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).typeHandlers;return xr(void 0===t?[]:t).reader.read(e)},write:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.typeHandlers,n=void 0===r?[]:r,i=t.verbose;return xr(n,{verbose:void 0!==i&&i}).writer.write(e)}},Eo={objectQueryString:function(e){if(!p()(e))throw new Error("Parameter not an object.");return Object.entries(e).filter((function(e){return null!=x(e,2)[1]})).map((function(e){var t=x(e,2),r=t[0],n=t[1];return"".concat(r,":").concat(function(e){if(p()(e))throw new Error("Nested object in query parameter.");return Array.isArray(e)?e.join(","):e}(n))})).join(";")}}}])},module.exports=e()},20103:e=>{!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var r,n=e.HTMLElement||e.Element,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,a=(r=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(r)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;p.call(this,this,"undefined"===typeof e?this.scrollLeft:~~e,"undefined"===typeof t?this.scrollTop:~~t)}else{if("number"===typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var r=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),n=r.getBoundingClientRect(),o=this.getBoundingClientRect();r!==t.body?(p.call(this,r,r.scrollLeft+o.left-n.left,r.scrollTop+o.top-n.top),"fixed"!==e.getComputedStyle(r).position&&e.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!==typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;
2if("object"===typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+a<e.scrollHeight:"X"===t?e.clientWidth+a<e.scrollWidth:void 0}function u(t,r){var n=e.getComputedStyle(t,null)["overflow"+r];return"auto"===n||"scroll"===n}function d(e){var t=c(e,"Y")&&u(e,"Y"),r=c(e,"X")&&u(e,"X");return t||r}function h(t){var r,n,i,a,s=(o()-t.startTime)/468;a=s=s>1?1:s,r=.5*(1-Math.cos(Math.PI*a)),n=t.startX+(t.x-t.startX)*r,i=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,n,i),n===t.x&&i===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(r,n,a){var l,c,u,d,p=o();r===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(l=r,c=r.scrollLeft,u=r.scrollTop,d=s),h({scrollable:l,method:d,startTime:p,startX:c,startY:u,x:n,y:a})}}}}()},71289:e=>{"use strict";e.exports=(e,t)=>{if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},67491:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%".concat(e.charCodeAt(0).toString(16).toUpperCase())))},57527:(e,t,r)=>{"use strict";var n=r(56973),i=r(80205),o=r(88117)("String.prototype.replace"),a=/^\s$/.test("\u180e"),s=a?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=a?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=i(n(this));return o(o(e,s,""),l,"")}},59393:(e,t,r)=>{"use strict";var n=r(61712),i=r(11779),o=r(56973),a=r(57527),s=r(44326),l=r(29060),c=n(s()),u=function(e){return o(e),c(e)};i(u,{getPolyfill:s,implementation:a,shim:l}),e.exports=u},44326:(e,t,r)=>{"use strict";var n=r(57527),i="\u180e";e.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()&&i.trim()===i&&"_\u180e"==="_\u180e".trim()&&"\u180e_"==="\u180e_".trim()?String.prototype.trim:n}},29060:(e,t,r)=>{"use strict";var n=r(12101)(),i=r(74992),o=r(44326);e.exports=function(){var e=o();return String.prototype.trim!==e&&(n?i(String.prototype,"trim",e,!0):i(String.prototype,"trim",e)),e}},43495:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={root:"LinkedLogo_root__BrSGe"}},23220:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n={modalContainer:"OrderPanel_modalContainer__akXYl marketplaceModalInMobileBaseStyles",modalHeading:"OrderPanel_modalHeading__Ov7qr",heading:"OrderPanel_heading__xUHxc",price:"OrderPanel_price__5+naB h4",perUnit:"OrderPanel_perUnit__i10pE h4",author:"OrderPanel_author__s-Bcv p",providerAvatar:"OrderPanel_providerAvatar__hU+le",providerNamePlain:"OrderPanel_providerNamePlain__kUWDU",providerNameLinked:"OrderPanel_providerNameLinked__tfqeY",orderHeading:"OrderPanel_orderHeading__vXT33",orderTitle:"OrderPanel_orderTitle__RIpuO",orderHelp:"OrderPanel_orderHelp__CIP3h h5",bookingForm:"OrderPanel_bookingForm__8asH4",openOrderForm:"OrderPanel_openOrderForm__arvJg",priceContainerInCTA:"OrderPanel_priceContainerInCTA__-R3eq",priceContainer:"OrderPanel_priceContainer__glvuJ",priceValue:"OrderPanel_priceValue__VMzGM h3",perUnitInCTA:"OrderPanel_perUnitInCTA__MuYxV marketplaceTinyFontStyles",closedListingButton:"OrderPanel_closedListingButton__U1Hqz",receipt:"OrderPanel_receipt__b9bMW",error:"OrderPanel_error__LAgoK h4",errorSidebar:"OrderPanel_errorSidebar__rmO8g"}},42634:()=>{},41234:()=>{},43693:(e,t,r)=>{var n=r(77736);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>
2{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},12897:(e,t,r)=>{var n=r(43693);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},91847:(e,t,r)=>{var n=r(54893);e.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},54893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},89045:(e,t,r)=>{var n=r(73738).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77736:(e,t,r)=>{var n=r(73738).default,i=r(89045);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},73738:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},98139:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,o(r)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},91239:(e,t,r)=>{"use strict";var n=r(24706),i=r(75464),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},96129:(e,t,r)=>{"use strict";var n=r(96223).has;e.exports=function(e){return n(e),e}},6579:(e,t,r)=>{"use strict";var n=r(78682),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},91511:(e,t,r)=>{"use strict";var n=r(83313).has;e.exports=function(e){return n(e),e}},53348:(e,t,r)=>{"use strict";var n=r(54352),i=r(36115),o=r(73572).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},31608:(e,t,r)=>{"use strict";var n=r(96821),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},40972:(e,t,r)=>{"use strict";var n=r(26774),i=r(52201),o=r(51591),a=function(e){return function(t,r,a){var s=n(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&r!==r){for(;l>u;)if((c=s[u++])!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},15687:(e,t,r)=>{"use strict";var n=r(27707),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},87972:(e,t,r)=>{"use strict";var n=r(1415),i=r(24706),o=r(15687),a=r(54352)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=s(e),a))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},57274:(e,t,r)=>{"use strict";var n=r(39055),i=r(31608),o=r(92522),a=r(31183);e.exports=function(e,t,r){return function(s){var l=o(s),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=d?n(u,c>2?arguments[2]:void 0):void 0,p=new e,f=0;return a(l,(function(e){var n=d?h(e,f++):e;r?t(p,i(n)[0],n[1]):t(p,n)})),p}}},60107:(e,t,r)=>{"use strict";var n=r(31608);e.exports=function(e,t,r){return function(){for(var i=new e,o=arguments.length,a=0;a<o;a++){var s=arguments[a];r?t(i,n(s)[0],s[1]):t(i,s)}return i}}},15555:(e,t,r)=>{"use strict";var n=r(56164),i=r(92682),o=r(55214),a=r(73572);e.exports=function(e,t,r){for(var s=i(t),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},30814:(e,t,r)=>{"use strict";var n=r(28084);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},11830:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},59266:(e,t,r)=>{"use strict";var n=r(59519),i=r(73572),o=r(86369);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},86369:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},15551:(e,t,r)=>{"use strict";var n=r(24706),i=r(73572),o=r(84416),a=r(93036);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(r)&&o(r,c,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}
vendor: 6,083 bytes, line 2
2l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},93036:(e,t,r)=>{"use strict";var n=r(14823),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},59519:(e,t,r)=>{"use strict";var n=r(28084);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},32760:(e,t,r)=>{"use strict";var n=r(14823),i=r(96821),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},12239:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},58757:(e,t,r)=>{"use strict";var n=r(32760)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},16672:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},30498:(e,t,r)=>{"use strict";var n=r(14823).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},10166:(e,t,r)=>{"use strict";var n,i,o=r(14823),a=r(30498),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},96715:(e,t,r)=>{"use strict";var n=r(14823),i=r(55214).f,o=r(59266),a=r(15551),s=r(93036),l=r(15555),c=r(66079);e.exports=function(e,t){var r,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[f]||s(f,{}):n[f]&&n[f].prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(p=i(r,u))&&p.value:r[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(r,u,h,e)}}},28084:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},39055:(e,t,r)=>{"use strict";var n=r(68097),i=r(91239),o=r(75897),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},75897:(e,t,r)=>{"use strict";var n=r(28084);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},54850:(e,t,r)=>{"use strict";var n=r(75897),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},32345:(e,t,r)=>{"use strict";var n=r(59519),i=r(56164),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},60119:(e,t,r)=>{"use strict";var n=r(27707),i=r(91239);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(o){}}},68097:(e,t,r)=>{"use strict";var n=r(15687),i=r(27707);e.exports=function(e){if("Function"===n(e))return i(e)}},27707:(e,t,r)=>{"use strict";var n=r(75897),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},73542:(e,t,r)=>{"use strict";var n=r(14823),i=r(24706);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},83036:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},51584:(e,t,r)=>{"use strict";var n=r(87972),i=r(87151),o=r(13192),a=r(14614),s=r(54352)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[n(e)]}},20836:(e,t,r)=>{"use strict";var n=r(54850),i=r(91239),o=r(31608),a=r(75464),s=r(51584),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw new l(a(e)+" is not iterable")}},87151:(e,t,r)=>{"use strict";var n=r(91239),i=r(13192);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},95668:(e,t,r)=>{"use strict";var n=r(91239),i=r(31608),o=r(54850),a=r(40466),s=r(83036),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=n(e.has),this.keys=n(e.keys)};h.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(l);var r=a(t);if(r<0)throw new c(l);return new h(e,r)}},14823:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},56164:(e,t,r)=>{"use strict";var n=r(27707),i=r(92522),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},43114:e=>{"use strict";e.exports={}},30904:(e,t,r)=>{"use strict";var n=r(73542);e.exports=n("document","documentElement")},29704:(e,t,r)=>{"use strict";var n=r(59519),i=r(28084),o=r(32760);e.exports=!n&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},71178:(e,t,r)=>{"use strict";var n=r(27707),i=r(28084),o=r(15687),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},15167:(e,t,r)=>{"use strict";var n=r(27707),i=r(24706),o=r(65704),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},52428:(e,t,r)=>{"use strict";var n,i,o,a=r(19279),s=r(14823),l=r(96821),c=r(59266),u=r(56164),d=r(65704),h=r(14658),p=r(43114),f="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,n=function(e,t){if(_.has(e))throw new m
vendor: 7,165 bytes, line 2
2(f);return t.facade=e,_.set(e,t),t},i=function(e){return _.get(e)||{}},o=function(e){return _.has(e)}}else{var y=h("state");p[y]=!0,n=function(e,t){if(u(e,y))throw new m(f);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return r}}}},13356:(e,t,r)=>{"use strict";var n=r(54352),i=r(14614),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},24706:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},66079:(e,t,r)=>{"use strict";var n=r(28084),i=r(24706),o=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},60056:(e,t,r)=>{"use strict";var n=r(87972),i=r(56164),o=r(13192),a=r(54352),s=r(14614),l=a("iterator"),c=Object;e.exports=function(e){if(o(e))return!1;var t=c(e);return void 0!==t[l]||"@@iterator"in t||i(s,n(t))}},13192:e=>{"use strict";e.exports=function(e){return null===e||void 0===e}},96821:(e,t,r)=>{"use strict";var n=r(24706);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},78682:(e,t,r)=>{"use strict";var n=r(96821);e.exports=function(e){return n(e)||null===e}},17592:e=>{"use strict";e.exports=!1},7970:(e,t,r)=>{"use strict";var n=r(73542),i=r(24706),o=r(86864),a=r(24111),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},89110:(e,t,r)=>{"use strict";var n=r(54850);e.exports=function(e,t,r){for(var i,o,a=r?e:e.iterator,s=e.next;!(i=n(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},31183:(e,t,r)=>{"use strict";var n=r(39055),i=r(54850),o=r(31608),a=r(75464),s=r(13356),l=r(51591),c=r(86864),u=r(20836),d=r(51584),h=r(93858),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,r){var g,_,y,v,b,x,w,A=r&&r.that,S=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),T=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),C=n(t,A),I=function(e){return g&&h(g,"normal",e),new f(!0,e)},M=function(e){return S?(o(e),P?C(e[0],e[1],I):C(e[0],e[1])):P?C(e,I):C(e)};if(E)g=e.iterator;else if(T)g=e;else{if(!(_=d(e)))throw new p(a(e)+" is not iterable");if(s(_)){for(y=0,v=l(e);v>y;y++)if((b=M(e[y]))&&c(m,b))return b;return new f(!1)}g=u(e,_)}for(x=E?e.next:g.next;!(w=i(x,g)).done;){try{b=M(w.value)}catch(k){h(g,"throw",k)}if("object"==typeof b&&b&&c(m,b))return b}return new f(!1)}},93858:(e,t,r)=>{"use strict";var n=r(54850),i=r(31608),o=r(87151);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw r;if(s)throw a;return i(a),r}},78501:(e,t,r)=>{"use strict";var n=r(79940).IteratorPrototype,i=r(36115),o=r(86369),a=r(98528),s=r(14614),l=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=i(n,{next:o(+!c,r)}),a(e,u,!1,!0),s[u]=l,e}},14415:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(17592),a=r(32345),s=r(24706),l=r(78501),c=r(2972),u=r(464),d=r(98528),h=r(59266),p=r(15551),f=r(54352),m=r(14614),g=r(79940),_=a.PROPER,y=a.CONFIGURABLE,v=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=f("iterator"),w="keys",A="values",S="entries",E=function(){return this};e.exports=function(e,t,r,a,f,g,T){l(r,t,a);var P,C,I,M=function(e){if(e===f&&D)return D;if(!b&&e&&e in R)return R[e];switch(e){case w:case A:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",O=!1,R=e.prototype,L=R[x]||R["@@iterator"]||f&&R[f],D=!b&&L||M(f),N="Array"===t&&R.entries||L;if(N&&(P=c(N.call(new e)))!==Object.prototype&&P.next&&(o||c(P)===v||(u?u(P,v):s(P[x])||p(P,x,E)),d(P,k,!0,!0),o&&(m[k]=E)),_&&f===A&&L&&L.name!==A&&(!o&&y?h(R,"name",A):(O=!0,D=function(){return i(L,this)})),f)if(C={values:M(A),keys:g?D:M(w),entries:M(S)},T)for(I in C)(b||O||!(I in R))&&p(R,I,C[I]);else n({target:t,proto:!0,forced:b||O},C);return o&&!T||R[x]===D||p(R,x,D,{name:f}),m[t]=D,C}},79940:(e,t,r)=>{"use strict";var n,i,o,a=r(28084),s=r(24706),l=r(96821),c=r(36115),u=r(2972),d=r(15551),h=r(54352),p=r(17592),f=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):m=!0),!l(n)||a((function(){var e={};return n[f].call(e)!==e}))?n={}:p&&(n=c(n)),s(n[f])||d(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},14614:e=>{"use strict";e.exports={}},51591:(e,t,r)=>{"use strict";var n=r(38249);e.exports=function(e){return n(e.length)}},84416:(e,t,r)=>{"use strict";var n=r(27707),i=r(28084),o=r(24706),a=r(56164),s=r(59519),l=r(32345).CONFIGURABLE,c=r(15167),u=r(52428),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),_=n([].join),y=s&&!i((function(){return 8!==f((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&a(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=d(e);return a(n,"source")||(n.source=_(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return o(this)&&h(this).source||c(this)}),"toString")},96223:(e,t,r)=>{"use strict";var n=r(27707),i=Map.prototype;e.exports={Map:Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},60468:(e,t,r)=>{"use strict";var n=r(27707),i=r(89110),o=r(96223),a=o.Map,s=o.proto,l=n(s.forEach),c=n(s.entries),u=c(new a).next;e.exports=function(e,t,r){return r?i({iterator:c(e),next:u},(function(e){return t(e[1],e[0])})):l(e,t)}},79344:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},36115:(e,t,r)=>{"use strict";var n,i=r(31608),o=r(68612),a=r(16672),s=r(43114),l=r(30904),c=r(32760),u=r(14658),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&n?g(n):function(){var e,t=c("iframe"),r="java"+h+":";return t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F}():g(n);for(var e=a.length;e--;)delete _[d][a[e]];return _()};s[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[d]=i(e),r=new f,f[d]=null,r[p]=e):r=_(),void 0===t?r:o.f(r,t)}},68612:(e,t,r)=>{"use strict";
vendor: 2,237 bytes, line 2
2var n=r(59519),i=r(253),o=r(73572),a=r(31608),s=r(26774),l=r(1523);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},73572:(e,t,r)=>{"use strict";var n=r(59519),i=r(29704),o=r(253),a=r(31608),s=r(23326),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"===typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=u(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},55214:(e,t,r)=>{"use strict";var n=r(59519),i=r(54850),o=r(54022),a=r(86369),s=r(26774),l=r(23326),c=r(56164),u=r(29704),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(r){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},17251:(e,t,r)=>{"use strict";var n=r(4061),i=r(16672).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},96842:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},2972:(e,t,r)=>{"use strict";var n=r(56164),i=r(24706),o=r(92522),a=r(14658),s=r(30814),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},86864:(e,t,r)=>{"use strict";var n=r(27707);e.exports=n({}.isPrototypeOf)},4061:(e,t,r)=>{"use strict";var n=r(27707),i=r(56164),o=r(26774),a=r(40972).indexOf,s=r(43114),l=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(s,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~a(u,r)||l(u,r));return u}},1523:(e,t,r)=>{"use strict";var n=r(4061),i=r(16672);e.exports=Object.keys||function(e){return n(e,i)}},54022:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},464:(e,t,r)=>{"use strict";var n=r(60119),i=r(96821),o=r(70327),a=r(6579);
vendor: 6,764 bytes, line 2
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return o(r),a(n),i(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},32509:(e,t,r)=>{"use strict";var n=r(54850),i=r(24706),o=r(96821),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},92682:(e,t,r)=>{"use strict";var n=r(73542),i=r(27707),o=r(17251),a=r(96842),s=r(31608),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?l(t,r(e)):t}},70327:(e,t,r)=>{"use strict";var n=r(13192),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},5134:e=>{"use strict";e.exports=function(e,t){return e===t||e!==e&&t!==t}},72201:(e,t,r)=>{"use strict";var n=r(83313),i=r(40538),o=n.Set,a=n.add;e.exports=function(e){var t=new o;return i(e,(function(e){a(t,e)})),t}},33417:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313),o=r(72201),a=r(80583),s=r(95668),l=r(40538),c=r(89110),u=i.has,d=i.remove;e.exports=function(e){var t=n(this),r=s(e),i=o(t);return a(t)<=r.size?l(t,(function(e){r.includes(e)&&d(i,e)})):c(r.getIterator(),(function(e){u(t,e)&&d(i,e)})),i}},83313:(e,t,r)=>{"use strict";var n=r(27707),i=Set.prototype;e.exports={Set:Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},65451:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313),o=r(80583),a=r(95668),s=r(40538),l=r(89110),c=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=n(this),r=a(e),i=new c;return o(t)>r.size?l(r.getIterator(),(function(e){d(t,e)&&u(i,e)})):s(t,(function(e){r.includes(e)&&u(i,e)})),i}},45260:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313).has,o=r(80583),a=r(95668),s=r(40538),l=r(89110),c=r(93858);e.exports=function(e){var t=n(this),r=a(e);if(o(t)<=r.size)return!1!==s(t,(function(e){if(r.includes(e))return!1}),!0);var u=r.getIterator();return!1!==l(u,(function(e){if(i(t,e))return c(u,"normal",!1)}))}},11307:(e,t,r)=>{"use strict";var n=r(91511),i=r(80583),o=r(40538),a=r(95668);e.exports=function(e){var t=n(this),r=a(e);return!(i(t)>r.size)&&!1!==o(t,(function(e){if(!r.includes(e))return!1}),!0)}},88458:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313).has,o=r(80583),a=r(95668),s=r(89110),l=r(93858);e.exports=function(e){var t=n(this),r=a(e);if(o(t)<r.size)return!1;var c=r.getIterator();return!1!==s(c,(function(e){if(!i(t,e))return l(c,"normal",!1)}))}},40538:(e,t,r)=>{"use strict";var n=r(27707),i=r(89110),o=r(83313),a=o.Set,s=o.proto,l=n(s.forEach),c=n(s.keys),u=c(new a).next;e.exports=function(e,t,r){return r?i({iterator:c(e),next:u},t):l(e,t)}},80583:(e,t,r)=>{"use strict";var n=r(60119),i=r(83313);e.exports=n(i.proto,"size","get")||function(e){return e.size}},98891:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313),o=r(72201),a=r(95668),s=r(89110),l=i.add,c=i.has,u=i.remove;e.exports=function(e){var t=n(this),r=a(e).getIterator(),i=o(t);return s(r,(function(e){c(t,e)?u(i,e):l(i,e)})),i}},98528:(e,t,r)=>{"use strict";var n=r(73572).f,i=r(56164),o=r(54352)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},63503:(e,t,r)=>{"use strict";var n=r(91511),i=r(83313).add,o=r(72201),a=r(95668),s=r(89110);e.exports=function(e){var t=n(this),r=a(e).getIterator(),l=o(t);return s(r,(function(e){i(l,e)})),l}},14658:(e,t,r)=>{"use strict";var n=r(10816),i=r(27899),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},65704:(e,t,r)=>{"use strict";var n=r(17592),i=r(14823),o=r(93036),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.40.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},10816:(e,t,r)=>{"use strict";var n=r(65704);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},84030:(e,t,r)=>{"use strict";var n=r(10166),i=r(28084),o=r(14823).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},52201:(e,t,r)=>{"use strict";var n=r(40466),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},26774:(e,t,r)=>{"use strict";var n=r(71178),i=r(70327);e.exports=function(e){return n(i(e))}},40466:(e,t,r)=>{"use strict";var n=r(79344);e.exports=function(e){var t=+e;return t!==t||0===t?0:n(t)}},38249:(e,t,r)=>{"use strict";var n=r(40466),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},92522:(e,t,r)=>{"use strict";var n=r(70327),i=Object;e.exports=function(e){return i(n(e))}},99140:(e,t,r)=>{"use strict";var n=r(54850),i=r(96821),o=r(7970),a=r(87151),s=r(32509),l=r(54352),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=a(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},23326:(e,t,r)=>{"use strict";var n=r(99140),i=r(7970);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},2929:(e,t,r)=>{"use strict";var n=r(73542),i=r(24706),o=r(60056),a=r(96821),s=n("Set");e.exports=function(e){return function(e){return a(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:o(e)?new s(e):e}},1415:(e,t,r)=>{"use strict";var n={};n[r(54352)("toStringTag")]="z",e.exports="[object z]"===String(n)},74776:(e,t,r)=>{"use strict";var n=r(87972),i=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},75464:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},27899:(e,t,r)=>{"use strict";var n=r(27707),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},24111:(e,t,r)=>{"use strict";var n=r(84030);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},253:(e,t,r)=>{"use strict";var n=r(59519),i=r(28084);e.exports=n&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},19279:(e,t,r)=>{"use strict";var n=r(14823),i=r(24706),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},54352:(e,t,r)=>{"use strict";var n=r(14823),i=r(10816),o=r(56164),a=r(27899),s=r(84030),l=r(24111),c=n.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},82091:(e,t,r)=>{"use strict";
2var n=r(26774),i=r(53348),o=r(14614),a=r(52428),s=r(73572).f,l=r(14415),c=r(11830),u=r(17592),d=r(59519),h="Array Iterator",p=a.set,f=a.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},42715:(e,t,r)=>{"use strict";var n=r(96715),i=r(27707),o=r(91239),a=r(70327),s=r(31183),l=r(96223),c=r(17592),u=r(28084),d=l.Map,h=l.has,p=l.get,f=l.set,m=i([].push),g=c||u((function(){return 1!==d.groupBy("ab",(function(e){return e})).get("a").length}));n({target:"Map",stat:!0,forced:c||g},{groupBy:function(e,t){a(e),o(t);var r=new d,n=0;return s(e,(function(e){var i=t(e,n++);h(r,i)?m(p(r,i),e):f(r,i,[e])})),r}})},41182:(e,t,r)=>{"use strict";var n=r(96715),i=r(96129),o=r(96223).remove;n({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,a=arguments.length;n<a;n++)e=o(t,arguments[n]),r=r&&e;return!!r}})},51236:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e,n){if(!r(e,n,t))return!1}),!0)}})},64321:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(96223),s=r(60468),l=a.Map,c=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,(function(e,i){r(e,i,t)&&c(n,i,e)})),n}})},41198:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,(function(e,n){if(r(e,n,t))return{key:n}}),!0);return n&&n.key}})},82396:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,(function(e,n){if(r(e,n,t))return{value:e}}),!0);return n&&n.value}})},651:(e,t,r)=>{"use strict";var n=r(96715),i=r(96223);n({target:"Map",stat:!0,forced:!0},{from:r(57274)(i.Map,i.set,!0)})},50484:(e,t,r)=>{"use strict";r(42715)},87794:(e,t,r)=>{"use strict";var n=r(96715),i=r(5134),o=r(96129),a=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(o(this),(function(t){if(i(t,e))return!0}),!0)}})},43944:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(31183),a=r(24706),s=r(91239),l=r(96223).Map;n({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var r=new(a(this)?this:l);s(t);var n=s(r.set);return o(e,(function(e){i(n,r,t(e),e)})),r}})},336:(e,t,r)=>{"use strict";var n=r(96715),i=r(96129),o=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(i(this),(function(t,r){if(t===e)return{key:r}}),!0);return t&&t.key}})},36614:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(96223),s=r(60468),l=a.Map,c=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,(function(e,i){c(n,r(e,i,t),e)})),n}})},10352:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(96223),s=r(60468),l=a.Map,c=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,(function(e,i){c(n,i,r(e,i,t))})),n}})},50031:(e,t,r)=>{"use strict";var n=r(96715),i=r(96129),o=r(31183),a=r(96223).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=i(this),r=arguments.length,n=0;n<r;)o(arguments[n++],(function(e,r){a(t,e,r)}),{AS_ENTRIES:!0});return t}})},80870:(e,t,r)=>{"use strict";var n=r(96715),i=r(96223);n({target:"Map",stat:!0,forced:!0},{of:r(60107)(i.Map,i.set,!0)})},81413:(e,t,r)=>{"use strict";var n=r(96715),i=r(91239),o=r(96129),a=r(60468),s=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),r=arguments.length<2,n=r?void 0:arguments[1];if(i(e),a(t,(function(i,o){r?(r=!1,n=i):n=e(n,i,o,t)})),r)throw new s("Reduce of empty map with no initial value");return n}})},88787:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(96129),a=r(60468);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e,n){if(r(e,n,t))return!0}),!0)}})},54790:(e,t,r)=>{"use strict";var n=r(96715),i=r(91239),o=r(96129),a=r(96223),s=TypeError,l=a.get,c=a.has,u=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var r=o(this),n=arguments.length;i(t);var a=c(r,e);if(!a&&n<3)throw new s("Updating absent value");var d=a?l(r,e):i(n>2?arguments[2]:void 0)(e,r);return u(r,e,t(d,e,r)),r}})},70416:(e,t,r)=>{"use strict";var n=r(96715),i=r(91511),o=r(83313).add;n({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,r=arguments.length;t<r;t++)o(e,arguments[t]);return e}})},70372:(e,t,r)=>{"use strict";var n=r(96715),i=r(91511),o=r(83313).remove;n({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,a=arguments.length;n<a;n++)e=o(t,arguments[n]),r=r&&e;return!!r}})},11934:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(33417);n({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return i(a,this,o(e))}})},96646:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(91511),a=r(40538);n({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e){if(!r(e,e,t))return!1}),!0)}})},34351:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(91511),a=r(83313),s=r(40538),l=a.Set,c=a.add;n({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,(function(e){r(e,e,t)&&c(n,e)})),n}})},47218:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(91511),a=r(40538);n({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=a(t,(function(e){if(r(e,e,t))return{value:e}}),!0);return n&&n.value}})},98205:(e,t,r)=>{"use strict";var n=r(96715),i=r(83313);n({target:"Set",stat:!0,forced:!0},{from:r(57274)(i.Set,i.add,!1)})},23192:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(65451);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return i(a,this,o(e))}})},53859:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(45260);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(a,this,o(e))}})},11128:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(11307);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(a,this,o(e))}})},16737:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(88458);n({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(a,this,o(e))}})},20197:(e,t,r)=>{"use strict";var n=r(96715),i=r(27707),o=r(91511),a=r(40538),s=r(74776),l=i([].join),c=i([].push);n({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),r=void 0===e?",":s(e),n=[];return a(t,(function(e){c(n,e)})),l(n,r)}})},79359:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(91511),a=r(83313),s=r(40538),l=a.Set,c=a.add;n({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0),n=new l;return s(t,(function(e){c(n,r(e,e,t))})),n}})},38820:(e,t,r)=>{"use strict";var n=r(96715),i=r(83313);n({target:"Set",stat:!0,forced:!0},{of:r(60107)(i.Set,i.add,!1)})},32707:(e,t,r)=>{"use strict";var n=r(96715),i=r(91239),o=r(91511),a=r(40538),s=TypeError;n({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),r=arguments.length<2,n=r?void 0:arguments[1];if(i(e),a(t,(function(i){r?(r=!1,n=i):n=e(n,i,i,t)})),r)throw new s("Reduce of empty set with no initial value");return n}})},7417:(e,t,r)=>{"use strict";var n=r(96715),i=r(39055),o=r(91511),a=r(40538);n({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),r=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e){if(r(e,e,t))return!0}),!0)}})},4532:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(98891);n({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(a,this,o(e))}})},72902:(e,t,r)=>{"use strict";var n=r(96715),i=r(54850),o=r(2929),a=r(63503);n({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return i(a,this,o(e))}})},12200:(e,t,r)=>{"use strict";var n=r(14823),i=r(12239),o=r(58757),a=r(82091),s=r(59266),l=r(98528),c=r(54352)("iterator"),u=a.values,d=function(e,t){if(e){if(e[c]!==u)try{s(e,c,u)}catch(n){e[c]=u}if(l(e,t,!0),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(n){e[r]=a[r]}}};for(var h in i)d(n[h]&&n[h].prototype,h);d(o,"DOMTokenList")},70536:(e,t,r)=>{"use strict";var n=r(60002)("%Array.prototype%"),i=r(1725),o=r(62557),a=r(54902),s=r(99507),l=r(78084),c=r(90799);e.exports=function(e){if(!s(e)||e<0)throw new a("Assertion failed: `length` must be an integer Number >= 0");if(e>l)throw new i("length is greater than (2**32 - 1)");var t=arguments.length>1?arguments[1]:n,r=[];if(t!==n){if(!c)throw new o("ArrayCreate: a `proto` argument that is not `Array.prototype` is not supported in an environment that does not support setting the [[Prototype]]");c(r,t)}return 0!==e&&(r.length=e),r}},35340:(e,t,r)=>{"use strict";var n=r(60002)("%Symbol.species%",!0),i=r(54902),o=r(99507),a=r(70536),s=r(80489),l=r(76260),c=r(28633),u=r(30311);e.exports=function(e,t){if(!o(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");if(!l(e))return a(t);var r=s(e,"constructor");if(n&&u(r)&&null===(r=s(r,n))&&(r=void 0),"undefined"===typeof r)return a(t);if(!c(r))throw new i("C must be a constructor");return new r(t)}},95073:(e,t,r)=>{"use strict";
vendor: 12,894 bytes, line 2
2var n=r(60002),i=r(88117),o=r(54902),a=r(76260),s=n("%Reflect.apply%",!0)||i("Function.prototype.apply");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!a(r))throw new o("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,r)}},14552:(e,t,r)=>{"use strict";var n=r(54902),i=r(23818),o=r(9535),a=r(30311);e.exports=function(e,t,r){if(!a(e))throw new n("Assertion failed: Type(O) is not Object");if(!i(t))throw new n("Assertion failed: P is not a Property Key");return o(e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":r,"[[Writable]]":!0})}},65549:(e,t,r)=>{"use strict";var n=r(54902),i=r(14552),o=r(30311),a=r(23818);e.exports=function(e,t,r){if(!o(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: P is not a Property Key");if(!i(e,t,r))throw new n("unable to create data property")}},71356:(e,t,r)=>{"use strict";var n=r(54902),i=r(97694),o=r(90102),a=r(8293),s=r(71328),l=r(23818),c=r(7854),u=r(25512),d=r(30311);e.exports=function(e,t,r){if(!d(e))throw new n("Assertion failed: Type(O) is not Object");if(!l(t))throw new n("Assertion failed: P is not a Property Key");var h=i(r)?r:u(r);if(!i(h))throw new n("Assertion failed: Desc is not a valid Property Descriptor");return o(s,c,a,e,t,h)}},18948:(e,t,r)=>{"use strict";var n=r(54902),i=r(47888),o=r(95073),a=r(65549),s=r(80489),l=r(11292),c=r(76260),u=r(6196),d=r(80205);e.exports=function e(t,r,h,p,f){var m;arguments.length>5&&(m=arguments[5]);for(var g=p,_=0;_<h;){var y=d(_);if(!0===l(r,y)){var v=s(r,y);if("undefined"!==typeof m){if(arguments.length<=6)throw new n("Assertion failed: thisArg is required when mapperFunction is provided");v=o(m,arguments[6],[v,_,r])}var b=!1;if(f>0&&(b=c(v)),b){g=e(t,v,u(v),g,f-1)}else{if(g>=i)throw new n("index too large");a(t,d(g),v),g+=1}}_+=1}return g}},8293:(e,t,r)=>{"use strict";var n=r(54902),i=r(97694),o=r(43028);e.exports=function(e){if("undefined"!==typeof e&&!i(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return o(e)}},80489:(e,t,r)=>{"use strict";var n=r(54902),i=r(68206),o=r(30311),a=r(23818);e.exports=function(e,t){if(!o(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: P is not a Property Key, got "+i(t));return e[t]}},11292:(e,t,r)=>{"use strict";var n=r(54902),i=r(30311),o=r(23818);e.exports=function(e,t){if(!i(e))throw new n("Assertion failed: `O` must be an Object");if(!o(t))throw new n("Assertion failed: `P` must be a Property Key");return t in e}},36535:(e,t,r)=>{"use strict";var n=r(54902),i=r(34384),o=r(97694);e.exports=function(e){if("undefined"===typeof e)return!1;if(!o(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!(!i(e,"[[Get]]")&&!i(e,"[[Set]]"))}},76260:(e,t,r)=>{"use strict";e.exports=r(76743)},53209:(e,t,r)=>{"use strict";e.exports=r(78799)},28633:(e,t,r)=>{"use strict";var n=r(57109)("%Reflect.construct%",!0),i=r(71356);try{i({},"",{"[[Get]]":function(){}})}catch(s){i=null}if(i&&n){var o={},a={};i(a,"length",{"[[Get]]":function(){throw o},"[[Enumerable]]":!0}),e.exports=function(e){try{n(e,a)}catch(t){return t===o}}}else e.exports=function(e){return"function"===typeof e&&!!e.prototype}},71328:(e,t,r)=>{"use strict";var n=r(54902),i=r(34384),o=r(97694);e.exports=function(e){if("undefined"===typeof e)return!1;if(!o(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!(!i(e,"[[Value]]")&&!i(e,"[[Writable]]"))}},51756:(e,t,r)=>{"use strict";var n=r(60002),i=n("%Object.preventExtensions%",!0),o=n("%Object.isExtensible%",!0),a=r(19023);e.exports=i?function(e){return!a(e)&&o(e)}:function(e){return!a(e)}},19465:(e,t,r)=>{"use strict";var n=r(54902),i=r(36535),o=r(71328),a=r(97694);e.exports=function(e){if("undefined"===typeof e)return!1;if(!a(e))throw new n("Assertion failed: `Desc` must be a Property Descriptor");return!i(e)&&!o(e)}},6196:(e,t,r)=>{"use strict";var n=r(54902),i=r(80489),o=r(38236),a=r(30311);e.exports=function(e){if(!a(e))throw new n("Assertion failed: `obj` must be an Object");return o(i(e,"length"))}},9535:(e,t,r)=>{"use strict";var n=r(95558),i=r(62557),o=r(54902),a=r(97694),s=r(36535),l=r(51756),c=r(23818),u=r(25512),d=r(7854),h=r(14244),p=r(30311);e.exports=function(e,t,r){if(!p(e))throw new o("Assertion failed: O must be an Object");if(!c(t))throw new o("Assertion failed: P must be a Property Key");if(!a(r))throw new o("Assertion failed: Desc must be a Property Descriptor");if(!n){if(s(r))throw new i("This environment does not support accessor property descriptors.");var f=!(t in e)&&r["[[Writable]]"]&&r["[[Enumerable]]"]&&r["[[Configurable]]"]&&"[[Value]]"in r,m=t in e&&(!("[[Configurable]]"in r)||r["[[Configurable]]"])&&(!("[[Enumerable]]"in r)||r["[[Enumerable]]"])&&(!("[[Writable]]"in r)||r["[[Writable]]"])&&"[[Value]]"in r;if(f||m)return e[t]=r["[[Value]]"],d(e[t],r["[[Value]]"]);throw new i("This environment does not support defining non-writable, non-enumerable, or non-configurable properties")}var g=n(e,t),_=g&&u(g),y=l(e);return h(e,t,y,r,_)}},7854:(e,t,r)=>{"use strict";var n=r(42816);e.exports=function(e,t){return e===t?0!==e||1/e===1/t:n(e)&&n(t)}},77392:(e,t,r)=>{"use strict";var n=r(60002),i=n("%RegExp%"),o=r(54902),a=n("%parseInt%"),s=r(88117),l=r(40066),c=s("String.prototype.slice"),u=l(/^0b[01]+$/i),d=l(/^0o[0-7]+$/i),h=l(/^[-+]0x[0-9a-f]+$/i),p=l(new i("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),f=r(59393);e.exports=function e(t){if("string"!==typeof t)throw new o("Assertion failed: `argument` is not a String");if(u(t))return+a(c(t,2),2);if(d(t))return+a(c(t,2),8);if(p(t)||h(t))return NaN;var r=f(t);return r!==t?e(r):+t}},55350:e=>{"use strict";e.exports=function(e){return!!e}},30193:(e,t,r)=>{"use strict";var n=r(4385),i=r(45287),o=r(42816),a=r(51194);e.exports=function(e){var t=n(e);return o(t)||0===t?0:a(t)?i(t):t}},38236:(e,t,r)=>{"use strict";var n=r(47888),i=r(30193);e.exports=function(e){var t=i(e);return t<=0?0:t>n?n:t}},4385:(e,t,r)=>{"use strict";var n=r(60002),i=r(54902),o=n("%Number%"),a=r(19023),s=r(86683),l=r(77392);e.exports=function(e){var t=a(e)?e:s(e,o);if("symbol"===typeof t)throw new i("Cannot convert a Symbol value to a number");if("bigint"===typeof t)throw new i("Conversion from 'BigInt' to 'number' is not allowed.");return"string"===typeof t?l(t):+t}},16547:(e,t,r)=>{"use strict";e.exports=r(34105)},86683:(e,t,r)=>{"use strict";var n=r(39536);e.exports=function(e){return arguments.length>1?n(e,arguments[1]):n(e)}},25512:(e,t,r)=>{"use strict";var n=r(34384),i=r(54902),o=r(53209),a=r(55350),s=r(30311);e.exports=function(e){if(!s(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(n(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),n(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),n(e,"value")&&(t["[[Value]]"]=e.value),n(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),n(e,"get")){var r=e.get;if("undefined"!==typeof r&&!o(r))throw new i("getter must be a function");t["[[Get]]"]=r}if(n(e,"set")){var l=e.set;if("undefined"!==typeof l&&!o(l))throw new i("setter must be a function");t["[[Set]]"]=l}if((n(t,"[[Get]]")||n(t,"[[Set]]"))&&(n(t,"[[Value]]")||n(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},80205:(e,t,r)=>{"use strict";var n=r(60002)("%String%"),i=r(54902);e.exports=function(e){if("symbol"===typeof e)throw new i("Cannot convert a Symbol value to a string");return n(e)}},33029:(e,t,r)=>{"use strict";var n=r(52814);e.exports=function(e){return"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":n(e)}},14244:(e,t,r)=>{"use strict";var n=r(54902),i=r(90102),o=r(80434),a=r(97694),s=r(8293),l=r(36535),c=r(71328),u=r(19465),d=r(23818),h=r(7854),p=r(33029),f=r(30311);e.exports=function(e,t,r,m,g){var _,y,v=p(e);if("undefined"!==typeof e&&!f(e))throw new n("Assertion failed: O must be undefined or an Object");if(!d(t))throw new n("Assertion failed: P must be a Property Key");if("boolean"!==typeof r)throw new n("Assertion failed: extensible must be a Boolean");if(!a(m))throw new n("Assertion failed: Desc must be a Property Descriptor");if("undefined"!==typeof g&&!a(g))throw new n("Assertion failed: current must be a Property Descriptor, or undefined");if("undefined"===typeof g)return!!r&&("Undefined"===v||(l(m)?i(c,h,s,e,t,m):i(c,h,s,e,t,{"[[Configurable]]":!!m["[[Configurable]]"],"[[Enumerable]]":!!m["[[Enumerable]]"],"[[Value]]":m["[[Value]]"],"[[Writable]]":!!m["[[Writable]]"]})));if(!o({IsAccessorDescriptor:l,IsDataDescriptor:c},g))throw new n("`current`, when present, must be a fully populated and valid Property Descriptor");if(!g["[[Configurable]]"]){if("[[Configurable]]"in m&&m["[[Configurable]]"])return!1;if("[[Enumerable]]"in m&&!h(m["[[Enumerable]]"],g["[[Enumerable]]"]))return!1;if(!u(m)&&!h(l(m),l(g)))return!1;if(l(g)){if("[[Get]]"in m&&!h(m["[[Get]]"],g["[[Get]]"]))return!1;if("[[Set]]"in m&&!h(m["[[Set]]"],g["[[Set]]"]))return!1}else if(!g["[[Writable]]"]){if("[[Writable]]"in m&&m["[[Writable]]"])return!1;if("[[Value]]"in m&&!h(m["[[Value]]"],g["[[Value]]"]))return!1}}return"Undefined"===v||(c(g)&&l(m)?(_=("[[Configurable]]"in m?m:g)["[[Configurable]]"],y=("[[Enumerable]]"in m?m:g)["[[Enumerable]]"],i(c,h,s,e,t,{"[[Configurable]]":!!_,"[[Enumerable]]":!!y,"[[Get]]":("[[Get]]"in m?m:g)["[[Get]]"],"[[Set]]":("[[Set]]"in m?m:g)["[[Set]]"]})):l(g)&&c(m)?(_=("[[Configurable]]"in m?m:g)["[[Configurable]]"],y=("[[Enumerable]]"in m?m:g)["[[Enumerable]]"],i(c,h,s,e,t,{"[[Configurable]]":!!_,"[[Enumerable]]":!!y,"[[Value]]":("[[Value]]"in m?m:g)["[[Value]]"],"[[Writable]]":!!("[[Writable]]"in m?m:g)["[[Writable]]"]})):i(c,h,s,e,t,m))}},75579:(e,t,r)=>{"use strict";var n=r(31911);e.exports=function(e){return"bigint"===typeof e?e:n(e)}},45287:(e,t,r)=>{"use strict";var n=r(75579),i=r(54902);e.exports=function(e){if("number"!==typeof e&&"bigint"!==typeof e)throw new i("argument must be a Number or a BigInt");var t=e<0?-n(-e):n(e);return 0===t?0:t}},52814:(e,t,r)=>{"use strict";var n=r(30311);e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":n(e)?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},57109:(e,t,r)=>{"use strict";e.exports=r(60002)},90102:(e,t,r)=>{"use strict";var n=r(12101),i=r(82090),o=n.hasArrayLengthDefineBug(),a=o&&r(76743),s=r(88117)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,r,n,l,c){if(!i){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(l in n&&s(n,l)!==!!c["[[Enumerable]]"])return!1;var u=c["[[Value]]"];return n[l]=u,t(n[l],u)}return o&&"length"===l&&"[[Value]]"in c&&a(n)&&n.length!==c["[[Value]]"]?(n.length=c["[[Value]]"],n.length===c["[[Value]]"]):(i(n,l,r(c)),!0)}},76743:(e,t,r)=>{"use strict";var n=r(60002)("%Array%"),i=!n.isArray&&r(88117)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===i(e)}},43028:e=>{"use strict";e.exports=function(e){if("undefined"===typeof e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}},80434:(e,t,r)=>{"use strict";var n=r(97694);e.exports=function(e,t){return n(t)&&"[[Enumerable]]"in t&&"[[Configurable]]"in t&&(e.IsAccessorDescriptor(t)||e.IsDataDescriptor(t))}},30311:e=>{"use strict";e.exports=function(e){return!!e&&("function"===typeof e||"object"===typeof e)}},19023:e=>{"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},23818:e=>{"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},97694:(e,t,r)=>{"use strict";var n=r(54902),i=r(34384),o={__proto__:null,"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};e.exports=function(e){if(!e||"object"!==typeof e)return!1;for(var t in e)if(i(e,t)&&!o[t])return!1;var r=i(e,"[[Value]]")||i(e,"[[Writable]]"),a=i(e,"[[Get]]")||i(e,"[[Set]]");if(r&&a)throw new n("Property Descriptors may not be both accessor and data descriptors");return!0}},9417:(e,t,r)=>{"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{A:()=>n})},64467:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(20816);function i(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},58168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
2).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},77387:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(63662);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},89379:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64467);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},80045:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(98587);function i(e,t){if(null==e)return{};var r,i,o=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},98587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},63662:(e,t,r)=>{"use strict";
2function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},20816:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(82284);function i(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=(0,n.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},82284:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},58387:(e,t,r)=>{"use strict";function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}r.d(t,{A:()=>i});const i=function(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i}},77217:(e,t,r)=>{"use strict";r.d(t,{A:()=>je});var n,i,o=9e15,a=1e9,s="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",u={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-o,maxE:o,crypto:!1},d=!0,h="[DecimalError] ",p=h+"Invalid argument: ",f=h+"Precision limit exceeded",m=h+"crypto unavailable",g="[object Decimal]",_=Math.floor,y=Math.pow,v=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,b=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,x=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,S=l.length-1,E=c.length-1,T={toStringTag:g};function P(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=z(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=z(r))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}function C(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function I(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=y(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==y(10,t-2)-1||(s==o/2||0==s)&&0==(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>
vendor: 10,243 bytes, line 2
23&&s+1==o/2)&&(e[i+1]/o/1e3|0)==y(10,t-3)-1,a}function M(e,t,r){for(var n,i,o=[0],a=0,l=e.length;a<l;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=s.indexOf(e.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}T.absoluteValue=T.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)},T.ceil=function(){return O(new this.constructor(this),this.e+1,2)},T.clampedTo=T.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(p+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},T.comparedTo=T.cmp=function(e){var t,r,n,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1},T.cosine=T.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?i=(1/Z(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");e.precision+=r,t=Y(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,K(n,r)),n.precision=e,n.rounding=t,O(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},T.cubeRoot=T.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,u=this,h=u.constructor;if(!u.isFinite()||u.isZero())return new h(u);for(d=!1,(o=u.s*y(u.s*u,1/3))&&Math.abs(o)!=1/0?n=new h(o.toString()):(r=P(u.d),(o=((e=u.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=y(r,1/3),e=_((e+1)/3)-(e%3==(e<0?-1:2)),(n=new h(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=u.s),a=(e=h.precision)+3;;)if(c=(l=(s=n).times(s).times(s)).plus(u),n=k(c.plus(u).times(s),c.plus(l),a+2,1),P(s.d).slice(0,a)===(r=P(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(O(n,e+1,1),t=!n.times(n).times(n).eq(u));break}if(!i&&(O(s,e+1,0),s.times(s).times(s).eq(u))){n=s;break}a+=4,i=1}return d=!0,O(n,e,h.rounding,t)},T.decimalPlaces=T.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-_(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},T.dividedBy=T.div=function(e){return k(this,new this.constructor(e))},T.dividedToIntegerBy=T.divToInt=function(e){var t=this.constructor;return O(k(this,new t(e),0,1,1),t.precision,t.rounding)},T.equals=T.eq=function(e){return 0===this.cmp(e)},T.floor=function(){return O(new this.constructor(this),this.e+1,3)},T.greaterThan=T.gt=function(e){return this.cmp(e)>0},T.greaterThanOrEqualTo=T.gte=function(e){var t=this.cmp(e);return 1==t||0===t},T.hyperbolicCosine=T.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/Z(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=Y(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return O(o,a.precision=r,a.rounding=n,!0)},T.hyperbolicSine=T.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Y(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=Y(o,2,i=i.times(1/Z(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=r,O(i,t,r,!0)},T.hyperbolicTangent=T.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,k(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},T.inverseCosine=T.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return-1!==r?0===r?e.isNeg()?N(t,n,i):new t(0):new t(NaN):e.isZero()?N(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},T.inverseHyperbolicCosine=T.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,d=!1,r=r.times(r).minus(1).sqrt().plus(r),d=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},T.inverseHyperbolicSine=T.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,d=!1,r=r.times(r).plus(1).sqrt().plus(r),d=!0,n.precision=e,n.rounding=t,r.ln())},T.inverseHyperbolicTangent=T.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?O(new o(i),e,t,!0):(o.precision=r=n-i.e,i=k(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},T.inverseSine=T.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t?0===t?((e=N(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},T.inverseTangent=T.atan=function(){var e,t,r,n,i,o,a,s,l,c=this,u=c.constructor,h=u.precision,p=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&h+4<=E)return(a=N(u,h+4,p).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(h+4<=E)return(a=N(u,h+4,p).times(.5)).s=c.s,a}for(u.precision=s=h+10,u.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(d=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),d=!0,O(a,u.precision=h,u.rounding=p,!0)},T.isFinite=function(){return!!this.d},T.isInteger=T.isInt=function(){return!!this.d&&_(this.e/7)>this.d.length-2},T.isNaN=function(){return!this.s},T.isNegative=T.isNeg=function(){return this.s<0},T.isPositive=T.isPos=function(){return this.s>0},T.isZero=function(){return!!this.d&&0===this.d[0]},T.lessThan=T.lt=function(e){return this.cmp(e)<0},T.lessThanOrEqualTo=T.lte=function(e){return this.cmp(e)<1},T.logarithm=T.log=function(e){var t,r,n,i,o,a,s,l,c=this,u=c.constructor,h=u.precision,p=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new u(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10===0;)i/=10;o=1!==i}if(d=!1,a=q(c,s=h+5),n=t?D(u,s+10):q(e,s),I((l=k(a,n,s,1)).d,i=h,p))do{if(a=q(c,s+=10),n=t?D(u,s+10):q(e,s),l=k(a,n,s,1),!o){+P(l.d).slice(i+1,i+15)+1==1e14&&(l=O(l,h+1,0));break}}while(I(l.d,i+=10,p));return d=!0,O(l,h,p)},T.minus=T.sub=function(e){var t,r,n,i,o,a,s,l,c,u,h,p,f=this,m=f.constructor;if(e=new m(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new m(e.d||f.s!==e.s?f:NaN):e=new m(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(c=f.d,p=e.d,s=m.precision,l=m.rounding,!c[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!c[0])return new m(3===l?-0:0);e=new m(f)}return d?O(e,s,l):e}if(r=_(e.e/7),u=_(f.e/7),c=c.slice(),o=u-r){for((h=o<0)?(t=c,o=-o,a=p.length):(t=p,r=u,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((h=(n=c.length)<(a=p.length))&&(a=n),n=0;n<a;n++)if(c[n]!=p[n]){h=c[n]<p[n];break}o=0}for(h&&(t=c,c=p,p=t,e.s=-e.s),a=c.length,n=p.length-a;n>0;--n)c[a++]=0;for(n=p.length;n>o;){if(c[--n]<p[n]){for(i=n;i&&0===c[--i];)c[i]=A-1;--c[i],c[n]+=A}c[n]-=p[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=L(c,r),d?O(e,s,l):e):new m(3===l?-0:0)},T.modulo=T.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?O(new n(r),n.precision,n.rounding):(d=!1,9==n.modulo?(t=k(r,e.abs(),0,3,1)).s*=e.s:t=k(r,e,0,n.modulo,1),t=t.times(e),d=!0,r.minus(t))},T.naturalExponential=T.exp=function(){return V(this)},T.naturalLogarithm=T.ln=function(){return q(this)},T.negated=T.neg=function(){var e=new this.constructor(this);return e.s=-e.s,O(e)},T.plus=T.add=function(e){var t,r,n,i,o,a,s,l,c,u,h=this,p=h.constructor;if(e=new p(e),!h.d||!e.d)return h.s&&e.s?h.d||(e=new p(e.d||h.s===e.s?h:NaN)):e=new p(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.minus(e);if(c=h.d,u=e.d,s=p.precision,l=p.rounding,!c[0]||!u[0])return u[0]||(e=new p(h)),d?O(e,s,l):e;if(o=_(h.e/7),n=_(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=u.length):(r=u,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,r=u,u=c,c=r),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/A|0,c[i]%=A;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=L(c,n),d?O(e,s,l):e},T.precision=T.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(p+e);return r.d?(t=F(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},T.round=function(){var e=this,t=e.constructor;return O(new t(e),e.e+1,t.rounding)},T.sine=T.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Y(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=t.times(1/Z(5,r)),t=Y(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,K(n,r)),n.precision=e,n.rounding=t,O(i>2?r.neg():r,e,t,!0)):new n(NaN)},T.squareRoot=T.sqrt=function(){var e,t,r,n,i,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);
vendor: 5,265 bytes, line 2
2for(d=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=P(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=_((l+1)/2)-(l<0||l%2),n=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new u(c.toString()),r=(l=u.precision)+3;;)if(n=(o=n).plus(k(a,o,r+2,1)).times(.5),P(o.d).slice(0,r)===(t=P(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(n,l+1,1),e=!n.times(n).eq(a));break}if(!i&&(O(o,l+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return d=!0,O(n,l,u.rounding,e)},T.tangent=T.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=k(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},T.times=T.mul=function(e){var t,r,n,i,o,a,s,l,c,u=this,h=u.constructor,p=u.d,f=(e=new h(e)).d;if(e.s*=u.s,!p||!p[0]||!f||!f[0])return new h(!e.s||p&&!p[0]&&!f||f&&!f[0]&&!p?NaN:p&&f?0*e.s:e.s/0);for(r=_(u.e/7)+_(e.e/7),(l=p.length)<(c=f.length)&&(o=p,p=f,f=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+f[n]*p[i-n-1]+t,o[i--]=s%A|0,t=s/A|0;o[i]=(o[i]+t)%A|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=L(o,r),d?O(e,h.precision,h.rounding):e},T.toBinary=function(e,t){return X(this,2,e,t)},T.toDecimalPlaces=T.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(C(e,0,a),void 0===t?t=n.rounding:C(t,0,8),O(r,e+r.e+1,t))},T.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=R(n,!0):(C(e,0,a),void 0===t?t=i.rounding:C(t,0,8),r=R(n=O(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},T.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?r=R(i):(C(e,0,a),void 0===t?t=o.rounding:C(t,0,8),r=R(n=O(new o(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},T.toFraction=function(e){var t,r,n,i,o,a,s,l,c,u,h,f,m=this,g=m.d,_=m.constructor;if(!g)return new _(m);if(c=r=new _(1),n=l=new _(0),a=(o=(t=new _(n)).e=F(g)-m.e-1)%7,t.d[0]=y(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new _(e)).isInt()||s.lt(c))throw Error(p+s);e=s.gt(t)?o>0?t:c:s}for(d=!1,s=new _(P(g)),u=_.precision,_.precision=o=7*g.length*2;h=k(s,t,0,1,1),1!=(i=r.plus(h.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(h.times(i)),l=i,i=t,t=s.minus(h.times(i)),s=i;return i=k(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=m.s,f=k(c,n,o,1).minus(m).abs().cmp(k(l,r,o,1).minus(m).abs())<1?[c,n]:[l,r],_.precision=u,d=!0,f},T.toHexadecimal=T.toHex=function(e,t){return X(this,16,e,t)},T.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:C(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(d=!1,r=k(r,e,0,t,1).times(e),d=!0,O(r)):(e.s=r.s,r=e),r},T.toNumber=function(){return+this},T.toOctal=function(e,t){return X(this,8,e,t)},T.toPower=T.pow=function(e){var t,r,n,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(y(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return O(s,n,o);if((t=_(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=j(l,s,r,n),e.s<0?new l(1).div(i):O(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(0==(1&e.d[t])&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=y(+s,c))&&isFinite(r)?new l(r+"").e:_(c*(Math.log("0."+P(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(d=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=V(e.times(q(s,n+r)),n)).d&&I((i=O(i,n+5,1)).d,n,o)&&(t=n+10,+P((i=O(V(e.times(q(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0))),i.s=a,d=!0,l.rounding=o,O(i,n,o))},T.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=R(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(C(e,1,a),void 0===t?t=i.rounding:C(t,0,8),r=R(n=O(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},T.toSignificantDigits=T.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(C(e,1,a),void 0===t?t=r.rounding:C(t,0,8)),O(new r(this),e,t)},T.toString=function(){var e=this,t=e.constructor,r=R(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},T.truncated=T.trunc=function(){return O(new this.constructor(this),this.e+1,1)},T.valueOf=T.toJSON=function(){var e=this,t=e.constructor,r=R(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var k=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(i,o,a,s,l,c){var u,d,h,p,f,m,g,y,v,b,x,w,S,E,T,P,C,I,M,k,R=i.constructor,L=i.s==o.s?1:-1,D=i.d,N=o.d;if(!D||!D[0]||!N||!N[0])return new R(i.s&&o.s&&(D?!N||D[0]!=N[0]:N)?D&&0==D[0]||!N?0*L:L/0:NaN);for(c?(f=1,d=i.e-o.e):(c=A,f=7,d=_(i.e/f)-_(o.e/f)),M=N.length,C=D.length,b=(v=new R(L)).d=[],h=0;N[h]==(D[h]||0);h++);if(N[h]>
vendor: 15,388 bytes, line 2
2(D[h]||0)&&d--,null==a?(E=a=R.precision,s=R.rounding):E=l?a+(i.e-o.e)+1:a,E<0)b.push(1),m=!0;else{if(E=E/f+2|0,h=0,1==M){for(p=0,N=N[0],E++;(h<C||p)&&E--;h++)T=p*c+(D[h]||0),b[h]=T/N|0,p=T%N|0;m=p||h<C}else{for((p=c/(N[0]+1)|0)>1&&(N=e(N,p,c),D=e(D,p,c),M=N.length,C=D.length),P=M,w=(x=D.slice(0,M)).length;w<M;)x[w++]=0;(k=N.slice()).unshift(0),I=N[0],N[1]>=c/2&&++I;do{p=0,(u=t(N,x,M,w))<0?(S=x[0],M!=w&&(S=S*c+(x[1]||0)),(p=S/I|0)>1?(p>=c&&(p=c-1),1==(u=t(g=e(N,p,c),x,y=g.length,w=x.length))&&(p--,r(g,M<y?k:N,y,c))):(0==p&&(u=p=1),g=N.slice()),(y=g.length)<w&&g.unshift(0),r(x,g,w,c),-1==u&&(u=t(N,x,M,w=x.length))<1&&(p++,r(x,M<w?k:N,w,c)),w=x.length):0===u&&(p++,x=[0]),b[h++]=p,u&&x[0]?x[w++]=D[P]||0:(x=[D[P]],w=1)}while((P++<C||void 0!==x[0])&&E--);m=void 0!==x[0]}b[0]||b.shift()}if(1==f)v.e=d,n=m;else{for(h=1,p=b[0];p>=10;p/=10)h++;v.e=h+d*f-1,O(v,l?a+v.e+1:a,s,m)}return v}}();function O(e,t,r,n){var i,o,a,s,l,c,u,h,p,f=e.constructor;e:if(null!=t){if(!(h=e.d))return e;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(u=h[p=0])/y(10,i-a-1)%10|0;else if((p=Math.ceil((o+1)/7))>=(s=h.length)){if(!n)break e;for(;s++<=p;)h.push(0);u=l=0,i=1,a=(o%=7)-7+1}else{for(u=s=h[p],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:u/y(10,i-a-1)%10|0}if(n=n||t<0||void 0!==h[p+1]||(a<0?u:u%y(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?u/y(10,i-a):0:h[p-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,c?(t-=e.e+1,h[0]=y(10,(7-t%7)%7),e.e=-t||0):h[0]=e.e=0,e;if(0==o?(h.length=p,s=1,p--):(h.length=p+1,s=y(10,7-o),h[p]=a>0?(u/y(10,i-a)%y(10,a)|0)*s:0),c)for(;;){if(0==p){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,h[0]==A&&(h[0]=1));break}if(h[p]+=s,h[p]!=A)break;h[p--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return d&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function R(e,t,r){if(!e.isFinite())return H(e);var n,i=e.e,o=P(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+z(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+z(-i-1)+o,r&&(n=r-a)>0&&(o+=z(n))):i>=a?(o+=z(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+z(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=z(n))),o}function L(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function D(e,t,r){if(t>S)throw d=!0,r&&(e.precision=r),Error(f);return O(new e(l),t,1,!0)}function N(e,t,r){if(t>E)throw Error(f);return O(new e(c),t,r,!0)}function F(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function z(e){for(var t="";e--;)t+="0";return t}function j(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(d=!1;;){if(r%2&&J((o=o.times(t)).d,a)&&(i=!0),0===(r=_(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}J((t=t.times(t)).d,a)}return d=!0,o}function B(e){return 1&e.d[e.d.length-1]}function U(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function V(e,t){var r,n,i,o,a,s,l,c=0,u=0,h=0,p=e.constructor,f=p.rounding,m=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(d=!1,l=m):l=t,s=new p(.03125);e.e>-2;)e=e.times(s),h+=5;for(l+=n=Math.log(y(2,h))/Math.LN10*2+5|0,r=o=a=new p(1),p.precision=l;;){if(o=O(o.times(e),l,1),r=r.times(++u),P((s=a.plus(k(o,r,l,1))).d).slice(0,l)===P(a.d).slice(0,l)){for(i=h;i--;)a=O(a.times(a),l,1);if(null!=t)return p.precision=m,a;if(!(c<3&&I(a.d,l-n,f,c)))return O(a,p.precision=m,f,d=!0);p.precision=l+=10,r=o=s=new p(1),u=0,c++}a=s}}function q(e,t){var r,n,i,o,a,s,l,c,u,h,p,f=1,m=e,g=m.d,_=m.constructor,y=_.rounding,v=_.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new _(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(d=!1,u=v):u=t,_.precision=u+=10,n=(r=P(g)).charAt(0),!(Math.abs(o=m.e)<15e14))return c=D(_,u+2,v).times(o+""),m=q(new _(n+"."+r.slice(1)),u-10).plus(c),_.precision=v,null==t?O(m,v,y,d=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=P((m=m.times(e)).d)).charAt(0),f++;for(o=m.e,n>1?(m=new _("0."+r),o++):m=new _(n+"."+r.slice(1)),h=m,l=a=m=k(m.minus(1),m.plus(1),u,1),p=O(m.times(m),u,1),i=3;;){if(a=O(a.times(p),u,1),P((c=l.plus(k(a,new _(i),u,1))).d).slice(0,u)===P(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(D(_,u+2,v).times(o+""))),l=k(l,new _(f),u,1),null!=t)return _.precision=v,l;if(!I(l.d,u-10,y,s))return O(l,_.precision=v,y,d=!0);_.precision=u+=10,c=a=m=k(h.minus(1),h.plus(1),u,1),p=O(m.times(m),u,1),i=s=1}l=c,i+=2}}function H(e){return String(e.s*e.s/0)}function G(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),d&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function W(e,t){var r,n,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(b.test(t))r=16,t=t.toLowerCase();else if(v.test(t))r=2;else{if(!x.test(t))throw Error(p+t);r=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=j(n,new n(r),o,2*o)),o=u=(c=M(t,r,A)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=L(c,u),e.d=c,d=!1,a&&(e=k(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?y(2,l):ze.pow(2,l))),d=!0,e)}function Y(e,t,r,n,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(d=!1,l=r.times(r),s=new e(n);;){if(a=k(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=k(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return d=!0,a.d.length=u+1,a}function Z(e,t){for(var r=e;--t;)r*=e;return r}function K(e,t){var r,n=t.s<0,o=N(e,e.precision,1),a=o.times(.5);if((t=t.abs()).lte(a))return i=n?4:1,t;if((r=t.divToInt(o)).isZero())i=n?3:2;else{if((t=t.minus(r.times(o))).lte(a))return i=B(r)?n?2:3:n?4:1,t;i=B(r)?n?1:4:n?3:2}return t.minus(o).abs()}function X(e,t,r,i){var o,l,c,u,d,h,p,f,m,g=e.constructor,_=void 0!==r;if(_?(C(r,1,a),void 0===i?i=g.rounding:C(i,0,8)):(r=g.precision,i=g.rounding),e.isFinite()){for(_?(o=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):o=t,(c=(p=R(e)).indexOf("."))>=0&&(p=p.replace(".",""),(m=new g(1)).e=p.length-c,m.d=M(R(m),10,o),m.e=m.d.length),l=d=(f=M(p,10,o)).length;0==f[--d];)f.pop();if(f[0]){if(c<0?l--:((e=new g(e)).d=f,e.e=l,f=(e=k(e,m,r,i,0,o)).d,l=e.e,h=n),c=f[r],u=o/2,h=h||void 0!==f[r+1],h=i<4?(void 0!==c||h)&&(0===i||i===(e.s<0?3:2)):c>u||c===u&&(4===i||h||6===i&&1&f[r-1]||i===(e.s<0?8:7)),f.length=r,h)for(;++f[--r]>o-1;)f[r]=0,r||(++l,f.unshift(1));for(d=f.length;!f[d-1];--d);for(c=0,p="";c<d;c++)p+=s.charAt(f[c]);if(_){if(d>1)if(16==t||8==t){for(c=16==t?4:3,--d;d%c;d++)p+="0";for(d=(f=M(p,o,t)).length;!f[d-1];--d);for(c=1,p="1.";c<d;c++)p+=s.charAt(f[c])}else p=p.charAt(0)+"."+p.slice(1);p=p+(l<0?"p":"p+")+l}else if(l<0){for(;++l;)p="0"+p;p="0."+p}else if(++l>d)for(l-=d;l--;)p+="0";else l<d&&(p=p.slice(0,l)+"."+p.slice(l))}else p=_?"0p+0":"0";p=(16==t?"0x":2==t?"0b":8==t?"0o":"")+p}else p=H(e);return e.s<0?"-"+p:p}function J(e,t){if(e.length>t)return e.length=t,!0}function Q(e){return new this(e).abs()}function $(e){return new this(e).acos()}function ee(e){return new this(e).acosh()}function te(e,t){return new this(e).plus(t)}function re(e){return new this(e).asin()}function ne(e){return new this(e).asinh()}function ie(e){return new this(e).atan()}function oe(e){return new this(e).atanh()}function ae(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?N(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=N(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan(k(e,t,o,1)),t=N(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(k(e,t,o,1)):(r=N(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function se(e){return new this(e).cbrt()}function le(e){return O(e=new this(e),e.e+1,2)}function ce(e,t,r){return new this(e).clamp(t,r)}function ue(e){if(!e||"object"!==typeof e)throw Error(h+"Object expected");var t,r,n,i=!0===e.defaults,s=["precision",1,a,"rounding",0,8,"toExpNeg",-o,0,"toExpPos",0,o,"maxE",0,o,"minE",-o,0,"modulo",0,9];for(t=0;t<s.length;t+=3)if(r=s[t],i&&(this[r]=u[r]),void 0!==(n=e[r])){if(!(_(n)===n&&n>=s[t+1]&&n<=s[t+2]))throw Error(p+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=u[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(p+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(m);this[r]=!0}else this[r]=!1}return this}function de(e){return new this(e).cos()}function he(e){return new this(e).cosh()}function pe(e,t){return new this(e).div(t)}function fe(e){return new this(e).exp()}function me(e){return O(e=new this(e),e.e+1,3)}function ge(){var e,t,r=new this(0);for(d=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return d=!0,new this(1/0);r=t}return d=!0,r.sqrt()}function _e(e){return e instanceof ze||e&&e.toStringTag===g||!1}function ye(e){return new this(e).ln()}function ve(e,t){return new this(e).log(t)}function be(e){return new this(e).log(2)}function xe(e){return new this(e).log(10)}function we(){return U(this,arguments,-1)}function Ae(){return U(this,arguments,1)}function Se(e,t){return new this(e).mod(t)}function Ee(e,t){return new this(e).mul(t)}function Te(e,t){return new this(e).pow(t)}function Pe(e){var t,r,n,i,o=0,s=new this(1),l=[];if(void 0===e?e=this.precision:C(e,1,a),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:l[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(m);for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(l.push(i%1e7),o+=4);o=n/4}else for(;o<n;)l[o++]=1e7*Math.random()|0;for(e%=7,(n=l[--o])&&e&&(i=y(10,7-e),l[o]=(n/i|0)*i);0===l[o];o--)l.pop();if(o<0)r=0,l=[0];else{for(r=-1;0===l[0];r-=7)l.shift();for(n=1,i=l[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return s.e=r,s.d=l,s}function Ce(e){return O(e=new this(e),e.e+1,this.rounding)}function Ie(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Me(e){return new this(e).sin()}function ke(e){return new this(e).sinh()}function Oe(e){return new this(e).sqrt()}function Re(e,t){return new this(e).sub(t)}function Le(){var e=0,t=arguments,r=new this(t[e]);for(d=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return d=!0,O(r,this.precision,this.rounding)}function De(e){return new this(e).tan()}function Ne(e){return new this(e).tanh()}function Fe(e){return O(e=new this(e),e.e+1,1)}T[Symbol.for("nodejs.util.inspect.custom")]=T.toString,T[Symbol.toStringTag]="Decimal";var ze=T.constructor=function e(t){var r,n,i;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,_e(e))return i.s=e.s,void(d?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(n=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;return void(d?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!==0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):G(i,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),w.test(e)?G(i,e):W(i,e);if("bigint"===n)return e<0?(e=-e,i.s=-1):i.s=1,G(i,e.toString());throw Error(p+e)}if(o.prototype=T,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=ue,o.clone=e,o.isDecimal=_e,o.abs=Q,o.acos=$,o.acosh=ee,o.add=te,o.asin=re,o.asinh=ne,o.atan=ie,o.atanh=oe,o.atan2=ae,o.cbrt=se,o.ceil=le,o.clamp=ce,o.cos=de,o.cosh=he,o.div=pe,o.exp=fe,o.floor=me,o.hypot=ge,o.ln=ye,o.log=ve,o.log10=xe,o.log2=be,o.max=we,o.min=Ae,o.mod=Se,o.mul=Ee,o.pow=Te,o.random=Pe,o.round=Ce,o.sign=Ie,o.sin=Me,o.sinh=ke,o.sqrt=Oe,o.sub=Re,o.sum=Le,o.tan=De,o.tanh=Ne,o.trunc=Fe,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(u);l=new ze(l),c=new ze(c);const je=ze},57488:(e,t,r)=>{"use strict";r.d(t,{N9:()=>G,oR:()=>D});var n=r(80045),i=r(89379),o=r(65043),a=r(58387);const s=["theme","type","isLoading"];!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
2-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
2.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
2}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var l=e=>"number"==typeof e&&!isNaN(e),c=e=>"string"==typeof e,u=e=>
2"function"==typeof e,d=e=>c(e)||u(e)?e:null,h=(e,t)=>!1===e||l(e)&&e>0?e:t,p=e=>(0,o.isValidElement)(e)||c(e)||u(e)||l(e);function f(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h,playToast:p}=e,f=n?"".concat(t,"--").concat(l):t,m=n?"".concat(r,"--").concat(l):r,g=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{let e=d.current,t=f.split(" "),r=n=>{n.target===d.current&&(p(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===g.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,o.useEffect)((()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,{scrollHeight:n,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=n+"px",i.transition="all ".concat(r,"ms"),requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)}))}))}(e,u,a):u()};h||(c?t():(g.current=1,e.className+=" ".concat(m),e.addEventListener("animationend",t)))}),[h]),o.createElement(o.Fragment,null,s)}}function m(e,t){return{content:g(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function g(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,o.isValidElement)(e)&&!c(e.type)?(0,o.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):u(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function _(e){let{delay:t,isRunning:r,closeToast:n,type:s="default",hide:l,className:c,controlledProgress:d,progress:h,rtl:p,isIn:f,theme:m}=e,g=l||d&&0===h,_={animationDuration:"".concat(t,"ms"),animationPlayState:r?"running":"paused"};d&&(_.transform="scaleX(".concat(h,")"));let y=(0,a.A)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(m),"Toastify__progress-bar--".concat(s),{"Toastify__progress-bar--rtl":p}),v=u(c)?c({rtl:p,type:s,defaultClassName:y}):(0,a.A)(y,c),b={[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]:d&&h<1?null:()=>{f&&n()}};return o.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},o.createElement("div",{className:"Toastify__progress-bar--bg Toastify__progress-bar-theme--".concat(m," Toastify__progress-bar--").concat(s)}),o.createElement("div",(0,i.A)({role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:v,style:_},b)))}var y=1,v=()=>"".concat(y++);function b(e,t,r){let n=1,o=0,a=[],s=[],c=t,u=new Map,f=new Set,g=()=>{s=Array.from(u.values()),f.forEach((e=>e()))},_=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},y=e=>{if(null==e)u.forEach(_);else{let t=u.get(e);t&&_(t)}g()},v=e=>{var t,n;let{toastId:i,updateId:o}=e.props,a=null==o;e.staleId&&u.delete(e.staleId),e.isActive=!0,u.set(i,e),g(),r(m(e,a?"added":"updated")),a&&(null==(n=(t=e.props).onOpen)||n.call(t))};return{id:e,props:c,observe:e=>(f.add(e),()=>f.delete(e)),toggle:(e,t)=>{u.forEach((r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))}))},removeToast:y,toasts:u,clearQueue:()=>{o-=a.length,a=[]},buildToast:(t,s)=>{if((t=>{let{containerId:r,toastId:n,updateId:i}=t,o=r?r!==e:1!==e,a=u.has(n)&&null==i;return o||a})(s))return;let{toastId:f,updateId:_,data:b,staleId:x,delay:w}=s,A=null==_;A&&o++;let S=(0,i.A)((0,i.A)((0,i.A)({},c),{},{style:c.toastStyle,key:n++},Object.fromEntries(Object.entries(s).filter((e=>{let[t,r]=e;return null!=r})))),{},{toastId:f,updateId:_,data:b,isIn:!1,className:d(s.className||c.toastClassName),progressClassName:d(s.progressClassName||c.progressClassName),autoClose:!s.isLoading&&h(s.autoClose,c.autoClose),closeToast(e){u.get(f).removalReason=e,y(f)},deleteToast(){let e=u.get(f);if(null!=e){if(r(m(e,"removed")),u.delete(f),o--,o<0&&(o=0),a.length>0)return void v(a.shift());g()}}});S.closeButton=c.closeButton,!1===s.closeButton||p(s.closeButton)?S.closeButton=s.closeButton:!0===s.closeButton&&(S.closeButton=!p(c.closeButton)||c.closeButton);let E={content:t,props:S,staleId:x};c.limit&&c.limit>0&&o>c.limit&&A?a.push(E):l(w)?setTimeout((()=>{v(E)}),w):v(E)},setProps(e){c=e},setToggle:(e,t)=>
2{let r=u.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=u.get(e))?void 0:t.isActive},getSnapshot:()=>s}}var x=new Map,w=[],A=new Set,S=e=>A.forEach((t=>t(e))),E=()=>x.size>0;function T(e,t){var r;if(t)return!(null==(r=x.get(t))||!r.isToastActive(e));let n=!1;return x.forEach((t=>{t.isToastActive(e)&&(n=!0)})),n}function P(e){if(E()){if(null==e||(e=>c(e)||l(e))(e))x.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){let t=x.get(e.containerId);t?t.removeToast(e.id):x.forEach((t=>{t.removeToast(e.id)}))}}else w=w.filter((t=>null!=e&&t.options.toastId!==e))}function C(e,t){p(e)&&(E()||w.push({content:e,options:t}),x.forEach((r=>{r.buildToast(e,t)})))}function I(e,t){x.forEach((r=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===r.id)&&r.toggle(e,null==t?void 0:t.id)}))}function M(e){let t=e.containerId||1;return{subscribe(r){let n=b(t,e,S);x.set(t,n);let i=n.observe(r);return w.forEach((e=>C(e.content,e.options))),w=[],()=>{i(),x.delete(t)}},setProps(e){var r;null==(r=x.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=x.get(t))?void 0:e.getSnapshot()}}}function k(e){return e&&(c(e.toastId)||l(e.toastId))?e.toastId:v()}function O(e,t){return C(e,t),t.toastId}function R(e,t){return(0,i.A)((0,i.A)({},t),{},{type:t&&t.type||e,toastId:k(t)})}function L(e){return(t,r)=>O(t,R(e,r))}function D(e,t){return O(e,R("default",t))}function N(e){let[t,r]=(0,o.useState)(!1),[n,i]=(0,o.useState)(!1),a=(0,o.useRef)(null),s=(0,o.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function p(){r(!0)}function f(){r(!1)}function m(r){let n=a.current;if(s.canDrag&&n){s.didMove=!0,t&&f(),"x"===e.draggableDirection?s.delta=r.clientX-s.start:s.delta=r.clientY-s.start,s.start!==r.clientX&&(s.canCloseOnClick=!1);let i="x"===e.draggableDirection?"".concat(s.delta,"px, var(--y)"):"0, calc(".concat(s.delta,"px + var(--y))");n.style.transform="translate3d(".concat(i,",0)"),n.style.opacity="".concat(1-Math.abs(s.delta/s.removalDistance))}}function g(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",g);let t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=x.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:r}),(0,o.useEffect)((()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||f(),window.addEventListener("focus",p),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",f)}}),[e.pauseOnFocusLoss]);let _={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){s.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",g);let r=a.current;s.canCloseOnClick=!0,s.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(s.start=t.clientX,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=t.clientY,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:o}=a.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=r&&t.clientY<=n?f():p()}};return l&&c&&(_.onMouseEnter=f,e.stacked||(_.onMouseLeave=p)),h&&(_.onClick=e=>{d&&d(e),s.canCloseOnClick&&u(!0)}),{playToast:p,pauseToast:f,isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:_}}D.loading=(e,t)=>
2O(e,R("default",(0,i.A)({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t))),D.promise=function(e,t,r){let n,{pending:o,error:a,success:s}=t;o&&(n=c(o)?D.loading(o,r):D.loading(o.render,(0,i.A)((0,i.A)({},r),o)));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(e,t,o)=>{if(null==t)return void D.dismiss(n);let a=(0,i.A)((0,i.A)((0,i.A)({type:e},l),r),{},{data:o}),s=c(t)?{render:t}:t;return n?D.update(n,(0,i.A)((0,i.A)({},a),s)):D(s.render,(0,i.A)((0,i.A)({},a),s)),o},h=u(e)?e():e;return h.then((e=>d("success",s,e))).catch((e=>d("error",a,e))),h},D.success=L("success"),D.info=L("info"),D.error=L("error"),D.warning=L("warning"),D.warn=D.warning,D.dark=(e,t)=>O(e,R("default",(0,i.A)({theme:"dark"},t))),D.dismiss=function(e){P(e)},D.clearWaitingQueue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x.forEach((t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()}))},D.isActive=T,D.update=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=((e,t)=>{let{containerId:r}=t;var n;return null==(n=x.get(r||1))?void 0:n.toasts.get(e)})(e,t);if(r){let{props:n,content:o}=r,a=(0,i.A)((0,i.A)((0,i.A)({delay:100},n),t),{},{toastId:t.toastId||e,updateId:v()});a.toastId!==e&&(a.staleId=e);let s=a.render||o;delete a.render,O(s,a)}},D.done=e=>{D.update(e,{progress:1})},D.onChange=function(e){return A.add(e),()=>{A.delete(e)}},D.play=e=>I(!0,e),D.pause=e=>I(!1,e);var F="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,z=e=>{let{theme:t,type:r,isLoading:a}=e,l=(0,n.A)(e,s);return o.createElement("svg",(0,i.A)({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-".concat(r,")")},l))};var j={info:function(e){return o.createElement(z,(0,i.A)({},e),o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return o.createElement(z,(0,i.A)({},e),o.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return o.createElement(z,(0,i.A)({},e),o.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return o.createElement(z,(0,i.A)({},e),o.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.createElement("div",{className:"Toastify__spinner"})}};function B(e){let{theme:t,type:r,isLoading:n,icon:a}=e,s=null,l={theme:t,type:r};return!1===a||(u(a)?s=a((0,i.A)((0,i.A)({},l),{},{isLoading:n})):(0,o.isValidElement)(a)?s=(0,o.cloneElement)(a,l):n?s=j.spinner():(e=>e in j)(r)&&(s=j[r](l))),s}var U=e=>{let{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:s,playToast:l}=N(e),{closeButton:c,children:d,autoClose:h,onClick:p,type:f,hideProgressBar:m,closeToast:y,transition:v,position:b,className:x,style:w,progressClassName:A,updateId:S,role:E,progress:T,rtl:P,toastId:C,deleteToast:I,isIn:M,isLoading:k,closeOnClick:O,theme:R,ariaLabel:L}=e,D=(0,a.A)("Toastify__toast","Toastify__toast-theme--".concat(R),"Toastify__toast--".concat(f),{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":O}),F=u(x)?x({rtl:P,position:b,type:f,defaultClassName:D}):(0,a.A)(D,x),z=B(e),j=!!T||!h,U={closeToast:y,type:f,theme:R},V=null;return!1===c||(V=u(c)?c(U):(0,o.isValidElement)(c)?(0,o.cloneElement)(c,U):function(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return o.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(r),type:"button",onClick:e=>{e.stopPropagation(),t(!0)},"aria-label":n},o.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(U)),o.createElement(v,{isIn:M,done:I,position:b,preventExitTransition:r,nodeRef:n,playToast:l},o.createElement("div",(0,i.A)((0,i.A)({id:C,tabIndex:0,onClick:p,"data-in":M,className:F},s),{},{style:w,ref:n},M&&{role:E,"aria-label":L}),null!=z&&o.createElement("div",{className:(0,a.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
2:!k})},z),g(d,e,!t),V,!e.customProgressBar&&o.createElement(_,(0,i.A)((0,i.A)({},S&&!j?{key:"p-".concat(S)}:{}),{},{rtl:P,theme:R,delay:h,isRunning:t,isIn:M,closeToast:y,hide:m,type:f,className:A,controlledProgress:j,progress:T||0}))))},V=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},q=f(V("bounce",!0)),H=(f(V("slide",!0)),f(V("zoom")),f(V("flip")),{position:"top-right",transition:q,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code});function G(e){let t=(0,i.A)((0,i.A)({},H),e),r=e.stacked,[n,s]=(0,o.useState)(!0),l=(0,o.useRef)(null),{getToastToRender:c,isToastActive:h,count:p}=function(e){var t;let{subscribe:r,getSnapshot:n,setProps:i}=(0,o.useRef)(M(e)).current;i(e);let a=null==(t=(0,o.useSyncExternalStore)(r,n,n))?void 0:t.slice();return{getToastToRender:function(t){if(!a)return[];let r=new Map;return e.newestOnTop&&a.reverse(),a.forEach((e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(e=>t(e[0],e[1])))},isToastActive:T,count:null==a?void 0:a.length}}(t),{className:f,style:m,rtl:g,containerId:_,hotKeys:y}=t;function v(e){let t=(0,a.A)("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":g});return u(f)?f({position:e,rtl:g,defaultClassName:t}):(0,a.A)(t,d(f))}function b(){r&&(s(!0),D.play())}return F((()=>{var e;if(r){let r=l.current.querySelectorAll('[data-in="true"]'),i=12,o=null==(e=t.position)?void 0:e.includes("top"),a=0,s=0;Array.from(r).reverse().forEach(((e,t)=>{let r=e;r.classList.add("Toastify__toast--stacked"),t>0&&(r.dataset.collapsed="".concat(n)),r.dataset.pos||(r.dataset.pos=o?"top":"bot");let l=a*(n?.2:1)+(n?0:i*t);r.style.setProperty("--y","".concat(o?l:-1*l,"px")),r.style.setProperty("--g","".concat(i)),r.style.setProperty("--s","".concat(1-(n?s:0))),a+=r.offsetHeight,s+=.025}))}}),[n,p,r]),(0,o.useEffect)((()=>{function e(e){var t;let r=l.current;y(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),s(!1),D.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(s(!0),D.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[y]),o.createElement("section",{ref:l,className:"Toastify",id:_,onMouseEnter:()=>{r&&(s(!1),D.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},c(((e,t)=>{let n=t.length?(0,i.A)({},m):(0,i.A)((0,i.A)({},m),{},{pointerEvents:"none"});return o.createElement("div",{tabIndex:-1,className:v(e),"data-stacked":r,style:n,key:"c-".concat(e)},t.map((e=>{let{content:t,props:n}=e;return o.createElement(U,(0,i.A)((0,i.A)({},n),{},{stacked:r,collapseAll:b,isIn:h(n.toastId,n.containerId),key:"t-".concat(n.key)}),t)})))})))}},3404:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=!0,i="Invariant failed";function o(e,t){if(!e){if(n)throw new Error(i);var r="function"===typeof t?t():t,o=r?"".concat(i,": ").concat(r):i;throw new Error(o)}}},6326:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,fX:()=>s});
2var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}Object.create;function s(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.amdO={},(()=>{var e=[];__webpack_require__.O=(t,r,n,i)=>{if(!r){var o=1/0;for(c=0;c<e.length;c++){r=e[c][0],n=e[c][1],i=e[c][2];for(var a=!0,s=0;s<r.length;s++)(!1&i||o>=i)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](r[s])))?r.splice(s--,1):(a=!1,i<o&&(o=i));if(a){e.splice(c--,1);var l=n();void 0!==l&&(t=l)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,n,i]}})(),__webpack_require__.F={},__webpack_require__.E=e=>{Object.keys(__webpack_require__.F).map((t=>{__webpack_require__.F[t](e)}))},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"===typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"===typeof r.then)return r}var i=Object.create(null);__webpack_require__.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,__webpack_require__.d(i,o),i}})(),__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,r)=>(__webpack_require__.f[r](e,t),t)),[])),__webpack_require__.u=e=>"static/js/"+({133:"nl",566:"ProductOrderForm",667:"ListingPageCoverPhoto",1324:"PasswordRecoveryPage",1328:"FieldDateRangeController",1508:"ManageListingsPage",1668:"PasswordResetPage",2054:"de",2118:"AuthenticationPage",2148:"locales",2808:"LocationAutocompleteInputImpl",3072:"fi",3314:"PaymentMethodsPage",3680:"SearchPageWithMap",3769:"BookingTimeForm",3968:"ProfileSettingsPage",4872:"TransactionPage",4894:"InquiryWithoutPaymentForm",5007:"ProfilePage",5208:"ContactDetailsPage",5454:"PrivacyPolicyPage",5720:"EditListingPage",5743:"StyleguidePage",5969:"PasswordChangePage",6149:"LandingPage",6176:"InboxPage",6212:"FieldDateRangeInput",6373:"TermsOfServicePage",6419:"CMSPage",6763:"es",6849:"EmailVerificationPage",6869:"BookingDatesForm",7230:"CheckoutPage",7498:"SearchPageWithGrid",8027:"PageBuilder",8179:"FieldDateInput",8314:"ListingPageCarousel",8347:"Topbar",9447:"StripePayoutPage",9667:"fr"}[e]||e)+"."+{74:"c9934eb5",133:"741492c4",237:"1f5e04fe",566:"de0bf080",667:"718b9b04",1324:"78ec725c",1328:"867e110f",1508:"6f999b7f",1517:"3fbd0af4",1546:"c59452b2",1668:"853305f8",2054:"cbfcef1d",2118:"9e9e3d5c",2148:"78d0ff95",2393:"c1d807c9",2808:"726b2d71",3072:"ed4670eb",3314:"cea6a3e5",3510:"4c3287d8",3536:"58676d3a",3680:"f641688d",3769:"8d5d194b",3968:"fb94f12d",4814:"61b5b12f",4872:"1d6cf435",4894:"74db1947",5007:"424f35d9",5208:"9c9a7ca2",5454:"5537174b",5720:"fb5ac468",5743:"d013a382",5969:"c1159f8a",6149:"d116a7c1",6176:"a84e2bae",6212:"842be36b",6367:"f22db7a3",6373:"f0c8b8a0",6419:"a2483393",6572:"c0856078",6763:"c28a4b1b",6849:"1b956a21",6869:"e2b02a16",6915:"89b72def",7179:"7e8eb6cb",7230:"7949a301",7498:"0cc11b24",8027:"31d0ba70",8179:"302e3062",8314:"f436d7fe",8337:"9b50f664",8347:"95893a51",8496:"e76f7f64",9447:"e24f0880",9667:"f2d896b0"}[e]+".chunk.js",__webpack_require__.miniCssF=e=>"static/css/"+({566:"ProductOrderForm",667:"ListingPageCoverPhoto",1324:"PasswordRecoveryPage",1328:"FieldDateRangeController",1508:"ManageListingsPage",1668:"PasswordResetPage",2118:"AuthenticationPage",2808:"LocationAutocompleteInputImpl",3314:"PaymentMethodsPage",3680:"SearchPageWithMap",3769:"BookingTimeForm",3968:"ProfileSettingsPage",4872:"TransactionPage",4894:"InquiryWithoutPaymentForm",5007:"ProfilePage",5208:"C
2ontactDetailsPage",5454:"PrivacyPolicyPage",5720:"EditListingPage",5743:"StyleguidePage",5969:"PasswordChangePage",6149:"LandingPage",6176:"InboxPage",6212:"FieldDateRangeInput",6373:"TermsOfServicePage",6849:"EmailVerificationPage",6869:"BookingDatesForm",7230:"CheckoutPage",8027:"PageBuilder",8179:"FieldDateInput",8314:"ListingPageCarousel",8347:"Topbar",9447:"StripePayoutPage"}[e]||e)+"."+{237:"abc8b9e7",566:"c588ec90",667:"70f4413c",1324:"43022c2b",1328:"91c7496c",1508:"46c39fcc",1668:"c06f6c6e",2118:"d7986396",2393:"66a6c72b",2808:"99c514f7",3314:"e4885422",3680:"72e23de6",3769:"cab66e52",3968:"85e3fb21",4872:"d1528b1b",4894:"37a64935",5007:"a88dfabf",5208:"c5f00524",5454:"0d691cf1",5720:"ce3763d7",5743:"6f364184",5969:"1df2b844",6149:"ee408b86",6176:"e3924ab0",6212:"4dc97541",6373:"0d691cf1",6849:"68406805",6869:"64874155",7230:"5d58be51",8027:"b842b15f",8179:"eba6e6fb",8314:"cdff7f56",8337:"67c4e208",8347:"5046b402",9447:"72db42d5"}[e]+".chunk.css",__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="app:";__webpack_require__.l=(r,n,i,o)=>{if(e[r])e[r].push(n);else{var a,s;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){a=u;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,__webpack_require__.nc&&a.setAttribute("nonce",__webpack_require__.nc),a.setAttribute("data-webpack",t+i),a.src=r),e[r]=[n];var d=(t,n)=>{a.onerror=a.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),__webpack_require__.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var n=__webpack_require__.miniCssF(e),i=__webpack_require__.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var i=(a=r[n]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(i===e||i===t))return a}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var a;if((i=(a=o[n]).getAttribute("data-href"))===e||i===t)return a}})(n,i))return t();((e,t,r,n,i)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",__webpack_require__.nc&&(o.nonce=__webpack_require__.nc),o.onerror=o.onload=r=>{if(o.onerror=o.onload=null,"load"===r.type)n();else{var a=r&&r.type,s=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,o.parentNode&&o.parentNode.removeChild(o),i(l)}},o.href=t,r?r.parentNode.insertBefore(o,r.nextSibling):document.head.appendChild(o)})(e,i,null,t,r)})),t={8792:0};__webpack_require__.f.miniCss=(r,n)=>{t[r]?n.push(t[r]):0!==t[r]&&{237:1,566:1,667:1,1324:1,1328:1,1508:1,1668:1,2118:1,2393:1,2808:1,3314:1,3680:1,3769:1,3968:1,4872:1,4894:1,5007:1,5208:1,5454:1,5720:1,5743:1,5969:1,6149:1,6176:1,6212:1,6373:1,6849:1,6869:1,7230:1,8027:1,8179:1,8314:1,8337:1,8347:1,9447:1}[r]&&n.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))},__webpack_require__.F.miniCss=e=>{if((!__webpack_require__.o(t,e)||void 0===t[e])&&!/^(1(33|517|546)|3(072|510|536)|6(367|419|572|763|915)|7(179|4|498)|2054|2148|4814|8496|9667)$/.test(e)){t[e]=null;var r=document.createElement("link");__webpack_require__.nc&&r.setAttribute("nonce",__webpack_require__.nc),r.rel="prefetch",r.as="style",r.href=__webpack_require__.p+__webpack_require__.miniCssF(e),document.head.appendChild(r)}}}})(),(()=>{var e={8792:0};__webpack_require__.f.j=(t,r)=>{var n=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=e[t]=[r,i]));r.push(n[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(r=>{if(__webpack_require__.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,n[1](a)}}),"chunk-"+t,t)}},__webpack_require__.F.j=t=>{if(!__webpack_require__.o(e,t)||void 0===e[t]){e[t]=null;var r=document.createElement("link");__webpack_require__.nc&&r.setAttribute("nonce",__webpack_require__.nc),r.rel="prefetch",r.as="script",r.href=__webpack_require__.p+__webpack_require__.u(t),document.head.appendChild(r)}},__webpack_require__.O.j=t=>0===e[t];var t=(t,r)=>{var n,i,o=r[0],a=r[1],s=r[2],l=0;if(o.some((t=>0!==e[t]))){for(n in a)__webpack_require__.o(a,n)&&(__webpack_require__.m[n]=a[n]);if(s)var c=s(__webpack_require__)}for(t&&t(r);l<o.length;l++)i=o[l],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return __webpack_require__.O(c)},r=self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),__webpack_require__.O(0,[8792],(()=>{[3536,7179,8337,667,8314,6572,237,3680,7498].map(__webpack_require__.E)}),5);var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{auth:()=>m.Ay,emailVerification:()=>g.Ay,hostedAssets:()=>x.Ay,marketplaceData:()=>w.Ay,paymentMethods:()=>A.Ay,routing:()=>v,stripe:()=>S.Ay,stripeConnectAccount:()=>E.Ay,ui:()=>b.Ay,user:()=>T.Ay});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{CheckoutPage:()=>P.Ay,ContactDetailsPage:()=>C.Ay,EditListingPage:()=>I.Ay,InboxPage:()=>M.Ay,ListingPage:()=>k.Ay,ManageListingsPage:()=>O.Ay,PasswordChangePage:()=>R.Ay,PasswordRecoveryPage:()=>L.Ay,PasswordResetPage:()=>D.Ay,PaymentMethodsPage:()=>N.Ay,ProfilePage:()=>F.Ay,ProfileSettingsPage:()=>z.Ay,SearchPage:()=>j.Ay,StripePayoutPage:()=>B.Ay,TransactionPage:()=>U.Ay});var r=__webpack_require__(89379),n=__webpack_require__(80045),i=(__webpack_require__(41182),__webpack_require__(51236),__webpack_require__(64321),__webpack_require__(82396),__webpack_require__(41198),__webpack_require__(651),__webpack_require__(50484),__webpack_require__(87794),__webpack_require__(43944),__webpack_require__(336),__webpack_require__(36614),__webpack_require__(10352),__webpack_require__(50031),__webpack_require__(80870),__webpack_require__(81413),__webpack_require__(88787),__webpack_require__(54790),__webpack_require__(12200),__webpack_require__(70416),__webpack_require__(70372),__webpack_require__(11934),__webpack_require__(96646),__webpack_require__(34351),__webpack_require__(47218),__webpack_require__(98205),__webpack_require__(23192),__webpack_require__(53859),__webpack_require__(11128),__webpack_require__(16737),__webpack_require__(20197),__webpack_require__(79359),__webpack_require__(38820),__webpack_require__(32707),__webpack_require__(7417),__webpack_require__(4532),__webpack_require__(72902),__webpack_require__(58414),__webpack_require__(65043)),o=__webpack_require__(84391),a=__webpack_require__(56356),s=__webpack_require__(73682),l=__webpack_require__(69625);class c{trackPageView(e){console.log("Analytics page view:",e)}}class u{trackPageView(e,t){t&&window.gtag&&window.setTimeout((()=>{window.gtag("event","page_view",{page_path:e})}),300)}}var d=__webpack_require__(50805);function h(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(i){return"function"===typeof i?i(r,n,e):t(i)}}}}var p=h();p.withExtraArgument=h;const f=p;var m=__webpack_require__(94532),g=__webpack_require__(96723);const _="app/routing/LOCATION_CHANGED",y={currentLocation:null,currentCanonicalPath:null};function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{type:n,payload:i}=t;return n===_?(0,r.A)((0,r.A)({},e),{},{currentLocation:i.location,currentCanonicalPath:i.canonicalPath}):e}var b=__webpack_require__(44104),x=__webpack_require__(86092),w=__webpack_require__(703),A=__webpack_require__(43798),S=__webpack_require__(28233),E=__webpack_require__(79290),T=__webpack_require__(92943),P=__webpack_require__(86083),C=__webpack_require__(61391),I=__webpack_require__(87523),M=__webpack_require__(8747),k=__webpack_require__(70923),O=__webpack_require__(37379),R=__webpack_require__(96241),L=__webpack_require__(15827),D=__webpack_require__(43579),N=__webpack_require__(42299),F=__webpack_require__(75387),z=__webpack_require__(11851),j=__webpack_require__(7467),B=__webpack_require__(98841),U=__webpack_require__(46067);const V=(0,d.HY)((0,r.A)((0,r.A)({},e),t)),q=()=>(e,t)=>{const r=t.type===m.bx?void 0:e;return t.type===m.bx&&"undefined"!==typeof window&&window.sessionStorage&&window.sessionStorage.clear(),V(r,t)};var H=__webpack_require__(55346),G=__webpack_require__(86770),W=__webpack_require__(57302),Y=__webpack_require__(95565),Z=__webpack_require__(85506),K=__webpack_require__(82532),X=__webpack_require__(57488),J=(__webpack_require__(66885),__webpack_require__(45085),__webpack_require__(29490)),Q=__webpack_require__(62582),$=__webpack_require__(97508),ee=__webpack_require__(66077),te=__webpack_require__.n(ee),re=(__webpack_require__(91733),__webpack_require__(86178)),ne=__webpack_require__.n(re),ie=__webpack_require__(76732),oe=__webpack_require__(63775),ae=__webpack_require__(24141),se=__webpack_require__(30496),le=__webpack_require__(70579);const ce="mapbox_GL_JS",ue="GoogleMapsApi",de=e=>{const{marketplaceRootURL:t,maps:r,analytics:n}=(null===e||void 0===e?void 0:e.config)||{},{googleAnalyticsId:i,plausibleDomains:o}=n,{mapProvider:a,googleMapsAPIKey:s,mapboxAccessToken:l}=r||{},c="googleMaps"===a,u="mapbox"===a,d=0===(null===i||void 0===i?void 0:i.indexOf("G-"));let h=[],p=[];u?(h.push((0,le.jsx)("script",{src:"".concat(t,"/static/scripts/mapbox/mapbox-sdk.min.js")},"mapboxSDK")),h.push((0,le.jsx)("link",{href:"https://api.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.css",rel:"stylesheet",crossOrigin:!0},"mapbox_GL_CSS")),h.push((0,le.jsx)("script",{id:ce,src:"https://api.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.js",crossOrigin:!0},"mapbox_GL_JS"))):c&&h.push((0,le.jsx)("script",{id:ue,src:"https://maps.googleapis.com/ma
2ps/api/js?key=".concat(s,"&libraries=places"),crossOrigin:!0},"GoogleMapsApi")),i&&d&&(p.push((0,le.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(i),crossOrigin:!0},"gtag.js")),p.push((0,le.jsx)("script",{children:"\n        window.dataLayer = window.dataLayer || [];\n        function gtag(){dataLayer.push(arguments);}\n        gtag('js', new Date());\n      \n        gtag('config', '".concat(i,"', {\n          cookie_flags: 'SameSite=None;Secure',\n        });\n        ")},"gtag dataLayer"))),o&&p.push((0,le.jsx)("script",{defer:!0,src:"https://plausible.io/js/script.js","data-domain":o,crossOrigin:!0},"plausible"));const f="undefined"!==typeof window&&window.mapboxgl;u&&f&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=l);const m=()=>{u&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=l)},g=[...p,...h];return(0,le.jsx)(J.mg,{onChangeClientState:(e,t)=>{if(t&&t.scriptTags){const e=t.scriptTags.find((e=>[ce,ue].includes(e.id)));e&&e.addEventListener("load",m,{once:!0})}},children:g})};var he=__webpack_require__(18689),pe=__webpack_require__(91688),fe=(__webpack_require__(44356),__webpack_require__(87982));const me="LoadableComponentErrorBoundary_root__kRL+D",ge="LoadableComponentErrorBoundary_topbar__Pcjni",_e="LoadableComponentErrorBoundary_logoMobile__HfY2u",ye="LoadableComponentErrorBoundary_logoDesktop__X9LuE",ve="LoadableComponentErrorBoundary_content__DJTJE",be="LoadableComponentErrorBoundary_number__ByO51 marketplaceHeroTitleFontStyles",xe="LoadableComponentErrorBoundary_heading__A2kuE marketplaceModalTitleStyles",we="LoadableComponentErrorBoundary_description__L6YeJ",Ae=()=>{const e=(0,ie.Z6)(),t=(0,W.pL)("LandingPage",e),r=()=>{"undefined"!==typeof window&&(window.location=t)},n=(0,le.jsx)(he.bG,{onClick:r,children:(0,le.jsx)(ae.sA,{id:"LoadableComponentErrorBoundaryPage.landingPageLink"})});return(0,le.jsx)("div",{children:(0,le.jsx)(he.JI,{topbar:(0,le.jsx)("div",{className:ge,children:(0,le.jsxs)(he.bG,{onClick:r,children:[(0,le.jsx)(he.gu,{className:_e,layout:"mobile"}),(0,le.jsx)(he.gu,{className:ye,layout:"desktop"})]})}),footer:null,children:(0,le.jsx)("div",{className:me,children:(0,le.jsxs)("div",{className:ve,children:[(0,le.jsx)("div",{className:be,children:"404"}),(0,le.jsx)(he.DZ,{as:"h1",rootClassName:xe,children:(0,le.jsx)(ae.sA,{id:"LoadableComponentErrorBoundaryPage.heading"})}),(0,le.jsx)("p",{className:we,children:(0,le.jsx)(ae.sA,{id:"LoadableComponentErrorBoundaryPage.description",values:{link:n}})})]})})})})};class Se extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error&&"ChunkLoadError"===this.state.error.name?(0,le.jsx)(Ae,{}):this.props.children}}const Ee=e=>{const{children:t}=e;return s.A.dev?t:(0,le.jsx)(Se,{children:t})},Te=e=>{const{isAuthenticated:t,route:r}=e,{auth:n}=r;return!n||t},Pe=e=>{const{match:t,location:r,route:n,dispatch:i,logoutInProgress:o,config:a}=e,{loadData:s,name:l}=n;"function"===typeof s&&Te(e)&&!o&&i(s(t.params,r.search,a)).then((()=>{e.logLoadDataCalls&&console.log("loadData success for ".concat(l," route"))})).catch((e=>{Z.z3(e,"load-data-failed",{routeName:l})}))},Ce=(e,t,r,n)=>{(e=>{if(e.hash){const t=document.querySelector(e.hash);t?t.scrollIntoView({block:"start",behavior:"smooth"}):window.setTimeout((()=>{document.querySelector(e.hash).scrollIntoView({block:"start",behavior:"smooth"})}),300)}else window.scroll({top:0,left:0})})(t);e(((e,t)=>({type:_,payload:{location:e,canonicalPath:t}}))(t,(0,W.JA)(r,t)))};class Ie extends i.Component{componentDidMount(){const{dispatch:e,location:t,routeConfiguration:r}=this.props;this.delayed=null,Pe(this.props),Ce(e,t,r,this.delayed)}componentDidUpdate(e){const{dispatch:t,location:r,routeConfiguration:n}=this.props;e.location!==this.props.location&&(Pe(this.props),Ce(t,r,n,this.delayed))}componentWillUnmount(){this.delayed&&window.clearTimeout(this.resetTimeoutId)}render(){const{route:e,match:t,location:n,staticContext:i}=this.props,{component:o,authPage:a="SignupPage",extraProps:s}=e,l=Te(this.props);return l||(i.unauthorized=!0),l?(0,le.jsx)(Ee,{children:(0,le.jsx)(o,(0,r.A)({params:t.params,location:n,staticContext:i},s))}):(0,le.jsx)(he.M0,{name:a,state:{from:"".concat(n.pathname).concat(n.search).concat(n.hash)}})}}Ie.defaultProps={staticContext:{}};
2const Me=(0,d.Zz)((0,$.Ng)((e=>{const{isAuthenticated:t,logoutInProgress:r}=e.auth;return{isAuthenticated:t,logoutInProgress:r}})))(Ie),ke=(0,pe.y)(((e,t)=>{const n=(0,ie.Z6)(),i=(0,oe._r)(),{isAuthenticated:o,logoutInProgress:a,logLoadDataCalls:s}=e;return(0,le.jsxs)(pe.dO,{children:[n.map((e=>{const t={isAuthenticated:o,logoutInProgress:a,route:e,routeConfiguration:n,config:i,logLoadDataCalls:s},l=null==e.exact||e.exact;return(0,le.jsx)(pe.qh,{path:e.path,exact:l,render:e=>(0,le.jsx)(Me,(0,r.A)((0,r.A)({},t),{},{match:e.match,location:e.location,staticContext:e.staticContext}))},e.name)})),(0,le.jsx)(pe.qh,{component:fe.A})]})})),Oe=JSON.parse('{"AddressLinkMaybe.viewOnGoogleMaps":"View on Google Maps","AuthenticationPage.confirmSignupInfoText":"Please check that your information is correct.","AuthenticationPage.confirmSignupWithIdpTitle":"Sign up with {idp}","AuthenticationPage.fixEmail":"Is there an error in your email? {fixEmailLink}.","AuthenticationPage.fixEmailLinkText":"Fix it","AuthenticationPage.idpAuthFailed":"Failed to authenticate with an external identity provider.","AuthenticationPage.loginFailed":"The email and password you provided don\'t match our records. Please double-check and try again.","AuthenticationPage.loginLinkText":"Log in","AuthenticationPage.loginWithFacebook":"Continue with Facebook","AuthenticationPage.loginWithGoogle":"Continue with Google","AuthenticationPage.or":"or","AuthenticationPage.resendEmail":"Didn\'t get the email? {resendEmailLink}.","AuthenticationPage.resendEmailLinkText":"Resend email","AuthenticationPage.resendFailed":"Resending verification email failed. Please try again.","AuthenticationPage.resendFailedTooManyRequests":"The maximum of 5 verification emails has been reached. Please try again tomorrow.","AuthenticationPage.schemaDescriptionLogin":"Log in to {marketplaceName}","AuthenticationPage.schemaDescriptionSignup":"Create an account to {marketplaceName}","AuthenticationPage.schemaTitleLogin":"Log in | {marketplaceName}","AuthenticationPage.schemaTitleSignup":"Sign up | {marketplaceName}","AuthenticationPage.sendingEmail":"Sending verification email\u2026","AuthenticationPage.signupFailed":"Signup failed. Please make sure all the information you entered is correct and try again.","AuthenticationPage.signupFailedEmailAlreadyTaken":"An account with this email address already exists. Try logging in instead.","AuthenticationPage.signupLinkText":"Sign up","AuthenticationPage.signupWithFacebook":"Continue with Facebook","AuthenticationPage.signupWithGoogle":"Continue with Google","AuthenticationPage.termsAndConditionsAcceptRequired":"You need to accept the Terms of Service","AuthenticationPage.termsAndConditionsAcceptText":"I accept the {termsLink} and the {privacyLink}","AuthenticationPage.termsAndConditionsPrivacyLinkText":"Privacy Policy","AuthenticationPage.termsAndConditionsTermsLinkText":"Terms of Service","AuthenticationPage.verifyEmailClose":"LATER","AuthenticationPage.verifyEmailText":"Thanks for signing up! There\'s one quick step left. Please verify your email address so we can contact you. Click the link we sent to {email}.","AuthenticationPage.verifyEmailTitle":"{name}, check your email inbox to verify your email address","Avatar.bannedUserDisplayName":"Banned user","Avatar.deletedUserDisplayName":"Deleted user","BookingDateRangeFilter.labelPlain":"Dates","BookingDateRangeFilter.labelPopup":"Dates","BookingDateRangeFilter.labelSelectedPlain":"{dates}","BookingDateRangeFilter.labelSelectedPopup":"{dates}","BookingDatesForm.bookingEndTitle":"End date","BookingDatesForm.bookingStartTitle":"Start date","BookingDatesForm.fetchLineItemsError":"Oops, something went wrong. Please refresh the page and try again.","BookingDatesForm.ownListing":"This is your own listing.","BookingDatesForm.priceBreakdownTitle":"Booking breakdown","BookingDatesForm.requestToBook":"Request to book","BookingDatesForm.requiredDate":"Select an available date","BookingDatesForm.timeSlotsError":"We encountered an error when loading the available dates. Please refresh the page. ","BookingDatesForm.youWontBeChargedInfo":"You won\'t be charged yet","BookingTimeForm.bookingEndTitle":"End date","BookingTimeForm.bookingStartTitle":"Pick a date","BookingTimeForm.fetchLineItemsError":"Oops, something went wrong. Please refresh the page and try again.","BookingTimeForm.ownListing":"You can\'t book your own listing.","BookingTimeForm.placeholder":"mm/dd/yyyy","BookingTimeForm.priceBreakdownTitle":"Booking breakdown","BookingTimeForm.requestToBook":"Request to book","BookingTimeForm.requiredDate":"Select an available date","BookingTimeForm.timeSlotsError":"We encountered an error when loading the available dates. Please refresh the page.","BookingTimeForm.youWontBeChargedInfo":"You won\'t be charged yet","CheckoutPage.bookingTimeNotAvailableMessage":"Unfortunately, the requested time has just been booked.","CheckoutPage.chargeDisabledMessage":"This listing is currently unavailable because the listing author\'s payout information is incomplete. Please contact support.","CheckoutPage.correctQuantityInformationMissing":"The order data is missing correct quantity information","CheckoutPage.default-booking.orderBreakdown":"Booking breakdown","CheckoutPage.default-booking.title":"Complete booking request","CheckoutPage.default-inquiry.orderBreakdown":"Order breakdown","CheckoutPage.default-inquiry.title":"Send an inquiry to {authorDisplayName}","CheckoutPage.default-purchase.orderBreakdown":"Order breakdown","CheckoutPage.default-purchase.title":"Complete order","CheckoutPage.errorlistingLinkText":"the listing page","CheckoutPage.goToLandingPage":"Go to the homepage","CheckoutPage.initiateOrderAmountTooLow":"We are unable to process this payment because the payment amount is too low. Please contact support.","CheckoutPage.initiateOrderError":"Payment request failed. Please go back to {listingLink} and try again. If the error persists, try refreshing the page or contacting support.","CheckoutPage.initiateOrderStripeError":"The payment processor gave the following errors: {stripeErrors}","CheckoutPage.destinationAccountNotCompleteStripeError":"This listing is currently unavailable because the listing author\'s payout information is incomplete. Your card hasn\'t been charged. Please contact support.","CheckoutPage.listingNotFoundError":"Unfortunately, this listing is no longer available.","CheckoutPage.listingTitle":"{listingTitle}","CheckoutPage.notEnoughStockMessage":"Unfortunately, you can\'t complete your order. There\'s not enough stock left.","CheckoutPage.paymentExpiredMessage":"Payment was not completed in 15 minutes. Please go back to {listingLink} and try again.","CheckoutPage.providerInfo":"{name}","CheckoutPage.providerStripeAccountMissingError":"This listing is currently unavailable because the listing author hasn\'t added their payout details yet. Please contact support.","CheckoutPage.retrievingStripePaymentIntentFailed":"Oops, something went wrong. Please refresh the page. If the error persists, go back to {listingLink} and try again after 15 minutes","CheckoutPage.speculateFailedMessage":"Oops, something went wrong. Please refresh the page and try again.","CheckoutPage.speculateTransactionError":"Failed to fetch breakdown information.","CheckoutPage.tooManyRequestsError":"Payment request failed. There have been too many requests made in a short amount of time. If the error persists, try refreshing the page or contact support.","CheckoutPageWithInquiryProcess.initiateInquiryError":"Oops, something went wrong. Please try again. If the problem persists, contact support.","CheckoutPageWithInquiryProcess.initiateInquiryErrorNoProcess":"Oops, no transaction process attached to the listing. Please contact support","CheckoutPageWithInquiryProcess.messageLabel":"Inquiry message","CheckoutPageWithInquiryProcess.messagePlaceholder":"Hello there! I\'m interested in\u2026","CheckoutPageWithInquiryProcess.messageRequired":"Message is required.","CheckoutPageWithInquiryProcess.perUnit":"{unitType, select, day {per day} night {per night} hour {per hour} other {}}","CheckoutPageWithInquiryProcess.submitButtonText":"Send inquiry","ConfirmSignupForm.displayNameLabel":"Display name","ConfirmSignupForm.displayNamePlaceholder":"Jane D","ConfirmSignupForm.displayNameRequired":"You need to add a display name.","ConfirmSignupForm.emailInvalid":"A valid email address is required.","ConfirmSignupForm.emailLabel":"Email","ConfirmSignupForm.emailPlaceholder":"[email protected]","ConfirmSignupForm.emailRequired":"You need to add an email.","ConfirmSignupForm.firstNameLabel":"First name","ConfirmSignupForm.firstNamePlaceholder":"Jane","ConfirmSignupForm.firstNameRequired":"You need to add a first name.","ConfirmSignupForm.lastNameLabel":"Last name","ConfirmSignupForm.lastNamePlaceholder":"Doe","ConfirmSignupForm.lastNameRequired":"You need to add a last name.","ConfirmSignupForm.phoneNumberLabel":"Phone number","ConfirmSignupForm.phoneNumberPlaceholder":"Enter your phone number.","ConfirmSignupForm.phoneNumberRequired":"You need to add a phone number.","ConfirmSignupForm.signUp":"Continue with {idp}","ContactDetailsForm.confirmChangesInfo":"To change your email address, please enter your current password.","ContactDetailsForm.confirmChangesTitle":"Confirm your changes","ContactDetailsForm.emailInvalid":"A valid email address is required.","ContactDetailsForm.emailLabel":"Your email address","ContactDetailsForm.emailRequired":"An email address is required.","ContactDetailsForm.emailSent":"Verification email sent!","ContactDetailsForm.emailTakenError":"This email address is already in use.","ContactDetailsForm.emailUnverified":"You haven\'t verified your email address yet. {resendEmailMessage}","ContactDetailsForm.emailVerified":"Your email address is verified.","ContactDetailsForm.genericEmailFailure":"Oops, something went wrong while updating your email. Please refresh the page and try again.","ContactDetailsForm.genericFailure":"Oops, something went wrong. Please refresh the page and try again.","ContactDetailsForm.genericPhoneNumberFailure":"Oops, something went wrong while updating your phone number. Please refresh the page and try again.","ContactDetailsForm.passwordFailed":"Please double-check your password.","ContactDetailsForm.passwordLabel":"Current password","ContactDetailsForm.passwordPlaceholder":"Enter your current password\u2026","ContactDetailsForm.passwordRequired":"A password is required.","ContactDetailsForm.passwordTooShort":"The password should be at least {minLength} characters.","ContactDetailsForm.pendingEmailCheckInbox":"Check your email inbox to verify {pendingEmail} now.","ContactDetailsForm.pendingEmailUnverified":"You haven\'t verified your new email address. {pendingEmailCheckInbox} {resendEmailMessage}","ContactDetailsForm.phoneLabel":"Phone number","ContactDetailsForm.phonePlaceholder":"Enter your phone number.","ContactDetailsForm.phoneRequired":"A phone number is required.","ContactDetailsForm.resendEmailVerificationText":"Resend verification email.","ContactDetailsForm.resendPasswordLinkText":"Resend instructions.","ContactDetailsForm.resetPasswordInfo":"Forgot your password or don\'t have one? {resetPasswordLink}","ContactDetailsForm.resetPasswordLinkSent":"Instructions to reset your password have been sent to {email}.","ContactDetailsForm.resetPasswordLinkText":"Send reset instructions.","ContactDetailsForm.saveChanges":"Save changes","ContactDetailsForm.tooManyVerificationRequests":"Too many verification requests have been sent for this email.","ContactDetailsPage.heading":"Contact details","ContactDetailsPage.title":"Contact details","CustomExtendedData
2Field.placeholderBoolean":"Select\u2026","CustomExtendedDataField.placeholderLong":"Add number","CustomExtendedDataField.placeholderSingleSelect":"Select\u2026","CustomExtendedDataField.placeholderText":"Write description\u2026","CustomExtendedDataField.required":"Required","CustomExtendedDataField.numberTooSmall":"The number must be larger than or equal to {min}","CustomExtendedDataField.numberTooBig":"The number must be less than or equal to {max}","DisputeModal.close":"Close","DisputeModal.description":"If you are not happy with your experience, please let the {marketplaceName} team know what happened. We will try to solve the problem as quickly as possible.","DisputeModal.disputePlaceholder":"There was an issue with...","DisputeModal.disputeReasonRequired":"You need to specify a reason","DisputeModal.disputeSubmitFailed":"Oops, something went wrong. Please refresh the page and try again.","DisputeModal.label":"Please explain the situation in detail","DisputeModal.sentMessage":"Thank you for letting us know. We will review the situation and take the necessary actions to solve the dispute.","DisputeModal.sentNextStep":"We will get in touch as soon as possible.","DisputeModal.sentTitle":"Dispute report sent","DisputeModal.submit":"Dispute order","Dis
2puteModal.title":"Did something go wrong?","EditListingAvailabilityExceptionForm.addException":"Save exception","EditListingAvailabilityExceptionForm.available":"Available","EditListingAvailabilityExceptionForm.exceptionEndDateLabel":"Ends","EditListingAvailabilityExceptionForm.exceptionStartDateLabel":"Starts","EditListingAvailabilityExceptionForm.notAvailable":"Not available","EditListingAvailabilityExceptionForm.title":"Add an availability exception","EditListingAvailabilityPanel.WeeklyCalendar.available":"Available","EditListingAvailabilityPanel.WeeklyCalendar.exceptions":"Exceptions","EditListingAvailabilityPanel.WeeklyCalendar.fetchExceptionsError":"Fetching availability exception data failed","EditListingAvailabilityPanel.WeeklyCalendar.notAvailable":"Not available","EditListingAvailabilityPanel.WeeklyCalendar.scheduleTitle":"Schedule for","EditListingAvailabilityPanel.addException":"Add an availability exception","EditListingAvailabilityPanel.availabilityPlanInfo":"When is this listing available for booking? Start by setting a default weekly schedule. After that you can adjust the availability for specific dates.","EditListingAvailabilityPanel.createListingTitle":"Availability","EditListingAvailabilityPanel.editAvailabilityPlan":"Edit default schedule","EditListingAvailabilityPanel.exceptionAvailable":"Available","EditListingAvailabilityPanel.exceptionNotAvailable":"Not available","EditListingAvailabilityPanel.setAvailabilityPlan":"Set default schedule","EditListingAvailabilityPanel.showListingFailed":"Fetching listing data failed.","EditListingAvailabilityPanel.title":"Edit the availability of {listingTitle}","EditListingAvailabilityPlanForm.addAnother":"+ Add another","EditListingAvailabilityPlanForm.dayOfWeek.fri":"Friday","EditListingAvailabilityPlanForm.dayOfWeek.mon":"Monday","EditListingAvailabilityPlanForm.dayOfWeek.sat":"Saturday","EditListingAvailabilityPlanForm.dayOfWeek.sun":"Sunday","EditListingAvailabilityPlanForm.dayOfWeek.thu":"Thursday","EditListingAvailabilityPlanForm.dayOfWeek.tue":"Tuesday","EditListingAvailabilityPlanForm.dayOfWeek.wed":"Wednesday","EditListingAvailabilityPlanForm.endTimePlaceholder":"End","EditListingAvailabilityPlanForm.hoursOfOperationTitle":"Weekly default schedule","EditListingAvailabilityPlanForm.plus1Day":"+1 day","EditListingAvailabilityPlanForm.saveSchedule":"Save schedule","EditListingAvailabilityPlanForm.startTimePlaceholder":"Start","EditListingAvailabilityPlanForm.timezonePickerTitle":"Select a time zone","EditListingAvailabilityPlanForm.title":"Edit default schedule for {listingTitle}","EditListingAvailabilityPlanForm.updateFailed":"Failed to update. Please try again.","EditListingDeliveryForm.address":"Pickup address","EditListingDeliveryForm.addressNotRecognized":"We didn\'t recognize this location. Please try another location.","EditListingDeliveryForm.addressPlaceholder":"Start typing\u2026","EditListingDeliveryForm.addressRequired":"You need to provide a location.","EditListingDeliveryForm.building":"Apt, suite, building {optionalText}","EditListingDeliveryForm.buildingPlaceholder":"A 42","EditListingDeliveryForm.optionalText":"\u2022 optional","EditListingDeliveryForm.pickupLabel":"Pickup","EditListingDeliveryForm.shippingAdditionalItemsLabel":"Shipping fee for additional items","EditListingDeliveryForm.shippingAdditionalItemsPlaceholder":"Set the fee for additional items","EditListingDeliveryForm.shippingAdditionalItemsRequired":"Shipping fee for additional items required.","EditListingDeliveryForm.shippingLabel":"Shipping","EditListingDeliveryForm.shippingOneItemLabel":"Shipping fee for one item","EditListingDeliveryForm.shippingOneItemPlaceholder":"Set the fee for shipping one item","EditListingDeliveryForm.shippingOneItemRequired":"Shipping fee for one item required.","EditListingDeliveryForm.showListingFailed":"Fetching listing data failed.","EditListingDeliveryForm.updateFailed":"Failed to update listing. Please try again.","EditListingDeliveryPanel.createListingTitle":"Delivery options","EditListingDeliveryPanel.title":"Edit the delivery options of {listingTitle}","EditListingDetailsForm.categoryLabel":"{categoryLevel, select, categoryLevel1 {Category} other {Subcategory}}","EditListingDetailsForm.categoryPlaceholder":"{categoryLevel, select, categoryLevel1 {Select category} other {Select subcategory}}","EditListingDetailsForm.categoryRequired":"{categoryLevel, select, categoryLevel1 {You need to select a category.} other {You need to select a subcategory.}}","EditListingDetailsForm.createListingDraftError":"Failed to create a draft listing. Please try again.","EditListingDetailsForm.defaultRequiredMessage":"Required","EditListingDetailsForm.description":"Listing description","EditListingDetailsForm.descriptionPlaceholder":"Describe your listing in more detail.","EditListingDetailsForm.descriptionRequired":"You need to add a de
2scription.","EditListingDetailsForm.listingTypeLabel":"Listing type","EditListingDetailsForm.listingTypePlaceholder":"Select listing type","EditListingDetailsForm.listingTypeRequired":"You need to select a listing type.","EditListingDetailsForm.maxLength":"Must be {maxLength} characters or less","EditListingDetailsForm.showListingFailed":"Fetching listing data failed.","EditListingDetailsForm.title":"Listing title","EditListingDetailsForm.titlePlaceholder":"What kind of listing is it?","EditListingDetailsForm.titleRequired":"You need to add a title.","EditListingDetailsForm.updateFailed":"Failed to update listing. Please try again.","EditListingDetailsPanel.createListingTitle":"Listing details","EditListingDetailsPanel.invalidListingTypeSetDescription":"This listing has a configuration that is no longer supported by {marketplaceName}, so you can\'t make changes to it. If you\'d like to keep it available, please contact the {marketplaceName} team.","EditListingDetailsPanel.invalidListingTypeSetTitle":"Outdated listing!","EditListingDetailsPanel.noListingTypeSetDescription":"Configurations for possible transactions are missing some info. Please, contact support.","EditListingDetailsPanel.noListingTypeSetTitle":"Oops, something went wrong!","EditListingDetailsPanel.title":"Edit the details of {listingTitle}","EditListingLocationForm.address":"Address","EditListingLocationForm.addressNotRecognized":"We didn\'t recognize this location. Please try another location.","EditListingLocationForm.addressPlaceholder":"123 Example Street","EditListingLocationForm.addressRequired":"You need to provide a location.","EditListingLocationForm.building":"Apt, suite, building # {optionalText}","EditListingLocationForm.buildingPlaceholder":"A 42","EditListingLocationForm.optionalText":"\u2022 optional","EditListingLocationForm.showListingFailed":"Fetching listing data failed.","EditListingLocationForm.updateFailed":"Failed to update listing. Please try again.","EditListingLocationPanel.createListingTitle":"Location","EditListingLocationPanel.title":"Edit the location of {listingTitle}","EditListingPage.loadingListingData":"Loading listing data\u2026","EditListingPage.titleCreateListing":"Post a new listing","EditListingPage.titleEditListing":"Edit listing","EditListingPhotosForm.addImagesTip":"Tip: Upload the best 2-3 photos from different angles and with a good quality.","EditListingPhotosForm.chooseImage":"+ Add a photo\u2026","EditListingPhotosForm.imageRequired":"You need to add at least one photo.","EditListingPhotosForm.imageTypes":".JPG or .PNG. Max. 20 MB","EditListingPhotosForm.imageUploadFailed.uploadFailed":"Failed to upload photo. Please check that the image file wasn\'t too big and try again.","EditListingPhotosForm.imageUploadFailed.uploadOverLimit":"The maximum file size is 20 MB. Please try again.","EditListingPhotosForm.publishListingFailed":"Publishing a new listing failed.","EditListingPhotosForm.savedImageAltText":"Saved listing photo","EditListingPhotosForm.showListingFailed":"Fetching listing data failed.","EditListingPhotosForm.updateFailed":"Failed to update listing. Please try again.","EditListingPhotosPanel.createListingTitle":"Photos","EditListingPhotosPanel.title":"Edit the photos of {listingTitle}","EditListingPricingAndStockForm.oldStockTotalWasOutOfSync":"Oops, the stock of this listing is out of sync. Someone might just have bought this item. Please refresh the page and try again.","EditListingPricingAndStockForm.priceInputPlaceholder":"Add a price\u2026","EditListingPricingAndStockForm.pricePerProduct":"Price","EditListingPricingAndStockForm.priceRequired":"You need to add a valid price.","EditListingPricingAndStockForm.priceTooLow":"Price should be at least {minPrice}.","EditListingPricingAndStockForm.showListingFailed":"Fetching listing data failed.","EditListingPricingAndStockForm.stockIsRequired":"Stock is required.","EditListingPricingAndStockForm.stockLabel":"Stock","EditListingPricingAndStockForm.stockPlaceholder":"How many items do you have for sale?","EditListingPricingAndStockForm.stockUpdateFailed":"Oops, something went wrong with the stock update. Please refresh the page and try again.","EditListingPricingAndStockForm.updateFailed":"Failed to update listing. Please try again.","EditListingPricingAndStockForm.updateToInfinite":"Update the stock of this listing to \u201cinfinite\u201d","EditListingPricingAndStockForm.updateToInfiniteInfo":"<b>The stock type of this listing type has changed.</b> The stock of this listing is currently {currentStock}, but listings in this listing type should now have infinite stock.","EditListingPricingAndStockForm.updateToInfiniteRequired":"You need to update the stock of this listing to \u201cinfinite\u201d to save changes.","EditListingPricingAndStockPanel.createListingTitle":"Pricing & stock","EditListingPricingAndStockPanel.listingPriceCurrencyInvalid":"The listing currency is different from the marketplace currency ({marketplaceCurrency}). You cannot edit the price.","EditListingPricingAndStockPanel.title":"Pricing & stock of {listingTitle}","EditListingPricingForm.priceInputPlaceholder":"Add a price\u2026","EditListingPricingForm.pricePerProduct":"Price {unitType, select, day {per day} night {per night} hour {per hour} other {}}","EditListingPricingForm.priceRequired":"You need to add a valid price.","EditListingPricingForm.priceTooLow":"Price should be at least {minPrice}.","EditListingPricingForm.showListingFailed":"Fetching listing data failed.","EditListingPricingForm.updateFailed":"Failed to update listing. Please try again.","EditListingPricingPanel.createListingTitle":"Pricing","EditListingPricingPanel.listingPriceCurrencyInvalid":"The listing currency is different from the marketplace currency ({marketplaceCurrency}). You cannot edit the price.","EditListingPricingPanel.title":"Edit the pricing of {listingTitle}","EditListingWizard.default-booking.new.saveAvailability":"Next","EditListingWizard.default-booking.new.saveDetails":"Next","EditListingWizard.default-booking.new.saveLocation":"Next","EditListingWizard.default-booking.new.savePhotos":"Publish listing","EditListingWizard.default-booking.new.savePricing":"Next","EditListingWizard.default-inquiry.new.saveDetails":"Next","EditListingWizard.default-inquiry.new.saveLocation":"Next","EditListingWizard.default-inquiry.new.saveLocationNoPricingTab":"Next","EditListingWizard.default-inquiry.new.savePhotos":"Publish listing","EditListingWizard.default-inquiry.new.savePricing":"Next","EditListingWizard.default-purchase.new.saveDelivery":"Next","EditListingWizard.default-purchase.new.saveDetails":"Next","EditListingWizard.default-purchase.new.savePhotos":"Publish listing","EditListingWizard.default-purchase.new.savePricingAndStock":"Next","EditListingWizard.edit.saveAvailability":"Save changes","EditListingWizard.edit.saveDelivery":"Save changes","EditListingWizard.edit.saveDetails":"Save changes","EditListingWizard.edit.saveLocation":"Save changes","EditListingWizard.edit.savePhotos":"Save changes","EditListingWizard.edit.savePricing":"Save changes","EditListingWizard.edit.savePricingAndStock":"Save changes","EditListingWizard.payoutModalInfo":"Almost done! To send payouts to your account, we need to collect some personal data. Next, we\'ll guide you through verifying your account. The details can also be edited on the Account settings page in the Payout details tab. ","EditListingWizard.payoutModalTitleOneMoreThing":"One more thing:","EditListingWizard.payoutModalTitlePayoutPreferences":"Payout preferences","EditListingWizard.redirectingToStripe":"You returned early from Stripe. Redirecting you back to Stripe\u2026","EditListingWizard.tabLabelAvailability":"Availability","EditListingWizard.tabLabelDelivery":"Delivery","EditListingWizard.tabLabelDetails":"Details","EditListingWizard.tabLabelFeatures":"Features","EditListingWizard.tabLabelLocation":"Location","EditListingWizard.tabLabelPhotos":"Photos","EditListingWizard.tabLabelPolicy":"Disclaimer","EditListingWizard.tabLabelPricing":"Pricing","EditListingWizard.tabLabelPricingAndStock":"Pricing & stock","EmailVerificationForm.finishAccountSetup":"We will need to send you email notifications. To allow this, please verify your email address {email}.","EmailVerificationForm.noPendingText":"We\'re all set. Your current email address is {email}. {lineBreak} Have a great day!","EmailVerificationForm.noPendingTitle":"You don\'t have any pen
2ding email address, {name}.","EmailVerificationForm.successButtonText":"Continue exploring","EmailVerificationForm.successText":"We\'re all set. Have a great day!","EmailVerificationForm.successTitle":"Thanks for verifying your email address, {name}.","EmailVerificationForm.verificationFailed":"Could not verify the email address.","EmailVerificationForm.verify":"Verify my email address","EmailVerificationForm.verifyEmailAddress":"Verify your email address","EmailVerificationForm.verifying":"Verifying\u2026","EmailVerificationPage.loadingUserInformation":"Loading user information\u2026","EmailVerificationPage.title":"Verify your email address","FieldBoolean.no":"No","FieldBoolean.yes":"Yes","FieldDateAndTimeInput.endTime":"End time","FieldDateAndTimeInput.startTime":"Start time","FieldDateInput.screenReaderInputMessage":"Date input","FieldDateRangeInput.endDatePlaceholderText":"Add end date","FieldDateRangeInput.invalidEndDate":"The end date is not valid","FieldDateRangeInput.invalidStartDate":"The start date is not valid","FieldDateRangeInput.screenReaderInputMessage":"Date input","FieldDateRangeInput.startDatePlaceholderText":"Add start date","FieldReviewRating.star1":"Bad experience - 1 star","FieldReviewRating.star2":"Not so nice - 2 stars","FieldReviewRating.star3":"OK - 3 stars","FieldReviewRating.star4":"Good - 4 stars","FieldReviewRating.star5":"Awesome - 5 stars","FieldSelectUserType.label":"User type","FieldSelectUserType.placeholder":"Choose a user type","FieldSelectUserType.required":"You need to select a user type.","FilterComponent.categoryLabel":"Category","FilterComponent.datesLabel":"Dates","FilterComponent.keywordsLabel":"Keywords","FilterComponent.priceLabel":"Price","FilterForm.cancel":"Cancel","FilterForm.clear":"Clear","FilterForm.submit":"Apply","FilterPlain.clear":"Clear","ImageCarousel.imageAltText":"listing photo {index}/{count}","ImageFromFile.couldNotReadFile":"Couldn\'t read file","InboxPage.default-booking.accepted.status":"Accepted","InboxPage.default-booking.canceled.status":"Canceled","InboxPage.default-booking.declined.status":"Declined","InboxPage.default-booking.delivered.status":"Waiting for review","InboxPage.default-booking.expired.status":"Expired","InboxPage.default-booking.inquiry.status":"Inquiry","InboxPage.default-booking.payment-expired.status":"Payment expired","InboxPage.default-booking.pending-payment.status":"Pending payment","InboxPage.default-booking.preauthorized.status":"Requested","InboxPage.default-booking.reviewed-by-customer.status":"{transactionRole, select, customer {Waiting for listing owner review} other {Waiting for your review}}","InboxPage.default-booking.reviewed-by-provider.status":"{transactionRole, select, customer {Waiting for your review} other {Waiting for customer review}}","InboxPage.default-booking.reviewed.status":"Completed","InboxPage.default-inquiry.free-inquiry.status":"Free inquiry","InboxPage.default-purchase.canceled.status":"Canceled","InboxPage.default-purchase.completed.status":"Waiting for review","InboxPage.default-purchase.delivered.status":"{transactionRole, select, customer {Mark as received} other {Delivered}}","InboxPage.default-purchase.disputed.status":"Disputed","InboxPage.default-purchase.inquiry.status":"Inquiry","InboxPage.default-purchase.payment-expired.status":"Payment expired","InboxPage.default-purchase.pending-payment.status":"Pending payment","InboxPage.default-purchase.purchased.status":"Waiting for delivery","InboxPage.default-purchase.received.status":"Waiting for review","InboxPage.default-purchase.reviewed-by-customer.status":"{transactionRole, select, customer {Waiting for listing author\'s review} other {Waiting for your review}}","InboxPage.default-purchase.reviewed-by-provider.status":"{transactionRole, select, customer {Waiting for your review} other {Waiting for customer review}}","InboxPage.default-purchase.reviewed.status":"Completed","InboxPage.fetchFailed":"Couldn\'t load all messages. Please try again.","InboxPage.noOrdersFound":"You haven\'t made any orders yet.","InboxPage.noSalesFound":"Nobody has ordered anything from you yet.","InboxPage.ordersTabTitle":"As a customer","InboxPage.ordersTitle":"Inbox: As a customer","InboxPage.quantity":"Number of items: {quantity}","InboxPage.salesTabTitle":"As a listing author","InboxPage.salesTitle":"Inbox: As a listing author","InboxPage.title":"Inbox","InquiryForm.heading":"Inquire about {listingTitle}","InquiryForm.messageLabel":"Message to {authorDisplayName}","InquiryForm.messagePlaceholder":"Hello {authorDisplayName}! I\'m looking forward to\u2026","InquiryForm.messageRequired":"A message is required","InquiryForm.sendInquiryError":"Oops, something went wrong. Please try again.","InquiryForm.sendInquiryErrorNoProcess":"Oops, no transaction process attached to the listing. Please contact support","InquiryForm.submitButtonText":"Send inquiry","InquiryForm.tooManyRequestsError":"Sending inquiry failed. There have been too many requests made in a short amount of time. If the error persists, try refreshing the page or contact support.","InquiryWithoutPaymentForm.ctaButton":"Send an inquiry","KeywordFilter.filterText":"Filter results by","KeywordFilter.labelSelected":"\\"{labelText}\\"","KeywordFilter.placeholder":"Enter a keyword\u2026","LandingPage.schemaDescription":"An online marketplace.","LandingPage.schemaTitle":"{marketplaceName}","LayoutWrapperAccountSettingsSideNav.contactDetailsTabTitle":"Contact details","LayoutWrapperAccountSettingsSideNav.passwordTabTitle":"Password","LayoutWrapperAccountSettingsSideNav.paymentMethodsTabTitle":"Payment methods","LayoutWrapperAccountSettingsSideNav.paymentsTabTitle":"Payout details","LimitedAccessBanner.logout":"Log out","LimitedAccessBanner.message":"You\'re logged in as {firstName} {lastName}. You have limited access rights. You can\'t initiate transactions, move them forward, or send messages on the user\'s behalf.","LimitedAccessBanner.fullRightsMessage":"You\'re logged in as {firstName} {lastName}. You have full access rights. In a Live environment, you will have limited rights.","LimitedAccessBanner.fallbackMessage":"You\'re logged in as {firstName} {lastName}.","ListingCard.author":"{authorName}","ListingCard.perUnit":"{unitType, select, day {per day} night {per night} hour {per hour} other {}}
2","ListingCard.unsupportedPrice":"({currency})","ListingCard.unsupportedPriceTitle":"Unsupported currency ({currency})","ListingImageGallery.closeModal":"CLOSE","ListingImageGallery.closeModalTitle":"Close modal","ListingImageGallery.imageAltText":"listing photo {index}/{count}","ListingImageGallery.imageThumbnailAltText":"listing photo thumbnail {index}/{count}","ListingImageGallery.viewImagesButton":"View large photos ({count})","ListingPage.aboutProviderTitle":"About the listing author","ListingPage.addPayoutDetails":"Add payout details","ListingPage.addPayoutDetailsMessage":"Please add your payout details to start accepting orders.","ListingPage.closedListing":"This listing is not available right now.","ListingPage.contactUser":"Contact","ListingPage.detailsTitle":"Details","ListingPage.editListing":"Edit listing","ListingPage.editProfileLink":"Edit profile","ListingPage.errorInvalidListingMessage":"The listing contained invalid data. Please contact the marketplace operator.","ListingPage.errorLoadingListingMessage":"Could not load the listing. Please try again.","ListingPage.errorLoadingListingTitle":"Error in loading the listing","ListingPage.finishListing":"Finish listing","ListingPage.loadingListingMessage":"Loading listing\u2026","ListingPage.loadingListingTitle":"Loading listing\u2026","ListingPage.locationTitle":"Location","ListingPage.orderTitle":"{title}","ListingPage.ownClosedListing":"Your listing has been closed. It\'s no longer visible on the marketplace.","ListingPage.ownListing":"This is your own listing.","ListingPage.ownListingDraft":"This listing is a draft.","ListingPage.ownListingPendingApproval":"This listing is pending approval.","ListingPage.payoutDetailsWarning":"This listing is not available {processType, select, booking {for booking} other {for purchase}}. You have not added your payout details yet.","ListingPage.payoutDetailsWarningLink":"Add your payout details","ListingPage.reviewsError":"Loading reviews failed.","ListingPage.reviewsTitle":"Reviews ({count})","ListingPage.schemaTitle":"{title} | {marketplaceName}","ListingPage.viewImagesButton":"View photos ({count})","LoadableComponentErrorBoundaryPage.description":"It looks like the app needs to be updated! Please refresh the page or go back to {link}.","LoadableComponentErrorBoundaryPage.heading":"Oops, we couldn\'t fetch the page.","LoadableComponentErrorBoundaryPage.landingPageLink":"landing page","LocationAutocompleteInput.currentLocation":"Current location","LoginForm.emailInvalid":"A valid email address is required.","LoginForm.emailLabel":"Email","LoginForm.emailPlaceholder":"[email protected]","LoginForm.emailRequired":"This field is required.","LoginForm.forgotPassword":"Reset password","LoginForm.forgotPasswordInfo":"Forgot your password? {passwordRecoveryLink}","LoginForm.logIn":"Log in","LoginForm.passwordLabel":"Password","LoginForm.passwordPlaceholder":"Enter your password\u2026","LoginForm.passwordRequired":"This field is required.","MainPanelHeader.foundResults":"{count, number} {count, plural, one {result} other {results}}","MainPanelHeader.loadingResults":"Loading search results\u2026","MainPanelHeader.sortBy":"Sort by:","ManageListingCard.actionFailed":"Oops, something went wrong. Please refresh the page and try again.","ManageListingCard.closeListing":"Close listing","ManageListingCard.closeListingText":"close listing","ManageListingCard.closeListingTextOr":"or {closeListingLink}","ManageListingCard.closedListing":"This listing is closed and not visible on the marketplace.","ManageListingCard.draftOverlayText":"{listingTitle} is a listing draft and not yet available.","ManageListingCard.editListing":"Edit listing","ManageListingCard.finishListingDraft":"Finish listing","ManageListingCard.manageAvailability":"Manage availability","ManageListingCard.manageStock":"Manage stock ({currentStock})","ManageListingCard.openListing":"Open listing","ManageListingCard.outOfStockOverlayText":"{listingTitle} is out of stock.","ManageListingCard.pendingApproval":"{listingTitle} is pending admin approval. It\'s not visible on the marketplace yet.","ManageListingCard.perUnit":"{unitType, select, day {per day} night {per night} hour {per hour} other {}}
2","ManageListingCard.priceNotSet":"Price not set","ManageListingCard.setPriceAndStock":"Add stock","ManageListingCard.unsupportedPrice":"({currency})","ManageListingCard.unsupportedPriceTitle":"Unsupported currency ({currency})","ManageListingsPage.createListing":"Post a new listing","ManageListingsPage.loadingOwnListings":"Loading listings\u2026","ManageListingsPage.noResults":"You haven\'t listed any listings.","ManageListingsPage.queryError":"Query failed. Please try again.","ManageListingsPage.title":"Manage your listings","ManageListingsPage.youHaveListings":"You have {count} {count, plural, one {listing} other {listings}}","Modal.close":"CLOSE","Modal.closeModal":"Close modal","ModalMissingInformation.checkInbox":"Please check your inbox and verify your email address {email}.","ModalMissingInformation.closeVerifyEmailReminder":"Later","ModalMissingInformation.fixEmail":"Oops, typo in your email? {fixEmailLink}","ModalMissingInformation.fixEmailLinkText":"Fix it.","ModalMissingInformation.resendEmail":"Didn\'t get the email? {resendEmailLink}","ModalMissingInformation.resendEmailLinkText":"Resend it.","ModalMissingInformation.resendFailed":"Resending verification email failed. Please try again.","ModalMissingInformation.resendFailedTooManyRequests":"Resending verification email failed. Too many verification emails sent.","ModalMissingInformation.sendingEmail":"Sending verification email\u2026","ModalMissingInformation.verifyEmailText":"Please verify your email address so we can send you your receipt and information on your order status. We are unable to send you emails before your email has been verified.","ModalMissingInformation.verifyEmailTitle":"Please verify your email address","NotFoundPage.SearchForm.placeholder":"Search listings\u2026","NotFoundPage.description":"We can\'t find the page you\'re looking for. Make sure you\'ve typed in the URL correctly or try searching {marketplaceName}.","NotFoundPage.heading":"Sorry, we couldn\'t find that page.","NotFoundPage.title":"Page not found","OrderBreakdown.baseUnitDay":"{unitPrice} x {quantity, number} {quantity, plural, one {day} other {days}}","OrderBreakdown.baseUnitNight":"{unitPrice} x {quantity, number} {quantity, plural, one {night} other {nights}}","OrderBreakdown.baseUnitHour":"{unitPrice} x {quantity, number} {quantity, plural, one {hour} other {hours}}","OrderBreakdown.baseUnitQuantity":"{quantity, plural, one {Unit price} other {{unitPrice} x #}}","OrderBreakdown.bookingEnd":"Booking end","OrderBreakdown.bookingStart":"Booking start","OrderBreakdown.commission":"{role, select, customer {{marketplaceName} fee *} provider {{marketplaceName} fee *} other {}}","OrderBreakdown.commissionFeeNote":"* The fee helps us run this platform and provide the best possible service to you!","OrderBreakdown.pickupFee":"Pickup","OrderBreakdown.providerTotalDefault":"You\'ll make","OrderBreakdown.providerTotalReceived":"You made","OrderBreakdown.providerTotalRefunded":"Total price","OrderBreakdown.refund":"Refund","OrderBreakdown.refundCustomerFee":"Refund {marketplaceName} fee","OrderBreakdown.refundProviderFee":"Refund {marketplaceName} fee","OrderBreakdown.shippingFee":"Shipping","OrderBreakdown.subTotal":"Subtotal","OrderBreakdown.total":"Total price","OrderPanel.author":"{name}","OrderPanel.closedListingButtonText":"Sorry, this listing has been closed.","OrderPanel.ctaButtonMessageBooking":"Book now","OrderPanel.ctaButtonMessageInquiry":"Send an inquiry","OrderPanel.ctaButtonMessageNoStock":"Out of stock","OrderPanel.ctaButtonMessagePurchase":"Buy now","OrderPanel.listingCurrencyInvalid":"Oops, listing currency doesn\'t match the marketplace currency.","OrderPanel.listingPriceMissing":"Oops, this listing has no price!","OrderPanel.perUnit":"{unitType, select, day {per day} night {per night} hour {per hour} other {}}","OrderPanel.subTitleClosedListing":"Sorry, this listing has been closed.","OrderPanel.unknownTransactionProcess":"Oops, it looks like the marketplace processes aren\'t up to date. Please contact the marketplace operator.","Page.schemaDescription":"An online marketplace.","Page.schemaTitle":"{marketplaceName}","PaginationLinks.next":"Next page","PaginationLinks.previous":"Previous page","PaginationLinks.toPage":"Go to page {page}","PasswordChangeForm.confirmChangesInfo":"To change your password, please enter your current password.","PasswordChangeForm.confirmChangesTitle":"Confirm your changes","PasswordChangeForm.genericFailure":"Oops, something went wrong. Please refresh the page and try again.","PasswordChangeForm.newPasswordLabel":"New password","PasswordChangeForm.newPasswordPlaceholder":"Enter your new password","PasswordChangeForm.newPasswordRequired":"New password is required.","PasswordChangeForm.passwordFailed":"Please double-check your current password.","PasswordChangeForm.passwordLabel":"Current password","PasswordChangeForm.passwordPlaceholder":"Enter your current password\u2026","PasswordChangeForm.passwordRequired":"Current password is required.","PasswordChangeForm.passwordTooLong":"The password can\'t be longer than {maxLength} characters.","PasswordChangeForm.passwordTooShort":"The password should be at least {minLength} characters.","PasswordChangeForm.resendPasswordLinkText":"Resend instructions.","PasswordChangeForm.resetPasswordInfo":"Forgot your password or don\'t have one? {resetPasswordLink}","PasswordChangeForm.resetPasswordLinkSent":"Instructions to reset your password have been sent to {email}.","PasswordChangeForm.resetPasswordLinkText":"Send reset instructions.","PasswordChangeForm.saveChanges":"Save changes","PasswordChangePage.heading":"Password settings","PasswordChangePage.title":"Password","PasswordRecoveryForm.emailInvalid":"A valid email address is required.","PasswordRecoveryForm.emailLabel":"Email","PasswordRecoveryForm.emailNotFound":"Hmm. We didn\'t find an account with that email address. Please double-check the email and try again.","PasswordRecoveryForm.emailPlaceholder":"[email protected]","PasswordRecoveryForm.emailRequired":"This field is required.","PasswordRecoveryForm.loginLinkInfo":"Suddenly remembered your password? {loginLink}","PasswordRecoveryForm.loginLinkText":"Log in.","PasswordRecoveryForm.sendInstructions":"Send instructions","PasswordRecoveryPage.actionFailedMessage":"Something went wrong. Please refresh the page and try again.","PasswordRecoveryPage.actionFailedTitle":"Oops!","PasswordRecoveryPage.emailSubmittedMessage":"Instructions to reset your password have been sent to {submittedEmailText}.","PasswordRecoveryPage.emailSubmittedTitle":"Check your email inbox","PasswordRecoveryPage.fixEmailInfo":"Oops, typo in your email? {fixEmailLink}","PasswordRecoveryPage.fixEmailLinkText":"Fix it.","PasswordRecoveryPage.forgotPasswordMessage":"No w
2orries! Please enter the email address you used to sign up and we\'ll send you instructions to set a new password.","PasswordRecoveryPage.forgotPasswordTitle":"Forgot your password?","PasswordRecoveryPage.resendEmailInfo":"Didn\'t get the email? {resendEmailLink}","PasswordRecoveryPage.resendEmailLinkText":"Send another email.","PasswordRecoveryPage.resendingEmailInfo":"Resending instructions\u2026","PasswordRecoveryPage.title":"Request a new password","PasswordResetForm.passwordLabel":"Your new password","PasswordResetForm.passwordPlaceholder":"Enter your new password\u2026","PasswordResetForm.passwordRequired":"This field is required.","PasswordResetForm.passwordTooLong":"The password can\'t be longer than {maxLength} characters.","PasswordResetForm.passwordTooShort":"The password should be at least {minLength} characters.","PasswordResetForm.submitButtonText":"Reset password","PasswordResetPage.helpText":"Please provide a new password.","PasswordResetPage.invalidUrlParams":"Oops, looks like the password reset link is broken. Try again by clicking the email link, or request a new link on the {recoveryLink}.","PasswordResetPage.loginButtonText":"Log in","PasswordResetPage.mainHeading":"Reset your password","PasswordResetPage.passwordChangedHeading":"Password changed","PasswordResetPage.passwordChangedHelpText":"Your password has been changed successfully.","PasswordResetPage.recoveryLinkText":"password recovery page","PasswordResetPage.resetFailed":"Reset failed. Please try again.","PasswordResetPage.title":"Reset password","PaymentMethodsForm.billingDetails":"Billing details","PaymentMethodsForm.billingDetailsNameLabel":"Card holder\'s name","PaymentMethodsForm.billingDetailsNamePlaceholder":"Enter your name\u2026","PaymentMethodsForm.genericError":"Could not handle payment data. Please try again.","PaymentMethodsForm.infoText":"I authorise {marketplaceName} to send instructions to the financial institution that issued my card to take payments from my card account in accordance with the terms of my agreement with you.","PaymentMethodsForm.paymentCardDetails":"Payment card details","PaymentMethodsForm.submitPaymentInfo":"Save payment card","PaymentMethodsPage.heading":"Payment methods","PaymentMethodsPage.title":"Payment methods","PriceFilter.clear":"Clear","PriceFilter.label":"Price","PriceFilter.labelSelectedButton":"{minPrice} - {maxPrice}","PriceFilter.labelSelectedPlain":"{minPrice} - {maxPrice}","PriceFilterForm.cancel":"Cancel","PriceFilterForm.clear":"Clear","PriceFilterForm.label":"Price range:","PriceFilterForm.submit":"Apply","ProductOrderForm.breakdownTitle":"Order breakdown","ProductOrderForm.ctaButton":"Buy now","ProductOrderForm.ctaButtonNoStock":"Out of stock","ProductOrderForm.deliveryMethodLabel":"Delivery method","ProductOrderForm.deliveryMethodRequired":"Delivery method is required.","ProductOrderForm.finePrint":"You won\'t be charged yet.","ProductOrderForm.finePrintNoStock":"Unfortunately this listing is out of stock right now but you can {contactSellerLink}.","ProductOrderForm.finePrintNoStockLinkText":"contact the listing author","ProductOrderForm.noDeliveryMethodSet":"Provider hasn\'t enabled any delivery method.","ProductOrderForm.ownListing":"This is your own listing.","ProductOrderForm.pickupOption":"Pickup","ProductOrderForm.quantityLabel":"Number of items","ProductOrderForm.quantityOption":"{quantity, number} {quantity, plural, one {item} other {items}}","ProductOrderForm.quantityRequired":"Please select the number of items you want to buy.","ProductOrderForm.selectDeliveryMethodOption":"Select delivery method","ProductOrderForm.selectQuantityOption":"Select...","ProductOrderForm.shippingOption":"Shipping","ProfilePage.desktopHeading":"Hello, I\'m {name}.","ProfilePage.detailNo":"No","ProfilePage.detailYes":"Yes","ProfilePage.detailsTitle":"Details","ProfilePage.editProfileLinkDesktop":"Edit profile","ProfilePage.editProfileLinkMobile":"Edit","ProfilePage.listingsTitle":"My listings ({count})","ProfilePage.loadingDataFailed":"Oops, something went wrong. Please try again.","ProfilePage.loadingReviewsFailed":"Loading reviews failed.","ProfilePage.mobileHeading":"{name}","ProfilePage.reviewsAsACustomerTitle":"Reviews as a customer ({count})","ProfilePage.reviewsFromMyCustomersTitle":"Reviews from customers ({count})","ProfilePage.schemaTitle":"{name} | {marketplaceName}","ProfileSettingsForm.addYourProfilePicture":"+ Add your profile picture\u2026","ProfileSettingsForm.addYourProfilePictureMobile":"+ Add","ProfileSettingsForm.bioHeading":"Your profile bio","ProfileSettingsForm.bioInfo":"{marketplaceName}
2 is built on relationships. Help other people get to know you.","ProfileSettingsForm.bioLabel":"Bio","ProfileSettingsForm.bioPlaceholder":"Tell us a little bit about yourself\u2026","ProfileSettingsForm.changeAvatar":"Change","ProfileSettingsForm.displayNameHeading":"Your display name","ProfileSettingsForm.displayNameInfo":"The display name defaults to first name plus initial of last name.","ProfileSettingsForm.displayNameLabel":"Display name","ProfileSettingsForm.displayNamePlaceholder":"Jane D","ProfileSettingsForm.displayNameRequired":"This field is required.","ProfileSettingsForm.fileInfo":".JPG or .PNG. Max. 20 MB","ProfileSettingsForm.firstNameLabel":"First name","ProfileSettingsForm.firstNamePlaceholder":"Jane","ProfileSettingsForm.firstNameRequired":"This field is required.","ProfileSettingsForm.imageUploadFailed":"Oops, something went wrong. Please check that the image file isn\'t too big and try again.","ProfileSettingsForm.imageUploadFailedFileTooLarge":"Image file is too big. Maximum size is 20 MB.","ProfileSettingsForm.lastNameLabel":"Last name","ProfileSettingsForm.lastNamePlaceholder":"Doe","ProfileSettingsForm.lastNameRequired":"This field is required.","ProfileSettingsForm.saveChanges":"Save changes","ProfileSettingsForm.tip":"Tip: Use a photo where your face is recognizable.","ProfileSettingsForm.updateProfileFailed":"Oops, something went wrong. Please try again.","ProfileSettingsForm.yourName":"Your name","ProfileSettingsForm.yourProfilePicture":"Your profile picture","ProfileSettingsPage.heading":"Profile settings","ProfileSettingsPage.title":"Profile settings","ProfileSettingsPage.viewProfileLink":"View your profile","IntegerRangeFilter.labelSelectedPlain":"{minValue} - {maxValue}","ResponsiveBackgroundImageContainer.backgroundImageAlt":"Background image","ResponsiveImage.noImage":"No image","ReviewForm.reviewContentLabel":"Describe your experience","ReviewForm.reviewContentPlaceholder":"How did it go\u2026","ReviewForm.reviewContentRequired":"You need to add a message to leave a review.","ReviewForm.reviewRatingLabel":"Rate your experience","ReviewForm.reviewRatingRequired":"Rating is required.","ReviewForm.reviewSubmit":"Publish review","ReviewForm.reviewSubmitAlreadySent":"Review already sent. Please refresh the page.","ReviewForm.reviewSubmitFailed":"Failed to send a review. Please try again.","ReviewModal.description":"Please share what went well and what could be improved.","ReviewModal.later":"Later","ReviewModal.title":"Leave a review for {revieweeName}","SavedCardDetails.cancel":"Cancel","SavedCardDetails.deletePaymentMethod":"Remove payment card","SavedCardDetails.expiredCardText":"This payment card has expired.","SavedCardDetails.removeCard":"Remove card","SavedCardDetails.removeCardModalContent":"The payment card \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 {last4Digits} will be removed from your account.","SavedCardDetails.removeCardModalTitle":"Are you sure you want to remove this payment card?","SavedCardDetails.replaceCardText":"Credit or debit card","SavedCardDetails.replaceCardTitle":"Use another payment card","SavedCardDetails.savedPaymentMethodPlaceholderDesktop":"\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 {last4Digits}","SavedCardDetails.savedPaymentMethodPlaceholderMobile":"\u2026{last4Digits}","SearchFiltersMobile.cancel":"CANCEL","SearchFiltersMobile.filtersButtonLabel":"Filters","SearchFiltersMobile.foundResults":"{count, number} {count, plural, one {result} other {results}}","SearchFiltersMobile.heading":"Filter search","SearchFiltersMobile.loadingResults":"Loading\u2026","SearchFiltersMobile.noResults":"No results.","SearchFiltersMobile.openMapView":"Map","SearchFiltersMobile.resetAll":"Reset all","SearchFiltersMobile.showListings":"Show {count, number} {count, plural, one {item} other {items}}","SearchFiltersPrimary.moreFiltersButton":"{count, plural, =0 {More filters} other {More filters \u2022 #}}","SearchFiltersSecondary.apply":"Apply","SearchFiltersSecondary.cancel":"Cancel","SearchFiltersSecondary.resetAll":"Reset all","SearchMapInfoCard.noImage":"No photo","SearchPage.createListing":"Post a new listing","SearchPage.detailNo":"No","SearchPage.detailYes":"Yes","SearchPage.invali
2dDatesFilter":"Invalid date range filter values in URL. The filter was ignored.","SearchPage.noResults":"Couldn\'t find any listings that match your search criteria.","SearchPage.resetAllFilters":"Reset filters","SearchPage.schemaDescription":"Showing search results","SearchPage.schemaForSearch":"a query","SearchPage.schemaTitle":"Search results for {searchTitle} | {marketplaceName}","SearchPage.searchError":"Search failed. Please try again.","SelectMultipleFilter.labelSelected":"{labelText} \u2022 {count}","SelectMultipleFilterPlainForm.labelSelected":"\u2022 {count}","SendMessageForm.sendFailed":"Failed to send. Please try again.","SendMessageForm.sendMessage":"Send message","ShippingDetails.addressLine1Label":"Street address","ShippingDetails.addressLine1Placeholder":"123 Example Street","ShippingDetails.addressLine1Required":"Street address is required.","ShippingDetails.addressLine2Label":"Apt # {optionalText}","ShippingDetails.addressLine2Placeholder":"A 42","ShippingDetails.cityLabel":"City","ShippingDetails.cityPlaceholder":"Helsinki","ShippingDetails.cityRequired":"City is required.","ShippingDetails.countryLabel":"Country","ShippingDetails.countryPlaceholder":"Select a country\u2026","ShippingDetails.countryRequired":"Country is required.","ShippingDetails.optionalText":"\u2022 optional","ShippingDetails.postalCodeLabel":"Postal code","ShippingDetails.postalCodePlaceholder":"00100","ShippingDetails.postalCodeRequired":"Postal code is required.","ShippingDetails.recipientNameLabel":"Name","ShippingDetails.recipientNamePlaceholder":"Jane Doe","ShippingDetails.recipientNameRequired":"Recipient name is required.","ShippingDetails.recipientPhoneNumberLabel":"Phone number {optionalText}","ShippingDetails.recipientPhoneNumberPlaceholder":"+358 123456789","ShippingDetails.stateLabel":"State {optionalText}","ShippingDetails.statePlaceholder":"Enter your state","ShippingDetails.title":"Shipping address","SignupForm.displayNameLabel":"Display name","SignupForm.displayNamePlaceholder":"Jane D","SignupForm.displayNameRequired":"You need to add a display name.","SignupForm.emailInvalid":"A valid email address is required.","SignupForm.emailLabel":"Email","SignupForm.emailPlaceholder":"[email protected]","SignupForm.emailRequired":"You need to add an email.","SignupForm.firstNameLabel":"First name","SignupForm.firstNamePlaceholder":"Jane","SignupForm.firstNameRequired":"You need to add a first name.","SignupForm.lastNameLabel":"Last name","SignupForm.lastNamePlaceholder":"Doe","SignupForm.lastNameRequired":"You need to add a last name.","SignupForm.passwordLabel":"Password","SignupForm.passwordPlaceholder":"Enter your password\u2026","SignupForm.passwordRequired":"You need to add a password.","SignupForm.passwordTooLong":"The password can\'t be longer than {maxLength} characters.","SignupForm.passwordTooShort":"The password should be at least {minLength} characters.","SignupForm.phoneNumberLabel":"Phone number","SignupForm.phoneNumberPlaceholder":"Enter your phone number.","SignupForm.phoneNumberRequired":"You need to add a phone number.","SignupForm.signUp":"Sign up","SortBy.heading":"Sort by","SortBy.newest":"Newest","SortBy.oldest":"Oldest","SortBy.lowestPrice":"Lowest price","SortBy.highestPrice":"Highest price","SortBy.relevance":"Relevance","SortBy.relevanceLong":"Relevance (Keyword search)","StripeBankAccountTokenInputField.accountNumber.inline":"account number","StripeBankAccountTokenInputField.accountNumber.label":"Bank account number","StripeBankAccountTokenInputField.accountNumber.placeholder":"Type in bank account number\u2026","StripeBankAccountTokenInputField.accountNumber.required":"Bank account number is required.","StripeBankAccountTokenInputField.accountOwnerName.inline":"account owner name","StripeBankAccountTokenInputField.accountOwnerName.label":"Bank account owner name","StripeBankAccountTokenInputField.accountOwnerName.placeholder":"Jane Doe","StripeBankAccountTokenInputField.accountOwnerName.required":"Bank account owner name is required.","StripeBankAccountTokenInputField.andBeforeLastItemInAList":" and","StripeBankAccountTokenInputField.bankCode.inline":"bank code","StripeBankAccountTokenInputField.bankCode.label":"Bank code","StripeBankAccountTokenInputField.bankCode.placeholder":"Type in bank code\u2026","StripeBankAccountTokenInputField.bankCode.required":"Bank code is required.","StripeBankAccountTokenInputField.bankName.inline":"bank name","StripeBankAccountTokenInputField.bankName.label":"Bank name","StripeBankAccountTokenInputField.bankName.placeholder":"Type in bank name\u2026","StripeBankAccountTokenInputField.bankName.required":"Bank name is required.","StripeBankAccountTokenInputField.branchCode.inline":"branch code","StripeBankAccountTokenInputField.branchCode.label":"Branch code","StripeBankAccountTokenInputField.branchCode.placeholder":"Type in branch code\u2026","StripeBankAccountTokenInputField.branchCode.required":"Branch code is required.","StripeBankAccountTokenInputField.branchName.inline":"branch name","StripeBankAccountTokenInputField.branchName.label":"Branch name","StripeBankAccountTokenInputField.branchName.placeholder":"Type in branch name\u2026","StripeBankAccountTokenInputField.branchName.required":"Branch name is required.","StripeBankAccountTokenInputField.bsb.inline":"BSB","StripeBankAccountTokenInputField.bsb.label":"BSB","StripeBankAccountTokenInputField.bsb.placeholder":"Type in BSB\u2026","StripeBankAccountTokenInputField.bsb.required":"BSB is required.","StripeBankAccountTokenInputField.clabe.inline":"CLABE","StripeBankAccountTokenInputField.clabe.label":"CLABE","StripeBankAccountTokenInputField.clabe.placeholder":"Type in CLABE\u2026","StripeBankAccountTokenInputField.clabe.required":"CLABE is required.","StripeBankAccountTokenInputField.clearingCode.inline":"clearing code","StripeBankAccountTokenInputField.clearingCode.label":"Clearing code","StripeBankAccountTokenInputField.clearingCode.placeholder":"Type in clearing code\u2026","StripeBankAccountTokenInputField.clearingCode.required":"Clearing code is required.","StripeBankAccountTokenInputField.genericStripeError":"Couldn\'t connect account number. Please double-check that your {inputs} are valid in {country}","StripeBankAccountTokenInputField.genericStripeErrorIban":"Couldn\'t connect account number. Please double-check that your account number is valid in {country}","StripeBankAccountTokenInputField.iban.inline":"IBAN","StripeBankAccountTokenInputField.iban.label":"Bank account number (IBAN)","StripeBankAccountTokenInputField.iban.placeholder":"DE89 3704 0044 0532 0130 00","StripeBankAccountTokenInputField.iban.required":"Bank account number (IBAN) is required.","StripeBankAccountTokenInputField.institutionNumber.inline":"institution number","StripeBankAccountTokenInputField.institutionNumber.label":"Institution number","StripeBankAccountTokenInputField.institutionNumber.placeholder":"Type in institution number\u2026","StripeBankAccountTokenInputField.institutionNumber.required":"Institution number is required.","StripeBankAccountTokenInputField.routingNumber.inline":"routing number","StripeBankAccountTokenInputField.routingNumber.label":"Routing number","StripeBankAccountTokenInputField.routingNumber.placeholder":"Type in rout
2ing number\u2026","StripeBankAccountTokenInputField.routingNumber.required":"Routing number is required.","StripeBankAccountTokenInputField.sortCode.inline":"sort code","StripeBankAccountTokenInputField.sortCode.label":"Sort code","StripeBankAccountTokenInputField.sortCode.placeholder":"Type in sort code\u2026","StripeBankAccountTokenInputField.sortCode.required":"Sort code is required.","StripeBankAccountTokenInputField.transitNumber.inline":"transit number","StripeBankAccountTokenInputField.transitNumber.label":"Transit number","StripeBankAccountTokenInputField.transitNumber.placeholder":"Type in transit number\u2026","StripeBankAccountTokenInputField.transitNumber.required":"Transit number is required.","StripeBankAccountTokenInputField.unsupportedCountry":"Country not supported: {country}","StripeConnectAccountForm.accountTypeTitle":"Account type","StripeConnectAccountForm.bankAccountLabel":"Bank account","StripeConnectAccountForm.companyAccount":"I represent a company","StripeConnectAccountForm.countryLabel":"Country","StripeConnectAccountForm.countryNames.AT":"Austria","StripeConnectAccountForm.countryNames.AU":"Australia","StripeConnectAccountForm.countryNames.BE":"Belgium","StripeConnectAccountForm.countryNames.BG":"Bulgaria","StripeConnectAccountForm.countryNames.CA":"Canada","StripeConnectAccountForm.countryNames.CH":"Switzerland","StripeConnectAccountForm.countryNames.CY":"Cyprus","StripeConnectAccountForm.countryNames.CZ":"Czech Republic","StripeConnectAccountForm.countryNames.DE":"Germany","StripeConnectAccountForm.countryNames.DK":"Denmark","StripeConnectAccountForm.countryNames.EE":"Estonia","StripeConnectAccountForm.countryNames.ES":"Spain","StripeConnectAccountForm.countryNames.FI":"Finland","StripeConnectAccountForm.countryNames.FR":"France","StripeConnectAccountForm.countryNames.GB":"United Kingdom","StripeConnectAccountForm.countryNames.GR":"Greece","StripeConnectAccountForm.countryNames.HK":"Hong Kong","StripeConnectAccountForm.countryNames.IE":"Ireland","StripeConnectAccountForm.countryNames.IT":"Italy","StripeConnectAccountForm.countryNames.JP":"Japan","StripeConnectAccountForm.countryNames.LT":"Lithuania","StripeConnectAccountForm.countryNames.LU":"Luxembourg","StripeConnectAccountForm.countryNames.LV":"Latvia","StripeConnectAccountForm.countryNames.MT":"Malta","StripeConnectAccountForm.countryNames.MX":"Mexico","StripeConnectAccountForm.countryNames.NL":"Netherlands","StripeConnectAccountForm.countryNames.NO":"Norway","StripeConnectAccountForm.countryNames.NZ":"New Zealand","StripeConnectAccountForm.countryNames.PL":"Poland","StripeConnectAccountForm.countryNames.PT":"Portugal","StripeConnectAccountForm.countryNames.RO":"Romania","StripeConnectAccountForm.countryNames.SE":"Sweden","StripeConnectAccountForm.countryNames.SG":"Singapore","StripeConnectAccountForm.countryNames.SI":"Slovenia","StripeConnectAccountForm.countryNames.SK":"Slovakia","StripeConnectAccountForm.countryNames.US":"United States","StripeConnectAccountForm.countryPlaceholder":"Select your country\u2026","StripeConnectAccountForm.countryRequired":"This field is required.","StripeConnectAccountForm.createStripeAccountFailed":"Oops, something went wrong. Please try again. If the problem persists, contact support.","StripeConnectAccountForm.createStripeAccountFailedWithStripeError":"Oops, something went wrong. Stripe returned an error message: \\"{stripeMessage}\\"","StripeConnectAccountForm.createStripeAccountLinkFailed":"Oops, something went wrong. Please contact support.","StripeConnectAccountForm.createStripeAccountLinkFailedWithStripeError":"Oops, something went wrong. Stripe returned an error message: \\"{stripeMessage}\\"","StripeConnectAccountForm.individualAccount":"I\'m an individual","StripeConnectAccountForm.loadingStripeAccountData":"Fetching payout details\u2026","StripeConnectAccountForm.missingStripeKey":"Oops, something went wrong. Please refresh the page and try again. If the problem persists, contact support.","StripeConnectAccountForm.stripeConnectedAccountTermsLink":"Stripe Connected Account Agreement","StripeConnectAccountForm.stripeToSText":"By saving the details, you agree to the {stripeConnectedAccountTermsLink}.","StripeConnectAccountStatusBox.editAccountButton":"Edit Stripe account","StripeConnectAccountStatusBox.getVerifiedButton":"Get verified","StripeConnectAccountStatusBox.verificationFailedText":"To receive payments, you need to add your banking details and verify your account.","StripeConnectAccountStatusBox.verificationFailedTitle":"Something went wrong. Please try again.","StripeConnectAccountStatusBox.verificationNeededText":"To receive payments, you need to add a few more details to your Str
2ipe account to verify your account.","StripeConnectAccountStatusBox.verificationNeededTitle":"Stripe needs more information","StripeConnectAccountStatusBox.verificationSuccessTitle":"Your Stripe account is up to date!","StripePaymentAddress.addressLine1Label":"Street address","StripePaymentAddress.addressLine1Placeholder":"123 Example Street","StripePaymentAddress.addressLine1Required":"Street address is required.","StripePaymentAddress.addressLine2Label":"Apt # {optionalText}","StripePaymentAddress.addressLine2Placeholder":"A 42","StripePaymentAddress.cityLabel":"City","StripePaymentAddress.cityPlaceholder":"Helsinki","StripePaymentAddress.cityRequired":"City is required.","StripePaymentAddress.countryLabel":"Country","StripePaymentAddress.countryPlaceholder":"Select a country\u2026","StripePaymentAddress.countryRequired":"Country is required.","StripePaymentAddress.optionalText":"\u2022 optional","StripePaymentAddress.postalCodeLabel":"Postal code","StripePaymentAddress.postalCodePlaceholder":"00100","StripePaymentAddress.postalCodeRequired":"Postal code is required.","StripePaymentAddress.stateLabel":"State {optionalText}","StripePaymentAddress.statePlaceholder":"Enter your state","StripePaymentForm.billingDetails":"Billing details","StripePaymentForm.billingDetailsNameLabel":"Card holder\'s name","StripePaymentForm.billingDetailsNamePlaceholder":"Enter your name\u2026","StripePaymentForm.confirmCardPaymentError":"Unable to authenticate your payment method. Please check your authentication details and try again.","StripePaymentForm.confirmPaymentError":"A payment has been made but we are unable to confirm the order. Please try to confirm the request again. If the order isn\'t confirmed in time, the payment will be fully refunded.","StripePaymentForm.genericError":"Couldn\'t handle payment data. Please try again.","StripePaymentForm.locationDetailsTitle":"Location of the listing","StripePaymentForm.locationUnknown":"Unknown location","StripePaymentForm.messageHeading":"Additional information","StripePaymentForm.messageLabel":"Is there something the listing owner should know? {messageOptionalText}","StripePaymentForm.messageOptionalText":"(optional)","StripePaymentForm.messagePlaceholder":"Hello {name}! You should know that...","StripePaymentForm.missingStripeKey":"The publishable API key from Stripe has not been configured properly in this marketplace. It is not possible to book this listing.","StripePaymentForm.payWithHeading":"Payment","StripePaymentForm.paymentCardDetails":"Payment card details","StripePaymentForm.paymentHeading":"Payment","StripePaymentForm.pickupDetailsTitle":"Pickup location","StripePaymentForm.pickupLocationUnknown":"Pickup location not set. Contact provider.","StripePaymentForm.replaceAfterOnetimePayment":"Replace card \u2026{last4Digits} with the new card for future orders","StripePaymentForm.sameBillingAndShippingAddress":"My billing and shipping address are the same","StripePaymentForm.saveAfterOnetimePayment":"Save card details for future orders","StripePaymentForm.saveforLaterUseLegalInfo":"I authorise {marketplaceName} to send instructions to the financial institution that issued my card to take payments from my card account in accordance with the terms of my agreement with you.","StripePaymentForm.stripe.api_connection_error":"Couldn\'t connect to Stripe API.","StripePaymentForm.stripe.api_error":"Error in Stripe API.","StripePaymentForm.stripe.authentication_error":"Couldn\'t authenticate with Stripe.","StripePaymentForm.stripe.card_error":"Payment card can\'t be handled.","StripePaymentForm.stripe.invalid_request_error":"Invalid request to Stripe API.","StripePaymentForm.stripe.rate_limit_error":"Too many requests to Stripe API.","StripePaymentForm.stripe.validation_error.card_declined":"The card was declined.","StripePaymentForm.stripe.validation_error.expired_card":"The card has expired.","StripePaymentForm.stripe.validation_error.incomplete_number":"Your card number is incomplete.","StripePaymentForm.stripe.validation_error.incorrect_cvc":"The card\'s security code is incorrect.","StripePaymentForm.stripe.validation_error.incorrect_number":"The card number is incorrect.","StripePaymentForm.stripe.validation_error.incorrect_zip":"The card\'s zip code failed validation.","StripePaymentForm.stripe.validation_error.invali
2d_cvc":"The card\'s security code is invalid.","StripePaymentForm.stripe.validation_error.invalid_expiry_month":"The card\'s expiration month is invalid.","StripePaymentForm.stripe.validation_error.invalid_expiry_month_past":"Your card\'s expiration date is in the past.","StripePaymentForm.stripe.validation_error.invalid_expiry_year":"The card\'s expiration year is invalid.","StripePaymentForm.stripe.validation_error.invalid_number":"The card number is not a valid credit card number.","StripePaymentForm.stripe.validation_error.invalid_swipe_data":"The card\'s swipe data is invalid.","StripePaymentForm.stripe.validation_error.missing":"There is no card on a customer that is being charged.","StripePaymentForm.stripe.validation_error.processing_error":"An error occurred while processing the card.","StripePaymentForm.submitConfirmPaymentFinePrint":"{isBooking, select, yes {Your card will only be charged when {name} accepts the booking request.} other {{name} won\'t receive money before delivering the item.}}","StripePaymentForm.submitConfirmPaymentInfo":"Continue","StripePaymentForm.submitPaymentInfo":"{isBooking, select, yes {Confirm booking request} other {Confirm and pay {totalPrice}}}","StripePayoutPage.heading":"Payout details","StripePayoutPage.loadingData":"Loading data\u2026","StripePayoutPage.redirectingToStripe":"You returned early from Stripe. Redirecting you back to Stripe\u2026","StripePayoutPage.submitButtonText":"Save details","StripePayoutPage.title":"Payout details","Topbar.genericError":"Oh no, something went wrong. Please check your network connection and try again.","Topbar.logoIcon":"Go to homepage","Topbar.menuIcon":"Open menu","Topbar.mobileSearchHelp":"Find what you are looking for.","Topbar.searchIcon":"Open search","TopbarDesktop.LinksMenu.all":"Menu","TopbarDesktop.LinksMenu.more":"More","TopbarDesktop.accountSettingsLink":"Account settings","TopbarDesktop.createListing":"Post a new listing","TopbarDesktop.inbox":"Inbox","TopbarDesktop.login":"Log in","TopbarDesktop.logo":"{marketplaceName}","TopbarDesktop.logout":"Log out","TopbarDesktop.profileSettingsLink":"Profile settings","TopbarDesktop.signup":"Sign up","TopbarDesktop.yourListingsLink":"Your listings","TopbarMobileMenu.accountSettingsLink":"Account settings","TopbarMobileMenu.greeting":"Hello {displayName}","TopbarMobileMenu.inboxLink":"Inbox","TopbarMobileMenu.loginLink":"Log in","TopbarMobileMenu.logoutLink":"Log out","TopbarMobileMenu.newListingLink":"Post a new listing","TopbarMobileMenu.profileSettingsLink":"Profile settings","TopbarMobileMenu.signupLink":"Sign up","TopbarMobileMenu.signupOrLogin":"{signup} or {login}","TopbarMobileMenu.unauthorizedGreeting":"Hello there,{lineBreak}would you like to {signupOrLogin}?","TopbarMobileMenu.yourListingsLink":"Your listings","TopbarSearchForm.placeholder":"Search listings\u2026","TransactionPage.ActivityFeed.default-booking.accepted":"{actor, select, you {You accepted the booking request.} operator {The booking request was accepted.} other {{otherUsersName} accepted the booking request.}}","TransactionPage.ActivityFeed.default-booking.canceled":"The booking was canceled.","TransactionPage.ActivityFeed.default-booking.declined":"{actor, select, you {You declined the booking request.} operator {The booking request was declined.} other {{otherUsersName} declined the booking request.}}","TransactionPage.ActivityFeed.default-booking.delivered":"The booking was completed. {reviewLink}","TransactionPage.ActivityFeed.default-booking.expired":"{actor, select, you {Booking request expired. You did not reply on time.} other {Booking request expired. {otherUsersName} did not reply on time.}}","TransactionPage.ActivityFeed.default-booking.preauthorized":"{actor, select, you {You requested to book { listingTitle }.} other {{ otherUsersName } requested to book {listingTitle}}}","TransactionPage.ActivityFeed.default-booking.reviewed":"{actor, select, you {You left a review for { otherUsersName }.} other {{ otherUsersName } left a review for you. }}","TransactionPage.ActivityFeed.default-booking.reviewed-by-customer":"{actor, select, you {You left a review for {otherUsersName}.} other {{otherUsersName} left a review for you. {reviewLink}}}","TransactionPage.ActivityFeed.default-booking.reviewed-by-provider":"{actor, select, you {You left a review for {otherUsersName}.} other {{otherUsersName} left a review for you. {reviewLink}}}","TransactionPage.ActivityFeed.default-inquiry.free-inquiry":"{actor, select, you {You started a conversation.} other {{otherUsersName} started a conversation.}}","TransactionPage.ActivityFeed.default-purchase.canceled":"The order was canceled.","TransactionPage.ActivityFeed.default-purchase.completed":"{stateStatus, select, current {The listing was received. {reviewLink}} other {The listing was received.}}","TransactionPage.ActivityFeed.default-purchase.delivered":"{deliveryMethod, select, shipping {The listing was shipped.} other {The listing was delivered.}}","TransactionPage.ActivityFeed.default-purchase.disputed":"The order was disputed.","TransactionPage.ActivityFeed.default-purchase.purchased":"{actor, select, you {You placed an order for {listingTitle}.} other {{otherUsersName} placed an order for {listingTitle}.}}","TransactionPage.ActivityFeed.default-purchase.received":"The listing was received.","TransactionPage.ActivityFeed.default-purchase.reviewed":"{actor, select, you {You left a review for {otherUsersName}.} other {{otherUsersName} left a review for you. {reviewLink}}}","TransactionPage.ActivityFeed.default-purchase.reviewed-by-customer":"{actor, select, you {You left a review for {otherUsersName}.} other {{otherUsersName} left a review for you. {reviewLink}}}","TransactionPage.ActivityFeed.default-purchase.reviewed-by-provider":"{actor, select, you {You left a review for {otherUsersName}.} other {{otherUsersName} left a review for you. {reviewLink}}}","TransactionPage.ActivityFeed.deletedListing":"deleted listing","TransactionPage.ActivityFeed.deletedReviewContent":"This review is deleted.","TransactionPage.ActivityFeed.reviewAsSecondLink":"Leave a review for {otherUsersName} to see their review.","TransactionPage.ActivityFeed.reviewLink":"Leave a review for {otherUsersName}.","TransactionPage.ActivityFeed.showOlderMessages":"Show older","TransactionPage.ActivityFeed.today":"Today","TransactionPage.default-booking.customer.accepted.title":"Your booking request was accepted!","TransactionPage.default-booking.customer.canceled.title":"Your booking was canceled.","TransactionPage.default-booking.customer.declined.title":"Your booking request was declined.","TransactionPage.default-booking.customer.delivered.title":"Your booking was completed.","TransactionPage.default-booking.customer.expired.title":"Your booking request expired.","TransactionPage.default-booking.customer.initial.title":"Booking initiated.","TransactionPage.default-booking.customer.inquiry.title":"You sent an inquiry.","TransactionPage.default-booking.customer.payment-expired.title":"You didn\'t confirm the payment in time.","TransactionPage.default-booking.customer.pending-payment.title":"{customerName}, you haven\'t confirmed the payment yet.","TransactionPage.default-booking.customer.preauthorized.extraInfo":"You\'ll be notified when {providerName} accepts your request.","TransactionPage.default-booking.customer.preauthorized.title":"Your booking request was successful!","TransactionPage.default-booking.customer.reviewed-by-customer.title":"Your booking was completed.","TransactionPage.default-booking.customer.reviewed-by-provider.title":"Your booking was completed.","TransactionPage.default-booking.customer.reviewed.title":"Your booking was completed.","TransactionPage.default-booking.provider.accepted.title":"You accepted a booking request from {customerName}.","TransactionPage.default-booking.provider.canceled.title":"The booking from {customerName} was canceled.","TransactionPage.default-booking.provider.declined.title":"The request from {customerName} was declined.","TransactionPage.default-booking.provider.delivered.title":"The booking from {customerName} was completed.","TransactionPage.default-booking.provider.expired.title":"The request from {customerName} expired.","TransactionPage.default-booking.provider.inquiry.title":"You received an inquiry from {customerName}.","TransactionPage.default-booking.provider.payment-expired.title":"Payment wasn\'t confirmed in time.","TransactionPage.default-booking.provider.pending-payment.title":"Payment hasn\'t been confirmed yet.","TransactionPage.default-booking.provider.preauthorized.title":"You received a booking request from {customerName}.","TransactionPage.default-booking.provider.reviewed-by-customer.title":"The booking was completed.","TransactionPage.default-booking.provider.reviewed-by-provider.title":"The booking was completed.","TransactionPage.default-booking.provider.reviewed.title":"The booking from {customerName} was completed.","TransactionPage.default-booking.provider.transition-accept.actionButton":"Accept request","TransactionPage.default-booking.provider.transition-accept.actionError":"Oops, accepting failed. Please try again.","TransactionPage.default-booking.provider.transition-decline.actionButton":"Decline request","TransactionPage.default-booking.provider.transition-decline.actionError":"Oops, declining failed. Please try again.","TransactionPage.default-inquiry.customer.free-inquiry.title":"You sent an inquiry.","TransactionPage.default-inquiry.provider.free-inquiry.title":"You received an inquiry from {customerName}.","TransactionPage.default-purchase.customer.canceled.title":"Your order was canceled.","TransactionPage.default-purchase.customer.completed.title":"You\'ve received your order!","TransactionPage.default-purchase.customer.delivered.title":"Your order is on its way!","TransactionPage.default-purchase.customer.disputed.title":"You disputed the order.","TransactionPage.default-purchase.customer.initial.title":"Order initiated.","TransactionPage.default-purchase.customer.inquiry.title":"You inquired about a listing.","TransactionPage.default-purchase.customer.payment-expired.title":"{customerName}, you did not confirm the payment in time.","TransactionPage.default-purchase.customer.pending-payment.title":"{customerName}, you have not confirmed payment yet.","TransactionPage.default-purchase.customer.purchased.extraInfo":"{deliveryMethod, select, shipping {You\'ll be notified when {providerName}
2 ships the item.} pickup {Use the chat function below to agree on a time for pickup.} other {Use the chat below to agree on the order details.}}","TransactionPage.default-purchase.customer.purchased.title":"Your payment was successful!","TransactionPage.default-purchase.customer.received.title":"You\'ve received your order!","TransactionPage.default-purchase.customer.reviewed-by-customer.title":"You\'ve received your order!","TransactionPage.default-purchase.customer.reviewed-by-provider.title":"You\'ve received your order!","TransactionPage.default-purchase.customer.reviewed.title":"You\'ve received your order!","TransactionPage.default-purchase.customer.transition-dispute.actionButton":"Dispute","TransactionPage.default-purchase.customer.transition-dispute.actionError":"Oops, dispute action failed. Please refresh the page and try again.","TransactionPage.default-purchase.customer.transition-mark-received-from-purchased.actionButton":"I\'ve received my order","TransactionPage.default-purchase.customer.transition-mark-received-from-purchased.actionError":"Oops, failed to mark the order as received. Please refresh the page and try again.","TransactionPage.default-purchase.customer.transition-mark-received.actionButton":"I\'ve received my order","TransactionPage.default-purchase.customer.transition-mark-received.actionError":"Oops, failed to mark the order as received. Please refresh the page and try again.","TransactionPage.default-purchase.provider.canceled.title":"The order from {customerName} was canceled.","TransactionPage.default-purchase.provider.completed.title":"{customerName} received the order!","TransactionPage.default-purchase.provider.delivered.title":"You delivered this order from {customerName}.","TransactionPage.default-purchase.provider.disputed.title":"{customerName} disputed the order.","TransactionPage.default-purchase.provider.initial.title":"Sale initiated.","TransactionPage.default-purchase.provider.inquiry.title":"{customerName} inquired about your listing.","TransactionPage.default-purchase.provider.payment-expired.title":"Payment wasn\'t confirmed in time.","TransactionPage.default-purchase.provider.pending-payment.title":"Payment hasn\'t been confirmed yet.","TransactionPage.default-purchase.provider.purchased.title":"{customerName} placed an order.","TransactionPage.default-purchase.provider.received.title":"{customerName} received the order!","TransactionPage.default-purchase.provider.reviewed-by-customer.title":"{customerName} received the order!","TransactionPage.default-purchase.provider.reviewed-by-provider.title":"{customerName} received the order!","TransactionPage.default-purchase.provider.reviewed.title":"{customerName} received the order!","TransactionPage.default-purchase.provider.transition-mark-delivered.actionButton":"I\'ve delivered this order","TransactionPage.default-purchase.provider.transition-mark-delivered.actionButtonShipped":"I\'ve shipped this order","TransactionPage.default-purchase.provider.transition-mark-delivered.actionError":"Oops, failed to mark the order as shipped. Please refresh the page and try again.","TransactionPage.deletedListing":"deleted listing","TransactionPage.fetchOrderFailed":"Fetching order data failed.","TransactionPage.fetchSaleFailed":"Fetching sale data failed.","TransactionPage.leaveReview.actionButton":"Leave a review","TransactionPage.leaveReview.actionError":"Oops, failed to leave a review. Please refresh the page and try again.","TransactionPage.listingTitleMobile":"{listingLink}","TransactionPage.loadingOrderData":"Loading order data.","TransactionPage.loadingSaleData":"Loading sale data.","TransactionPage.schemaTitle":"Sale details: {title}","TransactionPage.unknownTransactionProcess":"Oops, it looks like the marketplace processes aren\'t up to date. Please contact the marketplace operator.","TransactionPanel.activityHeading":"Activity","TransactionPanel.bookingLocationHeading":"Location","TransactionPanel.conversationHeading":"Conversation","TransactionPanel.customerBannedStatus":"The user made the request, but was later banned.","TransactionPanel.default-booking.orderBreakdownTitle":"Booking breakdown","TransactionPanel.default-purchase.orderBreakdownTitle":"Order breakdown","TransactionPanel.deletedListingOrderTitle":"a listing","TransactionPanel.deletedListingTitle":"Deleted listing","TransactionPanel.disputeOrder":"Dispute order","TransactionPanel.initialMessageFailed":"Oops, failed to send message from checkout.","TransactionPanel.inquiryMessageHeading":"Inquiry message","TransactionPanel.messageDeletedListing":"However, the listing is deleted and can\'t be viewed anymore.","TransactionPanel.messageLoadingFailed":"Something went wrong while loading messages. Please refresh the page and try again.","TransactionPanel.paymentMethodsPageLink":"payment methods page","TransactionPanel.pickupInfoHeading":"Pickup address","TransactionPanel.salePaymentPendingInfo":"{customerName} has 15 minutes to confirm the payment.","TransactionPanel.savePaymentMethodFailed":"Saving default payment method failed. Go to {paymentMethodsPageLink} to try again.","TransactionPanel.sendMessagePlaceholder":"Send a message to {name}\u2026","TransactionPanel.sendingMessageNotAllowed":"This user has been removed. Sending messages to the user is no longer possible.","TransactionPanel.shippingInfoHeading":"Shipping address","UserCard.contactUser":"Contact","UserCard.heading":"Hello, I\'m {name}.","UserCard.showFullBioLink":"more","UserCard.viewProfileLink":"View profile","UserDisplayName.banned":"Banned user","UserDisplayName.deleted":"Deleted user","UserNav.accountSettings":"Account settings","UserNav.profileSettings":"Profile settings","UserNav.yourListings":"Your listings"}'),Re=((e,t)=>{const n=Object.keys(e),i=Object.keys(t);if(0===i.length)return e;return te()(n,i).reduce(((t,n)=>(0,r.A)((0,r.A)({},t),{},{[n]:e[n]})),t)})(Oe,{}),Le=e=>{const{children:t,locale:r}=e,n="undefined"!==typeof hardCodedLocale&&r===hardCodedLocale,i=["en","en-US"].includes(r)||n?e=>(0,le.jsx)(le.Fragment,{children:e.children()}):["fr","fr-FR"].includes(r)?a.Ay.lib((()=>__webpack_require__.e(9667).then(__webpack_require__.t.bind(__webpack_require__,24459,23)))):["de","de-DE"].includes(r)?a.Ay.lib((()=>__webpack_require__.e(2054).then(__webpack_require__.t.bind(__webpack_require__,56220,23)))):["es","es-ES"].includes(r)?a.Ay.lib((()=>__webpack_require__.e(6763).then(__webpack_require__.t.bind(__webpack_require__,86503,23)))):["fi","fi-FI"].includes(r)?a.Ay.lib((()=>__webpack_require__.e(3072).then(__webpack_require__.t.bind(__webpack_require__,67574,23)))):["nl","nl-NL"].includes(r)?a.Ay.lib((()=>__webpack_require__.e(133).then(__webpack_require__.t.bind(__webpack_require__,89329,23)))):a.Ay.lib((()=>__webpack_require__.e(2148).then(__webpack_require__.t.bind(__webpack_require__,68670,23))));return(0,le.jsx)(i,{children:()=>(ne().locale(r),t)})},De=e=>{const{appConfig:t,children:r}=e,n=(0,K.A)(t.layout),i=t.localization.locale;return(0,le.jsx)(oe.S2,{value:t,children:(0,le.jsx)(Le,{locale:i,children:(0,le.jsx)(ie.j3,{value:n,children:r})})})},Ne=e=>{const{locale:t,messages:r,helmetContext:n}=e;return(0,le.jsx)(ae.Dk,{locale:t,messages:r,textComponent:"span",children:(0,le.jsx)(J.vd,{context:n,children:(0,le.jsx)(he.JH,{})})})},Fe=e=>{const t=e.suspiciousEnvKey;return(0,le.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,le.jsxs)("div",{style:{width:"600px"},children:[(0,le.jsxs)("p",{children:["Are you sure you want to reveal to the public web an environment variable c
2alled:"," ",(0,le.jsx)("b",{children:t})]}),(0,le.jsxs)("p",{children:["All the environment variables that start with ",(0,le.jsx)("i",{children:"REACT_APP_"})," prefix will be part of the published React app that's running on a browser. Those variables are, therefore, visible to anyone on the web. Secrets should only be used on a secure environment like the server."]}),(r=t,r.toUpperCase().includes("INTEG")?(0,le.jsxs)("p",{children:["Note: ",(0,le.jsx)("span",{style:{color:"red"},children:"Do not use Integration API directly from the web app."})]}):null)]})});var r},ze=e=>{const{store:t,hostedTranslations:n={},hostedConfig:i={}}=e,o=(0,G.R2)(i,l.A);if(s.A.dev){const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}||0,t=Object.keys(e),r=e=>e.toUpperCase().includes("SECRET"),n=t.find((e=>e.startsWith("REACT_APP_")&&r(e)));if(n)return(0,le.jsx)(Fe,{suspiciousEnvKey:n})}if(!o.hasMandatoryConfigurations)return(0,le.jsx)(Ne,{locale:o.localization.locale,messages:(0,r.A)((0,r.A)({},Re),n)});const a=window.document.documentElement;(0,se.N)(o.branding,a);const c="test"!==(null===s.A||void 0===s.A?void 0:s.A.env);return(0,le.jsx)(De,{appConfig:o,children:(0,le.jsx)(ae.Dk,{locale:o.localization.locale,messages:(0,r.A)((0,r.A)({},Re),n),textComponent:"span",children:(0,le.jsx)($.Kq,{store:t,children:(0,le.jsxs)(J.vd,{children:[(0,le.jsx)(de,{config:o}),(0,le.jsx)(X.N9,{}),(0,le.jsx)(Q.Kd,{children:(0,le.jsx)(ke,{logLoadDataCalls:c})})]})})})})},je=["translations"];if("undefined"!==typeof window){var Be;Z.mj();const e=s.A.sdk.baseUrl?{baseUrl:s.A.sdk.baseUrl}:{},t=s.A.sdk.assetCdnBaseUrl?{assetCdnBaseUrl:s.A.sdk.assetCdnBaseUrl}:{},i=window.__PRELOADED_STATE__||"{}",h=JSON.parse(i,H.gK.reviver),p=(0,H.Q_)((0,r.A)((0,r.A)({transitVerbose:s.A.sdk.transitVerbose,clientId:s.A.sdk.clientId,secure:s.A.usingSSL,typeHandlers:Y.Ml},e),t)),g=(e=>{let t=[];return s.A.dev&&t.push(new c),e&&(0!==e.indexOf("G-")?console.warn('Google Analytics 4 (GA4) should have measurement id that starts with "G-" prefix'):t.push(new u)),t})((null===h||void 0===h||null===(Be=h.hostedAssets)||void 0===Be?void 0:Be.googleAnalyticsId)||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoiamFkZTIzMTIiLCJhIjoiY2x4OHh3ZXV0Mm02bTJrczRoYjRzcjJjdiJ9.dCExF788l-dVfTrxW5cTbw",REACT_APP_MARKETPLACE_NAME:"Mane Hook-Up",REACT_APP_STRIPE_PUBLISHABLE_KEY:"pk_live_eMln4f664BXD5ekLlw62Tlir00RoBN9gP3",REACT_APP_CSP:"report",REACT_APP_ENV:"production",REACT_APP_MARKETPLACE_ROOT_URL:"https://www.manehookup.com",REACT_APP_SHARETRIBE_SDK_CLIENT_ID:"296de226-d883-4167-a64c-61c9c273d498"}.REACT_APP_GOOGLE_ANALYTICS_ID),y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=[f.withExtraArgument(t),(i=r,e=>t=>r=>{const{type:n,payload:o}=r;if(n===_){var a,s;const t=null===e||void 0===e||null===(a=e.getState())||void 0===a||null===(s=a.routing)||void 0===s?void 0:s.currentCanonicalPath,{canonicalPath:r}=o;i.forEach((e=>{e.trackPageView(r,t)}))}t(r)})];var i;const o=(s.A.dev&&"object"===typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:d.Zz)((0,d.Tw)(...n));return(0,d.Yl)(q(),e,o)}(h,p,g);__webpack_require__(35017),(e=>{const t=e.getState(),i=t.hostedAssets.version;(t.auth.authInfoLoaded?Promise.resolve({}):e.dispatch((0,m.lj)())).then((()=>(e.dispatch((0,T.rQ)()),Promise.all([(0,a.ai)(),e.dispatch((0,x.R9)(l.A.appCdnAssets,i))])))).then((t=>{let[i,a]=t;const s=a||{},{translations:l}=s,c=(0,n.A)(s,je),u=(null===l||void 0===l?void 0:l.data)||{},d=Object.entries(c).reduce(((e,t)=>
2{let[n,i]=t;return(0,r.A)((0,r.A)({},e),{},{[n]:i.data||{}})}),{}),h=o.createRoot(document.getElementById("root")),p=(0,le.jsx)(ze,{store:e,hostedTranslations:u,hostedConfig:d});h.render(p)})).catch((e=>{Z.z3(e,"browser-side-render-failed")}))})(y,window.__PRELOADED_STATE__),s.A.dev&&(window.app={appSettings:s.A,defaultConfig:l.A,sdk:p,sdkTypes:H.gK,store:y})}console.warn('Your production environment should use CSP with "block" mode. Read more from: https://www.sharetribe.com/docs/ftw-security/how-to-set-up-csp-for-ftw/')})(),__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
3//# sourceMappingURL=main.df9fdb96.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.