(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1398:function(n,t,i){n.exports=i(1489)},1489:function(n,t,i){"use strict";function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=Array(t);i<t;i++)r[i]=n[i];return r}i.r(t);var u=i(0),r=i.n(u),o=i(8),s=i(610),f=i.n(s);const h=document.getElementById("cookieConsent");Object(o.render)(r.a.createElement(function(){const n=f.a.get("cookie_consent"),t=function(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var e,o,s,u,f=[],r=!0,h=!1;try{if(s=(i=i.call(n)).next,0===t){if(Object(i)!==i)return;r=!1}else for(;!(r=(e=s.call(i)).done)&&(f.push(e.value),f.length!==t);r=!0);}catch(n){h=!0;o=n}finally{try{if(!r&&null!=i.return&&(u=i.return(),Object(u)!==u))return}finally{if(h)throw o;}}return f}}(n,t)||function(n,t){if(n){if("string"==typeof n)return e(n,t);var i={}.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}(Object(u.useState)(!n||"true"!=n),2),i=t[0],o=t[1];return r.a.createElement(r.a.Fragment,null,i&&r.a.createElement("div",{className:"cookie-message"},r.a.createElement("div",{className:"container-12"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-xs-12"},r.a.createElement("p",{className:"text-default text-center"},"We use cookies purely to enhance your experience with Celtic Castles. Find out more ",r.a.createElement("a",{href:"/privacy-statement/",className:"link-highlighted"},"here"),"."),r.a.createElement("div",null,r.a.createElement("button",{id:"cookieAccept",className:"button sm themed-b block",onClick:function(){return o(!1),void f.a.set("cookie_consent","true",{expires:365})}},"Accept")))))))},null),h)},27:function(n,t){"use strict";function it(n,t){var u=n.length,i,r;n.push(t);n:for(;;){if(i=u-1>>>1,r=n[i],!(void 0!==r&&0<b(r,t)))break n;n[i]=t;n[u]=r;u=i}}function u(n){return void 0===(n=n[0])?null:n}function w(n){var o=n[0],i,t,s;if(void 0!==o){if(i=n.pop(),i!==o){n[0]=i;n:for(t=0,s=n.length;t<s;){var f=2*(t+1)-1,e=n[f],u=f+1,r=n[u];if(void 0!==e&&0>b(e,i))void 0!==r&&0>b(r,e)?(n[t]=r,n[u]=i,t=u):(n[t]=e,n[f]=i,t=f);else{if(!(void 0!==r&&0>b(r,i)))break n;n[t]=r;n[u]=i;t=u}}}return o}return null}function b(n,t){var i=n.sortIndex-t.sortIndex;return 0!==i?i:n.id-t.id}function rt(n){for(var t=u(e);null!==t;){if(null===t.callback)w(e);else{if(!(t.startTime<=n))break;w(e);t.sortIndex=t.expirationTime;it(f,t)}t=u(e)}}function ut(n){if(l=!1,rt(n),!o)if(null!==u(f))o=!0,s(ft);else{var t=u(e);null!==t&&h(ut,t.startTime-n)}}function ft(n,s){var b,c,v,y,p;o=!1;l&&(l=!1,a());k=!0;b=i;try{for(rt(s),r=u(f);null!==r&&(!(r.expirationTime>s)||n&&!t.unstable_shouldYield());)c=r.callback,"function"==typeof c?(r.callback=null,i=r.priorityLevel,v=c(r.expirationTime<=s),s=t.unstable_now(),"function"==typeof v?r.callback=v:r===u(f)&&w(f),rt(s)):w(f),r=u(f);return null!==r?y=!0:(p=u(e),null!==p&&h(ut,p.startTime-s),y=!1),y}finally{r=null;i=b;k=!1}}var s,h,a,d,et,g,ot,ct,lt,at,tt,p,pt;if("object"==typeof performance&&"function"==typeof performance.now?(et=performance,t.unstable_now=function(){return et.now()}):(g=Date,ot=g.now(),t.unstable_now=function(){return g.now()-ot}),"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,st=null,ht=function(){if(null!==c)try{var n=t.unstable_now();c(!0,n);c=null}catch(n){throw setTimeout(ht,0),n;}};s=function(n){null!==c?setTimeout(s,0,n):(c=n,setTimeout(ht,0))};h=function(n,t){st=setTimeout(n,t)};a=function(){clearTimeout(st)};t.unstable_shouldYield=function(){return!1};d=t.unstable_forceFrameRate=function(){}}else{ct=window.setTimeout;lt=window.clearTimeout;"undefined"!=typeof console&&(at=window.cancelAnimationFrame,"function"!=typeof requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof at&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"));var v=!1,y=null,nt=-1,vt=5,yt=0;t.unstable_shouldYield=function(){return t.unstable_now()>=yt};d=function(){};t.unstable_forceFrameRate=function(n){0>n||125<n?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):vt=0<n?Math.floor(1e3/n):5};tt=new MessageChannel;p=tt.port2;tt.port1.onmessage=function(){if(null!==y){var n=t.unstable_now();yt=n+vt;try{y(!0,n)?p.postMessage(null):(v=!1,y=null)}catch(n){throw p.postMessage(null),n;}}else v=!1};s=function(n){y=n;v||(v=!0,p.postMessage(null))};h=function(n,i){nt=ct(function(){n(t.unstable_now())},i)};a=function(){lt(nt);nt=-1}}var f=[],e=[],wt=1,r=null,i=3,k=!1,o=!1,l=!1;pt=d;t.unstable_IdlePriority=5;t.unstable_ImmediatePriority=1;t.unstable_LowPriority=4;t.unstable_NormalPriority=3;t.unstable_Profiling=null;t.unstable_UserBlockingPriority=2;t.unstable_cancelCallback=function(n){n.callback=null};t.unstable_continueExecution=function(){o||k||(o=!0,s(ft))};t.unstable_getCurrentPriorityLevel=function(){return i};t.unstable_getFirstCallbackNode=function(){return u(f)};t.unstable_next=function(n){var t,r;switch(i){case 1:case 2:case 3:t=3;break;default:t=i}r=i;i=t;try{return n()}finally{i=r}};t.unstable_pauseExecution=function(){};t.unstable_requestPaint=pt;t.unstable_runWithPriority=function(n,t){switch(n){case 1:case 2:case 3:case 4:case 5:break;default:n=3}var r=i;i=n;try{return t()}finally{i=r}};t.unstable_scheduleCallback=function(n,i,r){var v=t.unstable_now(),c;switch(r="object"==typeof r&&null!==r&&"number"==typeof(r=r.delay)&&0<r?v+r:v,n){case 1:c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return n={id:wt++,callback:i,priorityLevel:n,startTime:r,expirationTime:c=r+c,sortIndex:-1},r>v?(n.sortIndex=r,it(e,n),null===u(f)&&n===u(e)&&(l?a():l=!0,h(ut,r-v))):(n.sortIndex=c,it(f,n),o||k||(o=!0,s(ft))),n};t.unstable_wrapCallback=function(n){var t=i;return function(){var r=i;i=t;try{return n.apply(this,arguments)}finally{i=r}}}},46:function(n){"use strict";function u(n){if(null==n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;n.exports=function(){var i,t,n,r;try{if(!Object.assign||(i=new String("abc"),i[5]="de","5"===Object.getOwnPropertyNames(i)[0]))return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"!==Object.getOwnPropertyNames(t).map(function(n){return t[n]}).join("")?!1:(r={},"abcdefghijklmnopqrst".split("").forEach(function(n){r[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(i){return!1}}()?Object.assign:function(n){for(var f,o,c,e,s=u(n),h=1;h<arguments.length;h++){for(c in f=Object(arguments[h]))i.call(f,c)&&(s[c]=f[c]);if(t)for(o=t(f),e=0;e<o.length;e++)r.call(f,o[e])&&(s[o[e]]=f[o[e]])}return s}},58:function(n,t,i){"use strict";n.exports=i(27)},610:function(n,t,i){var r,f,u;u=function(){function n(){for(var i,r,n=0,t={};n<arguments.length;n++){i=arguments[n];for(r in i)t[r]=i[r]}return t}function t(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function i(r){function u(){}function f(t,i,f){var s,o,e;if("undefined"!=typeof document){"number"==typeof(f=n({path:"/"},u.defaults,f)).expires&&(f.expires=new Date(1*new Date+864e5*f.expires));f.expires=f.expires?f.expires.toUTCString():"";try{s=JSON.stringify(i);/^[\{\[]/.test(s)&&(i=s)}catch(n){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,!0!==f[e]&&(o+="="+f[e].split(";")[0]));return document.cookie=t+"="+i+o}}function e(n,i){var s,u,f;if("undefined"!=typeof document){for(var e={},h=document.cookie?document.cookie.split("; "):[],o=0;o<h.length;o++){s=h[o].split("=");u=s.slice(1).join("=");i||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{if(f=t(s[0]),u=(r.read||r)(u,f)||t(u),i)try{u=JSON.parse(u)}catch(n){}if(e[f]=u,n===f)break}catch(n){}}return n?e[n]:e}}return u.set=f,u.get=function(n){return e(n,!1)},u.getJSON=function(n){return e(n,!0)},u.remove=function(t,i){f(t,"",n(i,{expires:-1}))},u.defaults={},u.withConverter=i,u}(function(){})};void 0===(f="function"==typeof(r=u)?r.call(t,i,t,n):r)||(n.exports=f);n.exports=u()}},[[1398,0,1]]])