/*! For license information please see curator.embed.js.LICENSE.txt */ (()=>{"use strict";var t={4704:(t,e,o)=>{o(2234);var r=o(2564);t.exports=r("Array","includes")},1894:(t,e,o)=>{o(7050);var r=o(9120);t.exports=r.Object.assign},8140:(t,e,o)=>{o(7748);var r=o(2564);t.exports=r("String","includes")},4977:(t,e,o)=>{var r=o(4188),n=o(3174),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(n(t)+" is not a function")}},5458:(t,e,o)=>{var r=o(4282),n=o(7065),i=o(4466).f,s=r("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:n(null)}),t.exports=function(t){a[s][t]=!0}},3770:(t,e,o)=>{var r=o(831),n=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(n(t)+" is not an object")}},1458:(t,e,o)=>{var r=o(380),n=o(675),i=o(9389),s=function(t){return function(e,o,s){var a=r(e),c=i(a);if(0===c)return!t&&-1;var l,u=n(s,c);if(t&&o!=o){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===o)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},8689:(t,e,o)=>{var r=o(6881),n=r({}.toString),i=r("".slice);t.exports=function(t){return i(n(t),8,-1)}},5438:(t,e,o)=>{var r=o(9345),n=o(4188),i=o(8689),s=o(4282)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var e,o,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?o:c?i(e):"Object"===(r=i(e))&&n(e.callee)?"Arguments":r}},8657:(t,e,o)=>{var r=o(4418),n=o(3168),i=o(9304),s=o(4466);t.exports=function(t,e,o){for(var a=n(e),c=s.f,l=i.f,u=0;u{var r=o(4282)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(o){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8088:(t,e,o)=>{var r=o(6893),n=o(4466),i=o(9123);t.exports=r?function(t,e,o){return n.f(t,e,i(1,o))}:function(t,e,o){return t[e]=o,t}},9123:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7509:(t,e,o)=>{var r=o(4188),n=o(4466),i=o(4530),s=o(4798);t.exports=function(t,e,o,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:e;if(r(o)&&i(o,l,a),a.global)c?t[e]=o:s(e,o);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=o:n.f(t,e,{value:o,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},4798:(t,e,o)=>{var r=o(9117),n=Object.defineProperty;t.exports=function(t,e){try{n(r,t,{value:e,configurable:!0,writable:!0})}catch(o){r[t]=e}return e}},6893:(t,e,o)=>{var r=o(5234);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5926:(t,e,o)=>{var r=o(9117),n=o(831),i=r.document,s=n(i)&&n(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},2564:(t,e,o)=>{var r=o(9117),n=o(6881);t.exports=function(t,e){return n(r[t].prototype[e])}},1274:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8060:(t,e,o)=>{var r=o(9117).navigator,n=r&&r.userAgent;t.exports=n?String(n):""},3008:(t,e,o)=>{var r,n,i=o(9117),s=o(8060),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(n=+r[1]),t.exports=n},5613:(t,e,o)=>{var r=o(9117),n=o(9304).f,i=o(8088),s=o(7509),a=o(4798),c=o(8657),l=o(8489);t.exports=function(t,e){var o,u,d,h,p,f=t.target,g=t.global,m=t.stat;if(o=g?r:m?r[f]||a(f,{}):r[f]&&r[f].prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(p=n(o,u))&&p.value:o[u],!l(g?u:f+(m?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&i(h,"sham",!0),s(o,u,h,t)}}},5234:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9055:(t,e,o)=>{var r=o(5234);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9944:(t,e,o)=>{var r=o(9055),n=Function.prototype.call;t.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},2735:(t,e,o)=>{var r=o(6893),n=o(4418),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6881:(t,e,o)=>{var r=o(9055),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);t.exports=r?s:function(t){return function(){return i.apply(t,arguments)}}},5604:(t,e,o)=>{var r=o(9117),n=o(4188);t.exports=function(t,e){return arguments.length<2?(o=r[t],n(o)?o:void 0):r[t]&&r[t][e];var o}},2913:(t,e,o)=>{var r=o(4977),n=o(4318);t.exports=function(t,e){var o=t[e];return n(o)?void 0:r(o)}},9117:function(t,e,o){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof o.g&&o.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4418:(t,e,o)=>{var r=o(6881),n=o(3628),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(n(t),e)}},7588:t=>{t.exports={}},7458:(t,e,o)=>{var r=o(5604);t.exports=r("document","documentElement")},9622:(t,e,o)=>{var r=o(6893),n=o(5234),i=o(5926);t.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7568:(t,e,o)=>{var r=o(6881),n=o(5234),i=o(8689),s=Object,a=r("".split);t.exports=n((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3029:(t,e,o)=>{var r=o(6881),n=o(4188),i=o(2694),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},3086:(t,e,o)=>{var r,n,i,s=o(5945),a=o(9117),c=o(831),l=o(8088),u=o(4418),d=o(2694),h=o(168),p=o(7588),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new g(f);return e.facade=t,b.set(t,e),e},n=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var v=h("state");p[v]=!0,r=function(t,e){if(u(t,v))throw new g(f);return e.facade=t,l(t,v,e),e},n=function(t){return u(t,v)?t[v]:{}},i=function(t){return u(t,v)}}t.exports={set:r,get:n,has:i,enforce:function(t){return i(t)?n(t):r(t,{})},getterFor:function(t){return function(e){var o;if(!c(e)||(o=n(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return o}}}},4188:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},8489:(t,e,o)=>{var r=o(5234),n=o(4188),i=/#|\.prototype\./,s=function(t,e){var o=c[a(t)];return o===u||o!==l&&(n(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},4318:t=>{t.exports=function(t){return null==t}},831:(t,e,o)=>{var r=o(4188);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1942:t=>{t.exports=!1},473:(t,e,o)=>{var r=o(831),n=o(8689),i=o(4282)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===n(t))}},6032:(t,e,o)=>{var r=o(5604),n=o(4188),i=o(4578),s=o(9809),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return n(e)&&i(e.prototype,a(t))}},9389:(t,e,o)=>{var r=o(7611);t.exports=function(t){return r(t.length)}},4530:(t,e,o)=>{var r=o(6881),n=o(5234),i=o(4188),s=o(4418),a=o(6893),c=o(2735).CONFIGURABLE,l=o(3029),u=o(3086),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,g=r("".slice),m=r("".replace),b=r([].join),v=a&&!n((function(){return 8!==f((function(){}),"length",{value:8}).length})),w=String(String).split("String"),y=t.exports=function(t,e,o){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(e="get "+e),o&&o.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),v&&o&&s(o,"arity")&&t.length!==o.arity&&f(t,"length",{value:o.arity});try{o&&s(o,"constructor")&&o.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=d(t);return s(r,"source")||(r.source=b(w,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return i(this)&&h(this).source||l(this)}),"toString")},142:t=>{var e=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?o:e)(r)}},836:(t,e,o)=>{var r=o(473),n=TypeError;t.exports=function(t){if(r(t))throw new n("The method doesn't accept regular expressions");return t}},9456:(t,e,o)=>{var r=o(6893),n=o(6881),i=o(9944),s=o(5234),a=o(7137),c=o(156),l=o(4416),u=o(3628),d=o(7568),h=Object.assign,p=Object.defineProperty,f=n([].concat);t.exports=!h||s((function(){if(r&&1!==h({b:1},h(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},o=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[o]=7,n.split("").forEach((function(t){e[t]=t})),7!==h({},t)[o]||a(h({},e)).join("")!==n}))?function(t,e){for(var o=u(t),n=arguments.length,s=1,h=c.f,p=l.f;n>s;)for(var g,m=d(arguments[s++]),b=h?f(a(m),h(m)):a(m),v=b.length,w=0;v>w;)g=b[w++],r&&!i(p,m,g)||(o[g]=m[g]);return o}:h},7065:(t,e,o)=>{var r,n=o(3770),i=o(30),s=o(1274),a=o(7588),c=o(7458),l=o(5926),u=o(168),d="prototype",h="script",p=u("IE_PROTO"),f=function(){},g=function(t){return"<"+h+">"+t+""},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,o;b="undefined"!=typeof document?document.domain&&r?m(r):(e=l("iframe"),o="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(o),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(r);for(var n=s.length;n--;)delete b[d][s[n]];return b()};a[p]=!0,t.exports=Object.create||function(t,e){var o;return null!==t?(f[d]=n(t),o=new f,f[d]=null,o[p]=t):o=b(),void 0===e?o:i.f(o,e)}},30:(t,e,o)=>{var r=o(6893),n=o(3315),i=o(4466),s=o(3770),a=o(380),c=o(7137);e.f=r&&!n?Object.defineProperties:function(t,e){s(t);for(var o,r=a(e),n=c(e),l=n.length,u=0;l>u;)i.f(t,o=n[u++],r[o]);return t}},4466:(t,e,o)=>{var r=o(6893),n=o(9622),i=o(3315),s=o(3770),a=o(2344),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=r?i?function(t,e,o){if(s(t),e=a(e),s(o),"function"==typeof t&&"prototype"===e&&"value"in o&&p in o&&!o[p]){var r=u(t,e);r&&r[p]&&(t[e]=o.value,o={configurable:h in o?o[h]:r[h],enumerable:d in o?o[d]:r[d],writable:!1})}return l(t,e,o)}:l:function(t,e,o){if(s(t),e=a(e),s(o),n)try{return l(t,e,o)}catch(t){}if("get"in o||"set"in o)throw new c("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},9304:(t,e,o)=>{var r=o(6893),n=o(9944),i=o(4416),s=o(9123),a=o(380),c=o(2344),l=o(4418),u=o(9622),d=Object.getOwnPropertyDescriptor;e.f=r?d:function(t,e){if(t=a(t),e=c(e),u)try{return d(t,e)}catch(t){}if(l(t,e))return s(!n(i.f,t,e),t[e])}},5629:(t,e,o)=>{var r=o(1843),n=o(1274).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,n)}},156:(t,e)=>{e.f=Object.getOwnPropertySymbols},4578:(t,e,o)=>{var r=o(6881);t.exports=r({}.isPrototypeOf)},1843:(t,e,o)=>{var r=o(6881),n=o(4418),i=o(380),s=o(1458).indexOf,a=o(7588),c=r([].push);t.exports=function(t,e){var o,r=i(t),l=0,u=[];for(o in r)!n(a,o)&&n(r,o)&&c(u,o);for(;e.length>l;)n(r,o=e[l++])&&(~s(u,o)||c(u,o));return u}},7137:(t,e,o)=>{var r=o(1843),n=o(1274);t.exports=Object.keys||function(t){return r(t,n)}},4416:(t,e)=>{var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!o.call({1:2},1);e.f=n?function(t){var e=r(this,t);return!!e&&e.enumerable}:o},2287:(t,e,o)=>{var r=o(9944),n=o(4188),i=o(831),s=TypeError;t.exports=function(t,e){var o,a;if("string"===e&&n(o=t.toString)&&!i(a=r(o,t)))return a;if(n(o=t.valueOf)&&!i(a=r(o,t)))return a;if("string"!==e&&n(o=t.toString)&&!i(a=r(o,t)))return a;throw new s("Can't convert object to primitive value")}},3168:(t,e,o)=>{var r=o(5604),n=o(6881),i=o(5629),s=o(156),a=o(3770),c=n([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),o=s.f;return o?c(e,o(t)):e}},9120:(t,e,o)=>{var r=o(9117);t.exports=r},9509:(t,e,o)=>{var r=o(4318),n=TypeError;t.exports=function(t){if(r(t))throw new n("Can't call method on "+t);return t}},168:(t,e,o)=>{var r=o(746),n=o(6209),i=r("keys");t.exports=function(t){return i[t]||(i[t]=n(t))}},2694:(t,e,o)=>{var r=o(1942),n=o(9117),i=o(4798),s="__core-js_shared__",a=t.exports=n[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.40.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},746:(t,e,o)=>{var r=o(2694);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},8944:(t,e,o)=>{var r=o(3008),n=o(5234),i=o(9117).String;t.exports=!!Object.getOwnPropertySymbols&&!n((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},675:(t,e,o)=>{var r=o(6744),n=Math.max,i=Math.min;t.exports=function(t,e){var o=r(t);return o<0?n(o+e,0):i(o,e)}},380:(t,e,o)=>{var r=o(7568),n=o(9509);t.exports=function(t){return r(n(t))}},6744:(t,e,o)=>{var r=o(142);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7611:(t,e,o)=>{var r=o(6744),n=Math.min;t.exports=function(t){var e=r(t);return e>0?n(e,9007199254740991):0}},3628:(t,e,o)=>{var r=o(9509),n=Object;t.exports=function(t){return n(r(t))}},290:(t,e,o)=>{var r=o(9944),n=o(831),i=o(6032),s=o(2913),a=o(2287),c=o(4282),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!n(t)||i(t))return t;var o,c=s(t,u);if(c){if(void 0===e&&(e="default"),o=r(c,t,e),!n(o)||i(o))return o;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},2344:(t,e,o)=>{var r=o(290),n=o(6032);t.exports=function(t){var e=r(t,"string");return n(e)?e:e+""}},9345:(t,e,o)=>{var r={};r[o(4282)("toStringTag")]="z",t.exports="[object z]"===String(r)},2618:(t,e,o)=>{var r=o(5438),n=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},3174:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6209:(t,e,o)=>{var r=o(6881),n=0,i=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++n+i,36)}},9809:(t,e,o)=>{var r=o(8944);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3315:(t,e,o)=>{var r=o(6893),n=o(5234);t.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5945:(t,e,o)=>{var r=o(9117),n=o(4188),i=r.WeakMap;t.exports=n(i)&&/native code/.test(String(i))},4282:(t,e,o)=>{var r=o(9117),n=o(746),i=o(4418),s=o(6209),a=o(8944),c=o(9809),l=r.Symbol,u=n("wks"),d=c?l.for||l:l&&l.withoutSetter||s;t.exports=function(t){return i(u,t)||(u[t]=a&&i(l,t)?l[t]:d("Symbol."+t)),u[t]}},2234:(t,e,o)=>{var r=o(5613),n=o(1458).includes,i=o(5234),s=o(5458);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},7050:(t,e,o)=>{var r=o(5613),n=o(9456);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},7748:(t,e,o)=>{var r=o(5613),n=o(6881),i=o(836),s=o(9509),a=o(2618),c=o(6425),l=n("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~l(a(s(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,o),i.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{Events:()=>bi,Themes:()=>En,Utils:()=>og,Widgets:()=>zp,h:()=>L,loadWidget:()=>eg});o(1894),o(4704),o(8140);const n=function(t){var e=this.constructor;return this.then((function(o){return e.resolve(t()).then((function(){return o}))}),(function(o){return e.resolve(t()).then((function(){return e.reject(o)}))}))};const i=function(t){return new this((function(e,o){if(!t||void 0===t.length)return o(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var n=r.length;function i(t,o){if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,(function(e){i(t,e)}),(function(o){r[t]={status:"rejected",reason:o},0==--n&&e(r)}))}r[t]={status:"fulfilled",value:o},0==--n&&e(r)}for(var s=0;s2&&(s.children=arguments.length>3?y.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===s[i]&&(s[i]=t.defaultProps[i]);return T(t,s,r,n,null)}function T(t,e,o,r,n){var i={type:t,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==n?++_:n};return null==n&&null!=C.vnode&&C.vnode(i),i}function B(t){return t.children}function M(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__.__k.indexOf(t)+1):null;for(var o;ee&&x.sort(O));H.__r=0}function R(t,e,o,r,n,i,s,a,c,l,u){var d,h,p,f,g,m,b,v,w,y,C=0,_=r&&r.__k||S,x=_.length,P=x,k=e.length;for(o.__k=[],d=0;d0?T(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)&&(f.__=o,f.__b=o.__b+1,-1===(v=V(f,_,b=d+C,P))?p=j:(p=_[v]||j,_[v]=void 0,P--),X(t,f,p,n,i,s,a,c,l,u),g=f.__e,(h=f.ref)&&p.ref!=h&&(p.ref&&tt(p.ref,null,f),u.push(h,f.__c||g,f)),null!=g&&(null==m&&(m=g),y=!(w=p===j||null===p.__v)&&v===b,w?-1==v&&C--:v!==b&&(v===b+1?(C++,y=!0):v>b?P>k-b?(C+=v-b,y=!0):C--:C=v(null!=c?1:0))for(;s>=0||a=0){if((c=e[s])&&n==c.key&&i===c.type)return s;s--}if(a-1};const ht=function(t,e){var o=this.__data__,r=at(o,t);return r<0?(++this.size,o.push([t,e])):o[r][1]=e,this};function pt(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991};var We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;const He=function(t){return ke(t)&&qe(t.length)&&!!We[Nt(t)]};const Re=function(t){return function(e){return t(e)}};var ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=ze&&"object"==typeof module&&module&&!module.nodeType&&module,Ue=$e&&$e.exports===ze&&wt.process;const Ve=function(){try{var t=$e&&$e.require&&$e.require("util").types;return t||Ue&&Ue.binding&&Ue.binding("util")}catch(t){}}();var Ge=Ve&&Ve.isTypedArray;const Ke=Ge?Re(Ge):He;var Ze=Object.prototype.hasOwnProperty;const Ye=function(t,e){var o=Ne(t),r=!o&&Fe(t),n=!o&&!r&&Be(t),i=!o&&!r&&!n&&Ke(t),s=o||r||n||i,a=s?Pe(t.length,String):[],c=a.length;for(var l in t)!e&&!Ze.call(t,l)||s&&("length"==l||n&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ie(l,c))||a.push(l);return a};var Xe=Object.prototype;const Qe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xe)};const Je=function(t,e){return function(o){return t(e(o))}};const to=Je(Object.keys,Object);var eo=Object.prototype.hasOwnProperty;const oo=function(t){if(!Qe(t))return to(t);var e=[];for(var o in Object(t))eo.call(t,o)&&"constructor"!=o&&e.push(o);return e};const ro=function(t){return null!=t&&qe(t.length)&&!Dt(t)};const no=function(t){return ro(t)?Ye(t):oo(t)};const io=function(t,e){return t&&xe(e,no(e),t)};const so=function(t){var e=[];if(null!=t)for(var o in Object(t))e.push(o);return e};var ao=Object.prototype.hasOwnProperty;const co=function(t){if(!Et(t))return so(t);var e=Qe(t),o=[];for(var r in t)("constructor"!=r||!e&&ao.call(t,r))&&o.push(r);return o};const lo=function(t){return ro(t)?Ye(t,!0):co(t)};const uo=function(t,e){return t&&xe(e,lo(e),t)};var ho="object"==typeof exports&&exports&&!exports.nodeType&&exports,po=ho&&"object"==typeof module&&module&&!module.nodeType&&module,fo=po&&po.exports===ho?Ct.Buffer:void 0,go=fo?fo.allocUnsafe:void 0;const mo=function(t,e){if(e)return t.slice();var o=t.length,r=go?go(o):new t.constructor(o);return t.copy(r),r};const bo=function(t,e){var o=-1,r=t.length;for(e||(e=Array(r));++o0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Dr);const Br=function(t,e){return Tr(Fr(t,e,jr),t+"")};const Mr=function(t,e,o){(void 0!==o&&!st(t[e],o)||void 0===o&&!(e in t))&&ye(t,e,o)};const Ir=function(t){return function(e,o,r){for(var n=-1,i=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++n];if(!1===o(i[c],c,i))break}return e}};const qr=Ir();const Wr=function(t){return ke(t)&&ro(t)};var Hr=Function.prototype,Rr=Object.prototype,zr=Hr.toString,$r=Rr.hasOwnProperty,Ur=zr.call(Object);const Vr=function(t){if(!ke(t)||"[object Object]"!=Nt(t))return!1;var e=Oo(t);if(null===e)return!0;var o=$r.call(e,"constructor")&&e.constructor;return"function"==typeof o&&o instanceof o&&zr.call(o)==Ur};const Gr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const Kr=function(t){return xe(t,lo(t))};const Zr=function(t,e,o,r,n,i,s){var a=Gr(t,o),c=Gr(e,o),l=s.get(c);if(l)Mr(t,o,l);else{var u=i?i(a,c,o+"",t,e,s):void 0,d=void 0===u;if(d){var h=Ne(c),p=!h&&Be(c),f=!h&&!p&&Ke(c);u=c,h||p||f?Ne(a)?u=a:Wr(a)?u=bo(a):p?(d=!1,u=mo(c,!0)):f?(d=!1,u=ir(c,!0)):u=[]:Vr(c)||Fe(c)?(u=a,Fe(a)?u=Kr(a):Et(a)&&!Dt(a)||(u=ur(c))):d=!1}d&&(s.set(c,u),n(u,c,r,i,s),s.delete(c)),Mr(t,o,u)}};const Yr=function t(e,o,r,n,i){e!==o&&qr(o,(function(s,a){if(i||(i=new be),Et(s))Zr(e,o,a,r,t,n,i);else{var c=n?n(Gr(e,a),s,a+"",e,o,i):void 0;void 0===c&&(c=s),Mr(e,a,c)}}),lo)};const Xr=function t(e,o,r,n,i,s){return Et(e)&&Et(o)&&(s.set(o,e),Yr(e,o,void 0,t,s),s.delete(o)),e};const Qr=function(t,e,o){if(!Et(o))return!1;var r=typeof e;return!!("number"==r?ro(o)&&Ie(e,o.length):"string"==r&&e in o)&&st(o[e],t)};const Jr=function(t){return Br((function(e,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,s=n>2?o[2]:void 0;for(i=t.length>3&&"function"==typeof i?(n--,i):void 0,s&&Qr(o[0],o[1],s)&&(i=n<3?void 0:i,n=1),e=Object(e);++rNn.widgetConfigs[t]?_r(Nn.widgetConfigs[t]):{},themeConfig(t,e){if(Nn.widgetThemeOptions[t]&&Nn.widgetThemeOptions[t][e]){const o=Nn.widgetThemeOptions[t][e]({});return _r(o.config)}return{}},themeStyles(t,e,o){0===Object.keys(o).length&&(o=Nn.defaultColors(e,t));let r="transparent";o.borderColor?.startsWith("#")&&(r=7===o.borderColor.length?o.borderColor+"66":o.borderColor);return{cssRules:{".crt-widget,.crt-popup-manager":{"--crt-color-post-icon":o.iconColor,"--crt-color-post-text":o.textColor,"--crt-color-post-bg":o.bgColor,"--crt-color-widget-bg":o.widgetBgColor,"--crt-color-post-border":o.borderColor,"--crt-color-post-border-light":r,"--crt-color-post-link":o.linkColor,"--crt-color-post-tab-index":o.tabIndexColor,"--crt-color-post-date":o.dateColor,"--crt-color-post-footer":o.footerColor,"--crt-color-post-button":o.buttonColor,"--crt-color-popup-bg":!o.popupInheritPosts&&o.popupBgColor?o.popupBgColor:o.bgColor,"--crt-color-popup-letterbox":!o.popupInheritPosts&&o.popupLetterboxColor?o.popupLetterboxColor:Sn.popupLetterboxColor,"--crt-color-popup-text":!o.popupInheritPosts&&o.popupTextColor?o.popupTextColor:o.textColor,"--crt-color-popup-link":!o.popupInheritPosts&&o.popupLinkColor?o.popupLinkColor:o.linkColor,"--crt-color-popup-icon":!o.popupInheritPosts&&o.popupIconColor?o.popupIconColor:o.iconColor,"--crt-color-popup-date":!o.popupInheritPosts&&o.popupDateColor?o.popupDateColor:o.dateColor,"--crt-color-share-bg":o.shareInheritPosts?o.bgColor:o.shareBgColor,"--crt-color-share-text":o.shareInheritPosts?o.textColor:o.shareTextColor,"--crt-color-share-icon":o.shareInheritPosts?o.iconColor:o.shareIconColor}}}},widgetConfigs:{Waterfall:gn,Carousel:nn,Panel:cn,Grid:an,GridCarousel:sn,List:ln,Mosaic:un,Tetris:dn,Select:hn,Stack:pn,Wall:fn,CoverFlow:mn,Stagger:bn,Layers:vn,Timeline:wn},widgetThemeOptions:{Waterfall:{sydney:xn,berlin:kn,london:Pn,barcelona:On,manila:xn,havana:function(t){const e=t.bgColor,o=t.textColor,r=t.iconColor,n=t.linkColor,i=t.borderColor;return{config:{},styles:{widget:{backgroundColor:t.widgetBgColor},post:{backgroundColor:e,borderColor:i,borderWidth:"1px",color:o},postText:{color:o},postTextLink:{color:n},postName:{color:o,textDecoration:"none"},postUsername:{color:n},postIcon:{color:r},postComments:{color:o},postShareIcons:{color:r},postIconWithBorder:{color:r,borderColor:r},postDate:{color:o},postFixDate:{color:t.dateColor},linearGradient:{background:`linear-gradient(${e}00, ${e}FF)`},loadMore:{color:o,backgroundColor:e,borderColor:i},postBgNoBorder:{backgroundColor:e,color:o},cssRules:{".crt-post .crt-post-border":{borderColor:i},".crt-post .crt-post-c":{borderColor:i},".crt-widget .crt-post.crt-post-havana.crt-post-has-image .crt-post-content .crt-post-userimage":{borderColor:e},".crt-widget .crt-post.crt-post-havana .post-footer-2 .crt-post-share .crt-share-button a svg":{color:r},".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}},helsinki:function(t){const e=t.bgColor,o=t.textColor,r=t.iconColor,n=t.linkColor,i=t.borderColor,s=t.widgetBgColor,a=t.dateColor,c=t.footerColor,l={".crt-post .crt-post-border":{borderColor:i},".crt-post .crt-post-c":{borderColor:i},".crt-widget .crt-post.crt-post-helsinki .crt-post-footer-helsinki":{backgroundColor:c},".crt-post-date .crt-post-date-link":{color:o},".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}};return"transparent"===c&&(l[".crt-widget .crt-post.crt-post-helsinki .crt-post-footer-helsinki"]={backgroundColor:"transparent",bottom:"0",left:"0",right:"0",position:"absolute"}),{config:{},styles:{widget:{backgroundColor:s},post:{backgroundColor:e,borderColor:i,borderWidth:"1px",color:o},postText:{color:o},postTextLink:{color:n},postName:{color:o,textDecoration:"none"},postUsername:{color:n},postIcon:{color:r},postComments:{color:o},postShareIcons:{color:r},postIconWithBorder:{color:r,borderColor:r},postDate:{color:o},postFixDate:{color:a},linearGradient:{background:`linear-gradient(${e}00, ${e}FF)`},postFooter:{backgroundColor:c},loadMore:{color:o,backgroundColor:e,borderColor:i},cssRules:l}}}},Carousel:{sydney:xn,berlin:kn,london:Pn,barcelona:On,manila:xn},Panel:{sydney:xn,berlin:kn,london:Pn,barcelona:On,manila:xn},Grid:{sydney:yn,"new-york":Cn,tokyo:_n,manila:yn},GridCarousel:{sydney:yn,"new-york":Cn,tokyo:_n,manila:yn},List:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.linkColor,n=t.borderColor,i=t.widgetBgColor,s=t.iconColor;let a="transparent";return n?.startsWith("#")&&(a=7===n.length?n+"66":n),{config:{},styles:{postIcon:{color:s},loadMore:{color:o,backgroundColor:e,borderColor:n},cssRules:{".crt-list-post .crt-post-content":{backgroundColor:e},".crt-list-post .crt-post-text, .crt-list-post .crt-post-text, .crt-list-post .crt-post-title":{color:o},".crt-list-post .crt-post-text p a, .crt-list-post .crt-list-post-text-wrap a":{color:r},".crt-list-post .crt-social-icon i":{color:s},".crt-list-post .crt-social-icon svg":{color:s},".crt-list-post, .crt-post":{borderRadius:"1px"},".crt-list-post, .crt-post-border":{borderColor:n},".crt-widget":{backgroundColor:i},".crt-list-post .crt-post-fullname a":{color:r},".crt-list-post .crt-post-footer .crt-post-share .crt-share-button svg":{color:s},".crt-list-post .crt-post-footer .crt-post-username a":{color:r},".crt-list-post .crt-post-footer .crt-post-date .crt-post-date-link":{color:o},".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor},".crt-widget .crt-post-footer":{borderColor:a}},postIconWithBorder:{color:s,borderColor:s},postBgNoBorder:{backgroundColor:e,color:o}}}}},Mosaic:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.linkColor,n=t.borderColor,i=t.iconColor;return{config:{post:{template:"post-mosaic"}},styles:{widget:{backgroundColor:t.widgetBgColor},post:{},postContent:{backgroundColor:e,color:o},postText:{color:o},postTextLink:{color:r},postHover:{backgroundColor:e,color:o,borderColor:n},postHoverLink:{color:r},postIcon:{color:i},postFooter:{backgroundColor:e,borderTopColor:n},postIconWithBorder:{color:i,borderColor:i},postHoverGradient:{background:`linear-gradient(${e}00, ${e}FF)`},postBorder:{borderColor:n},loadMore:{color:o,backgroundColor:e,borderColor:n},postDate:{color:o},cssRules:{".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}},manila:xn},Tetris:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.linkColor,n=t.borderColor,i=t.widgetBgColor,s=t.iconColor;return{config:{post:{template:"post-tetris"}},styles:{widget:{backgroundColor:i},post:{backgroundColor:e,borderColor:n,borderWidth:"1px",color:o},postBorder:{borderColor:n,borderWidth:"1px",borderStyle:"solid"},postContent:{backgroundColor:e,color:o},postText:{color:o},postShareIcons:{color:s},postTextLink:{color:r},postHover:{backgroundColor:e,color:o},postUsername:{color:r},postHoverLink:{color:r},postIcon:{color:s},postFooter:{background:`linear-gradient(${e}00, ${e}FF)`},postIconWithBorder:{color:s,borderColor:s},loadMore:{color:o,backgroundColor:e,borderColor:n},postDate:{color:o},cssRules:{".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}}},Wall:{sydney:xn},Select:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.iconColor,n=t.linkColor,i=t.borderColor;return{config:{},styles:{widget:{backgroundColor:t.widgetBgColor},post:{backgroundColor:e,borderColor:i,borderWidth:"1px",color:o},postContent:{backgroundColor:e,color:o},postFooter:{background:`linear-gradient(${e}00, ${e}FF)`},postImages:{borderColor:i,borderWidth:"1px",borderStyle:"solid"},postText:{color:o},postTextLink:{color:n},postName:{color:o,textDecoration:"none"},postUsername:{color:n},postIcon:{color:r},postComments:{color:o},postShareIcons:{color:r},postIconWithBorder:{color:r,borderColor:r},postDate:{color:o},loadMore:{color:o,backgroundColor:e,borderColor:i},cssRules:{".crt-post .crt-post-border":{borderColor:i},".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}}},Stack:{sydney:xn},CoverFlow:{sydney:xn},Stagger:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.linkColor,n=t.borderColor,i=t.widgetBgColor,s=t.iconColor;return{config:{post:{template:"post-stagger"}},styles:{widget:{backgroundColor:i},post:{backgroundColor:e,borderColor:n,borderWidth:"1px",color:o},postBorder:{borderColor:n,borderWidth:"1px",borderStyle:"solid"},postContent:{backgroundColor:e,color:o},postText:{color:o},postShareIcons:{color:s},postTextLink:{color:r},postHover:{backgroundColor:e,color:o},postUsername:{color:r},postHoverLink:{color:r},postIcon:{color:s},postFooter:{background:`linear-gradient(${e}00, ${e}FF)`},postIconWithBorder:{color:s,borderColor:s},loadMore:{color:o,backgroundColor:e,borderColor:n},postDate:{color:t.dateColor},cssRules:{".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}}},Layers:{sydney:xn},Timeline:{sydney:function(t){const e=t.bgColor,o=t.textColor,r=t.borderColor;return{config:{post:{template:"post-timeline"}},styles:{widget:{backgroundColor:t.widgetBgColor},postScrollbarTrack:{backgroundColor:e,background:`linear-gradient(90deg,\n ${e} 20px,\n transparent 0%\n ),\n linear-gradient(90deg,\n transparent calc(100% - 20px),\n ${e} 20px\n ),\n linear-gradient(180deg,\n ${e} 26px,\n transparent 26px\n ),\n linear-gradient(180deg,\n transparent 34px,\n ${e} 26px\n ),\n repeating-linear-gradient(\n to right,\n #8B8E9F,\n #8B8E9F 1px,\n ${e} 2px,\n ${e} 8px\n )`},postBorder:{borderColor:r,borderWidth:"1px",borderStyle:"solid"},postText:{color:o},postUsername:{color:o},cssRules:{".crt-widget *:focus":{outlineColor:t.tabIndexColor},".crt-popup-manager *:focus":{outlineColor:t.tabIndexColor}}}}}}},widgetDefaultColors:{Tetris:{widgetBgColor:"transparent",bgColor:"#FFFFFF",borderColor:"#EAEAEA",iconColor:"#1E1E23",textColor:"#222222",linkColor:"#595959",dateColor:"#8B8E9F",tabIndexColor:"#cccccc",...Sn},Stack:{widgetBgColor:"transparent",bgColor:"#F4F4F4",borderColor:"transparent",iconColor:"#1E1E23",textColor:"#222222",linkColor:"#595959",dateColor:"#1E1E23",tabIndexColor:"#cccccc",...Sn},CoverFlow:{widgetBgColor:"transparent",bgColor:"#F4F4F4",borderColor:"transparent",iconColor:"#F4F4F4",textColor:"#F4F4F4",linkColor:"#999999",dateColor:"#1E1E23",tabIndexColor:"#cccccc",...Sn},Stagger:{widgetBgColor:"transparent",bgColor:"#E9EBF0",borderColor:"transparent",iconColor:"#1E1E23",textColor:"#222222",linkColor:"#595959",dateColor:"#444650",tabIndexColor:"#cccccc",...Sn},Timeline:{widgetBgColor:"transparent",bgColor:"#f4f4f6",borderColor:"white",iconColor:"#1E1E23",textColor:"#ffffff",linkColor:"transparent",dateColor:"transparent",tabIndexColor:"#cccccc",...Sn},Layers:{widgetBgColor:"transparent",bgColor:"#ffffff",borderColor:"transparent",iconColor:"#222222",textColor:"#222222",linkColor:"#595959",dateColor:"#000000",footerColor:"#ffffff",tabIndexColor:"#cccccc",...Sn}}},En=Nn;var Dn,Ln;!function(t){t.WATER_FALL="Waterfall",t.CAROUSEL="Carousel",t.PANEL="Panel",t.GRID="Grid",t.GRID_CAROUSEL="GridCarousel",t.LIST="List",t.MOSAIC="Mosaic",t.TETRIS="Tetris",t.WALL="Wall",t.SELECT="Select",t.STACK="Stack",t.COVER_FLOW="CoverFlow",t.STAGGER="Stagger",t.LAYERS="Layers",t.TIMELINE="Timeline"}(Dn||(Dn={})),function(t){t.SYDNEY="sydney",t.BERLIN="berlin",t.LONDON="london",t.TOKYO="tokyo",t.NEW_YORK="new-york",t.BARCELONA="barcelona"}(Ln||(Ln={}));const Tn=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D/.source,Bn=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,Mn=/_\u200c\u200d\ua67e\u05be\u05f3\u05f4\uff5e\u301c\u309b\u309c\u30a0\u30fb\u3003\u0f0b\u0f0c\u00b7/.source,In=/\.-/.source,qn={hashSigns:/[##]/,hashtagAlpha:new RegExp("["+Tn+"]"),hashtagAlphaNumeric:new RegExp("["+Tn+Bn+Mn+In+"]"),hashtagBoundary:new RegExp("(?:^|$|[^&"+Tn+Bn+Mn+"])")};function Wn(t,e=""){return"string"!=typeof t&&(t.global&&e.indexOf("g")<0&&(e+="g"),t.ignoreCase&&e.indexOf("i")<0&&(e+="i"),t.multiline&&e.indexOf("m")<0&&(e+="m"),t=t.source),new RegExp(t.replace(/#\{(\w+)\}/g,(function(t,e){let o=qn[e]||"";return"string"!=typeof o&&(o=o.source),o})),e)}qn.endHashtagMatch=Wn(/^(?:#{hashSigns}|:\/\/)/),qn.validHashtag=Wn(/[#]+(#{hashtagAlphaNumeric}*)/gi),qn.excludeInsideLinks=Wn(/(.*?<\/a>)|([#]+(#{hashtagAlphaNumeric}*))/gi);const Hn={camelize:t=>t.replace(/(?:^|[-_])(\w)/g,(function(t,e){return e?e.toUpperCase():""})),camelToDash:t=>t.replace(/([A-Z])/g,(function(t,e,o){return(o>0?"-":"")+t.toLowerCase()})),replaceHashtag:(t,e)=>t=t.replace(qn.excludeInsideLinks,(function(t,o,r){return o||e(r)})),twitterLinks:t=>(t=t.replace(/[@]+[A-Za-z0-9-_]+/g,(function(t){const e=t.replace("@","");return Hn.url("https://twitter.com/"+e,t)})),t=Hn.replaceHashtag(t,(t=>{const e=t.replace("#","%23");return Hn.url("https://twitter.com/search?q="+e,t)})),t),instagramLinks:t=>(t=t.replace(/[@]+[A-Za-z0-9-_\.]+/g,(function(t){const e=t.replace("@","");return Hn.url("https://www.instagram.com/"+e+"/",t)})),t=Hn.replaceHashtag(t,(t=>{const e=t.replace("#","");return Hn.url("https://www.instagram.com/explore/tags/"+e+"/",t)})),t),facebookLinks:t=>(t=t.replace(/[@]+[A-Za-z0-9-_]+/g,(function(t){const e=t.replace("@","");return Hn.url("https://www.facebook.com/"+e+"/",t)})),t=Hn.replaceHashtag(t,(t=>{const e=t.replace("#","%23");return Hn.url("https://www.facebook.com/search/top/?q="+e,t)})),t),removeScripts:(t,e="")=>t=t.replace(/)<[^<]*)*<\/script>/gi,(function(){return e})),linksToHref:t=>t=t.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&~\?\/.=]+[A-Za-z0-9-_:%&~\?\/=#]+/g,(function(t){return Hn.url(t)})),url:(t,e)=>''+(e=e||t)+"",forceHttps:t=>t?t.replace("http://","https://"):t,youtubeVideoId(t){const e=t.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);if(e&&11===e[7].length)return e[7];{const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/))([^#\&\?]*).*/,o=t.match(e);if(o&&11===o[6].length)return o[6]}return!1},vimeoVideoId(t){const e=t.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/);return!!(e&&e.length>=2)&&e[1]},filterHtml(t){try{const e=document.createElement("div");e.innerHTML=t;return e.textContent||e.innerText||""}catch(e){return t}},isHtml:t=>0===t.trim().indexOf("<"),nl2br:function(t){return t=(t=t.trim()).replace(/(?:\r\n|\r|\n)/g,"
")},replaceAll:(t,e,o)=>t.split(e).join(o)},Rn=Hn;function zn(t){return void 0!==t.current}function $n(t){return void 0!==t.item}function Un(t){return zn(t)?t.current||void 0:$n(t)?t.length>0?t.item(0):void 0:t}function Vn(t,e,o=void 0){const r=Un(t);if(r){const t=r.getAttribute("data-"+e);if(t)return t}return o}function Gn(t){const e=Un(t);return e&&e.textContent?e.textContent:""}const Kn=["width","height"];function Zn(t,e,o,r,n){return new Promise((i=>{const s=n/1e3,a=Un(t);if(a){const t=function(t){return-1!==Kn.indexOf(t)?"px":""}(e);a.style.setProperty(e,o+t),a.style.transition=`${e} ${s}s linear`,a.style.setProperty(e,r+t),window.setTimeout((()=>{a.style.transition="",a.style.setProperty(e,r+t),i()}),n+10)}else console.log("Could not find element ")}))}function Yn(t,e){const o=Un(t);o&&Object.keys(e).forEach((t=>{o.style.setProperty(t,e[t])}))}function Xn(t,e){const o=Un(t);return e?(o&&(o.style.width=`${e}px`),e):o?o.clientWidth||o.offsetWidth:0}function Qn(t,e){const o=Un(t);return e?(o&&(o.style.height=`${e}px`),e):o?o.clientHeight:0}function Jn(t){const e=Un(t);return e?e.offsetHeight:0}function ti(t){const e=Un(t);if(e){const t=window.getComputedStyle(e);return parseFloat(t.borderTop)+parseFloat(t.borderBottom)}return 0}function ei(t,e){const o=Un(t);o&&o.classList.contains(e)&&o.classList.remove(e)}function oi(t,e){const o=Un(t);o&&(o.classList.contains(e)||o.classList.add(e))}function ri(t,e){const o=Un(t);return!!o&&o.classList.contains(e)}function ni(t){return e=>{e.preventDefault(),e.cancelBubble=!0,t(e)}}function ii(t){if("string"==typeof t){let e;if(0===t.indexOf("[data-")){const o=document.querySelectorAll(t);o.length>0&&(e=o[0])}else if(0===t.indexOf("#")){const o=t.replace(/#/,"");e=document.getElementById(o)}return e||void 0}return zn(t)?t.current||void 0:$n(t)?t.length>0?t.item(0):void 0:t}const si=[];function ai(t){si.push(t)}function ci(t){return{debug(...e){for(const o of si)o.debug(t,...e)},log(...e){for(const o of si)o.log(t,...e)},info(...e){for(const o of si)o.info(t,...e)},warn(...e){for(const o of si)o.warn(t,...e)},error(...e){for(const o of si)o.error(t,...e)}}}ci("common");const li=function(t){return"number"==typeof t||ke(t)&&"[object Number]"==Nt(t)},ui=["curator-admin.test","admin.curator.io","admin-stage.curator.io","superadmin.curator.io","app.curator.io","localhost"];const di=["flex","flex-grow","flex-shrink","flex-basis","opacity","z-index","order","grid-column","grid-row","grid-column-start","grid-column-end","grid-row-start","grid-row-end"];function hi(t,e){Object.keys(e).forEach((function(o){let r=e[o];li(r)&&-1===di.indexOf(o)&&(r+="px"),t.style[o]=r}))}let pi=0;const fi=ci("HtmlUtils"),gi={checkContainer:t=>(fi.log("checkContainer: "+t),!!ii(t)||(fi.error("Curator could not find the element "+t+". Please ensure this element exists in your HTML code. Exiting."),!1)),checkPowered(t){fi.log("checkPowered");return function(t){const e=Un(t);return e&&e.innerHTML?e.innerHTML:""}(t).indexOf("Curator")>0||(window.alert("Container is missing Powered by Curator"),!1)},addCSSRule(t,e,o,r=0){"insertRule"in t?t.insertRule(e+"{"+o+"}",r):"addRule"in t&&t.addRule(e,o)},deleteCSSRules(t){if(t.cssRules)for(let e=t.cssRules.length-1;e>-1;e--)t.deleteRule(e);else for(let e=0;ei?t=t["gt"+i]:t.n?t=t.n:r?t=r:(o&&console.log('[Translation] No plural forms found for count:"'+e+'" in',t),t=t[Object.keys(t).reverse()[0]])}return t}(l,c,`${c}`)),l=n(l,a),void 0===l&&(l=o?"@@"+e+"@@":e,o&&console.log('Translation for "'+e+'" not found.')),l}}},Pi=xi,ki={},Oi="\nid,en,da,de,it,nl,es,fr,po,ru,sl,fi,pl,ar,zh,jp,pt-br,kr,th,hr,tr,in,vi,nor\nload-more,Load more,Hent mere,Mehr anzeigen,Di più,Laad meer,Cargar más,Voir plus,Carregar Mais,Загрузить больше,Prikaži več,Lataa lisää,Zobacz Więcej,تحميل المزيد,加载更多,もっと見る,Carregar mais,더 보기,ดูทั้งหมด,Prikaži još,Daha fazla yükle,Lihat lagi,Tải thêm,Last inn mer\nminutes-ago.1,{n} minute ago,{n} minut siden,Vor einer Minute,Un minuto fa,{n} minuut geleden,Hace un minuto,Il y a {n} minute,Tem um minuto,Одну минуту назад,pred {n} minuto,{n} minuutti sitten,,قبل {n} من الدقائق,{n}分钟前,{n} 分前,há {n} minuto,{n} 분 전에,นาทีที่แล้ว,prije {n} minute,{n} dakika önce,{n} menit yang lalu,{n} phút trước,Et minutt siden\nminutes-ago.n,{n} minutes ago,{n} minutter siden,Vor {n} Minuten,{n} minuti fa,{n} minuten geleden,Hace {n} minutos,Il y a {n} minutes,Tem {n} minutos,{n} минут назад,pred {n} minutami,{n} minuuttia sitten,,قبل {n} من الدقائق,{n}分钟前,{n} 分前,há {n} minutos,{n} 분 전에,หลายนาทีที่แล้ว,prije {n} minuta,{n} dakika önce,{n} menit yang lalu,{n} phút trước,Minutter siden\nhours-ago.1,{n} hour ago,{n} time siden,Vor einer Stunde,Un'ora fa,{n} uur geleden,Hace una hora,Il y a {n} heure,Tem {n} hora,Один час назад,pred {n} uro,{n} tunti sitten,,قبل {n} من الساعات,{n}小时前,{n} 時間前,há {n} hora,{n} 시간 전에,ชั่วโมงที่แล้ว,prije {n} sat,{n} saat önce,{n} jam yang lalu,{n} giờ trước,En time siden\nhours-ago.n,{n} hours ago,{n} timer siden,Vor {n} Stunden,{n} ore fa,{n} uren geleden,Hace {n} horas,Il y a {n} heures,Tem {n} horas,{n} часов назад,pred {n} urami,{n} tuntia sitten,,قبل {n} من الساعات,{n}小时前,{n} 時間前,há {n} horas,{n} 시간 전에,หลายชั่วโมงที่แล้ว,prije {n} sati,{n} saat önce,{n} jam yang lalu,{n} giờ trước,Timer siden\ndays-ago.1,{n} day ago,{n} dag siden,Vor einem Tag,Un giorno fa,{n} dag geleden,Hace un día,Il y a {n} jour,Faz um dia,Один день назад,pred {n} dnevom,{n} päivä sitten,,قبل{n} من الأيام,{n}天前,{n} 日前,há {n} dia,{n} 일 전에,วันก่อน,prije {n} dan,{n} gün önce,{n} hari yang lalu,{n} ngày trước,En dag siden\ndays-ago.n,{n} days ago,{n} dage siden,Vor {n} Tagen,{n} giorni fa,{n} dagen geleden,Hace {n} días,Il y a {n} jours,Fazem {n} dias,{n} дней назад,pred {n} dnevi,{n} päivää sitten,Dni Temu,قبل{n} من الأيام,{n}天前,{n} 日前,há {n} dias,{n} 일 전에,หลายวันก่อน,prije {n} dana,{n} gün önce,{n} hari yang lalu,{n} ngày trước,Dager siden\nweeks-ago.1,{n} week ago,{n} uge siden,Vor einer Woche,Una settimana fa,{n} week geleden,Hace una semana,Il y a {n} semaine,Faz uma semana,Одну неделю назад,pred {n} tednom,{n} viikko sitten,,قبل {n} من الأسابيع,{n}周前,{n} 週間前,há {n} semana,{n} 주 전에,สัปดาห์ก่อน,prije {n} tjedan,{n} hafta önce,{n} minggu yang lalu,{n} tuần trước,En uke siden\nweeks-ago.n,{n} weeks ago,{n} uger siden,Vor {n} Wochen,{n} settimane fa,{n} weken geleden,Hace {n} semanas,Il y a {n} semaines,Fazem {n} semanas,{n} недель назад,pred {n} tedni,{n} viikkoa sitten,,قبل {n} من الأسابيع,{n}周前,{n} 週間前,há {n} semanas,{n} 주 전에,หลายสัปดาห์ก่อน,prije {n} tjedana,{n} hafta önce,{n} minggu yang lalu,{n} tuần trước,Uker siden\nmonths-ago.1,{n} month ago,{n} måned siden,Vor einem Monat,Un mese fa,{n} maand geleden,Hace un mes,Il y a {n} mois,Tem um mês,Один месяц назад,pred {n} mesecem,{n} kuukausi sitten,,قبل {n} من الأشهر,{n}个月前,{n} ヶ月前,há {n} mês,{n} 달 전에,เดือนก่อน,prije {n} mjesec,{n} ay önce,{n} bulan yang lalu,{n} tháng trước,En måned siden\nmonths-ago.n,{n} months ago,{n} måneder siden,Vor {n} Monaten,{n} mesi,{n} maanden geleden,Hace {n} meses,Il y a {n} mois,Tem {n} meses,{n} месяцев назад,pred {n} meseci,{n} kuukautta sitten,,قبل {n} من الأشهر,{n}个月前,{n} ヶ月前,há {n} meses,{n} 달 전에,หลายเดือนก่อน,prije {n} mjeseci,{n} ay önce,{n} bulan yang lalu,{n} tháng trước,Måneder siden\nyesterday,Yesterday,I går,Gestern,Ieri,Gisteren,Ayer,Hier,Ontem,Вчера,Včeraj,Eilen,,البارحة,昨天,昨日,Ontem,어제,เมื่อวาน,Jučer,Dün,Kemarin,Hôm qua,I går\njust-now,Just now,Lige nu,Eben,Appena,Nu,Ahora,Il y a un instant,Agora,Только что,Pravkar,Juuri nyt,,للتو,刚刚,たった今,Agora,지금,เมื่อสักครู่,Upravo sad,Az önce,Baru saja,Vừa xong,Akkurat nå\nprevious,Previous,Forrige,Zurück,Indietro,Vorige,Anterior,Précédent,Anterior,Предыдущий,Prejšnji,Edellinen,,السابق,上一个,前の記事,Anterior,이전,ก่อนหน้า,Prethodni,Öncesi,Sebelumnya,Trước,Forrige\nnext,Next,Næste,Weiter,Più,Volgende,Siguiente,Suivant,Próximo,Следующий,Naslednji,Seuraava,,التالي,下一个,次の記事,Próximo,다음,ถัดไป,Slijedeći,Sonraki,Berikutnya,Tiếp theo,Neste\ncomments,Comments,Kommentarer,Kommentare,Commenti,Comments,Comentarios,Commentaires,Comentários,Комментарии,Komentarji,Kommenttia,,تعليقات,评论,コメント,Comentários,댓글,ความคิดเห็น,Komentari,Yorum,Komentar,Bình luận,Kommentarer\nlikes,Likes,Synes godt om,Gefällt mir,Mi piace,Likes,Me gusta,J'aime,Curtir,Лайки,Všečki,Tykkäystä,,إعجابات,赞,いいね,Curtidas,좋아요,ถูกใจ,Sviđa mi se,Beğeni,Suka,Thích,Liker\nread-more,Read more,Læs mere,Weiterlesen,Di più,Lees meer,Leer más,En savoir plus,Leia mais,Подробнее,Preberi več,Lue lisää,,قراءة المزيد,阅读更多,もっと読む,Leia mais,더 읽어보기,อ่านเพิ่มเติม,Nastavite čitati,Daha fazla oku,Selengkapnya,Đọc thêm,Les mer\nfilter,Filter,Filter,Filtern,filtrare,Filtreren,filtrar,filtrer,Filtro,фильтровать,Filter,Suodata,,تصفية,筛选,フィルター,Filtro,필터,ตัวกรอง,Filtriranje,Filtre,Filter,Lọc,Filter\nall,All,Alle,Alle,Tutti,Alle,Todas,Tout,Todos,все,Vsi,Kaikki,,الجميع,全部,全て,Tudo,전부,ทั้งหมด,Svi,Hepsi,Semua,Tất cả,Alle\ngo-to-original-post,Go to original post,Gå til originalt opslag,Original-Post ansehen,,Ga naar het bericht,Ver publicación original,Voir la publication,,,,Näytä alkuperäinen viesti,,العودة للمنشور الأصلي,查看原帖,元の記事へ,Ir para o conteúdo original,원래의 포스트로 가기,ไปยังโพสต์ต้นฉบับ,Idi na originalnu objavu,Orijinal gönderiye git,Ke artikel awal,Xem bài viết gốc,Gå til originalt innlegg\nfilter-source,Filter source,Filter kilde,Filtern,Filtrare,Filtreren,Filtrar,Filtrer,Filtro,фильтровать,Filter,Suodata lähde,,تصفية بحسب المصدر,过滤源,フィルターソース,Filtro por fonte,필터 소스,ตัวกรองแหล่งที่มา,Filtriraj izvor,Kaynağı filtrele,Filter sumber,Lọc theo nguồn,Filter kilde\nfilter-network,Filter network,Filter netværk,Filtern,Filtrare,Filtreren,Filtrar,Filtrer,Filtro,фильтровать,Filter,Suodata palvelu,,تصفية بحسب الشبكة,过滤网络,フィルターネットワーク,Filtro por rede social,필터 네트워크,ตัวกรองเครือข่าย,Filtriraj mrežu,Ağı filtrele,Filter jaringan,Lọc theo mạng,Filter nettverk\nno-posts,The feed contains no posts,Der er ingen opslag i dette feed,Der Feed enthält keine Posts,,,,,,,,Syötteessä ei ole sisältöä,,ليس في التلقيمة أي منشورات,此信息流不包含任何帖子,このフィードには投稿がありません,Este feed está vazio,피드에 포스트가 없습니다,ไม่มีโพสต์,Ovaj feed nema objava,Gönderi yok,Tidak ada post di feed ini,Không có bài viết trong nguồn cấp dữ liệu này,Denne feeden inneholder ingen innlegg\nalt-image-posted,Image posted by {userName} to {networkName},Billede slået op af {userName} på {networkName},,,,,,,,,{networkName} kuva lisätty käyttäjän {userName} toimesta,,نُشرت الصورة من طرف المستخدم {userName} إلى الشبكة {networkName},图片由{userName}发布到{networkName},,Imagem publicada por {userName} no {networkName},{userName} 가 {networkName} 로 포스팅한 이미지,รูปภาพโพสต์โดย (ชื่อผู้ใช้) ไปยัง (ชื่อเครือข่าย),Slika korisnika {userName} objavljena na {networkName},{userName} tarafından {networkName}'e fotoğraf yayımlandı,Gambar diposting oleh {userName} ke {networkName},Ảnh được {userName} đăng tải lên {networkName},Bilde postet av {userName} til {networkName}\nalt-profile-image,Profile image for {userName},Profilbillede for {userName},,,,,,,,,Käyttäjän {userName} profiilikuva,,صورة ملف المستخدم {userName},{userName}的资料图片,,Imagem de perfil para {userName},{userName} 의 프로필 이미지,รูปโปรไฟลล์สำหรับ (ชื่อผู้ใช้),Profilna slika korisnika {userName},Profil resmi {userName},Gambar profil untuk {userName},Ảnh đại diện của {userName},Profilbilde til {userName}\nalt-image-posted-no-username,Image posted to {networkName},,,,,,,,,,,,,,,,,,,,,,Bilde postet til {networkName}\nalt-video-posted,Video posted by {userName} to {networkName},Video slået op af {userName} på {networkName},,,,,,,,,Video lisätty käyttäjän {userName} toimesta {networkName}:ssä,,فيديو نُشر بواسطة {userName} على {networkName},{userName}发布的视频到{networkName},ユーザー{userName}によって{networkName}に投稿された動画,Video publicado por {userName} no {networkName},{userName} 가 {networkName} 에 게시한 비디오,วิดีโอโพสต์โดย {userName} ไปยัง {networkName},Video objavljen od {userName} na {networkName},{userName} tarafından {networkName}'e video yayımlandı,Video yang diposting oleh {userName} ke {networkName},Video được {userName} đăng tải lên {networkName},Video postet av {userName} til {networkName}\nalt-video-posted-no-username,Video posted to {networkName},Video slået op på {networkName},Video in {networkName} gepostet,Video pubblicato su {networkName},Video gepost op {networkName},Vídeo publicado en {networkName},Vidéo postée sur {networkName},Vídeo postado no {networkName},Видео опубликовано в {networkName},Video objavljeno na {networkName},Video lisätty {networkName}:ssä,,فيديو نُشر على {networkName},{networkName}发布的视频,ユーザーが{networkName}に投稿された動画,Video publicado no {networkName},{networkName} 에 게시한 비디오,วิดีโอโพสต์ไปยัง {networkName},Video objavljen na {networkName},{networkName}'e video yayımlandı,Video diposting ke {networkName},Video được đăng tải lên {networkName},Video postet til {networkName}\n".split("\n");for(let t=Oi.length-1;t>=0;t--)Oi[t]||Oi.splice(t,1);const Ai=Oi[0].split(",");function ji(t,e,o){const r=e.split(".");for(let e=0;et.url&&""!==t.url&&"''"!==t.url?t.url:t.network_id+""=="1"?"https://twitter.com/"+t.user_screen_name+"/status/"+t.source_identifier:"",center(t,e,o){const r=window.screen,n=o||{},i=n.height||r.height,s=n.width||r.height;return{top:i?(i-e)/2:0,left:s?(s-t)/2:0}},popup(t,e,o,r,n){const i=this.center(o,r),s="height="+r+",width="+o+",top="+i.top+",left="+i.left+",scrollbars="+n+",resizable";window.open(t,e,s)},tinyparser:(t,e)=>t.replace(/\{\{(.*?)\}\}/g,(function(t,o){return e&&void 0!==e[o]?encodeURIComponent(e[o]):""})),debounce(t,e,o,r){let n;function i(){const i=r&&!n;window.clearTimeout(n),n=window.setTimeout((function(){r||t.apply(o)}),e),i&&t.apply(o)}return i.cancel=function(){void 0!==n&&window.clearTimeout(n),n=void 0},i},uId:()=>"_"+Math.random().toString(36).substr(2,9),isMobile:()=>(window.innerWidth>0?window.innerWidth:screen.width)<480},Mi=Bi;const Ii=function(t){return"symbol"==typeof t||ke(t)&&"[object Symbol]"==Nt(t)};var qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wi=/^\w*$/;const Hi=function(t,e){if(Ne(t))return!1;var o=typeof t;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=t&&!Ii(t))||(Wi.test(t)||!qi.test(t)||null!=e&&t in Object(e))};function Ri(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var o=function(){var r=arguments,n=e?e.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var s=t.apply(this,r);return o.cache=i.set(n,s)||i,s};return o.cache=new(Ri.Cache||fe),o}Ri.Cache=fe;const zi=Ri;var $i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ui=/\\(\\)?/g,Vi=function(t){var e=zi(t,(function(t){return 500===o.size&&o.clear(),t})),o=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace($i,(function(t,o,r,n){e.push(r?n.replace(Ui,"$1"):o||t)})),e}));const Gi=Vi;const Ki=function(t,e){for(var o=-1,r=null==t?0:t.length,n=Array(r);++o=o.__.length&&o.__.push({__V:ds}),o.__[t]}function vs(t){return ls=1,ws(Fs,t)}function ws(t,e,o){var r=bs(is++,2);if(r.t=t,!r.__c&&(r.__=[o?o(e):Fs(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],o=r.t(e,t);e!==o&&(r.__N=[o,r.__[1]],r.__c.setState({}))}],r.__c=ss,!ss.u)){var n=function(t,e,o){if(!r.__c.__H)return!0;var n=r.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!i||i.call(this,t,e,o);var s=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&r.__c.props===t)&&(!i||i.call(this,t,e,o))};ss.u=!0;var i=ss.shouldComponentUpdate,s=ss.componentWillUpdate;ss.componentWillUpdate=function(t,e,o){if(this.__e){var r=i;i=void 0,n(t,e,o),i=r}s&&s.call(this,t,e,o)},ss.shouldComponentUpdate=n}return r.__N||r.__}function ys(t,e){var o=bs(is++,3);!C.__s&&Ss(o.__H,e)&&(o.__=t,o.i=e,ss.__H.__h.push(o))}function Cs(t){return ls=5,_s((function(){return{current:t}}),[])}function _s(t,e){var o=bs(is++,7);return Ss(o.__H,e)?(o.__V=t(),o.i=e,o.__h=t,o.__V):o.__}function xs(t){var e=ss.context[t.__c],o=bs(is++,9);return o.c=t,e?(null==o.__&&(o.__=!0,e.sub(ss)),e.props.value):t.__}function Ps(){for(var t;t=us.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(As),t.__H.__h.forEach(js),t.__H.__h=[]}catch(e){t.__H.__h=[],C.__e(e,t.__v)}}C.__b=function(t){ss=null,hs&&hs(t)},C.__r=function(t){ps&&ps(t),is=0;var e=(ss=t.__c).__H;e&&(as===ss?(e.__h=[],ss.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=ds,t.__N=t.i=void 0}))):(e.__h.forEach(As),e.__h.forEach(js),e.__h=[],is=0)),as=ss},C.diffed=function(t){fs&&fs(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==us.push(e)&&cs===C.requestAnimationFrame||((cs=C.requestAnimationFrame)||Os)(Ps)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==ds&&(t.__=t.__V),t.i=void 0,t.__V=ds}))),as=ss=null},C.__c=function(t,e){e.some((function(t){try{t.__h.forEach(As),t.__h=t.__h.filter((function(t){return!t.__||js(t)}))}catch(o){e.some((function(t){t.__h&&(t.__h=[])})),e=[],C.__e(o,t.__v)}})),gs&&gs(t,e)},C.unmount=function(t){ms&&ms(t);var e,o=t.__c;o&&o.__H&&(o.__H.__.forEach((function(t){try{As(t)}catch(t){e=t}})),o.__H=void 0,e&&C.__e(e,o.__v))};var ks="function"==typeof requestAnimationFrame;function Os(t){var e,o=function(){clearTimeout(r),ks&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(o,100);ks&&(e=requestAnimationFrame(o))}function As(t){var e=ss,o=t.__c;"function"==typeof o&&(t.__c=void 0,o()),ss=e}function js(t){var e=ss;t.__c=t.__(),ss=e}function Ss(t,e){return!t||t.length!==e.length||e.some((function(e,o){return e!==t[o]}))}function Fs(t,e){return"function"==typeof e?e(t):e}class Ns{constructor(t,e){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.id=t,this.config=e}set(t,e){ns(this.config,t,e)}get(t="",e=void 0){return""===t?_r(this.config):os(this.config,t,e)}}const Es={};const Ds={create:function(t,e){return Es[t]=new Ns(t,e),Es[t]},set:function(t,e,o){Es[t].get(e,o)},get:function(t,e="",o=void 0){return Es[t].get(e,o)},getConfig:function(t){return Es[t]}},Ls=Ds,Ts=nt({}),Bs=()=>xs(Ts);const Ms=class{constructor(t){Object.defineProperty(this,"apiEndpoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const e=/(.+?):\/\/([0-9A-Za-z.:-]*)/.exec(t);if(!e)throw Error("UriBuilder - is invalid format");this.apiEndpoint=e[1]+"://"+e[2]}build(t,e){const o=Mi.tinyparser(t,e);return this.apiEndpoint+o}};function Is(t,e,o){t[e]=t[e]||o}const qs=function(t,e){const o=t.headers||{},r=t.body,n=t.method||(r?"POST":"GET");let i=!1;const s=function(t){if(t&&window.XDomainRequest&&!/MSIE 1/.test(window.navigator.userAgent))return new window.XDomainRequest;if(window.XMLHttpRequest)return new window.XMLHttpRequest}(t.cors);function a(t,o){return function(){i||(e(void 0===s.status?t:s.status,0===s.status?"Error":s.response||s.responseText||o,s),i=!0)}}s.open(n,t.url,!0);const c=s.onload=a(200,"");s.onreadystatechange=function(){4===s.readyState&&c()},s.onerror=a(void 0,"Error"),s.ontimeout=a(void 0,"Timeout"),s.onabort=a(void 0,"Abort"),r&&(Is(o,"X-Requested-With","XMLHttpRequest"),window.FormData&&r instanceof window.FormData||Is(o,"Content-Type","application/x-www-form-urlencoded")),t.responseType&&(s.responseType=t.responseType),t.withCredentials&&(s.withCredentials=!0),t.timeout&&(s.timeout=t.timeout),t.onprogress&&(s.onprogress=t.onprogress);for(const t in o)s.setRequestHeader(t,o[t]);return s.send(r),s};function Ws(t){const e=Object.keys(t),o=[];for(let r=0;r(t=Hs(t),e&&(t+=Ws(e)),qs({url:t,cors:!0},(function(t,e){t?o(JSON.parse(e),t):r(t,e)}))),post:(t,e,o,r)=>(t=Hs(t),qs({url:t,cors:!0,body:e,method:"POST"},(function(t,e){t?o(JSON.parse(e),t):r(t,e)}))),getPromise:(t,e,o={})=>new Promise((r=>{o.dontChangeProtocol||(t=Hs(t)),e&&(t+=Ws(e)),qs({url:t,cors:!0},(function(t,e){if(t){const o=JSON.parse(e);r({success:!0,data:o,text:"",statusCode:t})}else r({success:!1,data:{},text:e,statusCode:t})}))}))},zs=Rs,$s=ci("Tracker");const Us=class{constructor(t){Object.defineProperty(this,"uriBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"urlFeedTack",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.config=t,this.uriBuilder=new Ms(this.config.get("feed.apiEndpoint")),this.urlFeedTack=this.uriBuilder.build("/restricted/feeds/{{feedId}}/track",{feedId:this.config.get("feed.id")}),this.urlFeedTack=this.uriBuilder.build("/restricted/feeds/{{feedId}}/track",{feedId:this.config.get("feed.id")})}track(t){zs.get(this.urlFeedTack,{a:t},(()=>{}),((t,e)=>{$s.log("Tracker->track fail"),$s.log(t),$s.log(e)}))}trackPostAction(t,e){const o={postId:t,feedId:this.config.get("feed.id")},r=this.uriBuilder.build("/restricted/feeds/{{feedId}}/posts/{{postId}}/action",o);zs.get(r,{action:e},(()=>{}),((t,e)=>{$s.log("Tracker->track fail code: "+t),$s.log(e)}))}};let Vs=null;const Gs={dateFromString(t){const e=t.replace(/\D/g," ").split(" "),o=+e[0];let r=+e[1];r--;const n=+e[2],i=+e[3],s=+e[4],a=+e[5];return new Date(Date.UTC(o,r,n,i,s,a))},dateAsDayMonthYear(t){const e=new Date(parseInt(t,10));let o=e.getDate()+"",r=e.getMonth()+1+"";const n=e.getFullYear()+"";o=1===o.length?"0"+o:o,r=1===r.length?"0"+r:r;return o+"/"+r+"/"+n},dateAsTimeArray(t){const e=new Date(parseInt(t,10));let o,r=e.getHours()+"",n=e.getMinutes()+"";e.getHours()>=12?(o="PM",e.getHours()>12&&(r=e.getHours()-12+"")):o="AM",r=1===r.length?"0"+r:r,n=1===n.length?"0"+n:n;return[parseInt(r.charAt(0),10),parseInt(r.charAt(1),10),parseInt(n.charAt(0),10),parseInt(n.charAt(1),10),o]},fuzzyDate(t){const e=Date.parse(t+" UTC"),o=new Date,r=Math.round((o.getTime()-e)/1e3),n=3600,i=86400,s=7*i;let a;return a=r<30?"Just now":r<60?r+" seconds ago":r<120?"a minute ago.":r=31)return function(){if(null!==Vs)return Vs;Vs=!1;try{(new Date).toLocaleDateString("i")}catch(t){Vs="RangeError"===t.name}return Vs}()?e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"}):this.shortDate(e);const i=Math.floor(o/60),s=Math.floor(o/3600),a=Math.floor(n/7);return 1===n&&Di.t("yesterday")||0===n&&(o<60&&Di.t("just-now")||o<3600&&Di.t("minutes ago",i)||o<86400&&Di.t("hours ago",s))||n<7&&Di.t("days-ago",n)||n<31&&Di.t("weeks ago",a)},shortDate:function(t){const e=t.getFullYear(),o=t.getMonth()+1,r=t.getDate(),n=e.toString(),i=["-","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o];return r.toString()+" "+i+" "+n}},Ks=Gs;var Zs;function Ys(t){return"ad"!==t.type}function Xs(t){return Ys(t)?`${t.id}`:t.slug}function Qs(t){return Ys(t)&&t.text.includes("")}!function(t){t.Approved="approved",t.NeedsApproval="needs-approval",t.Rejected="rejected",t.Trashed="trash"}(Zs||(Zs={}));const Js=25;function ta(t,e=0){return Di.t(t,e)}function ea(t){if(!Ys(t))return"";const e=t.network_id+"";if("10"===e&&t.url)return t.url;if(t.user_url&&""!==t.user_url)return t.user_url;if(t.originator_user_url&&""!==t.originator_user_url)return t.originator_user_url;if(t.userUrl&&""!==t.userUrl)return t.userUrl;if(t.user_screen_name){if("1"===e)return"http://twitter.com/"+t.user_screen_name;if("2"===e)return"http://instagram.com/"+t.user_screen_name;if("3"===e)return"http://facebook.com/"+t.user_screen_name;if("11"===e&&t.url)return t.url}return"#"}function oa(t,e,o=""){const r=o;if(!Ys(t))return"";if(t.data&&t.data.length>0)for(const o of t.data)if(o.name===e)return o.value;return r}function ra(t){return"RSS"===t.network_name?t.user_screen_name?t.user_screen_name:"":t.user_screen_name?"@"+t.user_screen_name:""}function na(t){const e=t.user_screen_name?ta("alt-image-posted",{userName:t.user_screen_name,networkName:da(t)}):ta("alt-image-posted-no-username",{networkName:da(t)});return t.text,e}function ia(t){if(!t)return"";const e=Ks.prettyDate(t);return e||""}function sa(t,e=!0){let o=t.text;return e&&(o=Rn.removeScripts(t.text)),t.is_html?o:("Twitter"===t.network_name?(o=Rn.linksToHref(o),o=Rn.twitterLinks(o)):"Instagram"===t.network_name?(o=Rn.linksToHref(o),o=Rn.instagramLinks(o)):"Facebook"===t.network_name?(o=Rn.linksToHref(o),o=Rn.facebookLinks(o)):o=Rn.linksToHref(o),Rn.nl2br(o))}function aa(t,e){if(t.data)for(const o of t.data)if(o.name===e)return o.value}function ca(t){return"RSS"===t.network_name?oa(t,"title",""):t.user_full_name}function la(t,e){const o=[e];return t.image&&o.push("crt-post-has-image"),t.text&&o.push("crt-post-has-text"),Ys(t)||t.video?(Ys(t)&&!t.source_type&&o.push("crt-post-has-no-source"),Ys(t)&&t.is_embed&&o.push("crt-post-is-embed"),t.video&&o.push("crt-post-has-video"),t.images&&t.images.length>1&&o.push("crt-has-image-carousel"),t.user_full_name||o.push("crt-no-user-full-name"),t.user_screen_name||o.push("crt-no-user-screen-name"),t.user_image&&"https://cdn.curator.io/0.gif"!==t.user_image||o.push("crt-no-user-image")):o.push("crt-ad"),o.push(`crt-post-${t.network_name.toLowerCase()}`),o}function ua(t,e){const o=[e];return t.image&&o.push("crt-ad-has-image"),t.text&&o.push("crt-ad-has-text"),""===t.title&&o.push("crt-ad-no-title"),t.video&&o.push("crt-post-has-video"),o.push(`crt-post-${t.network_name.toLowerCase()}`),o.push(`crt-ad-${t.slug}`),o}function da(t){return t.network_name?t.network_name.toLowerCase():""}function ha(t){return t.text?"crt-post-has-text":"crt-post-content-text-hidden crt-post-no-text"}const pa=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const fa=function(t){return this.__data__.has(t)};function ga(t){var e=-1,o=null==t?0:t.length;for(this.__data__=new fe;++ea))return!1;var l=i.get(t),u=i.get(e);if(l&&u)return l==e&&u==t;var d=-1,h=!0,p=2&o?new ma:void 0;for(i.set(t,e),i.set(e,t);++d-1?n[i?e[s]:s]:void 0}};const Ga=function(t,e,o,r){for(var n=t.length,i=o+(r?1:-1);r?i--:++icc(lc,(function(e){return e.id===t}))};function dc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({"aria-label":"Twitter icon",class:[e&&e["crt-icon-twitter"]||"crt-icon-twitter"].join(" "),width:"24",height:"21",viewBox:"0 0 26 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),["\n ",L("path",{d:"M0.0632662 0L10.1016 12.6858L0 23H2.27364L11.1177 13.9696L18.2633 23H26L15.3967 9.60076L24.7993 0H22.5256L14.3809 8.31659L7.8 0H0.0632662ZM3.40675 1.58274H6.96097L22.6561 21.4173H19.1019L3.40675 1.58274Z",fill:"currentColor"},[]),"\n"])}function hc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n",L("path",{d:"M17.363 0.137404L1.12296 7.63395C-0.751789 8.509 -0.126873 11.2553 1.87286 11.2553H8.74303V18.1268C8.74303 20.1269 11.4927 20.7519 12.3675 18.8768L19.8626 2.63756C20.4875 1.13746 18.8628 -0.487634 17.363 0.137404Z",fill:"currentColor"},[]),"\n"])}function pc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n",L("path",{d:"M14.776 17.425L15.94 19.3901C15.069 19.9425 14.1821 20.345 13.2794 20.5975C12.3925 20.8658 11.3156 21 10.0486 21C8.71833 21 7.45928 20.7948 6.27149 20.3844C5.09955 19.9741 4.03846 19.3664 3.08824 18.5614C2.13801 17.7723 1.38575 16.7148 0.831448 15.389C0.277149 14.0474 0 12.5163 0 10.7959C0 8.823 0.467195 7.01578 1.40158 5.3743C2.33597 3.73281 3.65837 2.43067 5.36878 1.46787C7.07919 0.48929 8.99547 0 11.1176 0C12.4163 0 13.6437 0.189402 14.7998 0.568207C15.9717 0.931229 17.0249 1.47576 17.9593 2.2018C18.8937 2.92785 19.6301 3.88275 20.1686 5.06652C20.7229 6.2345 21 7.56032 21 9.04397C21 11.2063 20.414 13.0135 19.2421 14.4656C18.0701 15.9177 16.6448 16.6437 14.9661 16.6437C14.2534 16.6437 13.6753 16.478 13.2319 16.1466C12.7885 15.8151 12.5667 15.3732 12.5667 14.8207C12.5667 14.805 12.5667 14.7813 12.5667 14.7497C12.5826 14.7182 12.5905 14.6866 12.5905 14.655C12.6063 14.6077 12.6143 14.5603 12.6143 14.513C12.2342 15.1285 11.7195 15.6415 11.0701 16.0519C10.4367 16.4464 9.70815 16.6437 8.88461 16.6437C7.53846 16.6437 6.46154 16.1702 5.65385 15.2232C4.84615 14.2762 4.44231 13.0214 4.44231 11.4589C4.44231 10.3382 4.62443 9.31229 4.98869 8.38106C5.36878 7.43405 5.85181 6.66855 6.43778 6.08455C7.03959 5.48478 7.68891 5.02706 8.38575 4.71139C9.08258 4.37993 9.77941 4.21421 10.4762 4.21421C11.9491 4.21421 12.9706 4.74295 13.5407 5.80045L13.7545 4.59301H16.0826L14.7285 13.3766C14.7127 13.5186 14.7048 13.6449 14.7048 13.7554C14.7048 14.3078 14.9502 14.584 15.4412 14.584C16.1855 14.584 16.8665 14.0947 17.4842 13.1161C18.1018 12.1218 18.4106 10.7723 18.4106 9.06764C18.4106 7.01578 17.7771 5.3664 16.5102 4.1195C15.2432 2.85682 13.3903 2.22548 10.9514 2.22548C8.6233 2.22548 6.64367 3.05412 5.01244 4.71139C3.39706 6.35288 2.58937 8.4363 2.58937 10.9617C2.58937 13.4239 3.30995 15.3416 4.75113 16.7148C6.19231 18.0722 7.98982 18.7508 10.1437 18.7508C11.9649 18.7508 13.509 18.3089 14.776 17.425ZM9.24095 14.584C10.2545 14.584 11.1256 14.0789 11.8541 13.0688C12.5984 12.0428 12.9706 10.7407 12.9706 9.16234C12.9706 7.26832 12.25 6.32131 10.8088 6.32131C9.81109 6.32131 8.93213 6.83427 8.17195 7.8602C7.41176 8.87035 7.03167 10.1172 7.03167 11.6009C7.03167 12.5637 7.23756 13.3055 7.64932 13.8264C8.06109 14.3315 8.59163 14.584 9.24095 14.584Z",fill:"currentColor"},[]),"\n"])}function fc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 10.5667C0 16.3162 4.66176 20.9779 10.5667 20.9779C16.3162 20.9779 21.1333 16.4716 21.1333 10.5667C21.1333 4.66177 16.4716 0 10.5667 0C4.66176 0 0 4.81716 0 10.5667ZM2.48627 10.4113C2.48627 6.06029 6.06029 2.33088 10.5667 2.33088C14.9176 2.33088 18.6471 6.21569 18.6471 10.5667C18.6471 14.9176 15.073 18.6471 10.5667 18.6471C6.06029 18.6471 2.48627 14.7623 2.48627 10.4113ZM9.32353 10.5671C9.32353 11.1887 9.78971 11.6549 10.5667 11.6549H14.6069C15.2284 11.6549 16.0054 11.3441 16.0054 10.5671C16.0054 9.79016 15.3838 9.32398 14.7623 9.32398H11.8098V6.37153C11.8098 5.59457 11.3436 5.1284 10.5667 5.1284C9.78971 5.1284 9.32353 5.74996 9.32353 6.37153V10.5671Z",fill:"currentColor"},[]),"\n "])}function gc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({"aria-label":"Facebook icon",class:[e&&e["crt-icon-facebook"]||"crt-icon-facebook"].join(" "),width:"9",height:"17",viewBox:"0 0 9 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),["\n ",L("path",{d:"M2.61477 17V9.39648H0V6.375H2.61477V3.99434C2.61477 1.40781 4.2375 0 6.60682 0C7.74205 0 8.71705 0.0830078 9 0.119531V2.82227H7.35682C6.06818 2.82227 5.81932 3.41992 5.81932 4.29316V6.375H8.72727L8.32841 9.39648H5.81932V17",fill:"currentColor"},[]),"\n"])}function mc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"38",height:"38",viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:"fill: none;"},e),["\n ",L("path",{d:"M2.35126 36.639C2.53946 36.639 2.75455 36.5857 2.94275 36.5058L10.3684 33.8804C10.5566 33.8005 10.7986 33.8005 10.9868 33.9071C19.5633 38.4901 30.2638 35.2926 34.8882 26.7928C39.5125 18.2929 36.2863 7.688 27.7097 3.10499C25.1018 1.71943 22.225 1 19.3214 1C9.75006 1 2.00698 8.67388 2.00698 18.133C2.00698 18.2662 2.00698 18.3728 2.00698 18.506C1.92632 21.3571 2.54469 24.2082 3.78143 26.7661C3.86209 26.9526 3.86209 27.1658 3.78143 27.3523L1.14141 34.7206C0.818778 35.3867 1.11452 36.1861 1.78666 36.5058C1.94798 36.5857 2.16306 36.639 2.35126 36.639Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[]),"\n ",L("path",{d:"M17.1958 30V19.7129H14V15.625H17.1958V12.4041C17.1958 8.90469 19.1792 7 22.075 7C23.4625 7 24.6542 7.1123 25 7.16172V10.8184H22.9917C21.4167 10.8184 21.1125 11.627 21.1125 12.8084V15.625H24.6667L24.1792 19.7129H21.1125V30",fill:"currentColor"},[]),"\n"])}function bc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M12.5028 6.09032C8.95566 6.09032 6.09453 8.95208 6.09453 12.5C6.09453 16.0479 8.95566 18.9097 12.5028 18.9097C16.0499 18.9097 18.911 16.0479 18.911 12.5C18.911 8.95208 16.0499 6.09032 12.5028 6.09032ZM12.5028 16.6671C10.2105 16.6671 8.33659 14.7983 8.33659 12.5C8.33659 10.2017 10.205 8.33287 12.5028 8.33287C14.8006 8.33287 16.669 10.2017 16.669 12.5C16.669 14.7983 14.795 16.6671 12.5028 16.6671ZM20.6679 5.82813C20.6679 6.65932 19.9986 7.32316 19.1732 7.32316C18.3422 7.32316 17.6785 6.65374 17.6785 5.82813C17.6785 5.00251 18.3477 4.33309 19.1732 4.33309C19.9986 4.33309 20.6679 5.00251 20.6679 5.82813ZM24.9122 7.34548C24.8173 5.3428 24.36 3.56884 22.8932 2.10727C21.432 0.64571 19.6584 0.188274 17.6562 0.0878612C15.5926 -0.0292871 9.40742 -0.0292871 7.34384 0.0878612C5.34718 0.182696 3.57362 0.640132 2.1068 2.1017C0.639989 3.56326 0.188232 5.33722 0.0878416 7.3399C-0.0292805 9.40394 -0.0292805 15.5905 0.0878416 17.6545C0.182655 19.6572 0.639989 21.4312 2.1068 22.8927C3.57362 24.3543 5.34161 24.8117 7.34384 24.9121C9.40742 25.0293 15.5926 25.0293 17.6562 24.9121C19.6584 24.8173 21.432 24.3599 22.8932 22.8927C24.3544 21.4312 24.8118 19.6572 24.9122 17.6545C25.0293 15.5905 25.0293 9.40952 24.9122 7.34548ZM22.2462 19.8692C21.8112 20.9626 20.969 21.8049 19.8703 22.2456C18.225 22.8983 14.321 22.7477 12.5028 22.7477C10.6846 22.7477 6.77496 22.8927 5.13525 22.2456C4.04211 21.8105 3.19994 20.9681 2.75934 19.8692C2.1068 18.2235 2.25739 14.3186 2.25739 12.5C2.25739 10.6814 2.11238 6.77089 2.75934 5.13082C3.19437 4.03743 4.03653 3.19508 5.13525 2.75438C6.78054 2.1017 10.6846 2.25232 12.5028 2.25232C14.321 2.25232 18.2306 2.10727 19.8703 2.75438C20.9635 3.1895 21.8056 4.03185 22.2462 5.13082C22.8988 6.77647 22.7482 10.6814 22.7482 12.5C22.7482 14.3186 22.8988 18.2291 22.2462 19.8692Z",fill:"currentColor"},[]),"\n"])}function vc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:"fill: none;"},e),["\n ",L("path",{d:"M12.5 1C18.8513 1 24 6.14873 24 12.5C24 17.4447 20.8793 21.6605 16.5 23.2853",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[]),"\n ",L("circle",{cx:"12.5",cy:"12.5",r:"11.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-dasharray":"1.5 5"},[]),"\n ",L("path",{d:"M12.75 8V17",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square","stroke-linejoin":"round"},[]),"\n ",L("path",{d:"M17.25 12.5L8.25 12.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"square","stroke-linejoin":"round"},[]),"\n"])}function wc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M14.776 17.425L15.94 19.3901C15.069 19.9425 14.1821 20.345 13.2794 20.5975C12.3925 20.8658 11.3156 21 10.0486 21C8.71833 21 7.45928 20.7948 6.27149 20.3844C5.09955 19.9741 4.03846 19.3664 3.08824 18.5614C2.13801 17.7723 1.38575 16.7148 0.831448 15.389C0.277149 14.0474 0 12.5163 0 10.7959C0 8.823 0.467195 7.01578 1.40158 5.3743C2.33597 3.73281 3.65837 2.43067 5.36878 1.46787C7.07919 0.48929 8.99547 0 11.1176 0C12.4163 0 13.6437 0.189402 14.7998 0.568207C15.9717 0.931229 17.0249 1.47576 17.9593 2.2018C18.8937 2.92785 19.6301 3.88275 20.1686 5.06652C20.7229 6.2345 21 7.56032 21 9.04397C21 11.2063 20.414 13.0135 19.2421 14.4656C18.0701 15.9177 16.6448 16.6437 14.9661 16.6437C14.2534 16.6437 13.6753 16.478 13.2319 16.1466C12.7885 15.8151 12.5667 15.3732 12.5667 14.8207C12.5667 14.805 12.5667 14.7813 12.5667 14.7497C12.5826 14.7182 12.5905 14.6866 12.5905 14.655C12.6063 14.6077 12.6143 14.5603 12.6143 14.513C12.2342 15.1285 11.7195 15.6415 11.0701 16.0519C10.4367 16.4464 9.70815 16.6437 8.88461 16.6437C7.53846 16.6437 6.46154 16.1702 5.65385 15.2232C4.84615 14.2762 4.44231 13.0214 4.44231 11.4589C4.44231 10.3382 4.62443 9.31229 4.98869 8.38106C5.36878 7.43405 5.85181 6.66855 6.43778 6.08455C7.03959 5.48478 7.68891 5.02706 8.38575 4.71139C9.08258 4.37993 9.77941 4.21421 10.4762 4.21421C11.9491 4.21421 12.9706 4.74295 13.5407 5.80045L13.7545 4.59301H16.0826L14.7285 13.3766C14.7127 13.5186 14.7048 13.6449 14.7048 13.7554C14.7048 14.3078 14.9502 14.584 15.4412 14.584C16.1855 14.584 16.8665 14.0947 17.4842 13.1161C18.1018 12.1218 18.4106 10.7723 18.4106 9.06764C18.4106 7.01578 17.7771 5.3664 16.5102 4.1195C15.2432 2.85682 13.3903 2.22548 10.9514 2.22548C8.6233 2.22548 6.64367 3.05412 5.01244 4.71139C3.39706 6.35288 2.58937 8.4363 2.58937 10.9617C2.58937 13.4239 3.30995 15.3416 4.75113 16.7148C6.19231 18.0722 7.98982 18.7508 10.1437 18.7508C11.9649 18.7508 13.509 18.3089 14.776 17.425ZM9.24095 14.584C10.2545 14.584 11.1256 14.0789 11.8541 13.0688C12.5984 12.0428 12.9706 10.7407 12.9706 9.16234C12.9706 7.26832 12.25 6.32131 10.8088 6.32131C9.81109 6.32131 8.93213 6.83427 8.17195 7.8602C7.41176 8.87035 7.03167 10.1172 7.03167 11.6009C7.03167 12.5637 7.23756 13.3055 7.64932 13.8264C8.06109 14.3315 8.59163 14.584 9.24095 14.584Z",fill:"currentColor"},[]),"\n"])}function yc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n",L("path",{d:"M24.9122 7.34548C24.8173 5.3428 24.36 3.56884 22.8932 2.10727C21.432 0.64571 19.6584 0.188274 17.6562 0.0878612C15.5926 -0.0292871 9.40742 -0.0292871 7.34384 0.0878612C5.34718 0.182696 3.57362 0.640132 2.1068 2.1017C0.639989 3.56326 0.188232 5.33722 0.0878416 7.3399C-0.0292805 9.40394 -0.0292805 15.5905 0.0878416 17.6545C0.182655 19.6572 0.639989 21.4312 2.1068 22.8927C3.57362 24.3543 5.34161 24.8117 7.34384 24.9121C9.40742 25.0293 15.5926 25.0293 17.6562 24.9121C19.6584 24.8173 21.432 24.3599 22.8932 22.8927C24.3544 21.4312 24.8118 19.6572 24.9122 17.6545C25.0293 15.5905 25.0293 9.40952 24.9122 7.34548ZM22.2462 19.8692C21.8112 20.9626 20.969 21.8049 19.8703 22.2456C18.225 22.8983 14.321 22.7477 12.5028 22.7477C10.6846 22.7477 6.77496 22.8927 5.13525 22.2456C4.04211 21.8105 3.19994 20.9681 2.75934 19.8692C2.1068 18.2235 2.25739 14.3186 2.25739 12.5C2.25739 10.6814 2.11238 6.77089 2.75934 5.13082C3.19437 4.03743 4.03653 3.19508 5.13525 2.75438C6.78054 2.1017 10.6846 2.25232 12.5028 2.25232C14.321 2.25232 18.2306 2.10727 19.8703 2.75438C20.9635 3.1895 21.8056 4.03185 22.2462 5.13082C22.8988 6.77647 22.7482 10.6814 22.7482 12.5C22.7482 14.3186 22.8988 18.2291 22.2462 19.8692Z",fill:"currentColor"},[]),"\n",L("path",{d:"M12.5 13C10.5556 13 9 11.4444 9 9.5C9 7.55556 10.5556 6 12.5 6C14.4444 6 16 7.55556 16 9.5C16 11.4444 14.4444 13 12.5 13Z",fill:"currentColor"},[]),"\n",L("path",{d:"M12.5 14C15.5067 14 18 15.7 18 17.75V18.75C18 18.9 17.8533 19 17.6333 19H7.36667C7.14667 19 7 18.9 7 18.75V17.75C7 15.7 9.49333 14 12.5 14Z",fill:"currentColor"},[]),"\n"])}function Cc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M24.9122 7.34548C24.8174 5.3428 24.36 3.56884 22.8932 2.10727C21.432 0.64571 19.6584 0.188274 17.6562 0.0878612C15.5926 -0.0292871 9.40742 -0.0292871 7.34384 0.0878612C5.34718 0.182696 3.57362 0.640132 2.1068 2.1017C0.639989 3.56326 0.188232 5.33722 0.0878416 7.3399C-0.0292805 9.40394 -0.0292805 15.5905 0.0878416 17.6545C0.182655 19.6572 0.639989 21.4312 2.1068 22.8927C3.57362 24.3543 5.34161 24.8117 7.34384 24.9121C9.40742 25.0293 15.5926 25.0293 17.6562 24.9121C19.6584 24.8173 21.432 24.3599 22.8932 22.8927C24.3544 21.4312 24.8118 19.6572 24.9122 17.6545C25.0293 15.5905 25.0293 9.40952 24.9122 7.34548ZM22.2462 19.8692C21.8112 20.9626 20.969 21.8049 19.8703 22.2456C18.225 22.8983 14.321 22.7477 12.5028 22.7477C10.6846 22.7477 6.77496 22.8927 5.13525 22.2456C4.04211 21.8105 3.19994 20.9681 2.75934 19.8692C2.1068 18.2235 2.25739 14.3186 2.25739 12.5C2.25739 10.6814 2.11238 6.77089 2.75934 5.13082C3.19437 4.03743 4.03653 3.19508 5.13525 2.75438C6.78053 2.1017 10.6846 2.25232 12.5028 2.25232C14.321 2.25232 18.2306 2.10727 19.8703 2.75438C20.9635 3.1895 21.8056 4.03185 22.2462 5.13082C22.8988 6.77647 22.7482 10.6814 22.7482 12.5C22.7482 14.3186 22.8988 18.2291 22.2462 19.8692Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M19.2722 10.3556L19.4941 9.19487C19.5347 8.98013 19.3597 8.78571 19.1254 8.78571H16.7877L17.244 6.40915C17.2846 6.19732 17.1096 6 16.8752 6H15.6064C15.4252 6 15.2689 6.12187 15.2376 6.28728L14.7564 8.78571H11.675L12.1312 6.40915C12.1719 6.19732 11.9937 6 11.7625 6H10.4936C10.3124 6 10.1561 6.12187 10.1249 6.28728L9.64047 8.78571H7.16847C6.98721 8.78571 6.83095 8.90759 6.7997 9.07299L6.57781 10.2337C6.53718 10.4484 6.71219 10.6429 6.94658 10.6429H9.2842L8.56854 14.3571H6.09654C5.91528 14.3571 5.75902 14.479 5.72777 14.6444L5.50588 15.8051C5.46525 16.017 5.64026 16.2143 5.87465 16.2143H8.21227L7.756 18.5908C7.71537 18.8027 7.89038 19 8.12477 19H9.39359C9.57484 19 9.7311 18.8781 9.76235 18.7127L10.2436 16.2143H13.325L12.8688 18.5908C12.8281 18.8056 13.0032 19 13.2375 19H14.5064C14.6876 19 14.8439 18.8781 14.8751 18.7127L15.3564 16.2143H17.8284C18.0097 16.2143 18.1659 16.0924 18.1972 15.927L18.4191 14.7663C18.4597 14.5516 18.2847 14.3571 18.0503 14.3571H15.7127L16.4283 10.6429H18.9003C19.0847 10.6429 19.2379 10.521 19.2722 10.3556ZM13.6844 14.3571H10.603L11.3187 10.6429H14.4001L13.6844 14.3571Z",fill:"currentColor"},[]),"\n "])}function _c(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"25",height:"29",viewBox:"0 0 25 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M24.9122 11.3455C24.8173 9.3428 24.36 7.56884 22.8932 6.10727C21.432 4.64571 19.6584 4.18827 17.6562 4.08786C15.5926 3.97071 9.40742 3.97071 7.34384 4.08786C5.34718 4.1827 3.57362 4.64013 2.1068 6.1017C0.639989 7.56326 0.188232 9.33722 0.0878416 11.3399C-0.0292805 13.4039 -0.0292805 19.5905 0.0878416 21.6545C0.182655 23.6572 0.639989 25.4312 2.1068 26.8927C3.57362 28.3543 5.34161 28.8117 7.34384 28.9121C9.40742 29.0293 15.5926 29.0293 17.6562 28.9121C19.6584 28.8173 21.432 28.3599 22.8932 26.8927C24.3544 25.4312 24.8118 23.6572 24.9122 21.6545C25.0293 19.5905 25.0293 13.4095 24.9122 11.3455ZM22.2462 23.8692C21.8112 24.9626 20.969 25.8049 19.8703 26.2456C18.225 26.8983 14.321 26.7477 12.5028 26.7477C10.6846 26.7477 6.77496 26.8927 5.13525 26.2456C4.04211 25.8105 3.19994 24.9681 2.75934 23.8692C2.1068 22.2235 2.25739 18.3186 2.25739 16.5C2.25739 14.6814 2.11238 10.7709 2.75934 9.13082C3.19437 8.03743 4.03653 7.19508 5.13525 6.75438C6.78054 6.1017 10.6846 6.25232 12.5028 6.25232C14.321 6.25232 18.2306 6.10727 19.8703 6.75438C20.9635 7.1895 21.8056 8.03185 22.2462 9.13082C22.8988 10.7765 22.7482 14.6814 22.7482 16.5C22.7482 18.3186 22.8988 22.2291 22.2462 23.8692Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M7.73656 1.00044L12.3513 5.00044",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[]),"\n ",L("path",{d:"M17.5202 1.00044L12.9055 5.00044",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[]),"\n ",L("path",{d:"M6 18L12.5 14.5V18.5L19 15.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[]),"\n"])}const xc=({width:t=45,height:e=45})=>wi("svg",{width:t,height:e,viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[wi("rect",{width:"45",height:"45",rx:"22.5",fill:"white"}),wi("path",{d:"M0 22.5C0 10.0736 10.0736 0 22.5 0C34.9264 0 45 10.0736 45 22.5C45 34.9264 34.9264 45 22.5 45C10.0736 45 0 34.9264 0 22.5Z",fill:"url(#paint0_radial)"}),wi("g",{filter:"url(#filter0_di)",children:[wi("path",{d:"M18.3731 26.0419L19.8279 25.706C19.8585 25.6989 19.909 25.6873 19.9708 25.6674C20.3722 25.5595 20.716 25.3001 20.93 24.9438C21.1439 24.5875 21.2112 24.1621 21.1177 23.7573C21.1157 23.7484 21.1137 23.74 21.1117 23.7311C21.0638 23.5371 20.9799 23.3537 20.8645 23.1906C20.7013 22.9839 20.4995 22.8111 20.2702 22.6816C20.0002 22.5278 19.7177 22.3972 19.4257 22.2911L17.83 21.7093C16.9346 21.3768 16.0391 21.0527 15.1353 20.7366C14.5492 20.5283 14.0525 20.3455 13.621 20.2122C13.5396 20.1871 13.4497 20.1621 13.3767 20.1369C12.855 19.9772 12.4885 19.911 12.1784 19.9088C11.9712 19.9012 11.7649 19.9388 11.5738 20.019C11.3746 20.1049 11.1957 20.2318 11.0488 20.3914C10.9758 20.4744 10.9071 20.5612 10.8431 20.6513C10.783 20.7432 10.728 20.8382 10.6781 20.9359C10.6232 21.0408 10.576 21.1495 10.537 21.2613C10.2414 22.1356 10.0944 23.0533 10.1022 23.9762C10.108 24.8106 10.131 25.8815 10.5905 26.6074C10.7013 26.7937 10.8498 26.9547 11.0266 27.0801C11.3538 27.3057 11.6843 27.3354 12.0281 27.3601C12.542 27.397 13.0397 27.2708 13.5358 27.1563L18.369 26.0405L18.3731 26.0419Z",fill:"white"}),wi("path",{d:"M34.6034 18.3214C34.2057 17.4885 33.6711 16.7282 33.022 16.0719C32.9381 15.9886 32.8482 15.9115 32.753 15.8413C32.6651 15.7754 32.5738 15.7142 32.4795 15.6579C32.3825 15.6048 32.2827 15.5569 32.1806 15.5144C31.9788 15.4353 31.7626 15.3997 31.546 15.4098C31.3389 15.4215 31.1369 15.4782 30.9539 15.5759C30.6765 15.7137 30.3764 15.9352 29.9773 16.3061C29.9222 16.3608 29.8528 16.4226 29.7906 16.4808C29.4613 16.7903 29.095 17.1718 28.6591 17.6161C27.9857 18.2963 27.3226 18.9803 26.6635 19.6717L25.4843 20.8941C25.2683 21.1174 25.0717 21.3587 24.8965 21.6152C24.7473 21.8321 24.6418 22.0759 24.5859 22.3331C24.5535 22.5304 24.5584 22.732 24.6003 22.9274C24.6023 22.9363 24.6042 22.9447 24.6063 22.9536C24.6997 23.3585 24.9467 23.7113 25.2952 23.9377C25.6436 24.1642 26.0664 24.2466 26.4745 24.1676C26.5391 24.1583 26.5894 24.1472 26.6198 24.1397L32.91 22.6875C33.4058 22.573 33.9088 22.4681 34.3541 22.2098C34.6527 22.0367 34.9368 21.8652 35.1315 21.5191C35.2355 21.3289 35.2985 21.1191 35.3162 20.9031C35.4122 20.0466 34.964 19.0739 34.6034 18.3214Z",fill:"white"}),wi("path",{d:"M23.3459 20.9673C23.8013 20.3953 23.7997 19.5426 23.8401 18.8456C23.9759 16.5167 24.1191 14.1874 24.2322 11.8572C24.2754 10.9746 24.3701 10.1039 24.317 9.21462C24.2733 8.48096 24.2675 7.63862 23.8034 7.03655C22.9843 5.97485 21.2391 6.06215 20.0483 6.22687C19.6836 6.27747 19.3181 6.34549 18.9557 6.43243C18.5933 6.51937 18.2346 6.61433 17.8836 6.72664C16.7411 7.10058 15.1351 7.78698 14.8638 9.10228C14.7109 9.84586 15.0747 10.6065 15.357 11.2851C15.6992 12.1076 16.1664 12.8486 16.5922 13.6229C17.718 15.6671 18.8647 17.6985 20.0081 19.7321C20.3495 20.3392 20.7218 21.1081 21.382 21.4226C21.4256 21.4416 21.4702 21.4585 21.5155 21.473C21.8115 21.585 22.1341 21.6065 22.4424 21.5349C22.461 21.5306 22.4792 21.5264 22.4974 21.5222C22.7821 21.4449 23.0398 21.2902 23.2419 21.0754C23.2784 21.0412 23.3131 21.0051 23.3459 20.9673Z",fill:"white"}),wi("path",{d:"M22.7986 27.2006C22.6205 26.9505 22.3679 26.7631 22.0769 26.6652C21.7858 26.5672 21.4713 26.5638 21.1782 26.6554C21.1093 26.6782 21.0422 26.706 20.9774 26.7386C20.8772 26.7896 20.7815 26.8492 20.6916 26.9166C20.4295 27.1107 20.2089 27.3628 20.0081 27.6156C19.9571 27.6801 19.9106 27.766 19.85 27.8211L18.839 29.2114C18.266 29.9904 17.7008 30.7712 17.1404 31.5645C16.7748 32.0766 16.4585 32.5091 16.2087 32.8918C16.1614 32.9639 16.1122 33.0443 16.0673 33.1084C15.7679 33.5716 15.5984 33.9095 15.5114 34.2106C15.4461 34.4107 15.4255 34.6226 15.4511 34.8315C15.4791 35.0491 15.5525 35.2583 15.6667 35.4457C15.7274 35.5397 15.7928 35.6305 15.8627 35.7179C15.9353 35.802 16.0124 35.8821 16.0937 35.9578C16.1804 36.0405 16.2733 36.1166 16.3713 36.1855C17.07 36.6708 17.8347 37.0195 18.6391 37.2891C19.3084 37.511 20.0041 37.6438 20.7082 37.684C20.8279 37.69 20.948 37.6875 21.0674 37.6762C21.1781 37.6666 21.2881 37.6511 21.3972 37.63C21.5062 37.6046 21.6137 37.5733 21.7193 37.5365C21.9249 37.4596 22.112 37.3406 22.2687 37.1869C22.417 37.0385 22.531 36.8595 22.603 36.6625C22.7198 36.3712 22.7965 36.0015 22.8467 35.4525C22.8511 35.3744 22.8622 35.2808 22.8699 35.195C22.9096 34.7395 22.9276 34.2045 22.9565 33.5755C23.0055 32.608 23.0437 31.6448 23.0738 30.6789C23.0738 30.6789 23.138 28.9622 23.1378 28.9613C23.1525 28.5658 23.14 28.1274 23.03 27.7336C22.9816 27.5447 22.9035 27.3648 22.7986 27.2006Z",fill:"white"}),wi("path",{d:"M34.2239 29.8853C34.0126 29.654 33.7133 29.4233 33.2411 29.1383C33.173 29.1003 33.0932 29.0496 33.0194 29.0055C32.6263 28.7694 32.1529 28.5211 31.5998 28.2211C30.7501 27.7552 29.8998 27.3011 29.0416 26.8508L27.5251 26.0477C27.4465 26.0247 27.3666 25.968 27.2925 25.9323C27.0012 25.7932 26.6924 25.6633 26.3718 25.6038C26.2614 25.5826 26.1493 25.5709 26.0368 25.5691C25.9643 25.5682 25.8918 25.5726 25.8199 25.5823C25.5169 25.6292 25.2363 25.7705 25.0184 25.9862C24.8004 26.2018 24.656 26.4808 24.6059 26.7832C24.5829 26.9756 24.5901 27.1704 24.6271 27.3606C24.7015 27.7636 24.8818 28.1622 25.0684 28.5113L25.8788 30.027C26.3298 30.8819 26.7862 31.7318 27.254 32.579C27.5558 33.1317 27.807 33.6046 28.0423 33.9966C28.0869 34.0704 28.1374 34.1497 28.1756 34.218C28.4619 34.6893 28.6919 34.9859 28.9251 35.1986C29.0761 35.3442 29.2571 35.4551 29.4554 35.5235C29.6639 35.5925 29.8845 35.6169 30.103 35.5953C30.2141 35.5821 30.3244 35.563 30.4335 35.5381C30.541 35.5093 30.6468 35.4749 30.7507 35.435C30.8628 35.3928 30.9717 35.3426 31.0765 35.2846C31.6917 34.9399 32.2588 34.5156 32.7631 34.0226C33.3679 33.4278 33.9023 32.7791 34.318 32.0365C34.3757 31.9315 34.4258 31.8224 34.4677 31.7101C34.5069 31.6062 34.5407 31.5004 34.5692 31.393C34.5937 31.2839 34.6125 31.1736 34.6255 31.0625C34.6461 30.8444 34.6206 30.6244 34.5507 30.4168C34.482 30.2179 34.3704 30.0364 34.2239 29.8853Z",fill:"white"})]}),wi("defs",{children:[wi("filter",{id:"filter0_di",x:"7.9844",y:"4.53933",width:"29.4628",height:"35.7949",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[wi("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),wi("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),wi("feOffset",{dy:"0.529412"}),wi("feGaussianBlur",{stdDeviation:"1.05882"}),wi("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.804167 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0"}),wi("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),wi("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"}),wi("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),wi("feOffset",{dy:"0.688235"}),wi("feGaussianBlur",{stdDeviation:"0.661765"}),wi("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),wi("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0 0 0 0 0 0.18 0 0 0 0.25 0"}),wi("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow"})]}),wi("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(22.5 -5.24117) rotate(90) scale(53.7353)",children:[wi("stop",{"stop-color":"#FF78A1"}),wi("stop",{offset:"0.512574","stop-color":"#FE375C"}),wi("stop",{offset:"1","stop-color":"#FF0000"})]})]})]});function Pc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-soundcloud"]||"crt-icon-soundcloud"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1152 550",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M0 221q0 16 4 44t9 31q6-3 11-32t4-43q0-14-4-42t-11-32q-13 7-13 74z m64 0q0 25 5 74t6 61q0 6 6 6 4 0 6-6 12-129 12-135 0-24-5-71t-7-59q-2-7-6-7-6 0-6 7-1 11-6 59t-5 71z m81 0q0 24 5 74t5 54q0 9 7 9 8 0 8-9 11-113 11-128t-11-136q0-8-8-8-7 0-7 8 0 7-5 59t-5 77z m92 0q0 38 2 81t4 95 3 81q0 10 9 10 10 0 10-10 1-16 6-111t4-146q0-26-5-77t-5-58q0-10-10-10-9 0-9 10-9 132-9 135z m94 0q0 55 3 160t4 128q2 12 12 12t12-12q1-32 5-133t3-155q0-25-3-72t-5-61q-2-12-12-12t-12 12q0 11-3 59t-4 74z m95 0q0 40 1 85t3 100 2 85q2 15 14 15t14-15q1-30 3-85t2-100 1-85q0-2-6-131l0 1q-2-15-14-15t-14 14q-6 129-6 131z m95-1q0 3 6 351 2 18 16 18t16-18q6-348 6-351 0-1-6-127-2-17-16-17t-16 17q-6 126-6 127z m80 213q0 82 1 155-1 10 13 18t32 12 35 5 24 2q97 0 169-72t80-179q28 13 55 13 58 0 100-45t42-111-42-110-100-46l-393 0q-6 0-10 6t-5 13q0 55 0 156t-1 183z"},[])])}function kc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-tiktok"]||"crt-icon-tiktok"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 887 998",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M938 599c-57 0-110 19-152 51-48 37-83 90-95 152-4 15-5 31-5 47h-163v-445l-1-244c0-65-42-121-101-140-17-6-35-9-55-7-24 1-47 8-67 20-43 26-72 72-72 125-2 82 65 149 148 149 16 0 31-2 46-7v122 43c-15 3-31 4-47 4-90 0-175-38-235-105-45-51-73-116-77-185-6-89 27-175 91-238 9-9 19-18 29-25 55-42 122-65 192-65 16 0 32 1 47 3 66 10 126 40 174 87 59 58 91 135 92 218l-1 364c28-22 59-40 91-53 52-22 106-33 162-33v118 44c0 0-1 0-1 0z"},[])])}function Oc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-gplus"]||"crt-icon-gplus"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1285.7 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M802 341q0-117-49-207t-138-142-206-51q-83 0-159 32t-131 87-87 131-32 159 32 159 87 131 131 87 159 32q160 0 274-107l-111-107q-65 63-163 63-69 0-127-34t-92-94-34-130 34-130 92-94 127-34q46 0 85 13t64 32 44 43 27 47 12 41h-232v141h386q7-36 7-68z m484 68v-118h-117v-116h-117v116h-117v118h117v116h117v-116h117z"},[])])}function Ac(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("circle",{cx:"12.7772",cy:"13",r:"12.7772",fill:"white"},[]),"\n ",L("path",{d:"M21.8766 13.211C21.8766 12.5527 21.8175 11.9196 21.7077 11.3118H12.9629V14.9077H17.96C17.7405 16.0641 17.0821 17.0433 16.0945 17.7017V20.0398H19.1079C20.8636 18.4191 21.8766 16.0388 21.8766 13.211Z",fill:"#4285F4"},[]),"\n ",L("path",{d:"M12.9631 22.2851C15.4701 22.2851 17.5719 21.4578 19.1081 20.0398L16.0947 17.7016C15.2675 18.2587 14.2124 18.5963 12.9631 18.5963C10.549 18.5963 8.49784 16.9672 7.76347 14.7726H4.67407V17.1698C6.20189 20.2001 9.33349 22.2851 12.9631 22.2851Z",fill:"#34A853"},[]),"\n ",L("path",{d:"M7.76341 14.7641C7.57771 14.207 7.46798 13.6161 7.46798 12.9999C7.46798 12.3837 7.57771 11.7928 7.76341 11.2357V8.8385H4.67401C4.04094 10.0878 3.67798 11.4974 3.67798 12.9999C3.67798 14.5024 4.04094 15.912 4.67401 17.1613L7.07969 15.2874L7.76341 14.7641Z",fill:"#FBBC05"},[]),"\n ",L("path",{d:"M12.9631 7.41212C14.3306 7.41212 15.5461 7.88481 16.5168 8.79644L19.1757 6.13753C17.5634 4.63503 15.4701 3.71497 12.9631 3.71497C9.33349 3.71497 6.20189 5.79989 4.67407 8.83864L7.76347 11.2359C8.49784 9.04122 10.549 7.41212 12.9631 7.41212Z",fill:"#EA4335"},[]),"\n"])}function jc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-linkedin"]||"crt-icon-linkedin"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 857 819",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-819)",d:"M195 501v-553h-184v553h184z m12 171q0-41-29-68t-75-27h-1q-46 0-74 27t-28 68q0 41 29 68t75 27 74-27 29-68z m650-407v-317h-183v296q0 59-23 92t-71 33q-35 0-58-19t-36-48q-6-17-6-45v-309h-184q1 223 1 361t0 165l-1 27h184v-80h-1q11 18 23 31t31 29 49 24 64 9q95 0 153-63t58-186z"},[])])}function Sc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-attention-alt"]||"crt-icon-attention-alt"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 248.2 786",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-786)",d:"M286 154v-125q0-15-11-25t-25-11h-143q-14 0-25 11t-11 25v125q0 14 11 25t25 10h143q15 0 25-10t11-25z m17 589l-16-429q-1-14-12-25t-25-10h-143q-14 0-25 10t-12 25l-15 429q-1 14 10 25t24 11h179q14 0 25-11t10-25z"},[])])}function Fc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-youtube"]||"crt-icon-youtube"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 704",width:"24px",height:"24px"},o),["\n ",L("undefined",{},[]),"\n ",L("path",{fill:"#ff0000",transform:"scale(1,-1) translate(0,-704)",d:"M500 702q94 0 181-3t128-5l41-2q0 0 9-1t13-2 13-2 16-5 16-7 17-11 16-15q4-3 9-10t16-33 15-56q4-36 7-76t3-64v-98q1-81-10-162-4-30-14-55t-18-35l-8-9q-7-8-16-15t-17-10-16-7-16-5-13-2-13-2-9-1q-140-11-350-11-115 2-201 4t-111 4l-28 3-20 2q-20 3-30 5t-29 12-31 23q-4 3-9 10t-16 33-15 56q-4 36-7 76t-3 64v98q-1 81 10 162 4 31 14 55t18 35l8 9q8 9 16 15t17 11 16 7 16 5 13 2 13 2 9 1q140 10 350 10z"},[]),"\n \n ",L("undefined",{},[]),"\n ",L("path",{fill:"#ffffff",transform:"scale(1,-1) translate(0,-704)",d:"M397 221l270 139-270 141v-280z"},[]),"\n"])}function Nc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-tumblr"]||"crt-icon-tumblr"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 533 930",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M527 108l44-132q-12-19-61-37t-99-18q-58-1-107 15t-79 41-53 59-31 67-9 66v304h-94v120q40 14 72 39t51 50 32 57 19 55 8 49q1 3 3 5t4 2h136v-237h186v-140h-186v-289q0-17 3-31t13-30 28-23 45-8q44 1 75 16z"},[])])}function Ec(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-weibo"]||"crt-icon-weibo"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 850",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M377 134q11 19 6 38t-25 28q-19 8-41 0t-33-25q-13-19-8-38t24-29 42-1 35 27z m52 67q5 7 2 15t-10 10q-7 3-16 0t-12-10q-9-18 8-26 8-2 16 1t12 10z m97-60q-25-57-88-83t-125-7q-60 19-82 71t3 104q27 52 85 78t117 10q62-16 89-66t1-107z m174 90q-5 53-49 94t-117 61-153 12q-124-13-206-79t-74-148q5-53 50-94t116-61 153-12q125 13 206 79t74 148z m172-3q0-38-20-77t-61-77-94-65-126-47-151-17-154 19-134 52-96 84-36 111q0 64 39 137t110 144q94 94 191 131t137-3q36-36 11-117-2-8 0-11t5-4 8 0 8 2l3 1q78 33 138 33t85-34q25-35 0-99-1-7-3-11t3-7 7-5 9-3q32-10 58-26t44-46 19-65z m-41 349q23-27 30-61t-3-66q-5-12-17-18t-25-3q-12 5-19 17t-2 25q11 35-13 62t-60 19q-13-3-25 5t-14 20q-3 14 5 25t20 14q34 7 67-3t56-36z m101 91q49-54 63-125t-8-134q-5-15-19-23t-29-2-22 19-3 29q16 46 6 96t-45 88q-35 39-83 54t-96 4q-16-3-29 6t-17 24 5 29 25 16q68 15 136-6t116-75z"},[])])}function Dc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-slack"]||"crt-icon-slack"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 930 980",width:"24px",height:"24px"},o),["\n ",L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M848 417q34 0 57-23t24-56q0-54-52-73l-96-33 31-93q4-12 4-26 0-33-24-57t-56-24q-26 0-48 15t-29 40l-31 92-173-59 31-91q4-14 4-27 0-33-23-57t-57-24q-27 0-48 15t-29 41l-31 91-85-30q-17-5-28-5-34 0-57 22t-23 57q0 26 16 47t40 30l87 29-59 175-87-30q-14-5-27-5-33 0-56 23t-23 56q0 26 15 48t40 29l88 30-30 88q-4 14-4 27 0 33 23 57t57 24q26 0 48-16t29-40l30-89 173 59-30 89q-4 13-4 26 0 33 23 57t57 24q26 0 48-15t30-40l29-90 91 31q11 3 24 3 33 0 57-22t24-55q0-25-17-45t-41-29l-88-30 59-177 91 32q13 4 26 4z m-443-146l173 58-59 176-173-60z",fill:"currentColor"},[]),"\n"])}function Lc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-behance"]||"crt-icon-behance"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1142.9 850",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M1031 661h-285v-69h285v69z m-140-238q-51 0-82-29t-34-80h227q-10 109-111 109z m9-326q35 0 68 18t42 48h123q-55-171-238-171-119 0-190 73t-70 194q0 116 72 193t188 77q77 0 134-38t86-100 28-139q0-9-1-26h-367q0-62 32-96t93-33z m-745 28h165q114 0 114 93 0 100-111 100h-168v-193z m0 299h156q44 0 69 21t26 63q0 80-106 80h-145v-164z m-155 284h332q48 0 86-8t71-26 50-54 17-86q0-101-96-147 64-17 96-64t33-114q0-41-14-76t-37-58-55-39-67-24-75-7h-341v703z"},[])])}function Tc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-spotify"]||"crt-icon-spotify"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 857.1 900",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M629 175q0 18-17 28-107 64-249 64-74 0-160-19-24-5-24-29 0-11 8-19t20-8q2 0 20 5 74 15 136 15 126 0 221-58 11-6 19-6 10 0 18 8t8 19z m54 120q0 22-20 34-132 79-306 79-85 0-169-24-27-7-27-36 0-14 10-23t24-10q4 0 20 4 69 19 141 19 155 0 272-69 13-8 21-8 14 0 24 10t10 24z m60 138q0 26-23 39-70 41-163 62t-191 21q-114 0-204-26-12-4-21-15t-9-27q0-17 12-29t28-11q7 0 23 4 74 21 171 21 89 0 173-19t141-53q12-7 23-7 16 0 28 11t12 29z m114-83q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z"},[])])}function Bc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-vine"]||"crt-icon-vine"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 857.1 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M835 389v-111q-56-13-110-13-36-76-92-151t-102-120-71-60q-45-25-91 2-15 9-33 24t-48 47-57 72-60 102-59 136-51 176-39 218h158q14-122 39-223t58-177 68-131 78-109q94 94 160 227-79 40-124 122t-45 186q0 107 58 176t158 68q99 0 152-59t53-166q0-89-32-159-4-1-11-2t-25-1-36 3-34 14-28 29q17 58 17 103 0 48-16 73t-44 26q-30 0-48-28t-18-78q0-104 59-164t149-60q35 0 67 8z"},[])])}function Mc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-pinterest"]||"crt-icon-pinterest"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 714.3 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M0 517q0 60 21 113t58 93 85 69 103 44 113 14q88 0 164-37t123-108 47-160q0-54-10-105t-34-99-56-83-80-58-106-21q-38 0-75 18t-54 49q-5-22-15-63t-14-53-11-40-15-39-17-35-26-44-35-48l-7-3-5 6q-9 88-9 105 0 51 12 115t37 161 29 113q-18 36-18 94 0 47 29 87t74 41q34 0 53-23t19-57q0-37-24-106t-25-105q0-35 25-58t61-23q31 0 57 14t44 38 31 53 21 61 11 62 4 56q0 96-61 150t-160 54q-111 0-186-72t-75-183q0-25 7-48t15-36 15-26 7-17q0-15-8-40t-21-25q-1 0-9 1-29 9-51 31t-34 53-18 60-6 60z"},[])])}function Ic(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-medium"]||"crt-icon-medium"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M333 615v-655q0-14-7-23t-20-10q-10 0-19 4l-259 131q-12 5-20 18t-8 26v636q0 12 6 19t16 8q8 0 24-8l286-143q1-2 1-3z m36-56l298-484-298 149v335z m631-10v-589q0-14-8-22t-21-9-26 7l-246 123z m-2 67q0-2-143-234t-167-272l-218 353 181 294q9 16 29 16 8 0 14-3l302-151q2-1 2-3z"},[])])}function qc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-tripadvisor"]||"crt-icon-tripadvisor"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1285.7 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M363 294q0-22-15-37t-37-16q-21 0-37 16t-15 37q0 21 15 36t37 16q22 0 37-16t15-36z m644 0q0-22-15-37t-37-15-37 15-16 37 16 37 37 15 37-15 15-37z m-580 0q0 44-32 76t-76 31-76-31-31-76 31-76 76-32 76 32 32 76z m643 0q0 45-31 76t-76 32q-44 0-76-32t-32-76 31-76 77-31 76 31 31 76z m-596 0q0-65-45-111t-110-45q-64 0-110 46t-45 110 45 109 110 46 110-46 45-109z m644 0q0-64-45-109t-110-46q-65 0-110 46t-45 109 45 110 110 45q64 0 110-45t45-110z m-538-1q0 106-75 182t-182 75q-70 0-129-34t-94-94-35-129 35-130 94-94 129-34q106 0 182 75t75 183z m373 319q-142 62-310 62-178 0-320-61 65 0 125-26t101-68 69-102 25-124q0 64 24 122t66 101 99 68 121 28z m267-319q0 106-75 182t-182 75-182-75-76-182 76-183 182-75 182 75 75 183z m-148 315h214q-25-28-42-63t-22-64q61-85 61-188 0-87-43-161t-117-116-160-43q-74 0-139 31t-109 87q-26-32-72-100-6 12-30 46t-42 54q-44-55-109-87t-139-31q-87 0-161 43t-116 116-43 161q0 103 61 188-5 28-22 64t-42 63h204q83 56 198 88t241 31q125 0 235-31t194-88z"},[])])}function Wc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-snapchat-ghost"]||"crt-icon-snapchat-ghost"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 928.6 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M473 779q75 0 134-39t92-107q15-32 15-100 0-26-5-106 8-4 15-4 10 0 29 7t28 8q16 0 32-10t15-26q0-18-18-30t-38-18-39-16-18-26q0-9 7-24 21-46 57-84t81-57q16-6 45-12 15-4 15-20 0-39-122-57-4-6-6-22t-8-26-18-10q-11 0-35 3t-36 4q-20 0-34-3-18-3-35-13t-33-21-32-22-43-19-55-8q-29 0-54 8t-41 19-33 22-32 21-35 13q-14 3-35 3-13 0-36-4t-33-5q-14 0-19 11t-8 26-6 23q-123 18-123 57 0 16 16 20 29 6 45 12 43 18 80 57t58 84q6 15 6 24 0 15-17 26t-39 17-39 17-18 29q0 15 15 26t31 10q8 0 26-7t30-7q10 0 18 4-5 79-5 106 0 68 15 100 36 76 96 110t147 36z"},[])])}function Hc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-flickr"]||"crt-icon-flickr"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M196 150q-80 0-138 59t-58 141q0 84 57 142t139 58 139-58 57-142q0-82-58-141t-138-59z m508 0q-80 0-138 59t-58 141q0 84 57 142t139 58 139-58 57-142q0-82-58-141t-138-59z"},[])])}function Rc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"26",height:"12",viewBox:"0 0 26 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("circle",{cx:"6",cy:"6",r:"6",fill:"currentColor"},[]),"\n ",L("circle",{cx:"20",cy:"6",r:"6",fill:"currentColor"},[]),"\n"])}function zc(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"17",height:"20",viewBox:"0 0 17 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M8.5 11C5.44444 11 3 8.55556 3 5.5C3 2.44444 5.44444 0 8.5 0C11.5556 0 14 2.44444 14 5.5C14 8.55556 11.5556 11 8.5 11Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M8.5 13C13.1467 13 17 15.38 17 18.25V19.65C17 19.86 16.7733 20 16.4333 20H0.566667C0.226667 20 0 19.86 0 19.65V18.25C0 15.38 3.85333 13 8.5 13Z",fill:"currentColor"},[]),"\n"])}function $c(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-vimeo"]||"crt-icon-vimeo"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 901 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M896 558q-32-186-171-351t-245-237q-42-28-81-17t-66 38-43 61q-16 32-78 239t-74 223q-16 12-38 5t-44-21l-20-14-36 50q18 20 46 52t100 89 124 67q30 6 53-7t36-35 23-60 15-70 12-75 13-67q14-54 21-80t17-54 18-39 18-11q40 0 126 166 42 76 6 124t-112 2q22 126 140 188 104 54 182 8 80-46 58-174z"},[])])}function Uc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-deviantart"]||"crt-icon-deviantart"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 571.4 920",width:"24px",height:"24px"},o),[L("path",{fill:"currentColor",transform:"scale(1,-1) translate(0,-850)",d:"M571 681l-169-325 14-17h155v-232h-282l-25-16-79-153-17-17h-168v170l169 325-13 17h-156v231h283l25 17 79 152 17 17h167v-169z"},[])])}function Vc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-rss"]||"crt-icon-rss"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 760 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M0 730q314 0 537-223t223-537l-118 0q0 266-188 453t-454 187l0 120z m0-238q218 0 371-153t153-369l-118 0q0 166-119 285t-287 119l0 118z m114-296q46 0 80-33t34-81q0-46-34-79t-80-33-80 33-34 79q0 48 34 81t80 33z"},[])])}function Gc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-cogs"]||"crt-icon-cogs"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M0 245l0 97 94 8q8 30 23 55l-60 74 68 69 74-61q26 16 55 23l8 94 97 0 10-94q29-7 55-23l74 61 68-69-60-74q16-25 23-55l94-8 0-97-94-10q-7-29-23-55l60-72-68-70-74 60q-26-15-55-23l-10-94-97 0-8 94q-29 8-55 23l-74-60-68 70 60 72q-15 26-23 55z m221 49q0-37 26-64t64-26 63 26 26 64-26 63-63 26-64-26-26-63z m318 238l8 72 70-2q8 22 20 39l-37 57 54 45 49-49q20 10 41 14l14 66 72-8-2-68q22-8 39-22l57 39 45-54-49-49q10-20 12-43l68-14-8-70-68 0q-8-20-22-37l39-59-56-45-47 49q-22-8-43-12l-14-66-70 6 0 70q-20 8-37 20l-59-37-45 54 49 49q-8 20-12 41z m31-445l6 50 49 0q6 16 14 28l-26 43 37 33 36-37q13 8 29 10l10 48 48-5 0-49q16-6 28-16l41 27 31-41-35-35q6-13 10-29l47-12-6-51-49 0q-4-15-14-27l28-43-40-33-35 37q-13-8-29-10l-10-49-49 6 0 51q-13 4-27 14l-41-28-31 41 35 36q-6 13-8 29z m118 13q-4-21 8-36t32-17 34 9 17 34-10 35-31 18l-6 0q-17 0-31-12t-13-31z m17 451q-4-27 14-48t45-25 48 15 23 45-14 48-44 24l-7 0q-26 0-44-17t-21-42z"},[])])}function Kc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-right-open-big"]||"crt-icon-right-open-big"].join(" "),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 465 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M13-20l358 370-358 372q-26 26 0 48 26 26 48 0l392-394q24-26 0-50l-392-394q-22-26-48 0-26 22 0 48z"},[])])}function Zc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-left-open-big"]||"crt-icon-left-open-big"].join(" "),fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 465 920",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M452-20q26-26 0-48-26-26-48 0l-392 394q-24 24 0 50l392 394q22 26 48 0 26-22 0-48l-358-372z"},[])])}function Yc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-cancel"]||"crt-icon-cancel"].join(" "),width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),["\n ",L("line",{x1:"14.7253",y1:"2.12132",x2:"2.70453",y2:"14.1421",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"},[]),"\n ",L("line",{x1:"2.88597",y1:"1.76715",x2:"14.9068",y2:"13.788",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round"},[]),"\n"])}function Xc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-right-open"]||"crt-icon-right-open"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 654 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M154 849l500-500-500-500-154 154 346 346-346 346z"},[])])}function Qc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-left-open"]||"crt-icon-left-open"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 654 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M308 349l346-346-154-154-500 500 500 500 154-154z"},[])])}function Jc(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-heart"]||"crt-icon-heart"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 955 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M1 532q7 111 75 183 94 80 212 70t190-98q38 49 92 79 113 43 217 3t150-140q30-106 10-199t-78-174q-68-94-174-184-53-49-124-103t-93-57q-13 2-28 12t-35 25-24 20q-264 199-348 357-49 96-42 206z"},[])])}function tl(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-comment-alt"]||"crt-icon-comment-alt"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1179 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M1179 385q0-126-79-233t-215-170-296-62q-122 0-234 39l2-3-357-107q44 59 71 126t31 106l4 38q-106 120-106 266 0 126 79 233t215 169 295 62 296-62 215-169 79-233z"},[])])}function el(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-spin1"]||"crt-icon-spin1"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M496 850c-176 0-331-90-421-226-18-27-33-55-46-85-12-29-21-60-28-92 0 0 0-1 0-1l0 0 0 0c0-1 0-2 0-2 0-7 5-12 11-12l101 0c5 0 10 4 11 9 29 113 109 206 214 253 20 10 41 17 63 23 31 7 62 11 95 11l0 0 0 0 0 0c25 0 50-2 74-7 5-1 10-2 14-3 6-1 10-3 14-4l0 0c5-1 11 1 13 6l51 87c0 0 1 1 1 2 2 6-1 13-7 15-22 7-43 13-65 17-5 1-9 1-13 2-27 5-54 7-82 7l0 0 0 0z m327-114c-5 0-9-2-11-6l-50-87c-3-4-2-10 2-14 29-29 54-63 73-101 4-7 7-14 11-22 19-46 30-97 30-151l0 0 0 0c0-77-22-149-62-209-7-11-15-23-24-33-9-11-18-21-28-31l0 0 0 0 0 0c-4-4-5-10-2-14l50-87c0-1 1-2 2-3 4-5 11-5 16-1 58 52 104 117 134 190 6 15 11 29 15 44 14 46 21 94 21 144 0 108-34 209-92 291-11 16-23 31-37 46-13 14-26 28-41 41l0 0c-1 1-1 1-2 1-2 1-4 2-5 2z m-811-468l0 0c-1 0-2 0-3 0-6-1-10-8-9-14 34-166 149-302 302-366 30-12 61-21 93-28 32-6 66-10 100-10l0 0 0 0c40 0 79 5 117 14 7 1 14 3 22 5 6 2 13 5 20 7 1 0 2 1 3 1 6 3 8 10 4 16l-50 87c-3 5-8 7-13 6-14-4-28-7-42-9-3-1-6-1-8-2-18-2-35-3-53-3l0 0 0 0c-128 0-242 63-311 160-1 0-1 0-1 0-13 19-25 40-35 61-10 21-18 43-24 65-1 6-6 10-11 10l-101 0z"},[])])}function ol(t){var e=t.styles,o=Object.assign({},t);return delete o.styles,L("svg",Object.assign({class:[e&&e["crt-icon-clone"]||"crt-icon-clone"].join(" "),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",width:"24px",height:"24px"},o),[L("path",{transform:"scale(1,-1) translate(0,-850)",d:"M929-61v607q0 8-6 13t-12 5h-607q-8 0-13-5t-5-13v-607q0-7 5-12t13-6h607q7 0 12 6t6 12z m71 607v-607q0-37-26-63t-63-26h-607q-37 0-63 26t-27 63v607q0 37 27 64t63 26h607q37 0 63-26t26-64z m-214 215v-90h-72v90q0 7-5 12t-13 6h-607q-7 0-12-6t-6-12v-607q0-8 6-13t12-5h90v-72h-90q-36 0-63 27t-26 63v607q0 37 26 63t63 26h607q37 0 64-26t26-63z"},[])])}function rl(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),[L("path",{d:"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm6 11.889c0-.729-.596-1.323-1.329-1.323-.358 0-.681.143-.92.373-.905-.595-2.13-.975-3.485-1.023l.742-2.334 2.008.471-.003.029c0 .596.487 1.082 1.087 1.082.599 0 1.086-.485 1.086-1.082s-.488-1.082-1.087-1.082c-.46 0-.852.287-1.01.69l-2.164-.507c-.094-.023-.191.032-.22.124l-.827 2.603c-1.419.017-2.705.399-3.65 1.012-.237-.219-.552-.356-.9-.356-.732.001-1.328.594-1.328 1.323 0 .485.267.905.659 1.136-.026.141-.043.283-.043.429-.001 1.955 2.404 3.546 5.359 3.546 2.956 0 5.36-1.591 5.36-3.546 0-.137-.015-.272-.038-.405.416-.224.703-.657.703-1.16zm-8.612.908c0-.434.355-.788.791-.788.436 0 .79.353.79.788 0 .434-.355.787-.79.787-.436.001-.791-.352-.791-.787zm4.53 2.335c-.398.396-1.024.589-1.912.589l-.007-.001-.007.001c-.888 0-1.514-.193-1.912-.589-.073-.072-.073-.19 0-.262.072-.072.191-.072.263 0 .325.323.864.481 1.649.481l.007.001.007-.001c.784 0 1.324-.157 1.649-.481.073-.072.19-.072.263 0 .073.072.073.19 0 .262zm-.094-1.547c-.436 0-.79-.353-.79-.787 0-.434.355-.788.79-.788.436 0 .79.353.79.788 0 .434-.354.787-.79.787z"},[])])}function nl(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.083 17.9691C18.1541 16.368 19.4877 13.8591 19.4877 11.0388C19.4877 6.20375 15.5682 2.28418 10.7331 2.28418C7.99594 2.28418 5.55215 3.54035 3.94679 5.50764C4.67677 7.49556 6.32532 9.41887 8.61972 12.0957C10.5949 14.4 14.1323 16.7958 16.083 17.9691ZM14.5656 18.9122C13.4081 19.4766 12.1076 19.7934 10.7331 19.7934C5.89809 19.7934 1.97852 15.8738 1.97852 11.0388C1.97852 9.5783 2.33615 8.20134 2.96861 6.9907C4.18725 9.08655 6.10198 11.8993 8.16689 13.6051C9.33489 14.57 10.1099 15.3127 10.7852 15.9598C11.8867 17.0155 12.7226 17.8166 14.5656 18.9122Z",fill:"currentColor"},[]),"\n",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M21.0213 21.0701C22.9031 19.1932 19.8471 13.0783 14.1956 7.41214C8.54401 1.746 2.43705 -1.32577 0.555271 0.55116C-1.32651 2.42809 1.72949 8.54296 7.38104 14.2091C13.0326 19.8752 19.1395 22.947 21.0213 21.0701ZM18.8418 18.885C17.4591 20.2641 12.7325 17.7672 8.28479 13.308C3.83705 8.84878 1.35236 4.11583 2.73508 2.73667C4.1178 1.35751 8.84432 3.85441 13.2921 8.31364C17.7398 12.7729 20.2245 17.5058 18.8418 18.885Z",fill:"currentColor"},[]),"\n"])}function il(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M21.0002 8.79769C20.9982 8.14999 20.7453 7.52951 20.2967 7.07222C19.8482 6.61493 19.2407 6.35815 18.6073 6.35815C18.0099 6.35956 17.4353 6.59301 16.9998 7.01122C15.2136 5.88377 13.1674 5.25965 11.069 5.20221L12.3022 1.21639L15.6492 2.01954C15.6504 2.51739 15.8321 2.99711 16.1592 3.36592C16.4862 3.73472 16.9353 3.96643 17.4197 4.01621C17.9041 4.06599 18.3893 3.9303 18.7815 3.63542C19.1738 3.34054 19.4452 2.9074 19.5432 2.41975C19.6413 1.9321 19.559 1.42458 19.3123 0.995356C19.0657 0.566136 18.6722 0.245709 18.2079 0.0960165C17.7436 -0.0536755 17.2415 -0.0219794 16.7987 0.184965C16.3559 0.39191 16.0039 0.759407 15.8107 1.21639L12.1407 0.323142C12.0415 0.297508 11.9364 0.312084 11.8475 0.363848C11.7586 0.415613 11.6927 0.500551 11.6636 0.60087L10.2396 5.18718C8.03002 5.18788 5.8626 5.80559 3.97117 6.97367C3.72359 6.75491 3.43452 6.59073 3.12207 6.49143C2.80961 6.39213 2.4805 6.35985 2.15528 6.39657C1.83006 6.43329 1.51573 6.53823 1.23199 6.70486C0.948244 6.87148 0.701202 7.09619 0.506264 7.36493C0.311326 7.63367 0.172695 7.94065 0.0990737 8.26667C0.0254526 8.5927 0.0184008 8.93075 0.0783759 9.25968C0.138351 9.58862 0.264052 9.90135 0.44762 10.1783C0.631188 10.4553 0.868663 10.6906 1.14521 10.8694C1.10518 11.1175 1.08557 11.3686 1.08652 11.62C1.08652 15.1555 5.29237 18.0304 10.4671 18.0304C15.6419 18.0304 19.8551 15.1555 19.8551 11.62C19.8569 11.3938 19.8397 11.1678 19.8037 10.9445C20.1715 10.7274 20.4761 10.4141 20.6864 10.0369C20.8967 9.65961 21.005 9.2319 21.0002 8.79769ZM5.89427 10.4116C5.95387 10.0636 6.13155 9.7483 6.39603 9.5211C6.66051 9.29389 6.99483 9.16934 7.34025 9.16934C7.68566 9.16934 8.02002 9.29389 8.2845 9.5211C8.54898 9.7483 8.72666 10.0636 8.78627 10.4116C8.82323 10.6273 8.81357 10.8488 8.75795 11.0604C8.70233 11.2719 8.60208 11.4685 8.46429 11.6362C8.32649 11.804 8.15451 11.9388 7.96033 12.0314C7.76615 12.1239 7.55447 12.1718 7.34025 12.1718C7.12602 12.1718 6.91439 12.1239 6.72021 12.0314C6.52603 11.9388 6.354 11.804 6.2162 11.6362C6.07841 11.4685 5.9782 11.2719 5.92258 11.0604C5.86696 10.8488 5.8573 10.6273 5.89427 10.4116ZM13.8876 14.6451C13.1536 15.3957 12.0746 15.7185 10.5112 15.7185C8.94039 15.7185 7.8394 15.3657 7.13475 14.6451C7.09611 14.6072 7.06534 14.5618 7.04434 14.5115C7.02334 14.4612 7.01253 14.407 7.01253 14.3523C7.01253 14.2976 7.02334 14.2435 7.04434 14.1932C7.06534 14.1429 7.09611 14.0974 7.13475 14.0596C7.1711 14.0203 7.21491 13.989 7.2635 13.9676C7.31209 13.9462 7.36445 13.9352 7.41735 13.9352C7.47025 13.9352 7.5226 13.9462 7.57119 13.9676C7.61978 13.989 7.66359 14.0203 7.69995 14.0596C8.25045 14.615 9.16793 14.8928 10.5112 14.8928C11.5161 14.9979 12.5217 14.6991 13.3151 14.0596C13.3521 14.0201 13.3965 13.9886 13.4457 13.9671C13.4949 13.9457 13.5479 13.9346 13.6014 13.9346C13.6549 13.9346 13.7078 13.9457 13.757 13.9671C13.8062 13.9886 13.8506 14.0201 13.8876 14.0596C13.9621 14.138 14.0037 14.243 14.0037 14.3523C14.0037 14.4616 13.9621 14.5666 13.8876 14.6451ZM13.6674 11.9128C13.2781 11.9128 12.9047 11.7546 12.6294 11.4731C12.3541 11.1916 12.1994 10.8097 12.1994 10.4116C12.259 10.0636 12.4367 9.7483 12.7011 9.5211C12.9656 9.29389 13.3 9.16934 13.6454 9.16934C13.9908 9.16934 14.3252 9.29389 14.5897 9.5211C14.8541 9.7483 15.0318 10.0636 15.0914 10.4116C15.0916 10.802 14.943 11.1772 14.6771 11.4575C14.4113 11.7378 14.0491 11.9011 13.6674 11.9128Z",fill:"currentColor"},[]),"\n"])}function sl(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"32",height:"38",viewBox:"0 0 32 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M0.5 3.25488H4.93101V34.7403H0.5V3.25488Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M27.0892 11.9438H31.5202V34.7428H27.0892V11.9438Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M0.5 33.6533H31.5201V37.9973H0.5V33.6533Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M0.5 0H18.2271V4.34397H0.5V0Z",fill:"currentColor"},[]),"\n ",L("path",{d:"M27.0891 8.6849V4.34245H22.6566V0H18.2256V13.0273H31.5201V8.6849",fill:"currentColor"},[]),"\n ",L("path",{d:"M27.0892 17.3718V13.0278H31.5202",fill:"currentColor"},[]),"\n"])}function al(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"31",height:"43",viewBox:"0 0 31 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M24.5141 36.2264H0.528302C0.528302 39.566 3.20283 42.2547 6.5283 42.2547H24.5141C27.8255 42.2547 30.5 39.5519 30.5 36.2264V11.434C30.5 11.3208 30.4009 11.2075 30.2877 11.2075H24.7264C24.6132 11.2075 24.5141 11.3066 24.5141 11.434V36.2264ZM24.5141 0C27.8255 0 30.5 2.70283 30.5 6.04245H6.51415V30.8349C6.51415 30.9481 6.41509 31.0613 6.28774 31.0613H0.726415C0.613208 31.0613 0.5 30.9623 0.5 30.8349V6.04245C0.5 2.70283 3.17453 0 6.5 0H24.5141Z",fill:"currentColor"},[]),"\n"])}function cl(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"58",height:"35",viewBox:"0 0 58 35",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.7326 34.6863C27.9614 34.6391 27.1247 34.6575 26.2465 34.6767C24.3849 34.7176 22.3375 34.7625 20.3355 34.1953C13.0186 32.1819 7.46964 25.8963 7.51875 17.45C7.56785 9.54393 13.9026 2.42353 21.8087 1.24498C26.8175 0.459276 31.8754 0.459276 36.8843 1.19587C44.4466 2.27621 51.076 8.56181 51.4197 17.7447C51.7635 26.2401 43.9556 34.4408 35.4111 34.6863C34.1048 34.7182 32.7778 34.7087 31.296 34.6981L31.2945 34.6981H31.2943H31.2941H31.2938H31.2936C30.4923 34.6924 29.6457 34.6863 28.7326 34.6863ZM50.094 27.271C53.3841 20.9363 53.3841 14.6507 49.9467 8.3651C51.8127 8.3651 56.3305 10.5749 57.2635 11.8025C57.8037 12.5391 58.0001 13.423 58.0001 14.307V21.1327C58.0001 22.6059 57.509 23.8827 56.1832 24.6193C54.6252 25.5035 52.9951 26.3155 51.3856 27.1173L51.3839 27.1181C51.1169 27.2511 50.8505 27.3838 50.5851 27.5165C50.4377 27.4674 50.2413 27.3692 50.094 27.271ZM8.79554 27.1242C5.40721 20.8386 5.65274 14.5039 8.79554 8.07101C6.34023 8.90582 4.03223 9.83884 2.06798 11.3611C1.28228 11.9504 0.938538 12.9325 0.938538 13.9638V21.5261C0.938538 22.3609 1.23318 23.1466 1.72424 23.785C2.60815 24.9145 7.02771 27.026 8.79554 27.1242ZM29.6166 5.81278C30.6133 5.81278 31.6154 5.80734 32.6193 5.8019H32.6194H32.6195C34.6328 5.79097 36.6534 5.78001 38.6521 5.81278C42.286 5.86188 44.4467 7.97345 44.5449 11.5582C44.6431 15.7813 44.594 20.0045 44.5449 24.2276C44.4958 27.616 42.286 29.9731 38.8977 30.0222C32.5629 30.1204 26.1791 30.1204 19.8444 30.0222C16.6034 29.9731 14.3936 27.5668 14.3445 24.3258V24.3258C14.2954 20.0044 14.2463 15.6831 14.3445 11.4109C14.3936 7.92435 16.5543 5.91099 20.09 5.81278H20.581H29.6166ZM32.1211 20.4338C31.4172 20.4392 30.7134 20.4447 30.0095 20.4447C29.3076 20.4447 28.6057 20.4393 27.902 20.4338H27.9018H27.9015C26.4884 20.4229 25.068 20.4119 23.6257 20.4447C23.5133 20.4447 23.3956 20.4395 23.2758 20.4341C22.6623 20.4067 21.9901 20.3767 21.6614 21.034C21.2379 21.7869 21.7614 22.5398 22.1947 23.1631L22.2507 23.2438C24.0676 25.8955 26.8176 26.6812 29.7149 26.6321C32.9068 26.6321 35.9022 25.7482 37.5227 22.6054C38.3084 21.034 38.0629 20.4938 36.3442 20.4447C34.9365 20.412 33.5288 20.4229 32.1211 20.4338ZM22.0541 10.4271C23.38 10.4762 24.6076 11.0655 25.2951 12.4405C25.6389 13.0789 25.6389 13.7172 25.0005 14.1592C24.4112 14.5521 23.871 14.3065 23.4782 13.8646C22.4961 12.5878 21.6122 12.3423 20.63 13.8646C20.2863 14.3556 19.7461 14.6012 19.1568 14.2083C18.5185 13.7664 18.5185 13.128 18.8131 12.4896C19.4515 11.1637 20.4827 10.4762 22.0541 10.4271ZM40.469 12.3914C39.7325 11.0164 38.5539 10.4762 37.1298 10.4271C35.6566 10.4271 34.1834 11.5075 33.8888 12.7351C33.7415 13.3244 33.7906 13.8646 34.3799 14.2083C34.8709 14.5029 35.4111 14.4047 35.7057 13.9628C36.6879 12.4896 37.6209 12.3914 38.7012 13.8646C39.0941 14.3556 39.6833 14.5521 40.2235 14.1101C40.8619 13.6681 40.8128 13.0298 40.469 12.3914Z",fill:"currentColor"},[]),"\n"])}function ll(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n",L("path",{d:"M19.6746 6.36585L19.9916 4.66942C20.0496 4.35558 19.7996 4.07143 19.4648 4.07143H16.1253L16.7771 0.597991C16.8352 0.288393 16.5852 0 16.2503 0H14.4377C14.1788 0 13.9556 0.178125 13.9109 0.419866L13.2234 4.07143H8.82137L9.47319 0.597991C9.53122 0.288393 9.27675 0 8.94637 0H7.13378C6.87483 0 6.65161 0.178125 6.60696 0.419866L5.91496 4.07143H2.38352C2.12458 4.07143 1.90136 4.24955 1.85671 4.49129L1.53973 6.18772C1.48169 6.50156 1.7317 6.78571 2.06654 6.78571H5.40601L4.38363 12.2143H0.852193C0.593251 12.2143 0.370024 12.3924 0.325379 12.6342L0.00839801 14.3306C-0.0496408 14.6402 0.200373 14.9286 0.535212 14.9286H3.87467L3.22285 18.402C3.16482 18.7116 3.41483 19 3.74967 19H5.56226C5.82121 19 6.04443 18.8219 6.08908 18.5801L6.77661 14.9286H11.1786L10.5268 18.402C10.4688 18.7158 10.7188 19 11.0536 19H12.8662C13.1252 19 13.3484 18.8219 13.393 18.5801L14.0806 14.9286H17.612C17.871 14.9286 18.0942 14.7504 18.1388 14.5087L18.4558 12.8123C18.5138 12.4984 18.2638 12.2143 17.929 12.2143H14.5895L15.6119 6.78571H19.1433C19.4067 6.78571 19.6255 6.60759 19.6746 6.36585ZM11.6921 12.2143H7.29003L8.31241 6.78571H12.7144L11.6921 12.2143Z",fill:"currentColor"},[]),"\n"])}const ul={46:{svg:"instagram-mention"},47:{svg:"instagram-stories"},34:{svg:"instagram-private-account"},38:{svg:"instagram-business-hashtag"},50:{svg:"instagram-business-igtv"},24:{svg:"facebook-visitor"},21:{svg:"twitter-geo-location"},1:{svg:"hashtag"},25:{svg:"twitter-timeline"},20:{svg:"twitter-mention"},27:{svg:"flickr-album"},9:{svg:"hashtag"},15:{svg:"flickr-user"},11:{svg:"hashtag"},48:{svg:"reddit-subreddit-feed"},49:{svg:"reddit-user-feed"},57:{svg:"hashtag"}};function dl(t){let e=t.icon;switch(t.sourceTypeId&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(ul,t.sourceTypeId)&&(e="crt-icon-"+ul[t.sourceTypeId].svg),e){case"crt-icon-twitter":return wi(dc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-twitter-geo-location":return wi(hc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-twitter-mention":return wi(pc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-twitter-timeline":return wi(fc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-facebook":return wi(gc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-facebook-visitor":return wi(mc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram":return wi(bc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram-stories":return wi(vc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram-mention":return wi(wc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram-business-hashtag":return wi(Cc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram-business-igtv":return wi(_c,{width:t.width,height:t.height,fill:t.color});case"crt-icon-instagram-private-account":return wi(yc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-yelp":return wi(xc,{width:t.width,height:t.height});case"crt-icon-soundcloud":return wi(Pc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-tiktok":return wi(kc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-gplus":return wi(Oc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-google":return wi(Ac,{width:t.width,height:t.height,fill:t.color});case"crt-icon-linkedin":return wi(jc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-attention-alt":return wi(Sc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-youtube":return wi(Fc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-tumblr":return wi(Nc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-weibo":return wi(Ec,{width:t.width,height:t.height,fill:t.color});case"crt-icon-slack":return wi(Dc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-behance":return wi(Lc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-spotify":return wi(Tc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-vine":return wi(Bc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-pinterest":return wi(Mc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-medium":return wi(Ic,{width:t.width,height:t.height,fill:t.color});case"crt-icon-tripadvisor":return wi(qc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-snapchat-ghost":return wi(Wc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-flickr":return wi(Hc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-flickr-album":return wi(Rc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-flickr-user":return wi(zc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-vimeo":return wi($c,{width:t.width,height:t.height,fill:t.color});case"crt-icon-deviantart":return wi(Uc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-rss":return wi(Vc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-cogs":return wi(Gc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-right-open-big":return wi(Kc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-left-open-big":return wi(Zc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-cancel":return wi(Yc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-right-open":return wi(Xc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-left-open":return wi(Qc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-heart":return wi(Jc,{width:t.width,height:t.height,fill:t.color});case"crt-icon-comment-alt":return wi(tl,{width:t.width,height:t.height,fill:t.color});case"crt-icon-spin1":return wi(el,{width:t.width,height:t.height,fill:t.color});case"crt-icon-clone":return wi(ol,{width:t.width,height:t.height,fill:t.color});case"crt-icon-reddit":return wi(rl,{width:t.width,height:t.height,fill:t.color});case"crt-icon-reddit-subreddit-feed":return wi(nl,{width:t.width,height:t.height,fill:t.color});case"crt-icon-reddit-user-feed":return wi(il,{width:t.width,height:t.height,fill:t.color});case"crt-icon-giphy":return wi(sl,{width:t.width,height:t.height,fill:t.color});case"crt-icon-glassdoor":return wi(al,{width:t.width,height:t.height,fill:t.color});case"crt-icon-diffbot":return wi(cl,{width:t.width,height:t.height,fill:t.color});case"crt-icon-hashtag":return wi(ll,{width:t.width,height:t.height,fill:t.color});case"crt-icon-none":case"crt-icon-unknown":return null;default:return wi("i",{className:t.icon})}}function hl(t){const e=[],o=Bs(),r=o.config.get("filter.showAll"),n=o.config.get("filter.showNetworks");if(!n)return null;if(r&&e.push(wi("li",{className:0===t.selectedNetwork?"active":"",children:wi("a",{href:"#",onClick:e=>t.onNetworkClick(e,0),children:"All"})})),n)for(const o of t.networks){const r=uc.findById(o);if(r){const o=`Click to filter posts by ${r.name}`;e.push(wi("li",{className:`${r.id===t.selectedNetwork?"active":""} crt-network-filter-${r.name.toLowerCase()}`,children:wi("a",{href:"#","aria-label":o,onClick:e=>t.onNetworkClick(e,r),children:[wi(dl,{icon:r.icon}),wi("span",{children:r.name})]})}))}}return wi("div",{className:"crt-filter-networks",children:wi("ul",{className:"crt-networks",children:[wi("li",{className:"crt-filter-label",children:wi("label",{children:[ta("filter-network"),":"]})}),e]})})}function pl(t){const e=[],o=Bs(),r=o.config.get("filter.showAll");if(!o.config.get("filter.showSources"))return null;r&&e.push(wi("li",{className:0===t.selectedSource?"active":"",children:wi("a",{href:"#",onClick:e=>t.onSourceClick(e,0),children:"All"})}));for(const o of t.sources){const r=uc.findById(o.network_id);if(r){const n=`Click to filter posts by source ${o.name}`;e.push(wi("li",{className:`${o.id===t.selectedSource?"active":""} crt-source-filter-network-${r.name.toLowerCase()}`,children:wi("a",{href:"#","aria-label":n,"data-network":o.id,onClick:e=>t.onSourceClick(e,o),children:[wi(dl,{icon:r.icon,sourceTypeId:o.source_type_id}),o.name]})}))}}return wi("div",{className:"crt-filter-sources",children:wi("ul",{className:"crt-sources",children:[wi("li",{className:"crt-filter-label",children:wi("label",{children:[ta("filter-source"),":"]})}),e]})})}class fl extends M{constructor(t){super(t),Object.defineProperty(this,"onPostsLoaded",{enumerable:!0,configurable:!0,writable:!0,value:t=>{const e=t.networks,o=t.sources;this.setState({networks:e,sources:o})}}),Object.defineProperty(this,"onSourceClick",{enumerable:!0,configurable:!0,writable:!0,value:(t,e)=>{t.preventDefault();const o="number"==typeof e?e:e.id;this.context.filterService.triggerOnFilterChanged({sourceId:o,networkId:0}),this.setState({selectedNetwork:0,selectedSource:o})}}),Object.defineProperty(this,"onNetworkClick",{enumerable:!0,configurable:!0,writable:!0,value:(t,e)=>{t.preventDefault();const o="number"==typeof e?e:e.id;this.context.filterService.triggerOnFilterChanged({sourceId:0,networkId:o}),this.setState({selectedNetwork:o,selectedSource:0})}}),this.state={playing:!1,networks:[],sources:[],selectedSource:0,selectedNetwork:0}}checkDefaultFilter(){const t=this.context.config.get("filter.default");if(t)if(isNaN(t)){if(t.includes("all_")){const e=t.replace("all_","");this.context.filterService.triggerOnFilterChanged({sourceId:0,networkId:e}),this.setState({selectedNetwork:parseInt(e),selectedSource:0})}}else this.context.filterService.triggerOnFilterChanged({sourceId:t,networkId:0}),this.setState({selectedNetwork:0,selectedSource:parseInt(t)})}componentDidMount(){this.context.events.on(bi.FEED_LOADED,this.onPostsLoaded),this.context.filterService.registerCheckDefaultFilter(this.checkDefaultFilter.bind(this))}componentWillUnmount(){this.context.events.off(bi.FEED_LOADED,this.onPostsLoaded)}render(t,e){const o=this.context.config.get("filter.showNetworks"),r=this.context.config.get("filter.showSources");if(o||r)return wi("div",{className:"crt-filter",children:[wi(hl,{selectedNetwork:e.selectedNetwork,networks:e.networks,onNetworkClick:this.onNetworkClick}),wi(pl,{selectedSource:e.selectedSource,sources:e.sources,onSourceClick:this.onSourceClick})]})}}function gl(t){const e=t.post;let o=`crt-icon-${e.network_name.toLowerCase()}`;Ys(e)||e.network_id||(o="crt-icon-none");return wi("span",{className:"crt-social-icon",role:"link",tabIndex:0,"aria-label":e.network_name+" icon",ref:t.cRef,children:wi(dl,{icon:o})})}function ml(t){return t.user_image&&"https://cdn.curator.io/0.gif"!==t.user_image}function bl({post:t,cRef:e}){const[o,r]=vs(!1);if(!Ys(t))return null;if(!ml(t))return null;const n=ta("alt-profile-image",{userName:t.user_full_name});return o?null:wi("img",{className:"crt-post-userimage","aria-label":n,tabIndex:0,ref:e,src:t.user_image,alt:n,onError:()=>{r(!0)}})}Object.defineProperty(fl,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});class vl extends M{render(t){const e=t.post;if(!Ys(e))return wi(B,{});let o="";if(e.spots){for(let t=0;t${r}, `):o+=`${r}, `)}o=o.replace(/,\s*$/,"")}return wi(B,{children:o&&wi("div",{className:"crt-popup-post-spots-content",dangerouslySetInnerHTML:{__html:"In this photo: "+o}})})}}const wl=function(t){return 13===(t.keyCode||t.which)},yl=function(t){return 9===(t.keyCode||t.which)};function Cl({...t}){return wi("div",{...t,children:wi("svg",{class:"loading-image-svg",xmlSpace:"preserve",viewBox:"0 0 100 100",y:"0",x:"0",xmlns:"http://www.w3.org/2000/svg",id:"Layer_1",version:"1.1",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[wi("g",{class:"ldl-scale",style:"transform-origin:50% 50%;transform:rotate(0deg) scale(0.6, 0.6);"}),wi("circle",{class:"dot-1",fill:"#d65a62",r:"10",cy:"50",cx:"20",style:"fill:rgb(204, 204, 204);"}),wi("circle",{class:"dot-2",fill:"#ea7c60",r:"10",cy:"50",cx:"50",style:"fill:rgb(204, 204, 204);"}),wi("circle",{class:"dot-3",fill:"#f0af6b",r:"10",cy:"50",cx:"80",style:"fill:rgb(204, 204, 204);"})]})})}function _l(t){const e=t.post,o=Ys(e)&&e?.image_large?e.image_large:e.image,[r,n]=vs({currentImage:o,currentIndex:0}),[i,s]=vs(!1),a=400,c=Cs();ys((()=>{n({currentImage:o,currentIndex:0})}),[t.post.image]);const l=(e,o=0)=>{e.preventDefault(),n({currentImage:t.post.images[o].url,currentIndex:o})},u=e.images&&e.images.length>1?e.images.map(((t,e)=>wi("li",{className:e===r.currentIndex?"selected":"",children:wi("a",{onClick:t=>l(t,e),onKeyPress:t=>{wl(t)&&l(t,e)},tabIndex:0,children:" "})}))):void 0;return wi("div",{children:[wi("div",{className:"crt-image crt-popup-images",style:{minWidth:i?"auto":a,minHeight:i?"auto":a},children:[!i&&wi(Cl,{className:"crt-popup-background-image",width:a,height:a}),wi("img",{ref:c,style:{opacity:i?1:0},src:r.currentImage,onLoad:()=>{s(!0)},alt:na(e),tabIndex:0,"aria-label":na(e)})]}),wi("div",{className:"crt-pagination",children:wi("ul",{children:u})})]})}const xl=class{constructor(){Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this.listeners={}}on(t,e,o){let r=[];const n=arguments.length;for(let t=0;t3?r.splice(3,r.length-1):[],void 0!==this.listeners[t]?this.listeners[t].push({scope:o,callback:e,args:r}):this.listeners[t]=[{scope:o,callback:e,args:r}]}off(t,e,o){if(void 0!==this.listeners[t]){const r=this.listeners[t].length,n=[];for(let i=0;i0;for(let n=0;n{console.error("Video failed to play")}))}pause(){this.element.pause()}playPause(){this._videoPlaying?this.pause():this.play()}isPlaying(){return this._videoPlaying}onMetaData(){const t=this.element.videoWidth,e=this.element.videoHeight;oi(this.element,t===e?"aspect-square":t>e?"aspect-landscape":"aspect-portrait")}onData(){}onPlay(){this._videoPlaying=!0,this.trigger("state:changed",this._videoPlaying)}onPause(){this._alive&&(this._videoPlaying=!1,this.trigger("state:changed",this._videoPlaying))}destroy(){this._alive=!1,this.element.removeEventListener("loadedmetadata",this.onMetaData),this.element.removeEventListener("loadeddata",this.onData),this.element.removeEventListener("play",this.onPlay),this.element.removeEventListener("pause",this.onPause),this._videoPlaying&&this.element.pause(),super.destroy()}}let kl={};const Ol={create:function(t){kl=t},set:function(t,e){ns(kl,t,e)},get:function(t="",e=void 0){return""===t?_r(kl):os(kl,t,e)}},Al=Ol;class jl extends M{constructor(t){super(t),Object.defineProperty(this,"player",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"videoPlayer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"playerType",{enumerable:!0,configurable:!0,writable:!0,value:""}),this.state={playing:!1}}onPlay(){this.videoPlayer&&this.videoPlayer.playPause()}componentDidMount(){"inline"===this.playerType&&(this.videoPlayer=new Pl(this.player.current),this.videoPlayer.on("state:changed",(t=>{this.setState({playing:t})})),Al.get("popup.autoPlayVideos",!1)&&this.videoPlayer.play())}componentWillUnmount(){this.videoPlayer&&(this.videoPlayer.pause(),this.videoPlayer.destroy())}render(t,e){const o=t.post,r=["crt-video"];let n;if(e.playing&&r.push("crt-video-playing"),o.video)if(r.push("has-video"),o.video&&o.video.indexOf("youtu")>=0){const t=Rn.youtubeVideoId(o.video);this.playerType="youtube",r.push("crt-has-video-youtube"),n=wi("div",{className:"crt-responsive-video fitvidsignore",children:wi("iframe",{id:"ytplayer",src:`https://www.youtube.com/embed/${t}?autoplay=0&rel=0&showinfo`,frameBorder:"0",allowFullScreen:!0})})}else if(o.video&&o.video.indexOf("vimeo")>=0){const t=Rn.vimeoVideoId(o.video);t?(this.playerType="vimeo",r.push("crt-has-video-vimeo"),n=wi("div",{className:"crt-responsive-video fitvidsignore",children:wi("iframe",{src:`https://player.vimeo.com/video/${t}?color=ffffff&title=0&byline=0&portrait=0`,frameBorder:"0",allowFullScreen:!0})})):n=wi("div",{children:"Could not find Vimeo ID"})}else this.playerType="inline",n=wi("div",{class:"popup-video-container",children:[wi(Cl,{className:"crt-popup-background-image",width:400,height:400}),wi("img",{src:o.image,alt:na(o)}),wi("video",{preload:"none",ref:this.player,style:{display:e.playing?"block":"none"},poster:o.image,children:wi("source",{src:o.video,type:"video/mp4"})}),wi("a",{onClick:()=>this.onPlay(),className:"crt-play",tabIndex:0,"aria-label":"play video",children:wi("i",{className:"crt-play-icon",style:{display:e.playing?"none":"block"}})})]});if(o.network_id===Js&&Ys(o)){const t=o.source_identifier||function(t){const e=t.match(/data-video-id="(\d+)"/);return e?e[1]:null}(o.text);if(!t)return null;n=wi("div",{className:"crt-responsive-video fitvidsignore",children:[wi("iframe",{src:`https://www.tiktok.com/player/v1/${t}?rel=0`,frameBorder:"0",allowFullScreen:!0}),";"]})}return wi("div",{className:r.join(" "),style:"display:block",children:wi("div",{className:"crt-video-container",style:"position:relative",tabIndex:0,onKeyPress:t=>{wl(t)&&this.onPlay()},children:n})})}}function Sl(t){const e=Bs(),o=t.post;let r,n=Ys(t.post)?o.source_created_at:o.created_at;n=ia(n),r=Ys(t.post)?e.config.get("post.clickAction"):o.click_action;const i=o.url,s=t.tag?t.tag:"span",a=!(!t.className||!t.className.includes("hide"));if(i&&"nothing"!==r){const e=`Posted on ${n}, click to visit post on ${o.network_name}`;return wi(s,{className:`crt-post-date ${t.className}`,ref:t.cRef,children:wi("a",{href:i,target:"_blank",className:"crt-post-date-link","aria-hidden":a,tabIndex:a?-1:0,"aria-label":e,children:n})})}return wi(s,{className:`crt-post-date ${t.className}`,ref:t.cRef,children:wi("span",{className:"crt-post-date-link",children:n})})}var Fl=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var o=-1;return t.some((function(t,r){return t[0]===e&&(o=r,!0)})),o}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var o=t(this.__entries__,e),r=this.__entries__[o];return r&&r[1]},e.prototype.set=function(e,o){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=o:this.__entries__.push([e,o])},e.prototype.delete=function(e){var o=this.__entries__,r=t(o,e);~r&&o.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var o=0,r=this.__entries__;o0},t.prototype.connect_=function(){Nl&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Tl?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Nl&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,o=void 0===e?"":e;Ll.some((function(t){return!!~o.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ml=function(t,e){for(var o=0,r=Object.keys(e);o0},t}(),Zl="undefined"!=typeof WeakMap?new WeakMap:new Fl,Yl=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var o=Bl.getInstance(),r=new Kl(e,o,this);Zl.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Yl.prototype[t]=function(){var e;return(e=Zl.get(this))[t].apply(e,arguments)}}));const Xl=void 0!==El.ResizeObserver?El.ResizeObserver:Yl;const Ql=function(){return Ct.Date.now()};var Jl=Math.max,tu=Math.min;const eu=function(t,e,o){var r,n,i,s,a,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var o=r,i=n;return r=n=void 0,l=e,s=t.apply(i,o)}function f(t){var o=t-c;return void 0===c||o>=e||o<0||d&&t-l>=i}function g(){var t=Ql();if(f(t))return m(t);a=setTimeout(g,function(t){var o=e-(t-c);return d?tu(o,i-(t-l)):o}(t))}function m(t){return a=void 0,h&&r?p(t):(r=n=void 0,s)}function b(){var t=Ql(),o=f(t);if(r=arguments,n=this,c=t,o){if(void 0===a)return function(t){return l=t,a=setTimeout(g,e),u?p(t):s}(c);if(d)return clearTimeout(a),a=setTimeout(g,e),p(c)}return void 0===a&&(a=setTimeout(g,e)),s}return e=oc(e)||0,Et(o)&&(u=!!o.leading,i=(d="maxWait"in o)?Jl(oc(o.maxWait)||0,e):i,h="trailing"in o?!!o.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=c=n=a=void 0},b.flush=function(){return void 0===a?s:m(Ql())},b};class ou{constructor(t,e,o=100){Object.defineProperty(this,"ro",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const r=eu(t,o);this.ro=new Xl((t=>{t.length>0&&r()})),this.ro.observe(e)}disconnect(){this.ro?.disconnect()}}function ru(t,e,o=100){return new ou(t,e)}const nu=function(t){return Cr(t,4)},iu=function(t){const e=nu(t);e.url=Mi.postUrl(t),e.cleanText=Rn.filterHtml(t.text),0!==e.url.indexOf("http")&&(e.url=e.image);{const t="https://www.facebook.com/sharer/sharer.php?u={{url}}&d={{cleanText}}",o=Mi.tinyparser(t,e);Mi.popup(o,"twitter",600,430,0)}},su=function(t){const e=nu(t);e.url=Mi.postUrl(t),e.cleanText=Rn.filterHtml(t.text);const o=Mi.tinyparser("http://twitter.com/share?url={{url}}&text={{cleanText}}&hashtags={{hashtags}}",e);Mi.popup(o,"twitter",600,430,0)};function au(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.04826 0.328338C8.35045 0.0450401 8.82507 0.0603507 9.10837 0.362535L13.4173 4.95873C13.6878 5.24722 13.6878 5.69615 13.4173 5.98464L9.10837 10.5808C8.82507 10.883 8.35045 10.8983 8.04826 10.615C7.74608 10.3317 7.73077 9.85711 8.01407 9.55492L10.9733 6.39844H5.12988C3.33496 6.39844 1.87988 7.85352 1.87988 9.64844V11.8755C1.87988 12.2897 1.5441 12.6255 1.12988 12.6255C0.715669 12.6255 0.379883 12.2897 0.379883 11.8755V9.64844C0.379883 7.02509 2.50653 4.89844 5.12988 4.89844H11.3047L8.01407 1.38845C7.73077 1.08626 7.74608 0.611636 8.04826 0.328338Z",fill:"currentColor"},[]),"\n"])}function cu(t){if(!Ys(t.post))return null;const e=t.post,o=xs(Ts);if(!o.config.get("post.showShare"))return null;const r=ni((()=>{iu(e),o.tracker.track("share:twitter")})),n=ni((()=>{su(e),o.tracker.track("share:twitter")}));return wi("div",{className:"crt-post-share",ref:t.cRef,onKeyDown:t=>{if("Tab"===t.key&&!t.shiftKey){const e=t.target;if(e&&"crt-post-share"===e.className){t.preventDefault();const o=e.querySelector(".crt-share-facebook");o?.focus()}}},tabIndex:0,role:"group","aria-label":"Share icon, press tab to proceed with the share buttons",children:[wi("span",{className:"crt-share-hint"}),wi("span",{className:"crt-share-button",children:wi(au,{})}),wi("div",{className:"crt-popup-share-icon-container",children:[wi("p",{children:"Share"}),wi("div",{className:"crt-popup-share-icon-container-icons",children:[wi("a",{className:"crt-share-facebook",role:"link",onClick:r,tabIndex:0,"aria-label":"Click to share to facebook",children:wi(gc,{})}),wi("a",{className:"crt-share-twitter",role:"link",onClick:n,tabIndex:0,"aria-label":"Click to share to twitter",children:wi(dc,{})})]})]})]})}function lu(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5036 11.7128C15.1389 10.59 15.4726 9.32182 15.4723 8.03174C15.4719 6.89668 15.2128 5.77664 14.7149 4.75664C14.2169 3.73664 13.4931 2.84349 12.5984 2.14498C11.7037 1.44647 10.6617 0.960964 9.55136 0.725312C8.44103 0.48966 7.2916 0.510056 6.19033 0.784952C5.08906 1.05985 4.06489 1.58202 3.19555 2.31183C2.32622 3.04164 1.63457 3.95991 1.17311 4.99693C0.711648 6.03396 0.492502 7.16248 0.532306 8.29685C0.572111 9.43121 0.869818 10.5416 1.40283 11.5437L0.587345 13.9902C0.519795 14.1927 0.509992 14.4101 0.559034 14.6179C0.608076 14.8257 0.714025 15.0158 0.865006 15.1668C1.01599 15.3177 1.20603 15.4237 1.41384 15.4727C1.62166 15.5218 1.83902 15.512 2.04157 15.4444L4.48803 14.6289C5.62674 15.2353 6.90303 15.5365 8.19268 15.5032C9.48232 15.4699 10.7414 15.1034 11.8473 14.4391C12.9533 13.7749 13.8684 12.8357 14.5036 11.7128ZM13.2327 5.45107C13.6289 6.25376 13.8351 7.13681 13.8353 8.03193C13.8355 9.05681 13.5659 10.0637 13.0534 10.9512C12.5409 11.8388 11.8037 12.5757 10.9159 13.0878C10.0281 13.6 9.02116 13.8693 7.99628 13.8686C6.97139 13.868 5.96475 13.5974 5.07765 13.0841C4.99706 13.0374 4.90557 13.0127 4.81241 13.0125C4.75533 13.0126 4.69866 13.022 4.64464 13.0404L2.16462 13.8673L2.99151 11.3873C3.01535 11.316 3.02377 11.2405 3.01623 11.1657C3.00868 11.0909 2.98534 11.0186 2.94775 10.9536C2.49983 10.1786 2.23621 9.31095 2.17728 8.41778C2.11834 7.52461 2.26568 6.62985 2.60788 5.80273C2.95008 4.97561 3.47798 4.2383 4.15073 3.64785C4.82347 3.0574 5.62304 2.62962 6.48757 2.39763C7.3521 2.16564 8.25841 2.13564 9.13638 2.30996C10.0144 2.48428 10.8405 2.85825 11.5508 3.40293C12.2611 3.9476 12.8366 4.64839 13.2327 5.45107Z",fill:"currentColor"},[]),"\n"])}function uu(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M11.1808 1.51758C9.86713 1.51758 8.71695 2.08249 8 3.03737C7.28305 2.08249 6.13287 1.51758 4.8192 1.51758C3.77349 1.51876 2.77095 1.93468 2.03153 2.67411C1.29211 3.41353 0.876179 4.41607 0.875 5.46177C0.875 9.9149 7.47771 13.5194 7.75889 13.6682C7.83301 13.7081 7.91585 13.729 8 13.729C8.08415 13.729 8.16699 13.7081 8.2411 13.6682C8.52229 13.5194 15.125 9.9149 15.125 5.46177C15.1238 4.41607 14.7079 3.41353 13.9685 2.67411C13.229 1.93468 12.2265 1.51876 11.1808 1.51758Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},[]),"\n "])}function du(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M15.3125 6.17188C15.3125 6.33349 15.2483 6.48849 15.134 6.60277C15.0197 6.71705 14.8647 6.78125 14.7031 6.78125C14.5415 6.78125 14.3865 6.71705 14.2722 6.60277C14.158 6.48849 14.0938 6.33349 14.0938 6.17188V2.76852L9.04127 7.82176C8.92693 7.9361 8.77184 8.00034 8.61014 8.00034C8.44843 8.00034 8.29335 7.9361 8.179 7.82176C8.06466 7.70741 8.00042 7.55233 8.00042 7.39062C8.00042 7.22892 8.06466 7.07384 8.179 6.95949L13.2315 1.90625H9.82812C9.66651 1.90625 9.51151 1.84205 9.39723 1.72777C9.28295 1.61349 9.21875 1.45849 9.21875 1.29688C9.21875 1.13526 9.28295 0.980262 9.39723 0.865982C9.51151 0.751702 9.66651 0.6875 9.82812 0.6875H14.7031C14.8647 0.6875 15.0197 0.751702 15.134 0.865982C15.2483 0.980262 15.3125 1.13526 15.3125 1.29688V6.17188ZM12.2656 8C12.104 8 11.949 8.0642 11.8347 8.17848C11.7205 8.29276 11.6562 8.44776 11.6562 8.60938V14.0938H1.90625V4.34375H7.39062C7.55224 4.34375 7.70724 4.27955 7.82152 4.16527C7.9358 4.05099 8 3.89599 8 3.73438C8 3.57276 7.9358 3.41776 7.82152 3.30348C7.70724 3.1892 7.55224 3.125 7.39062 3.125H1.90625C1.58302 3.125 1.27302 3.2534 1.04446 3.48196C0.815904 3.71052 0.6875 4.02052 0.6875 4.34375V14.0938C0.6875 14.417 0.815904 14.727 1.04446 14.9555C1.27302 15.1841 1.58302 15.3125 1.90625 15.3125H11.6562C11.9795 15.3125 12.2895 15.1841 12.518 14.9555C12.7466 14.727 12.875 14.417 12.875 14.0938V8.60938C12.875 8.44776 12.8108 8.29276 12.6965 8.17848C12.5822 8.0642 12.4272 8 12.2656 8Z",fill:"currentColor"},[]),"\n"])}function hu(t){const e=function(t){return 1===t.network_id?"X":t?.network_name}(t.post);if(!Ys(t.post)&&t.post.url)return wi("div",{className:"crt-popup-footer",onKeyDown:t.onKeyDown,ref:t.footerRef,children:wi("div",{className:"crt-popup-footer-right",children:wi("a",{href:t.post.url,target:"_blank",class:"crt-visit-icon","aria-label":`View on ${e}`,children:wi(du,{})})})});if(!Ys(t.post))return null;const o=58!=t.post.source_type&&t.post.network_id!=Js,r=t.post;return wi("div",{className:"crt-popup-footer",onKeyDown:t.onKeyDown,ref:t.footerRef,children:[o&&wi("div",{className:"crt-popup-stats",children:[wi("span",{className:"crt-popup-stats-comments",tabIndex:0,"aria-label":`${r.comments} comments`,children:[wi(lu,{}),wi("span",{children:r.comments})]}),wi("span",{className:"crt-popup-stats-likes",tabIndex:0,"aria-label":`${r.comments} likes`,children:[wi(uu,{}),wi("span",{children:r.likes})]})]}),wi("div",{className:"crt-popup-footer-right",children:[wi("a",{href:r.url,target:"_blank",class:"crt-visit-icon","aria-label":`View on ${e}`,children:wi(du,{})}),wi(cu,{post:r})]})]})}const pu=t=>{const e=t.post;let o=sa(e);const r="crt-popup-text-content";return e.network_id===Js&&(o=o.replace(/(?:^]*>)/,""),o=o.replace(/<\/blockquote>/,"")),3===e.network_id&&Ys(e)&&e.is_embed?wi("div",{className:"crt-popup-text-embed-container",children:[wi("div",{className:r,dangerouslySetInnerHTML:{__html:o}}),wi("div",{className:"crt-popup-text-embed-wrapper"})]}):wi("div",{className:r,dangerouslySetInnerHTML:{__html:o}})};function fu(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M8.5444 0.731201L11.1216 5.91833L16.8513 6.76652L12.7145 10.8205L13.6784 16.5319L8.5444 13.8503L3.41045 16.5319L4.37433 10.8205L0.23749 6.76652L5.96716 5.91833L8.5444 0.731201Z",fill:"currentColor"},[]),"\n "])}const gu=t=>{if(5!==t.post.network_id)return null;if(!Ys(t.post))return null;const e=aa(t.post,"rating"),o=e?parseInt(e):0;return wi("div",{className:"crt-post-ratings",children:[1,2,3,4,5].map((t=>wi(fu,t<=o?{className:"crt-post-rating-icon crt-post-rating-icon-active"}:{className:"crt-post-rating-icon"},t)))})};class mu extends M{constructor(t){super(t),Object.defineProperty(this,"re",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"refCloseButton",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"refFooter",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"refReadMore",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"popupContainer",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"scrollableText",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"scrollTimeout",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTextScrolling",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.state={leftWidth:400},this.onKeyup=this.onKeyup.bind(this),this.onFooterKeydown=this.onFooterKeydown.bind(this),this.onCloseKeydown=this.onCloseKeydown.bind(this)}onFooterKeydown(t){t.stopPropagation();const e=t.target;e&&e&&!e.className.toString().includes("crt-share-twitter")||yl(t)&&!t.shiftKey&&this.refCloseButton.current&&(t.preventDefault(),this.refCloseButton.current.focus())}onCloseKeydown(t){if(yl(t)&&t.shiftKey)if(t.preventDefault(),this.props.post&&Ys(this.props.post)&&this.refFooter.current&&this.refFooter.current.lastElementChild){const t=this.refFooter.current.lastElementChild.lastChild;t&&t.focus()}else this.refReadMore.current&&this.refReadMore.current.focus()}componentDidMount(){this.re=ru(this.onResize.bind(this),this.base),document.addEventListener("keydown",this.onKeyup,!1),this.scrollableText.current?.addEventListener("scroll",(()=>{this.scrollableText.current&&(this.isTextScrolling=!0,this.scrollableText.current.classList.add("crt-popup-text-scrolling"),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout((()=>{this.isTextScrolling&&(this.scrollableText.current?.classList.remove("crt-popup-text-scrolling"),this.isTextScrolling=!1)}),1e3))})),setTimeout((()=>{this.popupContainer.current?.focus()}),500)}componentWillUnmount(){this.re?.disconnect(),document.removeEventListener("keydown",this.onKeyup,!1),this.scrollableText.current?.removeEventListener("scroll",(()=>{this.isTextScrolling=!1})),this.scrollTimeout&&clearTimeout(this.scrollTimeout)}onResize(){if(!this.alive)return;const t=window.innerWidth;let e=t-80;t>1055?e=935:t>910?e=t-120:t>680&&(e=600),this.setState({leftWidth:e})}onKeyup(t){27===t.keyCode?this.props.onClose():37===t.keyCode?this.props.onPrevious():39===t.keyCode&&this.props.onNext()}render(t){const e=t.post,o=["crt-popup"];let r="",n=e.user_full_name,i="crt-post-name";Ys(e)||(n=e.title,i="crt-post-name username-ad"),e.title||(r=oa(e,"title","")),r||o.push("crt-popup-has-title"),e.image&&o.push("has-image"),e.video&&o.push("has-video"),e.url&&(o.push("crt-has-read-more"),"http"!==e.url.substring(0,4)&&(e.url=`https://${e.url}`)),o.push("crt-popup-network-id-"+e.network_id);const s=Ys(e)?e.id:0;return wi("div",{ref:this.popupContainer,className:o.join(" "),tabIndex:0,"aria-label":"Post details popup",children:[wi("a",{ref:this.refCloseButton,onClick:this.props.onClose,className:"crt-close","aria-label":"close popup",role:"button",tabIndex:0,onKeyPress:t=>{wl(t)&&this.props.onClose()},onKeyDown:this.onCloseKeydown,children:wi(dl,{icon:"crt-icon-cancel",width:15,height:15})}),wi("a",{onClick:this.props.onPrevious,className:"crt-previous","aria-label":"go to previous post",role:"button",tabIndex:0,onKeyPress:t=>{wl(t)&&this.props.onPrevious()},children:wi(dl,{icon:"crt-icon-left-open-big"})}),wi("a",{onClick:this.props.onNext,className:"crt-next","aria-label":"go to next post",role:"button",tabIndex:0,onKeyPress:t=>{wl(t)&&this.props.onNext()},children:wi(dl,{icon:"crt-icon-right-open-big"})}),(e.network_id!==Js||!Qs(e))&&wi("div",{className:"crt-popup-left",children:[e.video&&wi(jl,{post:e},s),!e.video&&wi(_l,{post:e})]}),e.network_id===Js&&Qs(e)&&wi("div",{className:"crt-popup-left",children:wi(jl,{post:e},s)}),wi("div",{className:"crt-popup-right",children:[wi("div",{className:"crt-popup-header",children:[wi(bl,{post:e}),wi("div",{className:i,children:[wi("p",{children:n}),ra(e)&&"#"!==ea(e)&&wi("a",{href:ea(e),target:"_blank",children:ra(e)})]})]}),wi("div",{className:"crt-popup-content",children:wi("div",{ref:this.scrollableText,className:"crt-popup-text "+ha(e),children:wi("div",{className:"crt-popup-text-container",children:[wi(gl,{post:e}),wi("p",{className:"crt-popup-text-title",children:r}),wi(gu,{post:e}),wi(pu,{post:e}),wi(Sl,{post:e,tag:"p"}),wi(vl,{post:e})]})})}),wi(hu,{post:e,onKeyDown:this.onFooterKeydown,footerRef:this.refFooter})]})]})}}function bu({show:t,children:e,className:o}){const[r,n]=vs(t);return ys((()=>{t?n(!0):setTimeout((()=>{n(!1)}),400)}),[t]),wi(B,{children:r&&wi("div",{style:{animation:(t?"crtFadeIn":"crtFadeOut")+" 0.5s"},className:o,children:e})})}function vu(t){const e=Ys(t)?t.id:t.slug;window.history?window.history.pushState(null,"","#crt:post:"+e):window.document.location.hash="crt:post:"+e}function wu(t,e){for(var o in e)t[o]=e[o];return t}function yu(t,e){for(var o in t)if("__source"!==o&&!(o in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function Cu(t){this.props=t}function _u(t,e){function o(t){var o=this.props.ref,r=o==t.ref;return!r&&o&&(o.call?o(null):o.current=null),e?!e(this.props,t)||!r:yu(this.props,t)}function r(e){return this.shouldComponentUpdate=o,L(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}Object.defineProperty(mu,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts}),(Cu.prototype=new M).isPureReactComponent=!0,Cu.prototype.shouldComponentUpdate=function(t,e){return yu(this.props,t)||yu(this.state,e)};var xu=C.__b;C.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),xu&&xu(t)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Pu=C.__e;C.__e=function(t,e,o,r){if(t.then)for(var n,i=e;i=i.__;)if((n=i.__c)&&n.__c)return null==e.__e&&(e.__e=o.__e,e.__k=o.__k),n.__c(t,e);Pu(t,e,o,r)};var ku=C.unmount;function Ou(t,e,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=wu({},t)).__c&&(t.__c.__P===o&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return Ou(t,e,o)}))),t}function Au(t,e,o){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return Au(t,e,o)})),t.__c&&t.__c.__P===e&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function ju(){this.__u=0,this.t=null,this.__b=null}function Su(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Fu(){this.u=null,this.o=null}C.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),ku&&ku(t)},(ju.prototype=new M).__c=function(t,e){var o=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(o);var n=Su(r.__v),i=!1,s=function(){i||(i=!0,o.__R=null,n?n(a):a())};o.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=Au(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},ju.prototype.componentWillUnmount=function(){this.t=[]},ju.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ou(this.__b,o,r.__O=r.__P)}this.__b=null}var n=e.__a&&L(B,null,t.fallback);return n&&(n.__h=null),[L(B,null,e.__a?null:t.children),n]};var Nu=function(t,e,o){if(++o[1]===o[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]>>1,1),e.i.removeChild(t)}}),rt(L(Eu,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Lu(t,e){var o=L(Du,{__v:t,i:e});return o.containerInfo=e,o}(Fu.prototype=new M).__a=function(t){var e=this,o=Su(e.__v),r=e.o.get(t);return r[0]++,function(n){var i=function(){e.props.revealOrder?(r.push(n),Nu(e,t,r)):n()};o?o(i):i()}},Fu.prototype.render=function(t){this.u=null,this.o=new Map;var e=$(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var o=e.length;o--;)this.o.set(e[o],this.u=[1,0,this.u]);return t.children},Fu.prototype.componentDidUpdate=Fu.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,o){Nu(t,o,e)}))};var Tu="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Bu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Mu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Iu=/[A-Z0-9]/g,qu="undefined"!=typeof document,Wu=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(M.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var Hu=C.event;function Ru(){}function zu(){return this.cancelBubble}function $u(){return this.defaultPrevented}C.event=function(t){return Hu&&(t=Hu(t)),t.persist=Ru,t.isPropagationStopped=zu,t.isDefaultPrevented=$u,t.nativeEvent=t};var Uu={enumerable:!1,configurable:!0,get:function(){return this.class}},Vu=C.vnode;C.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,o=t.type,r={};for(var n in e){var i=e[n];if(!("value"===n&&"defaultValue"in e&&null==i||qu&&"children"===n&&"noscript"===o||"class"===n||"className"===n)){var s=n.toLowerCase();"defaultValue"===n&&"value"in e&&null==e.value?n="value":"download"===n&&!0===i?i="":"ondoubleclick"===s?n="ondblclick":"onchange"!==s||"input"!==o&&"textarea"!==o||Wu(e.type)?"onfocus"===s?n="onfocusin":"onblur"===s?n="onfocusout":Mu.test(n)?n=s:-1===o.indexOf("-")&&Bu.test(n)?n=n.replace(Iu,"-$&").toLowerCase():null===i&&(i=void 0):s=n="oninput","oninput"===s&&r[n=s]&&(n="oninputCapture"),r[n]=i}}"select"==o&&r.multiple&&Array.isArray(r.value)&&(r.value=$(e.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==o&&null!=r.defaultValue&&(r.value=$(e.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),e.class&&!e.className?(r.class=e.class,Object.defineProperty(r,"className",Uu)):(e.className&&!e.class||e.class&&e.className)&&(r.class=r.className=e.className),t.props=r}(t),t.$$typeof=Tu,Vu&&Vu(t)};var Gu=C.__r;C.__r=function(t){Gu&&Gu(t),t.__c};var Ku=C.diffed;C.diffed=function(t){Ku&&Ku(t);var e=t.props,o=t.__e;null!=o&&"textarea"===t.type&&"value"in e&&e.value!==o.value&&(o.value=null==e.value?"":e.value)};class Zu extends M{constructor(t){super(t),Object.defineProperty(this,"currentPostNum",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"postRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"onPostClick",{enumerable:!0,configurable:!0,writable:!0,value:t=>{"ad"!=t.type||t.video?this.context.config.get("post.clickAction")===xr.OPEN_POPUP&&this.showPost(t):"goto-url"==t.click_action&&window.open(t.url,"_blank")}}),Object.defineProperty(this,"onPrevious",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.currentPostNum-=1,this.currentPostNum=this.currentPostNum>=0?this.currentPostNum:this.context.feed._posts.length-1,this.setPost(this.context.feed._posts[this.currentPostNum])}}),Object.defineProperty(this,"onNext",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.currentPostNum+=1,this.currentPostNum=this.currentPostNum{this.context.tracker.track("popup:hide"),ei(document.body,"crt-popup-visible"),this.setState({popupVisible:!1}),setTimeout((()=>{if(this.setState({visible:!1}),this.state.post){const t=Ys(this.state.post)?this.state.post.id:this.state.post.slug;this.context.events.trigger(`${bi.POST_CLOSED}${t}`)}}),500),function(){let t=window.document.location.hash;if(t=t.replace("#",""),t.indexOf("crt:post:")>-1){const t=window.location.origin+window.location.pathname;window.history&&window.history.replaceState(null,"",t)}}()}}),this.state={leftWidth:400,visible:!!t.visible,popupVisible:!1}}componentDidMount(){this.context.events.on(bi.POST_CLICK,this.onPostClick)}componentWillUnmount(){this.context.events.off(bi.POST_CLICK,this.onPostClick),ei(document.body,"crt-popup-visible")}showPost(t){this.context.tracker.track("popup:show"),this.setState({visible:!0,post:t}),this.show(),this.context.config.get("popup.deepLink")&&vu(t),this.currentPostNum=ac(this.context.feed._posts,(e=>{const o=Ys(t)?t.id:t.slug;return e.id===o}))}show(){oi(document.body,"crt-popup-visible"),this.setState({visible:!0}),setTimeout((()=>{this.setState({popupVisible:!0})}),500)}setPost(t){t&&(this.setState({post:t}),this.context.config.get("popup.deepLink")&&vu(t))}render(t,e){return this.postRef.current&&this.postRef.current.focus(),Lu(wi("div",{className:"crt-popup-manager",children:wi(bu,{show:e.visible,className:"crt-popup-wrapper crt-popup-wrapper-visible",children:wi("div",{className:"crt-popup-wrapper-c",ref:this.postRef,tabIndex:0,children:[wi("div",{className:"crt-popup-underlay",onClick:this.onClose}),wi(bu,{className:"crt-popup-container",show:e.popupVisible,children:wi(mu,{post:e.post,onNext:this.onNext,onPrevious:this.onPrevious,onClose:this.onClose},e.post&&Ys(e.post)?e.post.id:0)})]})})}),document.body)}}Object.defineProperty(Zu,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});nt({});const Yu=nt({}),Xu=({loader:t,children:e})=>{const o={loader:t};return wi(Yu.Provider,{value:o,children:e})};function Qu(t){return Ys(t)?t.id+"":t.slug}const Ju=nt({}),td=({post:t,el:e,children:o})=>{const r={post:t,el:e};return wi(Ju.Provider,{value:r,children:o})},ed=nt({}),od=()=>xs(ed),rd=t=>{const[e,o]=vs("info"),[r,n]=vs(""),i={message:r,setMessage:(t="",e="info")=>{o(e),n(t)},type:e};return wi(ed.Provider,{value:i,children:t.children})},nd=nt({}),id=()=>xs(nd),sd=t=>{const e=od(),o=Bs(),r={widget:o,message:e,feed:o.feed,filterService:o.filterService,config:o.config,data:{nOfPosts:0}};return wi(nd.Provider,{value:r,children:t.children})},ad=nt({}),cd=ci("ViewportTracker");function ld(t){const e=t.current;if(!e)return!1;return function(t,e){return t.left<=e.right&&e.left<=t.right&&t.top<=e.bottom&&e.top<=t.bottom}(e.getBoundingClientRect(),{top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth})}const ud=t=>{const e=Cs(),[o,r]=vs(!1),[n,i]=vs(!1),s=Bs();ys((()=>{const t=s.config.get("widget.lazyLoadType");cd.info(`mount type: ${t}`);const o=()=>{cd.info("widgetEnteredViewport"),r(!0),i(!0),s.events.trigger(bi.WIDGET_VISIBLE,!0)},n=()=>{if("IntersectionObserver"in window){cd.log("register intersection observer");const t=new IntersectionObserver((e=>{e[0].isIntersecting&&(cd.log("intersection callback triggered"),o(),t.disconnect())}),{root:null,rootMargin:"0px",threshold:1});t.observe(e.current)}else{cd.log("register scroll event");const t=eu((()=>{ld(e)&&(cd.log("scroll on viewport triggered"),o(),document.removeEventListener("scroll",t))}));ld(e)?(o(),document.removeEventListener("scroll",t)):document.addEventListener("scroll",t)}};"whole_widget"===t?n():t===Pr?(r(!0),n()):o()}),[]);const a={lazyLoaded:n};return wi(ad.Provider,{value:a,children:[wi("div",{ref:e,className:"crt-viewport-tracker"}),o&&t.children]})};function dd(){const t=od(),e=Bs(),o=e=>{-1!==ui.indexOf(window.location.hostname)&&t.setMessage(0===e.postCount?"The feed contains no posts":"")};return ys((()=>(e.events.on(bi.FEED_LOADED,o),()=>{e.events.off(bi.FEED_LOADED,o)})),[]),t.message?wi("div",{className:`crt-notice crt-notice-${t.type}`,children:wi("span",{children:t.message})}):null}function hd(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"24",height:"24",id:"svg-warning-2pfGa-G",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512",style:"enable-background:new 0 0 512 512;","xml:space":"preserve"},e),["\n ",L("path",{d:"M256,34.297L0,477.703h512L256,34.297z M256,422.05c-9.22,0-16.696-7.475-16.696-16.696s7.475-16.696,16.696-16.696\n c9.22,0,16.696,7.475,16.696,16.696S265.22,422.05,256,422.05z M239.304,344.137V177.181h33.391v166.956H239.304z"},[]),"\n"])}const pd=()=>{const t=Bs(),[e,o]=vs(!1);return ys((()=>{t.events.on(bi.ACCOUNT_NEEDS_ATTENTION,(e=>{t.config.get("feed.hideNotice")||o(e)}))}),[]),e?wi("div",{className:"crt-warning-dialog",children:wi("p",{children:[wi(hd,{})," Your Curator account requires attention. ",wi(hd,{})]})}):null},fd={};function gd(t){return fd[t]||(fd[t]=new xl),fd[t]}const md=ci("Feed");const bd=class extends xl{constructor(t){super(),Object.defineProperty(this,"postsLoaded",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"postCount",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"loading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allPostsLoaded",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pagination",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_firstLoad",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_feedCurrentIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_feed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_ads",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_active",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"urlFeedPosts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"urlFeedPost",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"urlPost",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"networks",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentPage",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"eventBus",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),md.log("init"),this.config=t,this.eventBus=gd(t.id),this.postsLoaded=0,this.postCount=0,this.loading=!1,this.allPostsLoaded=!1,this.pagination={after:"",before:""},this._firstLoad=!0,this._feedCurrentIdx=0,this._feed=[],this._posts=[],this._ads=[],this._active=!0;const e=this.config.get("feed.id");this.params=this.config.get("feed.params")||{},md.log("constructor params",this.params),this.params.limit=this.config.get("feed.limit",25),this.params.hasPoweredBy=this.config.get("hasPoweredBy"),this.params.image_width=this.config.get("image_width",480);this.config.get("filter.limitPosts",!1)&&(this.params.limitPosts=!0,this.params.limitPostNumber=this.config.get("filter.limitPostNumber",12),this.params.limitPostPeriod=this.config.get("filter.period","hours"));const o=new Ms(this.config.get("feed.apiEndpoint"));this.urlFeedPosts=o.build("/restricted/feeds/{{feedId}}/posts",{feedId:e}),this.urlFeedPost=o.build("/restricted/feeds/{{feedId}}/posts",{feedId:e}),this.urlPost=o.build("/restricted/feeds/{{feedId}}/posts",{feedId:e}),this.checkDeepLink()}reset(){this._feedCurrentIdx=0,this._feed=[],this._posts=[],this.postCount=0,this._ads=[],this.params=this.config.get("feed.params")||{},this.params.limit=this.config.get("feed.limit",25),this._firstLoad=!0,this.allPostsLoaded=!1,this.loading=!1}setParams(t){t.networkId?this.params.network_id=`${t.networkId}`:delete this.params.network_id,t.sourceId?this.params.source_id=`${t.sourceId}`:delete this.params.source_id}loadXPosts(t,e){return md.log("loadXPosts "+t),new Promise(((o,r)=>{this.numPostsAfterCurrent(){o(this.getXPosts(t))})).catch((t=>{r(t)})):o(this.getXPosts(t))}))}nextPost(){if(this._feedCurrentIdxthis._feed.length&&(e=this._feed.length);const o=this._feed.slice(this._feedCurrentIdx,e);return this._feedCurrentIdx=e,this.trigger(bi.POSTS_FETCHED,o),this.eventBus.trigger(bi.POSTS_FETCHED,o),o}postAtIndex(t){return this._feed[t]}numPosts(){return this._feed.length}numPostsAfterCurrent(){return this._feed.length-this._feedCurrentIdx}hasMorePosts(){return!(this.allPostsLoaded&&this._feedCurrentIdx>=this._feed.length)}isFirstLoad(){return this._firstLoad}checkDeepLink(){if(this.config.get("popup.deepLink")){let t=window.document.location.hash;if(t=t.replace("#",""),t.indexOf("crt:post:")>-1){const e=t.substring(9);this.loadPost(e).then((t=>{this.eventBus.trigger(bi.POST_CLICK,t)}))}}}loadPost(t){return new Promise(((e,o)=>{zs.getPromise(this.urlPost+"/"+t,{},{dontChangeProtocol:!0}).then((({success:t,data:o})=>{t&&e(o.post)}))}))}load(t){return md.log("load "+this.loading),this.loading?new Promise((t=>{t(!1)})):this._firstLoad?this.loadFirst(t):this.loadAfter(t)}loadFirst(t){if(md.log("loadFirst "+this.loading),this.loading)return new Promise((t=>{t(!1)}));this._feed=[],this.postsLoaded=0;const e={...this.params,...t};return e.limit=this.config.get("feed.limit",25),this._loadPosts(e,"first-load")}loadAfter(t){if(md.log("loadAfter "+this.loading),this.loading)return new Promise((t=>{t(!1)}));const e={...this.params,...t};return this.pagination&&this.pagination.after&&(e.after=this.pagination.after,e.before=""),this._loadPosts(e,"after")}loadMore(){return this.loadAfter()}loadBefore(){if(md.log("loadBefore "+this.loading),this.loading)return new Promise((t=>{t(!1)}));const t={...this.params};return this.pagination&&this.pagination.before&&(t.before=this.pagination.before,t.after=""),this._loadPosts(t,"before")}loadNew(){return this.loadBefore()}loadPage(t){if(md.log("loadPage "+t),this.loading)return new Promise((t=>{t(void 0)}));const e={...this.params},o=this.config.get("feed.limit",25);return e.limit=o,e.offset=t*o,e.before="",e.after="",this.currentPage=t,this._loadPosts(e,"load-page")}_loadPosts(t,e){md.log("_loadPosts position:"+e),this.loading=!0;const o=this.config.get("embedSource",null);return o&&(t.embedSource=o),new Promise(((o,r)=>{zs.getPromise(this.urlFeedPosts,t,{dontChangeProtocol:!0}).then((({success:t,data:n})=>{if(md.log("_loadPosts success"),this._active)if(this.loading=!1,this._firstLoad=!1,t&&n.posts){if(this.postCount=n.postCount,this.postsLoaded+=n.posts.length,this.allPostsLoaded=this.postsLoaded>=this.postCount,this._ads=n.ads.sort(((t,e)=>t.position_start>e.position_start?1:e.position_start>t.position_start?-1:0)),this.networks=n.networks,"before"===e){if(n.posts.length){let t=[];t=t.concat(n.posts),this._feed=t.concat(this._feed)}n.pagination&&n.pagination.before&&(this.pagination.before=n.pagination.before)}else"after"===e?(this.addPostsAndAdsToEnd(n.posts),n.pagination&&n.pagination.after&&(this.pagination.after=n.pagination.after)):"first-load"===e&&(this.addPostsAndAdsToEnd(n.posts),n.pagination&&(this.pagination.after=n.pagination.after,this.pagination.before=n.pagination.before));if(this.trigger(bi.FEED_LOADED,n,e),this.trigger(bi.POSTS_LOADED,n.posts,e),this.eventBus.trigger(bi.FEED_LOADED,n),this.eventBus.trigger(bi.POSTS_LOADED,n.posts,e),!0===n.account.needsAttention&&this.eventBus.trigger(bi.ACCOUNT_NEEDS_ATTENTION,!0),n.feed.meta){"string"==typeof n.feed.meta&&(n.feed.meta=JSON.parse(n.feed.meta));const t=t=>n.posts.filter((e=>e.network_id===t&&e.is_embed));n.feed.meta.hasInstagramEmbed&&t(2)&&this.eventBus.trigger(bi.HAS_INSTAGRAM_EMBED),n.feed.meta.hasFacebookEmbed&&t(3)&&this.eventBus.trigger(bi.HAS_FACEBOOK_EMBED)}o(n)}else this.trigger(bi.POSTS_FAILED,n,e),this.eventBus.trigger(bi.FEED_FAILED,n),r()}))}))}addPostsAndAdsToEnd(t){if(this._posts=this._posts.concat(t),this._ads.length){const e=_r(this._ads);if(t.length){const o=t,r=this._feed.length-1;for(let t=0;tt.position_repeats));for(let t=0;te.position_start&&(i=e.position_repeat_interval-(r-e.position_start)%e.position_repeat_interval);i{t.feed_position=e+1}))}destroy(){md.log("destroy"),this._active=!1,super.destroy()}};function vd(){const{events:t,config:e,$container:o}=Bs(),r=()=>{e.get("hidePoweredBy")?oi(o,"crt-widget-unbranded"):oi(o,"crt-widget-branded")};window,null===e.config.hidePoweredBy&&void 0===e.config.hidePoweredBy||r();const n=t=>{r()};return ys((()=>(t.on(bi.FEED_LOADED,n),()=>{t.off(bi.FEED_LOADED,n)})),[]),wi("a",{href:"https://curator.io",target:"_blank",className:"crt-logo crt-tag",children:"Powered by Curator.io"})}const wd=class{constructor(t){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultFilterListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.config=t}registerOnFilterChanged(t){this.listeners.push(t)}clearOnFilterChanged(){this.listeners=[]}registerCheckDefaultFilter(t){this.defaultFilterListener=t}triggerCheckDefaultFilter(){this.defaultFilterListener&&this.defaultFilterListener()}triggerOnFilterChanged(t){for(let e=0;e{const e=Cs(),o=new Us(t.config),r=new bd(t.config),n=new wd(t.config),i={widgetId:t.widgetId,feed:r,filterService:n,config:t.config,tracker:o,events:t.events,$container:t.$container,data:{nOfPosts:0,previousNOfPosts:0}};return ys((()=>{t.events.on(bi.POST_CLICK,(t=>{Ys(t)&&o.trackPostAction(t.id,"click")})),t.onMounted(e)}),[]),wi(Ts.Provider,{value:i,children:wi(rd,{children:wi(sd,{children:[wi(pd,{}),wi(Zu,{}),wi(fl,{}),wi(ud,{children:t.children}),wi(dd,{}),wi(vd,{})]})})})},Cd=t=>{let e="not-loaded";const o=()=>{e="loaded",setTimeout((()=>{r()}),50)},r=eu((()=>{t.onProcessEmbeds()}),50);return document.querySelector(`script[src="${t.url}"]`)&&(e="loaded"),{process:function(){"not-loaded"===e?function(){if("loaded"===e)return;t.onBeforeLoad&&t.onBeforeLoad(),e="loading";const r=document.createElement("script");r.src=t.url,r.async=!0,r.defer=!0,r.crossOrigin="anonymous",r.onload=o,document.head.appendChild(r)}():"loaded"===e&&r()}}},_d=ci("BaseWidget");class xd{constructor(t,e){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"$container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sheet",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"autoLoadTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"autoLoading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widget",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hasFacebookEmbed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"hasInstagramEmbed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"instagramScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"facebookScript",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onMounted",{enumerable:!0,configurable:!0,writable:!0,value:t=>{this.widget=t}}),_d.log("construct"),this.id="widget"+Mi.uId(),this.autoLoadTimeout=0,this.autoLoading=!1,this.config=this.setOptions(t,e),this.events=this.createEventBus(),this.$container=this.createContainer(),this.$container.setAttribute("dir","ltr");const o=this.checkPoweredBy();this.config.set("hasPoweredBy",o),this.emptyContainer(),this.instagramScript=Cd({url:"https://www.instagram.com/embed.js",onProcessEmbeds:()=>{window.instgrm&&window.instgrm.Embeds.process()},onBeforeLoad:()=>{window.FB&&(window.FB.__buffer||(window.FB.__buffer=[]))}}),this.facebookScript=Cd({url:"https://connect.facebook.net/en_US/sdk.js",onProcessEmbeds:()=>{window.FB&&window.FB.init({xfbml:!0,version:"v14.0"})}}),this.facebookScript.process(),this.events.on(bi.HAS_INSTAGRAM_EMBED,(()=>{this.hasInstagramEmbed=!0,this.instagramScript.process()})),this.events.on(bi.HAS_FACEBOOK_EMBED,(()=>{this.hasFacebookEmbed=!0,this.facebookScript.process()})),this.events.on(bi.POSTS_COL_RENDERED,(()=>{this.hasInstagramEmbed&&this.instagramScript.process(),this.hasFacebookEmbed&&this.facebookScript.process()}))}updateCustomCss(t){if(!t)return;const e="crt-custom-css-style",o=document.getElementById(e);if(o)o.innerText=t;else{const o=document.createElement("style");o.type="text/css",o.id=e,o.innerText=t,o.setAttribute("scoped","1"),this.$container.appendChild(o)}}createWidgetProps(){return{widgetId:this.id,config:this.config,events:this.events,$container:this.$container,onMounted(t){}}}renderInWidgetWrapper(t,e){this.renderInContainer(wi(yd,{...t,children:e}))}renderInContainer(t){rt(t,this.$container)}setOptions(t,e){if(!t)throw new Error("Widget Options missing");"true"===Ti.getQuery("curatorDebug","false")&&(t.debug=!0);const o=rn(t,e),r=Ls.create(this.id,o);if(!r.get("container"))throw new Error("Widget options.container missing");if(!r.get("feed.id"))throw new Error("Widget options.feed.id missing");return r}createEventBus(){const t=gd(this.id);return t.on(bi.POST_CLICK,(t=>{this.config.get("post.clickAction")===xr.GOTO_SOURCE&&window.open(t.url)})),t}createContainer(){const t=this.config.get("container","#crt-container");if(this.$container=ii(t),!this.$container)throw new Error("Widget init failed - could not find container");this.configLoadInline(this.$container);const e=this.config.get("lang","en");Di.setLang(e),_d.log("Setting language to: "+e),oi(this.$container,"crt-widget"),mi.isTouch()?oi(this.$container,"crt-touch"):oi(this.$container,"crt-no-touch");const o=this.config.get("theme","");o&&oi(this.$container,"crt-widget-theme-"+o);this.config.get("post.maxHeight",0)>0?oi(this.$container,"crt-post-has-max-height"):ei(this.$container,"crt-post-has-max-height");const r={name:"crt:widget:created",data:{feedId:this.config.get("feed.id")}};return window.postMessage(r,"*"),this.$container}setStyles(t){this.createStyleSheet()}createStyleSheet(){if(this.sheet)this.clearStyles();else{const t=this.config.get("feed.id");this.sheet=mi.createSheet(t)}}clearStyles(){this.sheet&&mi.deleteCSSRules(this.sheet)}addStyle(t,e){if(t){const o=[];for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const r=Rn.camelToDash(e)+": "+t[e];o.push(r)}o.length>0&&mi.addCSSRule(this.sheet,e,o.join(";"))}}setCommonStyles(t){let e={};t?.postIcon?e=t.postIcon:t.gridPostIcon&&(e=t.gridPostIcon);let o={};t.postIconWithBorder&&(o=t.postIconWithBorder),this.addStyle(e,".crt-popup-manager .crt-popup .crt-social-icon svg"),this.addStyle(e,".crt-popup-manager .crt-popup .crt-popup-stats svg"),this.addStyle(e,".crt-popup-manager .crt-popup .crt-visit-icon svg"),this.addStyle(e,".crt-popup-manager .crt-popup .crt-share-button svg"),this.addStyle(e,".crt-popup-manager .crt-popup .crt-popup-share-icon-container-icons a:not(:hover):not(:focus) svg"),this.addStyle(o,".crt-popup-manager .crt-popup .crt-popup-share-icon-container-icons a:not(:hover)")}addCssRules(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const o=[],r=t[e];for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)){const e=`${Rn.camelToDash(t)}: ${r[t]}`;o.push(e)}o.length>0&&mi.addCSSRule(this.sheet,e,o.join(";"))}}configLoadInline(t){const e=["lang","debug"];for(const o of e){const e=Vn(t,"crt-"+o);e&&this.config.set(o,e)}}on(t,e,o){this.events.on(t,e,o)}off(t,e,o){this.events.off(t,e,o)}checkPoweredBy(){if(Gn(this.$container).trim().indexOf("Powered by Curator.io")>-1)return!0;const t=document.querySelectorAll(".crt-logo");return!!(t.length&&Gn(t).trim().indexOf("Powered by Curator.io")>-1)}emptyContainer(){!function(t){const e=Un(t);if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}(this.$container)}startAutoLoad(){_d.log("startAutoLoad"),this.autoLoading=!0,this.autoLoadTimeout=window.setTimeout(this.onAutoLoadFire.bind(this),3e4)}stopAutoLoad(){_d.log("stopAutoLoad"),this.autoLoading=!1,window.clearTimeout(this.autoLoadTimeout)}onAutoLoadFire(){_d.log("onAutoLoadFire"),this.autoLoadTimeout=window.setTimeout(this.onAutoLoadFire.bind(this),3e4)}destroy(){if(_d.log("destroy"),this.events&&this.events.destroy(),this.sheet&&(this.clearStyles(),delete this.sheet),ei(this.$container,"crt-widget"),ei(this.$container,"crt-widget-unbranded"),ei(this.$container,"crt-widget-branded"),ei(this.$container,"crt-no-touch"),this.$container.classList)for(let t=0;t"+t)}}class Pd extends xd{setStyles(t){this.createStyleSheet(),this.addCssRules(t.cssRules),this.setCommonStyles(t)}}const kd=(t,e)=>{if(Ys(t)&&t.is_embed)return t.network_name+" embed post";const o=e.get("post.clickAction");let r="Post "+t.feed_position+", "+t.network_name+" post ";if(t.user_full_name&&(r+="by "+t.user_full_name+" "),t.text){let e=t.text;t.is_html&&(e=function(t){const e=document.createElement("div");return e.innerHTML=t,(e.textContent||e.innerText||"").replace(/^\s+|\s+$/gm,"")}(t.text));const n=e.split(" ");if(r+=n.slice(0,10).join(" ")+" ",n.length>20)switch(o){case"open-popup":case"nothing":r+="press enter to read more";break;case"goto-source":r+="press enter to visit post"}}return r},Od=(t,e)=>{if(Ys(t)&&t.is_embed)return null;const o=e.get("post.clickAction"),r=t.text.split(" ");return("open-popup"===o||"nothing"===o)&&r.length>20?r.slice(20,r.length).join(" "):null},Ad=t=>{const e=document.createElement("div"),o="speak-"+Date.now();e.setAttribute("id",o),e.setAttribute("aria-live","polite"),e.classList.add("crt-hidden"),document.body.appendChild(e),window.setTimeout((function(){document.getElementById(o).innerHTML=t}),100),window.setTimeout((function(){document.body.removeChild(document.getElementById(o))}),1e3)};function jd(t){const e=Bs();if(!e.config.get("widget.showLoadMore"))return null;const[o,r]=vs(!1);function n(t){r(t.length>0&&e.feed.hasMorePosts())}const i=async o=>{o.preventDefault(),o.cancelBubble=!0,o.stopPropagation(),await t.onLoadMore();const r=e.data.nOfPosts-e.data.previousNOfPosts,n=e.data.previousNOfPosts;Ad(`${r} more posts are loaded.`),Number.isInteger(n)&&setTimeout((()=>{const t=e.$container.querySelectorAll(`[data-position='${n+1}']`);t.length&&t[0].focus()}),900)};return void 0===t.showLoadMore?ys((()=>(e.events.on(bi.POSTS_FETCHED,n),()=>{e.events.off(bi.POSTS_FETCHED,n)})),[]):r(t.showLoadMore),o?wi("div",{className:"crt-load-more-container",style:"overflow-anchor: none",children:wi("button",{className:"crt-load-more",onClick:i,"aria-label":"click to load more posts",children:wi("span",{children:[" ",ta("load-more")]})})}):null}function Sd(t){if(!t.post.video)return null;const{config:e}=xs(Ts),{el:o}=xs(Ju),r=e.get("post.autoPlayVideos"),n=Cs(),i=Cs(),s=Cs();ys((()=>{n.current&&(s.current=new Pl(n.current),s.current.on("state:changed",(t=>{var e,r;e=o,r="crt-post-video-playing",t?oi(e,r):ei(e,r)})),r&&window.setTimeout((()=>{s.current&&s.current.play()}),200),i.current=()=>{t.playable&&s.current&&s.current.playPause()})}),[]);let a="";t.post.thumbnail?a=t.post.thumbnail:t.post.image&&(a=t.post.image);const c=(l=t.post).user_screen_name?ta("alt-video-posted",{userName:l.user_screen_name,networkName:da(l)}):ta("alt-video-posted-no-username",{networkName:da(l)});var l;return wi("div",{className:"crt-video-container "+(t.playable?"playable":""),children:[wi("span",{className:"crt-play",onClick:()=>{i.current&&i.current()},tabIndex:t.tabIndex||0,"aria-label":"play video",role:"button",onKeyPress:t=>{wl(t)&&i.current&&i.current()},children:wi("i",{className:"crt-play-icon"})}),wi("video",{preload:"none",playsInline:!0,"aria-label":c,loop:!0,muted:!0,ref:n,poster:a,children:wi("source",{src:t.post.video,type:"video/mp4"})})]})}function Fd(){const t={},e=Bs(),o=e.config.get("widget.verticalSpacing"),r=e.config.get("widget.horizontalSpacing");return null!=o&&(t.marginBottom=o+"px"),null!=r&&(t.marginLeft=t.marginRight=r/2+"px"),t}function Nd(){const t={},e=Bs(),o=e.config.get("widget.verticalSpacing"),r=e.config.get("widget.horizontalSpacing");return null!=o&&(t.paddingTop="0px",t.paddingBottom=o+"px"),null!=r&&(t.paddingLeft=t.paddingRight=r/2+"px"),t}const Ed=ci("AriaEvents");function Dd(t,e){if("Tab"===t.key&&t.shiftKey&&void 0!==e.feed_position){if(parseInt(t.target.getAttribute("data-position"))!==e.feed_position)return!1;const o=document.querySelectorAll(`[data-position='${e.feed_position-1}']`);if(o.length)return t.preventDefault(),o[0].focus(),!0}return!1}function Ld(t,e){if("Tab"===t.key&&!t.shiftKey&&void 0!==e.feed_position){const o=document.querySelectorAll(`[data-position='${e.feed_position+1}']:not(.aria-hidden)`),r=document.querySelectorAll(".crt-load-more-container .crt-load-more"),n=document.querySelectorAll(".crt-widget .crt-carousel-feed");if(Ed.log("next post "+(o.length&&"good")),o.length)return t.preventDefault(),o[0].focus(),!0;if(r.length)return t.preventDefault(),r[0].focus(),!0;if(n){const e=document.querySelectorAll(".crt-panel-prev.crt-panel-arrow");return e.length&&(t.preventDefault(),e[0].focus()),!0}}return!1}function Td(t){const e=t.post,o=t.classes,{tracker:r,config:n,events:i,data:s}=Bs(),a=Cs(),c=t.style??{};ys((()=>{a.current&&hi(a.current,c)}),[c,a.current]),ys((()=>{const t=n.get("post.maxHeight",0);t>0&&(oi(a,"crt-post-max-height"),Yn(a,{"max-height":`${t}px`}))}),[]);const l=t=>{const o=t.target,n=o?.tagName.toLowerCase(),s=o?.getAttribute("href");i.on(`${bi.POST_CLOSED}${h}`,(()=>{setTimeout((()=>{a.current&&a.current.focus()}))})),"a"===n&&"#"!==s&&"javascript:;"!==s?r.track("click:link"):(t.preventDefault(),t.cancelBubble=!0,i.trigger(bi.POST_CLICK,e))};function u(t){return Dd(t,e)}const d=_s((()=>e&&e.feed_position?0===s.nOfPosts&&e.feed_position>0?-1:s.nOfPosts:-1),[e,s.nOfPosts]),h=Qu(e),p=kd(e,n);return t.isHidden&&o.push("aria-hidden"),wi(td,{post:e,el:a,children:wi("article",{className:o.join(" "),"data-post":h,ref:a,tabIndex:t.tabIndex||0,"aria-label":p,role:"article",onClick:l,"data-position":e.feed_position,"aria-posinset":e.feed_position,"aria-setsize":d,onKeyPress:t=>{if(!u(t)&&wl(t)){l(t);const o=Od(e,n);o&&Ad(o)}},onKeyDown:u,children:[wi("div",{className:"crt-post-c crt-post-border",children:[t.children,wi("div",{className:"crt-post-max-height-read-more",children:wi("button",{className:"crt-post-read-more-button",onClick:l,children:ta("read-more")})})]}),wi("span",{class:"crt-hidden",onKeyDown:function(t){Ld(t,e)},tabIndex:0,"aria-label":"End of post.",role:"status"})]})},h)}const Bd=t=>{if(!Ys(t.post))return null;const e=t.post,o=xs(Ts),r=o.config.get("post.showComments"),n=o.config.get("post.showLikes")&&wi("span",{className:"crt-likes",children:[e.likes," ",wi("span",{children:ta("likes",e.likes)})]}),i=r&&wi("span",{className:"crt-comments",children:[e.comments," ",wi("span",{children:ta("comments",e.comments)})]}),s=i&&n?wi("span",{className:"crt-sep"}):void 0;return i||n?wi("div",{className:"crt-comments-likes",children:[n," ",s," ",i]}):null};class Md extends M{constructor(t){super(t),Object.defineProperty(this,"refFooter",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postUserImageRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postUserNameRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postDateRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postShareButtons",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),this.state={showDate:!0}}componentDidMount(){if(this.props.multiLine)this.setState({showDate:Xn(this.postUserImageRef)+Xn(this.postDateRef)+Xn(this.postShareButtons)+401&&wi("div",{className:"crt-image-carousel",children:wi(dl,{icon:"crt-icon-clone"})})})}function qd(t){const e=t.post,o=Cs(),r=Cs(),n=Xs(e),i=Bs(),s=xs(ad),a=xs(Yu);if(!e.image||Ys(e)&&2===e.network_id&&e.is_embed)return null;ys((()=>{o.current&&(i.config.get("widget.lazyLoadType")!==Pr||s.lazyLoaded?a.loader.reg(n,e.image,o.current):i.events.on(bi.WIDGET_VISIBLE,(t=>{t&&a.loader.reg(n,e.image,o.current)})))}),[o.current]);const c=Al.get("widget.lazyLoad",!1),l=Al.get("widget.progressiveLoad",!0),u=c||l?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw":e.image,d=na(e);return wi("div",{className:"crt-image-c",ref:r,children:[wi("span",{className:"crt-play",children:wi("i",{className:"crt-play-icon"})}),wi("img",{src:u,ref:o,className:"crt-post-image",tabIndex:0,onLoad:()=>{i.events.trigger("post:image:loaded")},onError:()=>{i.events.trigger("post:image:loaded")},alt:d})]})}function Wd(t){const e=Cs(),o=t.post;e.current&&(e.current.style.backgroundImage=`url('${o.image}')`),ys((()=>{e.current&&(e.current.style.backgroundImage=`url('${o.image}')`)}),[e]);const r=na(o);return wi(B,{children:o.image&&wi("div",{ref:e,"aria-label":r,tabIndex:0,role:"img",className:"crt-grid-post-image"})})}function Hd(t){if(!Ys(t.post))return null;const e=t.post;let o="";if(e.spots){for(let t=0;t${r}, `):o+=`${r}, `)}o=o.replace(/,\s*$/,"")}return o?wi("div",{className:"crt-post-spots-content",dangerouslySetInnerHTML:{__html:"In this photo: "+o}}):null}function Rd(t){const e=t.post,o=Cs();let r=sa(e);const n=Bs().config.get("post.maxLines");let i="crt-post-text";return n&&!t.noMaxLines&&(i+=" with-max-lines"),ys((()=>{o.current&&n&&!t.noMaxLines&&(o.current.style["-webkit-line-clamp"]=n)}),[o.current]),e.network_id===Js&&(r=r.replace(/(?:^]*>)/,""),r=r.replace(/<\/blockquote>/,"")),3===e.network_id&&Ys(e)&&e.is_embed?wi("div",{className:"crt-post-text-embed-container",children:[wi("div",{ref:o,className:i,dangerouslySetInnerHTML:{__html:r}}),wi("div",{className:"crt-post-text-embed-wrapper"})]}):wi("div",{ref:o,className:i,dangerouslySetInnerHTML:{__html:r}})}const zd=t=>{const e=t.post,o=Bs().config.get("post.showTitles"),r=Ys(e)?aa(e,"title"):e.title;return o&&void 0!==r?wi("div",{className:"crt-post-title",children:r}):null};function $d(t){const e=t.post,o=Bs();if(!Ys(e))return null;const r=ea(e),n=ca(e);return n?wi("div",{className:"crt-post-fullname",children:"nothing"!==o.config.get("post.clickAction")?wi("a",{href:r,target:"_blank","aria-label":`Visit ${n} profile`,children:n}):wi("span",{children:n})}):null}function Ud({post:t,isHidden:e}){return wi(Td,{post:t,classes:la(t,"crt-post"),style:Fd(),isHidden:e,children:[wi("div",{className:"crt-post-content",children:wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]})}),wi(Hd,{post:t}),wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t}),wi(zd,{post:t})]}),wi(gu,{post:t}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Md,{post:t})]})}function Vd({post:t,isHidden:e}){return wi(Td,{post:t,classes:la(t,"crt-post crt-post-berlin"),style:Fd(),isHidden:e,children:[wi("div",{className:"crt-post-content",children:[wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]}),wi(Hd,{post:t}),wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t})]})]}),wi(zd,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Md,{post:t,multiLine:!0})]})}function Gd({post:t,isHidden:e}){return wi(Td,{post:t,classes:la(t,"crt-post crt-post-barcelona"),style:Fd(),isHidden:e,children:[wi("div",{className:"crt-post-content",children:[wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]}),wi(Hd,{post:t}),wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t}),wi(zd,{post:t})]})]}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Md,{post:t})]})}function Kd({post:t,isHidden:e}){return wi(Td,{post:t,classes:la(t,"crt-post crt-post-london"),style:Fd(),isHidden:e,children:[wi("div",{className:"crt-post-content",children:[wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]}),wi(Hd,{post:t}),wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t}),wi(zd,{post:t})]})]}),wi(gu,{post:t}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Md,{post:t,multiLine:!0})]})}class Zd extends M{constructor(t){super(t),Object.defineProperty(this,"refFooter",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postIconRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postUserNameRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postShareButtons",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}})}render(){const t=this.props.post;let e="crt-post-text-footer";return this.props.className&&(e=this.props.className),e+=" post-footer-2",wi("div",{className:e,ref:this.refFooter,children:[wi(gl,{post:t,className:"crt-social-icon-normal",cRef:this.postIconRef}),wi(cu,{post:t,cRef:this.postShareButtons})]})}}function Yd({post:t}){return wi(Td,{post:t,classes:la(t,"crt-post crt-post-havana"),style:Fd(),children:[wi("div",{className:"crt-post-content",children:[wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]}),wi(bl,{post:t})]}),wi(Hd,{post:t}),wi("div",{className:"crt-post-header",children:[wi($d,{post:t}),wi(zd,{post:t})]}),wi(gu,{post:t}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Zd,{post:t})]})}function Xd({post:t,isHidden:e}){const o=la(t,"crt-post crt-post-helsinki"),r=Fd(),n=Bs();return"transparent"===n.config.config.colors?.footerColor&&o.push("crt-post-helsinki-transparent-footer"),wi(Td,{post:t,classes:o,style:r,isHidden:e,children:t.image?wi("div",{children:[wi("div",{className:"crt-post-content",children:wi("div",{className:"crt-image crt-hitarea crt-post-content-image",children:[wi(qd,{post:t}),wi(Id,{post:t}),wi(Sd,{post:t})]})}),wi("div",{className:"crt-post-footer-helsinki",children:[wi(bl,{post:t}),wi("div",{className:"crt-post-helsinki-user-fullname-date",children:[wi($d,{post:t}),wi(Sl,{post:t})]}),wi(gl,{post:t})]})]}):wi("div",{children:[wi("div",{className:"crt-post-content",children:[wi(bl,{post:t}),wi(zd,{post:t}),wi($d,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t})]}),wi("div",{className:"crt-post-footer-helsinki",children:[wi(Sl,{post:t}),wi(gl,{post:t})]})]})})}const Qd=_u((t=>{const e=Bs(),o=e.config.get("theme"),r=e.config.get("post.template");return"function"==typeof r?r(t.post,t,e):o==An.BERLIN?wi(Vd,{...t}):o==An.LONDON?wi(Kd,{...t}):o==An.BARCELONA?wi(Gd,{...t}):o==An.HAVANA?wi(Yd,{...t}):o==An.HELSINKI?wi(Xd,{...t}):wi(Ud,{...t})}),((t,e)=>!(!Ys(t.post)||!Ys(e.post)||e.post.post_status==e.post.post_status)));class Jd extends M{constructor(t){super(t),this.state={posts:[]}}componentDidMount(){this.props.manager.registerCol(this)}componentWillUnmount(){this.props.manager.unregisterCol(this)}allPostsAdded(){this.context.events.trigger(bi.POSTS_COL_RENDERED)}addPost(t){const e=this.state.posts;e.push(t),this.setState({posts:e})}rest(){this.setState({posts:[]})}render(t){const e={width:t.colWidth+"%",float:"left","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","-o-box-sizing":"border-box","box-sizing":"border-box"},o=this.context.config.get("post.component")||Qd,r=this.state.posts.map(((t,e)=>{const r=Xs(t);return L(o,{post:t,key:r})}));return wi("div",{style:e,className:"crt-col-"+t.i,children:r})}}function th(t){return!!t&&"string"==typeof t.message}async function eh(t,e,o=12,r){try{return await t.loadXPosts(o,r)}catch(t){th(t)?e.setMessage(t.message,"error"):e.setMessage("Feed failed to load, check browser console for more info","error")}}Object.defineProperty(Jd,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});var oh=_t?_t.isConcatSpreadable:void 0;const rh=function(t){return Ne(t)||Fe(t)||!!(oh&&t&&t[oh])};const nh=function t(e,o,r,n,i){var s=-1,a=e.length;for(r||(r=rh),i||(i=[]);++s0&&r(c)?o>1?t(c,o-1,r,n,i):ko(i,c):n||(i[i.length]=c)}return i};const ih=function(t,e){return t&&qr(t,e,no)};const sh=function(t,e){return function(o,r){if(null==o)return o;if(!ro(o))return t(o,r);for(var n=o.length,i=e?n:-1,s=Object(o);(e?i--:++ie||i&&s&&c&&!a&&!l||r&&s&&c||!o&&c||!n)return 1;if(!r&&!i&&!l&&t=a?c:c*("desc"==o[r]?-1:1)}return t.index-e.index};const hh=function(t,e,o){e=e.length?Ki(e,(function(t){return Ne(t)?function(e){return es(e,1===t.length?t[0]:t)}:t})):[jr];var r=-1;e=Ki(e,Re(Ua));var n=ch(t,(function(t,o,n){return{criteria:Ki(e,(function(e){return e(t)})),index:++r,value:t}}));return lh(n,(function(t,e){return dh(t,e,o)}))};const ph=Br((function(t,e){if(null==t)return[];var o=e.length;return o>1&&Qr(t,e[0],e[1])?e=[]:o>2&&Qr(e[0],e[1],e[2])&&(e=[e[0]]),hh(t,nh(e,1),[])}));var fh;!function(t){t[t.NOT_STARTED=0]="NOT_STARTED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",t[t.FAILED=3]="FAILED"}(fh||(fh={}));class gh{constructor(t=!0){Object.defineProperty(this,"images",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentImage",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"loading",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoLoad",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this.autoLoad=t}reg(t,e,o){this.images.push({idx:t,src:e,tag:o,state:fh.NOT_STARTED}),this.sort(),this.autoLoad&&!this.loading&&this.startLoad()}sort(){ph(this.images,[function(t){return t.idx}])}startLoad(){this.loading=!0,this.loadNext(this.currentImage)}loadNext(t){if(this.currentImage=t,this.currentImage>=this.images.length)return void(this.loading=!1);const e=this.images[this.currentImage];e.state===fh.NOT_STARTED?this.loadImage(e):this.loadNext(this.currentImage+1)}loadImage(t){t.tag.onload=()=>{t.state=fh.LOADED,Zn(t.tag,"opacity",0,1,400),this.loadImageFinished(t)},t.tag.onerror=()=>{console.log("ERROR: "+t.src),t.state=fh.FAILED,function(t){const e=Un(t);e?e.style.setProperty("display","none"):console.log("Could not find element ")}(t.tag),this.loadImageFinished(t)},t.state=fh.LOADING,t.tag.src=t.src}loadImageFinished(t){t.tag.onload=null,t.tag.onerror=null,this.loadNext(this.currentImage+1)}imageLoaded(t){}imageFailed(t){}}const mh=ci("WaterfallColManager");class bh{constructor(){Object.defineProperty(this,"cols",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"postsRendered",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"postsToAdd",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this.rebuild=eu(this.rebuild,100)}destroy(){this.alive=!1}registerCol(t){mh.log("REGISTER"),mh.log(t),this.cols.push(t),this.postsRendered.length>0&&this.rebuild()}unregisterCol(t){mh.log("UNREGISTER");for(let e=0;e0&&this.rebuild()}rebuild(){if(this.postsToAdd=nu(this.postsRendered),this.postsRendered=[],this.cols.length>0){for(let t=0;t{this.addNextPost()}))}}addPosts(t){this.postsToAdd=this.postsToAdd.concat(t),this.cols.length&&window.requestAnimationFrame((()=>{this.addNextPost()}))}addNextPost(){if(!this.alive)return;const t=this.postsToAdd.shift();if(t){const e=this.getShortestCol();this.cols[e].addPost(t),this.postsRendered.push(t),window.requestAnimationFrame((()=>{setTimeout((()=>{this.addNextPost()}),5)}))}else this.allPostsAdded()}allPostsAdded(){for(let t=0;t{for(let t=0;tawait this._loadPosts()}),Object.defineProperty(this,"loadPage",{enumerable:!0,configurable:!0,writable:!0,value:async t=>{this.reset(),this.setState({page:t}),this.posts=[];const e=await this.context.widget.feed.loadPage(t);e&&(this.posts.concat(e.posts),this.manager.reset(),window.requestAnimationFrame((()=>{this.manager.addPosts(e.posts)})))}}),this.config=t.config;const e=this.config.get("widget.postsPerPage",12);this.config.set("feed.limit",e),this.state={showPopup:!1,visible:!1,colCount:0,message:"",messageType:"",page:0}}componentDidMount(){wh.log("componentDidMount"),this.re=ru(this.updateLayout.bind(this),this.base),this.context.widget.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.widget.filterService.triggerCheckDefaultFilter()}componentWillUnmount(){this.manager.destroy(),this.re?.disconnect()}onFilterChanged(t){wh.log("onFilterChanged "+this.props.widgetId),this.reset(),this.context.widget.feed.reset(),this.context.widget.feed.setParams(t),this._loadPosts()}async _loadPosts(){wh.log("_loadPosts");const t={};"manila"===this.config.get("theme")&&(t.has_media=!0),"sydney"===this.config.get("theme")&&(t.has_embed="all");const e=await eh(this.context.widget.feed,this.context.message,this.config.get("widget.postsPerPage",12),t);e&&(this.posts=this.posts.concat(e),this.manager.addPosts(e)),this.setState({}),this.context.widget.data.previousNOfPosts=this.context.widget.data.nOfPosts,this.context.widget.data.nOfPosts=this.posts.length}reset(){this.posts=[],this.manager.reset()}updateLayout(t=!1){wh.log("updateLayout ","force:",t);const e=this.feedWidth();if(e===this.previousFeedWidth&&!t)return;this.previousFeedWidth=e;const o=this.config.get("widget.colWidth",100);let r=Math.floor(e/o);r=r<1?1:r,(r!==this.state.colCount||t)&&(this.setState({colCount:r}),(this.firstLoad||t)&&(this.firstLoad=!1,window.requestAnimationFrame((()=>{this._loadPosts()}))))}feedWidth(){const t=Xn(this.refFeed);return t<100?100:t}render(){wh.log("render");const t=[],e=100/this.state.colCount;for(let o=0;o0&&this.context.widget.data.nOfPosts;return wi("div",{className:"crt-feed-scroll",children:wi(Xu,{loader:this.loader,children:[wi(vh,{show:0===this.posts.length}),wi("div",{className:"crt-feed",ref:this.refFeed,role:o,children:t}),wi(jd,{onLoadMore:this.onLoadMore})]})})}}Object.defineProperty(yh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd}),yh.contextType=nd;const Ch=ci("Waterfall");class _h extends xd{setStyles(t){if(this.sheet)this.clearStyles();else{const t=this.config.get("feed.id");this.sheet=mi.createSheet(t)}this.addCssRules(t.cssRules),this.setCommonStyles(t)}}function xh(t){const e=t.post,o=t.classes,{tracker:r,config:n,events:i,data:s}=Bs(),a=Cs(),c=t.style??{},l=Xs(e);t.isHidden&&o.push("aria-hidden"),ys((()=>{a.current&&(t.layout.animate?(c.opacity=0,setTimeout((()=>{!async function(t,e=400){const o=Un(t);if(o)return Zn(o,"opacity",0,1,e);console.log("Could not find element ")}(a,400)}),100*t.layout.i)):c.opacity=1,hi(a.current,c),d(a.current,"true"))}),[]);const u=t=>{const o=t.target,n=o?.tagName.toLowerCase(),s=o?.getAttribute("href");"a"===n&&"#"!==s&&"javascript:;"!==s?r.track("click:link"):(t.preventDefault(),t.cancelBubble=!0,i.trigger(bi.POST_CLICK,e),i.on(`${bi.POST_CLOSED}${l}`,(()=>{setTimeout((()=>{a.current&&a.current.focus()}))})))};const d=(t,o)=>{if(!e.image&&("tokyo"===n.get("theme")||"sydney"===n.get("theme")))return;const r=t.querySelector(".crt-post-hover");if(r){const t=r.querySelectorAll("[aria-label]");for(let e=0;e{if(wl(t)){u(t);const o=Od(e,n);o&&Ad(o)}Dd(t,e)},"data-position":e.feed_position,onKeyDown:function(t){return Dd(t,e)},"aria-setsize":s.nOfPosts,children:[wi("div",{className:"crt-post-c",onClick:u,onMouseEnter:t=>{d(t.target,"false")},onMouseLeave:t=>{d(t.target,"true")},children:t.children}),wi("span",{class:"crt-hidden",onKeyDown:function(t){Ld(t,e)},tabIndex:0,"aria-label":"End of post.",role:"status"})]})})}function Ph({post:t,layout:e,isHidden:o}){return wi(xh,{post:t,classes:la(t,"crt-grid-post"),layout:e,style:Nd(),isHidden:o,children:wi("div",{children:[wi("div",{className:"crt-grid-post-content",style:"padding-bottom: 100%;",children:[t.image&&wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(Id,{post:t}),wi(Wd,{post:t}),wi(Sd,{post:t})]}),wi("div",{className:"crt-post-hover",children:wi("div",{children:[wi("div",{className:"crt-post-header",children:[wi($d,{post:t}),wi(gu,{post:t})]}),wi(zd,{post:t}),wi(Rd,{post:t}),wi(Md,{post:t})]})})]})})}const kh=t=>{if(!Ys(t.post))return null;const e=t.cRef?t.cRef:Cs(),o=t.post,r=t?.dynamicFullname&&3===o.network_id?ca(o):ra(o),n=ea(o);ys((()=>{e.current&&(e.current.style.padding="0 10px",t.width&&(e.current.style.width+=`${t.width}px`))}),[e.current]);const i=!(!t.className||!t.className.includes("hide"));return wi(B,{children:r&&wi("span",{className:`crt-post-username ${t.className}`,ref:e,children:wi("a",{href:n,target:"_blank",onClick:t=>{n&&"#"!==n||t.preventDefault()},"aria-label":"Visit "+r+" profile","aria-hidden":i,tabIndex:i?-1:0,children:r})})})};class Oh extends M{constructor(t){super(t),Object.defineProperty(this,"refFooter",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postUserImageRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postUserNameRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postDateRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"postShareButtons",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),this.state={showUsername:!1,showDate:!0,userNameWidth:0}}componentDidMount(){const t=ra(this.props.post),e=Xn(this.refFooter)-(Xn(this.postUserImageRef)+Xn(this.postShareButtons)+10);this.setState({showUsername:!!t&&e>40,userNameWidth:e})}render(){const t=this.props.post;let e="crt-post-footer";return ml(t)||(e+=" crt-post-footer-no-user-image"),this.state.showUsername||(e+=" crt-post-footer-no-username"),wi("div",{className:e,ref:this.refFooter,children:[wi(bl,{post:t,cRef:this.postUserImageRef}),wi(kh,{className:this.state.showUsername?"":"hide",post:t,cRef:this.postUserNameRef,width:this.state.userNameWidth,dynamicFullname:!0}),wi(cu,{post:t,cRef:this.postShareButtons})]})}}function Ah({post:t,layout:e,isHidden:o}){return wi(xh,{post:t,classes:la(t,"crt-grid-post crt-grid-post-new-york"),layout:e,style:Nd(),isHidden:o,children:[wi("div",{className:"crt-grid-post-content",children:[wi(Wd,{post:t}),wi(Sd,{post:t}),wi(gl,{post:t}),wi(Id,{post:t}),wi(Sl,{post:t}),wi("div",{className:"crt-post-hover",children:[wi(zd,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t})]})]}),wi(Oh,{post:t})]})}function jh({post:t,layout:e,isHidden:o}){return wi(xh,{post:t,classes:la(t,"crt-grid-post crt-grid-post-tokyo"),layout:e,style:Nd(),isHidden:o,children:[wi("div",{className:"crt-grid-post-content",style:"padding-bottom: 100%;",children:[t.image&&wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(Id,{post:t}),wi(Wd,{post:t}),wi(Sd,{post:t})]}),wi("div",{className:"crt-post-hover",children:wi("div",{children:wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t}),wi(zd,{post:t}),wi(gu,{post:t}),wi(Sl,{post:t})]})})})]})}const Sh=_u((t=>{const e=Bs().config.get("theme");return e==jn.NEW_YORK?L(Ah,{...t,key:Xs(t.post)}):e==jn.TOKYO?L(jh,{...t,key:Xs(t.post)}):wi(Ph,{post:t.post,layout:t.layout,isHidden:t.isHidden},Xs(t.post))}),((t,e)=>!(!Ys(t.post)||!Ys(e.post)||e.post.post_status==e.post.post_status))),Fh=ci("GridWidget");class Nh extends M{constructor(t){super(t),Object.defineProperty(this,"previousFeedWidth",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"refFeed",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"ro",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"postsRequired",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"onWidthChanged",{enumerable:!0,configurable:!0,writable:!0,value:()=>{this.updateLayout()}}),this.config=t.config;const e=Mi.isMobile()?this.config.get("widget.gridMobileRows",kr):this.config.get("widget.rows",2);this.state={posts:[],feedHeight:0,visible:!1,rowCount:e,colCount:1,previousPostsCount:0}}componentDidMount(){Fh.log("componentDidMount"),this.ro=ru(this.onWidthChanged,this.base),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}componentWillUnmount(){Fh.log("componentWillUnmount"),this.ro?.disconnect()}onFilterChanged(t){this.setState({posts:[]}),this.context.feed.reset(),this.context.feed.setParams(t);const e=this.postsToLoad();e&&this._loadPosts(e)}componentDidUpdate(t,e,o){Fh.log("componentDidUpdate");const r=this.refFeed.current?.firstChild?.firstChild;if(r){const t=Qn(r);Qn(this.refFeed,this.state.rowCount*t-this.context.config.get("widget.horizontalSpacing"))}const n=this.postsToLoad();n&&this._loadPosts(n)}async _loadPosts(t){const e={};"manila"===this.config.get("theme")&&(e.has_media=!0);const o=await eh(this.context.feed,this.context.message,t,e);if(o){const t=this.state.posts,e=t.length;for(let e=0;e{this.setState({rowCount:this.state.rowCount+t},(()=>{setTimeout((()=>{e()}),1e3)}))}))}postsToLoad(){return this.postsRequired=this.state.colCount*this.state.rowCount,Fh.log("POSTS _ REQUIRED: "+this.postsRequired+" "+this.state.posts.length+this.context.feed.hasMorePosts()),this.postsRequired>this.state.posts.length&&!this.context.feed.loading&&this.context.feed.hasMorePosts()?this.postsRequired-this.state.posts.length:0}getColsCount(){const t=this.feedWidth();this.previousFeedWidth=t;const e=Math.floor(t/(this.context.config.get("post.minWidth")+2*this.context.config.get("widget.verticalSpacing")));return e<1?1:e}updateLayout(t=!1){Fh.log("updateLayout");const e=this.feedWidth();if(e===this.previousFeedWidth&&!t)return;this.previousFeedWidth=e;const o=this.getColsCount();this.setState({colCount:o})}feedWidth(){const t=Xn(this.refFeed);return t<100?100:t}render(){Fh.log("render");const t=this.state.colCount,e=this.feedWidth()/t,o=this.state.rowCount*e,r=this.state.posts.map(((t,e)=>{const o=this.state.posts.length-this.state.previousPostsCount,r=e-(this.state.posts.length-o);return wi(Sh,{post:t,layout:{animate:!0,i:r>0?r:0}},Xs(t))})),n={height:o,overflow:"hidden"},i=this.state.posts.length?"feed":"presentation";return wi("div",{className:"crt-grid-col"+t,children:[wi("div",{className:"crt-feed-window",style:n,ref:this.refFeed,role:i,children:wi("div",{className:"crt-feed",children:r})}),wi(jd,{onLoadMore:()=>this.onLoadMore()})]})}}Object.defineProperty(Nh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});const Eh=ci("Grid");const Dh=function(t,e,o){for(var r=-1,n=t.length;++re};const Th=function(t){return t&&t.length?Dh(t,jr,Lh):void 0};const Bh=function(t,e,o){var r=-1,n=t.length;e<0&&(e=-e>n?0:n+e),(o=o>n?n:o)<0&&(o+=n),n=e>o?0:o-e>>>0,e>>>=0;for(var i=Array(n);++r{Wh.log("onDimsChanged");this.feedWidth()!==this.stageWidth&&this.forceUpdate()}})}componentWillMount(){this.config=this.context.config,this.context.widget.events.trigger("post:image:loaded")}componentDidMount(){Wh.log("componentDidMount"),this.ro=ru(this.onDimsChanged,this.base,500),this.calcSizes(!0),this.updateHeight(!0);const t=eu((()=>{this.updateHeight()}),500);this.context.widget.events.on("post:image:loaded",t);this.config.get("widget.lazyLoadType","none")===Pr?this.context.widget.events.on(bi.WIDGET_VISIBLE,(t=>{this.runAutoplay=!0,this.autoPlayStart()})):this.runAutoplay=!0}componentDidUpdate(t,e,o){Wh.log("componentDidUpdate"),this.runAutoplay&&this.autoPlayStart(),this.updateHeight(!0)}componentWillUnmount(){this.ro?.disconnect()}updateHeight(t=!0){Wh.log("updateHeight");const e=this.refSlider.current?.children;if(e&&e.length>0){const o=this.getVisiblePanes(e),r=this.getMaxHeight(o);if(Qn(this.refStage)!==r&&(t?Zn(this.refStage,"height",Qn(this.refStage),r,300):Qn(this.refStage,r)),this.config.get("post.matchHeights")&&e.length>this.panesVisible){Wh.log(`maxHeight: ${r}`);for(let o=0;o{let r=0;for(let e=0;e0){const t=this.config.get("widget.panesVisible");"number"==typeof t&&t>0?(this.panesVisible=t,this.paneWidth=e/this.panesVisible):(this.panesVisible=Ih(e,this.config.get("post.minWidth",100)),this.paneWidth=e/this.panesVisible),Wh.log("newStageWidth: "+e),Wh.log("this.panesVisible: "+this.panesVisible),Wh.log("this.paneWidth: "+this.paneWidth),this.stageWidth=e}}canRotate(){return this.panesLength>this.panesVisible}setSliderX(t){Wh.log(`setSliderX ${t}`),Yn(this.refSlider,{transform:"translate3d("+t+"px, 0px, 0px)"})}setSliderWidth(){const t=this.canRotate()?this.paneWidth*(3*this.panesVisible):this.stageWidth;Xn(this.refSlider,t)}async next(){if(!this._moving){const t=this.config.get("widget.moveAmount"),e=t||this.panesVisible;await this.move(e,!0)}}async prev(){if(!this._moving){const t=this.config.get("widget.moveAmount"),e=t||this.panesVisible;await this.move(0-e,!0)}}async move(t,e){Wh.log("move currentPane:"+this._currentPane+" moveAmt:"+t+" noAnimate:"+e);const o=this._currentPane;let r=this._currentPane+t;if(this._moving=!0,this.refSlider.current?.classList.add("moving"),this.config.get("widget.infinite")?r<0?r=this.panesLength+r:r>this.panesLength&&(r-=this.panesLength):(r<0?r=0:r>this.panesLength-this.panesVisible&&(r=this.panesLength-this.panesVisible),t=r-o),this._currentPane=r,t){let o=0;if(this.canRotate()&&(o=0-this.panesVisible*this.paneWidth-t*this.paneWidth),e){const t=this.getX(),e=this.config.get("widget.duration");await function(t,e,o,r){return new Promise((n=>{const i=r/1e3,s=Un(t);s&&(s.style.transform="translate3d("+e+"px, 0px, 0px)",s.style.transition="-webkit-transform "+i+"s",s.style.transform="translate3d("+o+"px, 0px, 0px)",window.setTimeout((()=>{s.style.transition="",s.style.transform="translate3d("+o+"px, 0px, 0px)",n()}),r+10))}))}(this.refSlider,t,o,e),this.moveComplete()}else ei(this.refSlider,"crt-animate-transform"),this.setSliderX(o),this.moveComplete()}else this._moving=!1,this.refSlider.current?.classList.remove("moving")}getX(){return this.canRotate()?0-this.panesVisible*this.paneWidth:0}moveComplete(){Wh.log("moveComplete"),this.alive&&(this._moving=!1,this.refSlider.current?.classList.remove("moving"),this.props.onMoveCompleted?.(),this.forceUpdate())}autoPlayStart(){Wh.log("autoplay start"),this.context.config.get("widget.autoPlay")&&(window.clearTimeout(this.autoPlayTimeout),this.canRotate()&&(this.autoPlayTimeout=window.setTimeout((()=>{const t=document.querySelectorAll(".crt-carousel-stage *:hover,.crt-carousel-stage *:focus");Wh.log("FOCUSED "+t.length),t.length?this.autoPlayStart():this.next()}),this.context.config.get("widget.speed"))))}render(){Wh.log("render pageCount:"+this.props.paneCount);const t=this.previousPaneCount!=this.props.paneCount;this.calcSizes(t);const e=[];let o=!1;if(this.props.paneCount){this.panesLength=this.props.paneCount;let t=0,r=0;this.panesLength>this.panesVisible?(t=this._currentPane-this.panesVisible,r=3*this.panesVisible):(o=!0,r=this.panesLength);for(let o=0;o=this._currentPane&&r{wl(t)&&(e?await this.next():await this.prev(),setTimeout((()=>{this.props.onMoveCompleted||function(t){const e=document.querySelectorAll("[data-position]:not(.aria-hidden)");!!e.length&&(t.preventDefault(),e[0].focus())}(t)}),500))};return wi("div",{className:n.join(" "),children:[wi("div",{className:"crt-carousel-stage",ref:this.refStage,style:"overflow:hidden;",children:wi("div",{className:"crt-carousel-slider",ref:this.refSlider,children:e})}),!!e.length&&wi("button",{onClick:()=>this.prev(),onKeyDown:t=>i(t,!1),type:"button","data-role":"button",className:"crt-panel-prev crt-panel-arrow","aria-label":"Move to previous slide",role:"button","aria-disabled":"false",tabIndex:0,children:wi(Zc,{})}),!!e.length&&wi("button",{onClick:()=>this.next(),onKeyDown:t=>i(t),type:"button","data-role":"button",className:"crt-panel-next crt-panel-arrow","aria-label":"Move to next slide",role:"button","aria-disabled":"false",tabIndex:0,children:wi(Kc,{})})]})}}Object.defineProperty(Rh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});const zh=ci("CarouselWidget");class $h extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"loader",{enumerable:!0,configurable:!0,writable:!0,value:new gh}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),this.config=t.config,this.createPane=this.createPane.bind(this),this.setState({posts:[],paneCount:0})}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){zh.log("onFilterChanged "+this.props.widgetId),this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(){const t={};"manila"===this.config.get("theme")&&(t.has_media=!0),await eh(this.context.feed,this.context.message,25,t),this.setState({posts:this.context.feed._posts,paneCount:this.context.feed._posts.length})}createPane(t,e,o){zh.log("createPane "+t);let r=t;t<0?r=this.context.feed.numPosts()+t:t>this.context.feed.numPosts()-1&&(r=t%this.context.feed.numPosts());const n=this.context.feed.postAtIndex(r);return wi(Qd,{post:n,isHidden:o})}render(){return zh.log("render "+this.state.paneCount),wi(Xu,{loader:this.loader,children:wi(Rh,{createPane:this.createPane,paneCount:this.state.paneCount})})}}Object.defineProperty($h,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});const Uh=ci("Carousel");const Vh=ci("GridCarouselWidget");class Gh extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),Object.defineProperty(this,"createPane",{enumerable:!0,configurable:!0,writable:!0,value:(t,e,o)=>{const r=[],n=this.context.feed.numPosts();let i=this.config.get("widget.rows");nn-1&&(s%=n);const a=this.context.feed.postAtIndex(s);if(a){const e={animate:!1,i:t};r.push(wi(Sh,{post:a,layout:e,isHidden:o}))}}return r}}),this.config=t.config,this.config.set("feed.limit",50),this.setState({posts:[],paneCount:0})}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(){const t={};"manila"===this.config.get("theme")&&(t.has_media=!0);if(await eh(this.context.feed,this.context.message,25,t)){const t=this.config.get("widget.rows"),e=Math.ceil(this.context.feed.numPosts()/t);this.setState({posts:this.context.feed._feed,paneCount:e})}}render(){return function(t){Vh.log("GridCarouselWidget->"+t)}("render "+this.state.paneCount),wi("div",{className:"grid-carouse-feed",tabIndex:0,"aria-label":"There are "+this.state.posts.length+" posts in the feed",role:"feed",children:wi(Rh,{createPane:this.createPane,paneCount:this.state.paneCount})})}}Object.defineProperty(Gh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});const Kh=ci("PanelWidget");class Zh extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"loader",{enumerable:!0,configurable:!0,writable:!0,value:new gh}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts(25)}),500)}),this.config=t.config,this.config.set("feed.limit",50),this.createPane=this.createPane.bind(this),this.setState({posts:[],paneCount:0})}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(t){const e={};"manila"===this.config.get("theme")&&(e.has_media=!0),await eh(this.context.feed,this.context.message,t,e),this.setState({posts:this.context.feed._posts,paneCount:this.context.feed._posts.length})}createPane(t,e,o){let r=t;t<0?r=this.context.feed.numPosts()+t:t>this.context.feed.numPosts()-1&&(r=t%this.context.feed.numPosts());const n=this.context.feed.postAtIndex(r);return wi(Qd,{post:n,isHidden:o})}render(){return function(t){Kh.log("PanelWidget->"+t)}("render "+this.state.paneCount),wi(Xu,{loader:this.loader,children:wi(Rh,{createPane:this.createPane,paneCount:this.state.paneCount})})}}Object.defineProperty(Zh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class Yh extends M{constructor(t){super(t)}postStyles(){const t={},e=this.context.config.get("widget.verticalSpacing");return null!=e&&(t.marginBottom=e+"px"),t}render(){const t=this.props.post;return wi(Td,{post:t,classes:la(t,"crt-list-post"),style:this.postStyles(),children:wi("div",{className:"crt-post-content",children:[wi("div",{className:"crt-list-post-image",children:wi("div",{children:[wi("img",{className:"crt-post-content-image",src:t.image,alt:""}),t.image&&wi(gl,{post:t}),wi(Id,{post:t})]})}),wi("div",{className:"crt-list-post-text",children:[wi($d,{post:t}),wi(gu,{post:t}),wi("div",{className:"crt-list-post-text-wrap",children:[wi(zd,{post:t}),wi(Rd,{post:t}),wi(Bd,{post:t})]}),wi(Md,{post:t})]})]})})}}Object.defineProperty(Yh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});class Xh extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onLoadMore",{enumerable:!0,configurable:!0,writable:!0,value:async()=>await this._loadPosts()}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),this.config=t.config,this.config.set("feed.limit",this.config.get("widget.postsPerPage",12)),this.setState({posts:[]})}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[]}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(){const t=await eh(this.context.feed,this.context.message,this.config.get("widget.postsPerPage",12));t&&await this.setState({posts:this.state.posts.concat(t)}),this.context.widget.data.previousNOfPosts=this.context.widget.data.nOfPosts,this.context.widget.data.nOfPosts=this.state.posts.length}render(){const t=this.state.posts.map((t=>{const e=Qu(t);return wi(Yh,{post:t},e)}));return wi("div",{children:[wi("div",{className:"crt-feed",role:this.state.posts.length?"feed":"presentation",children:t}),wi(jd,{onLoadMore:this.onLoadMore})]})}}Object.defineProperty(Xh,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class Qh extends xd{setStyles(t){if(this.sheet)this.clearStyles();else{const t=this.config.get("feed.id");this.sheet=mi.createSheet(t)}this.addCssRules(t.cssRules),this.setCommonStyles(t)}}function Jh(t){if(!Ys(t.post))return null;const e=t.post,o=ni((()=>{iu(e);xs(Ts).tracker.track("share:twitter")})),r=ni((()=>{su(e);xs(Ts).tracker.track("share:twitter")}));return wi("div",{className:"crt-post-text-footer",children:[wi("a",{className:"crt-share-facebook",onClick:o,tabIndex:0,"aria-label":"Click to share to facebook",children:wi(gc,{})}),wi(Sl,{post:e}),wi("a",{className:"crt-share-twitter",onClick:r,tabIndex:0,"aria-label":"Click to share to twitter",children:wi(dc,{})})]})}function tp({post:t,cRef:e}){const o=sa(t),r=Bs().config.get("post.maxLines"),[n,i]=vs("crt-post-text"),s=e||Cs();return ys((()=>{r&&(i("crt-post-text with-max-lines"),s.current&&(s.current.style["-webkit-line-clamp"]=r))}),[s.current]),wi("div",{className:n,ref:s,dangerouslySetInnerHTML:{__html:o}})}class ep extends M{constructor(t){super(t),Object.defineProperty(this,"containerRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),this.setAriaHidden=this.setAriaHidden.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.containerRef={current:null}}setAriaHidden(t,e){const o=t.querySelector(".crt-post-hover");if(o){const t=o.querySelectorAll("[aria-label]");for(let o=0;othis.adClick,tabIndex:0,"aria-label":n,role:"article",onKeyPress:this.adClick,"data-position":t.feed_position,children:[wi("div",{className:"crt-mosaic-post-content",style:"padding-bottom: 100%;",children:[wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(Wd,{post:t})]}),wi("div",{className:"crt-post-hover",children:wi("div",{children:[wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi(zd,{post:t})]}),wi(Rd,{post:t})]})})]}),wi("span",{class:"crt-hidden",onKeyDown:this.onTabPressNextPost,tabIndex:0,"aria-label":"End of post.",role:"status"})]})}}Object.defineProperty(np,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});const ip=t=>{const e=Cs(t);return ys((()=>{e.current=t})),e};const sp=ci("MosaicWidget");function ap(t,e,o,r){const n=[];let i=0,s=!1;return t._feedCurrentIdx=0,function(t,e,o){let r=0,n=rp(t,r);for(;n.y+1<=e;){if(n.y+n.h>e){if(n.w=1,n.h=1,!o(n))break;const t={...n};if(t.x+=1,!o(t))break}else if(!o(n))break;r++,n=rp(t,r)}}(e,r,(e=>{const r=t.nextPost();if(!r)return s=!0,!1;n.push({post:r,layout:{y:e.y*o,x:e.x*o,w:e.w*o,h:e.h*o}});const a=e.y*o+e.h*o;return a>i&&(i=a),!0})),{newPostLayouts:n,maxY:i,allPostsRender:s}}function cp(t){const e=Cs(null),[o,r]=vs(0),[n,i]=vs(0),[s,a]=vs(!1),[c,l]=vs([]),u=id(),{onFilterChanged:d}=function(){const t=id();let e=ip(void 0);return ys((()=>(t.filterService.registerOnFilterChanged((t=>{e.current&&e.current(t)})),()=>{t.filterService.clearOnFilterChanged()})),[]),{onFilterChanged(t){e=ip(t)}}}(),h=u.config.get("widget.rows",3),[p,f]=vs(h),g=eu(((t=!1)=>{!async function(t=!1){sp.log("updateLayout");const o=Xn(e)||100;if(!p||o===n&&!t)return;i(o);const s=Ih(o,u.config.get("post.minWidth",100)),c=function(t){let e=op[0];for(let o=1;o{u.filterService.triggerCheckDefaultFilter()}),[]),((t,e)=>{const o=ip(t);ys((()=>{const t=new ou((()=>{o.current()}),e.current);return()=>{t.disconnect()}}),[])})((()=>{g(!1)}),e);const m=function(t){const e=t.map((t=>"ad"===t.post.type?wi(np,{ad:t.post,layout:t.layout},t.post.slug):wi(ep,{post:t.post,layout:t.layout},t.post.id)));return u.widget.data.previousNOfPosts=u.widget.data.nOfPosts,u.widget.data.nOfPosts=t.length,e}(c);ys((()=>{g(!0)}),[p]),d((t=>{u.feed.reset(),u.feed.setParams(t),p==h?g(!0):f(h)}));const b={height:o,overflow:"hidden"},v=m.length?"feed":"presentation";return wi("div",{className:"crt-feed-window",ref:e,children:[wi(vh,{show:!0}),wi("div",{className:"crt-feed",style:b,role:v,children:m}),wi(jd,{onLoadMore:async function(){const t=u.config.get("widget.rows",3);f(p+t),await new Promise(((t,e)=>{setTimeout((()=>{t()}),1e3)}))},showLoadMore:s})]})}class lp extends xd{setStyles(t){this.createStyleSheet(),this.setCommonStyles(t),this.addCssRules(t.cssRules)}}class up extends M{constructor(){super(...arguments),Object.defineProperty(this,"textContainerRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"textRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}})}componentDidMount(){Qn(this.textContainerRef)>Qn(this.textRef)&&this.setState({textContainerClasses:"crt-post-centered-text middle-text"})}render(){const t=this.props.post;let e=sa(t);t.network_id===Js&&(e=e.replace(/(?:^]*>)/,""),e=e.replace(/<\/blockquote>/,""));const o=Bs().config.get("post.maxLines");let r="crt-post-text",n="";return o&&(r+=" with-max-lines",n="-webkit-line-clamp: "+o+"; "),wi("div",{className:this.state.textContainerClasses,ref:this.textContainerRef,children:wi("div",{children:[this.props.withTitle&&wi(zd,{post:t}),wi(gu,{post:t}),wi("div",{className:r,style:n,ref:this.textRef,dangerouslySetInnerHTML:{__html:e}})]})})}}class dp extends M{constructor(t){super(t)}postOnlyText(t,e){return wi("div",{className:"crt-post-only-text",style:e,children:[wi(Sl,{post:t}),wi(bl,{post:t}),wi($d,{post:t}),wi(up,{post:t}),wi(Zd,{post:t})]})}render(){const t=this.props.post,e=this.props.layout,o={position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,display:"none"===e.display?"none":"block",paddingLeft:this.context.config.get("widget.horizontalSpacing",20)/2,paddingRight:this.context.config.get("widget.horizontalSpacing",20)/2,paddingBottom:this.context.config.get("widget.verticalSpacing",20)},r=e.w>e.h?(e.w-20)/2:e.w-20,n=e.h>e.w?(e.h-20)/2:e.h-20;let i={position:"absolute",width:r,height:n},s={position:"absolute",width:r,height:n};switch(e.position){case"left":i={...i,left:0},s={...s,right:0,top:0},t.image||(s.width=2*s.width);break;case"right":i={...i,right:0},s={...s,left:0,top:0},t.image||(s.width=2*s.width);break;case"top":i={...i,top:0},s={...s,bottom:0},t.image||(s.height=2*s.height);break;case"bottom":i={...i,bottom:0},s={...s,top:0},t.image||(s.height=2*s.height);break;default:i={...i,left:0},s={...s,right:0,top:0}}return wi(Td,{post:t,classes:la(t,"crt-post crt-tetris-post "+(e.w>e.h?"crt-tetris-horizontal":"crt-tetris-vertical")),style:o,children:t.image?wi("div",{className:"crt-tetris-post-content",children:[wi("div",{className:"crt-tetris-post-image",style:i,children:[wi(Wd,{post:t}),t.video&&wi(Sd,{post:t})]}),this.postOnlyText(t,s)]}):this.postOnlyText(t,s)})}}Object.defineProperty(dp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});const hp=[{cols:1,rows:2,layouts:[{x:0,y:0,w:1,h:2,position:"top"}]},{cols:2,rows:2,layouts:[{x:0,y:0,w:2,h:1,position:"left"},{x:0,y:1,w:2,h:1,position:"right"}]},{cols:3,rows:4,layouts:[{x:0,y:0,w:2,h:1,position:"left"},{x:0,y:1,w:2,h:1,position:"right"},{x:2,y:0,w:1,h:2,position:"top"},{x:0,y:2,w:1,h:2,position:"bottom"},{x:1,y:2,w:2,h:1,position:"right"},{x:1,y:3,w:2,h:1,position:"left"}]},{cols:4,rows:9,layouts:[{x:0,y:0,w:2,h:1,position:"left"},{x:0,y:1,w:2,h:1,position:"right"},{x:2,y:0,w:1,h:2,position:"top"},{x:3,y:0,w:1,h:2,position:"bottom"},{x:0,y:2,w:1,h:2,position:"top"},{x:1,y:2,w:2,h:1,position:"left"},{x:3,y:2,w:1,h:2,position:"top"},{x:1,y:3,w:1,h:2,position:"top"},{x:2,y:3,w:1,h:2,position:"bottom"},{x:0,y:4,w:1,h:2,position:"bottom"},{x:1,y:5,w:2,h:1,position:"left"},{x:3,y:4,w:1,h:2,position:"bottom"},{x:0,y:6,w:2,h:1,position:"right"},{x:0,y:7,w:1,h:2,position:"bottom"},{x:2,y:6,w:1,h:2,position:"bottom"},{x:3,y:6,w:1,h:2,position:"top"},{x:1,y:7,w:1,h:2,position:"bottom"},{x:2,y:8,w:2,h:1,position:"left"}]},{cols:6,rows:7,layouts:[{x:0,y:0,w:2,h:1,position:"left"},{x:0,y:1,w:2,h:1,position:"right"},{x:2,y:0,w:1,h:2,position:"top"},{x:3,y:0,w:1,h:2,position:"bottom"},{x:4,y:0,w:2,h:1,position:"left"},{x:4,y:1,w:2,h:1,position:"right"},{x:0,y:2,w:1,h:2,position:"top"},{x:1,y:2,w:2,h:1,position:"left"},{x:3,y:2,w:2,h:1,position:"right"},{x:5,y:2,w:1,h:2,position:"top"},{x:1,y:3,w:1,h:2,position:"top"},{x:2,y:3,w:1,h:2,position:"bottom"},{x:3,y:3,w:2,h:1,position:"left"},{x:0,y:4,w:1,h:2,position:"bottom"},{x:1,y:5,w:2,h:1,position:"left"},{x:3,y:4,w:1,h:2,position:"top"},{x:4,y:4,w:2,h:1,position:"right"},{x:4,y:5,w:2,h:1,position:"left"},{x:0,y:6,w:2,h:1,position:"left"},{x:0,y:7,w:2,h:1,position:"right"},{x:2,y:6,w:1,h:2,position:"top"},{x:3,y:6,w:1,h:2,position:"bottom"},{x:4,y:6,w:2,h:1,position:"right"},{x:4,y:7,w:2,h:1,position:"left"}]}];class pp extends M{constructor(t){super(t),Object.defineProperty(this,"refPost",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}})}adClick(){const t=this.props.ad;"goto-url"==t.click_action&&window.open(t.url,"_blank")}postOnlyText(t,e){return wi("div",{className:"crt-post-only-text",style:e,children:[wi(up,{post:t,withTitle:!0}),wi("div",{className:"crt-post-text-footer",children:[wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(cu,{post:t})]})]})}render(){const t=this.props.ad,e=this.props.layout,o={position:"absolute",left:e.x,top:e.y,width:e.w,height:e.h,display:"none"===e.display?"none":"block",paddingLeft:this.context.config.get("widget.horizontalSpacing")/2,paddingRight:this.context.config.get("widget.horizontalSpacing")/2,paddingBottom:this.context.config.get("widget.verticalSpacing",0)},r=e.w>e.h?(e.w-20)/2:e.w-20,n=e.h>e.w?(e.h-20)/2:e.h-20;let i={position:"absolute",width:r,height:n},s={position:"absolute",width:r,height:n};switch(e.position){case"left":default:i={...i,left:0},s={...s,right:0,top:0};break;case"right":i={...i,right:0},s={...s,left:0,top:0};break;case"top":i={...i,top:0},s={...s,bottom:0};break;case"bottom":i={...i,bottom:0},s={...s,top:0}}return wi(Td,{post:t,classes:ua(t,"crt-post crt-tetris-post "+(e.w>e.h?"crt-tetris-horizontal":"crt-tetris-vertical")),style:o,children:wi("div",{className:"crt-post-c",ref:this.refPost,onClick:()=>this.adClick(),children:t.image?wi("div",{className:"crt-tetris-post-content",children:[wi("div",{className:"crt-tetris-post-image",style:i,children:[wi(Wd,{post:t}),t.video&&wi(Sd,{post:t})]}),this.postOnlyText(t,s)]}):this.postOnlyText(t,s)})})}}Object.defineProperty(pp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});class fp extends M{constructor(t){super(t),Object.defineProperty(this,"el",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"ro",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"previousFeedWidth",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"previousMax",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu(((t=25)=>{this._loadPosts(t)}),500)}),this.config=t.config,this.config.get("post.minWidth")<100&&this.config.set("post.minWidth",100),this.state={posts:[],feedHeight:0,visible:!1}}componentDidMount(){requestAnimationFrame((()=>{this.updateLayout(!0)})),this.ro=ru(this.updateLayout.bind(this),this.base),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter(),this.debouncedLoadPost()}componentWillUnmount(){this.ro?.disconnect()}onFilterChanged(t){this.setState({posts:[]}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async onLoadMore(){await this.debouncedLoadPost(26)}async _loadPosts(t){const e=await eh(this.context.feed,this.context.message,t,{image_width:1080});if(e){const t=this.state.posts;for(let o=0;oi&&(i=o.layout.y+o.layout.h)}}for(let t=a;t{if("none"!==t.layout.display)return"ad"===t.post.type?wi(pp,{ad:t.post,layout:t.layout},t.post.slug):wi(dp,{post:t.post,layout:t.layout},t.post.id)})),o={height:this.state.feedHeight},r=this.state.posts.length?"feed":"presentation";return wi("div",{className:"crt-feed-window",children:[wi("div",{ref:this.el,className:"crt-feed",style:o,role:r,children:e}),wi(jd,{onLoadMore:()=>this.onLoadMore()})]})}}Object.defineProperty(fp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class gp extends M{constructor(t){super(t)}render(){const t=this.props.post;return wi(Td,{post:t,classes:la(t,"crt-post crt-wall-post"),children:t.image?wi("div",{children:[wi("div",{className:"crt-wall-post-content",children:wi("div",{children:[wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(qd,{post:t}),t.video&&wi(Sd,{post:t})]})}),wi("div",{className:"crt-post-hover",children:[wi("div",{className:"crt-post-header",children:[wi(gl,{post:t}),wi($d,{post:t})]}),wi(Rd,{post:t}),wi(Bd,{post:t}),wi(Md,{post:t})]})]}):wi("div",{className:"crt-post-only-text",children:[wi(bl,{post:t}),wi($d,{post:t}),wi(tp,{post:t}),wi(Jh,{post:t})]})})}}class mp extends M{constructor(t){super(t),Object.defineProperty(this,"refPost",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}})}adClick(){const t=this.props.ad;"goto-url"==t.click_action&&window.open(t.url,"_blank")}render(){const t=this.props.ad;return wi("div",{className:ua(t,"crt-post crt-wall-post").join(" "),"data-post":t.slug,children:wi("div",{className:"crt-post-c",ref:this.refPost,onClick:()=>this.adClick(),children:[wi("div",{className:"crt-wall-post-content",children:[wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(qd,{post:t})]}),wi("div",{className:"crt-post-hover",children:wi("div",{children:[wi("div",{className:"crt-post-header",children:wi(gl,{post:t})}),wi(Rd,{post:t})]})})]})})}}class bp extends M{constructor(t){super(t),this.state={posts:[]}}componentDidMount(){this.props.manager.registerCol(this)}componentWillUnmount(){this.props.manager.unregisterCol(this)}addPost(t){const e=this.state.posts;e.push(t),this.setState({posts:e})}rest(){this.setState({posts:[]})}renderPost(t){return"ad"===t.type?wi(mp,{ad:t},t.slug):wi(gp,{post:t},t.id)}render(t){const e={width:t.colWidth+"%",float:"left","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","-o-box-sizing":"border-box","box-sizing":"border-box"},o=this.state.posts.map(((t,e)=>this.renderPost(t)));return wi("div",{style:e,className:"crt-col-"+t.i,children:o})}}Object.defineProperty(bp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});const vp=ci("WallColManager");class wp{constructor(){Object.defineProperty(this,"cols",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"postsRendered",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"postsToAdd",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"alive",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this.rebuild=eu(this.rebuild,100)}destroy(){this.alive=!1}registerCol(t){vp.log("REGISTER"),vp.log(t),this.cols.push(t),this.postsRendered.length>0&&this.rebuild()}unregisterCol(t){vp.log("UNREGISTER");for(let e=0;e0&&this.rebuild()}rebuild(){if(this.postsToAdd=nu(this.postsRendered),this.postsRendered=[],this.cols.length>0){for(let t=0;t{this.addNextPost()}))}}addPosts(t){this.postsToAdd=this.postsToAdd.concat(t),this.addNextPost()}addNextPost(){if(!this.alive)return;const t=this.postsToAdd.shift();if(t){const e=this.getShortestCol();this.cols[e].addPost(t),this.postsRendered.push(t),window.requestAnimationFrame((()=>{this.addNextPost()}))}}getShortestCol(){let t=0,e=Qn(this.cols[0].base);for(let o=1;o{for(let t=0;t{yp.log("onMoreClick"),this._loadPosts()}}),Object.defineProperty(this,"loadPage",{enumerable:!0,configurable:!0,writable:!0,value:async t=>{this.reset(),this.setState({page:t}),this.posts=[];const e=await this.context.feed.loadPage(t);e&&(this.posts.concat(e.posts),this.manager.reset(),window.requestAnimationFrame((()=>{this.manager.addPosts(e.posts)})))}}),this.config=t.config;const e=this.config.get("widget.postsPerPage",12);this.config.set("feed.limit",e),this.state={showPopup:!1,visible:!1,colCount:0,message:"",messageType:"",page:0}}componentDidMount(){yp.log("componentDidMount"),this.re=ru(this.updateLayout.bind(this),this.base),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}componentWillUnmount(){this.manager.destroy(),this.re?.disconnect()}onFilterChanged(t){yp.log("onFilterChanged "+this.props.widgetId),this.reset(),this.context.feed.reset(),this.context.feed.setParams(t),this._loadPosts()}async _loadPosts(){yp.log("_loadPosts");const t=await eh(this.context.feed,this.context.message,this.config.get("widget.postsPerPage",12));t&&(this.posts=this.posts.concat(t),this.manager.addPosts(t))}reset(){this.posts=[],this.manager.reset()}updateLayout(){yp.log("updateLayout");const t=this.feedWidth();if(t===this.previousFeedWidth)return;this.previousFeedWidth=t;const e=this.config.get("widget.colWidth",100);let o=Math.floor(t/e);o=o<1?1:o,o!==this.state.colCount&&(yp.log(" colCount="+o),this.setState({colCount:o}),this.firstLoad&&(this.firstLoad=!1,window.requestAnimationFrame((()=>{this._loadPosts()}))))}feedWidth(){const t=Xn(this.refFeed);return t<100?100:t}render(){yp.log("render");const t=[],e=100/this.state.colCount;for(let o=0;oQn(this.textRef)&&this.setState({textContainerClasses:"crt-tetris-text-container tetris-middle-text"})}render(){const{post:t}=this.props,e=na(t),o=la(t,"crt-post crt-select-post ");return wi(Td,{post:t,classes:o,children:wi("div",{className:o.join(" "),children:wi("div",{className:"crt-select-post-content",children:[t.image&&wi("div",{className:"crt-select-post-image-container",children:[wi("div",{tabIndex:0,className:"crt-select-post-image","aria-label":e,style:{backgroundImage:`url(${t.image})`}}),t.video&&wi(Sd,{post:t,playable:!0})]}),wi("div",{className:"crt-select-post-body-container",children:wi("div",{className:"crt-select-post-body",children:[wi(Sl,{post:t}),wi("div",{className:"crt-select-post-center-body",children:wi("div",{className:"center-body",children:[wi(bl,{post:t}),wi($d,{post:t}),wi(zd,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t})]})}),wi(Zd,{className:"crt-select-post-text-footer",post:t})]})})]})})})}}class kp extends M{constructor(t){super(t),Object.defineProperty(this,"refEl",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}})}render(){const t=this.props.post,e=this.props.selectedPost,o=Qu(t);let r="crt-select-post-list-item";if(!t.image)return wi("div",{className:"crt-post",children:wi("div",{className:r,onClick:this.props.onClick,children:"no image"},o)});r+=" has-image";const n={backgroundImage:`url(${t.image})`};let i=!1;e&&t&&(Ys(e)&&Ys(t)&&e.id===t.id?i=!0:Ys(e)||Ys(t)||e.slug!==t.slug||(i=!0));const s=`Post ${t.feed_position} image, Click to check the detailed post`;return wi("div",{className:"crt-post "+(i?"selected":""),"data-select-position":t.feed_position,children:wi("div",{className:"crt-post-c",children:wi("button",{onClick:this.props.onClick,tabIndex:0,children:wi("span",{role:"img",className:r,style:n,"aria-label":s},o)})})})}}class Op extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),this.config=t.config,this.createPane=this.createPane.bind(this),this.setState({posts:[],paneCount:0,selectedPost:void 0})}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(){await eh(this.context.feed,this.context.message,25,{has_media:!0,image_width:1080}),this.setState({posts:this.context.feed._feed,paneCount:this.context.feed.numPosts(),selectedPost:this.context.feed._posts[0]})}createPane(t,e){let o=t;t<0?o=this.context.feed.numPosts()+t:t>this.context.feed.numPosts()-1&&(o=t%this.context.feed.numPosts());const r=this.context.feed.postAtIndex(o);return wi(kp,{post:r,selectedPost:this.state.selectedPost,onClick:async()=>{await this.setState((()=>({selectedPost:r}))),setTimeout((()=>{const t=document.querySelector(".crt-selected-post article");t&&t?.focus()}),500)}})}onMoveCompleted(){setTimeout((()=>{const t=document.querySelectorAll('.crt-carousel-pane:not([aria-hidden="true"]) button');t.length&&t[0].focus()}),500)}render(){return wi("div",{children:wi("div",{className:"crt-feed",children:[wi("div",{className:"crt-selected-post",children:this.state.selectedPost&&wi(Pp,{post:this.state.selectedPost})}),wi("div",{className:"crt-select-post-list",children:wi(Rh,{createPane:this.createPane,paneCount:this.state.paneCount,onMoveCompleted:this.onMoveCompleted})})]})})}}Object.defineProperty(Op,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class Ap extends xd{setStyles(t){this.createStyleSheet(),this.addCssRules(t.cssRules)}}function jp(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"17",height:"34",viewBox:"0 0 17 34",fill:"none"},e),["\n ",L("path",{d:"M16 1L2 17L16 33",stroke:"currentColor","stroke-width":"2",fill:"none"},[]),"\n"])}function Sp(t){t.styles;var e=Object.assign({},t);return delete e.styles,L("svg",Object.assign({width:"17",height:"34",viewBox:"0 0 17 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),["\n ",L("path",{d:"M0.999999 33L15 17L1 0.999999",stroke:"currentColor","stroke-width":"2",fill:"none"},[]),"\n"])}class Fp extends M{constructor(t){super(t)}render(){const t=this.props.post;if(!t)return null;let e="crt-stack-post-content";return t.network_name&&(e+=` crt-stack-post-${t.network_name.toLowerCase()}`),wi("div",{className:e,children:wi("div",{className:"crt-stack-post-body",children:[wi(Sl,{post:t}),wi("div",{className:"crt-stack-post-center-body",children:wi("div",{className:"center-body",children:[wi(bl,{post:t}),wi($d,{post:t}),wi(zd,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t})]})}),wi("div",{className:"crt-stack-post-text-footer",children:[wi(gl,{post:t,className:"crt-social-icon-normal"}),wi(cu,{post:t})]})]})})}}const Np=t=>{const e=t.post;if(!e)return null;const o={backgroundImage:`url(${e.image})`},r=e.video&&"null"!==e.video?wi(B,{children:[wi(Sd,{post:e,playable:!0,tabIndex:0===t.index?0:-1}),wi("div",{className:"card-image",style:o})]}):wi("div",{onClick:t.onClick,className:"card-image",style:o});return wi("div",{className:"crt-stacked-card","data-slide":t.index,children:wi(Td,{post:e,classes:la(e,"crt-post"),tabIndex:0===t.index?0:-1,children:r})})};class Ep extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"postContentDiv",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),this.config=t.config,this.setState({posts:[],paneCount:0,selectedPostIndex:0}),this.next=this.next.bind(this),this.prev=this.prev.bind(this)}async _loadPosts(){await eh(this.context.feed,this.context.message,this.config.get("widget.postsPerPage",12),{has_media:!0,image_width:1080});const t=this.context.feed._feed;this.setState({posts:t,selectedPostIndex:0})}componentDidMount(){this.debouncedLoadPost(),this.setState({computedPostContentHeight:Xn(this.postContentDiv)}),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}next(){let t=this.state.selectedPostIndex+1;this.state.posts.length===t&&(t=0),this.setState({selectedPostIndex:t}),this.focusToCurrentPost()}prev(){let t=this.state.selectedPostIndex-1;t<0&&(t=this.state.posts.length-1),this.setState({selectedPostIndex:t}),this.focusToCurrentPost()}getPosts(){const t=this.state.selectedPostIndex,e=this.state.selectedPostIndex+5;return this.state.posts.slice(t,e).map(((t,e)=>L(Np,{...{index:e,post:t,onClick:()=>{this.next()}},key:Qu(t),index:e})))}focusToCurrentPost(){setTimeout((()=>{const t=document.querySelectorAll(".crt-stacked-card article");t.length&&t[0].focus()}),500)}render(){const t=this.getPosts();return wi("div",{children:wi("div",{className:"crt-feed",children:wi("div",{className:"crt-stack-feed-container",children:[wi("div",{className:"crt-stacked-cards-box",children:[wi("div",{className:"hidden-card"}),t]}),wi("div",{className:"crt-stack-content",ref:this.postContentDiv,style:{maxHeight:this.state.computedPostContentHeight},children:[wi("span",{role:"button","aria-label":"Move to previous post",className:"arrow-left-icon",tabIndex:0,onKeyPress:t=>{wl(t)&&this.prev()},children:wi(jp,{onClick:this.prev})}),wi(Fp,{post:this.state.posts[this.state.selectedPostIndex]}),wi("span",{role:"button","aria-label":"Move to next post",className:"arrow-right-icon",tabIndex:0,onKeyPress:t=>{wl(t)&&this.next()},children:wi(Sp,{onClick:this.next})})]})]})})})}}Object.defineProperty(Ep,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class Dp extends xd{setStyles(t){this.createStyleSheet(),this.addCssRules(t.cssRules)}}class Lp extends M{constructor(t){super(t)}render(){const t=this.props.post,e=this.props.postsLength;return wi(Td,{post:t,classes:la(t,"crt-cover-flow-item"),style:{backgroundImage:`url(${t.image})`,flex:e},children:wi("div",{className:"crt-cover-flow-image-content",children:[wi("div",{className:"crt-post-header",children:wi(gl,{post:t,className:"crt-social-icon-normal"})}),wi("div",{className:"crt-post-text-footer",children:[wi(bl,{post:t}),wi("div",{class:"user-info",children:[wi($d,{post:t}),wi(Sl,{post:t})]})]}),wi(cu,{post:t})]})})}}class Tp extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"galleryWrapRef",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),this.config=t.config,this.setState({posts:[],paneCount:0}),this.onKeyPress=this.onKeyPress.bind(this)}updateGalleryWrapHeight(){this.galleryWrapRef&&this.setState({galleryWrapWidth:Xn(this.galleryWrapRef)})}componentDidMount(){this.debouncedLoadPost(),this.updateGalleryWrapHeight(),window.addEventListener("resize",(()=>{this.updateGalleryWrapHeight()})),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[],paneCount:0}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}async _loadPosts(){const t=this.config.get("widget.postsPerPage",12),e=await eh(this.context.feed,this.context.message,t,{has_media:!0,image_width:1080});this.setState({posts:e,paneCount:this.context.feed.numPosts()})}async onKeyPress(t,e){if(wl(e)){const e=Od(t,this.context.config);e&&Ad(e)}}render(){const t=this.state.posts.map((t=>wi(Lp,{post:t,postsLength:this.state.posts.length}))),e=this.state.posts.length?"feed":"presentation";return wi("div",{children:wi("div",{className:"crt-feed",children:wi("div",{ref:this.galleryWrapRef,className:"crt-cover-flow-gallery-wrap",style:{height:.5*this.state.galleryWrapWidth},role:e,children:t})})})}}Object.defineProperty(Tp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class Bp extends xd{setStyles(t){this.createStyleSheet(),this.addCssRules(t.cssRules)}}class Mp extends M{constructor(t){super(t)}postStyles(){const t={},e=this.context.config.get("widget.verticalSpacing");return null!=e&&(t.marginBottom=e+"px"),t}render(){const t=this.props.post;if(!t)return null;let e="crt-post crt-stagger-post ";this.props.reverse&&(e+="crt-stagger-post-reverse");const o=la(t,e),r=na(t);return wi(Td,{post:t,classes:o,style:this.postStyles(),children:wi("div",{children:wi("div",{className:"crt-stagger-post-content",children:[t.image&&wi("div",{className:"crt-stagger-post-image-container",children:[wi("div",{className:"crt-stagger-post-image","aria-label":r,tabIndex:0,role:"img",style:{backgroundImage:`url(${t.image})`}}),t.video&&wi(Sd,{post:t,playable:!0})]}),wi("div",{className:"crt-stagger-post-body-container",children:wi("div",{className:"crt-stagger-post-body",children:[wi(Sl,{post:t}),wi("div",{className:"crt-stagger-post-center-body",children:wi("div",{className:"center-body",children:[wi(bl,{post:t}),wi($d,{post:t}),wi(gu,{post:t}),wi(Rd,{post:t})]})}),wi(Zd,{className:"crt-stagger-post-text-footer",post:t})]})})]})})})}}Object.defineProperty(Mp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:Ts});class Ip extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),Object.defineProperty(this,"onLoadMore",{enumerable:!0,configurable:!0,writable:!0,value:async()=>{await this.debouncedLoadPost()}}),this.config=t.config,this.setState({posts:[]})}async _loadPosts(){const t=await eh(this.context.feed,this.context.message,this.config.get("widget.postsPerPage",12),{has_media:!0});await this.setState((e=>({posts:e.posts.concat(t)}))),this.context.widget.data.previousNOfPosts=this.context.widget.data.nOfPosts,this.context.widget.data.nOfPosts=this.state.posts.length}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[]}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}getPosts(){return this.state.posts.map(((t,e)=>wi(Mp,{post:t,reverse:e%2!=0})))}render(){return wi("div",{className:"crt-feed-window",children:[wi("div",{className:"crt-feed",role:this.state.posts.length?"feed":"presentation",children:this.getPosts()}),wi(jd,{onLoadMore:this.onLoadMore})]})}}Object.defineProperty(Ip,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});class qp extends M{constructor(t){super(t)}render(){const t=this.props.post;return wi(Td,{post:t,classes:la(t,"crt-post "+((this.props.index+1)%3==0?"small":"")),children:[wi("div",{className:"crt-layers-thumbnail crt-layers-rear-image ",style:{backgroundImage:`url(${t.image})`}}),wi("div",{className:"crt-layer-thumbnail-footer",children:[wi(bl,{post:t}),wi("div",{className:"crt-layer-thumbnail-footer-uname-date",children:[wi(kh,{post:t,dynamicFullname:!0}),wi(Sl,{post:t})]})]})]})}}class Wp extends M{constructor(t){super(t)}render(){const t=this.props.post;return wi(Td,{post:t,classes:la(t,"crt-post "+(this.props.index%3==0?"small":"")),children:[wi("div",{className:"crt-layers-thumbnail crt-layers-front-image",style:{backgroundImage:`url(${t.image})`}}),wi("div",{className:"crt-layer-thumbnail-footer",children:[wi(bl,{post:t}),wi("div",{className:"crt-layer-thumbnail-footer-uname-date",children:[wi(kh,{post:t,dynamicFullname:!0}),wi(Sl,{post:t})]})]})]})}}class Hp extends M{constructor(t){super(t),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"refFront",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Object.defineProperty(this,"debouncedLoadPost",{enumerable:!0,configurable:!0,writable:!0,value:eu((()=>{this._loadPosts()}),500)}),Object.defineProperty(this,"onLoadMore",{enumerable:!0,configurable:!0,writable:!0,value:async()=>{await this._loadPosts()}}),this.config=t.config,this.onWheel=this.onWheel.bind(this),this.getPosts=this.getPosts.bind(this),this.setState({posts:[]})}async _loadPosts(){const t=await eh(this.context.feed,this.context.message,this.config.get("widget.postsPerPage",12),{has_media:!0,image_width:1080});t&&await this.setState(((e,o)=>({posts:e.posts.concat(...t)}))),this.context.widget.data.previousNOfPosts=this.context.widget.data.nOfPosts,this.context.widget.data.nOfPosts=this.state.posts.length}componentDidMount(){this.debouncedLoadPost(),this.context.filterService.registerOnFilterChanged(this.onFilterChanged.bind(this)),this.context.filterService.triggerCheckDefaultFilter()}onFilterChanged(t){this.setState({posts:[]}),this.context.feed.reset(),this.context.feed.setParams(t),this.debouncedLoadPost()}onWheel(t){if(!this.refFront.current)return;const e=t.deltaY,o=parseFloat(this.refFront.current.style.marginTop||"0")+e/6;o>=0&&6*o*2wi(qp,{post:t,index:e})))}),wi("div",{className:"front",ref:this.refFront,children:o.map(((t,e)=>wi(Wp,{post:t,index:e})))})]})}render(){const t=this.getPosts();return wi("div",{className:"crt-feed-window",children:[wi("div",{className:"crt-feed",role:this.state.posts.length?"feed":"presentation",children:t}),wi(jd,{onLoadMore:this.onLoadMore})]})}}Object.defineProperty(Hp,"contextType",{enumerable:!0,configurable:!0,writable:!0,value:nd});const Rp={Waterfall:class extends Pd{constructor(t){super(t,gn),Object.defineProperty(this,"widget2",{enumerable:!0,configurable:!0,writable:!0,value:{current:null}}),Ch.log("init"),oi(this.$container,"crt-widget-waterfall"),this.config.set("type","Waterfall"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(yh,{...t,ref:this.widget2}))}loadPage(t){this.widget&&this.widget.current&&this.widget.current.loadPage(t)}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-waterfall"),super.destroy()}},Grid:class extends _h{constructor(t){super(t,an),Object.defineProperty(this,"columnCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.config.get("post.minWidth")<100&&this.config.set("post.minWidth",100),this.config.set("feed.postsPerPage",25),oi(this.$container,"crt-grid"),oi(this.$container,"crt-widget-grid"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Nh,{...t}))}log(t){const e="Grid["+this.id+"]";Eh.log(e+"->"+t)}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-grid"),ei(this.$container,"crt-grid"),ei(this.$container,"crt-grid-col"+this.columnCount),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Carousel:class extends Pd{constructor(t){super(t,nn),Object.defineProperty(this,"_lazyLoad",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_progressiveLoad",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"vnode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.config.set("feed.limit",50),this._lazyLoad=this.config.get("widget.lazyLoad",!1),this._progressiveLoad=this.config.get("widget.progressiveLoad",!1),oi(this.$container,"crt-widget-carousel"),this.render()}onCarouselChange(t,e){Uh.log("onCarouselChange currentPane: "+e),this.config.get("widget.autoLoad")}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi($h,{...t}))}destroy(){ei(this.$container,"crt-widget-carousel"),ei(this.$container,"crt-carousel"),super.destroy()}},GridCarousel:class extends _h{constructor(t){super(t,sn),oi(this.$container,"crt-widget-grid-carousel"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Gh,{...t}))}destroy(){ei(this.$container,"crt-widget-grid-carousel"),super.destroy()}},Panel:class extends Pd{constructor(t){super(t,cn),oi(this.$container,"crt-widget-carousel"),oi(this.$container,"crt-widget-panel"),this.config.get("post.fixedHeight")&&oi(this.$container,"crt-panel-fixed-height"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Zh,{...t}))}destroy(){ei(this.$container,"crt-widget-carousel"),ei(this.$container,"crt-widget-panel"),ei(this.$container,"crt-panel-fixed-height"),super.destroy()}},List:class extends Pd{constructor(t){super(t,ln),oi(this.$container,"crt-widget-list"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Xh,{...t}))}destroy(){ei(this.$container,"crt-widget-list"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Mosaic:class extends Qh{constructor(t){super(t,un),oi(this.$container,"crt-mosaic"),oi(this.$container,"crt-widget-mosaic"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(cp,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-mosaic"),ei(this.$container,"crt-mosaic"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Tetris:class extends lp{constructor(t){super(t,dn),oi(this.$container,"crt-tetris"),oi(this.$container,"crt-widget-tetris"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(fp,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-tetris"),ei(this.$container,"crt-tetris"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Wall:class extends Pd{constructor(t){super(t,fn),_p.log("init"),oi(this.$container,"crt-widget-wall"),this.config.set("type","Wall"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Cp,{...t}))}loadPage(t){this.widget&&this.widget.current&&this.widget.current.loadPage(t)}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-wall"),super.destroy()}},Select:class extends xp{constructor(t){super(t,hn),oi(this.$container,"crt-select"),oi(this.$container,"crt-widget-select"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Op,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-select"),ei(this.$container,"crt-select"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Stack:class extends Ap{constructor(t){super(t,pn),oi(this.$container,"crt-stack"),oi(this.$container,"crt-widget-stack"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Ep,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-stack"),ei(this.$container,"crt-stack"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},CoverFlow:class extends Dp{constructor(t){super(t,mn),oi(this.$container,"crt-cover-flow"),oi(this.$container,"crt-widget-cover-flow"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Tp,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-cover-flow"),ei(this.$container,"crt-cover-flow"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Stagger:class extends Bp{constructor(t){super(t,bn),oi(this.$container,"crt-stagger"),oi(this.$container,"crt-widget-stagger"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Ip,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-stagger"),ei(this.$container,"crt-stagger"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}},Layers:class extends Pd{constructor(t){super(t,vn),oi(this.$container,"crt-layers"),oi(this.$container,"crt-widget-layers"),this.render()}render(){const t=this.createWidgetProps();this.renderInWidgetWrapper(t,wi(Hp,{...t}))}destroy(){this.log("destroy"),ei(this.$container,"crt-widget-layers"),ei(this.$container,"crt-layers"),Yn(this.$container,{height:"",overflow:""}),super.destroy()}}},zp=Rp,$p="log",Up="debug",Vp="info",Gp="warn",Kp="error",Zp={[$p]:0,[Up]:1,[Vp]:2,[Gp]:3,[Kp]:4},Yp={timestamp:"gray",default:"gray",[$p]:"inherit",[Up]:"#82edc1",[Vp]:"#73bfde",[Gp]:"#F1B109",[Kp]:"#F20404"};function Xp(t){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xp(t)}function Qp(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function Jp(t){Qp(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Xp(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function tf(t){if(Qp(1,arguments),!function(t){return Qp(1,arguments),t instanceof Date||"object"===Xp(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Jp(t);return!isNaN(Number(e))}function ef(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function of(t,e){return Qp(2,arguments),function(t,e){Qp(2,arguments);var o=Jp(t).getTime(),r=ef(e);return new Date(o+r)}(t,-ef(e))}function rf(t){Qp(1,arguments);var e=Jp(t),o=e.getUTCDay(),r=(o<1?7:0)+o-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function nf(t){Qp(1,arguments);var e=Jp(t),o=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(o+1,0,4),r.setUTCHours(0,0,0,0);var n=rf(r),i=new Date(0);i.setUTCFullYear(o,0,4),i.setUTCHours(0,0,0,0);var s=rf(i);return e.getTime()>=n.getTime()?o+1:e.getTime()>=s.getTime()?o:o-1}function sf(t){Qp(1,arguments);var e=Jp(t),o=rf(e).getTime()-function(t){Qp(1,arguments);var e=nf(t),o=new Date(0);return o.setUTCFullYear(e,0,4),o.setUTCHours(0,0,0,0),rf(o)}(e).getTime();return Math.round(o/6048e5)+1}var af={};function cf(){return af}function lf(t,e){var o,r,n,i,s,a,c,l;Qp(1,arguments);var u=cf(),d=ef(null!==(o=null!==(r=null!==(n=null!==(i=null==e?void 0:e.weekStartsOn)&&void 0!==i?i:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==n?n:u.weekStartsOn)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Jp(t),p=h.getUTCDay(),f=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,p),f.setUTCHours(0,0,0,0);var g=lf(f,e),m=new Date(0);m.setUTCFullYear(d,0,p),m.setUTCHours(0,0,0,0);var b=lf(m,e);return u.getTime()>=g.getTime()?d+1:u.getTime()>=b.getTime()?d:d-1}function df(t,e){Qp(1,arguments);var o=Jp(t),r=lf(o,e).getTime()-function(t,e){var o,r,n,i,s,a,c,l;Qp(1,arguments);var u=cf(),d=ef(null!==(o=null!==(r=null!==(n=null!==(i=null==e?void 0:e.firstWeekContainsDate)&&void 0!==i?i:null==e||null===(s=e.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==n?n:u.firstWeekContainsDate)&&void 0!==r?r:null===(c=u.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:1),h=uf(t,e),p=new Date(0);return p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0),lf(p,e)}(o,e).getTime();return Math.round(r/6048e5)+1}function hf(t,e){for(var o=t<0?"-":"",r=Math.abs(t).toString();r.length0?o:1-o;return hf("yy"===e?r%100:r,e.length)},M:function(t,e){var o=t.getUTCMonth();return"M"===e?String(o+1):hf(o+1,2)},d:function(t,e){return hf(t.getUTCDate(),e.length)},a:function(t,e){var o=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];default:return"am"===o?"a.m.":"p.m."}},h:function(t,e){return hf(t.getUTCHours()%12||12,e.length)},H:function(t,e){return hf(t.getUTCHours(),e.length)},m:function(t,e){return hf(t.getUTCMinutes(),e.length)},s:function(t,e){return hf(t.getUTCSeconds(),e.length)},S:function(t,e){var o=e.length,r=t.getUTCMilliseconds();return hf(Math.floor(r*Math.pow(10,o-3)),e.length)}};const ff=pf;var gf="midnight",mf="noon",bf="morning",vf="afternoon",wf="evening",yf="night",Cf={G:function(t,e,o){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return o.era(r,{width:"abbreviated"});case"GGGGG":return o.era(r,{width:"narrow"});default:return o.era(r,{width:"wide"})}},y:function(t,e,o){if("yo"===e){var r=t.getUTCFullYear(),n=r>0?r:1-r;return o.ordinalNumber(n,{unit:"year"})}return ff.y(t,e)},Y:function(t,e,o,r){var n=uf(t,r),i=n>0?n:1-n;return"YY"===e?hf(i%100,2):"Yo"===e?o.ordinalNumber(i,{unit:"year"}):hf(i,e.length)},R:function(t,e){return hf(nf(t),e.length)},u:function(t,e){return hf(t.getUTCFullYear(),e.length)},Q:function(t,e,o){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return hf(r,2);case"Qo":return o.ordinalNumber(r,{unit:"quarter"});case"QQQ":return o.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(r,{width:"narrow",context:"formatting"});default:return o.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,o){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return hf(r,2);case"qo":return o.ordinalNumber(r,{unit:"quarter"});case"qqq":return o.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(r,{width:"narrow",context:"standalone"});default:return o.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,o){var r=t.getUTCMonth();switch(e){case"M":case"MM":return ff.M(t,e);case"Mo":return o.ordinalNumber(r+1,{unit:"month"});case"MMM":return o.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(r,{width:"narrow",context:"formatting"});default:return o.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,o){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return hf(r+1,2);case"Lo":return o.ordinalNumber(r+1,{unit:"month"});case"LLL":return o.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(r,{width:"narrow",context:"standalone"});default:return o.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,o,r){var n=df(t,r);return"wo"===e?o.ordinalNumber(n,{unit:"week"}):hf(n,e.length)},I:function(t,e,o){var r=sf(t);return"Io"===e?o.ordinalNumber(r,{unit:"week"}):hf(r,e.length)},d:function(t,e,o){return"do"===e?o.ordinalNumber(t.getUTCDate(),{unit:"date"}):ff.d(t,e)},D:function(t,e,o){var r=function(t){Qp(1,arguments);var e=Jp(t),o=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=o-e.getTime();return Math.floor(r/864e5)+1}(t);return"Do"===e?o.ordinalNumber(r,{unit:"dayOfYear"}):hf(r,e.length)},E:function(t,e,o){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return o.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,o,r){var n=t.getUTCDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return hf(i,2);case"eo":return o.ordinalNumber(i,{unit:"day"});case"eee":return o.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(n,{width:"short",context:"formatting"});default:return o.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,o,r){var n=t.getUTCDay(),i=(n-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return hf(i,e.length);case"co":return o.ordinalNumber(i,{unit:"day"});case"ccc":return o.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(n,{width:"narrow",context:"standalone"});case"cccccc":return o.day(n,{width:"short",context:"standalone"});default:return o.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,o){var r=t.getUTCDay(),n=0===r?7:r;switch(e){case"i":return String(n);case"ii":return hf(n,e.length);case"io":return o.ordinalNumber(n,{unit:"day"});case"iii":return o.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(r,{width:"short",context:"formatting"});default:return o.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,o){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,o){var r,n=t.getUTCHours();switch(r=12===n?mf:0===n?gf:n/12>=1?"pm":"am",e){case"b":case"bb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,o){var r,n=t.getUTCHours();switch(r=n>=17?wf:n>=12?vf:n>=4?bf:yf,e){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,o){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),o.ordinalNumber(r,{unit:"hour"})}return ff.h(t,e)},H:function(t,e,o){return"Ho"===e?o.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ff.H(t,e)},K:function(t,e,o){var r=t.getUTCHours()%12;return"Ko"===e?o.ordinalNumber(r,{unit:"hour"}):hf(r,e.length)},k:function(t,e,o){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?o.ordinalNumber(r,{unit:"hour"}):hf(r,e.length)},m:function(t,e,o){return"mo"===e?o.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ff.m(t,e)},s:function(t,e,o){return"so"===e?o.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ff.s(t,e)},S:function(t,e){return ff.S(t,e)},X:function(t,e,o,r){var n=(r._originalDate||t).getTimezoneOffset();if(0===n)return"Z";switch(e){case"X":return xf(n);case"XXXX":case"XX":return Pf(n);default:return Pf(n,":")}},x:function(t,e,o,r){var n=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return xf(n);case"xxxx":case"xx":return Pf(n);default:return Pf(n,":")}},O:function(t,e,o,r){var n=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+_f(n,":");default:return"GMT"+Pf(n,":")}},z:function(t,e,o,r){var n=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+_f(n,":");default:return"GMT"+Pf(n,":")}},t:function(t,e,o,r){var n=r._originalDate||t;return hf(Math.floor(n.getTime()/1e3),e.length)},T:function(t,e,o,r){return hf((r._originalDate||t).getTime(),e.length)}};function _f(t,e){var o=t>0?"-":"+",r=Math.abs(t),n=Math.floor(r/60),i=r%60;if(0===i)return o+String(n);var s=e||"";return o+String(n)+s+hf(i,2)}function xf(t,e){return t%60==0?(t>0?"-":"+")+hf(Math.abs(t)/60,2):Pf(t,e)}function Pf(t,e){var o=e||"",r=t>0?"-":"+",n=Math.abs(t);return r+hf(Math.floor(n/60),2)+o+hf(n%60,2)}const kf=Cf;var Of=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Af=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},jf={p:Af,P:function(t,e){var o,r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Of(t,e);switch(n){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",Of(n,e)).replace("{{time}}",Af(i,e))}};const Sf=jf;var Ff=["D","DD"],Nf=["YY","YYYY"];function Ef(t,e,o){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Df={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const Lf=function(t,e,o){var r,n=Df[t];return r="string"==typeof n?n:1===e?n.one:n.other.replace("{{count}}",e.toString()),null!=o&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r};function Tf(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.width?String(e.width):t.defaultWidth;return t.formats[o]||t.formats[t.defaultWidth]}}const Bf={date:Tf({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Tf({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Tf({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Mf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const If=function(t,e,o,r){return Mf[t]};function qf(t){return function(e,o){var r;if("formatting"===(null!=o&&o.context?String(o.context):"standalone")&&t.formattingValues){var n=t.defaultFormattingWidth||t.defaultWidth,i=null!=o&&o.width?String(o.width):n;r=t.formattingValues[i]||t.formattingValues[n]}else{var s=t.defaultWidth,a=null!=o&&o.width?String(o.width):t.defaultWidth;r=t.values[a]||t.values[s]}return r[t.argumentCallback?t.argumentCallback(e):e]}}const Wf={ordinalNumber:function(t,e){var o=Number(t),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:qf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:qf({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:qf({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:qf({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:qf({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Hf(t){return function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.width,n=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;var s,a=i[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(c)?function(t,e){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=t.match(Rf.matchPattern);if(!o)return null;var r=o[0],n=t.match(Rf.parsePattern);if(!n)return null;var i=Rf.valueCallback?Rf.valueCallback(n[0]):n[0];return{value:i=e.valueCallback?e.valueCallback(i):i,rest:t.slice(r.length)}}),era:Hf({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Hf({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Hf({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Hf({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Hf({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const $f={code:"en-US",formatDistance:Lf,formatLong:Bf,formatRelative:If,localize:Wf,match:zf,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Uf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gf=/^'([^]*?)'?$/,Kf=/''/g,Zf=/[a-zA-Z]/;function Yf(t,e,o){var r,n,i,s,a,c,l,u,d,h,p,f,g,m,b,v,w,y;Qp(2,arguments);var C=String(e),_=cf(),x=null!==(r=null!==(n=null==o?void 0:o.locale)&&void 0!==n?n:_.locale)&&void 0!==r?r:$f,P=ef(null!==(i=null!==(s=null!==(a=null!==(c=null==o?void 0:o.firstWeekContainsDate)&&void 0!==c?c:null==o||null===(l=o.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:_.firstWeekContainsDate)&&void 0!==s?s:null===(d=_.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=ef(null!==(p=null!==(f=null!==(g=null!==(m=null==o?void 0:o.weekStartsOn)&&void 0!==m?m:null==o||null===(b=o.locale)||void 0===b||null===(v=b.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==f?f:null===(w=_.locale)||void 0===w||null===(y=w.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==p?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var O=Jp(t);if(!tf(O))throw new RangeError("Invalid time value");var A=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(O),j=of(O,A),S={firstWeekContainsDate:P,weekStartsOn:k,locale:x,_originalDate:O};return C.match(Vf).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Sf[e])(t,x.formatLong):t})).join("").match(Uf).map((function(r){if("''"===r)return"'";var n=r[0];if("'"===n)return function(t){var e=t.match(Gf);if(!e)return t;return e[1].replace(Kf,"'")}(r);var i,s=kf[n];if(s)return null!=o&&o.useAdditionalWeekYearTokens||(i=r,-1===Nf.indexOf(i))||Ef(r,e,String(t)),null!=o&&o.useAdditionalDayOfYearTokens||!function(t){return-1!==Ff.indexOf(t)}(r)||Ef(r,e,String(t)),s(j,r,x.localize,S);if(n.match(Zf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}const Xf=console;function Qf(t){return[`color: ${Yp.default}; font-weight: lighter;`,`color: ${Yp[t]}; font-weight: bold;`,`color: ${Yp.timestamp}; font-weight: lighter;`]}function Jf(t,e){return`%c ${t} %c${e} %c@ ${Yf(new Date,"h:mm:ss.SS")}`}class tg{constructor(t){Object.defineProperty(this,"level",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"levelNumber",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.level=t,this.levelNumber=Zp[t]??0}debug(t,...e){this.sendToConsole("debug",t,...e)}log(t,...e){this.sendToConsole("log",t,...e)}info(t,...e){this.sendToConsole("info",t,...e)}warn(t,...e){this.sendToConsole("warn",t,...e)}error(t,...e){this.sendToConsole("error",t,...e)}sendToConsole(t,e,...o){if(this.levelNumber>Zp[t])return;const[r,...n]=o,i="log"===t||"info"===t;if(i&&(!n||0===n.length)&&"string"==typeof r)return void Xf[t](Jf(e,r),...Qf(t));const s=i&&"string"==typeof r,a=Jf(e,s?r:t);Xf.groupCollapsed(a,...Qf(t)),s||Xf[t](r),void 0!==n&&n.length>0&&Xf[t](...n),Xf.groupEnd()}}function eg(t,e,o){const r=function(t){let e="";const o=t.container;t.feed&&t.feed.id?e=t.feed.id:t.feedId&&(e=t.feedId);let r=ii('[data-crt-feed-id="'+e+'"]');return r||(r=ii(".crt-feed-"+e),r||(r=ii("#curator-"+e),r||(r=ii(o),r||void 0)))}(t);if(r){if(t.container=r,t.embedSource=r.getAttribute("data-crt-source")||"",t.debug&&ai(new tg("debug")),window.localStorage&&window.localStorage.getItem("crt-logger")){const t=window.localStorage.getItem("crt-logger");ai(new tg(t??"debug"))}t.colors=e;const n=function(t){let e=null;const o=Mi.isMobile()&&t.widget&&t.widget.gridMobile;Object.prototype.hasOwnProperty.call(zp,t.type)?(e=zp[t.type],o&&(e=zp.Grid)):e=zp.Waterfall;const r=t;if(o){const e="Grid"!=r.type?En.themeConfig("Grid","sydney"):t;"Grid"!=r.type&&(e.widget.showLoadMore=!0),r.widget={...e.widget,gridMobileRows:t.widget?.gridMobileRows??kr},r.post={...e.post,clickAction:t.post?.clickAction}}return new e(r)}(t);return e&&(o=En.themeStyles(t.type,t.theme,e)),o&&n.setStyles(o),n}window.console&&window.console.error("Curator - could not find container")}const og={Html:mi,String:Rn};void 0!==window.VERSION&&console.log("Curator.Embed loaded: "+window.VERSION),window.Curator=r})();