PageSourceSearch

https://snudesignweek-2023.vercel.app/_next/static/chunks/407.6f0e239cc098ee5b.js

js snudesignweek-2023.vercel.app collected 2026-10-03 07:46:48 UTC 75,774 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[407],{9510:function(e,n,t){t.r(n),t.d(n,{Collection:function(){return xn},Property:function(){return We}});var o=t(6042),r=t(9396),i=t(9534),a=t(253),l=t(5893),c=t(7294),s=t(4269),u=t(4463),d=t(2977),v=t(8110),p=function(e,n){if(!e)return null;if(e.startsWith("data:"))return e;if(e.startsWith("https://images.unsplash.com"))return e;try{var t=new URL(e);if(t.pathname.startsWith("/secure.notion-static.com")&&t.hostname.endsWith(".amazonaws.com")&&t.searchParams.has("X-Amz-Credential")&&t.searchParams.has("X-Amz-Signature")&&t.searchParams.has("X-Amz-Algorithm"))return e;if(t.hostname.endsWith("file.notion.so"))return e}catch(i){}e.startsWith("/images")&&(e="https://www.notion.so".concat(e)),e="https://www.notion.so".concat(e.startsWith("/image")?e:"/image/".concat(encodeURIComponent(e)));var o=new URL(e),r="space"===n.parent_table?"block":n.parent_table;return"collection"!==r&&"team"!==r||(r="block"),o.searchParams.set("table",r),o.searchParams.set("id",n.id),o.searchParams.set("cache","v2"),e=o.toString()},h=function(e){return function(n){return n=(n||"").replace(/-/g,""),e&&n===e?"/":"/".concat(n)}},m=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter((function(e){return!!e})).join(" ")},f=new Set(["youtu.be","youtube.com","www.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com"]);var x=function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 260 260"},e),{children:(0,l.jsx)("g",{children:(0,l.jsx)("path",{d:"M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.1618878,230.167899 96.106777,219.472176 C60.4967585,227.215235 52.9826207,204.369712 52.9826207,204.369712 C47.1599584,189.574598 38.770408,185.640538 38.770408,185.640538 C27.1568785,177.696113 39.6458206,177.859325 39.6458206,177.859325 C52.4993419,178.762293 59.267365,191.04987 59.267365,191.04987 C70.6837675,210.618423 89.2115753,204.961093 96.5158685,201.690482 C97.6647155,193.417512 100.981959,187.77078 104.642583,184.574357 C76.211799,181.33766 46.324819,170.362144 46.324819,121.315702 C46.324819,107.340889 51.3250588,95.9223682 59.5132437,86.9583937 C58.1842268,83.7344152 53.8029229,70.715562 60.7532354,53.0843636 C60.7532354,53.0843636 71.5019501,49.6441813 95.9626412,66.2049595 C106.172967,63.368876 117.123047,61.9465949 128.00106,61.8978432 C138.879073,61.9465949 149.837632,63.368876 160.067033,66.2049595 C184.49805,49.6441813 195.231926,53.0843636 195.231926,53.0843636 C202.199197,70.715562 197.815773,83.7344152 196.486756,86.9583937 C204.694018,95.9223682 209.660343,107.340889 209.660343,121.315702 C209.660343,170.478725 179.716133,181.303747 151.213281,184.472614 C155.80443,188.444828 159.895342,196.234518 159.895342,208.176593 C159.895342,225.303317 159.746968,239.087361 159.746968,243.303333 C159.746968,246.709601 162.05102,250.70089 168.53925,249.443941 C219.370432,232.499507 256,184.536204 256,128.00106 C256,57.3066942 198.691187,0 128.00106,0 Z M47.9405593,182.340212 C47.6586465,182.976105 46.6581745,183.166873 45.7467277,182.730227 C44.8183235,182.312656 44.2968914,181.445722 44.5978808,180.80771 C44.8734344,180.152739 45.876026,179.97045 46.8023103,180.409216 C47.7328342,180.826786 48.2627451,181.702199 47.9405593,182.340212 Z M54.2367892,187.958254 C53.6263318,188.524199 52.4329723,188.261363 51.6232682,187.366874 C50.7860088,186.474504 50.6291553,185.281144 51.2480912,184.70672 C51.8776254,184.140775 53.0349512,184.405731 53.8743302,185.298101 C54.7115892,186.201069 54.8748019,187.38595 54.2367892,187.958254 Z M58.5562413,195.146347 C57.7719732,195.691096 56.4895886,195.180261 55.6968417,194.042013 C54.9125733,192.903764 54.9125733,191.538713 55.713799,190.991845 C56.5086651,190.444977 57.7719732,190.936735 58.5753181,192.066505 C59.3574669,193.22383 59.3574669,194.58888 58.5562413,195.146347 Z M65.8613592,203.471174 C65.1597571,204.244846 63.6654083,204.03712 62.5716717,202.981538 C61.4524999,201.94927 61.1409122,200.484596 61.8446341,199.710926 C62.5547146,198.935137 64.0575422,199.15346 65.1597571,200.200564 C66.2704506,201.230712 66.6095936,202.705984 65.8613592,203.471174 Z M75.3025151,206.281542 C74.9930474,207.284134 73.553809,207.739857 72.1039724,207.313809 C70.6562556,206.875043 69.7087748,205.700761 70.0012857,204.687571 C70.302275,203.678621 71.7478721,203.20382 73.2083069,203.659543 C74.6539041,204.09619 75.6035048,205.261994 75.3025151,206.281542 Z M86.046947,207.473627 C86.0829806,208.529209 84.8535871,209.404622 83.3316829,209.4237 C81.8013,209.457614 80.563428,208.603398 80.5464708,207.564772 C80.5464708,206.498591 81.7483088,205.631657 83.2786917,205.606221 C84.8005962,205.576546 86.046947,206.424403 86.046947,207.473627 Z M96.6021471,207.069023 C96.7844366,208.099171 95.7267341,209.156872 94.215428,209.438785 C92.7295577,209.710099 91.3539086,209.074206 91.1652603,208.052538 C90.9808515,206.996955 92.0576306,205.939253 93.5413813,205.66582 C95.054807,205.402984 96.4092596,206.021919 96.6021471,207.069023 Z",fill:"#161614"})})}))},g=function(e){var n,t,o,r=e.block,i=e.inline,a=e.className,c=ce().components,u=(null===r||void 0===r?void 0:r.format)||{},d=u.original_url,v=u.attributes,p=u.domain;if(!d||!v)return null;var h,f=null===(n=v.find((function(e){return"title"===e.id})))||void 0===n?void 0:n.values[0],g=null===(t=v.find((function(e){return"owner"===e.id})))||void 0===t?void 0:t.values[0],j=null===(o=v.find((function(e){return"updated_at"===e.id})))||void 0===o?void 0:o.values[0],y=j?(0,s.c8)(j):null;if("github.com"!==p)return null;if(h=(0,l.jsx)(x,{}),g){var b=g.split("/");g=b[b.length-1]}return(0,l.jsxs)(c.Link,{target:"_blank",rel:"noopener noreferrer",href:d,className:m("notion-external",i?"notion-external-mention":"notion-external-block notion-row",a),children:[h&&(0,l.jsx)("div",{className:"notion-external-image",children:h}),(0,l.jsxs)("div",{className:"notion-external-description",children:[(0,l.jsx)("div",{className:"notion-external-title",children:f}),(g||y)&&(0,l.jsxs)("div",{className:"notion-external-subtitle",children:[g&&(0,l.jsx)("span",{children:g}),g&&y&&(0,l.jsx)("span",{children:" \u2022 "}),y&&(0,l.jsxs)("span",{children:["Updated ",y]})]})]})]})},j=t(3324),y=function(e){return(0,l.jsx)(j.Img,(0,o.Z)({},e))},b=function(e){var n,t,a=e.block,c=e.className,u=e.defaultIcon,d=(0,i.Z)(e,["block","className","defaultIcon"]),v=ce().recordMap;if(!a)return null;if("collection_view_page"===a.type||"collection_view"===a.type){var p=(0,s.Ho)(a,v);if(!p)return null;var h=[[p]];
1return(0,l.jsxs)("span",(0,r.Z)((0,o.Z)({className:m("notion-page-title",c)},d),{children:[(0,l.jsx)(de,{block:a,defaultIcon:u,className:"notion-page-title-icon"}),(0,l.jsx)("span",{className:"notion-page-title-text",children:(0,l.jsx)(k,{value:h,block:a})})]}))}return(null===(n=a.properties)||void 0===n?void 0:n.title)?(0,l.jsxs)("span",(0,r.Z)((0,o.Z)({className:m("notion-page-title",c)},d),{children:[(0,l.jsx)(de,{block:a,defaultIcon:u,className:"notion-page-title-icon"}),(0,l.jsx)("span",{className:"notion-page-title-text",children:(0,l.jsx)(k,{value:null===(t=a.properties)||void 0===t?void 0:t.title,block:a})})]})):null},w=c.memo(b),k=function(e){var n=e.value,t=e.block,i=e.linkProps,u=e.linkProtocol,d=ce(),v=d.components,p=d.recordMap,h=d.mapPageUrl,m=d.mapImageUrl,f=d.rootDomain;return(0,l.jsx)(c.Fragment,{children:null===n||void 0===n?void 0:n.map((function(e,n){var d=(0,a.Z)(e,2),x=d[0],j=d[1];if(!j)return","===x?(0,l.jsx)("span",{style:{padding:"0.5em"}},n):(0,l.jsx)(c.Fragment,{children:x},n);var b=j.reduce((function(e,n){switch(n[0]){case"p":var a,c=n[1],d=null===(a=p.block[c])||void 0===a?void 0:a.value;return d?(0,l.jsx)(v.PageLink,{className:"notion-link",href:h(c),children:(0,l.jsx)(w,{block:d})}):(console.log('"p" missing block',c),null);case"\u2023":var x=n[1][0],j=n[1][1];if("u"===x){var b,k=null===(b=p.notion_user[j])||void 0===b?void 0:b.value;if(!k)return console.log('"\u2023" missing user',j),null;var N=[k.given_name,k.family_name].filter(Boolean).join(" ");return(0,l.jsx)(y,{className:"notion-user",src:m(k.profile_photo,t),alt:N})}var Z,_=null===(Z=p.block[j])||void 0===Z?void 0:Z.value;return _?(0,l.jsx)(v.PageLink,(0,r.Z)((0,o.Z)({className:"notion-link",href:h(j)},i),{target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(w,{block:_})})):(console.log('"\u2023" missing block',x,j),null);case"h":return(0,l.jsx)("span",{className:"notion-".concat(n[1]),children:e});case"c":return(0,l.jsx)("code",{className:"notion-inline-code",children:e});case"b":return(0,l.jsx)("b",{children:e});case"i":return(0,l.jsx)("em",{children:e});case"s":return(0,l.jsx)("s",{children:e});case"_":return(0,l.jsx)("span",{className:"notion-inline-underscore",children:e});case"e":return(0,l.jsx)(v.Equation,{math:n[1],inline:!0});case"m":default:return e;case"a":var C=n[1],M=C.substr(1),V=(0,s.q5)(M,{uuid:!0});if(("/"===C[0]||C.includes(f))&&V){var z=C.includes(f)?C:"".concat(h(V)).concat((E=C).includes("#")?E.replace(/^.+(#.+)$/,"$1"):"");return(0,l.jsx)(v.PageLink,(0,r.Z)((0,o.Z)({className:"notion-link",href:z},i),{children:e}))}return(0,l.jsx)(v.Link,(0,r.Z)((0,o.Z)({className:"notion-link",href:u?"".concat(u,":").concat(n[1]):n[1]},i),{children:e}));case"d":var I=n[1],L=null===I||void 0===I?void 0:I.type;if("date"===L){var P=I.start_date;return(0,s.p6)(P)}if("daterange"===L){var H=I.start_date,F=I.end_date;return"".concat((0,s.p6)(H)," \u2192 ").concat((0,s.p6)(F))}return e;case"u":var B,S=n[1],R=null===(B=p.notion_user[S])||void 0===B?void 0:B.value;if(!R)return console.log("missing user",S),null;var U=[R.given_name,R.family_name].filter(Boolean).join(" ");return(0,l.jsx)(y,{className:"notion-user",src:m(R.profile_photo,t),alt:U});case"eoi":var D,T=n[1],A=null===(D=p.block[T])||void 0===D?void 0:D.value;return(0,l.jsx)(g,{block:A,inline:!0})}var E}),(0,l.jsx)(l.Fragment,{children:x}));return(0,l.jsx)(c.Fragment,{children:b},n)}))})},N=t(3137),Z=function(e){var n,t,a,u=e.src,d=e.alt,v=e.className,p=e.style,h=e.zoomable,f=void 0!==h&&h,x=e.priority,g=void 0!==x&&x,j=e.height,y=e.width,b=(0,i.Z)(e,["src","alt","className","style","zoomable","priority","height","width"]),w=p||{},k=w.objectFit,Z=(0,i.Z)(w,["objectFit"]),_=k?"notion-object-".concat(k):"",C=m(_,v),M=ce(),V=M.recordMap,z=M.zoom,I=M.previewImages,L=M.forceCustomImages,P=M.components,H=c.useRef(z?z.clone():null),F=I?null!==(a=null===V||void 0===V||null===(n=V.preview_images)||void 0===n?void 0:n[u])&&void 0!==a?a:null===V||void 0===V||null===(t=V.preview_images)||void 0===t?void 0:t[(0,s.D5)(u)]:null,B=c.useCallback((function(e){f&&(e.target.src||e.target.srcset)&&H.current&&H.current.attach(e.target)}),[H,f]),S=c.useCallback((function(e){H.current&&e&&H.current.attach(e)}),[H]),R=c.useMemo((function(){return f?S:void 0}),[f,S]);if(F){var U=(j||F.originalHeight)/(y||F.originalWidth);
1return P.Image?(0,l.jsx)(P.Image,{src:u,alt:d,style:Z,className:C,width:y,height:j,blurDataURL:F.dataURIBase64,placeholder:"blur",priority:g,onLoad:B}):(0,l.jsx)(N.AZ,(0,r.Z)((0,o.Z)({src:u},b),{experimentalDecode:!0,children:function(e){var n=e.imageState,t=e.ref,r=n===N.zl.LoadSuccess,i={width:"100%"},a={};return j?i.height=j:(a.position="absolute",i.paddingBottom="".concat(100*U,"%")),(0,l.jsxs)("div",{className:m("lazy-image-wrapper",r&&"lazy-image-loaded",C),style:i,children:[(0,l.jsx)("img",{className:"lazy-image-preview",src:F.dataURIBase64,alt:d,ref:t,style:Z,decoding:"async"}),(0,l.jsx)("img",{className:"lazy-image-real",src:u,alt:d,ref:R,style:(0,o.Z)({},Z,a),width:y,height:j,decoding:"async",loading:"lazy"})]})}}))}return P.Image&&L?(0,l.jsx)(P.Image,{src:u,alt:d,className:C,style:Z,width:y||null,height:j||null,priority:g,onLoad:B}):(0,l.jsx)("img",(0,o.Z)({className:C,style:Z,src:u,alt:d,ref:R,loading:"lazy",decoding:"async"},b))},_=t(3493),C=t.n(_);var M=t(9218),V=function(e){var n=e.className,t=(0,i.Z)(e,["className"]);return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({className:m("notion-icon",n),viewBox:"0 0 17 17"},t),{children:(0,l.jsx)("path",{d:"M6.78027 13.6729C8.24805 13.6729 9.60156 13.1982 10.709 12.4072L14.875 16.5732C15.0684 16.7666 15.3232 16.8633 15.5957 16.8633C16.167 16.8633 16.5713 16.4238 16.5713 15.8613C16.5713 15.5977 16.4834 15.3516 16.29 15.1582L12.1504 11.0098C13.0205 9.86719 13.5391 8.45215 13.5391 6.91406C13.5391 3.19629 10.498 0.155273 6.78027 0.155273C3.0625 0.155273 0.0214844 3.19629 0.0214844 6.91406C0.0214844 10.6318 3.0625 13.6729 6.78027 13.6729ZM6.78027 12.2139C3.87988 12.2139 1.48047 9.81445 1.48047 6.91406C1.48047 4.01367 3.87988 1.61426 6.78027 1.61426C9.68066 1.61426 12.0801 4.01367 12.0801 6.91406C12.0801 9.81445 9.68066 12.2139 6.78027 12.2139Z"})}))},z=t(4111),I=t(7568),L=t(1438),P=t(4924),H=t(8029),F=t(5950),B=t(7582),S=function(e){var n=e.className,t=(0,i.Z)(e,["className"]);return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({className:m("notion-icon",n)},t),{viewBox:"0 0 30 30",children:(0,l.jsx)("path",{d:"M15,0C6.716,0,0,6.716,0,15s6.716,15,15,15s15-6.716,15-15S23.284,0,15,0z M22,20.6L20.6,22L15,16.4L9.4,22L8,20.6l5.6-5.6 L8,9.4L9.4,8l5.6,5.6L20.6,8L22,9.4L16.4,15L22,20.6z"})}))},R=function(e){var n=e.className,t=(0,i.Z)(e,["className"]);return(0,l.jsxs)("svg",(0,r.Z)((0,o.Z)({className:m("notion-icon",n)},t),{viewBox:"0 0 24 24",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{x1:"28.1542969%",y1:"63.7402344%",x2:"74.6289062%",y2:"17.7832031%",id:"linearGradient-1",children:[(0,l.jsx)("stop",{stopColor:"rgba(164, 164, 164, 1)",offset:"0%"}),(0,l.jsx)("stop",{stopColor:"rgba(164, 164, 164, 0)",stopOpacity:"0",offset:"100%"})]})}),(0,l.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",children:(0,l.jsx)("g",{transform:"translate(-236.000000, -286.000000)",children:(0,l.jsxs)("g",{transform:"translate(238.000000, 286.000000)",children:[(0,l.jsx)("circle",{id:"Oval-2",stroke:"url(#linearGradient-1)",strokeWidth:"4",cx:"10",cy:"12",r:"10"}),(0,l.jsx)("path",{d:"M10,2 C4.4771525,2 0,6.4771525 0,12",id:"Oval-2",stroke:"rgba(164, 164, 164, 1)",strokeWidth:"4"}),(0,l.jsx)("rect",{id:"Rectangle-1",fill:"rgba(164, 164, 164, 1)",x:"8",y:"0",width:"4",height:"4",rx:"8"})]})})})]}))},U=function(e){(0,H.Z)(t,e);var n=(0,F.Z)(t);function t(e){var i;(0,L.Z)(this,t),(i=n.call(this,e)).state={isLoading:!1,query:"",searchResult:null,searchError:null},i._onAfterOpen=function(){i._inputRef.current&&i._inputRef.current.focus()},i._onChangeQuery=function(e){var n=e.target.value;i.setState({query:n}),n.trim()?i._search():i.setState({isLoading:!1,searchResult:null,searchError:null})},i._onClearQuery=function(){i._onChangeQuery({target:{value:""}})};var a=(0,z.Z)(i);i._warmupSearch=(0,I.Z)((function(){var e,n,t;return(0,B.__generator)(this,(function(o){switch(o.label){case 0:return e=a.props,n=e.searchNotion,t=e.rootBlockId,[4,n({query:"",ancestorId:t})];case 1:return o.sent(),[2]}}))}));var l=(0,z.Z)(i);return i._searchImpl=(0,I.Z)((function(){var e,n,t,i,a,c,u,d,v;return(0,B.__generator)(this,(function(p){switch(p.label){case 0:return e=l.props,n=e.searchNotion,t=e.rootBlockId,(i=l.state.query).trim()?(l.setState({isLoading:!0}),[4,n({query:i,ancestorId:t})]):(l.setState({isLoading:!1,searchResult:null,searchError:null}),[2]);case 1:return a=p.sent(),console.log("search",i,a),c=null,u=null,a.error||a.errorId?u=a:(c=(0,o.Z)({},a),d=c.results.map((function(e){var n,t,o=null===(n=c.recordMap.block[e.id])||void 0===n?void 0:n.value;if(o){var r=(0,s.Ho)(o,c.recordMap);if(r&&(e.title=r,e.block=o,e.recordMap=c.recordMap,e.page=(0,s.cj)(o,c.recordMap,{inclusive:!0})||o,e.page.id))return(null===(t=e.highlight)||void 0===t?void 0:t.text)&&(e.highlight.html=e.highlight.text.replace(/<gzkNfoUU>/gi,"<b>").replace(/<\/gzkNfoUU>/gi,"</b>")),e}}
1)).filter(Boolean),v=d.reduce((function(e,n){return(0,r.Z)((0,o.Z)({},e),(0,P.Z)({},n.page.id,n))}),{}),c.results=Object.values(v)),l.state.query===i&&l.setState({isLoading:!1,searchResult:c,searchError:u}),[2]}}))})),i._inputRef=c.createRef(),i}var i=t.prototype;return i.componentDidMount=function(){this._search=C()(this._searchImpl.bind(this),1e3),this._warmupSearch()},i.render=function(){var e=this,n=this.props,t=n.isOpen,i=n.onClose,a=this.state,c=a.isLoading,s=a.query,u=a.searchResult,d=a.searchError,v=!!s.trim();return(0,l.jsx)(le,{children:function(n){var a=n.components,p=n.defaultPageIcon,h=n.mapPageUrl;return(0,l.jsx)(a.Modal,{isOpen:t,contentLabel:"Search",className:"notion-search",overlayClassName:"notion-search-overlay",onRequestClose:i,onAfterOpen:e._onAfterOpen,children:(0,l.jsxs)("div",{className:"quickFindMenu",children:[(0,l.jsxs)("div",{className:"searchBar",children:[(0,l.jsx)("div",{className:"inlineIcon",children:c?(0,l.jsx)(R,{className:"loadingIcon"}):(0,l.jsx)(V,{})}),(0,l.jsx)("input",{className:"searchInput",placeholder:"Search",value:s,ref:e._inputRef,onChange:e._onChangeQuery}),s&&(0,l.jsx)("div",{role:"button",className:"clearButton",onClick:e._onClearQuery,children:(0,l.jsx)(S,{className:"clearIcon"})})]}),v&&u&&(0,l.jsx)(l.Fragment,{children:u.results.length?(0,l.jsxs)(ae,(0,r.Z)((0,o.Z)({},n),{recordMap:u.recordMap,children:[(0,l.jsx)("div",{className:"resultsPane",children:u.results.map((function(e){var n;return(0,l.jsxs)(a.PageLink,{className:m("result","notion-page-link"),href:h(e.page.id,u.recordMap),children:[(0,l.jsx)(w,{block:e.page,defaultIcon:p}),(null===(n=e.highlight)||void 0===n?void 0:n.html)&&(0,l.jsx)("div",{className:"notion-search-result-highlight",dangerouslySetInnerHTML:{__html:e.highlight.html}})]},e.id)}))}),(0,l.jsx)("footer",{className:"resultsFooter",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"resultsCount",children:u.total}),1===u.total?" result":" results"]})})]})):(0,l.jsxs)("div",{className:"noResultsPane",children:[(0,l.jsx)("div",{className:"noResults",children:"No results"}),(0,l.jsx)("div",{className:"noResultsDetail",children:"Try different search terms"})]})}),v&&!u&&d&&(0,l.jsx)("div",{className:"noResultsPane",children:(0,l.jsx)("div",{className:"noResults",children:"Search error"})})]})})}})},t}(c.Component),D=function(e){var n=e.block,t=e.rootOnly,i=void 0!==t&&t,a=ce(),u=a.recordMap,d=a.mapPageUrl,v=a.components,p=c.useMemo((function(){var e=(0,s.Kl)(u,n.id);return i?[e[0]].filter(Boolean):e}),[u,n.id,i]);return(0,l.jsx)("div",{className:"breadcrumbs",children:null===p||void 0===p?void 0:p.map((function(e,n){if(!e)return null;var t={},i={pageLink:v.PageLink};return e.active?i.pageLink=function(e){return(0,l.jsx)("div",(0,o.Z)({},e))}:t.href=d(e.pageId),(0,l.jsxs)(c.Fragment,{children:[(0,l.jsxs)(i.pageLink,(0,r.Z)((0,o.Z)({className:m("breadcrumb",e.active&&"active")},t),{children:[e.icon&&(0,l.jsx)(de,{className:"icon",block:e.block}),e.title&&(0,l.jsx)("span",{className:"title",children:e.title})]})),n<p.length-1&&(0,l.jsx)("span",{className:"spacer",children:"/"})]},e.pageId)}))},"breadcrumbs")},T=function(e){var n=e.block,t=e.search,o=e.title,r=void 0===o?"Search":o,i=ce(),s=i.searchNotion,u=i.rootPageId,d=i.isShowingSearch,v=i.onHideSearch,p=t||s,h=(0,a.Z)(c.useState(d),2),f=h[0],x=h[1];c.useEffect((function(){x(d)}),[d]);var g=c.useCallback((function(){x(!0)}),[]),j=c.useCallback((function(){x(!1),v&&v()}),[v]);(0,M.y1)("cmd+p",(function(e){g(),e.preventDefault(),e.stopPropagation()})),(0,M.y1)("cmd+k",(function(e){g(),e.preventDefault(),e.stopPropagation()}));var y=!!p;return(0,l.jsxs)(l.Fragment,{children:[y&&(0,l.jsxs)("div",{role:"button",className:m("breadcrumb","button","notion-search-button"),onClick:g,children:[(0,l.jsx)(V,{className:"searchIcon"}),r&&(0,l.jsx)("span",{className:"title",children:r})]}),f&&y&&(0,l.jsx)(U,{isOpen:f,rootBlockId:u||(null===n||void 0===n?void 0:n.id),onClose:j,searchNotion:p})]})},A=function(e){var n=e.id,t=e.defaultPlay,r=void 0!==t&&t,i=e.mute,s=void 0!==i&&i,u=e.lazyImage,d=void 0!==u&&u,v=e.iframeTitle,p=void 0===v?"YouTube video":v,h=e.alt,f=void 0===h?"Video preview":h,x=e.params,g=void 0===x?{}:x,j=e.adLinksPreconnect,y=void 0===j||j,b=e.style,w=e.className,k=s||r?"1":"0",N=c.useMemo((function(){return function(e){return Object.keys(e).map((function(n){return"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n]))})).join("&")}((0,o.Z)({autoplay:"1",mute:k},g))}),[k,g]),Z="https://i.ytimg.com/vi/".concat(n,"/").concat("hqdefault",".jpg"),_="https://www.youtube-nocookie.com",C="".concat(_,"/embed/").concat(n,"?").concat(N),M=(0,a.Z)(c.useState(!1),2),V=M[0],z=M[1],I=(0,a.Z)(c.useState(r),2),L=I[0],P=I[1],H=(0,a.Z)(c.useState(!1),2),F=H[0],B=H[1],S=c.useCallback((function(){V||z(!0)}),[V]),R=c.useCallback((function(){L||P(!0)}),[L]),U=c.useCallback((function(){B(!0)}),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preload",href:Z,as:"image"}),V&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"prec
1onnect",href:_}),(0,l.jsx)("link",{rel:"preconnect",href:"https://www.google.com"})]}),V&&y&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"})]}),(0,l.jsxs)("div",{onClick:R,onPointerOver:S,className:m("notion-yt-lite",F&&"notion-yt-loaded",L&&"notion-yt-initialized",w),style:b,children:[(0,l.jsx)("img",{src:Z,className:"notion-yt-thumbnail",loading:d?"lazy":void 0,alt:f}),(0,l.jsx)("div",{className:"notion-yt-playbtn"}),L&&(0,l.jsx)("iframe",{width:"560",height:"315",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:p,src:C,onLoad:U})]})]})},E=["video","image","embed","figma","typeform","excalidraw","maps","tweet","pdf","gist","codepen","drive"],O=function(e){var n,t,i,a,c=e.block,u=e.zoomable,d=void 0===u||u,v=e.children,p=ce(),h=p.recordMap,m=p.mapImageUrl,x=p.components;if(!c||!E.includes(c.type))return null;var g={position:"relative",display:"flex",justifyContent:"center",alignSelf:"center",width:"100%",maxWidth:"100%",flexDirection:"column"},j={};if(c.format){var y=c.format,b=y.block_aspect_ratio,w=y.block_height,k=y.block_width,N=y.block_full_width,_=y.block_page_width,C=y.block_preserve_scale;if(N||_)g.width=N?"100vw":"100%","video"===c.type?w?g.height=w:b?g.paddingBottom="".concat(100*b,"%"):C&&(g.objectFit="contain"):b&&"image"!==c.type?g.paddingBottom="".concat(100*b,"%"):w?g.height=w:C&&("image"===c.type?g.height="100%":(g.paddingBottom="75%",g.minHeight=100));else{var M;switch(null===(M=c.format)||void 0===M?void 0:M.block_alignment){case"center":g.alignSelf="center";break;case"left":g.alignSelf="start";break;case"right":g.alignSelf="end"}k&&(g.width=k),C&&"image"!==c.type?(g.paddingBottom="50%",g.minHeight=100):w&&"image"!==c.type&&(g.height=w)}"image"===c.type?j.objectFit="cover":C&&(j.objectFit="contain")}var V=(null===(n=h.signed_urls)||void 0===n?void 0:n[c.id])||(null===(t=c.properties)||void 0===t||null===(i=t.source)||void 0===i||null===(a=i[0])||void 0===a?void 0:a[0]),z=null;if(!V)return null;if("tweet"===c.type){if(!V)return null;var I=V.split("?")[0].split("/").pop();if(!I)return null;z=(0,l.jsx)("div",{style:(0,r.Z)((0,o.Z)({},j),{maxWidth:420,width:"100%",marginLeft:"auto",marginRight:"auto"}),children:(0,l.jsx)(x.Tweet,{id:I})})}else if("pdf"===c.type)g.overflow="auto",g.background="rgb(226, 226, 226)",g.padding||(g.padding="8px 16px"),z=(0,l.jsx)(x.Pdf,{file:V});else if("embed"===c.type||"video"===c.type||"figma"===c.type||"typeform"===c.type||"gist"===c.type||"maps"===c.type||"excalidraw"===c.type||"codepen"===c.type||"drive"===c.type)if("video"===c.type&&V&&V.indexOf("youtube")<0&&V.indexOf("youtu.be")<0&&V.indexOf("vimeo")<0&&V.indexOf("wistia")<0&&V.indexOf("loom")<0&&V.indexOf("videoask")<0&&V.indexOf("getcloudapp")<0)g.paddingBottom=void 0,z=(0,l.jsx)("video",{playsInline:!0,controls:!0,preload:"metadata",style:j,src:V,title:c.type});else{var L,P=(null===(L=c.format)||void 0===L?void 0:L.display_source)||V;if(P){var H="video"===c.type?function(e){try{var n=new URL(e).hostname;if(!f.has(n))return null;var t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/i);if(t&&11==t[2].length)return t[2]}catch(o){}return null}(P):null;H?z=(0,l.jsx)(A,{id:H,style:j,className:"notion-asset-object-fit"}):"gist"===c.type?(P.endsWith(".pibb")||(P="".concat(P,".pibb")),j.width="100%",g.paddingBottom="50%",z=(0,l.jsx)("iframe",{style:j,className:"notion-asset-object-fit",src:P,title:"GitHub Gist",frameBorder:"0",loading:"lazy",scrolling:"auto"})):z=(0,l.jsx)("iframe",{className:"notion-asset-object-fit",style:j,src:P,title:"iframe ".concat(c.type),frameBorder:"0",allowFullScreen:!0,loading:"lazy",scrolling:"auto"})}}else if("image"===c.type){var F,B=m(V,c),S=(0,s.FB)(null===(F=c.properties)||void 0===F?void 0:F.caption)||"notion image";z=(0,l.jsx)(Z,{src:B,alt:S,zoomable:d,height:g.height,style:j})}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{style:g,children:[z,"image"===c.type&&v]}),"image"!==c.type&&v]})},q={width:"100%"},Y=function(e){var n,t,o,r=e.blockId,i=e.block,a=i,c=ce(),u=c.components,d=c.mapPageUrl,v=c.rootDomain,p=c.zoom,h=!1;if("image"===i.type){var f,x,g,j=(null===a||void 0===a||null===(f=a.properties)||void 0===f||null===(x=f.caption)||void 0===x||null===(g=x[0])||void 0===g?void 0:g[0])||"";if(j){var y=(0,s.q5)(j,{uuid:!0});("/"===j.charAt(0)&&y||(o=j,new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(o)))&&(h=!0)}}var b=(0,l.jsx)("figure",{className:m("notion-asset-wrapper","notion-asset-wrapper-".concat(i.type),(null===(n=a.format)||void 0===n?void 0:n.block_full_width)&&"notion-asset-wrapper-full",r),children:(0,l.jsx)(O,{block:a,zoomable:p&&!h,children:(null===a||void 0===a||null===(t=a.properties)||void 0===t?void 0:t.caption)&&!h&&(0,l.jsx)("figcaption",{className:"notion-asset-caption",children:(0,l.jsx)(k,{value:a.properties.caption,block:i})})})});if(h){var w,N=(null===a||void 0===a||null===(w=a.properties)||void 0===w?void 0:w.caption[0][0])||"",Z=(0,s.q5)(N,{uuid:!0}),_="/"===N.charAt(0)&&Z,C=function(e){try{return new URL(e).hostname}catch(n){return""}}(N);return(0,l.jsx)(u.PageLink,{style:q,href:_?d(Z):N,target:C&&C!==v&&!N.startsWith("/")?"blank_":null,children:b})}return b};var W=function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M5.5 12L14 3.5 12.5 2l-7 7-4-4.003L0 6.499z"})}))},G=function(e){var n=null;
1return n=e.isChecked?(0,l.jsx)("div",{className:"notion-property-checkbox-checked",children:(0,l.jsx)(W,{})}):(0,l.jsx)("div",{className:"notion-property-checkbox-unchecked"}),(0,l.jsx)("span",{className:"notion-property notion-property-checkbox",children:n})},Q=t(9590),X=t.n(Q),$=function(e){return(0,l.jsx)("a",(0,o.Z)({target:"_blank",rel:"noopener noreferrer"},e))},J=function(e){return(0,l.jsx)("a",(0,o.Z)({},e))},K=function(e){var n=e.block;return(0,l.jsx)("header",{className:"notion-header",children:(0,l.jsxs)("div",{className:"notion-nav-header",children:[(0,l.jsx)(D,{block:n}),(0,l.jsx)(T,{block:n})]})})},ee=function(e){e.href,e.rel,e.target,e.title;var n=(0,i.Z)(e,["href","rel","target","title"]);return(0,l.jsx)("span",(0,o.Z)({},n))},ne=function(e){return function(){return console.warn('Warning: using empty component "'.concat(e,'" (you should override this in NotionRenderer.components)')),null}},te=function(e,n){return n()},oe={Image:null,Link:c.memo($),PageLink:c.memo(J),Checkbox:G,Callout:void 0,Code:ne("Code"),Equation:ne("Equation"),Collection:ne("Collection"),Property:void 0,propertyTextValue:te,propertySelectValue:te,propertyRelationValue:te,propertyFormulaValue:te,propertyTitleValue:te,propertyPersonValue:te,propertyFileValue:te,propertyCheckboxValue:te,propertyUrlV
1alue:te,propertyEmailValue:te,propertyPhoneNumberValue:te,propertyNumberValue:te,propertyLastEditedTimeValue:te,propertyCreatedTimeValue:te,propertyDateValue:te,Pdf:ne("Pdf"),Tweet:ne("Tweet"),Modal:ne("Modal"),Header:K,Embed:function(e){return(0,l.jsx)(Y,(0,o.Z)({},e))}},re={recordMap:{block:{},collection:{},collection_view:{},collection_query:{},notion_user:{},signed_urls:{}},components:oe,mapPageUrl:h(),mapImageUrl:p,searchNotion:null,isShowingSearch:!1,onHideSearch:null,fullPage:!1,darkMode:!1,previewImages:!1,forceCustomImages:!1,showCollectionViewDropdown:!0,linkTableTitleProperties:!0,isLinkCollectionToUrlProperty:!1,showTableOfContents:!1,minTableOfContentsItems:3,defaultPageIcon:null,defaultPageCover:null,defaultPageCoverPosition:.5,zoom:null},ie=c.createContext(re),ae=function(e){var n=e.components,t=void 0===n?{}:n,a=e.children,s=e.mapPageUrl,u=e.mapImageUrl,d=e.rootPageId,v=(0,i.Z)(e,["components","children","mapPageUrl","mapImageUrl","rootPageId"]),m=!0,f=!1,x=void 0;try{for(var g,j=Object.keys(v)[Symbol.iterator]();!(m=(g=j.next()).done);m=!0){var y=g.value;void 0===v[y]&&delete v[y]}}catch(I){f=!0,x=I}finally{try{m||null==j.return||j.return()}finally{if(f)throw x}}var b,w,k=c.useMemo((function(){return(0,o.Z)({},t)}),[t]);k.nextImage&&(k.Image=(b=t.nextImage,c.memo((function(e){var n=e.src,t=e.alt,r=e.width,a=e.height,c=e.className,s=e.style,u=e.layout,d=(0,i.Z)(e,["src","alt","width","height","className","style","layout"]);return u||(u=r&&a?"intrinsic":"fill"),(0,l.jsx)(b,(0,o.Z)({className:c,src:n,alt:t,width:"intrinsic"===u&&r,height:"intrinsic"===u&&a,objectFit:null===s||void 0===s?void 0:s.objectFit,objectPosition:null===s||void 0===s?void 0:s.objectPosition,layout:u},d))}),X()))),k.nextLink&&(k.nextLink=(w=t.nextLink,function(e){var n=e.href,t=e.as,r=e.passHref,a=e.prefetch,c=e.replace,s=e.scroll,u=e.shallow,d=e.locale,v=(0,i.Z)(e,["href","as","passHref","prefetch","replace","scroll","shallow","locale"]);return(0,l.jsx)(w,{href:n,as:t,passHref:r,prefetch:a,replace:c,scroll:s,shallow:u,locale:d,children:(0,l.jsx)("a",(0,o.Z)({},v))})}));var N=!0,Z=!1,_=void 0;try{for(var C,M=Object.keys(k)[Symbol.iterator]();!(N=(C=M.next()).done);N=!0){var V=C.value;k[V]||delete k[V]}}catch(I){Z=!0,_=I}finally{try{N||null==M.return||M.return()}finally{if(Z)throw _}}var z=c.useMemo((function(){return(0,r.Z)((0,o.Z)({},re,v),{rootPageId:d,mapPageUrl:null!==s&&void 0!==s?s:h(d),mapImageUrl:null!==u&&void 0!==u?u:p,components:(0,o.Z)({},oe,k)})}),[u,s,k,d,v]);return(0,l.jsx)(ie.Provider,{value:z,children:a})},le=ie.Consumer,ce=function(){return c.useContext(ie)},se=function(e){var n=e.className,t=(0,i.Z)(e,["className"]);return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({className:n},t),{viewBox:"0 0 30 30",width:"16",children:(0,l.jsx)("path",{d:"M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"})}))},ue=function(e){var n,t=e.block,o=e.className,r=e.inline,i=void 0===r||r,a=e.hideDefaultIcon,c=void 0!==a&&a,u=e.defaultIcon,d=ce(),p=d.mapImageUrl,h=d.recordMap,f=d.darkMode,x=!1,g=null;if("page"===(n=t).type||"callout"===n.type||"collection_view"===n.type||"collection_view_page"===n.type){var j,y=(null===(j=(0,s.Ck)(t,h))||void 0===j?void 0:j.trim())||u,b=(0,s.Ho)(t,h);if(y&&(0,v.Z)(y)){var w=p(y,t);x=!0,g=(0,l.jsx)(Z,{src:w,alt:b||"page icon",className:m(o,"notion-page-icon")})}else if(y&&y.startsWith("/icons/")){var k="https://www.notion.so"+y+"?mode="+(f?"dark":"light");g=(0,l.jsx)(Z,{src:k,alt:b||"page icon",className:m(o,"notion-page-icon")})}else y?(x=!1,g=(0,l.jsx)("span",{className:m(o,"notion-page-icon"),role:"img","aria-label":y,children:y})):c||(x=!0,g=(0,l.jsx)(se,{className:m(o,"notion-page-icon"),alt:b||"page icon"}))}return g?(0,l.jsx)("div",{className:m(i?"notion-page-icon-inline":"notion-page-icon-hero",x?"notion-page-icon-image":"notion-page-icon-span"),children:g}):null},de=c.memo(ue);var ve={table:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M2 0h10a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2a2 2 0 012-2zm3.75 5.67v2.66h6.75V5.67H5.75zm0 4.17v2.66h5.75a1 1 0 001-1V9.84H5.75zM1.5 5.67v2.66h2.75V5.67H1.5zm0 4.17v1.66a1 1 0 001 1h1.75V9.84H1.5zm1-8.34a1 1 0 00-1 1v1.66h2.75V1.5H2.5zm3.25 0v2.66h6.75V2.5a1 1 0 00-1-1H5.75z"})}))},board:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M12 1.5H2a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5V2a.5.5 0 00-.5-.5zM2 0h10a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2a2 2 0 012-2zm1 3h2v6H3V3zm3 0h2v8H6V3zm3 0h2v4H9V3z"})}))},gallery:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M12 1.5H2a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5V2a.5.5 0 00-.5-.5zM2 0h10a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2a2 2 0 012-2zm1 3h3.5v3.5H3V3zm4.5 0H11v3.5H7.5V3zM3 7.5h3.5V11H3V7.5zm4.5 0H11V11H7.5V7.5z"})}))},list:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M12 1.5H2a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5V2a.5.5 0 00-.5-.5zM2 0h10a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2a2 2 0 012-2zm1 3h6v1.5H3V3zm0 2.5h8V7H3V5.5zM3 8h4v1.5H3V8z"})}))},calendar:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M2.564 4.004c-.586 0-.71.024-.833.09a.319.319 0 00-.141.14c-.066.124-.09.247-.09.834v6.368c0 .586.024.71.09.833a.319.319 0 00.14.141c.124.066.248.09.834.09h8.872c.586 0 .71-.024.833-.09a.319.319 0 00.141-.14c.066-.124.09-.248.09-.834V5.068c0-.587-.024-.71-.09-.834a.319.319 0 00-.14-.14c-.124-.066-.248-.09-.834-.09H2.564zm0-4.004h8.872c.892 0 1.215.093 1.54.267.327.174.583.43.757.756.174.326.267.65.267 1.54v8.873c0 .892-.093 1.215-.267 1.54-.174.327-.43.583-.756.757-.326.174-.65.267-1.54.267H2.563c-.892 0-1.215-.093-1.54-.267a1.817 1.817 0 01-.757-.756C.093 12.65 0 12.327 0 11.437V2.563c0-.892.093-1.215.267-1.54.174-.327.43-.583.756-.757C1.35.093 1.673 0 2.563 0zm4.044 7.88c.179.11.318.256.418.436.1.18.148.394.148.64 0 .304-.08.597-.238.876-.16.28-.392.498-.692.65-.299.15-.685.224-1.16.224-.46 0-.827-.055-1.1-.166a1.687 1.687 0 01-.68-.492 2.227 2.227 0 01-.404-.802l.083-.127 1.37-.182.112.08c.05.258.126.431.221.52a.507.507 0 00.364.133.495.495 0 00.386-.169c.105-.115.158-.27.158-.472 0-.205-.051-.358-.15-.463a.527.527 0 00-.407-.157 1.65 1.65 0 00-.417.077l-.127-.104.07-.98.115-.091c.072.01.127.015.164.015.154 0 .28-.047.38-.144.1-.096.15-.205.15-.335a.388.388 0 00-.106-.29c-.07-.07-.168-.105-.3-.105a.444.444 0 00-.324.118c-.083.08-.143.232-.176.457l-.117.084-1.297-.233-.079-.123c.114-.435.334-.772.66-1.006.326-.234.78-.349 1.36-.349.666 0 1.153.126 1.462.384.31.259.467.589.467.982 0 .233-.064.446-.192.636a1.43 1.43 0 01-.37.365c.1.034.182.072.248.113zm1.747-.145a5.186 5.186 0 01-.806.31l-.129-.097V6.824l.07-.096c.455-.147.807-.322 1.055-.524.246-.202.439-.45.579-.747l.09-.057h1.135l.1.1v5.021l-.1.1H8.961l-.1-.1V7.428a4.053 4.053 0 01-.506.307z"})}))}},pe=function(e){var n=e.type,t=(0,i.Z)(e,["type"]),o=ve[n];return o?o(t):null};var he=function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M13.125 10.035c-.571-.55-2.324-1.504-3.5-2.16v-.834c.224-.322.42-.671.566-1.055.394-.242.746-.702.746-1.173 0-.458-.005-.87-.47-1.208C10.305 1.558 9.436 0 7 0S3.695 1.558 3.533 3.605c-.465.338-.47.75-.47 1.208 0 .471.352.93.746 1.173.146.384.342.733.566 1.055v.834c-1.176.656-2.929 1.61-3.5 2.16C.165 10.72 0 11.812 0 14h14c0-2.188-.164-3.281-.875-3.965z"})}))};var me=function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M6.986 14c-1.79 0-3.582-.69-4.944-2.068-2.723-2.72-2.723-7.172 0-9.892 2.725-2.72 7.182-2.72 9.906 0A6.972 6.972 0 0114 6.996c0 1.88-.728 3.633-2.052 4.955A7.058 7.058 0 016.986 14zm3.285-6.99v1.645H5.526v-5.47h1.841v3.63h2.904v.194zm1.89-.014c0-1.379-.542-2.67-1.522-3.648-2.006-2.005-5.287-2.007-7.297-.009l-.009.009a5.168 5.168 0 000 7.295c2.01 2.007 5.297 2.007 7.306 0a5.119 5.119 0 001.521-3.647z"})}))};var fe={title:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M7.74 8.697a.81.81 0 01.073.308.894.894 0 01-.9.888.867.867 0 01-.825-.592l-.333-.961H2.058l-.333.961a.882.882 0 01-.838.592A.884.884 0 010 9.005c0-.11.025-.222.062-.308l2.403-6.211c.222-.58.776-.986 1.442-.986.653 0 1.22.407 1.442.986l2.39 6.211zM2.6 6.824h2.613L3.907 3.102 2.6 6.824zm8.8-3.118c1.355 0 2.6.542 2.6 2.255V9.08a.8.8 0 01-.789.814.797.797 0 01-.788-.703c-.395.468-1.097.764-1.874.764-.949 0-2.07-.64-2.07-1.972 0-1.392 1.121-1.897 2.07-1.897.789 0 1.491.246 1.886.727v-.826c0-.604-.518-.998-1.306-.998-.469 0-.888.123-1.32.394a.64.64 0 01-.307.086.602.602 0 01-.592-.604c0-.221.123-.419.284-.517a3.963 3.963 0 012.206-.641zm-.222 5.188c.505 0 .998-.172 1.257-.517v-.74c-.259-.345-.752-.517-1.257-.517-.616 0-1.122.332-1.122.9 0 .554.506.874 1.122.874zM.656 11.125h12.688a.656.656 0 110 1.313H.656a.656.656 0 110-1.313z"})}))},text:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M7 4.568a.5.5 0 00-.5-.5h-6a.5.5 0 00-.5.5v1.046a.5.5 0 00.5.5h6a.5.5 0 00.5-.5V4.568zM.5 1a.5.5 0 00-.5.5v1.045a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V1.5a.5.5 0 00-.5-.5H.5zM0 8.682a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V7.636a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v1.046zm0 3.068a.5.5 0 00.5.5h9a.5.5 0 00.5-.5v-1.
1045a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v1.045z"})}))},number:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M4.462 0c-.595 0-1.078.482-1.078 1.078v2.306H1.078a1.078 1.078 0 100 2.155h2.306v2.922H1.078a1.078 1.078 0 100 2.155h2.306v2.306a1.078 1.078 0 002.155 0v-2.306H8.46v2.306a1.078 1.078 0 002.156 0v-2.306h2.306a1.078 1.078 0 100-2.155h-2.306V5.539h2.306a1.078 1.078 0 100-2.155h-2.306V1.078a1.078 1.078 0 00-2.156 0v2.306H5.54V1.078C5.54.482 5.056 0 4.461 0zm1.077 8.46V5.54H8.46v2.92H5.54z"})}))},select:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M7 13A6 6 0 107 1a6 6 0 000 12zM3.751 5.323A.2.2 0 013.909 5h6.182a.2.2 0 01.158.323L7.158 9.297a.2.2 0 01-.316 0L3.751 5.323z"})}))},multi_select:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M4 3a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zm0 4a1 1 0 011-1h7a1 1 0 110 2H5a1 1 0 01-1-1zM2 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2zm0 4a1 1 0 110-2 1 1 0 010 2z"})}))},date:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M10.889 5.5H3.11v1.556h7.778V5.5zm1.555-4.444h-.777V0H10.11v1.056H3.89V0H2.333v1.056h-.777c-.864 0-1.548.7-1.548 1.555L0 12.5c0 .856.692 1.5 1.556 1.5h10.888C13.3 14 14 13.356 14 12.5V2.611c0-.855-.7-1.555-1.556-1.555zm0 11.444H1.556V3.944h10.888V12.5zM8.556 8.611H3.11v1.556h5.445V8.61z"})}))},person:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M9.625 10.847C8.912 10.289 8.121 9.926 7 9.26v-.54a3.33 3.33 0 00.538-.888c.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046 0-.711-.438-2.625-2.625-2.625-2.188 0-2.625 1.915-2.625 2.625 0 .017.003.03.003.046-.238.156-.44.347-.44.829 0 .334.366.731.774.833.146.343.326.643.538.886v.541c-1.12.665-1.912 1.028-2.625 1.587C.041 11.498 0 12.469 0 14h10.5c0-1.531-.041-2.502-.875-3.153zm3.5-3.5c-.713-.558-1.504-.921-2.625-1.587v-.54c.212-.244.392-.544.538-.888.408-.1.774-.498.774-.832 0-.482-.202-.673-.44-.829 0-.015.003-.03.003-.046C11.375 1.914 10.937 0 8.75 0 6.562 0 6.125 1.915 6.125 2.625c0 .017.003.03.003.046-.016.012-.03.025-.047.036 1.751.359 2.516 1.841 2.647 3.04.248.262.46.65.46 1.253 0 .603-.417 1.203-1.004 1.515-.057.109-.117.214-.181.315l.437.245c.64.357 1.194.666 1.724 1.081.138.108.256.224.365.343H14c0-1.53-.041-2.5-.875-3.153z"})}))},file:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M5.946 14a4.975 4.975 0 01-3.497-1.415A4.731 4.731 0 011 9.174c0-1.288.515-2.5 1.449-3.41L7.456.986c1.345-1.313 3.722-1.318 5.08.007a3.453 3.453 0 010 4.961L8.03 10.241c-.867.847-2.293.848-3.17-.006a2.158 2.158 0 010-3.102l1.744-1.701 1.272 1.24-1.744 1.701a.43.43 0 000 .621c.23.223.405.223.636 0l4.503-4.288a1.723 1.723 0 00-.007-2.473c-.68-.663-1.864-.663-2.543 0L3.713 7.011a3.006 3.006 0 00-.915 2.163c0 .82.328 1.591.922 2.17 1.19 1.162 3.262 1.162 4.451 0l2.248-2.192 1.272 1.24-2.248 2.193A4.978 4.978 0 015.946 14z"})}))},checkbox:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M0 3a3 3 0 013-3h8a3 3 0 013 3v8a3 3 0 01-3 3H3a3 3 0 01-3-3V3zm3-1.5A1.5 1.5 0 001.5 3v8A1.5 1.5 0 003 12.5h8a1.5 1.5 0 001.5-1.5V3A1.5 1.5 0 0011 1.5H3zm-.167 5.316l.566-.542.177-.17.347-.332.346.334.176.17 1.139 1.098 3.699-3.563.177-.17.347-.335.347.334.177.17.563.543.177.171.372.36-.372.36-.177.17-4.786 4.615-.177.171-.347.334-.347-.334-.177-.17-2.23-2.15-.177-.172-.375-.361.376-.36.179-.17z"})}))},url:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M3.733 3.867h3.734c1.03 0 1.866.837 1.866 1.866 0 1.03-.837 1.867-1.866 1.867h-.934a.934.934 0 000 1.867h.934a3.734 3.734 0 000-7.467H3.733A3.73 3.73 0 001.89 8.977a4.637 4.637 0 01.314-2.18 1.854 1.854 0 01-.336-1.064c0-1.03.837-1.866 1.866-1.866zm8.377 1.422a4.6 4.6 0 01-.316 2.176c.212.303.34.67.34 1.068 0 1.03-.838 1.867-1.867 1.867H6.533a1.869 1.869 0 01-1.866-1.867c0-1.03.837-1.866 1.866-1.866h.934a.934.934 0 000-1.867h-.934a3.733 3.733 0 000 7.467h3.734a3.73 3.73 0 001.843-6.978z"})}))},email:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M14 6.225c0 .822-.133 1.574-.4 2.256-.267.683-.644 1.218-1.13 1.606-.488.388-.946.6-1.494.6-.429 0-.808-.102-1.139-.305a1.753 
11.753 0 01-.713-.8c-.613.736-1.563 1.104-2.531 1.104-1.027 0-1.835-.304-2.427-.912-.591-.608-.887-1.44-.887-2.496 0-1.204.389-2.175 1.166-2.911.776-.736 1.791-1.105 3.044-1.105.498 0 2.032.212 2.252.268.51.13.86.593.835 1.112l-.156 3.287c0 .794.22 1.19.66 1.19.372 0 .668-.267.888-.8.22-.534.33-1.232.33-2.094 0-.919-.194-1.731-.582-2.436a3.924 3.924 0 00-1.64-1.614c-.704-.371-1.509-.557-2.413-.557-1.172 0-2.19.237-3.053.711a4.785 4.785 0 00-1.988 2.05c-.46.894-.691 1.926-.691 3.096 0 1.576.428 2.784 1.283 3.627.855.841 2.094 1.262 3.718 1.262.615 0 1.29-.067 2.027-.2.225-.042.518-.108.877-.2a.863.863 0 011.025.527.76.76 0 01-.502.993c-1.052.316-2.17.488-3.357.516-2.204 0-3.922-.57-5.154-1.713C.616 11.146 0 9.56 0 7.527c0-1.41.315-2.69.944-3.84A6.792 6.792 0 013.63.98C4.794.327 6.131 0 7.645 0c1.276 0 2.514.29 3.418.77.905.481 1.574 1.228 2.12 2.176.544.947.817 2.04.817 3.28zm-8.615 1.01c0 1.208.488 1.811 1.466 1.811.511 0 .9-.181 1.168-.545.267-.363.429-.954.486-1.772l.11-1.896a4.638 4.638 0 00-.98-.095c-.71 0-1.263.224-1.658.67-.395.446-.592 1.055-.592 1.828z"})}))},phone_number:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M2.207.013a.487.487 0 00-.29.02C.87.438.213 1.93.058 2.955c-.484 3.33 2.15 6.215 4.57 8.113 2.149 1.684 6.273 4.453 8.713 1.781.31-.329.678-.813.658-1.297-.058-.813-.813-1.394-1.394-1.84-.445-.329-1.375-1.239-1.956-1.22-.522.02-.851.562-1.18.891l-.582.581c-.096.097-1.336-.716-1.471-.813a9.881 9.881 0 01-1.414-1.104A9.13 9.13 0 014.86 6.732c-.097-.136-.89-1.317-.813-1.414 0 0 .677-.736.871-1.026.407-.62.717-1.104.252-1.84-.174-.27-.387-.484-.62-.716-.406-.387-.813-.794-1.278-1.123-.251-.194-.677-.542-1.065-.6z"})}))},formula:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M7.779 7.063l-3.157 4.224a.49.49 0 00-.072.218.35.35 0 00.346.357h6.242c.476 0 .862.398.862.889v.36c0 .491-.386.889-.862.889H1.862A.876.876 0 011 13.111v-.425a.82.82 0 01.177-.54L4.393 7.8a1.367 1.367 0 00-.006-1.625L1.4 2.194a.822.822 0 01-.18-.544V.89C1.22.398 1.604 0 2.08 0h8.838c.476 0 .861.398.861.889v.36c0 .491-.385.89-.86.89H5.135c-.19 0-.345.159-.345.356a.489.489 0 00.07.216l2.92 3.975c.049.062.063.107.06.188a.246.246 0 01-.062.189z"})}))},relation:function(e){return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({viewBox:"0 0 14 14"},e),{children:(0,l.jsx)("path",{d:"M4.5 1v2h5.086L1 11.586 2.414 13 11 4.414V9.5h2V1z"})}))},created_time:me,last_edited_time:me,created_by:he,last_edited_by:he},xe=function(e){var n=e.type,t=(0,i.Z)(e,["type"]),o=fe[n];return o?o(t):null},ge=function(e){var n=e.schema;return(0,l.jsxs)("div",{className:"notion-collection-column-title",children:[(0,l.jsx)(xe,{className:"notion-collection-column-title-icon",type:n.type}),(0,l.jsx)("div",{className:"notion-collection-column-title-body",children:n.name})]})},je=t(2670),ye=t(5616),be=t.n(ye),we=t(793),ke=t.n(we),Ne=t(9637),Ze=t(2222),_e=t(5430),Ce=t.n(_e),Me=t(6198),Ve=t.n(Me),ze=t(3744),Ie=t.n(ze),Le=t(9028),Pe=t.n(Le),He=t(3637),Fe=t.n(He),Be=t(1842),Se=t.n(Be),Re=t(8301),Ue=t.n(Re),De=t(201),Te=t.n(De),Ae=t(3734),Ee=t.n(Ae);function Oe(e,n){var t=n.endDate,a=(0,i.Z)(n,["endDate"]);switch(null===e||void 0===e?void 0:e.type){case"symbol":return"true"===e.name;case"constant":var l=e.value;switch(e.result_type){case"text":default:return l;case"number":return parseFloat(l)}case"property":var c=a.properties[e.id],u=(0,s.FB)(c);switch(e.result_type){case"text":default:return u;case"number":return parseFloat(u);case"boolean":return"string"===typeof u?"true"===u:!!u;case"date":var d=(0,s.Co)(c);if(d){if(t&&d.end_date){var v=new Date(d.end_date);return new Date(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate())}var p=new Date(d.start_date);return new Date(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate())}return new Date(u)}case"operator":case"function":return function(e,n){var t=null===e||void 0===e?void 0:e.args;switch(e.name){case"and":return Oe(t[0],n)&&Oe(t[1],n);case"empty":return!Oe(t[0],n);case"equal":return Oe(t[0],n)==Oe(t[1],n);case"if":return Oe(t[0],n)?Oe(t[1],n):Oe(t[2],n);case"larger":return Oe(t[0],n)>Oe(t[1],n);case"largerEq":return Oe(t[0],n)>=Oe(t[1],n);case"not":return!Oe(t[0],n);case"or":return Oe(t[0],n)||Oe(t[1],n);case"smaller":return Oe(t[0],n)<Oe(t[1],n);case"smallerEq":return Oe(t[0],n)<=Oe(t[1],n);case"unequal":return Oe(t[0],n)!=Oe(t[1],n);case"abs":return Math.abs(Oe(t[0],n));case"add":var i=Oe(t[0],n),a=Oe(t[1],n);return"number"===typeof i?i+ +a:"string"===typeof i?i+"".concat(a):i;case"cbrt":return Math.cbrt(Oe(t[0],n));case"ceil":return Math.ceil(Oe(t[0],n));case"divide":return Oe(t[0],n)/Oe(t[1],n);case"exp":return Math.exp(Oe(t[0],n));case"floor":return Math.floor(Oe(t[0],n));case"ln":return Math.log(Oe(t[0],n));case"log10":return Math.log10(Oe(t[0],n));case"log2":return Math.log2(Oe(t[0],n));case"max":return t.map((function(e){return Oe(e,n)})).reduce((function(e,n){return Math.max(e,n)}),Number.NEGATIVE_INFINITY);case"min":return t.map((function(e){return Oe(e,n)})).reduce((function(e,n){return Math.min(e,n)}),Number.POSITIVE_INFINITY);case"mod":return Oe(t[0],n)%Oe(t[1],n);case"multiply":return Oe(t[0],n)*Oe(t[1],n);case"pow":return Math.pow(Oe(t[0],n),Oe(t[1],n));case"round":return Math.round(Oe(t[0],n));case"sign":return Math.sign(Oe(t[0],n));case"sqrt":return Math.sqrt(Oe(t[0],n));case"subtract":return Oe(t[0],n)-Oe(t[1],n);case"toNumber":return parseFloat(Oe(t[0],n));case"unaryMinus":return-1*Oe(t[0],n);case"unaryPlus":return parseFloat(Oe(t[0],n));case"concat":return t.map((function(e){return Oe(e,n)})).join("");case"contains":return Oe(t[0],n).includes(Oe(t[1],n));case"format":var l=Oe(t[0],n);switch("undefined"===typeof l?"undefined":(0,Ze.Z)(l)){case"string":return l;case"object":return(0,je.Z)(l,Date)?be()(l,"MMM d, YYY"):"".concat(l);default:return"".concat(l)}case"join":var c=(0,Ne.Z)(t),s=c[0],u=c.slice(1),d=Oe(s,n);return u.map((function(e){return Oe(e,n)})).join(d);case"length":return Oe(t[0],n).length;case"replace":var v=Oe(t[0],n),p=Oe(t[1],n),h=Oe(t[2],n);return v.replace(new RegExp(p),h);case"replaceAll":var m=Oe(t[0],n),f=Oe(t[1],n),x=Oe(t[2],n);return m.replace(new RegExp(f,"g"),x);case"slice":var g=Oe(t[0],n),j=Oe(t[1],n),y=t[2]?Oe(t[2],n):g.length;return g.slice(j,y);case"test":var b=Oe(t[0],n),w=Oe(t[1],n);return new RegExp(w).test(b);case"date":return Ve()(Oe(t[0],n));case"dateAdd":var k=Oe(t[0],n),N=Oe(t[1],n),Z=Oe(t[1],n);return Ce()(k,(0,P.Z)({},Z,N));case"dateBetween":var _=Oe(t[0],n),C=Oe(t[1],n),M=Oe(t[1],n);return Te()({start:C,end:_})[M];case"dateSubtract":var V=Oe(t[0],n),z=Oe(t[1],n),I=Oe(t[1],n);return Ee()(V,(0,P.Z)({},I,z));case"day":return Ie()(Oe(t[0],n));case"end":return Oe(t[0],(0,r.Z)((0,o.Z)({},n),{endDate:!0}));case"formatDate":var L=Oe(t[0],n),H=Oe(t[1],n).replace("dddd","eeee");return be()(L,H);case"fromTimestamp":return new Date(Oe(t[0],n));case"hour":return Pe()(Oe(t[0],n));case"minute":return Fe()(Oe(t[0],n));case"month":return Se()(Oe(t[0],n));case"now":return new Date;case"start":return Oe(t[0],(0,r.Z)((0,o.Z)({},n),{endDate:!1}));case"timestamp":return Oe(t[0],n).getTime();case"year":return Ue()(Oe(t[0],n));default:throw new Error('invalid or unsupported function formula "'.concat(null===e||void 0===e?void 0:e.type))}}(e,a);default:throw new Error('invalid or unsupported formula "'.concat(null===e||void 0===e?void 0:e.type))}}var qe=function(e){var n=ce().components;return n.Property?(0,l.jsx)(n.Property,(0,o.Z)({},e)):(0,l.jsx)(We,(0,o.Z)({},e))},Ye=function(e){var n=ce(),t=n.components,i=n.mapImageUrl,a=n.mapPageUrl,s=e.schema,u=e.data,d=e.block,v=e.collection,p=e.inline,h=void 0!==p&&p,f=e.linkToTitlePage,x=void 0===f||f,g=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,block:d})}}),[d,u]),j=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,block:d})}}),[d,u]),b=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,block:d})}}),[d,u]),N=c.useMemo((function(){return function(){var e;try{var n=Oe(s.formula,{schema:null===v||void 0===v?void 0:v.schema,properties:null===d||void 0===d?void 0:d.properties});isNaN(n),(0,je.Z)(n,Date)&&(n=be()(n,"MMM d, YYY hh:mm aa"))}catch(t){e=null}return e}}),[null===d||void 0===d?void 0:d.properties,null===v||void 0===v?void 0:v.schema,s]),Z=c.useMemo((function(){return function(){return d&&x?(0,l.jsx)(t.PageLink,{className:m("notion-
1page-link"),href:a(d.id),children:(0,l.jsx)(w,{block:d})}):(0,l.jsx)(k,{value:u,block:d})}}),[d,t,u,x,a]),_=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,block:d})}}),[d,u]),C=c.useMemo((function(){return function(){return u.filter((function(e){return 2===e.length})).map((function(e){return e.flat().flat()})).map((function(e,n){return(0,l.jsx)(t.Link,{className:"notion-property-file",href:i(e[2],d),target:"_blank",rel:"noreferrer noopener",children:(0,l.jsx)(y,{alt:e[0],src:i(e[2],d),loading:"lazy"})},n)}))}}),[d,t,u,i]),M=c.useMemo((function(){return function(){var e=u&&"Yes"===u[0][0];return(0,l.jsxs)("div",{className:"notion-property-checkbox-container",children:[(0,l.jsx)(G,{isChecked:e,blockId:void 0}),(0,l.jsx)("span",{className:"notion-property-checkbox-text",children:s.name})]})}}),[u,s]),V=c.useMemo((function(){return function(){var e=JSON.parse(JSON.stringify(u));if(h)try{var n=new URL(e[0][0]);e[0][0]=n.hostname.replace(/^www\./,"")}catch(t){}return(0,l.jsx)(k,{value:e,block:d,inline:h,linkProps:{target:"_blank",rel:"noreferrer noopener"}})}}),[d,u,h]),z=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,linkProtocol:"mailto",block:d})}}),[d,u]),I=c.useMemo((function(){return function(){return(0,l.jsx)(k,{value:u,linkProtocol:"tel",block:d})}}),[d,u]),L=c.useMemo((function(){return function(){var e=parseFloat(u[0][0]||"0"),n="";if(isNaN(e))return(0,l.jsx)(k,{value:u,block:d});switch(s.number_format){case"number_with_commas":n=ke()()(e);break;case"percent":n=ke()({suffix:"%"})(100*e);break;case"dollar":n=ke()({prefix:"$",round:2,padRight:2})(e);break;case"euro":n=ke()({prefix:"\u20ac",round:2,padRight:2})(e);break;case"pound":n=ke()({prefix:"\xa3",round:2,padRight:2})(e);break;case"yen":n=ke()({prefix:"\xa5",round:0})(e);break;case"rupee":n=ke()({prefix:"\u20b9",round:2,padRight:2})(e);break;case"won":n=ke()({prefix:"\u20a9",round:0})(e);break;case"yuan":n=ke()({prefix:"CN\xa5",round:2,padRight:2})(e);break;default:return(0,l.jsx)(k,{value:u,block:d})}return(0,l.jsx)(k,{value:[[n]],block:d})}}),[d,u,s]),P=c.useMemo((function(){return function(){return be()(new Date(null===d||void 0===d?void 0:d.created_time),"MMM d, YYY hh:mm aa")}}),[null===d||void 0===d?void 0:d.created_time]),H=c.useMemo((function(){return function(){return be()(new Date(null===d||void 0===d?void 0:d.last_edited_time),"MMM d, YYY hh:mm aa")}}),[null===d||void 0===d?void 0:d.last_edited_time]);if(!s)return null;var F=null;if(u||"checkbox"===s.type||"title"===s.type||"formula"===s.type||"created_by"===s.type||"last_edited_by"===s.type||"created_time"===s.type||"last_edited_time"===s.type)switch(s.type){case"relation":F=t.propertyRelationValue(e,b);break;case"formula":F=t.propertyFormulaValue(e,N);break;case"title":F=t.propertyTitleValue(e,Z);break;case"select":case"multi_select":F=(u[0][0]||"").split(",").map((function(n,i){var a,c=null===(a=s.options)||void 0===a?void 0:a.find((function(e){return n===e.value})),u=null===c||void 0===c?void 0:c.color;return t.propertySelectValue((0,r.Z)((0,o.Z)({},e),{key:i,value:n,option:c,color:u}
1),(function(){return(0,l.jsx)("div",{className:m("notion-property-".concat(s.type,"-item"),u&&"notion-item-".concat(u)),children:n},i)}))}));break;case"person":F=t.propertyPersonValue(e,_);break;case"file":F=t.propertyFileValue(e,C);break;case"checkbox":F=t.propertyCheckboxValue(e,M);break;case"url":F=t.propertyUrlValue(e,V);break;case"email":F=t.propertyEmailValue(e,z);break;case"phone_number":F=t.propertyPhoneNumberValue(e,I);break;case"number":F=t.propertyNumberValue(e,L);break;case"created_time":F=t.propertyCreatedTimeValue(e,P);break;case"last_edited_time":F=t.propertyLastEditedTimeValue(e,H);break;case"created_by":case"last_edited_by":break;case"text":F=t.propertyTextValue(e,g);break;case"date":F=t.propertyDateValue(e,j);break;default:F=(0,l.jsx)(k,{value:u,block:d})}return(0,l.jsx)("span",{className:"notion-property notion-property-".concat(s.type),children:F})},We=c.memo(Ye),Ge=function(e){var n,t,i,a=e.block,c=e.pageHeader,s=void 0!==c&&c,u=e.className,d=ce().recordMap,v=a.parent_id,p=null===(n=d.collection[v])||void 0===n?void 0:n.value,h=null===p||void 0===p?void 0:p.schema;if(!p||!h)return null;var f=Object.keys(h).filter((function(e){return"title"!==e}));if((null===(t=p.format)||void 0===t?void 0:t.property_visibility)&&(f=f.filter((function(e){var n;return"hide"!==(null===(n=p.format.property_visibility.find((function(n){return n.property===e})))||void 0===n?void 0:n.visibility)}))),null===(i=p.format)||void 0===i?void 0:i.collection_page_properties){var x,g=null===(x=p.format)||void 0===x?void 0:x.collection_page_properties.reduce((function(e,n,t){return(0,r.Z)((0,o.Z)({},e),(0,P.Z)({},n.property,t))}),{});f.sort((function(e,n){return g[e]-g[n]}))}else f.sort((function(e,n){return h[e].name.localeCompare(h[n].name)}));return(0,l.jsx)("div",{className:m("notion-collection-row",u),children:(0,l.jsx)("div",{className:"notion-collection-row-body",children:f.map((function(e){var n,t=h[e];return(0,l.jsxs)("div",{className:"notion-collection-row-property",children:[(0,l.jsx)(ge,{schema:t}),(0,l.jsx)("div",{className:"notion-collection-row-value",children:(0,l.jsx)(qe,{schema:t,data:null===(n=a.properties)||void 0===n?void 0:n[e],propertyId:e,block:a,collection:p,pageHeader:s})})]},e)}))})})},Qe=function(e){var n=e.className,t=(0,i.Z)(e,["className"]);return(0,l.jsx)("svg",(0,r.Z)((0,o.Z)({className:n},t),{viewBox:"0 0 14 14",width:"14",children:(0,l.jsx)("path",{d:"M11.0918,0 C11.5383,0 11.9307,0.295898 12.0533,0.725586 L13.9615,7.40332 C13.9871,7.49316 14,7.58594 14,7.67871 L14,13 C14,13.5527 13.5522,14 13,14 L1,14 C0.447754,14 0,13.5527 0,13 L0,7.67871 C0,7.58594 0.0129395,7.49316 0.0384521,7.40332 L1.94666,0.725586 C2.06934,0.295898 2.46167,0 2.9082,0 L11.0918,0 Z M4.27271,1.5 C3.83728,1.5 3.45178,1.78223 3.31982,2.19727 L1.91455,6.61328 C1.70947,7.25879 2.1908,7.91699 2.86755,7.91699 L4.70837,7.91699 C4.70837,8.93652 5.16663,10.168 7,10.168 C8.83337,10.168 9.29163,8.93652 9.29163,7.91699 L11.1478,7.89355 C11.8201,7.88477 12.2927,7.22852 12.0876,6.58887 L10.681,2.19531 C10.5485,1.78125 10.1635,1.5 9.72864,1.5 L4.27271,1.5 Z"})}))},Xe=function(e){var n,t=e.collection,a=e.block,c=e.cover,u=e.coverSize,d=e.coverAspect,v=e.properties,p=e.className,h=(0,i.Z)(e,["collection","block","cover","coverSize","coverAspect","properties","className"]),f=ce(),x=f.components,g=f.recordMap,j=f.mapPageUrl,y=f.mapImageUrl,b=f.isLinkCollectionToUrlProperty,w=null,k=(a.format||{}).page_cover_position,N=void 0===k?.5:k,_=100*(1-N);if("page_content"===(null===c||void 0===c?void 0:c.type)){var C,M=null===(C=a.content)||void 0===C?void 0:C.find((function(e){var n,t=null===(n=g.block[e])||void 0===n?void 0:n.value;if("image"===(null===t||void 0===t?void 0:t.type))return!0}));if(M){var V,z,I,L,P,H,F=null===(V=g.block[M])||void 0===V?void 0:V.value,B=null!==(H=null===(z=F.properties)||void 0===z||null===(I=z.source)||void 0===I||null===(L=I[0])||void 0===L?void 0:L[0])&&void 0!==H?H:null===(P=F.format)||void 0===P?void 0:P.display_source;if(B){var S,R,U,D=y(B,F),T=null===(S=F.properties)||void 0===S||null===(R=S.caption)||void 0===R||null===(U=R[0])||void 0===U?void 0:U[0];w=(0,l.jsx)(Z,{src:D,alt:T||"notion image",style:{objectFit:d}})}}w||(w=(0,l.jsx)("div",{className:"notion-collection-card-cover-empty"}))}else if("page_cover"===(null===c||void 0===c?void 0:c.type)){var A=(a.format||{}).page_cover;if(A){var E,O=100*(1-N);w=(0,l.jsx)(Z,{src:y(A,a),alt:(0,s.FB)(null===(E=a.properties)||void 0===E?void 0:E.title),style:{objectFit:d,objectPosition:"center ".concat(O,"%")}})}}else if("property"===(null===c||void 0===c?void 0:c.type)){var q,Y=c.property,W=t.schema[Y],G=null===(q=a.properties)||void 0===q?void 0:q[Y];if(W&&G)if("file"===W.type){var Q=G.filter((function(e){return 2===e.length})).map((function(e){return e.flat().flat()}))[0];
1Q&&(w=(0,l.jsx)("span",{className:"notion-property-".concat(W.type),children:(0,l.jsx)(Z,{alt:Q[0],src:y(Q[2],a),style:{objectFit:d,objectPosition:"center ".concat(_,"%")}})}))}else w=(0,l.jsx)(qe,{propertyId:Y,schema:W,data:G})}var X,$=[];b&&($=null===(X=null===v||void 0===v?void 0:v.filter((function(e){return e.visible&&"title"!==e.property&&t.schema[e.property]})).filter((function(e){return!!a.properties&&"url"==t.schema[e.property].type})).map((function(e){return a.properties[e.property]})))||void 0===X?void 0:X.filter((function(e){return e&&e.length>0&&void 0!=e[0]})));var J=null;$&&$.length>0&&$[0].length>0&&$[0][0].length>0&&(J=$[0][0][0]);var K=(0,l.jsxs)(l.Fragment,{children:[(w||"none"!==(null===c||void 0===c?void 0:c.type))&&(0,l.jsx)("div",{className:"notion-collection-card-cover",children:w}),(0,l.jsxs)("div",{className:"notion-collection-card-body",children:[(0,l.jsx)("div",{className:"notion-collection-card-property",children:(0,l.jsx)(qe,{schema:t.schema.title,data:null===a||void 0===a||null===(n=a.properties)||void 0===n?void 0:n.title,block:a,collection:t})}),null===v||void 0===v?void 0:v.filter((function(e){return e.visible&&"title"!==e.property&&t.schema[e.property]})).map((function(e){if(!a.properties)return null;var n=t.schema[e.property],o=a.properties[e.property];return(0,l.jsx)("div",{className:"notion-collection-card-property",children:(0,l.jsx)(qe,{schema:n,data:o,block:a,collection:t,inline:!0})},e.property)}))]})]});return(0,l.jsx)(ae,(0,r.Z)((0,o.Z)({},f),{components:(0,r.Z)((0,o.Z)({},f.components),{Link:function(e){var n,t,o;return(0,l.jsx)("form",{action:e.href,target:"_blank",children:(0,l.jsx)("input",{type:"submit",value:null!==(o=null===e||void 0===e||null===(n=e.children)||void 0===n||null===(t=n.props)||void 0===t?void 0:t.children)&&void 0!==o?o:e.href,className:"nested-form-link notion-link"})})},PageLink:ee}),children:b&&J?(0,l.jsx)(x.Link,(0,r.Z)((0,o.Z)({className:m("notion-collection-card","notion-collection-card-size-".concat(u),p),href:J},h),{children:K})):(0,l.jsx)(x.PageLink,(0,r.Z)((0,o.Z)({className:m("notion-collection-card","notion-collection-card-size-".concat(u),p),href:j(a.id)},h),{children:K}))}))},$e=function(e){var n=e.collectionViewComponent,t=e.collection,a=e.collectionGroup,c=e.schema,s=e.value,u=e.hidden,d=e.summaryProps,v=e.detailsProps,p=(0,i.Z)(e,["collectionViewComponent","collection","collectionGroup","schema","value","hidden","summaryProps","detailsProps"]);return u?null:(0,l.jsxs)("details",(0,r.Z)((0,o.Z)({open:!0,className:"notion-collection-group"},v),{children:[(0,l.jsx)("summary",(0,r.Z)((0,o.Z)({className:"notion-collection-group-title"},d),{children:(0,l.jsxs)("div",{children:[(0,l.jsx)(qe,{schema:c,data:[[s]],collection:t}),(0,l.jsx)("span",{className:"notion-board-th-count",children:null===a||void 0===a?void 0:a.total})]})})),(0,l.jsx)(n,(0,o.Z)({collection:t,collectionGroup:a},p))]}))};function Je(e,n,t){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var l,c=(null===n||void 0===n||null===(l=n.format)||void 0===l?void 0:l.collection_groups)||[];return null===c||void 0===c?void 0:c.map((function(r){var a,l,c=r.property,s=r.hidden,u=r.value,d=u.value,v=u.type,p="undefined"===typeof d,h=null===d||void 0===d?void 0:d.range,m=p?"uncategorized":h?(null===(a=d.range)||void 0===a?void 0:a.start_date)||(null===(l=d.range)||void 0===l?void 0:l.end_date):(null===d||void 0===d?void 0:d.value)||d,f=t["results:".concat(v,":").concat(m)],x=!p&&(h||(null===d||void 0===d?void 0:d.value)||d),g=e.schema[c];return"checkbox"===v&&d&&(x="Yes"),h&&(g={type:"text",name:"text"},x=be()(new Date(m),"MMM d, YYY hh:mm aa")),(0,o.Z)({collectionGroup:f,schema:g,value:x||"No description",hidden:s,collection:e,collectionView:n,collectionData:t,blockIds:null===f||void 0===f?void 0:f.blockIds},i)}))}var Ke=function(e){var n,t=e.collection,i=e.collectionView,a=e.collectionData,c=e.padding;return(null===i||void 0===i||null===(n=i.format)||void 0===n?void 0:n.collection_group_by)?Je(t,i,a,c).map((function(e,n){return(0,l.jsx)($e,(0,r.Z)((0,o.Z)({},e),{summaryProps:{style:{paddingLeft:c}},collectionViewComponent:function(e){return(0,l.jsx)(en,(0,o.Z)({padding:c},e))}}),n)})):(0,l.jsx)(en,{padding:c,collectionView:i,collection:t,collectionData:a})};function en(e){var n,t,o=e.collectionView,r=e.collectionData,i=e.collection,a=e.padding,s=ce().recordMap,u=(null===o||void 0===o?void 0:o.format)||{},d=u.board_cover,v=void 0===d?{type:"none"}:d,p=u.board_cover_size,h=void 0===p?"medium":p,f=u.board_cover_aspect,x=void 0===f?"cover":f,g=(null===o||void 0===o||null===(n=o.format)||void 0===n?void 0:n.board_columns)||(null===o||void 0===o||null===(t=o.format)||void 0===t?void 0:t.board_groups2)||[],j=c.useMemo((function(){return{paddingLeft:a}}
1),[a]);return(0,l.jsx)("div",{className:"notion-board",children:(0,l.jsxs)("div",{className:m("notion-board-view","notion-board-view-size-".concat(h)),style:j,children:[(0,l.jsx)("div",{className:"notion-board-header",children:(0,l.jsx)("div",{className:"notion-board-header-inner",children:g.map((function(e,n){var t,o,a;if(!(null===(t=r.board_columns)||void 0===t?void 0:t.results))return null;var c=r.board_columns.results[n],s=i.schema[e.property];return c&&s&&!e.hidden?(0,l.jsx)("div",{className:"notion-board-th",children:(0,l.jsxs)("div",{className:"notion-board-th-body",children:[(null===(o=c.value)||void 0===o?void 0:o.value)?(0,l.jsx)(qe,{schema:s,data:[[null===(a=c.value)||void 0===a?void 0:a.value]],collection:i}):(0,l.jsxs)("span",{children:[(0,l.jsx)(Qe,{className:"notion-board-th-empty"})," No Select"]}),(0,l.jsx)("span",{className:"notion-board-th-count",children:c.total})]})},n):null}))})}),(0,l.jsx)("div",{className:"notion-board-header-placeholder"}),(0,l.jsx)("div",{className:"notion-board-body",children:g.map((function(e,n){var t,a,c,u,d;if(!(null===(t=r.board_columns)||void 0===t?void 0:t.results))return null;if(!(null===e||void 0===e||null===(a=e.value)||void 0===a?void 0:a.type))return null;var p=i.schema[e.property],m=r["results:".concat(null===e||void 0===e||null===(c=e.value)||void 0===c?void 0:c.type,":").concat((null===e||void 0===e||null===(u=e.value)||void 0===u?void 0:u.value)||"uncategorized")];return m&&p&&!e.hidden?(0,l.jsx)("div",{className:"notion-board-group",children:null===(d=m.blockIds)||void 0===d?void 0:d.map((function(e){var n,t,r=null===(n=s.block[e])||void 0===n?void 0:n.value;return r?(0,l.jsx)(Xe,{className:"notion-board-group-card",collection:i,block:r,cover:v,coverSize:h,coverAspect:x,properties:null===(t=o.format)||void 0===t?void 0:t.board_properties},e):null}))},n):null}))})]})})}var nn=t(5085),tn=(t(6703),t(615)),on=t(905),rn=t(5899),an=function(e){var n,t,o,r,i,a=e.collection,c=e.collectionView,s=e.collectionData,u=(null===c||void 0===c||null===(n=c.format)||void 0===n||n.collection_group_by,(null!==(i=null!==(r=null===(t=s.collection_group_results)||void 0===t?void 0:t.blockIds)&&void 0!==r?r:null===(o=s["results:relation:uncategorized"])||void 0===o?void 0:o.blockIds)&&void 0!==i?i:s.blockIds)||[]);return(0,l.jsx)(ln,{collectionView:c,collection:a,blockIds:u})};function ln(e){var n=e.blockIds,t=e.collectionView,o=(e.collection,function(e){var n=e.type,t="PREV"===n?(0,l.jsx)(on.P,{size:p,color:"#FFFFFF "}):(0,l.jsx)(rn.y,{size:p,color:"#FFFFFF "}),o=0===d,r=d===s.length-1;return(0,l.jsx)("div",{className:"flex flex-col justify-center cursor-pointer w-12 h- h-full z-10",onClick:function(){v("PREV"===n?o?s.length-1:d-1:r?0:d+1)},children:t})}),r=ce().recordMap,i=t.format||{},s=(i.gallery_cover,i.gallery_cover_size,i.gallery_cover_aspect,null===n||void 0===n?void 0:n.map((function(e){var n;return function(e){var n,t=null,o=null===(n=e.content)||void 0===n?void 0:n.find((function(e){var n,t=null===(n=r.block[e])||void 0===n?void 0:n.value;if("image"===(null===t||void 0===t?void 0:t.type))return!0}));if(o){var i,a,l,c,s,u,d=null===(i=r.block[o])||void 0===i?void 0:i.value,v=null!==(u=null===(a=d.properties)||void 0===a||null===(l=a.source)||void 0===l||null===(c=l[0])||void 0===c?void 0:c[0])&&void 0!==u?u:null===(s=d.format)||void 0===s?void 0:s.display_source;if(v){var p,h,m,f=(0,nn.H)(v,d),x=null===(p=d.properties)||void 0===p||null===(h=p.caption)||void 0===h||null===(m=h[0])||void 0===m?void 0:m[0];f&&(t={src:f,caption:x})}}return t}(null===(n=r.block[e])||void 0===n?void 0:n.value)})).filter((function(e){return null!==e}))),u=(0,a.Z)(c.useState(0),2),d=u[0],v=u[1],p="2rem";return(0,l.jsxs)("div",{className:"notion-gallery flex flex-row w-full text-primary relative items-center notion-margin-hard",children:[(0,l.jsx)(o,{type:"PREV"}),(0,l.jsxs)("div",{className:"notion-gallery-view overflow-hidden",children:[(0,l.jsx)(tn.lr,{showThumbs:!1,showStatus:!1,showArrows:!1,showIndicators:!1,selectedItem:d,children:s.map((function(e,n){return(0,l.jsx)("div",{style:{height:"100%"},children:(0,l.jsx)("img",{className:"object-contain w-full",style:{height:"100%",objectFit:"contain"},src:e.src,alt:e.caption||"notion-image"})})}))}),(0,l.jsx)("div",{className:"h-10 w-full"}),(0,l.jsx)("div",{className:"w-full flex justify-center ",children:s.map((function(e,n){var t=d===n?"bg-[#6495ED]":"bg-gray-300";return(0,l.jsx)("div",{className:"w-[0.6rem] h-[0.6rem] rounded-full z-10 mx-1 cursor-pointer "+"".concat(t," "),onClick:function(){return v(n)}})}))})]}),(0,l.jsx)(o,{type:"NEXT"})]})}var cn=[],sn=function(e){var n,t,i,a=e.collection,c=e.collectionView,s=e.collectionData;if(null===c||void 0===c||null===(n=c.format)||void 0===n?void 0:n.collection_group_by)return Je(a,c,s).map((function(e,n){return(0,l.jsx)($e,(0,r.Z)((0,o.Z)({},e),{collectionViewComponent:un}),n)}));var u=(null!==(i=null===(t=s.collection_group_results)||void 0===t?void 0:t.blockIds)&&void 0!==i?i:s.blockIds)||cn;return(0,l.jsx)(un,{blockIds:u,collection:a,collectionView:c})};function un(e){var n=e.blockIds,t=e.collection,o=e.collectionView,r=ce(),i=r.components,a=r.recordMap,c=r.mapPageUrl;return(0,l.jsx)("div",{className:"notion-list-collection",children:(0,l.jsx)("div",{className:"notion-list-view",children:(0,l.jsx)("div",{className:"notion-list-body",children:null===n||void 0===n?void 0:n.map((function(e){var n,r,s,u,d=null===(n=a.block[e])||void 0===n?void 0:n.value;if(!d)return null;var v=t.schema.title,p=null===d||void 0===d||null===(r=d.properties)||void 0===r?void 0:r.title;return(0,l.jsxs)(i.PageLink,{className:"notion-list-item notion-
1page-link",href:c(d.id),children:[(0,l.jsx)("div",{className:"notion-list-item-title",children:(0,l.jsx)(qe,{schema:v,data:p,block:d,collection:t})}),(0,l.jsx)("div",{className:"notion-list-item-body",children:null===(s=o.format)||void 0===s||null===(u=s.list_properties)||void 0===u?void 0:u.filter((function(e){return e.visible})).map((function(e){var n,o=t.schema[e.property],r=d&&(null===(n=d.properties)||void 0===n?void 0:n[e.property]);return o?(0,l.jsx)("div",{className:"notion-list-item-property",children:(0,l.jsx)(qe,{schema:o,data:r,block:d,collection:t})},e.property):null}))})]},e)}))})})})}var dn=[],vn=function(e){var n,t,i,a=e.collection,c=e.collectionView,s=e.collectionData,u=e.padding,d=e.width;if(null===c||void 0===c||null===(n=c.format)||void 0===n?void 0:n.collection_group_by)return Je(a,c,s,u,d).map((function(e,n){return(0,l.jsx)($e,(0,r.Z)((0,o.Z)({},e),{collectionViewComponent:function(e){return(0,l.jsx)(pn,(0,r.Z)((0,o.Z)({},e),{padding:u,width:d}))},summaryProps:{style:{paddingLeft:u,paddingRight:u}}}),n)}));var v=(null!==(i=null===(t=s.collection_group_results)||void 0===t?void 0:t.blockIds)&&void 0!==i?i:s.blockIds)||dn;return(0,l.jsx)(pn,{blockIds:v,collection:a,collectionView:c,padding:u,width:d})};function pn(e){var n,t=e.blockIds,o=void 0===t?[]:t,r=e.collection,i=e.collectionView,a=e.width,s=e.padding,u=ce(),d=u.recordMap,v=u.linkTableTitleProperties,p=c.useMemo((function(){return{width:a,maxWidth:a}}),[a]),h=c.useMemo((function(){return{paddingLeft:s,paddingRight:s}}),[s]),f=[];return f=(null===(n=i.format)||void 0===n?void 0:n.table_properties)?i.format.table_properties.filter((function(e){return e.visible&&r.schema[e.property]})):[{property:"title"}].concat(Object.keys(r.schema).filter((function(e){return"title"!==e})).map((function(e){return{property:e}}))),(0,l.jsx)("div",{className:"notion-table",style:p,children:(0,l.jsx)("div",{className:"notion-table-view",style:h,children:!!f.length&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"notion-table-header",children:(0,l.jsx)("div",{className:"notion-table-header-inner",children:f.map((function(e){var n,t=null===(n=r.schema)||void 0===n?void 0:n[e.property],o="title"===e.property,i={};return e.width?i.width=e.width:i.width=o?280:200,(0,l.jsx)("div",{className:"notion-table-th",children:(0,l.jsx)("div",{className:"notion-table-view-header-cell",style:i,children:(0,l.jsx)("div",{className:"notion-table-view-header-cell-inner",children:(0,l.jsx)(ge,{schema:t})})})},e.property)}))})}),(0,l.jsx)("div",{className:"notion-table-header-placeholder"}),(0,l.jsx)("div",{className:"notion-table-body",children:null===o||void 0===o?void 0:o.map((function(e){return(0,l.jsx)("div",{className:"notion-table-row",children:f.map((function(n){var t,o,i,a=null===(t=r.schema)||void 0===t?void 0:t[n.property],c=null===(o=d.block[e])||void 0===o?void 0:o.value,s=null===c||void 0===c||null===(i=c.properties)||void 0===i?void 0:i[n.property],u="title"===n.property,p={};return n.width?p.width=n.width:p.width=u?280:200,(0,l.jsx)("div",{className:m("notion-table-cell","notion-table-cell-".concat(a.type)),style:p,children:(0,l.jsx)(qe,{schema:a,data:s,block:c,collection:r,linkToTitlePage:v})},n.property)}))},e)}))})]})})})}var hn=function(e){var n=e.collectionView;switch(n.type){case"table":return(0,l.jsx)(vn,(0,o.Z)({},e));case"gallery":return(0,l.jsx)(an,(0,o.Z)({},e));case"list":return(0,l.jsx)(sn,(0,o.Z)({},e));case"board":return(0,l.jsx)(Ke,(0,o.Z)({},e));default:return console.warn("unsupported collection view",n),null}},mn=c.memo(hn),fn=t(1163),xn=function(e){var n=e.block,t=e.className,i=e.ctx,a=c.useMemo((function(){return(0,o.Z)({},i)}),[i]);return"page"===n.type?"collection"!==n.parent_table?null:(0,l.jsx)(ae,(0,r.Z)((0,o.Z)({},a),{children:(0,l.jsx)("div",{className:"notion-collection-page-properties",children:(0,l.jsx)(Ge,{block:n,pageHeader:!0,className:t})})})):(0,l.jsx)(ae,(0,r.Z)((0,o.Z)({},a),{children:(0,l.jsx)(gn,{block:n,className:t})}))},gn=function(e){var n,t,i,v=e.block,p=e.className,h=ce(),f=h.recordMap,x=h.showCollectionViewDropdown,g=v.view_ids,j=(0,s.c5)(v,f),y=(0,a.Z)(c.useState(!1),2),b=y[0],w=y[1];c.useEffect((function(){w(!0)}),[]);var k=g[0],N=(0,a.Z)((0,u.Z)(v.id,{collectionViewId:k}),2),Z=N[0],_=N[1],C=b&&g.find((function(e){return e===Z.collectionViewId}))||k,M=c.useCallback((function(e){console.log("change collection view",e),_((0,r.Z)((0,o.Z)({},Z),{collectionViewId:e}))}),[Z,_]),V=(0,d.Z)().width;var z=null===(n=f.collection[j])||void 0===n?void 0:n.value,I=null===(t=f.collection_view[C])||void 0===t?void 0:t.value,L=null===(i=f.collection_query[j])||void 0===i?void 0:i[C],P=(0,s.cj)(v,f),H=c.useMemo((function(){var e,n={};if("table"!==(null===I||void 0===I?void 0:I.type)&&"board"!==(null===I||void 0===I?void 0:I.type))return{style:n,width:0,padding:0};var t=V,o=(t-((null===P||void 0===P||null===(e=P.format)||void 0===e?void 0:e.page_full_width)?t-2*Math.min(96,.08*t)|0:t<708?t-.02*t|0:708))/2|0;return n.paddingLeft=o,n.paddingRight=o,{style:n,width:t,padding:o}}),[V,P,null===I||void 0===I?void 0:I.type,b]),F=H.width,B=H.padding;if(!(z&&I&&L))return console.warn("skipping missing collection view for block",v.id,{collectionId:j,collectionViewId:C,
1collectionView:I,collectionData:L,recordMap:f}),null;var S=(0,s.FB)(z.name).trim();z.icon&&(v.format=(0,r.Z)((0,o.Z)({},v.format),{page_icon:z.icon}));var R=(0,fn.useRouter)().pathname.startsWith("/2022/works/[courseName]");return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{children:g.length>1&&x&&(0,l.jsx)(jn,{collectionViewId:C,viewIds:g,onChangeView:M})}),!R&&(0,l.jsx)("div",{className:"notion-collection-header",children:S&&(0,l.jsxs)("div",{className:"notion-collection-header-title",children:[(0,l.jsx)(de,{block:v,className:"notion-page-title-icon",hideDefaultIcon:!0}),S]})})]}),(0,l.jsx)("div",{className:m("notion-collection",p),children:(0,l.jsx)(mn,{collection:z,collectionView:I,collectionData:L,padding:B,width:F})})]})},jn=function(e){var n=e.collectionViewId,t=e.viewIds,o=e.onChangeView,r=ce().recordMap;return(0,l.jsx)("div",{className:"notion-collection-view-tabs-row",children:t.map((function(e){var t;return(0,l.jsx)("button",{onClick:function(){return o(e)},className:m("notion-collection-view-tabs-content-item",n===e&&"notion-collection-view-tabs-content-item-active"),children:(0,l.jsx)(yn,{collectionView:null===(t=r.collection_view[e])||void 0===t?void 0:t.value})},e)}))})},yn=function(e){var n=e.collectionView,t=e.className,a=e.children,c=(0,i.Z)(e,["collectionView","className","children"]),s=n.type,u=n.name||"".concat(s[0].toUpperCase()).concat(s.slice(1)," view");return(0,l.jsxs)("div",(0,r.Z)((0,o.Z)({className:m("notion-collection-view-type",t)},c),{children:[(0,l.jsx)(pe,{className:"notion-collection-view-type-icon",type:s}),(0,l.jsx)("span",{className:"notion-collection-view-type-title",children:u}),a]}))}}}]);

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.