(self.webpackChunkacmsWebpackJsonp=self.webpackChunkacmsWebpackJsonp||[]).push([[7246],{53961:function(e,t,o){var n=o(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o(55373)),i=n(o(31105)),s=o(50369);t.default=async e=>{if(!e.parentNode)throw new Error("Google Map element must be a child of a parent element");const{search:t}=new URL(e.src),o=r.default.parse(t,{ignoreQueryPrefix:!0}),n=e.alt.split("[[:split:]]");if(!(0,s.isString)(o.key))return;if(""===o.key)return;if(!(0,s.isString)(o.size))return;if(""===o.size)return;if(!(0,s.isString)(o.center))return;if(!(0,s.isString)(o.zoom))return;const a=await(0,i.default)(o.key),l=document.createElement("div"),p=o.size.split("x"),c=parseInt(p[0],10)||null,d=parseInt(p[1],10)||null,u=o.center.split(","),h=[],f=new a.maps.InfoWindow,m=new a.maps.Map(l,{center:{lat:parseFloat(u[0]),lng:parseFloat(u[1])},zoom:parseInt(o.zoom,10),mapTypeId:a.maps.MapTypeId.ROADMAP,scrollwheel:!1,styles:ACMS.Config.s2dStyle});l.className=e.className,l.style.aspectRatio=`${c} / ${d}`,l.style.overflow="hidden",e.parentNode.replaceChild(l,e),((0,s.isString)(o.markers)?[o.markers]:(0,s.isStringArray)(o.markers)?o.markers:[]).forEach(e=>{const t=e.split("|"),o={icon:void 0,options:[]};if(t.length){for(let e=0;e<t.length;e+=1)if(0===t[e].indexOf("icon:"))o.icon=t[e].slice(5);else{const n=t[e].split(",");if(!n[0].length)continue;o.options.push({position:new a.maps.LatLng(parseFloat(n[0]),parseFloat(n[1])),map:m})}h.push(o)}});let g=0;h.forEach(e=>{for(let t=0;t<e.options.length;t+=1){const o=e.options[t],r=new a.maps.Marker({...o,icon:e.icon});void 0!==n[g]&&null!==c&&c>=180&&((e,t)=>{t&&a.maps.event.addListener(e,"click",()=>{f.setOptions({content:t}),f.open(m,e)})})(r,n[g].replace(/\[\[:quot:\]\]/gim,'"').replace(/\[\[:lt:\]\]/gim,"<").replace(/\[\[:gt:\]\]/gim,">").replace(/\[\[:amp:\]\]/gim,"&")),g+=1}})}},31105:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(64694);let r;const i={region:ACMS.Config.s2dRegion||"JP"};t.default=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;const o=new n.Loader(e,{...i,...t});return r=o.load(),r}},64694:function(e,t,o){"use strict";o.r(t),o.d(t,{Loader:function(){return n.a}});var n=o(20467),r=o(80075),i={};for(var s in r)["default","Loader"].indexOf(s)<0&&(i[s]=function(e){return r[e]}.bind(0,s));o.d(t,i)},20467:function(e,t,o){"use strict";o.d(t,{a:function(){return n}});class n{constructor(e=null,t={}){if(this.apiKey=e,this.options=t,"undefined"==typeof window)throw new Error("google-maps is supported only in browser environment")}load(){return void 0!==this.api?Promise.resolve(this.api):void 0!==this.loader?this.loader:(window[n.CALLBACK_NAME]=()=>{if(this.api=window.google,void 0===this.resolve)throw new Error("Should not happen");this.resolve(this.api)},window.gm_authFailure=()=>{if(void 0===this.reject)throw new Error("Should not happen");this.reject(new Error("google-maps: authentication error"))},this.loader=new Promise((e,t)=>{this.resolve=e,this.reject=t;const o=document.createElement("script");o.src=this.createUrl(),o.async=!0,o.onerror=e=>t(e),document.head.appendChild(o)}))}createUrl(){const e=[`callback=${n.CALLBACK_NAME}`];this.apiKey&&e.push(`key=${this.apiKey}`);for(let t in this.options)if(this.options.hasOwnProperty(t)){let o=this.options[t];"version"===t&&(t="v"),"libraries"===t&&(o=o.join(",")),e.push(`${t}=${o}`)}return`https://maps.googleapis.com/maps/api/js?${e.join("&")}`}}n.CALLBACK_NAME="_dk_google_maps_loader_cb"},80075:function(){}}]);