PageSourceSearch

https://fondoambiente.it/_next/static/chunks/12b2bd497414559af40bb77fe9d17160b5dcf2e1.1bddc79c280952e8fd92.js

js fondoambiente.it collected 2026-09-24 08:51:08 UTC 247,951 bytes, 1 lines download raw bytes

1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[34,39,98],{"+H2D":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r="LOCATION_REQUEST",o="LOCATION_COMMIT",i="LOCATION_FAILURE"},"/QYh":function(t,e,n){"use strict";var r=n("O5Wi"),o=n("zQIG"),i=n("8mBC");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}e.__esModule=!0,e.default=void 0;var l,f=(l=n("ERkP"))&&l.__esModule?l:{default:l},p=n("D3Vl"),d=n("4smK");var h=[],b=[],y=!1;function m(t){var e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then((function(t){return n.loading=!1,n.loaded=t,t})).catch((function(t){throw n.loading=!1,n.error=t,t})),n}function g(t){var e={loading:!1,loaded:{},error:null},n=[];try{Object.keys(t).forEach((function(r){var o=m(t[r]);o.loading?e.loading=!0:(e.loaded[r]=o.loaded,e.error=o.error),n.push(o.promise),o.promise.then((function(t){e.loaded[r]=t})).catch((function(t){e.error=t}))}))}catch(r){e.error=r}return e.promise=Promise.all(n).then((function(t){return e.loading=!1,t})).catch((function(t){throw e.loading=!1,t})),e}function v(t,e){return f.default.createElement(function(t){return t&&t.__esModule?t.default:t}(t),e)}function O(t,e){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:v,webpack:null,modules:null},e),r=null;function o(){if(!r){var e=new j(t,n);r={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return r.promise()}if(!y&&"function"===typeof n.webpack){var i=n.webpack();b.push((function(t){var e,n=u(i);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(-1!==t.indexOf(r))return o()}}catch(a){n.e(a)}finally{n.f()}}))}var a=function(t,e){o();var i=f.default.useContext(d.LoadableContext),a=(0,p.useSubscription)(r);return f.default.useImperativeHandle(e,(function(){return{retry:r.retry}}),[]),i&&Array.isArray(n.modules)&&n.modules.forEach((function(t){i(t)})),f.default.useMemo((function(){return a.loading||a.error?f.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?n.render(a.loaded,t):null}),[t,a])};return a.preload=function(){return o()},a.displayName="LoadableComponent",f.default.forwardRef(a)}var j=function(){return i((function t(e,n){o(this,t),this._loadFn=e,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}),[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,n=this._opts;e.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){t._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){t._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){t._update({}),t._clearTimeouts()})).catch((function(e){t._update({}),t._clearTimeouts()})),this._update({})}},{key:"_update",value:function(t){this._state=c(c({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach((function(t){return t()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}])}();function _(t){return O(m,t)}function w(t,e){for(var n=[];t.length;){var r=t.pop();
1n.push(r(e))}return Promise.all(n).then((function(){if(t.length)return w(t,e)}))}_.Map=function(t){if("function"!==typeof t.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return O(g,t)},_.preloadAll=function(){return new Promise((function(t,e){w(h).then(t,e)}))},_.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(e){var n=function(){return y=!0,e()};w(b,t).then(n,n)}))},window.__NEXT_PRELOADREADY=_.preloadReady;var E=_;e.default=E},"/oUt":function(t,e,n){"use strict";var r=n("oUmF"),o=n("f8sa"),i=n("ADPW"),a=n("rVun"),c={filter:function(t,e){return!t||"string"===typeof t&&void 0===e||("string"===typeof t&&(t=a(t,e)),this._filters=o(this._filters,t)),this},taxonomy:function(t,e){var n,o=Array.isArray(e),a=o?e.reduce((function(t,e){return t&&"number"===typeof e}),!0):"number"===typeof e,c=o?e.reduce((function(t,e){return t&&"string"===typeof e}),!0):"string"===typeof e;if(!c&&!a)throw new Error("term must be a number, string, or array of numbers or strings");return"category"===t?t=c?"category_name":"cat":"post_tag"===t&&(t="tag"),this._taxonomyFilters=this._taxonomyFilters||{},n=(this._taxonomyFilters[t]||[]).concat(e).sort(i),this._taxonomyFilters[t]=r(n,!0),this},year:function(t){return c.filter.call(this,"year",t)},month:function(t){var e;if("string"===typeof t){if(e=new Date(Date.parse(t+" 1, 2012")),isNaN(e))return this;t=e.getMonth()+1}return"number"===typeof t?c.filter.call(this,"monthnum",t):this},day:function(t){return c.filter.call(this,"day",t)},path:function(t){return c.filter.call(this,"pagename",t)}};t.exports=c},0:function(t,e){},"0KcG":function(t,e,n){"use strict";var r=["\\(\\?","(?:P<|<|')","([^>']+)","[>']","([^\\)]*)","\\)"].join(""),o=new RegExp(r);t.exports={pattern:r,namedGroupRE:o}},"241S":function(t,e,n){"use strict";var r=n("QsI/"),o=n("fGyu"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("cxan"),f=n("zjfJ"),p=n("ERkP"),d=n.n(p),h=n("r4FT"),b=n("QtE3"),y=n("AU4o"),m=n.n(y),g=n("0D0S"),v=n.n(g),O=n("voCV"),j=n("HKMk"),_=n("uDfI"),w=n("GXeJ"),E=n("NAJH"),T=n("OzPX"),C=v()().publicRuntimeConfig.PLATFORM,P=d.a.createElement;function k(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var S=v()().publicRuntimeConfig.PLATFORM,x=function(t){function e(t){var n;return Object(i.a)(this,e),(n=k(this,e,[t])).state={items:[]},n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e,n=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var r=t.itemsType[0].split("|")[0]==="".concat(S,"/faqs/categorie?has=faqs")?"categorie":"tags",o=t.itemsType.map((function(t){return"".concat(r,".id[]=").concat(t.split("|")[1])})).join("&");(e="?with=tags,categorie&limit=999&&".concat(o),h.a.get("".concat(C,"/").concat("faqs","/").concat(e)).then((function(t){return t.data}))).then((function(t){n.setState({items:t.data})}))}else this.setState({items:[],api:t.itemsType})}},{key:"render",value:function(){var t=this.state.items,e=this.props.limit,n=t.filter((function(t){return t})).length>0?t:[];return P(b.FAQs,Object(l.a)({},this.props,{faqs:n,limit:e}))}}])}(p.Component),A=Object(O.a)(Object(E.b)(),Object(E.a)(),Object(E.d)([{prop:"intro",label:"Intro"},{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"backgroundColor",label:"Style",type:"multiple",options:["green:VERDE","orange:ARANCIO"],initialValue:"green"},{prop:"limit",label:"Numero di FAQs da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(S,"/faqs/categorie?has=faqs||CATEGORIE"),displayName:"descrizione"},{option:"".concat(S,"/tags?has=faqs||TAG"),displayName:"tag"}],initialValue:"".concat(S,"/faqs/categorie?has=faqs"),api:{prop:"data",resource:"apiChooser"}}]),Object(T.a)("apiChooser"))(x),I=n("j/s1"),L=n("6Oj0"),D=d.a.createElement;function F(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var R=function(t){function e(t){var n;return Object(i.a)(this,e),(n=F(this,e,[t])).state={value:""},n.handleChange=n.handleChange.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"handleChange",value:function(t){this.setState({value:t})}},{key:"handleSubmit",value:function(){var t=this.props.searchUrl;window.location.href="".concat(t,"?search=").concat(this.state.value)}},{key:"render",value:function(){var t=this,e=this.props,n=e.placeholder,r=e.withIcon,o=e.buttonLabel;return D(b.Hero,Object(l.a)({},this.props,{renderSearch:function(){return D(N,{onSubmit:function(e){e.preventDefault(),t.handleSubmit()}},D(G,null,D(M,{type:"text",value:t.value,placeholder:n,onChange:function(e){return t.handleChange(e.target.value)}}),r&&D(b.Icon,{SVG:L.lens,color:"orange",size:[26,26],onClick:t.handleSubmit})),D(z,null,D(b.Button,{small:!0,tight:!0,onClick:t.handleSubmit},o||"Cerca")))}}))}}])}(p.Component),N=I.d.form.withConfig({displayName:"HeroWithSearch__Formazzo",componentId:"sc-fn4iif-0"})(["display:flex;align-items:normal;justify-content:stretch;position:relative;justify-content:space-between;margin:0 auto;margin-top:2rem;background-color:white;z-index:4;height:4rem;padding:1rem;width:calc(100vw - 2rem);max-width:600px;"]),G=I.d.div.withConfig({displayName:"HeroWithSearch__InputIconWrapper",componentId:"sc-fn4iif-1"})(["width:100%;.Icon{position:absolute;right:1rem;z-index:9999;}@media screen and (min-width:767px){.Icon{display:none;}}"]),M=I.d.input.withConfig({displayName:"HeroWithSearch__Inputtozzo",componentId:"sc-fn4iif-2"})(["width:100%;height:100%;color:#808080;left:0;right:0;border:none;outline:none;&:focus{outline:none;}"]),z=I.d.div.withConfig({displayName:"HeroWithSearch__ButtonContaianer",componentId:"sc-fn4iif-3"})(["display:none;@media screen and (min-width:768px){display:flex;align-self:center;}"]);R.fields=b.Hero.fields;var B=R,H=d.a.createElement,U=function(t){return H(B,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/giornate-fai-di-primavera/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};U.fields=B.fields;var W=U,q=n("JXgi"),V=n("yDM6"),K=d.a.createElement;function J(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var Y=v()().publicRuntimeConfig.PLATFORM,$=function(t){function e(t){var n;return Object(i.a)(this,e),(n=J(this,e,[t])).state={items:[],hasMore:!1,currentPage:1},n.loadMore=n.loadMore.bind(n),n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}
1return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var n=t.itemsType[0].split("|")[0]==="".concat(Y,"/news/categorie")?"categoria":"tags",r=t.itemsType.map((function(t){return"".concat(n,".id[]=").concat(t.split("|")[1])})).join("&");Object(V.c)("?with=tags,categoria&page=".concat(this.state.currentPage,"&limit=").concat(t.limit,"&&").concat(r)).then((function(n){e.setState({items:1===e.state.currentPage?n.data:e.state.items.concat(n.data),hasMore:t.limit&&parseInt(n.total)-parseInt(n.to)>0,api:t.itemsType})}))}else this.setState({items:[],hasMore:!1,currentPage:1,api:t.itemsType})}},{key:"loadMore",value:function(){var t=this;this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateGrid(t.props)}))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.hasMore,r=e.filter((function(t){return t})).length>0?e.map(q.a):[];return K("div",null,K(b.NewsGrid,{cards:r}),n&&K(Q,null,K(b.Button,{centered:!0,onClick:this.loadMore},"MOSTRA ALTRE")))}}])}(p.Component),X=Object(O.a)(E.c,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"limit",label:"Numero di news da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(Y,"/news/categorie||CATEGORIE"),displayName:"descrizione"},{option:"".concat(Y,"/tags?has=news||TAG"),displayName:"tag"}],initialValue:"".concat(Y,"/news/categorie"),api:{prop:"data",resource:"apiChooser"}}]),E.e,Object(T.a)("apiChooser"))($),Q=I.d.div.withConfig({displayName:"GridOfNewsWithApi__ButtonPadder",componentId:"sc-cu6etj-0"})(["padding-top:2rem;"]),Z=n("ysqo"),tt=n.n(Z),et=d.a.createElement;function nt(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var rt=function(t){function e(){return Object(i.a)(this,e),nt(this,e,arguments)}return Object(s.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this.props.form;if("undefined"===typeof t||""===t)return et("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Form da utilizzare");var e="https://form.jotform.com/".concat(t);return et(d.a.Fragment,null,et(tt.a,null,et("script",{dangerouslySetInnerHTML:{__html:'var ifr = document.getElementById("JotFormIFrame-'.concat(t,'");\n              if (window.location.href && window.location.href.indexOf("?") > -1) {\n                  var get = window.location.href.substr(window.location.href.indexOf("?") + 1);\n                  get += \'&nojump\'\n                  if (ifr && get.length > 0) {\n                      var src = ifr.src;\n                      src = src.indexOf("?") > -1 ? src + "&" + get : src + "?" + get;\n                      ifr.src = src;\n                  }\n              }\n              window.handleIFrameMessage = function(e) {\n                  if (typeof e.data !== \'string\') {\n                    return false;\n                  }\n                  var args = e.data.split(":");\n                  if (args.length > 2) {\n                      iframe = document.getElementById("JotFormIFrame-" + args[2]);\n                  } else {\n                      iframe = document.getElementById("JotFormIFrame");\n                  }\n                  if (!iframe) return;\n                  switch (args[0]) {\n                      case "scrollIntoView":\n                          iframe.scrollIntoView();\n                          break;\n                      case "setHeight":\n                          iframe.style.height = args[1] + "px";\n                          break;\n                      case "collapseErrorPage":\n                          if (iframe.clientHeight > window.innerHeight) {\n                              iframe.style.height = window.innerHeight + "px";\n                          }\n                          break;\n                      case "reloadPage":\n                          window.location.reload();\n                          break;\n                  }\n                  var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;\n                  if (isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {\
1n                      var urls = {\n                          "docurl": encodeURIComponent(document.URL),\n                          "referrer": encodeURIComponent(document.referrer)\n                      };\n                      iframe.contentWindow.postMessage(JSON.stringify({\n                          "type": "urls",\n                          "value": urls\n                      }), "*");\n                  }\n              };\n              if (window.addEventListener) {\n                  window.addEventListener("message", handleIFrameMessage, false);\n              } else if (window.attachEvent) {\n                  window.attachEvent("onmessage", handleIFrameMessage)\n              }')}})),et("iframe",{title:"jotform",id:"JotFormIFrame-".concat(t),allowTransparency:"true",src:e,frameBorder:"0",style:{width:"1px",minWidth:"100%",height:"auto",border:"none"},scrolling:"no"}))}}])}(p.PureComponent),ot=Object(O.a)(Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"form",label:"Scegli form",type:"multiple",options:["23274788955976:Lavora con noi","41554191687967:Richiesta immagini","62481535079966:Corporate Gold Donor","31502321142940:Lasciti","71974561078971:Carta docente","81022399778972:Convegno professionisti","81063683078966:5x1000","81064139078963:Adotta un albero o una panchina","81423851478967:Custode della bellezza 2018","81494068078971:Adotta un progetto","81922127778970:FAI Scuola Educational","82072546078965:FAI Scuola - Torneo del Paesaggio 2018","82072578178971:FAI Scuola - Concorso Fatti d'acqua","82393542778974:FAI Scuola Iscrizione","71724206278962:Art Bonus","73312338578966:Caricamento foto torneo del paesaggio 1 fased","80094347678972:Convegno FAI Delegati Brescia","83294962750971:Data Collection acqua","80512304678960:Concorso FAI Scuola fase finale","90293824576971:Data Collection DB Oracle","90442760436961:Convegno Professionisti 2"]}]))(rt),it=d.a.createElement;function at(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var ct=function(t){function e(t){var n;return Object(i.a)(this,e),n=at(this,e,[t]),Object(f.a)(n,"state",{src:null,form:null}),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){if(t.form!==this.props.form){var e=t.form,n=window.location.search;n+=n?"&nojump":"?nojump",this.setState({form:e,src:"https://form.jotform.com/".concat(e).concat(n)})}}},{key:"componentDidMount",value:function(){if(this.props.form){var t=this.props.form,e=window.location.search;e+=e?"&nojump":"?nojump",this.setState({form:t,src:"https://form.jotform.com/".concat(t).concat(e)})}}},{key:"render",value:function(){var t=this.state,e=t.src,n=t.form;return e?it(d.a.Fragment,null,it(tt.a,null,it("script",{dangerouslySetInnerHTML:{__html:'\n              window.handleIFrameMessage = function(e) {\n                  if (typeof e.data !== \'string\') {\n                    return false;\n                  }\n                  var args = e.data.split(":");\n                  if (args.length > 2) {\n                      iframe = document.getElementById("JotFormIFrame-" + args[2]);\n                  } else {\n                      iframe = document.getElementById("JotFormIFrame");\n                  }\n                  if (!iframe) return;\n                  switch (args[0]) {\n                      case "scrollIntoView":\n                          iframe.scrollIntoView();\n                          break;\n                      case "setHeight":\n                          iframe.style.height = args[1] + "px";\n                          break;\n                      case "collapseErrorPage":\n                          if (iframe.clientHeight > window.innerHeight) {\n                              iframe.style.height = window.innerHeight + "px";\n                          }\n                          break;\n                      case "reloadPage":\n                          window.location.reload();\n                          break;\n                  }\n                  var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false;\n                  if (isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) {\
1n                      var urls = {\n                          "docurl": encodeURIComponent(document.URL),\n                          "referrer": encodeURIComponent(document.referrer)\n                      };\n                      iframe.contentWindow.postMessage(JSON.stringify({\n                          "type": "urls",\n                          "value": urls\n                      }), "*");\n                  }\n              };\n              if (window.addEventListener) {\n                  window.addEventListener("message", handleIFrameMessage, false);\n              } else if (window.attachEvent) {\n                  window.attachEvent("onmessage", handleIFrameMessage)\n              }'}})),it("iframe",{title:"jotform",id:"JotFormIFrame-".concat(n),allowTransparency:"true",src:e,frameBorder:"0",style:{width:"1px",minWidth:"100%",height:"auto",border:"none"},scrolling:"no"})):it("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Form da utilizzare")}}])}(p.PureComponent),ut=Object(O.a)(Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"form",label:"Inserisci l'ID del form JotForm"}]))(ct),st=d.a.createElement;function lt(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var ft=function(t){function e(){var t;return Object(i.a)(this,e),t=lt(this,e),Object(f.a)(t,"onLoadIframeResizer",(function(e){iFrameResize({log:!1,enablePublicMethods:!0,resizedCallback:t.onResize},"#DatalyticsIframe-603cc104c460ad1d4acbb8d3")})),Object(f.a)(t,"onResize",(function(e){var n=e.height;t.setState({height:n})})),t.ref=d.a.createRef(),t.state={height:null},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){this.loadIFrameResizer()}},{key:"loadIFrameResizer",value:function(t){this.script=document.createElement("script"),this.script.src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.6.2/iframeResizer.min.js",this.script.type="text/javascript",this.script.addEventListener("load",this.onLoadIframeResizer),document.querySelector("head").appendChild(this.script)}},{key:"render",value:function(){var t=this.props.form;if("undefined"===typeof t||""===t)return st("div",{style:{textAlign:"center",padding:"5rem"}},"Scegli Analytics da utilizzare");var e="https://infographic.datalytics.it/#/".concat(t,"?loadingColor=rgba(255,255,255,1)");return st("div",{style:{display:"flex",justifyContent:"center",height:this.state.height?"".concat(this.state.height,"px"):"50rem"}},st("iframe",{ref:this.ref,title:"datalytics",id:"DatalyticsIframe-".concat(t),src:e,frameBorder:"0",width:"100%",height:"100%",allowTransparency:"true"}))}}])}(p.PureComponent),pt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,E.e,Object(E.d)([{prop:"form",label:"Scegli form",type:"multiple",options:["603cc104c460ad1d4acbb8d3:Datalytics"]}]))(ft),dt=n("qXKH"),ht=n("MJc2"),bt=n.n(ht),yt=d.a.createElement,mt=function(t){return yt(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},gt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"beni",exact:3,label:"Seleziona beni"}]),E.e,Object(T.a)("beni"))((function(t){var e=t.resources,n=e.length>0?e.map(dt.a):[];return yt(b.ListOfCards,{CardComponent:mt,cards:n})})),vt=n("HbGN"),Ot=function(t){var e=t.id,n=t.gfp,r=(t.tipologia,t.localita_web),o=t.fl_bene_fai,i=t.slug,a=t.onClick;return"undefined"===typeof n?{}:{id:e,title:n.titolo_apertura,subtitle:r,link:"/luoghi/".concat(i,"?gfp"),slug:i,onClick:a,thumbnail:{url:n.media&&n.media.length>0&&void 0!==n.media.find((function(t){return"TOP"===t.pivot.position}))&&n.media.find((function(t){return"TOP"===t.pivot.position})).url||"https://fai-website.imgix.net/static/placeholder_2.png"},tooltips:[n.alert&&{icon:"alert",orange:!0,content:n.alert},n.fl_accesso_disabili&&{icon:"accessibility",content:"Luogo accessibile"},n.fl_commissione_eu&&{icon:"commissione_eu",content:"Apertura in collaborazione con la Commissione Europea"},n.fl_ingresso_esclusivo&&{icon:"crown",content:"Ingresso dedicato agli iscritti Fai"},n.fl_consigliato&&{icon:"badge",content:"Luogo consigliato"},o&&{icon:"FaiLogo",content:"Bene FAI ".concat(n.fl_chiuso?"":"visitabile tutto l'anno")}].filter((function(t){return t}))}},jt=["resources"],_t=d.a.createElement,wt=function(t){return _t(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},Et=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"gfp",exact:3,label:"Seleziona luoghi GFP"}]),E.e,Object(T.a)("gfp"))((function(t){var e=t.resources,n=(Object(vt.a)(t,jt),e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(Ot):[]);return _t(b.ListOfCards,{CardComponent:wt,cards:n})})),Tt=n("iR2b"),Ct=d.a.createElement,Pt=function(t){return Ct(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},kt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"data",type:"api",resource:"eventi",exact:4,label:"Seleziona eventi"}
1,{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(T.a)("eventi"))((function(t){var e=t.resources,n=t.border,r=t.samesize,o=t.cardsBackground1,i=t.cardsBackground2,a=t.cardsBackground3,c=t.cardsBackground4,u=e.length>0?e.map(Tt.a):[],s=[o,i,a,c];return Ct(b.EventsGrid,{CardComponent:Pt,cards:u,border:n,samesize:r,cardsBackground:s})})),St=n("mtjO"),xt=d.a.createElement;function At(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return It(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(It(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,It(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,It(f,"constructor",s),It(s,"constructor",u),u.displayName="GeneratorFunction",It(s,o,"GeneratorFunction"),It(f),It(f,o,"Generator"),It(f,r,(function(){return this})),It(f,"toString",(function(){return"[object Generator]"})),(At=function(){return{w:i,m:p}})()}function It(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(It=function(t,e,n,r){function i(e,n){It(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ft(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var Rt=function(t){return xt(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},Nt=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Ft(this,e,[t])).state={events:[],loading:!1},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(At().m((function t(){var e,n,r,o;return At().w((function(t){for(;;)switch(t.n){case 0:return e=this.props,n=e.regioni,r=e.owners,this.setState(Dt(Dt({},this.state),{},{loading:!0})),t.n=1,Object(St.b)(n,r);case 1:o=t.v,this.setState(Dt(Dt({},this.state),{},{events:o,loading:!1}));case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.border,n=t.samesize,r=t.cardsBackgroun
1d1,o=t.cardsBackground2,i=t.cardsBackground3,a=t.cardsBackground4,c=this.state,u=c.loading,s=c.events,l=s.length?s.map(Tt.a):[],f=[r,o,i,a];return xt(d.a.Fragment,null,u&&xt(b.Loading,null),xt(b.EventsGrid,{CardComponent:Rt,cards:l,border:e,samesize:n,cardsBackground:f}))}}])}(d.a.Component),Gt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"regioni",type:"api",singleChoice:!0,resource:"regioni",label:"Seleziona regione"},{prop:"owners",type:"api",resource:"owners",label:"Seleziona delegazioni",pushZeroToValue:!0},{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(T.a)("regioni"),Object(T.a)("owners"))(Nt),Mt=d.a.createElement,zt=function(t){return Mt(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},Bt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"news",exact:3,label:"Seleziona news"},{prop:"hasMobileLiteLayout",type:"boolean"}]),E.e,Object(T.a)("news"))((function(t){var e=t.resources,n=t.hasMobileLiteLayout,r=e.filter((function(t){return t})).length>0?e.map(q.a):[];return Mt(b.ListOfNews,{hasMobileLiteLayout:n,CardComponent:zt,cards:r})})),Ht=d.a.createElement;function Ut(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var Wt=v()().publicRuntimeConfig.PLATFORM,qt=function(t){return Ht(b.ListCard,Object(l.a)({LinkComponent:bt.a},t))},Vt=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Ut(this,e,[t])).state={items:[],hasMore:!1,currentPage:1},n.loadMore=n.loadMore.bind(n),n.updateGrid=n.updateGrid.bind(n),n.updateGrid(t),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentWillReceiveProps",value:function(t){this.updateGrid(t)}},{key:"updateGrid",value:function(t){var e=this;if("string"!==typeof t.itemsType&&t.itemsType&&t.itemsType.length){var n=t.itemsType[0].split("|")[0]==="".concat(Wt,"/news/categorie")?"categoria":"tags",r=t.itemsType.map((function(t){return"".concat(n,".id[]=").concat(t.split("|")[1])})).join("&");Object(V.c)("?with=tags,categoria&page=".concat(this.state.currentPage,"&limit=").concat(t.limit,"&&").concat(r)).then((function(n){e.setState({items:1===e.state.currentPage?n.data:e.state.items.concat(n.data),hasMore:t.limit&&parseInt(n.total)-parseInt(n.to)>0,api:t.itemsType})}))}else this.setState({items:[],hasMore:!1,currentPage:1,api:t.itemsType})}},{key:"loadMore",value:function(){var t=this;this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateGrid(t.props)}))}},{key:"render",value:function(){var t=this.state,e=t.items,n=t.hasMore,r=this.props.hasMobileLiteLayout,o=e.filter((function(t){return t})).length>0?e.map(q.a):[];return Ht("div",null,Ht(b.ListOfNews,{hasMobileLiteLayout:r,CardComponent:qt,cards:o}),n&&Ht(Jt,null,Ht(b.Button,{centered:!0,onClick:this.loadMore},"MOSTRA ALTRI")))}}])}(p.Component),Kt=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"limit",label:"Numero di news da mostrare"},{prop:"itemsType",label:"Selezione flusso",type:"apiChooser",options:[{option:"".concat(Wt,"/news/categorie||CATEGORIE"),displayName:"descrizione"},{option:"".concat(Wt,"/tags?has=news||TAG"),displayName:"tag"}],initialValue:"".concat(Wt,"/news/categorie"),api:{prop:"data",resource:"apiChooser"}},{prop:"hasMobileLiteLayout",type:"boolean"}]),E.e,Object(T.a)("apiChooser"))(Vt),Jt=I.d.div.withConfig({displayName:"ListOfNewsWithApiChooser__ButtonPadder",componentId:"sc-xcl8tf-0"})(["padding-top:2rem;"]),Yt=n("K5XM");function $t(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Xt(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Xt(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Xt(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Xt(f,"constructor",s),Xt(s,"constructor",u),u.displayName="GeneratorFunction",Xt(s,o,"GeneratorFunction"),Xt(f),Xt(f,o,"Generator"),Xt(f,r,(function(){return this})),Xt(f,"toString",(function(){return"[object Generator]"})),($t=function(){return{w:i,m:p}})()}function Xt(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Xt=function(t,e,n,r){function i(e,n){Xt(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Qt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ee(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?te(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ne=v()().publicRuntimeConfig.PLATFORM,re="".concat(ne,"/testimonials?with=ldc.luogo,ldc.media&orderby=cognome&limit=100"),oe="".concat(ne,"/luoghi?with=ldc,ldc.media,rank,classifiche,tipologia,comune,media,provincia,regione&has=tipologia,ldc&tipologia.fl_ldc=1"),ie=function(t){return h.a.get(t?"".concat(re,"&id_ldc=").concat(t):re).then((function(t){return t.data.data.map((function(t){return ee(ee({},t),{},{url_foto:Object(Yt.b)(t.url_foto)})}))}))},ae=function(){var t=Object(r.a)($t().m((function t(e){var n,r,o,i,a,c,u,s,l;return $t().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,ie(e);case 1:n=t.v,r=[],o=Qt(n);try{for(o.s();!(i=o.n()).done;)if((a=i.value).ldc){c=Qt(a.ldc);try{for(c.s();!(u=c.n()).done;)s=u.value,r.push(s.id_luogo)}catch(p){c.e(p)}finally{c.f()}}}catch(p){o.e(p)}finally{o.f()}return t.n=2,f=r,h.a.get("".concat(oe,"&limit=100&").concat(f.map((function(t){return t&&"id[]=".concat(t)})).join("&"))).then((function(t){return t.data.data}));case 2:return l=t.v,t.a(2,{testimonials:n,luoghi:l})}var f}),t)})));return function(e){return t.apply(this,arguments)}}(),ce=n("ezIv"),ue=n("YY8h"),se=d.a.createElement;function le(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return fe(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(fe(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,fe(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,fe(f,"constructor",s),fe(s,"constructor",u),u.displayName="GeneratorFunction",fe(s,o,"GeneratorFunction"),fe(f),fe(f,o,"Generator"),fe(f,r,(function(){return this})),fe(f,"toString",(function(){return"[object Generator]"})),(le=function(){return{w:i,m:p}})()}function fe(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(fe=function(t,e,n,r){function i(e,n){fe(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function pe(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var de=function(t){function e(t){var n;return Object(i.a)(this,e),(n=pe(this,e,[t])).state={testimonials:[],luoghi:[]},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(le().m((function t(){var e,n,r,o,i;return le().w((function(t){for(;;)switch(t.p=t.n){case 0:return e=this.props.id_ldc,t.p=1,t.n=2,ae(e);case 2:n=t.v,r=n.testimonials,o=n.luoghi,this.setState({testimonials:r,luoghi:o}),t.n=4;break;case 3:t.p=3,i=t.v,console.error("[ListOfTestimonialsWithVote] caricamento testimonial fallito:",i);case 4:return t.a(2)}}),t,this,[[1,3]])})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.title,n=t.subtitle,r=this.state,o=r.testimonials,i=r.luoghi;return se(d.a.Fragment,null,e&&se(b.FasciaTitle,{title:e}),n&&se("div",{className:"ContactForm-form__text"},se(b.RichText,{text:n})),se(b.ListOfTestimonials,{testimonials:o,luoghi:i.map(ce.l),VoteCardComponent:ue.a,hideRankingData:!0}))}}])}(p.Component),he=Object(O.a)(E.c,Object(E.a)(),Object(E.d)([{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"id_ldc",label:"ID LDC",type:"string"}]))(de),be=n("wgY5"),ye=n.n(be),me=(n("xD/0"),n("luEP")),ge=n("prCu"),ve=n.n(ge),Oe=n("lF6m"),je=n("6780"),_e=n("Ehz4"),we=d.a.createElement;function Ee(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var Te=function(t){function e(){var t;return Object(i.a)(this,e),t=Ee(this,e),Object(f.a)(t,"showThankYou",(function(){t.setState({showThankYou:!0}),setTimeout((function(){return t.setState({showThankYou:!1})}),7e3)})),t.state={showThankYou:!1},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"render",value:function(){var t=this,e=this.state.showThankYou,n=this.props,r=n.id,o=n.title,i=n.id_comitato,a=n.slug,c=n.handleCardClick,u=n.progress,s=n.showVoteButton,f=void 0===s||s;return we(_e.a,{id:r,title:o,id_comitato:i,slug:a},(function(n){var o=n.status,i=n.errorMessage,s=n.requestVote,p=n.resendEmail,h=n.showShareOverlay,y=n.user,m=n.voteUser;return we(b.CardClassificaLDC,Object(l.a)({},t.props,{onClick:"function"===typeof c?function(){return c({slug:a,id:r})}:null,renderButton:function(){return we(d.a.Fragment,null,"VOTED"===o&&u&&we(Ce,null,we(Pe,null,we(ke,null,"Scheda luogo completata al ",we("strong",null,u,"%")),we(Se,{progress:u}))),f&&we(d.a.Fragment,null,y&&y.id&&"VOTED"===o&&(e?we(xe,null,"Grazie per aver votato!"):we(b.Button,{onClick:h},we("span",null,"condividi"))),(!o||"FAILED"===o)&&we(b.Button,{onClick:function(){t.showThankYou(),s()}},we("span",null,"Vota con 1 clic")),(!y||!y.id)&&m&&m.email&&"VOTED"===o&&(e?we(xe,null,"Grazie per aver votato!"):we(b.Button,{onClick:h},we("span",null,"condividi"))),(!y||!y.id)&&m&&m.email&&"VOTE_PENDING"===o&&we("div",null,we(Ie,null,"Controlla la tua email per confermare il voto"),we(Le,null,we("a",{onClick:function(){return p()}},"reinvia email"))),"LOADING"===o&&we(b.Button,{disabled:!0},we("span",null,"loading")),"FAILED"===o&&i&&we(Ae,{dangerouslySetInnerHTML:{__html:"\n                        ".concat(i,"\n                      ")}}),"FAILED"===o&&!i&&we(Ae,null,"Salvataggio fallito. Riprova pi\xf9 tardi")))}}))}))}}])}
1(d.a.Component),Ce=(I.d.div.withConfig({displayName:"CardClassificaLDC__Socials",componentId:"sc-1txuk2e-0"})(["display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;height:3.5rem;"]),I.d.div.withConfig({displayName:"CardClassificaLDC__SocialsText",componentId:"sc-1txuk2e-1"})(["color:",";font-size:0.8rem;"],(function(t){return t.theme.colors.darkGrey})),I.d.div.withConfig({displayName:"CardClassificaLDC__SocialFaces",componentId:"sc-1txuk2e-2"})(["display:flex;"]),I.d.div.withConfig({displayName:"CardClassificaLDC__Face",componentId:"sc-1txuk2e-3"})(["height:40px;width:40px;position:relative;border-radius:50%;border:2px solid #fff;overflow:hidden;",";",";background-image:url(",");background-position:center center;background-size:cover;"],(function(t){return t.first&&"transform: translate(25%,0)"}),(function(t){return t.last&&"transform: translate(-25%,0)"}),(function(t){return t.url})),I.d.div.withConfig({displayName:"CardClassificaLDC__Progress",componentId:"sc-1txuk2e-4"})(["margin-bottom:1rem;height:3.5rem;display:flex;align-items:center;width:100%;"])),Pe=I.d.div.withConfig({displayName:"CardClassificaLDC__ProgressInner",componentId:"sc-1txuk2e-5"})(["width:100%;"]),ke=I.d.div.withConfig({displayName:"CardClassificaLDC__ProgressText",componentId:"sc-1txuk2e-6"})(["color:",";font-size:0.8rem;text-align:left;margin-bottom:0.5rem;"],(function(t){return t.theme.colors.darkGrey})),Se=I.d.div.withConfig({displayName:"CardClassificaLDC__ProgressBar",componentId:"sc-1txuk2e-7"})(["position:relative;height:0.25rem;background-color:",';&:before{content:"";position:absolute;left:0;width:',"%;height:100%;background-color:#e74f30;}"],(function(t){return t.theme.colors.lightGrey}),(function(t){return t.progress})),xe=I.d.span.withConfig({displayName:"CardClassificaLDC__Message",componentId:"sc-1txuk2e-8"})(["font-weight:600;color:",";display:block;padding:0.875rem 0;letter-spacing:0.07em;"],(function(t){return t.theme.colors.orange})),Ae=I.d.div.withConfig({displayName:"CardClassificaLDC__Failed",componentId:"sc-1txuk2e-9"})(["margin-top:0.5rem;color:red;font-size:0.75rem;letter-spacing:0.075em;"]),Ie=I.d.span.withConfig({displayName:"CardClassificaLDC__EmailPendingMessage",componentId:"sc-1txuk2e-10"})(["font-weight:600;color:",";display:block;padding:0.875rem 0 0.3rem 0;letter-spacing:0.07em;"],(function(t){return t.theme.colors.orange})),Le=I.d.small.withConfig({displayName:"CardClassificaLDC__EmailPendingResendLink",componentId:"sc-1txuk2e-11"})(["color:",";display:block;padding:0;text-decoration:underline;cursor:pointer;"],(function(t){return t.theme.colors.orange})),De=Te,Fe=n("pqH2"),Re=["luogo","nr_voti_totali","votes"],Ne=d.a.createElement;function Ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Me(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ge(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ze(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}function Be(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return He(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(He(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,He(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,He(f,"constructor",s),He(s,"constructor",u),u.displayName="GeneratorFunction",He(s,o,"GeneratorFunction"),He(f),He(f,o,"Generator"),He(f,r,(function(){return this})),He(f,"toString",(function(){return"[object Generator]"})),(Be=function(){return{w:i,m:p}})()}function He(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(He=function(t,e,n,r){function i(e,n){He(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var Ue=(new Date).getFullYear(),We=v()().publicRuntimeConfig.PLATFORM,qe=function(t,e){if(t.nr_anno)return{id:t.nr_anno,label:"Classifica ".concat(t.nr_anno),type:"year"};if(t.titolo){var n,r,o=t.id;return t.censimento_classifica&&t.censimento_classifica.length&&(t=t.censimento_classifica[0]),{id:o,label:t.titolo,type:"selezione",id_selezione:null!==(n=t.id_selezione)&&void 0!==n?n:void 0,id_ldc:null!==(r=t.id_ldc)&&void 0!==r?r:void 0,is_id_ldc_current:t.id_ldc==e,order:t.order_}}},Ve=function(){var t=Object(r.a)(Be().m((function t(){var e,n,r,i;return Be().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(Fe.d)("?groupby=nr_anno&orderby=nr_anno-");case 1:return e=t.v,t.n=2,Object(Fe.s)();case 2:return n=t.v,r=n.id_ldc_current,t.n=3,Object(Fe.r)();case 3:return i=t.v,t.a(2,[].concat(Object(o.a)(i.map((function(t){return qe(t,r)}))),Object(o.a)(e.slice(0,1).map((function(t){return qe(t,r)}))),Object(o.a)(e.slice(1).map((function(t){return qe(t,r)})))))}}),t)})));return function(){return t.apply(this,arguments)}}(),Ke=function(){var t=Object(r.a)(Be().m((function t(){var e;return Be().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,h.a.get("".concat(We,"/regioni?limit=30&orderby=nome")).then((function(t){return t.data.data}));case 1:return e=t.v,t.a(2,[{id:0,label:"Tutt'Italia",type:"regione"}].concat(e.map((function(t){return{id:t.id,label:t.nome,type:"regione"}}))))}}),t)})));return function(){return t.apply(this,arguments)}}(),Je={label:"Classifica 2026",id:2026,isActive:!0},Ye="/il-fai/grandi-campagne/i-luoghi-del-cuore/classifica",$e=function(t){if(!t)return null;ye.a.locale("it");var e=ye()(t),n=e.format("HH:mm"),r=e.format("DD/MM/YYYY");return"Classifica web aggiornata alle ore ".concat(n," del ").concat(r,'<br />\nI voti vengono registrati in tempo reale ma l\u2019aggiornamento in classifica pu\xf2 richiedere fino a 60 minuti.<br />\nPer le classifiche regionali, clicca il men\xf9 a tendina \u201cTutt\u2019Italia\u201d e seleziona la regione. Per le classifiche locali <a href="/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo/">clicca qui</a> e cerca una localit\xe0, un comune o una provincia.')},Xe=function(t){var e=t.filters,n=window.location.search.slice(1),r=ve.a.parse(n);return r.anno=r.anno?parseInt(r.anno):null,me.object().shape({anno:me.mixed().oneOf([].concat(Object(o.a)(e),[null])),web:me.mixed()}).test("2018 can have web filter","",(function(t){var e=t.anno;return!t.web||e===Ue})).validate(r)},Qe=function(t){function e(t){var n;return Object(i.a)(this,e),(n=ze(this,e,[t])).state={items:t.items||[],currentPage:1,currentFilter:Ue,currentRegion:0,availableFilters:[Je],availableRegions:[],showLoadMore:!1,isFilteredByWeb:!1,isLoading:!0,lastUpdate:!1,isDDVisible:!1,isRegionSelectOpen:!1},n.handleChangeYearFilter=n.handleChangeYearFilter.bind(n),n.handleChangeRegionFilter=n.handleChangeRegionFilter.b
1ind(n),n.handleChangeFilterByType=n.handleChangeFilterByType.bind(n),n.handleLoadMore=n.handleLoadMore.bind(n),n.toggleDDPanel=n.toggleDDPanel.bind(n),n.toggleRegionPanel=n.toggleRegionPanel.bind(n),n.search=n.search.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(Be().m((function t(){var e,n,r,i,a,c;return Be().w((function(t){for(;;)switch(t.n){case 0:return e=this.state.availableFilters,t.n=1,h.a.get("".concat(We,"/settings")).then((function(t){return t.data.ldc_classifica_last_update}));case 1:return n=t.v,t.n=2,Ve();case 2:return r=t.v,i=[].concat(Object(o.a)(e),Object(o.a)(r.filter((function(t){return e.map((function(e){return e.id!==t.id})).reduce((function(t,e){return t&&e}),!0)})))),t.n=3,Xe({filters:(u=i,u.map((function(t){return t.nr_anno||t.id})))}).catch((function(){return window.location.href=window.location.pathname}));case 3:return a=t.v,t.n=4,Ke();case 4:c=t.v,this.setState({currentFilter:a.anno||Ue,currentRegion:Number(a.regione||0),availableFilters:i,availableRegions:c,lastUpdate:$e(n)}),this.search();case 5:return t.a(2)}var u}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"handleChangeRegionFilter",value:function(t){var e=this,n=this.state.isFilteredByWeb;"number"!==typeof t?this.setState({isRegionSelectOpen:!1}):this.setState({items:[],currentPage:1,showLoadMore:!1,isLoading:!0,isRegionSelectOpen:!1,currentRegion:t,isFilteredByWeb:t===Ue&&n},(function(){window.history.pushState(null,"","".concat(Ye,"?").concat(ve.a.stringify(e.getFilters()))),e.search()}))}},{key:"handleChangeYearFilter",value:function(t){var e=this,n=this.state.isFilteredByWeb;t?this.setState({items:[],currentPage:1,showLoadMore:!1,isLoading:!0,isDDVisible:!1,currentFilter:t,isFilteredByWeb:t===Ue&&n},(function(){window.history.pushState(null,"","".concat(Ye,"?").concat(ve.a.stringify(e.getFilters()))),e.search()})):this.setState({isDDVisible:!1})}},{key:"getFilters",value:function(){var t=this.state,e=t.currentFilter,n=t.isFilteredByWeb,r=t.currentRegion,o={};return r&&(o.regione=r),e!==Ue&&(o.anno=e),!0===n&&(o.web=n),o}},{key:"handleChangeFilterByType",value:function(){var t=this;this.setState({items:[],currentPage:1,showLoadMore:!1,isFilteredByWeb:!this.state.isFilteredByWeb,isLoading:!0},(function(){t.search(),window.history.pushState(null,"","".concat(Ye,"?").concat(ve.a.stringify(t.getFilters())))}))}},{key:"handleLoadMore",value:function(){this.prevY=document.documentElement.scrollTop;var t=this.state.items;this.lastItemId=t[t.length-1].id,this.setState({isLoading:!0,currentPage:this.state.currentPage+1},this.search)}},{key:"toggleDDPanel",value:function(){var t=this.state.isDDVisible;this.setState({isDDVisible:!t})}},{key:"toggleRegionPanel",value:function(){this.setState({isRegionSelectOpen:!this.state.isRegionSelectOpen})}},{key:"search",value:function(){var t=Object(r.a)(Be().m((function t(){var e,n,r,i,a,c,u,s,l,f,p,d,b,y,m,g,v,O=this;return Be().w((function(t){for(;;)switch(t.n){case 0:return e=this.state,n=e.availableFilters,r=e.availableRegions,i=e.currentFilter,a=e.currentPage,c=e.currentRegion,u=e.items,s=e.isFilteredByWeb,l=n.find((function(t){return t.id===i})),r.find((function(t){return t.id===c})),f="page=".concat(a),p="",i===Ue||i===n[0].id?(d=s?"rank-online":"rank",p="luoghi?with=".concat(s?"rank_online":"rank",",tipologia,media,ldc.media&orderby=").concat(d,"&").concat(f,"&has=rank")):l.is_id_ldc_current&&(p="luoghi/ranks?".concat(f,"&has=luogo&with=luogo,luogo.classifiche,luogo.regione,luogo.ldc,luogo.ldc.media,luogo.selezioni,luogo.tipologia&luogo.selezioni.id=").concat(i)),0!==c&&(i===Ue||i===n[0].id?p+="&regione.id=".concat(c):p+="&luogo.regione.id=".concat(c)),b=[],t.n=1,j=p,h.a.get("".concat(We,"/").concat(j)).then((function(t){return t.data}));case 1:y=t.v,m=y.data,g=y.current_page,v=y.last_page,b=i===Ue||i===n[0].id?m.map((function(t){return Me(Me({},t),{},{rank:s?t.rank_online:t.rank})})):m.map((function(t){var e=t.luogo,n=t.nr_voti_totali,r=t.votes,o=Object(vt.a)(t,Re);return Me(Me({},e),{},{rank:Me(Me({},o),{},{votes:r||n})})})),this.setState({items:[].concat(Object(o.a)(u),Object(o.a)(b)),showLoadMore:g<v,isLoading:!1},(function(){O.lastItemId?(document.querySelector("[data-id='"+O.lastItemId+"']").scrollIntoView(),window.scrollBy(0,-200)):document.documentElement.scrollTop=O.prevY}));case 2:return t.a(2)}var j}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this,e=this.state,r=e.currentFilter,o=e.items,i=Object(ce.i)();return Ne(je.a,{getPage:n.e(29).then(n.bind(null,"Wj6v"))},(function(e){var n=e.handleCardClick;return Ne(d.a.Fragment,null,Ne(Oe.a,Object(l.a)({handleCardClick:n,CardClassificaLDC:De,handleChangeYearFilter:t.handleChangeYearFilter,handleChangeRegionFilter:t.handleChangeRegionFilter,handleChangeFilterByType:t.handleChangeFilterByType,toggleRegionPanel:t.toggleRegionPanel,toggleDDPanel:t.toggleDDPanel,handleLoadMore:t.handleLoadMore,showWebVotes:r===Ue,showExtraText:1===r,showWholeText:(r===Ue||1===r)&&i,currentFilterExtraText:1===r?tn:null,alertInnerHtmlText:r===Ue?i?'<p style="font-weight: bold; margin-bottom: 30px;">\n  Il censimento \xe8 aperto! Vota e fai votare i tuoi luoghi del cuore: hai tempo fino al 15 dicembre 2026. La classifica definitiva verr\xe0 pubblicata a febbraio 2027.\n</p>':Ze:null,endOfCampaign:!i},t.state,{items:o.map(ce.l)})))}))}}])}(d.a.Component),Ze='<strong>Stai visualizzando la classifica definitiva del dodicesimo Censimento annunciata il 12 giugno 2025.</strong><br/><br/>\nPer le classifiche regionali, clicca il men\xf9 a tendina \u201cTutt\u2019Italia\u201d e seleziona la regione.<br/>\nPer le classifiche locali <a href="https://fondoambiente.it/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo">clicca qui</a> e cerca una localit\xe0, un comune o una provincia. Potrai anche filtrare per tipologia di luogo.<br/><br/>\n',tn=Ne(d.a.Fragment,null,"Sono luoghi d\u2019acqua quelli che non potrebbero esistere senza l\u2019acqua stessa, la quale non rappresenta solo un elemento di contesto, bens\xec caratterizza in modo preponderante l\u2019essenza del luogo.",Ne("br",null),Ne("br",null),Ne("strong",null,"Scopri la classifica finale della nona edizione del censimento.")),en=Qe,nn=n("lTvC"),rn=n("r04N"),on=n("q0ET"),an=d.a.createElement;function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function un(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?cn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sn(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var ln=function(t){function e(t){var n;return Object(i.a)(this,e),(n=sn(this,e,[t])).state={luoghi:[],status:"LOADING",canLoadMore:!0,currentPage:1},n.fetchAndUpdate=n.fetchAndUpdate.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){"function"===typeof this.props.update?this.props.update(this.fetchAndUpdate):this.fetchAndUpdate()}},{key:"componentWillReceiveProps",value:function(t){var e=this.props.selezioniID;t.selezioniID&&t.selezioniID!==e&&this.fetchAndUpdate()}},{key:"fetchAndUpdate",value:function(){var t=this,e=this.props,n=e.fetchPromise,r=e.pagination,i=this.state,a=i.currentPage,c=i.luoghi;this.setState({status:"LOADING"},(function(){return n(un(un({},t.props),{},{page:a})).then((function(e){var n=a+1;t.setState({luoghi:r?[].concat(Object(o.a)(c),Object(o.a)(e)):e,status:"LOADED",currentPage:r?n:1,canLoadMore:!!r&&e.length>0})}))}))}},{key:"render",value:function(){var t=this.state,e=t.luoghi,n=t.canLoadMore,r=t.status,o=this.props,i=o.moreUrl,a=o.pagination,c=o.paginationType;return an(d.a.Fragment,null,this.props.render({luoghi:e,moreUrl:i,status:r}),"LOADING"===r&&an(rn.a,{boxed:!0,height:300}),a&&"BUTTON"!==c&&n&&an(nn,{onEnter:this.fetchAndUpdate}),a&&"BUTTON"===c&&n&&an(fn,null,an(on.a,{centered:!0,onClick:this.fetchAndUpdate,disabled:"LOADING"===r},"LOADING"===r?"CARICO...":"MOSTRA ALTRI")))}}])}(d.a.Component),fn=I.d.div.withConfig({displayName:"FetchLuoghi__ButtonPadder",componentId:"sc-1k1kqiz-0"})(["padding:2rem 0;"]),pn=ln,dn=n("c63D"),hn=d.a.createElement;function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var mn=function(t){t.page;return Object(Fe.l)({limit:100,query:"ldc.fl_intervento=true&orderby=rank"}).then((function(t){return t.data})).catch((function(t){return[]}))},gn=function(t){var e=t.ldc,n=e.media,r=e.titolo,o=t.id,i=t.slug,a=t.localita_web;return{_id:o,picture:Object(ce.e)(n),target:"/p/luogo/?id=".concat(o,"&ldc#descrizione_intervento"),title:r,localita_web:a,slug:i}},vn=Object(O.a)(E.c,Object(E.a)(),Object(E.b)(),E.e)((function(){return hn(pn,{fetchPromise:mn,render:function(t){var e=t.luoghi;return hn(dn.a,null,(function(t){var n=t.handleCardClick;return hn(b.GridSlideGallery,{images:e.map(gn).map((function(t){return yn(yn({},t),{},{onClick:n})}))})}))}})})),On=d.a.createElement,jn=function(t){var e=t.subtitle,n=t.backgroundImage,r=t.title,o=Object(ce.i)(),i="";i=e||"L\u2019undicesima edizione del Censimento si \xe8 conclusa il 15 dicembre 2022. I vincitori verranno annunciati a febbraio 2023. Naviga il sito e scopri la classifica provvisoria.";var a=n,c=r;return On(B,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/i-luoghi-del-cuore/cerca-un-luogo",withIcon:!0,placeholder:"Cerca un luogo per nome o localit\xe0",buttonLabel:o?"Vota":"Cerca",subtitle:i,backgroundImage:a,title:c}))};jn.fields=B.fields;var _n=jn,wn=["resources"],En=d.a.createElement,Tn=function(t){return En(ue.a,Object(l.a)({},t,{onClick:function(){return t.handleCardClick({slug:t.slug,id:t.id})}}))},Cn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"data",type:"api",resource:"ldc",exact:4,label:"Seleziona luoghi LDC"}]),Object(T.a)("ldc"))((function(t){var e=t.resources,n=(Object(vt.a)(t,wn),e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(ce.l):[]);return En(b.ListOfCards,{CardComponent:Tn,cards:n})})),Pn=d.a.createElement,kn=function(t){return Pn(b.EventCard,Object(l.a)({LinkComponent:bt.a},t))},Sn=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"border",label:"Bordo",type:"multiple",options:["true:MOSTRA","false:NASCONDI"]},{prop:"samesize",label:"Dimensione Cards",type:"multiple",options:["true:TUTTE UGUALI","false:DEFAULT"]},{prop:"data",type:"api",resource:"eventildc",exact:4,label:"Seleziona eventi"}
1,{label:"Sfondo Card 1",prop:"cardsBackground1",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 2",prop:"cardsBackground2",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 3",prop:"cardsBackground3",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]},{label:"Sfondo Card 4",prop:"cardsBackground4",type:"multiple",options:["white:BIANCO","green:VERDE","image:IMMAGINE"]}]),E.e,Object(T.a)("eventildc"))((function(t){var e=t.resources,n=t.border,r=t.samesize,o=t.cardsBackground1,i=t.cardsBackground2,a=t.cardsBackground3,c=t.cardsBackground4,u=e.length>0?e.map(ce.m):[],s=[o,i,a,c];return Pn(b.EventsGrid,{CardComponent:kn,cards:u,border:n,samesize:r,cardsBackground:s})}));function xn(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var An=function(t){function e(t){var n;return Object(i.a)(this,e),(n=xn(this,e,[t])).timeoutId=null,n.setRefresh=n.setRefresh.bind(n),n.cancelRefresh=n.cancelRefresh.bind(n),n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"setRefresh",value:function(t){var e=this,n=this.props.timeout;return this.cancelRefresh(),this.timeoutId=n&&setTimeout((function(){e.setRefresh(t)}),n),t()}},{key:"componentWillUnMount",value:function(){this.cancelRefresh()}},{key:"cancelRefresh",value:function(){clearTimeout(this.timeoutId)}},{key:"render",value:function(){return this.props.children({setRefresh:this.setRefresh,cancelRefresh:this.cancelRefresh})}}])}(d.a.PureComponent),In=n("9SJ6"),Ln=d.a.createElement;function Dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dn(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Rn=function(t){return Ln(pn,Object(l.a)({},t,{render:function(t){var e=t.luoghi;t.status;return Ln(In.a,{CardComponent:ue.a,cards:e.map((function(t){return Fn(Fn({},Object(ce.l)(t)),{},{target:"_blank"})}))})}}))},Nn=["selezioniID","displayTitle","numberOfLuoghi"],Gn=d.a.createElement,Mn=function(t){var e=t.selezioniID,n=void 0===e?0:e,r=t.limit,o=void 0===r?4:r;return Object(Fe.l)({limit:o,query:"&selezioni.id=".concat(n,"&orderby=rank&ldc.media.pivot.position=TOP")}).then((function(t){return t.data}))},zn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)(),Object(E.d)([{prop:"selezioniID",label:"ID della selezione"},{prop:"numberOfLuoghi",label:"Numero di luoghi",type:"number"}]))((function(t){var e=t.selezioniID,n=(t.displayTitle,t.numberOfLuoghi),r=void 0===n?4:n,o=Object(vt.a)(t,Nn);return Gn(An,{timeout:3e5},(function(t){var n=t.setRefresh;return Gn(Rn,Object(l.a)({},o,{update:function(t){return n(t)},selezioniID:e,limit:r,fetchPromise:Mn}))}))})),Bn=d.a.createElement,Hn=function(t){var e=t.page;return Object(Fe.l)({page:e,query:"ldc.fl_intervento=true&limit=15&orderby=rank"}).then((function(t){return t.data})).catch((function(t){return[]}))},Un=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return Bn(Rn,Object(l.a)({},t,{fetchPromise:Hn,pagination:!0}))})),Wn=d.a.createElement,qn=function(){return Object(Fe.l)({limit:4,query:"orderby=rank-general"}).then((function(t){return t.data})).catch((function(t){return[]}))},Vn=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return Wn(An,{timeout:3e5},(function(e){var n=e.setRefresh;return Wn(Rn,Object(l.a)({},t,{update:function(t){return n(t)},fetchPromise:qn,moreUrl:"/il-fai/grandi-campagne/i-luoghi-del-cuore/classifica/"}))}))})),Kn=n("oUmF"),Jn=n.n(Kn),Yn=n("WTvm"),$n=n.n(Yn),Xn=n("X0EA"),Qn=n.n(Xn),Zn=n("Q5fB"),tr=n("8CSu"),er=n("77RZ"),nr=["facebookUserId"],rr=d.a.createElement;function or(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return ir(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&
1(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ir(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ir(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,ir(f,"constructor",s),ir(s,"constructor",u),u.displayName="GeneratorFunction",ir(s,o,"GeneratorFunction"),ir(f),ir(f,o,"Generator"),ir(f,r,(function(){return this})),ir(f,"toString",(function(){return"[object Generator]"})),(or=function(){return{w:i,m:p}})()}function ir(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(ir=function(t,e,n,r){function i(e,n){ir(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function ar(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var cr=v()().publicRuntimeConfig.PLATFORM,ur=function(t){function e(){var t;return Object(i.a)(this,e),(t=ar(this,e)).state={page:1,ids:[]},t.getVotedByFriends=t.getVotedByFriends.bind(t),t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.tokenId,n=t.votes;this.getVotedByFriends({tokenId:e,votes:n})}},{key:"getVotedByFriends",value:function(){var t=Object(r.a)(or().m((function t(e){var n,r,i,a=this;return or().w((function(t){for(;;)switch(t.n){case 0:return n=e.tokenId,r=e.votes,t.n=1,h.a.get("".concat(cr,"/users/me/friends?with=voti.luogo"),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(t){return t.data.data})).then((function(t){var e=t.reduce((function(t,e){return[].concat(Object(o.a)(t),Object(o.a)(e.voti.map((function(t){return t.luogo})).filter((function(t){return t})).filter((function(t){return!r.find((function(e){return e.id===t.id}))}))))}),[]).map((function(t){return t.id}));if(a.props.sortByFriends){var n=Qn()(e);return $n()(Jn()(e),(function(t){return n[t]})).reverse()}return Jn()(e)})).catch((function(t){return[]}));case 1:i=t.v,this.setState({ids:i});case 2:return t.a(2)}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.props,e=t.numberOfLuoghi,n=t.sortByFriends,r=this.state.ids,o=!n;return r&&0===r.length?rr(b.TitleGroup,{subtitle:"I tuoi amici di Facebook devono ancora votare i loro luoghi del cuore.<br>Invitali tu!"}):rr(Rn,Object(l.a)({},this.props,{pagination:!0,paginationType:"BUTTON",fetchPromise:function(t){var n=t.page;return function(t){var e=t.page,n=void 0===e?1:e,r=t.numberOfLuoghi,o=void 0===r?4:r,i=t.ids,a=t.orderByRank;return i&&0===i.length?Promise.resolve([]):Object(Fe.l)({limit:o,page:n,query:"".concat(a&&"&orderby=rank","&").concat(i.map((function(t){return"id[]=".concat(t)})).join("&"))}).then((function(t){return t.data})).catch((function(t){return[]}))}({numberOfLuoghi:e,page:n,ids:r,orderByRank:o})}}))}}])}(p.Component),sr=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)()),lr=Object(O.a)(Object(_.b)((function(t){return{facebookUserId:Object(Zn.b)(t),tokenId:Object(tr.b)(t),votes:Object(er.b)(t)}})),Object(E.d)([{prop:"numberOfLuoghi",label:"Numero di luoghi",type:"number"}])),fr=sr(ur),pr=lr((function(t){var e=t.facebookUserId,n=Object(vt.a)(t,nr);return e?rr(fr,n):null}));pr.fields=fr.fields;var dr=pr,hr=n("cXXW"),br=n("7U+e"),yr=d.a.createElement,mr=function(t){var e=t.coords,n=e.lat,r=e.lng,o=t.page,i=void 0===o?1:o;return Object(Fe.l)({limit:4,page:i,query:"radius[coords]=".concat(parseFloat(n).toFixed(2),",").concat(parseFloat(r).toFixed(2),"&radius[distance]=10&orderby=rank")}).then((function(t){return t.data}
1)).catch((function(t){return[]}))},gr=Object(O.a)(E.c,E.e,Object(E.a)(),Object(E.b)())((function(t){return yr(hr.a,null,(function(e){var n=e.requestLocation,r=e.coords,o=e.status;return yr(br.a,{coords:r,status:o,requestLocation:n,getLuoghi:mr,CardComponent:ue.a,makeCard:ce.l,fallback:t.fallback})}))})),vr=n("IuyV"),Or=d.a.createElement,jr=function(t){return Or(B,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/giornate-fai-autunno/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};jr.fields=B.fields;var _r=jr,wr=n("ncWu"),Er=d.a.createElement,Tr=function(t){return Er(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},Cr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"gfa",exact:3,label:"Seleziona luoghi GFA"}]),E.e,Object(T.a)("gfa"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(wr.f):[];return Er(b.ListOfCards,{CardComponent:Tr,cards:n})})),Pr=d.a.createElement,kr=function(t){return Pr(B,Object(l.a)({},t,{searchUrl:"/il-fai/grandi-campagne/mattinate-fai-inverno/i-luoghi-aperti/",placeholder:"Cerca un luogo per nome o localit\xe0",withIcon:!0}))};kr.fields=B.fields;var Sr=kr,xr=n("es+e"),Ar=d.a.createElement,Ir=function(t){return Ar(b.ListCardWithTooltips,Object(l.a)({LinkComponent:bt.a},t))},Lr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"mfi",exact:3,label:"Seleziona luoghi MFI"}]),E.e,Object(T.a)("mfi"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(xr.f):[];return Ar(b.ListOfCards,{CardComponent:Ir,cards:n})})),Dr=d.a.createElement,Fr=function(t){return Dr(B,Object(l.a)({},t,{searchUrl:"/sostienici/vantaggi-per-gli-iscritti/fai-per-me/cerca-convenzioni",placeholder:"Cerca per parola chiave o localit\xe0",withIcon:!0}))};Fr.fields=B.fields;var Rr=Fr,Nr=n("Ci+5"),Gr=d.a.createElement,Mr=function(t){return Gr(b.CardConvenzione,Object(l.a)({LinkComponent:bt.a},t))},zr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"data",type:"api",resource:"faixme",exact:3,label:"Seleziona convenzioni Faiperme"}]),E.e,Object(T.a)("faixme"))((function(t){var e=t.resources,n=e.length>0?e.filter((function(t){return"undefined"!==typeof t})).map(Nr.e):[];return Gr(b.ListOfCards,{CardComponent:Mr,cards:n})})),Br=n("ZaFK"),Hr=d.a.createElement;function Ur(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Wr(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Wr(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Wr(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Wr(f,"constructor",s),Wr(s,"constructor",u),u.displayName="GeneratorFunction",Wr(s,o,"GeneratorFunction"),Wr(f),Wr(f,o,"Generator"),Wr(f,r,(function(){return this})),Wr(f,"toString",(function(){return"[object Generator]"})),(Ur=function(){return{w:i,m:p}})()}function Wr(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Wr=function(t,e,n,r){function i(e,n){Wr(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function qr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?qr(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kr(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var Jr=function(t){function e(t){var n;return Object(i.a)(this,e),(n=Kr(this,e,[t])).state={luoghiFaiXMe:[],loading:!1},n}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(Ur().m((function t(){var e,n;return Ur().w((function(t){for(;;)switch(t.n){case 0:return e=this.props.id_selezione,this.setState(Vr(Vr({},this.state),{},{loading:!0})),t.n=1,Object(Br.e)(e);case 1:n=t.v,this.setState(Vr(Vr({},this.state),{},{luoghiFaiXMe:n,loading:!1}));case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state,e=t.loading,n=t.luoghiFaiXMe;return Hr(d.a.Fragment,null,e&&Hr(b.Loading,null),Hr(b.ListOfCards,{cards:n.map(Nr.e),CardComponent:function(t){return Hr(b.CardConvenzione,Object(l.a)({LinkComponent:bt.a},t))}}))}}])}(d.a.Component),Yr=Object(O.a)(Object(E.a)(),Object(E.b)(),E.c,Object(E.d)([{prop:"id_selezione",type:"api",resource:"faixmeregioni",label:"Scegli una selezione",singleChoice:!0,pushZeroToValue:!0}]),E.e,Object(T.a)("faixmeregioni"))(Jr),$r=d.a.createElement;function Xr(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Qr(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Qr(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Qr(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Qr(f,"constructor",s),Qr(s,"constructor",u),u.displayName="GeneratorFunction",Qr(s,o,"GeneratorFunction"),Qr(f),Qr(f,o,"Generator"),Qr(f,r,(function(){return this})),Qr(f,"toString",(function(){return"[object Generator]"})),(Xr=function(){return{w:i,m:p}})()}function Qr(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Qr=function(t,e,n,r){function i(e,n){Qr(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function Zr(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}function to(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function eo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?to(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var no=function(t){return $r(b.ListCard,Object(l.a)({},t,{LinkComponent:bt.a}))},ro=function(t){return eo(eo({},Object(q.a)(t)),{},{content:t&&t.abstract,subtitle:null})},oo=function(t){return eo(eo({},Object(q.a)(t)),{},{thumbnail:{url:t&&t.image_sticky},subtitle:null,supertitle:null,tag:null})},io=function(t){return eo(eo({},Object(q.a)(t)),{},{subtitle:null})},ao=function(t){function e(){var t;return Object(i.a)(this,e),(t=Zr(this,e)).state={sideNews:[],news:[]},t}return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=Object(r.a)(Xr().m((function t(){var e;return Xr().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(V.d)("&id_news_categoria=null|NOT&orderby=dt_news-&limit=6&image_sticky=null|NOT").then((function(t){return t.data}));case 1:e=t.v,this.setState({sideNews:e});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state.sideNews,e=this.props.resources,n=e.slice(0,2).map(ro),r=e.slice(2).map(io),o=t.map(oo),i=[{supertitle:"RUBRICA",tag:"Restauri e valorizzazione"},{supertitle:"RUBRICA",tag:"Ambiente e paesaggio"},{supertitle:"RUBRICA",tag:"La rete dei volontari FAI"}];return $r(d.a.Fragment,null,$r(b.ListCardDouble,{cards:n,CardComponent:no}),$r(b.Wrapper,{size:"big"},$r(co,null,$r(uo,null,$r(b.NewsGrid,{cards:r.slice(0,2)}),$r("div",null,$r(b.List,{items:r.slice(2,5).map((function(t,e){return eo(eo({},t),i[e])})),ListItem:function(t){return $r(b.NewsItem,t)},horizontal:!0,color:"green"})),$r(b.NewsGrid,{cards:r.slice(5,6)}),$r(b.NewsGrid,{cards:r.slice(6,8)})),$r(so,null,$r(b.List,{items:o&&o,ListItem:function(t){return $r(b.NewsItem,Object(l.a)({},t,{withThumbnail:!0}))},color:"grey"}))),$r(b.Padder,{size:"medium"},$r(b.Button,{centered:!0,link:"/news/archivio"},"Archivio"))))}}])}(p.Component),co=I.d.div.withConfig({displayName:"NewsPage__Flex",componentId:"sc-1867xim-0"})(["justify-content:center;@media screen and (min-width:1024px){display:flex;}"]),uo=I.d.div.withConfig({displayName:"NewsPage__Main",componentId:"sc-1867xim-1"})(["flex-shrink:0;flex-basis:70%;"]),so=I.d.div.withConfig({displayName:"NewsPage__SideNews",componentId:"sc-1867xim-2"})(["flex-shrink:0;flex-basis:30%;background:#f2f2f2;"]),lo=Object(O.a)(Object(E.d)([{prop:"data",type:"api",resource:"news",exact:10,label:"Seleziona news"},{prop:"hasMobileLiteLayout",type:"boolean"}]),Object(T.a)("news"))(ao),fo=n("JTpX"),po=n("NbfL"),ho=n("KZWD"),bo=d.a.createElement,yo=Object(O.a)(Object(j.a)(),Object(ho.a)([{prop:"text",type:"WYSIWYG"},{prop:"date",type:"datetime-local"},{prop:"link",type:"cta"},{prop:"color",label:"Sfondo",type:"multiple",options:["white:BIANCO","orange:ARANCIO","green:VERDE","grey:GRIGIO"],defaultValue:"green"}]))((function(t){var e=t.date,n=t.text,r=t.link,o=t.color;return bo("div",null,bo(b.Countdown,{date:new Date(e),text:n,link:r,color:o}))})),mo=n("Z2Hg"),go=n("w2w1"),vo=n("Zee3"),Oo=n("KtlO"),jo=Object(O.a)(Object(j.a)(),vo.a,Object(ho.a)([{type:"repeater",prop:"slides",label:"Slides",model:[{prop:"title",label:"Titolo"},{prop:"link",label:"Link del Video"},{prop:"preview",label:"Preview del video",type:"media"},{prop:"related",label:"Video correlati",type:"boolean",initialValue:!1},{prop:"active",label:"Play video automaticamente",type:"multiple",options:["true:attivo","false:non attivo"]}]}]),Oo.a,Object(mo.a)(),Object(go.a)())(b.VideoSlider),_o=d.a.createElement,wo=Object(O.a)(Object(j.a)(),Object(ho.a)([{prop:"color",type:"multiple",label:"Color",options:["#054238:Verde","#e74f30:Arancione"]},{prop:"cards",type:"repeater",label:"Cards",model:[{prop:"icon",label:"Icona"},{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo"},{prop:"link",label:"Link"},{prop:"target",label:"Link target",type:"multiple",options:["_self:_SELF","_blank:_BLANK"]}]}]),Oo.a,Object(mo.a)(),Object(go.a)())((function(t){var e=t.color,n=t.cards;return _o(b.IconCardBoxedContainer,null,n&&n.map((function(t){return _o(b.IconCardBoxed,Object(l.a)({},t,{color:e}))})))})),Eo=n("f3S9"),To=n("NFNr");function Co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Po(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?Co(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ko(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return So(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(So(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,So(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,So(f,"constructor",s),So(s,"constructor",u),u.displayName="GeneratorFunction",So(s,o,"GeneratorFunction"),So(f),So(f,o,"Generator"),So(f,r,(function(){return this})),So(f,"toString",(function(){return"[object Generator]"})),(ko=function(){return{w:i,m:p}})()}function So(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(So=function(t,e,n,r){function i(e,n){So(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var xo=v()().publicRuntimeConfig,Ao=xo.PLATFORM,Io=(xo.LARAVEL,function(t){return h.a.post("".concat(Ao,"/quiz-scuole/generate-pdf"),{first_name:t.firstName,last_name:t.lastName,qualification:t.qualification,quiz_id:t.quizId})}),Lo=function(t,e){return h.a.get("".concat(Ao,"/users/me/quizzes?id=quiz-").concat(t),{headers:{Authorization:"Bearer ".concat(e)}}).then((function(t){return t.data.payload.url})).catch((function(t){return!1}))},Do=function(){var t=Object(r.a)(ko().m((function t(e,n){var r,o;return ko().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Lo(e,n);case 1:if(!(r=t.v)){t.n=2;break}return t.a(2,{certificate:{url:r}});case 2:return t.n=3,h.a.get("".concat(Ao,"/users/me/objects/quiz-").concat(e),{headers:{Authorization:"Bearer ".concat(n)}}).then((function(t){return t.data.payload})).catch((function(t){if(404===t.status)return!1}));case 3:return o=t.v,t.a(2,o)}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),Fo=function(){var t=Object(r.a)(ko().m((function t(e,n,r){var o;return ko().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Do(e,r);case 1:o=t.v,Object(h.a)({method:o?"PUT":"POST",url:"".concat(Ao,"/users/me/objects/").concat(o?"quiz-".concat(e):""),data:{id:"quiz-".concat(e),payload:JSON.stringify(Po({},n))},headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data})).catch((function(t){return console.log(t)}));case 2:return t.a(2)}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),Ro=function(t){var e=t.quizId,n=t.payload,r=t.authToken;Object(h.a)({method:"POST",url:"".concat(Ao,"/users/me/quizzes/"),data:{id:"quiz-".concat(e),payload:JSON.stringify({url:n})},headers:{Authorization:"Bearer ".concat(r)}})},No=d.a.createElement,Go=Object(O.a)(Object(j.a)({niceName:"ScuoleQuiz"}),Object(ho.a)([{prop:"quizId",label:"Quiz",type:"multiple",options:Eo.e.map((function(t){return"".concat(t.id,":").concat(t.label)})),initialValue:Eo.e[0].id}]),Object(_.b)((function(t){return{authToken:Object(tr.b)(t)}}),null))((function(t){return No(p.Fragment,null,No(b.ScuoleQuiz,Object(l.a)({},t,{quizId:t.quizId||Eo.e[0].id,getCertificateFromPlatform:Lo,saveCertificateToPlatform:Ro,generatePdf:Io,getQuizState:Do,saveQuizState:Fo,logout:To.a.logout})))})),Mo={SecondaryMenu:Object(j.a)({niceName:"Menu secondario"})(po.a),ScuoleQuizContainer:Go,Countdown:yo,Musement:Object(j.a)({group:"External"})(fo.a),ListOfPlacesWithApi:Object(j.a)({available:!1})((function(){return null})),JotFormIframe:Object(j.a)({group:"External",niceName:"iFrame JotFormPro"})(ot),JotFormIframeFree:Object(j.a)({group:"External",niceName:"iFrame JotFormPro Libero"})(ut),DatalyticsIframe:Object(j.a)({group:"External",niceName:"iFrame Datalytics"})(pt),ListOfCardsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Beni"})(gt),ListOfCardsWithGFP:Object(j.a)({group:"FAI Platform",niceName:"Lista di GFP"})(Et),ListOfCardsWithLDC:Object(j.a)({group:"LDC",niceName:"Lista di LDC"})(Cn),GridSlideGalleryWithLDC:Object(j.a)({group:"LDC",niceName:"Griglia luoghi LDC salvati"})(vn),ListOfNearbyLDC:Object(j.a)({group:"LDC",niceName:"LDC localizzati GPS"})(gr),ListOfLDCVotedByFriends:Object(j.a)({group:"LDC",niceName:"LDC votati dagli amici"})(dr),ListOfLDCFromSelezioni:Object(j.a)({group:"LDC",niceName:"LDC lista da selezioni"})(zn),ListOfLDCSalvati:Object(j.a)({group:"LDC",niceName:"LDC salvati"})(Un),ListOfMostVotedLDC:Object(j.a)({group:"LDC",niceName:"LDC pi\xf9 votati"})(Vn),ClassificaLDC:Object(j.a)({group:"LDC",niceName:"Classifica LDC"})(en),ListOfEventsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Eventi"})(kt),ListOfEventsRegionaliWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di Eventi Regionali"})(Gt),ListOfNewsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Lista di News"})(Bt),ListOfNewsWithApiChooser:Object(j.a)({group:"FAI Platform",niceName:"Lista di News dinamica"})(Kt),GridOfNewsWithApi:Object(j.a)({group:"FAI Platform",niceName:"Griglia di News"})(X),FAQsWithApi:Object(j.a)({group:"FAI Platform",niceName:"FAQ dinamiche"})(A),ContactFormWithApi:Object(j.a)({group:"FAI Platform",niceName:"Contact Form"})(w.a),NewsPage:Object(j.a)({group:"FAI Platform",niceName:"Pagina news"})(lo),HeroWithSearch:Object(j.a)({group:"GFP",niceName:"Hero con Search GFP"})(W),LDCHeroWithSearch:Object(j.a)({group:"LDC",niceName:"Hero con Search LDC"})(_n),GFAHeroWithSearch:Object(j.a)({group:"GFA",niceName:"Hero con Search GFA"})(_r),ListOfCardsWithGFA:Object(j.a)({group:"GFA",niceName:"Lista di GFA"}
1)(Cr),MFIHeroWithSearch:Object(j.a)({group:"MFI",niceName:"Hero con Search MFI"})(Sr),ListOfCardsWithMFI:Object(j.a)({group:"MFI",niceName:"Lista di MFI"})(Lr),FaiXMeHeroWithSearch:Object(j.a)({group:"FaiXMe",niceName:"Hero con Search FaiXMe"})(Rr),ListOfCardsFaiXMe:Object(j.a)({group:"FaiXMe",niceName:"Lista di FaiXMe"})(zr),ListOfCardsWithFaipermeRegioni:Object(j.a)({group:"FaiXMe",niceName:"Lista di FaiXMe Regioni"})(Yr),ListOfTestimonialWithVote:Object(j.a)({group:"LDC",niceName:"Lista testimonial"})(he),ListOfEventsLDCWithApi:Object(j.a)({group:"LDC",niceName:"Lista Eventi LDC"})(Sn),VideoSlider:Object(j.a)({niceName:"Slider Video"})(jo),EventsGridLDC:Object(j.a)({group:"LDC",niceName:"Griglia Eventi con Search LDC"})(vr.a),IconCardBoxedContainer:Object(j.a)({niceName:"IconCardBoxed Container"})(wo)},zo=v()().publicRuntimeConfig.LARAVEL,Bo=function(t){var e=new FormData;return e.append("image",t),h.a.post("".concat(zo,"/upload/image"),e,{headers:{"Content-Type":"multipart/form-data"}})},Ho=n("MGb8"),Uo=n.n(Ho),Wo=n("ynZC");function qo(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return Vo(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(Vo(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Vo(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,Vo(f,"constructor",s),Vo(s,"constructor",u),u.displayName="GeneratorFunction",Vo(s,o,"GeneratorFunction"),Vo(f),Vo(f,o,"Generator"),Vo(f,r,(function(){return this})),Vo(f,"toString",(function(){return"[object Generator]"})),(qo=function(){return{w:i,m:p}})()}function Vo(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(Vo=function(t,e,n,r){function i(e,n){Vo(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var Ko=v()().publicRuntimeConfig.WP_API,Jo=function(){var t=Object(r.a)(qo().m((function t(e,n){var r,o;return qo().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(Wo.a)();case 1:return r=t.v,o=new Uo.a({endpoint:Ko,nonce:r}),t.a(2,o.users().me())}}),t)})));return function(e,n){return t.apply(this,arguments)}}();function Yo(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return $o(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);
1try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):($o(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,$o(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,$o(f,"constructor",s),$o(s,"constructor",u),u.displayName="GeneratorFunction",$o(s,o,"GeneratorFunction"),$o(f),$o(f,o,"Generator"),$o(f,r,(function(){return this})),$o(f,"toString",(function(){return"[object Generator]"})),(Yo=function(){return{w:i,m:p}})()}function $o(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}($o=function(t,e,n,r){function i(e,n){$o(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}var Xo=function(){var t=Object(r.a)(Yo().m((function t(e){var n,r,o,i,a;return Yo().w((function(t){for(;;)switch(t.n){case 0:return n=e.userID,r=e.postID,o=e.lock,i=void 0===o?"":o,t.n=1,Object(Wo.a)("heartbeat");case 1:return a=t.v,t.a(2,Object(h.a)({method:"POST",url:"/wordpress/wp-admin/admin-ajax.php",data:ve.a.stringify({"data[wp-refresh-post-lock][post_id]":r,"data[wp-refresh-post-lock][lock]":"".concat(i||parseInt(Date.now()/1e3),":").concat(n),"data[wp-refresh-post-nonces][post_id]":r,interval:15,_nonce:a,action:"heartbeat",screen_id:"page",has_focus:!0}),headers:{"content-type":"application/x-www-form-urlencoded"}}))}}),t)})));return function(e){return t.apply(this,arguments)}}(),Qo=function(){var t=Object(r.a)(Yo().m((function t(e){var n,r;return Yo().w((function(t){for(;;)switch(t.n){case 0:return n=e.postID,t.n=1,Object(Wo.a)("heartbeat");case 1:return r=t.v,t.a(2,Object(h.a)({method:"POST",url:"/wordpress/wp-admin/admin-ajax.php",data:ve.a.stringify({"data[wp-check-locked-posts][]":"post-".concat(n),"data[wp-refresh-post-nonces][post_id]":n,interval:15,_nonce:r,action:"heartbeat",screen_id:"edit-page",has_focus:!0}),headers:{"content-type":"application/x-www-form-urlencoded"}}))}}),t)})));return function(e){return t.apply(this,arguments)}}(),Zo=Xo,ti=n("uPMs"),ei=d.a.createElement;function ni(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return ri(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(ri(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,ri(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,ri(f,"constructor",s),ri(s,"constructor",u),u.displayName="GeneratorFunction",ri(s,o,"GeneratorFunction"),ri(f),ri(f,o,"Generator"),ri(f,r,(function(){return this})),ri(f,"toString",(function(){return"[object Generator]"})),(ni=function(){return{w:i,m:p}})()}function ri(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(ri=function(t,e,n,r){function i(e,n){ri(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function oi(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}function ii(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ai(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?ii(Object(n),!0).forEach((function(e){Object(f.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ci=v()().publicRuntimeConfig,ui=ci.PLATFORM,si=ci.APP_DOMAIN,li=ci.WP_API,fi=ci.FAI_CONTACT_FORM,pi=function(t){return t&&t.replace("\u2019","'")},di=m()((function(){return Promise.all([n.e(0),n.e(28),n.e(95)]).then(n.bind(null,"dkz/"))}),{ssr:!1,loading:function(){return ei("div",{className:"pb-loading",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw",position:"fixed",top:0,backgroundColor:"white",zIndex:1e3}},"Loading")},loadableGenerated:{webpack:function(){return["dkz/"]},modules:["@fai/pagebuilder/src/containers"]}}),hi=Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)(Object(f.a)({beni:{base:"".concat(ui,"/luoghi/beni?with=luogo,luogo.provincia,luogo.comune,tipologia,media"),getSearch:function(t){return h.a.get("".concat(hi.beni.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.beni.base,"&").concat(t?t.map((function(t){return"id_luogo[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id_luogo"},gfp:{base:"".concat(ui,"/luoghi/?with=gfp,gfp.media&has=gfp"),getSearch:function(t){return h.a.get("".concat(hi.gfp.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.gfp.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},gfa:{base:"".concat(ui,"/luoghi/?with=gfa,gfa.media&has=gfa"),getSearch:function(t){return h.a.get("".concat(hi.gfa.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.gfa.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},mfi:{base:"".concat(ui,"/luoghi/?with=mfi,mfi.media&has=mfi"),getSearch:function(t){return h.a.get("".concat(hi.mfi.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.mfi.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},faixme:{base:"".concat(ui,"/luoghi/faixme/?with=luogo,media,categorie"),getSearch:function(t){return h.a.get("".concat(hi.faixme.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.faixme.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},ldc:{base:"".concat(ui,"/luoghi/?with=ldc,ldc.media&has=ldc"),getSearch:function(t){return h.a.get("".concat(hi.ldc.base,"&nome=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.ldc.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},news:{base:"".concat(ui,"/news?stato=1&id_news_categoria=null|NOT"),getSearch:function(t){return h.a.get("".concat(hi.news.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.news.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"},apiChooser:{base:"",getItems:function(t){return h.a.get("".concat(t)).then((function(t){return t.data.data}))},getSearch:function(t){return h.a.get("".concat(t)).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.apiChooser.base,"?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id",hideSearch:!1}
1,eventi:{base:"".concat(ui,"/eventi"),getSearch:function(t){return h.a.get("".concat(hi.eventi.base,"/?titolo=%25").concat(t,"%25|LIKE&orderby=dt_inizio-&limit=150")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.eventi.base,"/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&orderby=dt_inizio-&limit=150")).then((function(t){return t.data.data}))},identifier:"id"},regioni:{base:"".concat(ui,"/regioni"),getSearch:function(t){return h.a.get("".concat(ui,"/regioni?nome=").concat(pi(t),"*|LIKE")).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.regioni.base)).then((function(t){return t.data.data}))},identifier:"nome",hideTitle:!0},owners:{base:"".concat(ui,"/luoghiowners"),getSearch:function(t){return h.a.get("".concat(hi.owners.base,"?keyword=").concat(pi(t))).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.owners.base)).then((function(t){return t.data.data}))},identifier:"id_luogo_owner",displayName:"owner"}},"faixme",{base:"".concat(ui,"/luoghi/faixme/?with=luogo,media,categorie"),getSearch:function(t){return h.a.get("".concat(hi.faixme.base,"&titolo=%25").concat(t,"%25|LIKE").concat(t&&t.length>15?"&limit=99":"")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.faixme.base,"&").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"")).then((function(t){return t.data.data}))},identifier:"id"}),"faixmeregioni",{base:"".concat(ui,"/selezioni?id_vertical=FAIXME&limit=100"),getSearch:function(t){return h.a.get("".concat(hi.faixmeregioni.base,"&titolo[]=").concat(t,"|LIKE")).then((function(t){return t.data.data}))},getIds:function(){return h.a.get("".concat(hi.faixmeregioni.base)).then((function(t){return t.data.data}))},identifier:"id",displayName:"descrizione"}),"menus",{base:"".concat(li,"mrr/v1/menus/"),getSearch:function(t){return h.a.get("".concat(hi.menus.base)).then((function(t){return t.data}))},getIds:function(t){return h.a.get("".concat(hi.menus.base)).then((function(t){return t.data}))},identifier:"slug",displayName:"name",hideSearch:!0}),"aree",{base:fi||"//beta.faiconnect.caffeina.be/contact-form",getSearch:function(t){return h.a.get("".concat(hi.aree.base,"/aree/?titolo=%25").concat(t,"%25|LIKE&orderby=dt_inizio-")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.aree.base,"/aree/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&orderby=dt_inizio-")).then((function(t){return t.data.data}))},hideSearch:!0,identifier:"id",displayName:"label"}),"eventildc",{base:"".concat(ui,"/ldc/eventi"),getSearch:function(t){return h.a.get("".concat(hi.eventildc.base,"/?titolo=%25").concat(t,"%25|LIKE&limit=150")).then((function(t){return t.data.data}))},getIds:function(t){return h.a.get("".concat(hi.eventildc.base,"/?").concat(t?t.map((function(t){return"id[]=".concat(t)})).join("&"):"","&limit=150")).then((function(t){return t.data.data}))},identifier:"id"}),bi=ai(ai({},b),Mo);bi.Root=function(t){return t.children};var yi=function(t){var e=t.root,n=t.data,r=t.breadcrumbs,o=t.seo;return ei("div",null,e.childIds.map((function(t){var e=n.nodes[t],i=e.component,a=e.props,c=e.childIds,u=e.id,s=bi[i];return ei(d.a.Fragment,{key:t},a&&a.anchorId&&ei("div",{id:a.anchorId}),ei(s,Object(l.a)({key:"node-".concat(u)},a,{breadCrumbs:r,seo:o,LinkComponent:bt.a,tabs:!(!e.props||!e.props.tabs)&&e.props.tabs}),c&&c.map((function(t){return ei(yi,{root:n.nodes[t],data:n})}))))})))},mi=function(t){var e=t.post,n=t.withPagebuilder,r=t.save,o=t.breadcrumbs,i=t.seo,a=t.sendHeartbeatFunction,c=t.checkHearbeatFunction,u=!!e.wpData&&e.wpData.content,s=""!==u&&JSON.parse(u);return n?ei("div",{style:{marginTop:"42px"}},ei(di,{onSave:r,onUpload:Bo,availableComponents:Mo,apiMethods:hi,sendHeartbeatFunction:a,getUser:Jo,checkHearbeatFunction:c})):s?ei(yi,{root:s.nodes.root,data:s,breadcrumbs:o,seo:i}):null},gi=function(t,e){var n=t&&t.find((function(t){return t.meta_key===e}));return n?n.meta_value:""};e.a=function(t,e,n){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],f=arguments.length>5?arguments[5]:void 0,d=function(n){function p(){return Object(i.a)(this,p),oi(this,p,arguments)}return Object(s.a)(p,n),Object(a.a)(p,[{key:"render",value:function(){var t=this.props,n=t.post,r=t.seo,i=(t.isAuthRequired,t.isAuthorized,n.wpData),a=i.parents,s=a?[["/","Home"]].concat(Object(o.a)(a.map((function(t,e){return[a.slice(0,e+1).reduce((function(t,e){var n=e.slug;return"".concat(t).concat(n,"/")}),"/"),t.post_title]}
1)))):[["/","Home"]],p=i&&"news"===i.type;return ei(ti.a,{type:f,seo:r,hasFasciaNLApp:p,hasFasciaSupporto:p,hasFooter:c,hasFasciaGrazie:u},ei(mi,Object(l.a)({},this.props,{breadcrumbs:s,save:function(t){return e(t,i.ID)},sendHeartbeatFunction:function(t,e){return Zo({userID:e,postID:i.ID,lock:t})},checkHearbeatFunction:function(){return Qo({postID:i.ID})}})))}}],[{key:"getInitialProps",value:function(){var e=Object(r.a)(ni().m((function e(n){var r,o,i,a,c,u,s,l,f,p,d,h,b,y;return ni().w((function(e){for(;;)switch(e.n){case 0:return r=n.store,o=n.req,i=n.query,n.res,a=i.slug,c=i.pb,e.n=1,t(i.slug||"/").catch((function(t){return!1}));case 1:if(u=e.v){e.n=2;break}return e.a(2,{statusCode:404});case 2:return s="undefined"!==typeof c,l=u.wpData,f=u.apiData,s&&r.dispatch({type:"INIT_NODES",nodes:l.content&&JSON.parse(l.content).nodes,media:l.content&&JSON.parse(l.content).media}),p=function(t){return gi(l&&l.meta,t)},"| FAI - Fondo Ambiente Italiano",d=f&&"".concat(f.titolo," ").concat("| FAI - Fondo Ambiente Italiano")||p("_yoast_wpseo_title")||"".concat(l&&l.post_title," ").concat("| FAI - Fondo Ambiente Italiano"),h=f&&f.metadescription_og||p("_yoast_wpseo_metadesc"),b=f&&f.image_og||p("_yoast_wpseo_opengraph-image"),y=encodeURI(o&&o.url?si+o.url:"".concat(window.location.protocol,"//").concat(window.location.host,"/news/").concat(a)),e.a(2,{post:u,slug:a,apiData:f,withPagebuilder:s,seo:{title:d,description:h,ogImage:b,url:y}})}}),e)})));return function(t){return e.apply(this,arguments)}}()}])}(p.Component);return d}},"4FEf":function(t,e,n){"use strict";t.exports=function(t){return null!==t&&"object"===typeof t}},"4smK":function(t,e,n){"use strict";var r;e.__esModule=!0,e.LoadableContext=void 0;var o=((r=n("ERkP"))&&r.__esModule?r:{default:r}).default.createContext(null);e.LoadableContext=o},"72zh":function(t,e){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},"7U+e":function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n("zjfJ"),o=n("fGyu"),i=n("QsI/"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n.n(f),d=n("j/s1"),h=n("voCV"),b=n("9SJ6"),y=n("q0ET"),m=p.a.createElement;function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return j(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(j(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,j(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,j(f,"constructor",s),j(s,"constructor",u),u.displayName="GeneratorFunction",j(s,o,"GeneratorFunction"),j(f),j(f,o,"Generator"),j(f,r,(function(){return this})),j(f,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:i,m:p}})()}function j(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(j=function(t,e,n,r){function i(e,n){j(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function _(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}
1var w={btnUrl:"",btnLabel:"Mostra tutti",infoLabel:"Non ci sono elementi vicino a me"},E=function(t){function e(){var t;return Object(a.a)(this,e),(t=_(this,e)).state={currentPage:1,luoghi:[],canLoadMore:!0,loading:!1},t.loadMore=t.loadMore.bind(t),t}return Object(l.a)(e,t),Object(c.a)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.coords,n=t.requestLocation;e&&this.updateNearby({coords:e}),e||n()}},{key:"componentDidUpdate",value:function(t){var e=this.props.coords;Object(h.e)(t.coords,e)||this.updateNearby({coords:e})}},{key:"updateNearby",value:function(){var t=Object(i.a)(O().m((function t(){var e,n,r,i,a;return O().w((function(t){for(;;)switch(t.n){case 0:return e=this.props,n=e.getLuoghi,r=e.coords,i=this.state.currentPage,this.setState({loading:!0}),t.n=1,n({coords:r,page:i});case 1:a=t.v,this.setState({loading:!1,luoghi:[].concat(Object(o.a)(this.state.luoghi),Object(o.a)(a)),canLoadMore:a.length>0});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMore",value:function(){var t=this,e=this.state,n=e.loading,r=e.canLoadMore;!n&&r&&this.setState({currentPage:this.state.currentPage+1},(function(){return t.updateNearby()}))}},{key:"render",value:function(){var t=this.state,e=t.luoghi,n=t.loading,r=t.canLoadMore,o=this.props,i=o.requestLocation,a=o.status,c=o.CardComponent,u=o.makeCard,s=o.coords,l=o.ContainerComponent,f=void 0===l?b.a:l,d=o.fallback;if(s&&0===e.length&&!n){var h=this.props.EmptyComponent;if(h)return m(h,null);var g=v(v({},w),d);return m(C,null,m("p",null,g.infoLabel),g.btnUrl&&m(p.a.Fragment,null,m(P,null),m(y.a,{className:"js-requestLocation",link:g.btnUrl},g.btnLabel)))}return e.length?m(p.a.Fragment,null,m(f,{CardComponent:c,cards:e.map(u)}),r&&m(T,null,m(y.a,{centered:!0,onClick:this.loadMore},n?"CARICO...":"MOSTRA ALTRI"))):m(C,{style:{padding:"100px"}},m("p",null,"\xc8 necessario attivare la Geolocalizzazione per vedere i luoghi vicini."),m(P,null),m(y.a,{className:"js-requestLocation",onClick:i},"LOADING"===a||n?"Carico....":"Attiva Geolocalizzazione"))}}])}(p.a.Component),T=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__ButtonPadder",componentId:"sc-1yaxw6s-0"})(["padding:2rem 0;"]),C=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__AuthNeeded",componentId:"sc-1yaxw6s-1"})(["text-align:center;"]),P=d.d.div.withConfig({displayName:"FetchNearbyLuoghi__Spacer",componentId:"sc-1yaxw6s-2"})(["margin-bottom:2rem;"])},"8I/T":function(t,e,n){"use strict";var r=n("wGKE"),o=n("k/58"),i={},a=n("/oUt"),c=a.filter,u=a.taxonomy;i.author=function(t){if(void 0===t)return this;if("string"===typeof t)return this.param("author",null),c.call(this,"author_name",t);if("number"===typeof t)return c.call(this,"author_name",null),this.param("author",t);if(null===t)return c.call(this,"author_name",null),this.param("author",null);throw new Error("author must be either a nicename string or numeric ID")},i.parent=r("parent"),i.post=r("post"),i.password=r("password"),i.status=r("status"),i.sticky=r("sticky"),i.categories=r("categories"),i.category=function(t){return o(t)?i.categories.call(this,t):u.call(this,"category",t)},i.excludeCategories=r("categories_exclude"),i.tags=r("tags"),i.tag=function(t){return o(t)?i.tags.call(this,t):u.call(this,"tag",t)},i.excludeTags=r("tags_exclude"),i.before=function(t){return this.param("before",new Date(t).toISOString())},i.after=function(t){return this.param("after",new Date(t).toISOString())},t.exports=i},"8vpR":function(t,e){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach((function(t){n.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}})),n.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,e.arguments)}))},t.exports=n},ADPW:function(t,e,n){"use strict";t.exports=function(t,e){return t>e?1:t<e?-1:0}},AU4o:function(t,e,n){"use strict";var r=n("O5Wi");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
1e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.__esModule=!0,e.noSSR=u,e.default=function(t,e){var n=a.default,r={loading:function(t){t.error,t.isLoading;return t.pastDelay,null}};t instanceof Promise?r.loader=function(){return t}:"function"===typeof t?r.loader=t:"object"===typeof t&&(r=i(i({},r),t));if(r=i(i({},r),e),"object"===typeof t&&!(t instanceof Promise)&&(t.render&&(r.render=function(e,n){return t.render(n,e)}),t.modules)){n=a.default.Map;var o={},c=t.modules();Object.keys(c).forEach((function(t){var e=c[t];"function"!==typeof e.then?o[t]=e:o[t]=function(){return e.then((function(t){return t.default||t}))}})),r.loader=o}r.loadableGenerated&&delete(r=i(i({},r),r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr){if(!r.ssr)return delete r.ssr,u(n,r);delete r.ssr}return n(r)};c(n("ERkP"));var a=c(n("/QYh"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){return delete e.webpack,delete e.modules,t(e)}},B404:function(t,e,n){"use strict";var r=n("XLvf").inherits,o=n("JN2i"),i=n("b4Fh"),a=n("P3Rk");t.exports={create:function(t,e,n){function c(r){o.call(this,r),this._levels=t._levels,this.setPathPart(0,e).namespace(n)}return r(c,o),"object"===typeof t._getArgs&&Object.keys(t._getArgs).forEach((function(t){var e=i[t];"object"===typeof e&&Object.keys(e).forEach((function(t){a(c.prototype,t,e[t])}))})),Object.keys(t._setters).forEach((function(e){c.prototype[e]||(c.prototype[e]=t._setters[e])})),c}}},"C+Tx":function(t,e,n){"use strict";var r=n("hLC0");t.exports={locateAPIRootHeader:function(t){var e=t.link||t.headers&&t.headers.link,n=r(e),o=n&&n["https://api.w.org/"];if(o&&o.url)return o.url;throw new Error('No header link found with rel="https://api.w.org/"')}}},"Che/":function(t,e,n){"use strict";var r=n("pvoB"),o=n("wSS7"),i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=function(t,e,n){i&&"__proto__"===e?i(t,e,{enumerable:!0,configurable:!0,value:n,writable:!0}):t[e]=n},u=function(t,e){if("__proto__"===e){if(!o(t,e))return;if(a)return a(t,e).value}return t[e]};function s(){var t,e,n,o,i,a,l=arguments[0]||{},f=1,p=arguments.length,d=!1;for("boolean"===typeof l&&(d=l,l=arguments[1]||{},f=2),"object"===typeof l||r.fn(l)||(l={});f<p;f++)if(null!=(t=arguments[f]))for(e in"string"===typeof t&&(t=t.split("")),t)n=u(l,e),l!==(o=u(t,e))&&(d&&o&&(r.hash(o)||(i=r.array(o)))?(i?(i=!1,a=n&&r.array(n)?n:[]):a=n&&r.hash(n)?n:{},c(l,e,s(d,a,o))):"undefined"!==typeof o&&c(l,e,o));return l}s.version="1.1.7",t.exports=s},Fu1L:function(t,e,n){"use strict";var r=n("4FEf");function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!==typeof t)return this._timeout=t,this._responseTimeout=0,this;for(var e in t)switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var i=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(r){console.error(r)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~i.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;
1if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(t,e){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){n.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!==typeof t)throw Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,e){if(r(t)){for(var n in t)this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(t)){for(var n in t)this.field(n,t[n]);return this}if(Array.isArray(e)){for(var o in e)this.field(t,e[o]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"===typeof e&&(e=""+e),this._getFormData().append(t,e),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},o.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!==typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var e=r(t),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&r(this._data))for(var o in t)this._data[o]=t[o];else"string"==typeof t?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort="undefined"===typeof t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.substring(e+1).split("&");"function"===typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,e)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error(t+e+"ms exceeded");r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},GKv7:function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var o in r)n.call(r,o)&&(t[o]=r[o])}return t};var n=Object.prototype.hasOwnProperty},GXeJ:function(t,e,n){"use strict";var r=n("cxan"),o=n("ERkP"),i=n.n(o),a=n("voCV"),c=n("QtE3"),u=n("NAJH"),s=n("OzPX"),l=n("0D0S"),f=n.n(l),p=i.a.createElement,d=f()().publicRuntimeConfig.FAI_CONTACT_FORM||"//beta.faiconnect.caffeina.be/contact-form",h=Object(a.a)(Object(u.b)(),Object(u.a)(),Object(u.d)([{prop:"title",label:"Titolo"},{prop:"subtitle",label:"Sottotitolo",type:"WYSIWYG"},{prop:"ctaLabel",label:"Label CTA"},{prop:"disclaimer",label:"Disclaimer Privacy",type:"WYSIWYG"},{prop:"defaultArea",label:"Selezione flusso",type:"apiChooser",options:[{option:"false||OGGETTO LIBERO",displayName:"false"},{option:"".concat(d,"/aree||IMPOSTA OGGETTO"),displayName:"label"}],initialValue:"false",api:{prop:"data",resource:"apiChooser"}}]),Object(s.a)("apiChooser"));e.a=h((function(t){var e=!(!t.defaultArea||"false"===t.defaultArea||!t.defaultArea.length)&&t.defaultArea[0].split("|")[1],n=!t.defaultArea||"false"===t.defaultArea;return p(c.ContactForm,Object(r.a)({},t,{defaultArea:e,isSelectEnabled:n}))}))},HKMk:function(t,e,n){"use strict";var r=n("fGyu"),o=n("cxan"),i=n("zjfJ"),a=n("9fIP"),c=n("MMYH"),u=n("K/z8"),s=n("sRHE"),l=n("8K1b"),f=n("ERkP"),p=n.n(f),d=n("voCV"),h=p.a.createElement;function b(t,e,n){return e=Object(s.a)(e),Object(u.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(s.a)(t).constructor):e.apply(t,n))}var y=[{prop:"anchorId",label:"Inserisci l'id dell'ancora",type:""}];e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var n=function(t){function n(){return Object(a.a)(this,n),b(this,n,arguments)}return Object(l.a)(n,t),Object(c.a)(n,[{key:"_handleChange",value:function(t,e){var n=this.props.onPropChange;this.setState(Object(i.a)({},t,e)),n(t,e)}},{key:"render",value:function(){return h("div",{style:{position:"relative"}}
1,h(e,Object(o.a)({},this.props,this.state)))}}])}(f.Component);return n.isAvailable="undefined"===typeof t.available||t.available,n.group=t.group||"Tutti",n.niceName=t.niceName,n.fields=[].concat(y,Object(r.a)(e.fields||[])),n.displayName=Object(d.i)(e,"withPageBuilder"),n}}},IEzQ:function(t,e,n){"use strict";var r=n("vqKY").create;function o(t,e){!function(t,e){var n,o,i,a;o=t._levels,i=e.level,a={component:e.component,validate:e.validate,methods:e.methods},o[i]=o[i]||[],o[i].push(a),e.level>0&&(n=r(e),e.names.forEach((function(e){var r=e.replace(/[_-]+\w/g,(function(t){return t.replace(/[_-]+/,"").toUpperCase()}));t._setters[r]||(t._setters[r]=n)})))}(t,e),e.children&&Object.keys(e.children).forEach((function(n){o(t,e.children[n])}))}t.exports={create:function(t,e){var n={_path:{0:e},_levels:{},_setters:{},_getArgs:t._getArgs};return Object.keys(t).forEach((function(e){"_getArgs"!==e&&o(n,t[e])})),n}}},IuyV:function(t,e,n){"use strict";n("sAyc");var r=n("fGyu"),o=n("QsI/"),i=n("9fIP"),a=n("MMYH"),c=n("K/z8"),u=n("sRHE"),s=n("8K1b"),l=n("cxan"),f=n("ERkP"),p=n.n(f),d=n("voCV"),h=n("j/s1"),b=n("tTwn"),y=n.n(b),m=n("QtE3"),g=n("NAJH"),v=n("MJc2"),O=n.n(v),j=n("ezIv"),_=n("mtjO"),w=p.a.createElement;function E(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return T(s,"_invoke",function(n,r,o){var i,c,u,s=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return i=e,c=0,u=t,p.n=n,a}};function d(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],d=p.p,h=i[2];n>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=n<2&&d<i[1])?(c=0,p.v=r,p.n=i[1]):d<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,c=0))}if(o||n>1)return a;throw f=!0,r}return function(o,l,h){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&d(l,h),c=l,u=h;(e=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(p.n=-1),d(c,u)):p.n=u:p.v=u);try{if(s=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),s}var a={};function c(){}function u(){}function s(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(T(e={},r,(function(){return this})),e),f=s.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,T(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=s,T(f,"constructor",s),T(s,"constructor",u),u.displayName="GeneratorFunction",T(s,o,"GeneratorFunction"),T(f),T(f,o,"Generator"),T(f,r,(function(){return this})),T(f,"toString",(function(){return"[object Generator]"})),(E=function(){return{w:i,m:p}})()}function T(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(T=function(t,e,n,r){function i(e,n){T(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function C(t,e,n){return e=Object(u.a)(e),Object(c.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(u.a)(t).constructor):e.apply(t,n))}var P=function(t){return"".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())},k=function(t,e){var n=[];if("now"===e){var r=new Date(t);r.setDate(r.getDate()-1),n.push("calendar.dt_evento=".concat(P(r),"|GREATER"))}else n.push("calendar.dt_evento=".concat(t,",").concat(e,"|BETWEEN"));return n.length?n.join("&"):""},S=function(t){return w(m.EventCard,Object(l.a)({},t,{LinkComponent:O.a}))},x=function(t){function e(t){var n;return Object(i.a)(this,e),(n=C(this,e,[t])).state={meta:{loading:!0}},n.search=n.search.bind(n),n.handleLoadMore=n.handleLoadMore.bind(n),n.updateResults=n.updateResults.bind(n),n}
1return Object(s.a)(e,t),Object(a.a)(e,[{key:"componentDidMount",value:function(){var t=this;this.setState({meta:{loading:!1}});var e=new Date;Object(_.f)("&calendar.dt_evento=".concat(P(e),"&limit=8")).then((function(e){t.setState({events:e.data,total:e.total,showLoadMore:e.to<e.total,currentPage:1,searchKeyword:"",searchStartDate:null,searchEndDate:null})})).catch((function(t){console.error("[EventsGridLDC] caricamento eventi fallito:",t)}))}},{key:"handleLoadMore",value:function(){var t=Object(o.a)(E().m((function t(){var e,n,o,i,a,c,u,s,l,f,p,d,h;return E().w((function(t){for(;;)switch(t.n){case 0:return e=this.state,n=e.currentPage,o=e.searchKeyword,i=e.searchStartDate,a=e.searchEndDate,c="",(o||i||a)&&(c=[o&&"titolo=%25".concat(o,"%25|LIKE"),k(i,a)].filter((function(t){return t})),c="&".concat(c.join("&"))),u=this.state.events||this.props.events,s=n+1,t.n=1,Object(_.f)("&limit=8&page=".concat(s).concat(c));case 1:l=t.v,f=l.data,p=l.current_page,d=l.to,h=l.total,this.setState({events:[].concat(Object(r.a)(u),Object(r.a)(f)),currentPage:p,showLoadMore:d<h});case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"search",value:function(t){var e=t.search,n=t.startDate,r=t.endDate;this.setState({searchKeyword:e,searchStartDate:n,searchEndDate:r,meta:{loading:!0}});var o=[e&&"&titolo=%25".concat(e,"%25|LIKE"),k(n,r),"limit=8"].join("&");this.updateResults(o,e,n,r)}},{key:"updateResults",value:function(){var t=Object(o.a)(E().m((function t(e,n,r,o){var i,a,c,u;return E().w((function(t){for(;;)switch(t.n){case 0:return"",t.n=1,Object(_.f)("".concat(e,"&").concat(""));case 1:i=t.v,a=i.data,c=i.total,u=i.to,this.setState({events:a,searchKeyword:n,showLoadMore:u<c,searchStartDate:r,searchEndDate:o,total:c,meta:{loading:!1}});case 2:return t.a(2)}}),t,this)})));return function(e,n,r,o){return t.apply(this,arguments)}}()},{key:"render",value:function(){var t=this.state,e=t.showLoadMore,n=t.searchKeyword,r=t.searchStartDate,o=t.searchEndDate,i=t.meta,a=t.total,c=this.state.events||this.props.events;return w(p.a.Fragment,null,i&&i.loading&&w(m.Loading,null),w(A,null,w(m.FiltersBar,{searchPlaceholder:"Cerca un evento",onChange:this.search,searchValue:n,datePicker:!0,startDate:r,endDate:o}),n&&function(t){t.events;var e=t.total,n=t.keyword,r=t.searchStartDate,o=n||r?'<p><a href="">Resetta la ricerca</a></p>':"",i=[n&&'<h1  style="text-align:center; margin-bottom: .5rem;">Hai cercato <strong>"'.concat(y()(n),'"</strong></h1>'),o&&o].filter((function(t){return t})).join(""),a=!!n&&e;return w(p.a.Fragment,null,w(m.FiltersResults,{total:a,message:i}))}({events:c,total:a,keyword:n,searchStartDate:r,searchEndDate:o}),c&&c.length>0?w(m.EventsGrid,{samesize:"true",cards:c.map(j.m),CardComponent:S,vertical:!0}):w("div",null,"Questa ricerca non ha ottenuto risultati, prova a inserire parole chiave differenti."),e&&w(m.Padder,{size:"medium"},w(m.Button,{centered:!0,onClick:this.handleLoadMore},"Carica Altri Eventi"))))}}])}(f.Component),A=h.d.div.withConfig({displayName:"EventsGridLDC__EventsGridLDCWrapper",componentId:"sc-1p7vlau-0"})(["background-color:#f2f2f2;.EventsGrid-row{padding:1em 1em 0;}"]),I=Object(d.a)(g.e);e.a=I(x)},JN2i:function(t,e,n){"use strict";var r=n("pu3o"),o=n("oUmF"),i=n("f8sa"),a=n("ADPW"),c=n("rVun"),u=n("wGKE"),s=n("W89y");function l(t){this._options=["auth","endpoint","headers","username","password","nonce"].reduce((function(e,n){return t&&t[n]&&(e[n]=t[n]),e}),{}),this.transport=t&&t.transport,this._params={},this._supportedMethods=["head","get","put","post","delete"],this._path={}}function f(t){return t}function p(t){return t?s(t,(function(t,e,n){return void 0!==e&&null!==e&&""!==e&&(t[n]=e),t}),{}):t}function d(t,e){if(!t.reduce((function(t,n){return!n.validate||(t||n.validate(e))}),!1))throw new Error(["Invalid path component:",e,"does not match"+(t.length>1?" any of":""),t.reduce((function(t,e){return t.concat(e.component)}),[]).join(", ")].join(" "))}l.prototype._renderQuery=function(){var t,e=i({},p(this._params)),n=(t=this._taxonomyFilters)?s(t,(function(t,e,n){return t[n]=e.map((function(t){return(t+"").trim().toLowerCase()})).join("+"),t}),{}):{};e.filter=i({},p(this._filters),n);var o=r.stringify(e,{arrayFormat:"brackets"}).split("&").sort().join("&"),a=/\?/.test(this._options.endpoint)?"&":"?";return""===o?"":a+o},l.prototype._renderPath=function(){this.validatePath();var t=this._path,e=Object.keys(t).sort((function(t,e){return parseInt(t,10)-parseInt(e,10)})).map((function(e){return t[e]}));return[this._namespace].concat(e).filter(f).join("/")},l.prototype.toString=function(){var t=this._renderPath(),e=this._renderQuery();return this._options.endpoint+t+e},l.prototype.setPathPart=function(t,e){if(this._path[t])throw new Error("Cannot over
1write value "+this._path[t]);return this._path[t]=e,this},l.prototype.validatePath=function(){for(var t=Object.keys(this._path).map((function(t){return parseInt(t,10)})).filter((function(t){return!isNaN(t)})),e=Math.max.apply(null,t),n=[],r=!0,o=0;o<=e;o++)this._levels&&this._levels[o]&&(this._path[o]?(d(this._levels[o],this._path[o]),n.push(this._path[o])):(n.push(" ??? "),r=!1));if(!r)throw new Error("Incomplete URL! Missing component: /"+n.join("/"));return this},l.prototype.param=function(t,e){return!t||"string"===typeof t&&void 0===e||("string"===typeof t&&(t=c(t,e)),Object.keys(t).forEach(function(e){var n=t[e];Array.isArray(n)&&(n=o(n).sort(a)),this._params[e]=n}.bind(this))),this},l.prototype.context=u("context"),l.prototype.edit=function(){return this.context("edit")},l.prototype.embed=function(){return this.param("_embed",!0)},l.prototype.page=u("page"),l.prototype.perPage=u("per_page"),l.prototype.offset=u("offset"),l.prototype.order=u("order"),l.prototype.orderby=u("orderby"),l.prototype.search=u("search"),l.prototype.include=u("include"),l.prototype.exclude=u("exclude"),l.prototype.slug=u("slug"),l.prototype.namespace=function(t){return this._namespace=t,this},l.prototype.auth=function(t){return"object"===typeof t&&("string"===typeof t.username&&(this._options.username=t.username),"string"===typeof t.password&&(this._options.password=t.password),t.nonce&&(this._options.nonce=t.nonce)),this._options.auth=!0,this},l.prototype.file=function(t,e){return this._attachment=t,this._attachmentName=e||void 0,this},l.prototype.setHeaders=function(t,e){return"string"===typeof t&&(t=c(t,e)),this._options.headers=Object.assign({},this._options.headers||{},t),this},l.prototype.get=function(t){return this.transport.get(this,t)},l.prototype.headers=function(t){return this.transport.head(this,t)},l.prototype.create=function(t,e){return this.transport.post(this,t,e)},l.prototype.update=function(t,e){return this.transport.put(this,t,e)},l.prototype.delete=function(t,e){return this.transport.delete(this,t,e)},l.prototype.then=function(t,e){return this.transport.get(this).then(t,e)},t.exports=l},JTpX:function(t,e,n){"use strict";var r=n("9fIP"),o=n("MMYH"),i=n("K/z8"),a=n("sRHE"),c=n("8K1b"),u=n("ERkP"),s=n.n(u),l=n("voCV"),f=n("NAJH"),p=s.a.createElement;function d(t,e,n){return e=Object(a.a)(e),Object(i.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(a.a)(t).constructor):e.apply(t,n))}var h=function(t){function e(){return Object(r.a)(this,e),d(this,e,arguments)}return Object(c.a)(e,t),Object(o.a)(e,[{key:"componentDidMount",value:function(){this.script=document.createElement("script"),this.script.src="https://widget.qual.musement.com/bootstrap.js",this.script.async="async",this.script.id="m_widget_script",this.script.type="text/javascript",document.querySelector("body").appendChild(this.script)}},{key:"componentWillUnmount",value:function(){this.script.remove()}},{key:"render",value:function(){var t=this.props.widgetId;return p("div",null,p("div",{className:"MusementWidget","data-musement-widget":t}))}}])}(u.PureComponent);e.a=Object(l.a)(Object(f.a)(),Object(f.b)(),f.c,f.e,Object(f.d)([{prop:"widgetId",label:"ID widget"}]))(h)},JXgi:function(t,e,n){"use strict";e.a=function(t){if(!t)return null;var e=t.url_news;return{title:t.titolo,supertitle:"News",tag:"".concat(t.categoria&&t.categoria.descrizione||""),subtitle:t.dt_news,thumbnail:{url:t.image_featured||"//fai-website.imgix.net/static/placeholder_2.png"},link:"/news/".concat(e),content:t.abstract&&"".concat(t.abstract.slice(0,140),"...")}}},LPWu:function(t,e,n){"use strict";t.exports=function(t,e,n){t&&void 0===t[e]&&(t[e]=n)}},M3g4:function(t,e,n){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var n=e.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(t[r]=o),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},MGb8:function(t,e,n){"use strict";var r,o=n("f8sa"),i=n("W89y"),a=n("lmq3"),c=n("Zqdi").build,u=n("kAk6").generate,s=n("C+Tx"),l=n("JN2i"),f=n("dcew");function p(t){if(this instanceof p===!1)return new p(t);if("string"!==typeof t.endpoint)throw new Error("options hash must contain an API endpoint URL string");return this._ns={},this._options={endpoint:t.endpoint.replace(/\/?$/,"/")},t&&(t.username||t.password||t.nonce)&&this.auth(t),this.transport(t.transport).bootstrap(t&&t.routes)}p.prototype.transport=function(t){var e=this._options;return e.transport||(e.transport=Object.create(p.transport)),["get","head","post","put","delete"].forEach((function(n){t&&t[n]&&(e.transport[n]=t[n])})),this},p.transport=Object.create(f),Object.freeze(p.transport),p.site=function(t,e){return new p({endpoint:t,routes:e})},p.prototype.url=function(t){var e=o({},this._options,{endpoint:t});return new l(e)},p.prototype.root=function(t){t=t||"";var e=o({},this._options),n=new l(e);return n._path={0:t},n},p.prototype.setHeaders=l.prototype.setHeaders,p.prototype.auth=l.prototype.auth,p.prototype.registerRoute=n("umxl"),p.prototype.bootstrap=function(t){var e,n;return t?(e=c(t),n=u(e)):(r||(e=c(a),r=u(e)),n=r),i(n,(function(t,e,n){return t._ns[n]=i(e,(function(t,e,n){return t[n]=e,t}),t._ns[n]||{_options:t._options}
1),"wp/v2"===n&&Object.keys(t._ns[n]).forEach((function(e){t[e]=t._ns[n][e]})),t}),this)},p.prototype.namespace=function(t){if(!this._ns[t])throw new Error("Error: namespace "+t+" is not recognized");return this._ns[t]},p.discover=function(t){var e,n=p.site(t).root();return n.headers().catch((function(){return n.get()})).then(s.locateAPIRootHeader).then((function(t){return e=t,p.site(t).root().get()})).then((function(t){return new p({endpoint:e,routes:t.routes})})).catch((function(t){if(console.error(t),e)return console.warn("Endpoint detected, proceeding despite error..."),console.warn("Binding to "+e+" and assuming default routes"),new p.site(e);throw new Error("Autodiscovery failed")}))},t.exports=p},NbfL:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),u=n("8K1b"),s=n("ERkP"),l=n.n(s),f=n("voCV"),p=n("NAJH"),d=n("QtE3"),h=n("r4FT"),b=n("0D0S"),y=n.n(b)()().publicRuntimeConfig.WP_API,m=function(t){return h.a.get("".concat(y,"mrr/v1/menus/").concat(t)).then((function(t){return t.data})).catch((function(){return[]}))},g=n("aWzz"),v=n.n(g);function O(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var j=function(t){function e(){return Object(o.a)(this,e),O(this,e,arguments)}return Object(u.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){return this.props.children(this.context.slug)}}])}(l.a.Component);j.contextTypes={slug:v.a.string};var _=j,w=l.a.createElement;function E(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}e.a=Object(f.a)(Object(p.d)([{prop:"data",type:"api",resource:"menus",exact:1,label:"Seleziona menu"}]),(function(t){var e=function(e){function n(){var t;return Object(o.a)(this,n),(t=E(this,n)).state={tabs:[]},t.child=l.a.createRef(),t}return Object(u.a)(n,e),Object(i.a)(n,[{key:"componentDidMount",value:function(){this.props.data&&this.getData(this.props.data)}},{key:"componentWillReceiveProps",value:function(t){t.data&&this.getData(t.data)}},{key:"getData",value:function(t){var e=this;m(t[0]).then((function(t){e.setState({tabs:t.map((function(t){return{id:t.id,href:t.permalink,label:t.text}}))},(function(){return"function"===typeof e.child.current.maybeCenter&&e.child.current.maybeCenter()}))}))}},{key:"render",value:function(){return w(t,Object(r.a)({},this.props,{tabs:this.state.tabs,innerRef:this.child}))}}])}(s.Component);return e.displayName=Object(f.i)(t,"WithMenu"),e}))((function(t){var e=t.tabs,n=t.innerRef;return w(_,null,(function(t){var r=e.find((function(e){return e.href===t})),o=r&&r.id;return w(d.TabsNavigation,{tabs:e,selectedId:o,isMenu:!0,ref:n})}))}))},P3Rk:function(t,e,n){"use strict";t.exports=function(t,e,n){"function"!==typeof n||t[e]||(t[e]=n)}},Q2tY:function(t,e,n){"use strict";var r=n("M3g4");function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.get=function(t){return this.header[t.toLowerCase()]},o.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var o in n)this[o]=n[o];this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(i){}},o.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.created=201==t,this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t,this.unprocessableEntity=422==t}},QTtx:function(t,e,n){"use strict";var r=n("0KcG").pattern.replace(/([^\\])\(([^?])/g,"$1(?:$2"),o=new RegExp("([^/]*"+r+"[^/]*
1)");t.exports=function(t){return t.split(o).reduce((function(t,e){return e?o.test(e)?t.concat(e):t.concat(e.split("/").filter(Boolean)):t}),[])}},"SYP+":function(t,e,n){"use strict";var r=n("V/Lb"),o=n("cYYr"),i={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},s=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},f=function t(e,n,o,i,c,s,f,p,d,h,b,y){var m=e;if("function"===typeof f?m=f(n,m):m instanceof Date&&(m=h(m)),null===m){if(i)return s&&!y?s(n,l.encoder):n;m=""}if("string"===typeof m||"number"===typeof m||"boolean"===typeof m||r.isBuffer(m))return s?[b(y?n:s(n,l.encoder))+"="+b(s(m,l.encoder))]:[b(n)+"="+b(String(m))];var g,v=[];if("undefined"===typeof m)return v;if(a(f))g=f;else{var O=Object.keys(m);g=p?O.sort(p):O}for(var j=0;j<g.length;++j){var _=g[j];c&&null===m[_]||(a(m)?u(v,t(m[_],o(n,_),o,i,c,s,f,p,d,h,b,y)):u(v,t(m[_],n+(d?"."+_:"["+_+"]"),o,i,c,s,f,p,d,h,b,y)))}return v};t.exports=function(t,e){var n=t,c=e?r.assign({},e):{};if(null!==c.encoder&&"undefined"!==typeof c.encoder&&"function"!==typeof c.encoder)throw new TypeError("Encoder has to be a function.");var s="undefined"===typeof c.delimiter?l.delimiter:c.delimiter,p="boolean"===typeof c.strictNullHandling?c.strictNullHandling:l.strictNullHandling,d="boolean"===typeof c.skipNulls?c.skipNulls:l.skipNulls,h="boolean"===typeof c.encode?c.encode:l.encode,b="function"===typeof c.encoder?c.encoder:l.encoder,y="function"===typeof c.sort?c.sort:null,m="undefined"!==typeof c.allowDots&&c.allowDots,g="function"===typeof c.serializeDate?c.serializeDate:l.serializeDate,v="boolean"===typeof c.encodeValuesOnly?c.encodeValuesOnly:l.encodeValuesOnly;if("undefined"===typeof c.format)c.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,c.format))throw new TypeError("Unknown format option provided.");var O,j,_=o.formatters[c.format];"function"===typeof c.filter?n=(j=c.filter)("",n):a(c.filter)&&(O=j=c.filter);var w,E=[];if("object"!==typeof n||null===n)return"";w=c.arrayFormat in i?c.arrayFormat:"indices"in c?c.indices?"indices":"repeat":"indices";var T=i[w];O||(O=Object.keys(n)),y&&O.sort(y);for(var C=0;C<O.length;++C){var P=O[C];d&&null===n[P]||u(E,f(n[P],P,T,p,d,h?b:null,j,y,m,g,_,v))}var k=E.join(s),S=!0===c.addQueryPrefix?"?":"";return k.length>0?S+k:""}},"V/Lb":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var u=a[c],s=i[u];"object"===typeof s&&null!==s&&-1===n.indexOf(s)&&(e.push({obj:i,prop:u}),n.push(s))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var r=[],o=0;o<e.length;++o)"undefined"!==typeof e[o]&&r.push(e[o]);n.obj[n.prop]=r}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"===typeof t?t:String(t),n="",r=0;r<e.length;++r){var i=e.charCodeAt(r);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=e.charAt(r):i<128?n+=o[i]:i<2048?n+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?n+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(r+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(r)),n+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return n},isBuffer:function(t){return null!==t&&"undefined"!==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!==typeof n){if(Array.isArray(e))e.push(n);else{if(!e||"object"!==typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!==typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=i(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach((function(n,i){if
1(r.call(e,i)){var a=e[i];a&&"object"===typeof a&&n&&"object"===typeof n?e[i]=t(a,n,o):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return r.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},W89y:function(t,e,n){"use strict";t.exports=function(t,e,n){return Object.keys(t).reduce((function(n,r){return e(n,t[r],r)}),n)}},WTvm:function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Map]",c="[object Object]",u="[object Set]",s="[object DataView]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[r]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m[a]=m["[object Number]"]=m[c]=m["[object RegExp]"]=m[u]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,O=g||v||Function("return this")(),j=e&&!e.nodeType&&e,_=j&&"object"==typeof n&&n&&!n.nodeType&&n,w=_&&_.exports===j&&g.process,E=function(){try{return w&&w.binding("util")}catch(t){}}(),T=E&&E.isTypedArray;function C(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function P(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function k(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function S(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function x(t){return function(e){return t(e)}}function A(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function I(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function L(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var D,F,R=Array.prototype,N=Function.prototype,G=Object.prototype,M=O["__core-js_shared__"],z=function(){var t=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),B=N.toString,H=G.hasOwnProperty,U=G.toString,W=RegExp("^"+B.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=O.Symbol,V=O.Uint8Array,K=G.propertyIsEnumerable,J=R.splice,Y=q?q.isConcatSpreadable:void 0,$=(D=Object.keys,F=Object,function(t){return D(F(t))}),X=Math.max,Q=Dt(O,"DataView"),Z=Dt(O,"Map"),tt=Dt(O,"Promise"),et=Dt(O,"Set"),nt=Dt(O,"WeakMap"),rt=Dt(Object,"create"),ot=Wt(Q),it=Wt(Z),at=Wt(tt),ct=Wt(et),ut=Wt(nt),st=q?q.prototype:void 0,lt=st?st.valueOf:void 0,ft=st?st.toString:void 0;function pt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ht(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function bt(t){var e=-1,n=t?t.length:0;for(this.__data__=new ht;++e<n;)this.add(t[e])}function yt(t){this.__data__=new dt(t)}function mt(t,e){var n=Yt(t)||Jt(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!H.call(t,i)||o&&("length"==i||Nt(i,r))||n.push(i);return n}function gt(t,e){for(var n=t.length;n--;)if(Kt(t[n][0],e))return n;return-1}pt.prototype.clear=function(){this.__data__=rt?rt(null):{}},pt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},pt.prototype.get=function(t){var e=this.__data__;if(rt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return H.call(e,t)?e[t]:void 0},pt.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:H.call(e,t)},pt.prototype.set=function(t,e){return this.__data__[t]=rt&&void 0===e?"__lodash_hash_undefined__":e,this},dt.prototype.clear=function(){this.__data__=[]},dt.prototype.delete=function(t){var e=this.__data__,n=gt(e,t);return!(n<0)&&(n==e.length-1?e.pop():J.call(e,n,1),!0)},dt.prototype.get=function(t){var e=this.__data__,n=gt(e,t);return n<0?void 0:e[n][1]},dt.prototype.has=function(t){return gt(this.__data__,t)>-1}
1,dt.prototype.set=function(t,e){var n=this.__data__,r=gt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},ht.prototype.clear=function(){this.__data__={hash:new pt,map:new(Z||dt),string:new pt}},ht.prototype.delete=function(t){return Lt(this,t).delete(t)},ht.prototype.get=function(t){return Lt(this,t).get(t)},ht.prototype.has=function(t){return Lt(this,t).has(t)},ht.prototype.set=function(t,e){return Lt(this,t).set(t,e),this},bt.prototype.add=bt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},bt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.clear=function(){this.__data__=new dt},yt.prototype.delete=function(t){return this.__data__.delete(t)},yt.prototype.get=function(t){return this.__data__.get(t)},yt.prototype.has=function(t){return this.__data__.has(t)},yt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof dt){var r=n.__data__;if(!Z||r.length<199)return r.push([t,e]),this;n=this.__data__=new ht(r)}return n.set(t,e),this};var vt,Ot,jt=(vt=function(t,e){return t&&_t(t,e,re)},function(t,e){if(null==t)return t;if(!$t(t))return vt(t,e);for(var n=t.length,r=Ot?n:-1,o=Object(t);(Ot?r--:++r<n)&&!1!==e(o[r],r,o););return t});var _t=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}();function wt(t,e){for(var n=0,r=(e=Mt(e,t)?[e]:xt(e)).length;null!=t&&n<r;)t=t[Ut(e[n++])];return n&&n==r?t:void 0}function Et(t,e){return null!=t&&e in Object(t)}function Tt(t,e,n,l,f){return t===e||(null==t||null==e||!Zt(t)&&!te(e)?t!==t&&e!==e:function(t,e,n,l,f,p){var d=Yt(t),h=Yt(e),b=o,y=o;d||(b=(b=Ft(t))==r?c:b);h||(y=(y=Ft(e))==r?c:y);var m=b==c&&!A(t),g=y==c&&!A(e),v=b==y;if(v&&!m)return p||(p=new yt),d||ne(t)?It(t,e,n,l,f,p):function(t,e,n,r,o,c,l){switch(n){case s:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new V(t),new V(e)));case i:case"[object Date]":case"[object Number]":return Kt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case a:var f=I;case u:var p=2&c;if(f||(f=L),t.size!=e.size&&!p)return!1;var d=l.get(t);if(d)return d==e;c|=1,l.set(t,e);var h=It(f(t),f(e),r,o,c,l);return l.delete(t),h;case"[object Symbol]":if(lt)return lt.call(t)==lt.call(e)}return!1}(t,e,b,n,l,f,p);if(!(2&f)){var O=m&&H.call(t,"__wrapped__"),j=g&&H.call(e,"__wrapped__");
1if(O||j){var _=O?t.value():t,w=j?e.value():e;return p||(p=new yt),n(_,w,l,f,p)}}if(!v)return!1;return p||(p=new yt),function(t,e,n,r,o,i){var a=2&o,c=re(t),u=c.length,s=re(e).length;if(u!=s&&!a)return!1;var l=u;for(;l--;){var f=c[l];if(!(a?f in e:H.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var d=!0;i.set(t,e),i.set(e,t);var h=a;for(;++l<u;){var b=t[f=c[l]],y=e[f];if(r)var m=a?r(y,b,f,e,t,i):r(b,y,f,t,e,i);if(!(void 0===m?b===y||n(b,y,r,o,i):m)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var g=t.constructor,v=e.constructor;g==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,n,l,f,p)}(t,e,Tt,n,l,f))}function Ct(t){return!(!Zt(t)||function(t){return!!z&&z in t}(t))&&(Xt(t)||A(t)?W:b).test(Wt(t))}function Pt(t){return"function"==typeof t?t:null==t?oe:"object"==typeof t?Yt(t)?function(t,e){if(Mt(t)&&zt(e))return Bt(Ut(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:wt(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=Mt(e,t)?[e]:xt(e);var r,o=-1,i=e.length;for(;++o<i;){var a=Ut(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;return!!(i=t?t.length:0)&&Qt(i)&&Nt(a,i)&&(Yt(t)||Jt(t))}(t,e,Et)}(n,t):Tt(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=re(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,zt(o)]}return e}(t);if(1==e.length&&e[0][2])return Bt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=n[o])[0],s=t[u],l=c[1];if(a&&c[2]){if(void 0===s&&!(u in t))return!1}else{var f=new yt;if(r)var p=r(s,l,u,t,e,f);if(!(void 0===p?Tt(l,s,r,3,f):p))return!1}}return!0}(n,t,e)}}(t):function(t){return Mt(t)?(e=Ut(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return wt(e,t)}}(t);var e}(t)}function kt(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||G;return t===n}(t))return $(t);var e=[];for(var n in Object(t))H.call(t,n)&&"constructor"!=n&&e.push(n);return e}function St(t,e,n){var r=-1;return e=P(e.length?e:[oe],x(Pt)),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(function(t,e){var n=-1,r=$t(t)?Array(t.length):[];return jt(t,(function(t,o,i){r[++n]=e(t,o,i)})),r}(t,(function(t,n,o){return{criteria:P(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,o=t.criteria,i=e.criteria,a=o.length,c=n.length;for(;++r<a;){var u=At(o[r],i[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function xt(t){return Yt(t)?t:Ht(t)}function At(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t===t,i=ee(t),a=void 0!==e,c=null===e,u=e===e,s=ee(e);
1if(!c&&!s&&!i&&t>e||i&&a&&u&&!c&&!s||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!s&&t<e||s&&n&&o&&!r&&!i||c&&n&&o||!a&&o||!u)return-1}return 0}function It(t,e,n,r,o,i){var a=2&o,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var l=-1,f=!0,p=1&o?new bt:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var d=t[l],h=e[l];if(r)var b=a?r(h,d,l,e,t,i):r(d,h,l,t,e,i);if(void 0!==b){if(b)continue;f=!1;break}if(p){if(!S(e,(function(t,e){if(!p.has(e)&&(d===t||n(d,t,r,o,i)))return p.add(e)}))){f=!1;break}}else if(d!==h&&!n(d,h,r,o,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Lt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Dt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Ct(n)?n:void 0}var Ft=function(t){return U.call(t)};function Rt(t){return Yt(t)||Jt(t)||!!(Y&&t&&t[Y])}function Nt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function Gt(t,e,n){if(!Zt(n))return!1;var r=typeof e;return!!("number"==r?$t(n)&&Nt(e,n.length):"string"==r&&e in n)&&Kt(n[e],t)}function Mt(t,e){if(Yt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ee(t))||(f.test(t)||!l.test(t)||null!=e&&t in Object(e))}function zt(t){return t===t&&!Zt(t)}function Bt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(Q&&Ft(new Q(new ArrayBuffer(1)))!=s||Z&&Ft(new Z)!=a||tt&&"[object Promise]"!=Ft(tt.resolve())||et&&Ft(new et)!=u||nt&&"[object WeakMap]"!=Ft(new nt))&&(Ft=function(t){var e=U.call(t),n=e==c?t.constructor:void 0,r=n?Wt(n):void 0;if(r)switch(r){case ot:return s;case it:return a;case at:return"[object Promise]";case ct:return u;case ut:return"[object WeakMap]"}return e});var Ht=Vt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ee(t))return ft?ft.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return p.test(t)&&n.push(""),t.replace(d,(function(t,e,r,o){n.push(r?o.replace(h,"$1"):e||t)})),n}));function Ut(t){if("string"==typeof t||ee(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Wt(t){if(null!=t){try{return B.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var qt=function(t,e){return e=X(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=X(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,C(t,this,a)}}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Gt(t,e[0],e[1])?e=[]:n>2&&Gt(e[0],e[1],e[2])&&(e=[e[0]]),St(t,function t(e,n,r,o,i){var a=-1,c=e.length;for(r||(r=Rt),i||(i=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,o,i):k(i,u):o||(i[i.length]=u)}return i}(e,1),[])}));function Vt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
vendor: 9,847 bytes, line 1
1var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(Vt.Cache||ht),n}function Kt(t,e){return t===e||t!==t&&e!==e}function Jt(t){return function(t){return te(t)&&$t(t)}(t)&&H.call(t,"callee")&&(!K.call(t,"callee")||U.call(t)==r)}Vt.Cache=ht;var Yt=Array.isArray;function $t(t){return null!=t&&Qt(t.length)&&!Xt(t)}function Xt(t){var e=Zt(t)?U.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Qt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Zt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function te(t){return!!t&&"object"==typeof t}function ee(t){return"symbol"==typeof t||te(t)&&"[object Symbol]"==U.call(t)}var ne=T?x(T):function(t){return te(t)&&Qt(t.length)&&!!m[U.call(t)]};function re(t){return $t(t)?mt(t):kt(t)}function oe(t){return t}n.exports=qt}).call(this,n("lpmq"),n("EIeC")(t))},X0EA:function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Map]",c="[object Object]",u="[object Set]",s="[object DataView]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/,p=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[r]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m[a]=m["[object Number]"]=m[c]=m["[object RegExp]"]=m[u]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,O=g||v||Function("return this")(),j=e&&!e.nodeType&&e,_=j&&"object"==typeof n&&n&&!n.nodeType&&n,w=_&&_.exports===j&&g.process,E=function(){try{return w&&w.binding("util")}catch(t){}}(),T=E&&E.isTypedArray;function C(t,e,n,r){for(var o=-1,i=t?t.length:0;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}function P(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function k(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function x(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var A,I,L=Array.prototype,D=Function.prototype,F=Object.prototype,R=O["__core-js_shared__"],N=function(){var t=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),G=D.toString,M=F.hasOwnProperty,z=F.toString,B=RegExp("^"+G.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=O.Symbol,U=O.Uint8Array,W=F.propertyIsEnumerable,q=L.splice,V=(A=Object.keys,I=Object,function(t){return A(I(t))}),K=kt(O,"DataView"),J=kt(O,"Map"),Y=kt(O,"Promise"),$=kt(O,"Set"),X=kt(O,"WeakMap"),Q=kt(Object,"create"),Z=Rt(K),tt=Rt(J),et=Rt(Y),nt=Rt($),rt=Rt(X),ot=H?H.prototype:void 0,it=ot?ot.valueOf:void 0,at=ot?ot.toString:void 0;function ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ut(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function lt(t){var e=-1,n=t?t.length:0;for(this.__data__=new st;++e<n;)this.add(t[e])}function ft(t){this.__data__=new ut(t)}function pt(t,e){var n=Ut(t)||Ht(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!e&&!M.call(t,i)||o&&("length"==i||xt(i,r))||n.push(i);return n}function dt(t,e){for(var n=t.length;n--;)if(Bt(t[n][0],e))return n;return-1}function ht(t,e,n,r){return mt(t,(function(t,o,i){e(r,t,n(t),i)})),r}ct.prototype.clear=function(){this.__data__=Q?Q(null):{}},ct.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ct.prototype.get=function(t){var e=this.__data__;if(Q){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return M.call(e,t)?e[t]:void 0},ct.prototype.has=function(t){var e=this.__data__;return Q?void 0!==e[t]:M.call(e,t)},ct.prototype.set=function(t,e){return this.__data__[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this},ut.prototype.clear=function(){this.__data__=[]},ut.prototype.delete=function(t){var e=this.__data__,n=dt(e,t);return!(n<0)&&(n==e.length-1?e.pop():q.call(e,n,1),!0)},ut.prototype.get=function(t){var e=this.__data__,n=dt(e,t);return n<0?void 0:e[n][1]},ut.prototype.has=function(t){return dt(this.__data__,t)>-1},ut.prototype.set=function(t,e){var n=this.__data__,r=dt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},st.prototype.clear=function(){this.__data__={hash:new ct,map:new(J||ut),string:new ct}},st.prototype.delete=function(t){return Pt(this,t).delete(t)},st.prototype.get=function(t){return Pt(this,t).get(t)},st.prototype.has=function(t){return Pt(this,t).has(t)},st.prototype.set=function(t,e){return Pt(this,t).set(t,e),this},lt.prototype.add=lt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},lt.prototype.has=function(t){return this.__data__.has(t)},ft.prototype.clear=function(){this.__data__=new ut},ft.prototype.delete=function(t){return this.__data__.delete(t)},ft.prototype.get=function(t){return this.__data__.get(t)},ft.prototype.has=function(t){return this.__data__.has(t)},ft.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!J||r.length<199)return r.push([t,e]),this;n=this.__data__=new st(r)}return n.set(t,e),this};var bt,yt,mt=(bt=function(t,e){return t&&gt(t,e,Xt)},function(t,e){if(null==t)return t;if(!Wt(t))return bt(t,e);for(var n=t.length,r=yt?n:-1,o=Object(t);(yt?r--:++r<n)&&!1!==e(o[r],r,o););return t}),gt=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===n(i[u],u,i))break}return e}}();function vt(t,e){for(var n=0,r=(e=At(e,t)?[e]:Tt(e)).length;null!=t&&n<r;)t=t[Ft(e[n++])];return n&&n==r?t:void 0}function Ot(t,e){return null!=t&&e in Object(t)}function jt(t,e,n,l,f){return t===e||(null==t||null==e||!Kt(t)&&!Jt(e)?t!==t&&e!==e:function(t,e,n,l,f,p){var d=Ut(t),h=Ut(e),b=o,y=o;d||(b=(b=St(t))==r?c:b);h||(y=(y=St(e))==r?c:y);var m=b==c&&!k(t),g=y==c&&!k(e),v=b==y;if(v&&!m)return p||(p=new ft),d||$t(t)?Ct(t,e,n,l,f,p):function(t,e,n,r,o,c,l){switch(n){case s:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new U(t),new U(e)));case i:case"[object Date]":case"[object Number]":return Bt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case a:var f=S;case u:var p=2&c;if(f||(f=x),t.size!=e.size&&!p)return!1;var d=l.get(t);if(d)return d==e;c|=1,l.set(t,e);var h=Ct(f(t),f(e),r,o,c,l);return l.delete(t),h;case"[object Symbol]":if(it)return it.call(t)==it.call(e)}return!1}(t,e,b,n,l,f,p);if(!(2&f)){var O=m&&M.call(t,"__wrapped__"),j=g&&M.call(e,"__wrapped__");if(O||j){var _=O?t.value():t,w=j?e.value():e;return p||(p=new ft),n(_,w,l,f,p)}}if(!v)return!1;return p||(p=new ft),function(t,e,n,r,o,i){var a=2&o,c=Xt(t),u=c.length,s=Xt(e).length;if(u!=s&&!a)return!1;var l=u;for(;l--;){var f=c[l];if(!(a?f in e:M.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var d=!0;i.set(t,e),i.set(e,t);var h=a;for(;++l<u;){var b=t[f=c[l]],y=e[f];if(r)var m=a?r(y,b,f,e,t,i):r(b,y,f,t,e,i);if(!(void 0===m?b===y||n(b,y,r,o,i):m)){d=!1;break}h||(h="constructor"==f)}if(d&&!h){var g=t.constructor,v=e.constructor;g==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,n,l,f,p)}(t,e,jt,n,l,f))}function _t(t){return!(!Kt(t)||function(t){return!!N&&N in t}(t))&&(qt(t)||k(t)?B:b).test(Rt(t))}function wt(t){return"function"==typeof t?t:null==t?Qt:"object"==typeof t?Ut(t)?function(t,e){if(At(t)&&It(e))return Lt(Ft(t),e);return function(n){var r=function(t,e,n){var r=null==t?void 0:vt(t,e);return void 0===r?n:r}(n,t);return void 0===r&&r===e?function(t,e){return null!=t&&function(t,e,n){e=At(e,t)?[e]:Tt(e);var r,o=-1,i=e.length;for(;++o<i;){var a=Ft(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;return!!(i=t?t.length:0)&&Vt(i)&&xt(a,i)&&(Ut(t)||Ht(t))}(t,e,Ot)}(n,t):jt(e,r,void 0,3)}}(t[0],t[1]):function(t){var e=function(t){var e=Xt(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,It(o)]}return e}(t);if(1==e.length&&e[0][2])return Lt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,i=o,a=!r;if(null==t)return!i;for(t=Object(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=n[o])[0],s=t[u],l=c[1];if(a&&c[2]){if(void 0===s&&!(u in t))return!1}else{var f=new ft;if(r)var p=r(s,l,u,t,e,f);if(!(void 0===p?jt(l,s,r,3,f):p))return!1}}return!0}(n,t,e)}}(t):function(t){return At(t)?(e=Ft(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return vt(e,t)}}(t);var e}(t)}function Et(t){if(!function(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||F;return t===n}(t))return V(t);var e=[];for(var n in Object(t))M.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Tt(t){return Ut(t)?t:Dt(t)}function Ct(t,e,n,r,o,i){var a=2&o,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var s=i.get(t);if(s&&i.get(e))return s==e;var l=-1,f=!0,p=1&o?new lt:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var d=t[l],h=e[l];
1if(r)var b=a?r(h,d,l,e,t,i):r(d,h,l,t,e,i);if(void 0!==b){if(b)continue;f=!1;break}if(p){if(!P(e,(function(t,e){if(!p.has(e)&&(d===t||n(d,t,r,o,i)))return p.add(e)}))){f=!1;break}}else if(d!==h&&!n(d,h,r,o,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Pt(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function kt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return _t(n)?n:void 0}var St=function(t){return z.call(t)};function xt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function At(t,e){if(Ut(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Yt(t))||(f.test(t)||!l.test(t)||null!=e&&t in Object(e))}function It(t){return t===t&&!Kt(t)}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(K&&St(new K(new ArrayBuffer(1)))!=s||J&&St(new J)!=a||Y&&"[object Promise]"!=St(Y.resolve())||$&&St(new $)!=u||X&&"[object WeakMap]"!=St(new X))&&(St=function(t){var e=z.call(t),n=e==c?t.constructor:void 0,r=n?Rt(n):void 0;if(r)switch(r){case Z:return s;case tt:return a;case et:return"[object Promise]";case nt:return u;case rt:return"[object WeakMap]"}return e});var Dt=zt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(Yt(t))return at?at.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return p.test(t)&&n.push(""),t.replace(d,(function(t,e,r,o){n.push(r?o.replace(h,"$1"):e||t)})),n}));function Ft(t){if("string"==typeof t||Yt(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function Rt(t){if(null!=t){try{return G.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Nt,Gt,Mt=(Nt=function(t,e,n){M.call(t,n)?++t[n]:t[n]=1},function(t,e){var n=Ut(t)?C:ht,r=Gt?Gt():{};return n(t,Nt,wt(e),r)});function zt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);
vendor: 4,524 bytes, line 1
1var a=t.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(zt.Cache||st),n}function Bt(t,e){return t===e||t!==t&&e!==e}function Ht(t){return function(t){return Jt(t)&&Wt(t)}(t)&&M.call(t,"callee")&&(!W.call(t,"callee")||z.call(t)==r)}zt.Cache=st;var Ut=Array.isArray;function Wt(t){return null!=t&&Vt(t.length)&&!qt(t)}function qt(t){var e=Kt(t)?z.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function Vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Kt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Jt(t){return!!t&&"object"==typeof t}function Yt(t){return"symbol"==typeof t||Jt(t)&&"[object Symbol]"==z.call(t)}var $t=T?function(t){return function(e){return t(e)}}(T):function(t){return Jt(t)&&Vt(t.length)&&!!m[z.call(t)]};function Xt(t){return Wt(t)?pt(t):Et(t)}function Qt(t){return t}n.exports=Mt}).call(this,n("lpmq"),n("EIeC")(t))},XLvf:function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n<i;u=r[++n])b(u)||!O(u)?a+=" "+u:a+=" "+c(u);return a},e.deprecate=function(n,r){if("undefined"!==typeof t&&!0===t.noDeprecation)return n;if("undefined"===typeof t)return function(){return e.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(r);t.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var i,a={};function c(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=c.styles[e];return n?"\x1b["+c.colors[n][0]+"m"+t+"\x1b["+c.colors[n][1]+"m":t}function s(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&w(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return m(o)||(o=l(t,o,r)),o}var i=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(y(e))return t.stylize(""+e,"number");if(h(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,n);if(i)return i;var a=Object.keys(n),c=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(w(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(v(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(j(n))return t.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var s,O="",E=!1,T=["{","}"];(d(n)&&(E=!0,T=["[","]"]),w(n))&&(O=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(O=" "+RegExp.prototype.toString.call(n)),j(n)&&(O=" "+Date.prototype.toUTCString.call(n)),_(n)&&(O=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?v(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),s=E?function(t,e,n,r,o){for(var i=[],a=0,c=e.length;a<c;++a)k(e,String(a))?i.push(p(t,e,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(t,e,n,r,o,!0))})),i}(t,n,r,c,a):a.map((function(e){return p(t,n,r,c,e,E)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(s,O,T)):T[0]+O+T[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,o,i){var a,c,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?c=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(c=t.stylize("[
1Setter]","special")),k(r,o)||(a="["+o+"]"),c||(t.seen.indexOf(u.value)<0?(c=b(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(t){return"  "+t})).join("\n").substr(2):"\n"+c.split("\n").map((function(t){return"   "+t})).join("\n")):c=t.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+c}function d(t){return Array.isArray(t)}function h(t){return"boolean"===typeof t}function b(t){return null===t}function y(t){return"number"===typeof t}function m(t){return"string"===typeof t}function g(t){return void 0===t}function v(t){return O(t)&&"[object RegExp]"===E(t)}function O(t){return"object"===typeof t&&null!==t}function j(t){return O(t)&&"[object Date]"===E(t)}function _(t){return O(t)&&("[object Error]"===E(t)||t instanceof Error)}function w(t){return"function"===typeof t}function E(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(g(i)&&(i=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=h,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=y,e.isString=m,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=g,e.isRegExp=v,e.isObject=O,e.isDate=j,e.isError=_,e.isFunction=w,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n("72zh");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),C[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n("cwbO"),e._extend=function(t,e){if(!e||!O(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var S="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(S&&t[S]){var e;if("function"!==typeof(e=t[S]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,S,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,o)}catch(a){n(a)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),S&&Object.defineProperty(e,S,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=S,e.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!==typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,n).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(x,e,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this,n("F63i"))},YY8h:function(t,e,n){"use strict";var r=n("cxan"),o=n("9fIP"),i=n("MMYH"),a=n("K/z8"),c=n("sRHE"),u=n("8K1b"),s=n("ERkP"),l=n.n(s),f=n("QtE3"),p=n("Ehz4"),d=n("bAhH"),h=l.a.createElement;function b(t,e,n){return e=Object(c.a)(e),Object(a.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],Object(c.a)(t).constructor):e.apply(t,n))}var y=function(t){function e(){return Object(o.a)(this,e),b(this,e,arguments)}return Object(u.a)(e,t),Object(i.a)(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.id,o=e.title,i=e.id_comitato,a=e.slug,c=e.handleCardClick,u=e.fixedStatus,s=e.anchor,l=e.luogoSalvato,b=e.votesDisabled;return h(p.a,{id:n,title:o,id_comitato:i,slug:a},(function(e){var o=e.status,i=e.tokenId,p=u||o,y=b?null:function(){return h(d.a,Object(r.a)({},t.props,e))},m=l?"/luoghi/".concat(a,"?luogoSalvato").concat(s||""):"/luoghi/".concat(a,"?ldc").concat(s||"");return h(f.VoteCard,Object(r.a)({},t.props,{link:m,onClick:"function"===typeof c?function(){return c({slug:a,id:n,url:m})}:null,status:p,tokenId:i,renderButton:y,luogoSalvato:l}))}))}}])}(l.a.Component);e.a=y},Zqdi:function(t,e,n){"use strict";var r=n("0KcG").namedGroupRE,o=n("QTtx"),i=n("LPWu"),a=n("W89y");function c(t,e,n,o,i,a){var c=o.match(r),u=c&&c[1],s=c&&c[2],l=c?s||u:o,f=c?u:o,p=n[l]||{component:o,namedGroup:!!c,level:i,names:[]};p.names.indexOf(f)<0&&p.names.push(f);var d=""===s?/.*/:new RegExp(s?"^"+s+"$":o,"i");return p.validate=function(t){return d.test(t)},a[i+1]?p.children=p.children||{}:(p.methods=(t.methods||[]).map((function(t){return t.toLowerCase()})),p.methods.indexOf("get")>-1&&-1===p.methods.indexOf("head")&&p.methods.push("head"),t.endpoints&&(e._getArgs=e._getArgs||{}
1,t.endpoints.forEach((function(t){t.methods.forEach((function(n){"get"===n.toLowerCase()&&Object.keys(t.args).forEach((function(n){e._getArgs[n]=t.args[n]}))}))})))),n[l]=p,p.children}function u(t,e,n){var r=e.namespace,a=n.replace("/"+r+"/","").replace(/\/\?$/,""),u=o(a);if(!r||"/"+r===n||!a)return t;i(t,r,{});var s=t[r],l=u[0];i(s,l,{});var f=s[l];return u.reduce(c.bind(null,e,f),f),t}t.exports={build:function(t){return a(t,u,{})}}},agKL:function(t,e,n){(function(e,r){var o;o=function(){"use strict";function t(t){return"function"===typeof t}var o=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,a=void 0,c=void 0,u=function(t,e){b[i]=t,b[i+1]=e,2===(i+=2)&&(c?c(y):m())},s="undefined"!==typeof window?window:void 0,l=s||{},f=l.MutationObserver||l.WebKitMutationObserver,p="undefined"===typeof self&&"undefined"!==typeof e&&"[object process]"==={}.toString.call(e),d="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function h(){var t=setTimeout;return function(){return t(y,1)}}var b=new Array(1e3);function y(){for(var t=0;t<i;t+=2)(0,b[t])(b[t+1]),b[t]=void 0,b[t+1]=void 0;i=0}var m=void 0;function g(t,e){var n=arguments,r=this,o=new this.constructor(j);void 0===o[O]&&F(o);var i=r._state;return i?function(){var t=n[i-1];u((function(){return L(i,o,t,r._result)}))}():S(r,o,t,e),o}function v(t){if(t&&"object"===typeof t&&t.constructor===this)return t;var e=new this(j);return T(e,t),e}m=p?function(){return e.nextTick(y)}:f?function(){var t=0,e=new f(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}():d?function(){var t=new MessageChannel;return t.port1.onmessage=y,function(){return t.port2.postMessage(0)}}():void 0===s?function(){try{var t=n(0);return a=t.runOnLoop||t.runOnContext,function(){a(y)}}catch(e){return h()}}():h();var O=Math.random().toString(36).substring(16);function j(){}var _=new A;function w(t){try{return t.then}catch(e){return _.error=e,_}}function E(e,n,r){n.constructor===e.constructor&&r===g&&n.constructor.resolve===v?function(t,e){1===e._state?P(t,e._result):2===e._state?k(t,e._result):S(e,void 0,(function(e){return T(t,e)}),(function(e){return k(t,e)}))}(e,n):r===_?k(e,_.error):void 0===r?P(e,n):t(r)?function(t,e,n){u((function(t){var r=!1,o=function(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}(n,e,(function(n){r||(r=!0,e!==n?T(t,n):P(t,n))}),(function(e){r||(r=!0,k(t,e))}),t._label);!r&&o&&(r=!0,k(t,o))}),t)}(e,n,r):P(e,n)}function T(t,e){var n;t===e?k(t,new TypeError("You cannot resolve a promise with itself")):"function"===typeof(n=e)||"object"===typeof n&&null!==n?E(t,e,w(e)):P(t,e)}function C(t){t._onerror&&t._onerror(t._result),x(t)}function P(t,e){void 0===t._state&&(t._result=e,t._state=1,0!==t._subscribers.length&&u(x,t))}function k(t,e){void 0===t._state&&(t._state=2,t._result=e,u(C,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=n,o[i+2]=r,0===i&&t._state&&u(x,t)}function x(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?L(n,r,o,i):o(i);t._subscribers.length=0}}function A(){this.error=null}var I=new A;function L(e,n,r,o){var i=t(r),a=void 0,c=void 0,u=void 0,s=void 0;if(i){if((a=function(t,e){try{return t(e)}catch(n){return I.error=n,I}}(r,o))===I?(s=!0,c=a.error,a=null):u=!0,n===a)return void k(n,new TypeError("A promises callback cannot return that same promise."))}else a=o,u=!0;void 0!==n._state||(i&&u?T(n,a):s?k(n,c):1===e?P(n,a):2===e&&k(n,a))}var D=0;function F(t){t[O]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(t,e){this._instanceConstructor=t,this.promise=new t(j),this.promise[O]||F(this.promise),o(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?P(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&P(this.promise,this._result))):k(this.promise,new Error("Array Methods must be provided an Array"))}function N(t){this[O]=D++,this._result=this._state=void 0,this._subscribers=[],j!==t&&("function"!==typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof N?function(t,e){try{e((function(e){T(t,e)}),(function(e){k(t,e)}))}catch(n){k(t,n)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}function G(){var t=void 0;if("undefined"!==typeof r)t=r;else if("undefined"!==typeof self)t=self;else try{t=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(o){}if("[object Promise]"===n&&!e.cast)return}t.Promise=N}return R.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;void 0===this._state&&n<t;n++)this._eachEntry(e[n],n)},R.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===v){var o=w(t);if(o===g&&void 0!==t._state)this._settledAt(t._state,e,t._result);else if("function"!==typeof o)this._remaining--,this._result[e]=t;else if(n===N){var i=new n(j);E(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},R.prototype._settledAt=function(t,e,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===t?k(r,n):this._result[e]=n),0===this._remaining&&P(r,this._result)},R.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,(function(t){return n._settledAt(1,e,t)}),(function(t){return n._settledAt(2,e,t)}))},N.all=function(t){return new R(this,t).promise},N.race=function(t){var e=this;return o(t)?new e((function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))},N.resolve=v,N.reject=function(t){var e=new this(j);return k(e,t),e},N._setScheduler=function(t){c=t},N._setAsap=function(t){u=t},N._asap=u,N.prototype={constructor:N,then:g,catch:function(t){return this.then(null,t)}},G(),N.polyfill=G,N.Promise=N,N},t.exports=o()}).call(this,n("F63i"),n("lpmq"))},b4Fh:function(t,e,n){"use strict";var r=n("/oUt"),o=n("8I/T"),i={categories:{categories:o.categories,category:o.category},categories_exclude:{excludeCategories:o.excludeCategories},tags:{tags:o.tags,tag:o.tag},tags_exclude:{excludeTags:o.excludeTags},filter:r,post:{post:o.post,forPost:o.post}};["after","author","before","parent","password","status","sticky"].forEach((function(t){i[t]={},i[t][t]=o[t]})),t.exports=i},bwcf:function(t,e,n){"use strict";t.exports=function(t){if("object"!==typeof t)return!1;if(Array.isArray(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}},c63D:function(t,e,n){"use strict";var r=n("ERkP"),o=n.n(r),i=n("6780"),a=o.a.createElement;e.a=function(t){return a(i.a,{getPage:Promise.all([n.e(15),n.e(14),n.e(16),n.e(29),n.e(98)]).then(n.bind(null,"Wj6v"))},t.children)}},cXXW:function(t,e,n){"use strict";var r=n("uDfI"),o=n("j46Z"),i=n("o2OV");e.a=Object(r.b)((function(t){return{coords:Object(i.c)(t),status:Object(i.d)(t),code:Object(i.b)(t)}}),o)((function(t){var e=t.coords,n=t.status,r=t.requestLocation,o=t.code;return(0,t.children)({coords:e,status:n,requestLocation:r,code:o})}))},cYYr:function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},cwbO:function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},dMso:function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];
1if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<r.length;o++)if((n=r[o])===e||n.fn===e){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},dZSc:function(t,e,n){var r,o,i,a;i=function(){var t=/^;\s*([^"=]+)=(?:"([^"]+)"|([^";,]+)(?:[;,]|$))/,e=/^<([^>]*)>/,n=/^\s*,\s*/;return{parse:function(r,o){for(var i,a,c,u=o&&o.extended||!1,s=[];r&&(r=r.trim(),a=e.exec(r));){for(var l={link:a[1]},f=(r=r.slice(a[0].length)).match(n);r&&(!f||f.index>0)&&(i=t.exec(r));)f=(r=r.slice(i[0].length)).match(n),"rel"===i[1]||"rev"===i[1]?(c=(i[2]||i[3]).split(/\s+/),l[i[1]]=c):l[i[1]]=i[2]||i[3];s.push(l),r=r.replace(n,"")}return u?s:s.reduce((function(t,e){return e.rel&&e.rel.forEach((function(n){t[n]=e.link})),t}),{})},stringify:function(t){var e=Object.keys(t).reduce((function(e,n){return e[t[n]]=e[t[n]]||[],e[t[n]].push(n),e}),{});return Object.keys(e).reduce((function(t,n){return t.concat("<"+n+'>; rel="'+e[n].join(" ")+'"')}),[]).join(", ")}}},a=this,t.exports?t.exports=i():"function"==typeof a.define&&a.define.amd?void 0===(o="function"===typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o):a.li=i()},dcew:function(t,e,n){"use strict";var r=n("agKL").Promise,o=n("sxWj"),i=n("dZSc").parse,a=n("cRaD"),c=n("JN2i"),u=n("r3iB"),s=n("f8sa"),l=n("W89y"),f=n("bwcf");function p(t,e){return e.headers?l(e.headers,(function(t,e,n){return t.set(n,e)}),t):t}function d(t,e,n){if(!n&&!e.auth&&!e.nonce)return t;if(e.nonce)return t.set("X-WP-Nonce",e.nonce),t;var r=r||e.username,o=o||e.password;return r&&o?t.auth(r,o):t}function h(t,e){var n=a.parse(t);return e=a.parse(e,!0),n.query=e.query,n.search=e.search,n.pathname=e.pathname,a.format(n)}function b(t,e,n){return new r((function(e,n){t.end((function(t,r){t||r.error?n(t||r.error):e(r)}))})).then(n).then((function(t){return e&&"function"===typeof e&&e(null,t),t}),(function(t){if(t.response&&t.response.body&&t.response.body.code&&(t=t.response.body),!e||"function"!==typeof e)throw t;e(t)}))}function y(t,e){var n=function(t){var e=t.body;if(f(e)&&"text/html"===t.type)try{e=JSON.parse(t.text)}catch(n){}return e}(e),r=function(t,e,n){var r=null;if(!t.headers||!t.headers["x-wp-totalpages"])return r;var o=t.headers["x-wp-totalpages"];if(!o||"0"===o)return r;var a=t.headers.link?i(t.headers.link):{};r={total:t.headers["x-wp-total"],totalPages:o,links:a};var u=e.endpoint;return a.next&&(r.next=new c(s({},e,{transport:n,endpoint:h(u,a.next)}))),a.prev&&(r.prev=new c(s({},e,{transport:n,endpoint:h(u,a.prev)}))),r}(e,t._options,t.transport);return r&&(n._paging=r),n}function m(t){return t.headers}t.exports={delete:function(t,e,n){n||"function"!==typeof e||(n=e,e=null),u("delete",t);var r=t.toString(),i=d(o.del(r),t._options,!0).send(e);return b(i=p(i,t._options),n,y.bind(null,t))},get:function(t,e){u("get",t);var n=t.toString(),r=d(o.get(n),t._options);return b(r=p(r,t._options),e,y.bind(null,t))},head:function(t,e){u("head",t);var n=t.toString(),r=d(o.head(n),t._options);return b(r=p(r,t._options),e,m)},post:function(t,e,n){u("post",t);var r=t.toString();e=e||{};var i=d(o.post(r),t._options,!0);return i=p(i,t._options),b(i=t._attachment?l(e,(function(t,e,n){return t.field(n,e)}),i.attach("file",t._attachment,t._attachmentName)):i.send(e),n,y.bind(null,t))},put:function(t,e,n){u("put",t);var r=t.toString();e=e||{};var i=d(o.put(r),t._options,!0).send(e);return b(i=p(i,t._options),n,y.bind(null,t))}}},f8sa:function(t,e,n){"use strict";t.exports=n("Che/")},hLC0:function(t,e,n){"use strict";var r=n("prCu"),o=n("cRaD"),i=n("GKv7");function a(t){return t&&t.rel}function c(t,e){return e.rel.split(/\s+/).forEach((function(n){t[n]=i(e,{rel:n})}
1)),t}function u(t,e){var n=e.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(t[n[1]]=n[2]),t}function s(t){try{var e=t.split(";"),n=e.shift().replace(/[<>]/g,""),a=o.parse(n),c=r.parse(a.query),s=e.reduce(u,{});return(s=i(c,s)).url=n,s}catch(l){return null}}t.exports=function(t){return t?t.split(/,\s*</).map(s).filter(a).reduce(c,{}):null}},iR2b:function(t,e,n){"use strict";var r=n("gc+n");e.a=function(t){if("undefined"===typeof t)return{};var e=t.date_to_show,n=t.dt_inizio,o=t.dt_fine,i=t.titolo,a=t.luogo,c=t.url_landing_page,u=e,s=function(t){var e=t.background_type;return"I"===e?"fullImg":"B"===e?"white":"V"===e?"green":void 0}(t),l=new Date(u).toString()===new Date((new Date).setHours(0,0,0,0)).toString();return{category:t.tema?t.tema.tema:"",title:i,dateFrom:Object(r.c)(n),dateTo:Object(r.c)(o),isToday:l,exactDate:u,exactDay:Object(r.d)(u),exactMonth:Object(r.e)(u),info:[t.owner&&t.owner.toUpperCase(),a?a.localita_web:""].join("<br />"),link:"/eventi/".concat(t.slug),hasLanding:c,thumbnail:{image:{url:t.media[0]&&t.media[0].url}},backgroundType:s}}},j46Z:function(t,e,n){"use strict";n.r(e),n.d(e,"requestLocation",(function(){return o})),n.d(e,"commitLocation",(function(){return i})),n.d(e,"failLocation",(function(){return a}));var r=n("+H2D"),o=function(){return{type:r.c}},i=function(t){var e=t.lat,n=t.lng;return{type:r.a,payload:{coords:{lat:e,lng:n}}}},a=function(t){var e=t.code;return{type:r.b,meta:{code:e}}}},"k/58":function(t,e,n){"use strict";t.exports=function t(e){if("number"===typeof e)return!0;if("string"===typeof e)return/^\d+$/.test(e);if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(!t(e[n]))return!1;return!0}return!1}},kAk6:function(t,e,n){"use strict";var r=n("f8sa"),o=n("IEzQ").create,i=n("B404").create,a=n("W89y");t.exports={generate:function(t){return a(t,(function(t,e,n){return t[n]=a(e,(function(t,e,a){var c=o(e,a),u=i(c,a,n);return t[a]=function(t){return new u(r({},this._options,t))},t[a].Ctor=u,t}),{}),t}),{})}}},lTvC:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"Waypoint",(function(){return g}));var r=n("tsZ/"),o=n("ERkP"),i=n.n(o),a=n("kvVz");function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function p(t,e){var n,r=(n=t,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"===typeof r)return r;var o=function(t){if("%"===t.slice(-1))return parseFloat(t.slice(0,-1))/100}(t);return"number"===typeof o?o*e:void 0}function d(t){return"string"===typeof t.type}var h;var b=[];function y(t){b.push(t),h||(h=setTimeout((function(){var t;for(h=null;t=b.shift();)t()}),0));var e=!0;return function(){if(e){e=!1;var n=b.indexOf(t);-1!==n&&(b.splice(n,1),!b.length&&h&&(clearTimeout(h),h=null))}}}var m={debug:!1,scrollableAncestor:void 0,children:void 0,topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){},onLeave:function(){},onPositionChange:function(){},fireOnRapidScroll:!0},g=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(h,e);var n,o,u,l=f(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=l.call(this,t)).refElement=function(t){e._ref=t},e}return n=h,(o=[{key:"componentDidMount",value:function(){var t=this;h.getWindow()&&(this.cancelOnNextTick=y((function(){t.cancelOnNextTick=null;var e=t.props,n=e.children;e.debug,function(t,e){if(t&&!d(t)&&!e)throw new Error("<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.")}(n,t._ref),t._handleScroll=t._handleScroll.bind(t),t.scrollableAncestor=t._findScrollableAncestor(),t.scrollEventListenerUnsubscribe=Object(r.addEventListener)(t.scrollableAncestor,"scroll",t._handleScroll,{passive:!0}),t.resizeEventListenerUnsubscribe=Object(r.addEventListener)(window,"resize",t._handleScroll,{passive:!0}),t._handleScroll(null)})))}},{key:"componentDidUpdate",value:function(){var t=this;h.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=y((function(){t.cancelOnNextTick=null,t._handleScroll(null)}))))}},{key:"componentWillUnmount",value:function(){h.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}},{key:"_findScrollableAncestor",value:function(){var e=this.props,n=e.horizontal,r=e.scrollableAncestor;if(r)return function(e){return"window"===e?t.window:e}(r);for(var o=this._ref;o.parentNode;){if((o=o.parentNode)===document.body)return window;var i=window.getComputedStyle(o),a=(n?i.getPropertyValue("overflow-x"):i.getPropertyValue("overflow-y"))||i.getPropertyValue("overflow");if("auto"===a||"scroll"===a||"overlay"===a)return o}return window}
1},{key:"_handleScroll",value:function(t){if(this._ref){var e=this._getBounds(),n=function(t){return t.viewportBottom-t.viewportTop===0?"invisible":t.viewportTop<=t.waypointTop&&t.waypointTop<=t.viewportBottom||t.viewportTop<=t.waypointBottom&&t.waypointBottom<=t.viewportBottom||t.waypointTop<=t.viewportTop&&t.viewportBottom<=t.waypointBottom?"inside":t.viewportBottom<t.waypointTop?"below":t.waypointTop<t.viewportTop?"above":"invisible"}(e),r=this._previousPosition,o=this.props,i=(o.debug,o.onPositionChange),a=o.onEnter,c=o.onLeave,u=o.fireOnRapidScroll;if(this._previousPosition=n,r!==n){var s={currentPosition:n,previousPosition:r,event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom};i.call(this,s),"inside"===n?a.call(this,s):"inside"===r&&c.call(this,s),u&&("below"===r&&"above"===n||"above"===r&&"below"===n)&&(a.call(this,{currentPosition:"inside",previousPosition:r,event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom}),c.call(this,{currentPosition:n,previousPosition:"inside",event:t,waypointTop:e.waypointTop,waypointBottom:e.waypointBottom,viewportTop:e.viewportTop,viewportBottom:e.viewportBottom}))}}}},{key:"_getBounds",value:function(){var t,e,n=this.props,r=n.horizontal,o=(n.debug,this._ref.getBoundingClientRect()),i=o.left,a=o.top,c=o.right,u=o.bottom,s=r?i:a,l=r?c:u;this.scrollableAncestor===window?(t=r?window.innerWidth:window.innerHeight,e=0):(t=r?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,e=r?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var f=this.props,d=f.bottomOffset;return{waypointTop:s,waypointBottom:l,viewportTop:e+p(f.topOffset,t),viewportBottom:e+t-p(d,t)}}},{key:"render",value:function(){var t=this,e=this.props.children;return e?d(e)||Object(a.isForwardRef)(e)?i.a.cloneElement(e,{ref:function(n){t.refElement(n),e.ref&&("function"===typeof e.ref?e.ref(n):e.ref.current=n)}}):i.a.cloneElement(e,{innerRef:this.refElement}):i.a.createElement("span",{ref:this.refElement,style:{fontSize:0}})}}])&&c(n.prototype,o),u&&c(n,u),h}(i.a.PureComponent);g.above="above",g.below="below",g.inside="inside",g.invisible="invisible",g.getWindow=function(){if("undefined"!==typeof window)return window},g.defaultProps=m,g.displayName="Waypoint"}.call(this,n("lpmq"))},lmq3:function(t){t.exports=JSON.parse('{"/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/oembed/1.0":{"namespace":"oembed/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{},"context":{}}}]},"/oembed/1.0/embed":{"namespace":"oembed/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{},"format":{},"maxwidth":{}}}]},"/wp/v2":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{},"context":{}}}]},"/wp/v2/posts":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"slug":{},"status":{},"categories":{},"categories_exclude":{},"tags":{},"tags_exclude":{},"sticky":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"format":{},"meta":{},"sticky":{},"template":{},"categories":{},"tags":{}}}]},"/wp/v2/posts/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"format":{},"meta":{},"sticky":{},"template":{},"categories":{},"tags":{}}},{"methods":["DELETE"],"args":{"force":{}}}]}
1,"/wp/v2/posts/(?P<parent>[\\\\d]+)/revisions":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/posts/(?P<parent>[\\\\d]+)/revisions/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/pages":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"menu_order":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"slug":{},"status":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"parent":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"menu_order":{},"meta":{},"template":{}}}]},"/wp/v2/pages/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"password":{},"parent":{},"title":{},"content":{},"author":{},"excerpt":{},"featured_media":{},"comment_status":{},"ping_status":{},"menu_order":{},"meta":{},"template":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/pages/(?P<parent>[\\\\d]+)/revisions":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/pages/(?P<parent>[\\\\d]+)/revisions/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/media":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"slug":{},"status":{},"media_type":{},"mime_type":{}}},{"methods":["POST"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"title":{},"author":{},"comment_status":{},"ping_status":{},"meta":{},"template":{},"alt_text":{},"caption":{},"description":{},"post":{}}}]},"/wp/v2/media/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"date":{},"date_gmt":{},"slug":{},"status":{},"title":{},"author":{},"comment_status":{},"ping_status":{},"meta":{},"template":{},"alt_text":{},"caption":{},"description":{},"post":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/types":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/types/(?P<type>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/statuses":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/statuses/(?P<status>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/taxonomies":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{},"type":{}}}]},"/wp/v2/taxonomies/(?P<taxonomy>[\\\\w-]+)":{"namespace":"wp/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}]},"/wp/v2/categories":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"order":{},"orderby":{},"hide_empty":{},"parent":{},"post":{},"slug":{}}},{"methods":["POST"],"args":{"description":{},"name":{},"slug":{},"parent":{},"meta":{}}}]},"/wp/v2/categories/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}}
1,{"methods":["POST","PUT","PATCH"],"args":{"description":{},"name":{},"slug":{},"parent":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/tags":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"hide_empty":{},"post":{},"slug":{}}},{"methods":["POST"],"args":{"description":{},"name":{},"slug":{},"meta":{}}}]},"/wp/v2/tags/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"description":{},"name":{},"slug":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{}}}]},"/wp/v2/users":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"slug":{},"roles":{}}},{"methods":["POST"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}}]},"/wp/v2/users/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"reassign":{}}}]},"/wp/v2/users/me":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{},"name":{},"first_name":{},"last_name":{},"email":{},"url":{},"description":{},"locale":{},"nickname":{},"slug":{},"roles":{},"password":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"reassign":{}}}]},"/wp/v2/comments":{"namespace":"wp/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{},"page":{},"per_page":{},"search":{},"after":{},"author":{},"author_exclude":{},"author_email":{},"before":{},"exclude":{},"include":{},"offset":{},"order":{},"orderby":{},"parent":{},"parent_exclude":{},"post":{},"status":{},"type":{},"password":{}}},{"methods":["POST"],"args":{"author":{},"author_email":{},"author_ip":{},"author_name":{},"author_url":{},"author_user_agent":{},"content":{},"date":{},"date_gmt":{},"parent":{},"post":{},"status":{},"meta":{}}}]},"/wp/v2/comments/(?P<id>[\\\\d]+)":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{},"password":{}}},{"methods":["POST","PUT","PATCH"],"args":{"author":{},"author_email":{},"author_ip":{},"author_name":{},"author_url":{},"author_user_agent":{},"content":{},"date":{},"date_gmt":{},"parent":{},"post":{},"status":{},"meta":{}}},{"methods":["DELETE"],"args":{"force":{},"password":{}}}]},"/wp/v2/settings":{"namespace":"wp/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{}},{"methods":["POST","PUT","PATCH"],"args":{"title":{},"description":{},"url":{},"email":{},"timezone":{},"date_format":{},"time_format":{},"start_of_week":{},"language":{},"use_smilies":{},"default_category":{},"default_post_format":{},"posts_per_page":{},"default_ping_status":{},"default_comment_status":{}}}]}}')},o2OV:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n("zjfJ"),o=n("+H2D");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEac
1h((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(t){return t.location?t.location:null},u=function(t){var e=c(t);return e&&e.coords},s=function(t){var e=c(t);return e&&e.status},l=function(t){var e=c(t);return e&&e.meta&&e.meta.code};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.c:return a(a({},t),{},{status:"LOADING"});case o.a:return a(a({},t),{},{status:"SUCCESSFUL",coords:e.payload.coords});case o.b:return a(a({},t),{},{status:"FAILURE",meta:e.meta});default:return t}}},oUmF:function(t,e,n){(function(e){var n="[object GeneratorFunction]",r=/^\[object .+?Constructor\]$/,o="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,a=o||i||Function("return this")();function c(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!==e)return function(t,e,n,r){var o=t.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,s,n);var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,0)>-1}function u(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function s(t){return t!==t}function l(t,e){return t.has(e)}function f(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var p=Array.prototype,d=Function.prototype,h=Object.prototype,b=a["__core-js_shared__"],y=function(){var t=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),m=d.toString,g=h.hasOwnProperty,v=h.toString,O=RegExp("^"+m.call(g).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=p.splice,_=L(a,"Map"),w=L(a,"Set"),E=L(Object,"create");function T(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function C(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function k(t){var e=-1,n=t?t.length:0;for(this.__data__=new P;++e<n;)this.add(t[e])}function S(t,e){for(var n,r,o=t.length;o--;)if((n=t[o][0])===(r=e)||n!==n&&r!==r)return o;return-1}function x(t){return!(!D(t)||(e=t,y&&y in e))&&(function(t){var e=D(t)?v.call(t):"";return"[object Function]"==e||e==n}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}(t)?O:r).test(function(t){if(null!=t){try{return m.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t));var e}T.prototype.clear=function(){this.__data__=E?E(null):{}},T.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},T.prototype.get=function(t){var e=this.__data__;if(E){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return g.call(e,t)?e[t]:void 0},T.prototype.has=function(t){var e=this.__data__;return E?void 0!==e[t]:g.call(e,t)},T.prototype.set=function(t,e){return this.__data__[t]=E&&void 0===e?"__lodash_hash_undefined__":e,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(t){var e=this.__data__,n=S(e,t);return!(n<0)&&(n==e.length-1?e.pop():j.call(e,n,1),!0)},C.prototype.get=function(t){var e=this.__data__,n=S(e,t);return n<0?void 0:e[n][1]},C.prototype.has=function(t){return S(this.__data__,t)>-1},C.prototype.set=function(t,e){var n=this.__data__,r=S(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},P.prototype.clear=function(){this.__data__={hash:new T,map:new(_||C),string:new T}},P.prototype.delete=function(t){return I(this,t).delete(t)},P.prototype.get=function(t){return I(this,t).get(t)},P.prototype.has=function(t){return I(this,t).has(t)},P.prototype.set=function(t,e){return I(this,t).set(t,e),this},k.prototype.add=k.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},k.prototype.has=function(t){return this.__data__.has(t)};var A=w&&1/f(new w([,-0]))[1]==1/0?function(t){return new w(t)}:function(){};function I(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function L(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return x(n)?n:void 0}function D(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=function(t){return t&&t.length?function(t,e,n){var r=-1,o=c,i=t.length,a=!0,s=[],p=s;if(n)a=!1,o=u;else if(i>=200){var d=e?null:A(t);if(d)return f(d);a=!1,o=l,p=new k}else p=e?[]:s;t:for(;++r<i;){var h=t[r],b=e?e(h):h;if(h=n||0!==h?h:0,a&&b===b){for(var y=p.length;y--;)if(p[y]===b)continue t;e&&p.push(b),s.push(h)}else o(p,b,n)||(p!==s&&p.push(b),s.push(h))}return s}(t):[]}}).call(this,n("lpmq"))},pu3o:function(t,e,n){"use strict";var r=n("SYP+"),o=n("w7lK"),i=n("cYYr");t.exports={formats:i,parse:o,stringify:r}},pvoB:function(t,e,n){"use strict";var r,o,i=Object.prototype,a=i.hasOwnProperty,c=i.toString;"function"===typeof Symbol&&(r=Symbol.prototype.valueOf),"function"===typeof BigInt&&(o=BigInt.prototype.valueOf);var u=function(t){return t!==t},s={boolean:1,number:1,string:1,undefined:1},l=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,f=/^[A-Fa-f0-9]+$/,p={};p.a=p.type=function(t,e){return typeof t===e},p.defined=function(t){return"undefined"!==typeof t},p.empty=function(t){var e,n=c.call(t);if("[object Array]"===n||"[object Arguments]"===n||"[object String]"===n)return 0===t.length;if("[object Object]"===n){for(e in t)if(a.call(t,e))return!1;return!0}return!t},p.equal=function(t,e){if(t===e)return!0;var n,r=c.call(t);if(r!==c.call(e))return!1;if("[object Object]"===r){for(n in t)if(!p.equal(t[n],e[n])||!(n in e))return!1;for(n in e)if(!p.equal(t[n],e[n])||!(n in t))return!1;return!0}if("[object Array]"===r){if((n=t.length)!==e.length)return!1;for(;n--;)if(!p.equal(t[n],e[n]))return!1;return!0}return"[object Function]"===r?t.prototype===e.prototype:"[object Date]"===r&&t.getTime()===e.getTime()},p.hosted=function(t,e){var n=typeof e[t];return"object"===n?!!e[t]:!s[n]},p.instance=p.instanceof=function(t,e){return t instanceof e},p.nil=p.null=function(t){return null===t},p.undef=p.undefined=function(t){return"undefined"===typeof t},p.args=p.arguments=function(t){var e="[object Arguments]"===c.call(t),n=!p.array(t)&&p.arraylike(t)&&p.object(t)&&p.fn(t.callee);return e||n},p.array=Array.isArray||function(t){return"[object Array]"===c.call(t)},p.args.empty=function(t){return p.args(t)&&0===t.length},p.array.empty=function(t){return p.array(t)&&0===t.length},p.arraylike=function(t){return!!t&&!p.bool(t)&&a.call(t,"length")&&isFinite(t.length)&&p.number(t.length)&&t.length>=0},p.bool=p.boolean=function(t){return"[object Boolean]"===c.call(t)},p.false=function(t){return p.bool(t)&&!1===Boolean(Number(t))},p.true=function(t){return p.bool(t)&&!0===Boolean(Number(t))},p.date=function(t){return"[object Date]"===c.call(t)},p.date.valid=function(t){return p.date(t)&&!isNaN(Number(t))},p.element=function(t){return void 0!==t&&"undefined"!==typeof HTMLElement&&t instanceof HTMLElement&&1===t.nodeType},p.error=function(t){return"[object Error]"===c.call(t)},p.fn=p.function=function(t){if("undefined"!==typeof window&&t===window.alert)return!0;var e=c.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},p.number=function(t){return"[object Number]"===c.call(t)},p.infinite=function(t){return t===1/0||t===-1/0},p.decimal=function(t){return p.number(t)&&!u(t)&&!p.infinite(t)&&t%1!==0},p.divisibleBy=function(t,e){var n=p.infinite(t),r=p.infinite(e),o=p.number(t)&&!u(t)&&p.number(e)&&!u(e)&&0!==e;return n||r||o&&t%e===0},p.integer=p.int=function(t){return p.number(t)&&!u(t)&&t%1===0},p.maximum=function(t,e){if(u(t))throw new TypeError("NaN is not a valid value");if(!p.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t<e[n])return!1;return!0},p.minimum=function(t,e){if(u(t))throw new TypeError("NaN is not a valid value");if(!p.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t>e[n])return!1;return!0},p.nan=function(t){return!p.number(t)||t!==t},p.even=function(t){return p.infinite(t)||p.number(t)&&t===t&&t%2===0},p.odd=function(t){return p.infinite(t)||p.number(t)&&t===t&&t%2!==0},p.ge=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t>=e},p.gt=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t>e},p.le=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t<=e},p.lt=function(t,e){if(u(t)||u(e))throw new TypeError("NaN is not a valid value");return!p.infinite(t)&&!p.infinite(e)&&t<e},p.within=function(t,e,n){if(u(t)||u(e)||u(n))throw new TypeError("NaN is not a valid value");if(!p.number(t)||!p.number(e)||!p.number(n))throw new TypeError("all arguments must be numbers");return p.infinite(t)||p.infinite(e)||p.infinite(n)||t>=e&&t<=n},p.object=function(t){return"[object Object]"===c.call(t)},p.primitive=function(t){return!t||!("object"===typeof t||p.object(t)||p.fn(t)||p.array(t))},p.hash=function(t){return p.object(t)&&t.constructor===Object&&!t.nodeType&&!t.setInterval},p.regexp=function(t){return"[object RegExp]"===c.call(t)},p.string=function(t){return"[object String]"===c.call(t)},p.base64=function(t){return p.string(t)&&(!t.length||l.test(t))},p.hex=function(t){return p.string(t)&&(!t.length||f.test(t))},p.symbol=function(t){return"function"===typeof Symbol&&"[object Symbol]"===c.call(t)&&"symbol"===typeof r.call(t)},p.bigint=function(t){return"function"===typeof BigInt&&"[object BigInt]"===c.call(t)&&"bigint"===typeof o.call(t)},t.exports=p},qXKH:function(t,e,n){"use strict";e.a=function(t){if("undefined"===typeof t)return{};var e=t.luogo.slug;return{id:t.id,title:t.titolo,supertitle:"",thumbnail:{url:t.media[0]&&t.media[0].url||"https://fai-website.imgix.net/static/placeholder_2.png"},link:"/luoghi/".concat(e),subtitle:t.luogo.localita_web,content:t.payoff}}},r3iB:function(t,e,n){"use strict";
1t.exports=function(t,e){if(-1===e._supportedMethods.indexOf(t.toLowerCase()))throw new Error("Unsupported method; supported methods are: "+e._supportedMethods.join(", "));return!0}},rVun:function(t,e,n){"use strict";t.exports=function(t,e){var n={};return n[t]=e,n}},sxWj:function(t,e,n){var r;"undefined"!==typeof window?r=window:"undefined"!==typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n("dMso"),i=n("Fu1L"),a=n("4FEf"),c=n("Q2tY"),u=n("8vpR");function s(){}var l=e=t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1==arguments.length?new e.Request("GET",t):new e.Request(t,n)};e.Request=m,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function p(t){if(!a(t))return t;var e=[];for(var n in t)d(e,n,t[n]);return e.join("&")}function d(t,e,n){if(null!=n)if(Array.isArray(n))n.forEach((function(n){d(t,e,n)}));else if(a(n))for(var r in n)d(t,e+"["+r+"]",n[r]);else t.push(encodeURIComponent(e)+"="+encodeURIComponent(n));else null===n&&t.push(encodeURIComponent(e))}function h(t){for(var e,n,r={},o=t.split("&"),i=0,a=o.length;i<a;++i)-1==(n=(e=o[i]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,n))]=decodeURIComponent(e.slice(n+1));return r}function b(t){return/[\/+]json($|[^-\w])/.test(t)}function y(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"===typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.header=this.headers=function(t){for(var e,n,r,o,i=t.split(/\r?\n/),a={},c=0,u=i.length;c<u;++c)-1!==(e=(n=i[c]).indexOf(":"))&&(r=n.slice(0,e).toLowerCase(),o=f(n.slice(e+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function m(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new y(n)}catch(o){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=o,n.xhr?(e.rawResponse="undefined"==typeof n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||"Unsuccessful HTTP response"))}catch(i){t=i}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function g(t,e,n){var r=l("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}l.serializeObject=p,l.parseString=h,l.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},l.serialize={"application/x-www-form-urlencoded":p,"application/json":JSON.stringify},l.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},c(y.prototype),y.prototype._parseBody=function(t){var e=l.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=l.parse["application/json"]),e&&t&&(t.length||t instanceof Object)?e(t):null)},y.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot "+e+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=e,o.url=n,o},l.Response=y,o(m.prototype),i(m.prototype),m.prototype.type=function(t){return this.set("Content-Type",l.types[t]||t),this},m.prototype.accept=function(t){return this.set("Accept",l.types[t]||t),this},m.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===typeof e&&null!==e&&(n=e,e=""),n||(n={type:"function"===typeof btoa?"basic":"auto"});var r=function(t){if("function"===typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,r)},m.prototype.query=function(t){return"string"!=typeof t&&(t=p(t)),t&&this._query.push(t),this},m.prototype.attach=function(t,e,n){if(e){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},m.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},m.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit
1("error",t)),n(t,e)},m.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},m.prototype.buffer=m.prototype.ca=m.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},m.prototype.pipe=m.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},m.prototype._isHost=function(t){return t&&"object"===typeof t&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},m.prototype.end=function(t){return this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||s,this._finalizeQueryString(),this._end()},m.prototype._end=function(){var t=this,e=this.xhr=l.getXHR(),n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==n){var r;try{r=e.status}catch(o){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};
1var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.onprogress=r.bind(null,"download"),e.upload&&(e.upload.onprogress=r.bind(null,"upload"))}catch(c){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(u){return this.callback(u)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&e.setRequestHeader(a,this.header[a]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send("undefined"!==typeof n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){u.prototype[t.toLowerCase()]=function(e,n){var r=new l.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),u.prototype.del=u.prototype.delete,l.get=function(t,e,n){var r=l("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},l.head=function(t,e,n){var r=l("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},l.options=function(t,e,n){var r=l("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(t,e,n){var r=l("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.post=function(t,e,n){var r=l("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},l.put=function(t,e,n){var r=l("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},umxl:function(t,e,n){"use strict";var r=n("f8sa"),o=n("Zqdi").build,i=n("kAk6").generate,a=n("wGKE"),c=n("P3Rk"),u=n("b4Fh");t.exports=function(t,e,n){var s=["head","get","patch","put","post","delete"];n&&Array.isArray(n.methods)?s=n.methods.map((function(t){return t.trim().toLowerCase()})):n&&"string"===typeof n.methods&&(s=[n.methods.trim().toLowerCase()]),-1!==s.indexOf("get")&&-1===s.indexOf("head")?s.push("head"):-1!==s.indexOf("head")&&-1===s.indexOf("get")&&s.push("get");var l={};l[t.replace(/^[\s/]*/,"/").replace(/[\s/]*$/,"/")+e.replace(/^[\s/]*/,"")]={namespace:t,methods:s};var f=o(l),p=i(f)[t],d=p[Object.keys(p)[0]].Ctor;function h(t){return t=r(t=t||{},this&&this._options),new d(t)}return n&&n.params&&n.params.forEach((function(t){"string"===typeof t&&("object"!==typeof u[t]?c(d.prototype,t,a(t)):Object.keys(u[t]).forEach((function(e){c(d.prototype,e,u[t][e])})))})),n&&"object"===typeof n.mixins&&Object.keys(n.mixins).forEach((function(t){c(d.prototype,t,n.mixins[t])})),h.Ctor=d,h}},vqKY:function(t,e,n){"use strict";t.exports={create:function(t){var e=t.level,n=t.names[0],r=t.methods||[],o=t.children?Object.keys(t.children).map((function(e){return t.children[e]})).filter((function(t){return!0===t.namedGroup})):[],i=1===o.length&&o[0],a=i&&i.level;return t.namedGroup?function(t){return this.setPathPart(e,t),r.length&&(this._supportedMethods=r),this}:function(t){return this.setPathPart(e,n),void 0!==t&&a&&this.setPathPart(a,t),this}}}},w7lK:function(t,e,n){"use strict";var r=n("V/Lb"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),c=a?r.slice(0,a.index):r,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var s=0;null!==(a=i.exec(r))&&s<n.depth;){if(s+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,o=t.length-1;o>=0;--o){var i,a=t[o];if("[]"===a&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(i=[])[u]=r:"__proto__"!==c&&(i[c]=r):i={0:r}}r=i}return r}(u,e,n)}};t.exports=function(t,e){var n=e?r.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");
1if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:i.delimiter,n.depth="number"===typeof n.depth?n.depth:i.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:i.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:i.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:i.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling,""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof t?function(t,e){for(var n={},r=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,c=r.split(e.delimiter,a),u=0;u<c.length;++u){var s,l,f=c[u],p=f.indexOf("]="),d=-1===p?f.indexOf("="):p+1;-1===d?(s=e.decoder(f,i.decoder),l=e.strictNullHandling?null:""):(s=e.decoder(f.slice(0,d),i.decoder),l=e.decoder(f.slice(d+1),i.decoder)),o.call(n,s)?n[s]=[].concat(n[s]).concat(l):n[s]=l}return n}(t,n):t,u=n.plainObjects?Object.create(null):{},s=Object.keys(c),l=0;l<s.length;++l){var f=s[l],p=a(f,c[f],n);u=r.merge(u,p,n)}return r.compact(u)}},wGKE:function(t,e,n){"use strict";t.exports=function(t){return function(e){return this.param(t,e)}}},wSS7:function(t,e,n){"use strict";var r={}.hasOwnProperty,o=Function.prototype.call;t.exports=o.bind?o.bind(r):function(t,e){return o.call(r,t,e)}},ynZC:function(t,e,n){"use strict";var r=n("r4FT"),o=n("0D0S"),i=n.n(o)()().publicRuntimeConfig.LARAVEL;e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r.a.get("".concat(i,"/nonce").concat(t?"/".concat(t):"")).then((function(t){return t.data}))}}}]);

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.