https://myfai.fondoambiente.it/_next/static/chunks/pages/collezioni/catalogo-91b57b5b4bed7bc647f1.js
1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[47],{MJc2:function(t,e,r){var n=r("KEM+");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var i=r("ERkP"),c=r("8cHP").Link;t.exports=function(t){return i.createElement(t.route?c:"a",a(a({},t),{},{href:t.route||t.to||""}),t.children)}},"O+0J":function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collezioni/catalogo",function(){return r("oBEi")}])},OvWy:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return t&&Object.keys(t).length?Object.keys(t).map((function(e){var r=Array.isArray(t[e]);return!t[e]||r&&!t[e].length?"":"".concat(e,"=").concat(r?t[e].join(","):t[e])})).filter((function(t){return t})).join("&"):""}},Xhfp:function(t,e,r){"use strict";var n=r("QsI/"),o=r("r4FT"),a=r("0D0S");function i(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var i=n&&n.prototype instanceof u?n:u,l=Object.create(i.prototype);return c(l,"_invoke",function(r,n,o){var a,i,c,u=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return a=e,i=0,c=t,p.n=r,s}};function h(r,n){for(i=r,c=n,e=0;!f&&u&&!o&&e<l.length;e++){var o,a=l[e],h=p.p,d=a[2];r>3?(o=d===n)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=h&&((o=r<2&&h<a[1])?(i=0,p.v=n,p.n=a[1]):h<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,i=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),i=l,c=d;(e=i<2?t:c)||!f;){a||(i?i<3?(i>1&&(p.n=-1),h(i,c)):p.n=c:p.v=c);try{if(u=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(f=p.n<0)?c:r.call(n,p))!==s)break}catch(e){a=t,i=1,c=e}finally{u=1}}return{value:e,done:f}}}(r,o,a),!0),l}var s={};function u(){}function l(){}function f(){}e=Object.getPrototypeOf;var p=[][n]?e(e([][n]())):(c(e={},n,(function(){return this})),e),h=f.prototype=u.prototype=Object.create(p);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,c(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=f,c(h,"constructor",f),c(f,"constructor",l),l.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(h),c(h,o,"Generator"),c(h,n,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),(i=function(){return{w:a,m:d}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,e,r,n){function a(e,r){c(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}var s=r.n(a)()().publicRuntimeConfig,u=s.COMWORK_URL,l=s.COMWORK_CLIENT_ID,f=s.COMWORK_CLIENT_SECRET,p=s.COMWORK_APP_ID,h="".concat(u,"/oauth/token?grant_type=client_credentials&scope=read&client_id=").concat(l,"&client_secret=").concat(f),d=function(){var t=Object(n.a)(i().m((function t(){var e;return i().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,o.a.post(h);case 1:return e=t.v,t.a(2,e.data.access_token)}}),t)})));return function(){return t.apply(this,arguments)}}(),b=function(){var t=Object(n.a)(i().m((function t(e,r,n){var a;return i().w((function(t){for(;;)switch(t.n){case 0:if(r){t.n=2;break}return t.n=1,d();case 1:r=t.v;case 2:return e+="?appid=".concat(p).concat(n?"&"+n:""),t.n=3,o.a.get(e,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data}
1)).catch((function(){return!1}));case 3:if(a=t.v){t.n=6;break}return t.n=4,d();case 4:return r=t.v,t.n=5,o.a.get(e,{headers:{Authorization:"Bearer ".concat(r)}}).then((function(t){return t.data}));case 5:a=t.v;case 6:return t.a(2,{token:r,response:a})}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.a=b},fwig:function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return a}));var n=r("s9SB"),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t.headers.cookie)return e;var r=Object(n.parse)(t.headers.cookie);return r.comworkToken},a=function(t){return Object(n.serialize)("comworkToken",String(t,{httpOnly:!0,maxAge:2592e3,path:"/",sameSite:"Strict",secure:!0}))}},oBEi:function(t,e,r){"use strict";r.r(e);var n=r("QsI/"),o=r("zjfJ"),a=r("HbGN"),i=r("9fIP"),c=r("MMYH"),s=r("K/z8"),u=r("sRHE"),l=r("8K1b"),f=r("ERkP"),p=r.n(f),h=r("j/s1"),d=r("7xIC"),b=r.n(d),y=r("QtE3"),v=r("uPMs"),g=r("s+D9");function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var w=function(t){return"undefined"===typeof t?[]:t.map((function(t){var e,r,n={category:t.category,title:t.title,thumbnail:{url:t.thumbnailUrl},link:"/collezioniCatalogo/".concat(t.id),showArrowForward:!0,date:Object(g.a)(t)};t.creator&&t.creator.length&&(n=m(m({},n),{},{supertitle:null!==(e=null!==(r=t.creator[0].name)&&void 0!==r?r:t.creator[0].culture)&&void 0!==e?e:t.creator[0].productionPlace}));return n}))},j=r("Lm5w"),S=r("0D0S"),k=r.n(S),P=r("Xhfp");function C(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return _(u,"_invoke",function(r,n,o){var a,c,s,u=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return a=e,c=0,s=t,p.n=r,i}};function h(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e<l.length;e++){var o,a=l[e],h=p.p,d=a[2];r>3?(o=d===n)&&(s=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=h&&((o=r<2&&h<a[1])?(c=0,p.v=n,p.n=a[1]):h<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),c=l,s=d;(e=c<2?t:s)||!f;){a||(c?c<3?(c>1&&(p.n=-1),h(c,s)):p.n=s:p.v=s);try{if(u=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(f=p.n<0)?s:r.call(n,p))!==i)break}catch(e){a=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,a),!0),u}var i={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(_(e={},n,(function(){return this})),e),f=u.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,_(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,_(f,"constructor",u),_(u,"constructor",s),s.displayName="GeneratorFunction",_(u,o,"GeneratorFunction"),_(f),_(f,o,"Generator"),_(f,n,(function(){return this})),_(f,"toString",(function(){return"[object Generator]"})),(C=function(){return{w:a,m:p}})()}function _(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(_=function(t,e,r,n){function a(e,r){_(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?E(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var z=k()().publicRuntimeConfig.COMWORK_URL,x="".concat(z,"/public/api/catalogue"),F=function(){var t=Object(n.a)(C().m((function t(e,r,n){return C().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(P.a)(x,e,r).then((function(t){var e=t.token,r=t.response;return{token:e,result:r.result,facets:r.facets,blocksize:r.blocksize,page:r.page,totalSize:r.totalSize,filters:T(T({},r.filters.reduce((function(t,e){return T(T({},t),{},Object(o.a)({},e.name,e.values))}),{})),n?{q:n}:{}),appliedFilters:r.filters}}));case 1:return t.a(2,t.v)}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),Y=r("fwig"),L=r("OvWy"),M=["seo","breadcrumbs"],D=["id"],R=p.a.createElement;function N(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return I(u,"_invoke",function(r,n,o){var a,c,s,u=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return a=e,c=0,s=t,p.n=r,i}};function h(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e<l.length;e++){var o,a=l[e],h=p.p,d=a[2];r>3?(o=d===n)&&(s=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=t):a[0]<=h&&((o=r<2&&h<a[1])?(c=0,p.v=n,p.n=a[1]):h<d&&(o=r<3||a[0]>n||n>d)&&(a[4]=r,a[5]=n,p.n=d,c=0))}if(o||r>1)return i;throw f=!0,n}return function(o,l,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),c=l,s=d;(e=c<2?t:s)||!f;){a||(c?c<3?(c>1&&(p.n=-1),h(c,s)):p.n=s:p.v=s);try{if(u=2,a){if(c||(o="next"),e=a[o]){if(!(e=e.call(a,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=a.return)&&e.call(a),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=t}else if((e=(f=p.n<0)?s:r.call(n,p))!==i)break}catch(e){a=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,a),!0),u}var i={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(I(e={},n,(function(){return this})),e),f=u.prototype=c.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,I(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,I(f,"constructor",u),I(u,"constructor",s),s.displayName="GeneratorFunction",I(u,o,"GeneratorFunction"),I(f),I(f,o,"Generator"),I(f,n,(function(){return this})),I(f,"toString",(function(){return"[object Generator]"})),(N=function(){return{w:a,m:p}})()}function I(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(I=function(t,e,r,n){function a(e,r){I(t,e,(function(t){return this._invoke(e,r,t)}))}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(a("next",0),a("throw",1),a("return",2))})(t,e,r,n)}function G(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?G(Object(r),!0).forEach((function(e){Object(o.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function q(t,e,r){return e=Object(u.a)(e),Object(s.a)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,r||[],Object(u.a)(t).constructor):e.apply(t,r))}var B=k()().publicRuntimeConfig.APP_DOMAIN,H=function(t){function e(t){var r;Object(i.a)(this,e),r=q(this,e);t.seo,t.breadcrumbs;var n=Object(a.a)(t,M);return r.state=A({meta:{loading:!0}},n),r.handleSearchChange=r.handleSearchChange.bind(r),r.handleSearchReset=r.handleSearchReset.bind(r),r.handlePaginationChange=r.handlepaginationChange.bind(r),r.handlerClearFilter=r.handlerClearFilter.bind(r),r.search=r.search.bind(r),r.serializeFilters=L.a,r.canLoadMore=r.canloadmore.bind(r),r.canLoadMorep=!1,r}
1return Object(l.a)(e,t),Object(c.a)(e,[{key:"setLoading",value:function(t){this.setState(A(A({},this.state),{},{meta:A(A({},this.state.meta),{},{loading:t})}))}},{key:"canloadmore",value:function(){var t=this.state.totalSize/this.state.blocksize,e=this.state.page+1;this.canLoadMorep=t>e}},{key:"componentDidMount",value:function(){this.setLoading(!1),this.canLoadMore()}},{key:"search",value:function(){var t=Object(n.a)(N().m((function t(){var e,r,n,o,a;return N().w((function(t){for(;;)switch(t.n){case 0:return this.setLoading(!0),e=this.state,r=e.token,n=e.filters,o=this.serializeFilters(n),t.n=1,F(r,o,null===n||void 0===n?void 0:n.q);case 1:a=t.v,this.setState(A(A({},this.state),a)),this.updateRoute(),this.canLoadMore(),this.setLoading(!1);case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"reload",value:function(){var t=Object(n.a)(N().m((function t(){var e,r,n,o,a,i;return N().w((function(t){for(;;)switch(t.n){case 0:return this.setLoading(!0),e=this.state,r=e.token,n=e.filters,o=this.state.result,a=this.state.filters,t.n=1,F(r,this.serializeFilters(n));case 1:(i=t.v).result=o.concat(i.result),i.filters=a,this.setState(A(A({},this.state),i)),this.canLoadMore(),this.updateRoute(),this.setLoading(!1);case 2:return t.a(2)}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"handleSearchChange",value:function(t){this.setState(A(A({},this.state),{},{filters:A(A({},this.state.filters),t)})),this.canLoadMore()}},{key:"handleSearchReset",value:function(){var t=this;this.setState(A(A({},this.state),{},{filters:{}})),setTimeout(Object(n.a)(N().m((function e(){return N().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.search();case 1:return e.a(2,e.v)}}),e)}))))}},{key:"handlepaginationChange",value:function(){var t=this,e=this.state.page;this.setState(A(A({},this.state),{},{filters:A(A({},this.state.filters),{},{page:e+1})})),setTimeout(Object(n.a)(N().m((function e(){return N().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.reload();case 1:return e.a(2,e.v)}}),e)}))))}},{key:"handlerClearFilter",value:function(){var t=Object(n.a)(N().m((function t(e){var r,a,i,c=this;return N().w((function(t){for(;;)switch(t.n){case 0:r=e.split(".")[0],a=e.split(".")[1],i=A(A({},this.state.filters),{},Object(o.a)({page:0},r,this.state.filters[r].filter((function(t){return t!==a})))),this.setState(A(A({},this.state),{},{filters:i})),setTimeout(Object(n.a)(N().m((function t(){return N().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,c.search();case 1:return t.a(2,t.v)}}),t)}))));case 1:return t.a(2)}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"updateRoute",value:function(){var t=this.state.filters,e=this.serializeFilters(t);b.a.replace({pathname:"/collezioni/catalogo"},"/collezioniCatalogo".concat(e?"?".concat(e):""),{shallow:!0}),this.canLoadMore()}},{key:"render",value:function(){var t=this.props,e=t.seo,r=t.breadcrumbs,n=this.state,o=n.meta,a=(n.blocksize,n.page,n.totalSize,n.loadingMore),i=n.loading,c=n.result,s=n.filters,u=n.facets,l=n.appliedFilters;return R(v.a,{seo:e},o&&o.loading&&R(y.Loading,null),R(y.CollectionsHero,{title:"Il patrimonio e le collezioni del FAI",breadCrumbs:r,height:"extra-small"}),R(y.Background,{color:"grey"},R(y.Wrapper,{size:"big"},R(K,null,R(y.CollectionsFilters,{filters:s,facets:u,appliedFilters:l,handleSearchChange:this.handleSearchChange,handleSearchSubmit:this.search,handleSearchReset:this.handleSearchReset,handlerClearFilter:this.handlerClearFilter}),R(W,null,"Il catalogo online \xe8 in costante implementazione e verr\xe0 periodicamente aggiornato, revisionato e arricchito.",R("br",null),R("br",null),"The catalogue is continually being compiled, and as such it will be periodically updated, revised and expanded.")),!c||!c.length&&R(y.Padder,{size:"medium",align:"center"},R("div",{style:{textAlign:"center"}},"Nessun risultato trovato")),c&&c.length>0&&R(p.a.Fragment,null,R(y.CollectionsListOfCards,{wrap:"big",cards:w(c),CardComponent:y.CollectionsListCard,vertical:!0}),this.canLoadMorep&&!i&&R(y.Padder,{size:"small"},R(y.Button,{onClick:this.handlePaginationChange,children:a?"Carico...":"Mostra altri",centered:!0}))))),R(y.FasciaNewsletterApp,null),R(y.FasciaSupporto,null))}}],[{key:"getInitialProps",value:function(){var t=Object(n.a)(N().m((function t(e){var r,n,o,i,c,s,u,l;return N().w((function(t){for(;;)switch(t.n){case 0:return r=e.req,n=e.res,o=e.query,i=Object(Y.b)(r),o.id,c=Object(a.a)(o,D),t.n=1,F(i,Object(L.a)(c),null===o||void 0===o?void 0:o.q);case 1:return s=t.v,n.setHeader("Set-Cookie",Object(Y.a)(s.token)),u={url:"".concat(B,"/collezioniCatalogo"),title:"Catalogo",description:"Cerca in tutto il catalogo"},l=[["/","Home"],["/collezioni","Collezioni"],["/collezioniCatalogo","Catalogo"]],t.a(2,A({seo:u,breadcrumbs:l},s))}}),t)})));return function(e){return t.apply(this,arguments)}}()}])}(f.Component),K=h.d.div.withConfig({displayName:"catalogo__SideFilters",componentId:"sc-1wz7rme-0"})(["flex-shrink:0;flex-basis:30%;background:#f2f2f2;padding:1rem;"]),W=h.d.p.withConfig({displayName:"catalogo__FiltersDescription",componentId:"sc-1wz7rme-1"})(["margin-top:40px;"]),J=(h.d.h1.withConfig({displayName:"catalogo__Title",componentId:"sc-1wz7rme-2"})(["margin-top:40px;"]),h.d.img.withConfig({displayName:"catalogo__Image",componentId:"sc-1wz7rme-3"})(["margin-top:40px;"]),Object(j.b)(H));e.default=J},"s+D9":function(t,e,r){"use strict";e.a=function(t){if(t.date&&t.date.length){var e,r,n=t.date[0];if("SINGLE"===n.periodMode){if(n.earliestYear)return"".concat(n.earliestYear.day?n.earliestYear.day:"").concat(n.earliestYear.month?n.earliestYear.day?"/"+n.earliestYear.month:" ".concat(n.earliestYear.month):"").
1concat(n.earliestYear.year?n.earliestYear.month?"/"+n.earliestYear.year:" ".concat(n.earliestYear.year):"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:"");var o;if(n.earliestCentury)return"".concat(null!==(o=n.earliestCentury.century)&&void 0!==o?o:"")}if("TIMESPAN"===n.periodMode)if(n.earliestYear&&n.latestYear)return"".concat(n.earliestYear.day?" "+n.earliestYear.day:"").concat(n.earliestYear.month?" "+n.earliestYear.month:"").concat(null!==(e=n.earliestYear.year)&&void 0!==e?e:"").concat(n.earliestYear.qualifier?" "+n.earliestYear.qualifier:""," - ").concat(n.latestYear.day?" "+n.latestYear.day:"").concat(n.latestYear.month?" "+n.latestYear.month:"").concat(null!==(r=n.latestYear.year)&&void 0!==r?r:"").concat(n.latestYear.qualifier?" "+n.latestYear.qualifier:"")}}},s9SB:function(t,e,r){"use strict";e.parse=function(t,e){if("string"!==typeof t)throw new TypeError("argument str must be a string");var r={},n=(e||{}).decode||a,o=0;for(;o<t.length;){var i=t.indexOf("=",o);if(-1===i)break;var s=t.indexOf(";",o);if(-1===s)s=t.length;else if(s<i){o=t.lastIndexOf(";",i-1)+1;continue}var u=t.slice(o,i).trim();if(void 0===r[u]){var l=t.slice(i+1,s).trim();34===l.charCodeAt(0)&&(l=l.slice(1,-1)),r[u]=c(l,n)}o=s+1}return r},e.serialize=function(t,e,r){var a=r||{},c=a.encode||i;if("function"!==typeof c)throw new TypeError("option encode is invalid");if(!o.test(t))throw new TypeError("argument name is invalid");var s=c(e);if(s&&!o.test(s))throw new TypeError("argument val is invalid");var u=t+"="+s;if(null!=a.maxAge){var l=a.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(a.domain){if(!o.test(a.domain))throw new TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw new TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var f=a.expires;if(!function(t){return"[object Date]"===n.call(t)||t instanceof Date}(f)||isNaN(f.valueOf()))throw new TypeError("option expires is invali
1d");u+="; Expires="+f.toUTCString()}a.httpOnly&&(u+="; HttpOnly");a.secure&&(u+="; Secure");if(a.priority){switch("string"===typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){switch("string"===typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var n=Object.prototype.toString,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function i(t){return encodeURIComponent(t)}function c(t,e){try{return e(t)}catch(r){return t}}}},[["O+0J",1,0,5,7,3,2,6,4,8,9,10,11,13,12,15,14,16]]]);
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.