2 lines
233 KiB
JavaScript
2 lines
233 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["Client~Governance~Reddit"],{"./src/app/models/Draft.ts":function(e,t,r){"use strict";var n;r.d(t,"a",function(){return n}),function(e){e[e.replyToPost=0]="replyToPost",e[e.replyToComment=1]="replyToComment",e[e.edit=2]="edit"}(n||(n={}))},"./src/app/models/StructuredStylesImageUpload.ts":function(e,t,r){"use strict";var n=r("./src/lib/constants/index.ts"),o=r("./src/lib/makeApiRequest/index.ts"),s=r("./src/lib/omitHeaders/index.ts"),i=r("./src/lib/uploadToS3/index.ts");r.d(t,"a",function(){return d}),r.d(t,"b",function(){return c}),r.d(t,"c",function(){return u});const d="reddit-user_id",c=async(e,t,r)=>Object(o.c)(Object(s.a)(e,[d]),{endpoint:`${e.apiUrl}/api/v1/structured_styles/${t}`,method:n.jb.PATCH,data:r}),u=async(e,t,r,c,u)=>{const a=await function(e){return new Promise((t,r)=>{try{const o=new FileReader;o.onloadend=(e=>{try{const o=e.target.result,s=new Uint8Array(o).subarray(0,4);let i="";for(let e=0;e<s.length;e++)i+=s[e].toString(16);const d=function(e){switch(e){case"89504e47":return"image/png";case"47494638":return"image/gif";default:return"ffd8ff"===e.slice(0,6)?"image/jpeg":null}}(i);t(d)}catch(n){r(n)}}),o.readAsArrayBuffer(e)}catch(n){r(n)}})}(c),l=await(async(e,t,r,i,c)=>Object(o.c)(Object(s.a)(e,[d]),{endpoint:`${e.apiUrl}/api/v1/style_asset_upload_s3/${t}`,method:n.jb.POST,data:{filepath:r,imagetype:i,mimetype:c}}))(e,t,c.name,r,a);return l.ok?Object(i.a)(c,l.body,u):l}},"./src/app/reducers/meta/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/makeActionCreator/index.ts");Object(n.a)("META__META_RECEIVED");const o={country:"",domain:"",isBot:!1,isSessionSeo:!1,method:"",protocol:"",sessionReferrerDomain:"",userAgent:"",pageloadServerTime:0};t.a=((e=o,t)=>{switch(t.type){case"META__META_RECEIVED":return t.payload;default:return e}})},"./src/lib/addAllowQuarantinedParam/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/addQueryParams/index.ts");t.a=(e=>Object(n.a)(e,{allow_quarantined:!0}))},"./src/lib/eventTools/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"e",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"b",function(){return d}),r.d(t,"d",function(){return c});var n,o=r("./src/lib/constants/index.ts");function s(e,t){const r=e*o.Wb,s=t*o.Wb,i=Date.now();return i<r?n.Future:i>=r&&i<=s?n.Live:n.Past}function i(e,t){return s(e,t)===n.Future}function d(e){return function(e,t){const r=e/t;return r>=0?Math.floor(r):Math.ceil(r)}(e*o.Wb-Date.now(),o.y)}function c(e){const t=e*o.Wb,r=new Date,n=new Date(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}!function(e){e.Future="future",e.Live="live",e.Past="past"}(n||(n={}))},"./src/lib/forceHttps/index.ts":function(e,t,r){"use strict";t.a=function(e){return e.startsWith("http")?e.replace(/^http:\/\//i,"https://"):`https://${e}`}},"./src/lib/formatEmojiName/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});const n=":",o=/^:[A-Za-z0-9_-]{1,24}:$/;function s(e){return o.test(e)?e:`${n}${e}${n}`}},"./src/lib/getParsedUserAgent/index.ts":function(e,t,r){"use strict";r.d(t,"e",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"b",function(){return d}),r.d(t,"d",function(){return c}),r.d(t,"f",function(){return u}),r.d(t,"a",function(){return a});var n=r("./node_modules/ua-parser-js/src/ua-parser.js"),o=r.n(n);const s=e=>"mobile"===a(e).device.type,i=e=>"mobile"!==a(e).device.type,d=e=>"Chrome"===a(e).browser.name,c=e=>"Firefox"===a(e).browser.name,u=e=>"Opera"===a(e).browser.name;function a(e){return new o.a(e).getResult()}},"./src/lib/isAdHocMultireddit/index.ts":function(e,t,r){"use strict";const n=/^(all|mod)(\b|$)/;t.a=(e=>{const t=e.toLowerCase();return!n.test(t)&&t.indexOf("+")>-1&&-1===t.indexOf("-")})},"./src/lib/isFakeSubreddit/index.ts":function(e,t,r){"use strict";var n=r("./src/reddit/constants/page.ts");const o=[n.a,n.b,n.j,n.h,n.e.Frontpage,n.e.All,n.e.Mod,n.e.Friends,n.e.Popular].concat(["random","randnsfw","myrandom"]);t.a=(e=>{const t=e.toLowerCase();return o.includes(t)||t.indexOf("+")>-1||t.indexOf("-")>-1})},"./src/lib/isPinnedAdminPost/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/constants/index.ts");t.a=((e,t)=>e&&t===n.F.ADMIN)},"./src/lib/isUrl/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return o});const n=/^https?:/;function o(e){return n.test(e)}},"./src/lib/makeCommentPermalink/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/redditId/index.ts");t.a=((e,t)=>{let r=e;return"/"!==r.substr(-1)&&(r+="/"),r+=Object(n.c)(t)})},"./src/lib/makeCommentsPageKey/index.ts":function(e,t,r){"use strict";t.a=((e,t,r={})=>{let n=`commentsPage--[post:'${e}']`;return t&&(n+=`--[rootComment:'${t}']`),r&&(r.sort&&r.hasSortParam&&(n+=`--[sort:'${r.sort}']`),r.context&&(n+=`--[context:${r.context}]`),r.depth&&(n+=`--[depth:${r.depth}]`)),n})},"./src/lib/makeListingKey/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n});const n=e=>e.includes("--[sort:");t.a=((e,t,r={})=>{let n=e||"";return t&&(n+=`--[sort:'${t}']`),r.after&&(n+=`--[after:'${r.after}']`),r.before&&(n+=`--[before:'${r.before}']`),r.category&&(n+=`--[category:'${r.category}']`),r.categoryId&&(n+=`--[category:'${r.categoryId}']`),r.t&&(n+=`--[t:'${r.t}']`),r.geo_filter&&(n+=`--[geo_filter:'${r.geo_filter}']`),r.topic&&(n+=`--[topic:'${r.topic}']`),r.subtopic&&(n+=`--[subtopic:'${r.subtopic}']`),r.subredditName&&(n+=`--[subredditName:'${r.subredditName}']`),n.toLowerCase()})},"./src/lib/makePostCreationPageKey/index.ts":function(e,t,r){"use strict";function n(e){let t="PostCreationPage";return e.subredditName&&(t+=`--[subreddit:${e.subredditName}]`),e.profileName&&(t+=`--[profile:${e.profileName}]`),e.collectionId&&(t+=`--[collection:${e.collectionId}]`),t}r.d(t,"a",function(){return n})},"./src/lib/objectSelector/index.ts":function(e,t,r){"use strict";var n=r("./node_modules/lodash/isEqual.js"),o=r.n(n);t.a=function(e){let t=null;return(r,n)=>{const s=e(r,n);return o()(s,t)?t:(t=s,s)}}},"./src/lib/search/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return i});var n=r("./src/lib/addQueryParams/index.ts");const o=(e="")=>decodeURIComponent(e).replace(/\+/g," "),s=(e="")=>encodeURIComponent(e),i=(e,t,r)=>{return Object(n.a)(e,r).replace(/(\?|&)(q=)([^&]*)/,(e,r,n)=>e?`${r}${n}${t}`:e)}},"./src/lib/uploadToS3/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/constants/index.ts"),o=r("./src/lib/loadWithRetries/index.ts"),s=r("./src/lib/makeRequest/index.ts");t.a=(async(e,t,i)=>{const d=(()=>Object(o.a)(()=>Promise.all([r.e("vendors~ExportTheme~ImportTheme~xml2js"),r.e("vendors~xml2js"),r.e("xml2js")]).then(r.t.bind(null,"./node_modules/xml2js/lib/xml2js.js",7))).then(e=>e.default))(),c=await Object(s.b)({data:((e,t)=>{const r=new FormData;return t.fields.forEach(e=>{e.value&&r.append(e.name,e.value)}),r.append("file",e),r})(e,t),endpoint:t.action,method:n.jb.POST,type:null,setup:i});if("string"!=typeof c.body)return c;try{(await d).parseString(c.body,(e,t)=>{c.body=t})}catch(u){c.body=u}return c})},"./src/reddit/actions/media.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return d}),r.d(t,"b",function(){return u}),r.d(t,"d",function(){return a}),r.d(t,"c",function(){return l});var n=r("./src/lib/makeActionCreator/index.ts"),o=r("./src/reddit/selectors/ads.ts"),s=r("./src/reddit/selectors/posts.ts"),i=r("./src/reddit/actions/video.ts");const d="MEDIA__SET_MUTE",c=Object(n.a)(d),u="MEDIA__SET_VOLUME",a=Object(n.a)(u),l=(e,t)=>async(r,n)=>{if(r(c(e)),e||!t)return;const d=n(),u=Object(s.D)(d,{postId:t}),a=Object(o.a)(d,t);u.isSponsored&&a&&r(Object(i.F)(t))}},"./src/reddit/actions/video.ts":function(e,t,r){"use strict";r.d(t,"h",function(){return a}),r.d(t,"q",function(){return l}),r.d(t,"j",function(){return f}),r.d(t,"k",function(){return m}),r.d(t,"l",function(){return p}),r.d(t,"m",function(){return b}),r.d(t,"n",function(){return g}),r.d(t,"p",function(){return h}),r.d(t,"r",function(){return y}),r.d(t,"t",function(){return v}),r.d(t,"u",function(){return O}),r.d(t,"s",function(){return w}),r.d(t,"g",function(){return I}),r.d(t,"o",function(){return S}),r.d(t,"i",function(){return _}),r.d(t,"d",function(){return j}),r.d(t,"a",function(){return T}),r.d(t,"c",function(){return P}),r.d(t,"b",function(){return C}),r.d(t,"e",function(){return x}),r.d(t,"f",function(){return E}),r.d(t,"y",function(){return N}),r.d(t,"B",function(){return V}),r.d(t,"A",function(){return U}),r.d(t,"O",function(){return B}),r.d(t,"F",function(){return W}),r.d(t,"P",function(){return H}),r.d(t,"Q",function(){return $}),r.d(t,"C",function(){return z}),r.d(t,"D",function(){return q}),r.d(t,"H",function(){return Q}),r.d(t,"L",function(){return X}),r.d(t,"z",function(){return Z}),r.d(t,"M",function(){return te}),r.d(t,"N",function(){return re}),r.d(t,"K",function(){return oe}),r.d(t,"J",function(){return se}),r.d(t,"w",function(){return ie}),r.d(t,"I",function(){return de}),r.d(t,"v",function(){return ce}),r.d(t,"E",function(){return ue}),r.d(t,"G",function(){return ae}),r.d(t,"x",function(){return le});var n=r("./src/lib/makeActionCreator/index.ts"),o=r("./src/reddit/constants/adEvents.ts"),s=r("./src/reddit/constants/video.ts"),i=r("./src/reddit/helpers/pixels.ts"),d=r("./src/reddit/helpers/trackers/postList.ts"),c=r("./src/reddit/selectors/platform.ts"),u=r("./src/reddit/selectors/posts.ts");r("./src/reddit/selectors/video.ts");const a="VIDEO__CONSUMED",l="VIDEO__SET_FULLSCREEN",f="VIDEO__EXIT_FULLSCREEN",m="VIDEO__LOADABLE",p="VIDEO__LOADING",b="VIDEO__PAUSED",g="VIDEO__PLAYABLE",h="VIDEO__METADATA_RECEIVED",y="VIDEO__STARTED",v="VIDEO__UNLOADABLE",O="VIDEO__UNPAUSED",w="VIDEO__TIME_UPDATED",I="VIDEO__BUFFERING",S="VIDEO__PLAYING",_="VIDEO__CONTINUOUS_VIEW_STARTED_AT",j="AD__VIDEO_VIEWABLE",T="AD__VIDEO_FULLY_VIEWABLE",P="AD__VIDEO_STARTED",C="AD__VIDEO_PLAYED_WITH_SOUND",x="AD__VIDEO_WATCHED_PERCENT",E="AD__VIDEO_WATCHED_SECONDS",N=Object(n.a)(_),k=Object(n.a)(j),D=Object(n.a)(T),A=Object(n.a)(P),R=Object(n.a)(C),L=Object(n.a)("AD__VIDEO_PLAYED_EXPANDED"),M=Object(n.a)(x),F=Object(n.a)(E),V=e=>async(t,r)=>{const n=Object(u.D)(r(),{postId:e});n.isSponsored&&(Object(i.a)(n.events,o.a.VideoViewableImpression),t(k({postId:e})))},U=e=>async(t,r)=>{const n=Object(u.D)(r(),{postId:e});n.isSponsored&&(Object(i.a)(n.events,o.a.VideoFullyViewableImpression),t(D({postId:e})))},B=e=>async(t,r)=>{const n=Object(u.D)(r(),{postId:e});n.isSponsored&&(Object(i.a)(n.events,o.a.VideoStarted),t(A({postId:e})))},W=e=>async(t,r)=>{const n=Object(u.D)(r(),{postId:e});n.isSponsored&&(Object(i.a)(n.events,o.a.VideoPlayedWithSound),Object(i.a)(n.events,o.a.VideoViewableImpression),Object(i.a)(n.events,o.a.VideoFullyViewableImpression),t(R({postId:e})),t(k({postId:e})),t(D({postId:e})))},H=(e,t)=>async(r,n)=>{const d=Object(u.D)(n(),{postId:t});if(!d.isSponsored)return;const c=e===s.b?o.a.VideoWatched25:e===s.c?o.a.VideoWatched50:e===s.d?o.a.VideoWatched75:e===s.e?o.a.VideoWatched95:o.a.VideoWatched100;Object(i.a)(d.events,c),r(M({postId:t,percentage:e}))},$=(e,t)=>async(r,n)=>{const d=Object(u.D)(n(),{postId:t});if(!d.isSponsored)return;const c=e===s.g?o.a.VideoWatchedSeconds3:e===s.h?o.a.VideoWatchedSeconds5:o.a.VideoWatchedSeconds10;Object(i.a)(d.events,c),r(F({postId:t,seconds:e}))},G=Object(n.a)(a),z=Object(n.a)(m),K=Object(n.a)(p),q=Object(n.a)(b),Y=Object(n.a)(g),J=Object(n.a)(l),Q=Object(n.a)(h),X=Object(n.a)(w),Z=Object(n.a)(f),ee=Object(n.a)(y),te=Object(n.a)(v),re=Object(n.a)(O),ne=Object(n.a)(I),oe=Object(n.a)(S),se=e=>async(t,r)=>{const n=Object(u.D)(r(),{postId:e});t(J({postId:e})),n.isSponsored&&((e,t,r)=>{Object(i.a)(e.events,o.a.VideoPlayedExpanded),Object(i.a)(e.events,o.a.VideoViewableImpression),Object(i.a)(e.events,o.a.VideoFullyViewableImpression),r(L({postId:t})),r(k({postId:t})),r(D({postId:t}))})(n,e,t)},ie=(e,t)=>async(r,n)=>{const o=n();o.posts.video.autoPlayed[e]&&Object(c.j)(o)&&(d.d(o,e),void 0!==t&&r(ne({postId:e,isBuffering:t})))},de=e=>async(t,r)=>{const n=r();n.posts.video.autoPlayed[e]&&Object(c.j)(n)&&d.h(n,e)},ce=(e,t)=>async(r,n)=>{r(K({postId:e,time:t}));const o=n();Object(c.j)(o)&&d.f(o,e)},ue=(e,t)=>async(r,n)=>{r(Y({postId:e,time:t}));const o=n();Object(c.j)(o)&&d.a(o,e)},ae=e=>async(t,r)=>{const n=r(),o=n.posts.video.autoPlayed[e],s=n.posts.video.started[e];t(ee({postId:e})),t(re({postId:e})),!s&&o&&Object(c.j)(n)&&d.c(n,e)},le=e=>async(t,r)=>{const n=r(),o=n.posts.video.autoPlayed[e],s=n.posts.video.consumed[e];t(G({postId:e})),o&&Object(c.j)(n)&&!s&&d.b(n,e)}},"./src/reddit/components/RichTextEditor/RTEState/index.tsx":function(e,t,r){"use strict";r.d(t,"b",function(){return a}),r.d(t,"a",function(){return p});var n=r("./node_modules/lodash/isEqual.js"),o=r.n(n),s=r("./node_modules/uuid/v4.js"),i=r.n(s),d=r("./src/reddit/components/RichTextEditor/styleAndBlockTypes.ts"),c=r("./src/reddit/models/RichTextJson/index.ts");let u;const a=e=>u=e,l=()=>{if(!u)throw new Error("DraftHelpers must be initialized!");return u},f=/\S/;class m{static hasContent(e){if(e.isBound){return e.editorState.getCurrentContent().getBlockMap().some(e=>!!e&&(Object(d.t)(e.getType())||Object(d.v)(e.getType())||f.test(e.getText())))}return!Object(c.E)(e.initialRTJSON)}static getTextLength(e){return e.isBound?e.editorState.getCurrentContent().getPlainText().length:0}static isContentEqual(e,t){if(e.isBound&&t.isBound){return e.editorState.getCurrentContent()===t.editorState.getCurrentContent()}return!e.isBound&&!t.isBound&&o()(e.initialRTJSON,t.initialRTJSON)}static toRichTextJSON(e,t){if(e.isBound){const r=e.editorState.getCurrentContent();return{document:l().draftToRTFJson(r,t)}}return e.initialRTJSON}static getPendingThumbnailUploads(e,t){if(e.isBound){const r=e.editorState;return l().getPendingThumbnailUploads(r.getCurrentContent(),t)}}static getMediaCount(e){if(e.isBound){const t=e.editorState;return l().getMediaCount(t.getCurrentContent())}return{gifvideo:0,image:0,video:0,total:0}}static isAllMediaUploaded(e,t){if(e.isBound){const r=e.editorState.getCurrentContent();return l().isAllMediaUploaded(r,t)}return!0}}m.createInitial=((e=c.i,t)=>(e=>e&&e.document&&Array.isArray(e.document))(e)?{isBound:!1,editorKey:(()=>i()().slice(-6))(),initialRTJSON:e,mediaMetadataMap:t}:(console.warn("invalid RTJSON",e),m.createInitial()));const p=m},"./src/reddit/components/RichTextEditor/styleAndBlockTypes.ts":function(e,t,r){"use strict";r.d(t,"k",function(){return n}),r.d(t,"g",function(){return o}),r.d(t,"r",function(){return i}),r.d(t,"n",function(){return d}),r.d(t,"m",function(){return c}),r.d(t,"h",function(){return u}),r.d(t,"i",function(){return a}),r.d(t,"s",function(){return l}),r.d(t,"e",function(){return f}),r.d(t,"p",function(){return m}),r.d(t,"f",function(){return p}),r.d(t,"q",function(){return b}),r.d(t,"l",function(){return g}),r.d(t,"v",function(){return h}),r.d(t,"j",function(){return y}),r.d(t,"u",function(){return v}),r.d(t,"a",function(){return O}),r.d(t,"o",function(){return w}),r.d(t,"t",function(){return I}),r.d(t,"b",function(){return S}),r.d(t,"d",function(){return _}),r.d(t,"c",function(){return j});r("./src/app/strings/index.ts");const n={BOLD:"BOLD",ITALIC:"ITALIC",SPOILER:"SPOILER",STRIKETHROUGH:"STRIKETHROUGH",SUBSCRIPT:"SUBSCRIPT",SUPERSCRIPT:"SUPERSCRIPT",UNDERLINE:"UNDERLINE",MONOSPACE:"MONOSPACE",HIGHLIGHT:"HIGHLIGHT"},o={H1:"header-one",H2:"header-two",H3:"header-three",H4:"header-four",H5:"header-five",H6:"header-six"},s=new Set(["header-one","header-two","header-three","header-four","header-five","header-six"]),i=e=>s.has(e),d="unstyled",c={"header-one":1,"header-two":2,"header-three":3,"header-four":4,"header-five":5,"header-six":6},u={1:"header-one",2:"header-two",3:"header-two",4:"header-two",5:"header-two",6:"header-two"},a={ORDERED:"ordered-list-item",UNORDERED:"unordered-list-item"},l=e=>"ordered-list-item"===e||"unordered-list-item"===e,f="blockquote",m=e=>e===f,p="code-block",b=e=>e===p,g="table-cell",h=e=>e===g,y="media-caption",v=e=>e===y,O="atomic",w=e=>e===O,I=e=>w(e)||v(e),S=Object.assign({CODE_BLOCK:p,BLOCK_QUOTE:f,ATOMIC_BLOCK:O,ORDERED_LIST:a.ORDERED,TABLE_CELL:g,UNORDERED_LIST:a.UNORDERED,UNSTYLED:d,MEDIA_CAPTION:y},o),_=[d,f,g,a.ORDERED,a.UNORDERED],j=[d,f,a.ORDERED,a.UNORDERED]},"./src/reddit/constants/adEvents.ts":function(e,t,r){"use strict";var n;r.d(t,"a",function(){return n}),function(e){e[e.Impression=1]="Impression",e[e.Click=2]="Click",e[e.CommentsView=3]="CommentsView",e[e.Upvote=4]="Upvote",e[e.Downvote=5]="Downvote",e[e.CommentSubmitted=6]="CommentSubmitted",e[e.ViewableImpression=7]="ViewableImpression",e[e.CommentUpvote=8]="CommentUpvote",e[e.CommentDownvote=9]="CommentDownvote",e[e.VideoViewableImpression=100]="VideoViewableImpression",e[e.VideoFullyViewableImpression=101]="VideoFullyViewableImpression",e[e.VideoPlayedWithSound=102]="VideoPlayedWithSound",e[e.VideoPlayedExpanded=103]="VideoPlayedExpanded",e[e.VideoWatched25=104]="VideoWatched25",e[e.VideoWatched50=105]="VideoWatched50",e[e.VideoWatched75=106]="VideoWatched75",e[e.VideoWatched95=107]="VideoWatched95",e[e.VideoWatched100=108]="VideoWatched100",e[e.VideoStarted=109]="VideoStarted",e[e.VideoWatchedSeconds3=110]="VideoWatchedSeconds3",e[e.VideoWatchedSeconds5=111]="VideoWatchedSeconds5",e[e.VideoWatchedSeconds10=112]="VideoWatchedSeconds10"}(n||(n={}))},"./src/reddit/constants/blade.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"d",function(){return o}),r.d(t,"b",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"j",function(){return c}),r.d(t,"e",function(){return u}),r.d(t,"i",function(){return a}),r.d(t,"h",function(){return l}),r.d(t,"g",function(){return f}),r.d(t,"k",function(){return m}),r.d(t,"f",function(){return b});var n,o,s=r("./src/config.ts");!function(e){e.NameAndIcon="nameAndIcon",e.Banner="banner",e.Global="global"}(n||(n={})),function(e){e.Appearance="community_appearance",e.Main="community_mod_tools",e.MenuLinks="menu_links",e.Moderation="community_moderation",e.PostFlairManagement="postflairmanagement",e.Structure="community_structure",e.UserFlairManagement="userflairmanagement",e.Widgets="community_widgets"}(o||(o={}));const i={global:"theme",nameAndIcon:"name_icon",banner:"banner",menu:"menu",post:"posts",exportImport:"export_import",menuLinks:"menu_links",postFlair:"post_flair",addPostFlair:"add_flair",editPostFlair:"edit_flair",userFlair:"user_flair",addUserFlair:"add_flair",editUserFlair:"edit_flair",emoji:"emoji",emojiUploader:"upload_emoji",widgets:"widgets",addWidget:"add_widget",editWidget:"edit_widget",newWidget:"new_widget",reorderWidgets:"reorder_widgets",main:"main",css:"css",addFlair:"add_flair",reorderFlair:"reorder_flair"},d={global:o.Appearance,nameAndIcon:o.Appearance,banner:o.Appearance,menu:o.Appearance,post:o.Appearance,exportImport:o.Appearance,menuLinks:o.Appearance,postFlair:o.Appearance,addPostFlair:o.Structure,editPostFlair:o.Structure,userFlair:o.Appearance,addUserFlair:o.Structure,editUserFlair:o.Structure,emoji:o.Appearance,emojiUploader:o.Appearance,widgets:o.Appearance,addWidget:o.Widgets,editWidget:o.Widgets,newWidget:o.Widgets,reorderWidgets:o.Widgets,main:o.Main,css:o.Appearance,addFlair:o.Widgets,reorderFlair:o.Widgets},c={button:"button_widget",calendar:"calendar_widget",custom:"custom_widget",image:"image_widget","id-card":"id_card",moderators:"moderators_widget","community-list":"community_list_widget","subreddit-rules":"rules_widget",textarea:"text_widget","post-flair":"post_flair_widget"};var u;!function(e){e.Add="add",e.AssignOwnOff="assign_own_off",e.AssignOwnOn="assign_own_on",e.Edit="edit",e.EnableOff="enable_off",e.EnableOn="enable_on",e.Remove="remove",e.Reorder="reorder"}(u||(u={}));const a={primaryColor:o.Appearance,highlightColor:o.Appearance,backgroundColor:o.Appearance,postTitleColor:o.Appearance,postBackgroundColor:o.Appearance,postDownvoteCountColor:o.Appearance,postUpvoteCountColor:o.Appearance,bannerBackgroundColor:o.Appearance,bannerOverlayColor:o.Appearance,menuBackgroundColor:o.Appearance,menuLinkColorActive:o.Appearance,menuLinkColorInactive:o.Appearance,menuLinkColorHover:o.Appearance,mobileKeyColor:o.Appearance,sidebarWidgetBackgroundColor:o.Widgets,sidebarWidgetHeaderColor:o.Widgets,submenuBackgroundColor:o.Appearance,buttonWidgetButtonColor:o.Widgets,buttonWidgetTextColor:o.Widgets,buttonWidgetFillColor:o.Widgets,buttonWidgetHoverButtonColor:o.Widgets,buttonWidgetHoverTextColor:o.Widgets,buttonWidgetHoverFillColor:o.Widgets,postFlairBackgroundColor:o.PostFlairManagement,userFlairBackgroundColor:o.UserFlairManagement},l={primaryColor:i.global,highlightColor:i.global,backgroundColor:i.global,postTitleColor:i.post,postBackgroundColor:i.post,postDownvoteCountColor:i.post,postUpvoteCountColor:i.post,bannerBackgroundColor:i.banner,bannerOverlayColor:i.banner,menuBackgroundColor:i.menu,menuLinkColorActive:i.menu,menuLinkColorInactive:i.menu,menuLinkColorHover:i.menu,mobileKeyColor:void 0,sidebarWidgetBackgroundColor:i.widgets,sidebarWidgetHeaderColor:i.widgets,submenuBackgroundColor:i.menu,buttonWidgetButtonColor:i.widgets,buttonWidgetTextColor:i.widgets,buttonWidgetFillColor:i.widgets,buttonWidgetHoverButtonColor:i.widgets,buttonWidgetHoverTextColor:i.widgets,buttonWidgetHoverFillColor:i.widgets,postFlairBackgroundColor:i.postFlair,userFlairBackgroundColor:i.userFlair},f={main:"structuredStyles.forms.main.title",global:"structuredStyles.forms.global.title",banner:"structuredStyles.forms.banner.title",menu:"structuredStyles.forms.menu.title",nameAndIcon:"structuredStyles.forms.nameAndIcon.title",post:"structuredStyles.forms.post.title",exportImport:"structuredStyles.forms.themes.title",emoji:"structuredStyles.forms.emojis.title",emojiUploader:"structuredStyles.forms.emojiUploader.title",widgets:"structuredStyles.forms.widgetManager.title",addWidget:"structuredStyles.forms.addWidget.title",newWidget:"structuredStyles.forms.newWidget.title",editWidget:"structuredStyles.forms.editWidget.title",addPostFlair:"structuredStyles.forms.postFlair.addPostFlairTitle",editPostFlair:"structuredStyles.forms.postFlair.editPostFlairTitle",addUserFlair:"structuredStyles.forms.userFlair.addUserFlairTitle",editUserFlair:"structuredStyles.forms.userFlair.editUserFlairTitle",menuLinks:"structuredStyles.forms.menuLinks.title",postFlair:"structuredStyles.forms.postFlair.title",userFlair:"structuredStyles.forms.userFlair.title",addFlair:"structuredStyles.forms.postFlairWidget.addFlair.title",reorderFlair:"structuredStyles.forms.postFlairWidget.reorder.title",css:"",reorderWidgets:""},m={button:"structuredStyles.widgets.button.label","subreddit-rules":"structuredStyles.widgets.subreddit-rules.label",textarea:"structuredStyles.widgets.textarea.label",image:"structuredStyles.widgets.image.label","community-list":"structuredStyles.widgets.community-list.label",calendar:"structuredStyles.widgets.calendar.label",custom:"structuredStyles.widgets.custom.label","id-card":"structuredStyles.widgets.id-card.label","post-flair":"structuredStyles.widgets.post-flair.label"},p=e=>`${s.a.redditHelpUrl.modHelpCenter}hc/en-us/articles/${e}`,b={exportImport:p("360008722771-Customize-Appearance-overview"),global:p("360008551632-Color-theme"),nameAndIcon:p("360008805651-Name-icon"),banner:p("360010112892-Banner"),menu:p("360010387851-Menu"),post:p("360010192832-Posts"),menuLinks:p("360010442571-Menu-Links"),postFlair:p("360010513191-Post-Flair"),userFlair:p("360010541651-User-Flair"),emoji:p("360010560371"),widgets:p("360010364372-Sidebar-Widgets")}},"./src/reddit/constants/categories.tsx":function(e,t,r){"use strict";var n,o=r("./src/app/strings/index.ts"),s=r("./src/reddit/icons/svgs/News/index.tsx"),i=(r("./node_modules/react/index.js"),n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,o){var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&s)for(var d in s)void 0===t[d]&&(t[d]=s[d]);else t||(t=s||{});if(1===i)t.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}}),d=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),c=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),u=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),a=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),f=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),m=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),p=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),b=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),g=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),h=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),y=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),O=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),w=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),I=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),S=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),_=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),j=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),T=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),P=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),C=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),x=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),E=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),N=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,r,n,o){var s=t&&t.defaultProps,i=arguments.length-3;if(r||0===i||(r={}),r&&s)for(var d in s)void 0===r[d]&&(r[d]=s[d]);else r||(r=s||{});if(1===i)r.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];r.children=c}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:r,_owner:null}}}(),k=r("./src/reddit/helpers/name/index.ts");r.d(t,"b",function(){return A}),r.d(t,"d",function(){return R}),r.d(t,"e",function(){return L}),r.d(t,"c",function(){return M}),r.d(t,"a",function(){return F});var D;!function(e){e.Advice="advice",e.Animals="animals",e.Art="art",e.DIY="dIY",e.Electronics="electronics",e.Entertainment="entertainment",e.Fashion="fashion",e.Food="food",e.Funny="funny",e.Gaming="gaming",e.Health="health",e.Memes="memes",e.Music="music",e.News="news",e.Outdoors="outdoors",e.Photography="photography",e.PicsAndGifs="picsAndGifs",e.Relationships="relationships",e.Science="science",e.Sports="sports",e.Tv="tv",e.Tech="tech",e.Travel="travel",e.VideoGames="videoGames",e.Videos="videos",e.Vroom="vroom",e.Writing="writing"}(D||(D={}));const A={[D.Advice]:{displayText:Object(o.f)("categories.advice"),icon:e=>i("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,i("path",{d:"m10.0606061 0c3.3472727 0 6.060606 2.76359731 6.060606 6.17287761 0 2.08643263-1.0518182 3.88119679-2.5727273 5.04756199-1.4675757 1.1253156-1.4675757 3.1830444-1.4675757 3.6355163h-4.04030304c0-.4524719 0-2.5102007-1.46787879-3.6355163-1.52060606-1.1663652-2.57272727-2.96112936-2.57272727-5.04756199 0-3.4092803 2.71363636-6.17287761 6.0606061-6.17287761zm1.2121212 19.0123396c.2678788 0 .4851515.2212976.4851515.4941388 0 .2725326-.2172727.4935216-.4851515.4935216h-2.42424245c-.26757576 0-.48484849-.220989-.48484849-.4935216 0-.2728412.21727273-.4941388.48484849-.4941388zm.7273939-1.7282823c.2678788 0 .4848485.2212977.4848485.4938302 0 .2725326-.2169697.4938302-.4848485.4938302h-3.87878787c-.26787878 0-.48484848-.2212976-.48484848-.4938302 0-.2725325.2169697-.4938302.48484848-.4938302zm0-1.7282823c.2678788 0 .4848485.2209891.4848485.4938302 0 .2725326-.2169697.4935216-.4848485.4935216h-3.87878787c-.26787878 0-.48484848-.220989-.48484848-.4935216 0-.2728411.2169697-.4938302.48484848-.4938302z",fillRule:"evenodd"})),key:"advice",name:D.Advice,subreddits:["confession","IAmA","lifehacks","LifeProTips","offmychest","philosophy","relationship_advice","self","tipofmytongue","todayilearned"]},[D.Animals]:{displayText:Object(o.f)("categories.animals"),icon:e=>d("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,d("path",{d:"m15.625 13.75c-1.0354167 0-1.875-.8395833-1.875-1.875s.8395833-1.875 1.875-1.875 1.875.8395833 1.875 1.875-.8395833 1.875-1.875 1.875zm-3.0816667 2.60125c-.31125.4120833-.7829166.64875-1.2933333.64875-.5020833 0-.9516667-.2291667-1.25-.5883333-.29833333.3591666-.74791667.5883333-1.25.5883333-.51041667 0-.98208333-.2366667-1.29333333-.64875-.125-.1654167-.0925-.4004167.07291666-.5254167.165-.1254166.4-.0925.525.0729167.16875.2233333.42208334.35125.69541667.35125.4825 0 .875-.3925.875-.875 0-.02125.00291667-.0416667.00625-.0616667l-.73875-.73875c-.30416667-.3041666-.08875-.8245833.34166667-.8245833h1.53166663c.4304167 0 .6458334.5204167.3416667.8245833l-.73875.73875c.0033333.02.00625.0404167.00625.0616667 0 .4825.3925.875.875.875.2733333 0 .5266667-.1279167.6954167-.35125.125-.1654167.3604166-.1979167.525-.0729167.1654166.125.1979166.36.0729166.5254167zm-8.1683333-2.60125c-1.03541667 0-1.875-.8395833-1.875-1.875s.83958333-1.875 1.875-1.875 1.875.8395833 1.875 1.875-.83958333 1.875-1.875 1.875zm9.8920833-9.22375c-1.2945833-.49708333-2.7404166-.77625-4.2670833-.77625-1.52666667 0-2.9725.27916667-4.26708333.77625l-5.73291667-3.27625v10.6233333.00125c0 4.4879167 4.47708333 8.1254167 10 8.1254167 5.5229167 0 10-3.6375 10-8.125v-10.625z",fillRule:"evenodd"})),key:"animals",name:D.Animals,subreddits:["animalsbeingderps","aww","awwducational","cats","dogs","likeus","natureisfuckinglit","rarepuppers"]},[D.Art]:{displayText:Object(o.f)("categories.art"),icon:e=>c("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,c("path",{d:"m2.50020649 16.25h15.00000001v-12.5h-15.00000001zm16.82416671-2.6683333c.41875-.44625.6758333-1.04625.6758333-1.7066667 0-.7475-.33-1.4166667-.8504167-1.875.5204167-.45791667.8504167-1.1275.8504167-1.875 0-.66041667-.2570833-1.26041667-.6758333-1.70666667-.3541667-.3775-.5741667-.86-.5741667-1.3775v-.14958333c.83875-.29708333 1.4045833-1.17208333 1.2120833-2.14791667-.1433333-.72666666-.72875-1.31208333-1.4554166-1.45541666-.9758334-.19291667-1.8508334.37291666-2.1479167 1.21208333h-.0108333c-.60375 0-1.1854167-.2025-1.6766667-.55375-.6125-.4375-1.36125-.69625-2.17125-.69625-.9616667 0-1.83625.365-2.5.96041667-.66375001-.59541667-1.53833334-.96041667-2.50000001-.96041667-.81041666 0-1.55916666.25875-2.17125.69625-.49125.35125-1.07291666.55375-1.67708333.55375h-.01083333c-.29708334-.83916667-1.17166667-1.405-2.1475-1.21208333-.72708334.14333333-1.3125.72875-1.45583334 1.45541666-.1925.97583334.37333334 1.85083334 1.2125 2.14791667v.14958333c0 .5175-.22041666 1-.57458333 1.3775-.41875.44625-.67541667 1.04625-.67541667 1.70666667 0 .7475.33 1.41708333.85 1.875-.52.4583333-.85 1.1275-.85 1.875 0 .6604167.25666667 1.2604167.67541667 1.7066667.35416667.3775.57458333.86.57458333 1.3775v.15c-.83916666.2966666-1.405 1.1716666-1.2125 2.1475.14333334.7270833.72875 1.3120833 1.45583334 1.4558333.97583333.1925 1.85041666-.3733333 2.1475-1.2125h.01083333c.60416667 0 1.18583333.2025 1.67708333.55375.61208334.4379167 1.36083334.69625 2.17125.69625.96166667 0 1.83625-.3654167 2.50000001-.9604167.66375.595 1.5383333.9604167 2.5.9604167.81 0 1.55875-.2583333 2.17125-.69625.49125-.35125 1.0729167-.55375 1.6766667-.55375h.0108333c.2970833.8391667 1.1720833 1.405 2.1479167 1.2125.7266666-.14375 1.3120833-.72875 1.4554166-1.4558333.1925-.9758334-.3733333-1.8508334-1.2120833-2.1475v-.15c0-.5175.22-1 .5741667-1.3775zm-2.4910399 1.9183333v-6.53958333c-.5616666-.135-1.1466666-.21041667-1.75-.21041667-3.0870833 0-5.73666663 1.86625-6.8870833 4.5308333-.70625-.4908333-1.5625-.7808333-2.48791667-.7808333-.87625 0-1.69083333.2604167-2.375.7041667v2.2958333z",fillRule:"evenodd"})),key:"art",name:D.Art,subreddits:["art","tatoos","drawing","redditgetsdrawn","reallifedoodles","sketchdaily","design","graffiti","artefactporn","specart"]},[D.DIY]:{displayText:Object(o.f)("categories.diy"),icon:e=>u("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,u("g",{fillRule:"evenodd",transform:"translate(2)"},void 0,u("path",{d:"m2.14293032 14.8398175c.51916028-.8991556 1.66914614-1.2074852 2.56871841-.6883249.8991556.5191603 1.20748514 1.6691461.6879082 2.5687184l-.62665896 1.0854033c-.51916028.8995723-1.66914613 1.2074852-2.5687184.6883249-.89915561-.5191603-1.20706849-1.6691461-.68790821-2.5687184zm-1.08540331-.626659-.57499293.9954044c-.86290605 1.494565-.43374467 3.4512076 1.04457048 4.3411966 1.50623148.9066555 3.45620749.3987451 4.33161339-1.1170696l8.56906125-15.04023163c.679575-1.19248533.2629134-2.71663325-.9366551-3.38370838-.0074999-.00416661-.0129165-.00708324-.0158332-.00874989l-7.59407323 13.3794188-.54290998-.3133295c-1.49914823-.865406-3.41579132-.352079-4.28078068 1.1470692z"}),u("path",{d:"m14.4841643 15.9365366c.5195291.8997945.2113975 2.0505975-.688814 2.5705436-.8997945.5195292-2.0505975.2109806-2.5701267-.6888139l-.6275212-1.0865915c-.5195291-.8997946-.2109805-2.0505975.688814-2.5701267.9002115-.5195292 2.0510144-.2113975 2.5705436.6888139zm-3.8247521-2.86158-.5432958.3135521-7.56861444-13.3885087c-.00333566.00166783-.00959003.00500349-.01834614.01000698-1.19833615.66838304-1.61737855 2.1902783-.93982244 3.38319401l8.49717902 14.96210671c.8635192 1.4956269 2.7740189 2.1027172 4.2850733 1.2667172 1.5394075-.8514275 2.074781-2.7957008 1.1987531-4.3125925l-.6271042-1.0865915c-.866021-1.4997966-2.7840259-2.0139053-4.2838224-1.1478843z"}))),key:"diy",name:D.DIY,subreddits:["diy","lifehacks","woodworking","howto","gardening","somethingimade","buildapc","crafts","homebrewing","homestead","homeimprovement","knitting","homeautomation"]},[D.Electronics]:{displayText:Object(o.f)("categories.electronics"),icon:e=>a("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,a("g",{},void 0,a("path",{d:"m10.7498437 16.745c0-.2734375.221875-.495.495-.495h5.26c.2734375 0 .495.2215625.495.495v.01c0 .2734375-.2215625.495-.495.495h-5.26c-.273125 0-.495-.2215625-.495-.495zm-8.74999995 2.005c0 .6903125.5596875 1.25 1.25 1.25h13.74999995c.690625 0 1.25-.5596875 1.25-1.25v-4.5h-16.24999995z"}),a("path",{d:"m16.4480938 11.4178437c-.1390625.5609375-.63875.9571875-1.2165625.9571875h-10.21312505c-.578125 0-1.0771875-.39625-1.2165625-.9571875-.355-1.43281245-.551875-3.01062495-.551875-4.66812495 0-1.656875.196875-3.2346875.551875-4.6675.139375-.5609375.6384375-.9575 1.2165625-.9575h10.21312505c.5778125 0 1.0775.3965625 1.2165625.9575.355 1.4328125.551875 3.010625.551875 4.6675 0 1.6575-.196875 3.2353125-.551875 4.66812495m.551875-11.41781245h-13.75000005c-.6903125 0-1.25.5596875-1.25 1.25v12.24999995h16.25000005v-12.24999995c0-.6903125-.559375-1.25-1.25-1.25"}),a("path",{d:"m10.7498437 16.745c0-.2734375.221875-.495.495-.495h5.26c.2734375 0 .495.2215625.495.495v.01c0 .2734375-.2215625.495-.495.495h-5.26c-.273125 0-.495-.2215625-.495-.495zm-8.74999995 2.005c0 .6903125.5596875 1.25 1.25 1.25h13.74999995c.690625 0 1.25-.5596875 1.25-1.25v-4.5h-16.24999995z"}),a("path",{d:"m16.4480938 11.4178437c-.1390625.5609375-.63875.9571875-1.2165625.9571875h-10.21312505c-.578125 0-1.0771875-.39625-1.2165625-.9571875-.355-1.43281245-.551875-3.01062495-.551875-4.66812495 0-1.656875.196875-3.2346875.551875-4.6675.139375-.5609375.6384375-.9575 1.2165625-.9575h10.21312505c.5778125 0 1.0775.3965625 1.2165625.9575.355 1.4328125.551875 3.010625.551875 4.6675 0 1.6575-.196875 3.2353125-.551875 4.66812495m.551875-11.41781245h-13.75000005c-.6903125 0-1.25.5596875-1.25 1.25v12.24999995h16.25000005v-12.24999995c0-.6903125-.559375-1.25-1.25-1.25"}))),key:"electronics",name:D.Electronics,subreddits:["iphone","raspberry_pi","mac","pcmasterrace","android","hardware","battlestations","gadgets","buildapc"]},[D.Entertainment]:{displayText:Object(o.f)("categories.entertainment"),icon:e=>l("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,l("path",{d:"m1.25 8.75h17.5v-1.25h-17.5zm17.5 1.875c0 .2141667-.0216667.4229167-.0629167.625h-6.1870833c0-.4554167-.1245833-.8816667-.3383333-1.25h6.5883333zm-3.125 3.125h-.625c-.9229167 0-1.72875-.5041667-2.1616667-1.25h5.2808334c-.5708334.7575-1.475 1.25-2.4941667 1.25zm-8.125-2.5h-6.18708333c-.04083334-.2020833-.06291667-.4108333-.06291667-.625v-.625h6.58833333c-.21375.3683333-.33833333.7945833-.33833333 1.25zm-2.5 2.5h-.625c-1.01916667 0-1.92291667-.4925-2.49375-1.25h5.28041667c-.43291667.7458333-1.23875 1.25-2.16166667 1.25zm13.75-7.5h-17.5c-.69041667 0-1.25.55958333-1.25 1.25v3.125c0 2.41625 1.95875 4.375 4.375 4.375h.625c2.07125 0 3.75-1.67875 3.75-3.75 0-.6904167.55958333-1.25 1.25-1.25.6904167 0 1.25.5595833 1.25 1.25 0 2.07125 1.6791667 3.75 3.75 3.75h.625c2.41625 0 4.375-1.95875 4.375-4.375v-3.125c0-.69041667-.5595833-1.25-1.25-1.25z",fillRule:"evenodd"})),key:"entertainment",name:D.Entertainment,subreddits:["manga","movies","television","music","documentaries","scifi","boardgames","entertainment","podcasts","horror"]},[D.Fashion]:{displayText:Object(o.f)("categories.fashion"),icon:e=>f("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,f("g",{fillRule:"nonzero"},void 0,f("path",{d:"m19.7677966 14.0372881-.0135593-.0237288c-.3964486-.69089-1.0025518-1.2376294-1.7305085-1.5610169l-6.0525424-2.68983054c-.2156167-.09586104-.3544757-.30979687-.3542372-.54576271v-.0118644c0-.43621135-.3536192-.78983051-.7898306-.78983051h-.4966101c.0540418-.28293364.1978833-.54089724.4101695-.73559322l.4881356-.44576271c.3381699-.33723273.5273846-.7957302.5254743-1.27330868s-.1947869-.93454758-.5356438-1.26906421c-.3402846-.33824426-.8011319-.527251-1.28092265-.52534329-.47979074.00190772-.93912042.19457322-1.2767045.53551279-.33523984.33505143-.52359147.78959179-.52359147 1.26355932 0 .47396752.18835163.92850788.52359147 1.26355932.14343694.11961644.3544278.11008293.48649265-.02198192.13206486-.13206485.14159837-.34305571.02198193-.48649266-.20134163-.20136281-.31360502-.47500452-.31169395-.75975315.00191106-.28474862.11783722-.55685886.32186344-.75550108.20461898-.20297534.48170176-.31602116.7699105-.31411249.28820878.00190866.56376998.11861437.76568268.32428198.4136982.41093969.419744 1.07824232.0135594 1.49661017l-.4762712.43559322c-.36154159.3321134-.59289416.78219931-.6525424 1.26949152h-.54067797c-.43621134 0-.7898305.35361917-.7898305.78983051v.01186441c-.00013202.2349528-.13814939.44795076-.35254238.54406779l-6.05254237 2.68983054c-.72770692.3229445-1.33378009.8690633-1.73050847 1.559322l-.01355933.0237288c-.15824219.2768694-.15719388.6170278.00275179.8929166.15994568.2758888.4546194.4458187.7735194.4460665h.0220339c.33886021-.0002067.64853978-.1917881.8-.4949153l.01016949-.020339c.05932203-.1169491.12372881-.2322034.19152542-.338983h16.04576272c.0677966.1118644.1322034.2254237.1915254.338983l.0101695.0220339c.1514602.3031272.4611398.4947087.8.4949153h.0152542c.3204122.0027923.6178664-.1659353.7798843-.4423804.1620179-.2764452.1638721-.6184168.0048615-.8966027zm-17.31694914-.2423728c.47709367-.5356235 1.0661483-.9597659 1.72542373-1.2423729l4.09830508-1.7576271c1.0655928-.456519 2.27169533-.456519 3.33728813 0l4.0983051 1.7576271c.6592754.282607 1.2483301.7067494 1.7254237 1.2423729z"}),f("path",{d:"m19.7677966 14.0372881-.0135593-.0237288c-.3964486-.69089-1.0025518-1.2376294-1.7305085-1.5610169l-6.0525424-2.68983054c-.2156167-.09586104-.3544757-.30979687-.3542372-.54576271v-.0118644c0-.43621135-.3536192-.78983051-.7898306-.78983051h-.4966101c.0540418-.28293364.1978833-.54089724.4101695-.73559322l.4881356-.44576271c.3381699-.33723273.5273846-.7957302.5254743-1.27330868s-.1947869-.93454758-.5356438-1.26906421c-.3402846-.33824426-.8011319-.527251-1.28092265-.52534329-.47979074.00190772-.93912042.19457322-1.2767045.53551279-.33523984.33505143-.52359147.78959179-.52359147 1.26355932 0 .47396752.18835163.92850788.52359147 1.26355932.14343694.11961644.3544278.11008293.48649265-.02198192.13206486-.13206485.14159837-.34305571.02198193-.48649266-.20134163-.20136281-.31360502-.47500452-.31169395-.75975315.00191106-.28474862.11783722-.55685886.32186344-.75550108.20461898-.20297534.48170176-.31602116.7699105-.31411249.28820878.00190866.56376998.11861437.76568268.32428198.4136982.41093969.419744 1.07824232.0135594 1.49661017l-.4762712.43559322c-.36154159.3321134-.59289416.78219931-.6525424 1.26949152h-.54067797c-.43621134 0-.7898305.35361917-.7898305.78983051v.01186441c-.00013202.2349528-.13814939.44795076-.35254238.54406779l-6.05254237 2.68983054c-.72770692.3229445-1.33378009.8690633-1.73050847 1.559322l-.01355933.0237288c-.15824219.2768694-.15719388.6170278.00275179.8929166.15994568.2758888.4546194.4458187.7735194.4460665h.0220339c.33886021-.0002067.64853978-.1917881.8-.4949153l.01016949-.020339c.05932203-.1169491.12372881-.2322034.19152542-.338983h16.04576272c.0677966.1118644.1322034.2254237.1915254.338983l.0101695.0220339c.1514602.3031272.4611398.4947087.8.4949153h.0152542c.3204122.0027923.6178664-.1659353.7798843-.4423804.1620179-.2764452.1638721-.6184168.0048615-.8966027zm-17.31694914-.2423728c.47709367-.5356235 1.0661483-.9597659 1.72542373-1.2423729l4.09830508-1.7576271c1.0655928-.456519 2.27169533-.456519 3.33728813 0l4.0983051 1.7576271c.6592754.282607 1.2483301.7067494 1.7254237 1.2423729z"}))),key:"fashion",name:D.Fashion,subreddits:["frugalmalefashion","makeupaddiction","malefashionadvice","streetwear","femalefashionadvice","asianbeauty","skincareaddiction","watches","thriftstorehauls","sneakers"]},[D.Food]:{displayText:Object(o.f)("categories.food"),icon:e=>m("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,m("g",{},void 0,m("path",{d:"m7 20h-1c-.335 0-1-.5325325-1-1v-10c0-.46746747.665-1 1-1h1c.335 0 1 .53253253 1 1v10c0 .4674675-.665 1-1 1"}),m("path",{d:"m7 9h-1c-1.16875 0-2-.88666667-2-2v-2h5v2c0 1.11333333-.83125 2-2 2"}),m("path",{d:"m6 5h1v-5h-1z"}),m("path",{d:"m5 5h-1v-4.01c0-.54666667.44333333-.99.99-.99h.01z"}),m("path",{d:"m9 5h-1v-5h.01c.54666667 0 .99.44333333.99.99z"}),m("path",{d:"m14.9625 0h.0375v18.75c0 .6833333-.5541667 1.2375-1.2375 1.2375h-.025c-.6833333 0-1.2375-.5541667-1.2375-1.2375v-6.25h-.0125c-.6833333 0-1.2375-.5541667-1.2375-1.2375v-7.55c0-2.05041667 1.6620833-3.7125 3.7125-3.7125"}))),key:"food",name:D.Food,subreddits:["foodporn","slowcooking","recipes","foodhacks","food","mealprepsunday","eatcheapandhealthy","shittyfoodporn","gifrecipes","cooking"]},[D.Funny]:{displayText:Object(o.f)("categories.funny"),icon:e=>p("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,p("path",{d:"m10 18.125c-4.4875 0-8.125-3.0779167-8.125-6.875h16.25c0 3.7970833-3.6375 6.875-8.125 6.875m-5.3125-11.25c.86291667 0 1.5625.69958333 1.5625 1.5625s-.69958333 1.5625-1.5625 1.5625-1.5625-.69958333-1.5625-1.5625.69958333-1.5625 1.5625-1.5625m10.625 0c.8629167 0 1.5625.69958333 1.5625 1.5625s-.6995833 1.5625-1.5625 1.5625-1.5625-.69958333-1.5625-1.5625.6995833-1.5625 1.5625-1.5625m-5.3125-6.875c-5.52291667 0-10 4.47708333-10 10 0 5.5229167 4.47708333 10 10 10 5.5229167 0 10-4.4770833 10-10 0-5.52291667-4.4770833-10-10-10"})),key:"funny",name:D.Funny,subreddits:["nottheonion","humor","reactiongifs","facepalm","contagiouslaughter","childrenfallingover","dadjokes"]},[D.Gaming]:{displayText:Object(o.f)("categories.gaming"),icon:e=>b("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,b("path",{d:"m10 13.6458333c-1.38083333 0-2.5-1.1191666-2.5-2.5 0-1.3808333 1.11916667-2.49999997 2.5-2.49999997 1.3808333 0 2.5 1.11916667 2.5 2.49999997 0 1.3808334-1.1191667 2.5-2.5 2.5m6.5058333-4.09666663c2.1379167.68791663 3.4941667 1.70750003 3.4941667 2.84666663 0 2.07125-4.4770833 3.75-10 3.75-5.52291667 0-10-1.67875-10-3.75 0-1.1391666 1.35625-2.15875 3.49416667-2.84666663.87541666-2.56458334 3.22416666-4.44458334 6.03708333-4.63458334v-1.03583333c-.6325-.2-1.09375-.78458333-1.09375-1.48291667 0-.86291666.69958333-1.5625 1.5625-1.5625.8629167 0 1.5625.69958334 1.5625 1.5625 0 .69833334-.46125 1.28291667-1.09375 1.48291667v1.03583333c2.8129167.19 5.1616667 2.07 6.0370833 4.63458334zm-11.5058333 7.11750003c1.4875.29625 3.14625.4541666 4.86416667.4541666 1.71791663 0 3.37666663-.1579166 4.86416663-.4541666-1.2445833 1.2458333-2.9641666 2.0166666-4.86416663 2.0166666-1.9 0-3.62-.7708333-4.86416667-2.0166666z"})),key:"gaming",name:D.Gaming,subreddits:["gaming","boardgames","ps4","xboxone","games","dnd","rpg","nintendo","pcgaming","wiiu","3ds","truegaming","shouldibuythisgame","gamephysics"]},[D.Health]:{displayText:Object(o.f)("categories.health"),icon:e=>g("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,g("path",{d:"m13.4605809 13.3232365h-2.4896265v2.4443984h-2.4896266v-2.4896266h-2.48962656v-2.4896266h2.48962656v-2.48962651h2.4896266v2.48962651h2.4896265zm-.4979253-9.0078838c1.3692946 0 2.4896266 1.12033195 2.4896266 2.48962655v10.70539415c0 1.3692946-1.120332 2.4896266-2.4896266 2.4896266h-6.47302904c-1.36929461 0-2.48962656-1.120332-2.48962656-2.4896266v-10.70539415c0-1.3692946 1.12033195-2.48962655 2.48962656-2.48962655h.24896265v-.99585063h5.97510369v.99585063zm-6.8879668-1.82572614v-2.48962656h7.4688797v2.48962656z",fillRule:"evenodd"})),key:"health",name:D.Health,subreddits:["fitness","keto","loseit","bodyweightfitness","adhd","progresspics","bodybuilding","boxing","health","getmotivated","healthyfood","nutrition"]},[D.Memes]:{displayText:Object(o.f)("categories.memes"),icon:e=>h("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,h("path",{d:"m6.96449386 20.0000625.78125-2.34375c.3484375-1.045.1946875-2.1925-.41625-3.10875l-.3784375-.5675c-.799375-1.1990625-.799375-2.76125 0-3.9603125l.0265625-.039375c.7996875-1.1990625.7996875-2.76125 0-3.9603125l-.378125-.5675c-.6109375-.91625-.7646875-2.06375-.41625-3.10875l.78125-2.34375h1.1784375l-.7390625 2.2171875c-.3903125 1.1703125-.2215625 2.4303125.4628125 3.4571875l.3784375.5678125c.711875 1.0678125.711875 2.448125-.0009375 3.516875l-.025625.0390625c-.8921875 1.3375-.8921875 3.06625 0 4.40375l.378125.5675c.54625.8196875.6809375 1.8259375.3696875 2.7603125l-.78125 2.34375c-.0140625.041875-.01875.084375-.01875.1265625zm5.69825004-5.4525625c.6109375.9165625.7646875 2.06375.41625 3.10875l-.78125 2.34375h-1.178125l.7390625-2.216875c.39-1.1709375.22125-2.4309375-.463125-3.4575l-.378125-.5675c-.7121875-1.0678125-.7121875-2.448125.000625-3.5171875l.0259375-.0390625c.8915625-1.3375.8915625-3.06625 0-4.40375l-.3784375-.5671875c-.54625-.82-.68093754-1.82625-.369375-2.7603125l.78125-2.34375c.01375-.0421875.01875-.0846875.0184375-.126875h1.201875l-.78125 2.34375c-.3484375 1.045-.1946875 2.1925.4165625 3.10875l.378125.5675c.799375 1.1990625.799375 2.76125 0 3.9603125l-.0265625.0396875c-.7996875 1.1990625-.7996875 2.76125 0 3.9603125zm-2.3865-14.5474375-.73906254 2.2171875c-.3903125 1.1703125-.2215625 2.4303125.4628125 3.4571875l.37843754.5678125c.711875 1.0678125.711875 2.448125-.0009375 3.516875l-.025625.0390625c-.89218754 1.3375-.89218754 3.06625 0 4.40375l.378125.5675c.54625.8196875.6809375 1.8259375.3696875 2.7603125l-.78125 2.34375c-.0140625.041875-.01875.084375-.01875.1265625h-1.31343754l.7390625-2.2171875c.39000004-1.170625.22125-2.430625-.463125-3.4571875l-.378125-.5678125c-.7121875-1.0678125-.7121875-2.448125.000625-3.516875l.0259375-.0390625c.8915625-1.3375.8915625-3.06625 0-4.40375l-.3784375-.5675c-.54625-.8196875-.6809375-1.8259375-.369375-2.7603125l.78125-2.34375c.01375-.041875.01875-.084375.0184375-.1265625z"})),key:"memes",name:D.Memes,subreddits:["trippinthroughtime","bikinibottomtwitter","memes","teenagers","trollxchromosomes","trollychromosomes"]},[D.Music]:{displayText:Object(o.f)("categories.music"),icon:e=>y("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,y("g",{transform:"translate(0 4)"},void 0,y("path",{d:"m5.11627907 10.2953488-2.10930233 2.1069768h13.83023256l-2.1069767-2.1069768z"}),y("path",{d:"m18.7507325 0h-17.50146495c-.68888388.00255046-1.24669706.55601789-1.24926755 1.23953488v9.92325582c.00257049.683517.56038367 1.2369844 1.24926755 1.2395349h.71955936l2.76573303-2.74418607c.07019755-.06981984.16545928-.10913329.2648541-.10930232h10.00117196c.0993948.00016903.1946565.03948248.2648541.10930232l2.765733 2.74418607h.7195594c.6888838-.0025505 1.246697-.5560179 1.2492675-1.2395349v-9.92325582c-.0025705-.68351699-.5603837-1.23698442-1.2492675-1.23953488zm-14.37478031 7.44186047c-1.03557436 0-1.87507325-.83295861-1.87507325-1.86046512s.83949889-1.86046512 1.87507325-1.86046512c1.03557435 0 1.87507324.83295861 1.87507324 1.86046512 0 .49342603-.19755179.96664261-.54919624 1.3155475-.35164444.34890489-.82857666.54491762-1.325877.54491762zm8.12609871-.49534884h-5.00175792v-2.48139535h4.99941402zm3.1243408.49534884c-1.0355744 0-1.8750733-.83295861-1.8750733-1.86046512s.8394989-1.86046512 1.8750733-1.86046512c1.0355743 0 1.8750732.83295861 1.8750732 1.86046512 0 .49342603-.1975518.96664261-.5491962 1.3155475-.3516445.34890489-.8285767.54491762-1.325877.54491762z"}))),key:"music",name:D.Music,subreddits:["music","hiphopheads","listentothis","electronicmusic","indieheads","wearethemusicmakers","mashups","metal","classicalmusic","edm","audiophile"]},[D.News]:{displayText:Object(o.f)("categories.news"),icon:s.a,key:"news",name:D.News,subreddits:["news","upliftingnews","worldpolitics","nottheonion","politicaldiscussion","savedyouaclick","subredditoftheday"]},[D.Outdoors]:{displayText:Object(o.f)("categories.outdoors"),icon:e=>v("svg",{className:e.className,viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg"},void 0,v("path",{d:"m26.9023256 47.5020059c8.0744186-12.7627907 14.9209302-26.1581396 18.6418604-35.9813954.2604652-.6697674.855814-1.1906977 1.6744187-1.4139535 1.3767441-.372093 2.8279069.2604651 3.2372093 1.4139535 3.7209302 9.8232558 10.6046511 23.2186047 18.6790697 35.9813954 6.7348837 10.6418604 14.2883721 20.8 21.5441861 27.9813953h2.7534883c1.4139535 0 2.5674419.9674419 2.5674419 2.1581395 0 1.227907-1.1534884 2.1953489-2.5674419 2.1953489h-3.944186-11.9069768-10.5674418c-.5953488 0-1.1534884-.1488372-1.6372093-.483721-3.8697675-2.6046511-7.5906977-7.8511627-10.7162791-13.544186-2.6790698-4.9116279-5.0232558-10.3069767-6.6604651-14.5860465-1.6372093 4.2790698-3.944186 9.6744186-6.6604651 14.5860465-3.0883721 5.6186047-6.7348837 10.7906977-10.5674419 13.4325581-.4465116.3720931-1.0790697.5953489-1.7488372.5953489h-10.6046511-11.90697679-3.90697675c-1.45116279 0-2.60465116-.9674419-2.60465116-2.1953489 0-1.1906976 1.15348837-2.1581395 2.60465116-2.1581395h2.75348837c7.21860467-7.1813953 14.77209307-17.3395349 21.54418607-27.9813953z"})),key:"outdoors",name:D.Outdoors,subreddits:["gardening","camping","hiking","vandwellers","survival","campingandhiking","homestead","outdoors","fishing","climbing","snowboarding","skiing"]},[D.Photography]:{displayText:Object(o.f)("categories.photography"),icon:e=>O("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,O("path",{d:"m2.50010421 8.2475c.69025884 0 1.2500521.55958333 1.2500521 1.24958333 0 .68999997-.55979326 1.24958337-1.2500521 1.24958337-.69025885 0-1.25005211-.5595834-1.25005211-1.24958337 0-.69.55979326-1.24958333 1.25005211-1.24958333zm7.49989579-4.99791667c2.0711934 0 3.7497395 1.67833334 3.7497395 3.74833334 0 2.07041666-1.6785461 3.74875003-3.7497395 3.74875003-2.07119336 0-3.75015631-1.67833337-3.75015631-3.74875003 0-2.07 1.67896295-3.74833334 3.75015631-3.74833334zm4.9997916 1.24958334c0-.69041667.5597932-1.24958334 1.2500521-1.24958334h1.2500521c.6902588 0 1.2500521.55916667 1.2500521 1.24958334v1.24916666c0 .69041667-.5597933 1.24958334-1.2500521 1.24958334h-1.2500521c-.6902589 0-1.2500521-.55916667-1.2500521-1.24958334zm2.5001042 6.24750003c-.6902589 0-1.2500521-.5595834-1.2500521-1.24958337 0-.69.5597932-1.24958333 1.2500521-1.24958333.6902588 0 1.2500521.55958333 1.2500521 1.24958333 0 .68999997-.5597933 1.24958337-1.2500521 1.24958337zm2.5001042 2.1241666v-8.37166663c0-1.38041667-1.1195865-2.49916667-2.5001042-2.49916667h-14.99979159c-1.3805177 0-2.50010421 1.11875-2.50010421 2.49916667v8.37166663zm-1.2504689 3.5508334c0 .3416666-.2771873.6183333-.6185653.6183333h-16.2623484c-.34179484 0-.61898212-.2766667-.61898212-.6183333v-.0125c0-.3416667.27718728-.6183334.61898212-.6183334h16.2623484c.341378 0 .6185653.2766667.6185653.6183334zm-18.7495311-2.755v2.1241666c0 1.38 1.11916969 2.49875 2.49968738 2.49875h14.99979162c1.3805177 0 2.5001042-1.11875 2.5001042-2.49875v-2.1241666z"})),key:"photography",name:D.Photography,subreddits:["earthporn","itookapicture","wallpaper","exposureporn","photography","photocritique","analog","machineporn","astrophotography","filmmakers","historyporn","perfecttiming"]},[D.PicsAndGifs]:{displayText:Object(o.f)("categories.picsandgifs"),icon:e=>w("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,w("path",{d:"m17.25 15c0 .6903125-.559375 1.25-1.25 1.25h-5v-2.5h3.75l-2.5-3.75h1.25l-2.5-3.75h1.25l-2.5-3.75-2.5 3.75h1.25l-2.5 3.75h1.25l-2.5 3.75h3.75v2.5h-5c-.6903125 0-1.25-.5596875-1.25-1.25v-12.5c0-.6903125.5596875-1.25 1.25-1.25h12.5c.690625 0 1.25.5596875 1.25 1.25zm-16.25 5h17.5v-20h-17.5z"})),key:"picsandgifs",name:D.PicsAndGifs,subreddits:["photoshopbattles","cinemagraphs","highqualitygifs","oddlysatisfying","wheredidthesodago"]},[D.Relationships]:{displayText:Object(o.f)("categories.relationships"),icon:e=>I("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,I("g",{fillRule:"evenodd"},void 0,I("path",{d:"m7.5 11.25c-.69041667 0-1.25-.5595833-1.25-1.25 0-.69041667.55958333-1.25 1.25-1.25s1.25.55958333 1.25 1.25c0 .6904167-.55958333 1.25-1.25 1.25m-3.75-8.75v2.41708333c-1.47791667.90291667-2.5 2.83916667-2.5 5.08291667s1.02208333 4.18 2.5 5.0829167v2.4170833c1.18125 0 6.25-4.6354167 6.25-7.5 0-2.86458333-5.06875-7.5-6.25-7.5"}),I("path",{d:"m0 7.5v5c1.38083333 0 2.5-1.1191667 2.5-2.5 0-1.38083333-1.11916667-2.5-2.5-2.5"}),I("path",{d:"m11.25 10c0-.69041667.5595833-1.25 1.25-1.25s1.25.55958333 1.25 1.25c0 .6904167-.5595833 1.25-1.25 1.25s-1.25-.5595833-1.25-1.25m-1.25 0c0 2.8645833 5.06875 7.5 6.25 7.5v-2.4170833c1.4779167-.9029167 2.5-2.8391667 2.5-5.0829167s-1.0220833-4.18-2.5-5.08291667v-2.41708333c-1.18125 0-6.25 4.63541667-6.25 7.5"}),I("path",{d:"m20 7.5v5c-1.3808333 0-2.5-1.1191667-2.5-2.5 0-1.38083333 1.1191667-2.5 2.5-2.5"}))),key:"relationships",name:D.Relationships,subreddits:["relationships","tinder","justnomil","relationship_advice","socialskills","parenting","dating_advice","childfree"]},[D.Science]:{displayText:Object(o.f)("categories.science"),icon:e=>S("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,S("path",{d:"m17.5726284 16.4661458c1.2161458 1.9427084.3333333 3.5338542-1.9583334 3.5338542h-11.10937496c-2.29166667 0-3.17447917-1.5911458-1.95833333-3.5338542l4.734375-6.93229163v-7.58854167h5.55729169v7.58854167zm-4.734375-15.35416663h-5.55729169c-.30706457-.00000001-.55598958-.24892502-.55598958-.55598959 0-.30706456.24892501-.55598958.55598958-.55598958h5.55729169c.1986359 0 .3821831.10597101.4815011.27799479s.099318.38396581 0 .55598959c-.099318.17202377-.2828652.27799479-.4815011.27799479z"})),key:"science",name:D.Science,subreddits:["biology","chemistry","physics","astronomy","space","math","compsci","machinelearning","nasa","shittyaskscience"]},[D.Sports]:{displayText:Object(o.f)("categories.sports"),icon:e=>_("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,_("g",{},void 0,_("path",{d:"m2.8780457 15.8452312c.00343328-3.4869265 2.82837714-6.31326473 6.31530159-6.31841867 2.14550741.01758727 4.08988711-1.26032611 4.92484381-3.23677715.8349567-1.97645105.3956922-4.26134091-1.1125961-5.78730878-4.39154829-1.37640744-9.15472269.43036724-11.52862345 4.37305528-2.37390075 3.94268804-1.74222907 8.99771092 1.5288764 12.23500342-.08504185-.4164816-.1278593-.8404788-.12780225-1.2655541z"}),_("path",{d:"m14.7730066 1.25083735c1.0397526 1.95728345.9768154 4.31648414-.1658142 6.21554744-1.1426297 1.89906329-3.1975327 3.05973671-5.41384511 3.05790871-1.86638024-.0098949-3.60034409.9627833-4.56482865 2.5606703-.96448455 1.5978869-1.01725286 3.5853348-.1389177 5.23215 3.05588425 2.0211537 6.97384286 2.2043408 10.20498426.4771418 3.2311413-1.7271989 5.2553372-5.0867508 5.2723597-8.7505194.0170224-3.66376865-1.9758687-7.04198452-5.1908211-8.79913311z"}))),key:"sports",name:D.Sports,subreddits:["baseball","bicycling","CollegeBasketball","NASCAR","nba","running","skiing","snowboarding","soccer","sports"]},[D.Tv]:{displayText:Object(o.f)("categories.tv"),icon:e=>P("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,P("path",{d:"m17.5 6.75c.6903125 0 1.25-.5596875 1.25-1.25s-.5596875-1.25-1.25-1.25-1.25.5596875-1.25 1.25.5596875 1.25 1.25 1.25zm0 3.75c.6903125 0 1.25-.5596875 1.25-1.25s-.5596875-1.25-1.25-1.25-1.25.5596875-1.25 1.25.5596875 1.25 1.25 1.25zm-3.0521875 3.793125c.3553125-1.433125.5521875-3.010625.5521875-4.668125s-.196875-3.235-.5521875-4.6678125c-.13875-.5609375-.6384375-.9571875-1.2159375-.9571875h-10.21375c-.5775 0-1.0771875.39625-1.2159375.9571875-.3553125 1.4328125-.5521875 3.0103125-.5521875 4.6678125s.196875 3.235.5521875 4.668125c.13875.560625.6384375.956875 1.2159375.956875h10.21375c.5775 0 1.0771875-.39625 1.2159375-.956875zm-14.4478125 2.081875v-13.375h20v13.375zm1.25 1.625v-.875h17.5v.875z"})),key:"tv",name:D.Tv,subreddits:["television","netflixbestof","thewalkingdead","breakingbad","westworld","southpark","futurama","gameofthrones","familyguy","rickandmorty"]},[D.Tech]:{displayText:Object(o.f)("categories.tech"),icon:e=>j("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,j("path",{d:"m20 5.71313781v-5.71313781h-20v20h20v-12.8565689h-1.4302933v-1.43029329zm-9.1415562 12.85656889c0 .4733658-.3837388.8571046-.8571046.8571046-.47336577 0-.85710457-.3837388-.85710457-.8571046v-3.4284184c0-.4733658.3837388-.8571046.85710457-.8571046.4733658 0 .8571046.3837388.8571046.8571046zm-.85978303-5.7131378c-1.57837907 0-2.85790813-1.279529-2.85790813-2.85790813 0-1.57837907 1.27952906-2.85790813 2.85790813-2.85790813 1.57837913 0 2.85790813 1.27952906 2.85790813 2.85790813 0 .75796433-.3011002 1.48488453-.8370619 2.02084623s-1.2628819.8370619-2.02084623.8370619z"})),key:"tech",name:D.Tech,subreddits:["pcmasterrace","programming","gadgets","learnprogramming","javascript","hacking","internetisbeautiful","techsupport","google","apple","bitcoin","privacy"]},[D.Travel]:{displayText:Object(o.f)("categories.travel"),icon:e=>T("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,T("path",{d:"m18.7777778 13.6364263v-.8096511c-.0005633-.3000353-.1600336-.5762061-.4166667-.7215838l-7.0333333-3.92325679.1777778-3.48576112c-.000337-1.45968579-.3132211-2.90158884-.9166667-4.2243902v-.02556793c-.1258579-.2777988-.4007067-.45292399-.70000001-.44601833-.29328477-.00015975-.55995895.17390109-.68333333.44601833v.02556793c-.60398066 1.32462763-.91687119 2.76849975-.91666667 4.23007197l.17777778 3.48292023-7.10555556 3.92041591c-.22277817.1512987-.35797007.40549-.36111111.6789706v.8522643l7.77777778-1.8181639.48611111 5.903351-1.34722222.8266964c-.27375167.1397979-.44685636.4256964-.44722223.738629v.7130612l2.05-.7670379.36944445.7670379.37500001-.7670379 2.05.7670379v-.7130612c-.0003659-.3129326-.1734706-.5988311-.4472222-.738629l-1.3472223-.8266964.4805556-5.903351z"})),key:"travel",name:D.Travel,subreddits:["travel","backpacking","solotravel","vagabond","japantravel","digitalnomad","iwantout","urbanexploration","shoestring","roadtrip"]},[D.VideoGames]:{displayText:Object(o.f)("categories.videogames"),icon:e=>C("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,C("path",{d:"m15.6 6h-11.2c-2.42720312.00686625-4.39313375 1.97279688-4.4 4.4v.0895833c.00686625 2.4272032 1.97279688 4.3931338 4.4 4.4h11.2c2.4272031-.0068662 4.3931338-1.9727968 4.4-4.4v-.0895833c-.0068662-2.42720312-1.9727969-4.39313375-4.4-4.4zm-8.83333333 5.2520833h-1.51458334v1.5145834h-1.51458333v-1.5145834h-1.51458333v-1.5145833h1.51458333v-1.51458333h1.51458333v1.51458333h1.51458334zm7.98125003 1.4145834c-.6132662 0-1.1104167-.4971505-1.1104167-1.1104167s.4971505-1.1104167 1.1104167-1.1104167 1.1104166.4971505 1.1104166 1.1104167-.4971504 1.1104167-1.1104166 1.1104167zm1.91875-2.2229167c-.6132662 0-1.1104167-.49715048-1.1104167-1.11041667s.4971505-1.11041666 1.1104167-1.11041666 1.1104166.49715047 1.1104166 1.11041666c0 .29450081-.11699.57693964-.3252335.78518317-.2082435.2082435-.4906823.3252335-.7851831.3252335z"})),key:"videogames",name:D.VideoGames,subreddits:["leagueoflegends","overwatch","pokemongo","pokemon","wow","minecraft","hearthstone","zelda","destinythegame","kerbalspaceprogram","pubbattlegrounds"]},[D.Videos]:{displayText:Object(o.f)("categories.videos"),icon:e=>x("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,x("path",{d:"m6.66428125 4.8750625-2 2h-2.8284375l3.63375-3.6340625c.234375-.234375.5521875-.3659375.88375-.3659375h4.14656255v2zm11.58568755 3.9999375h1.75v7.5h-1.75c-.6903125 0-1.25-.5596875-1.25-1.25v-5c0-.6903125.5596875-1.25 1.25-1.25zm-3.8751251-6.875c1.035625 0 1.875.8396875 1.875 1.875 0 1.035625-.839375 1.875-1.875 1.875h-3.125v-3.75zm.1251563 13.125v-5h1.75v5zm-12.00015625-3.75c-.6903125 0-1.25-.5596875-1.25-1.25s.5596875-1.25 1.25-1.25c.690625 0 1.25.5596875 1.25 1.25s-.559375 1.25-1.25 1.25m9.99999995-3.75h-11.24999995c-.6903125 0-1.25.5596875-1.25 1.25v7.5c0 .6903125.5596875 1.25 1.25 1.25h11.24999995c.690625 0 1.25-.5596875 1.25-1.25v-7.5c0-.6903125-.559375-1.25-1.25-1.25"})),key:"videos",name:D.Videos,subreddits:["videos","roadcam","artisanvideos","youtubehaiku","mealtimevideos","deepintoyoutube","instant_regret","rai","whatcouldgowrong","bestofstreamingvideo","yesyesyesyesno"]},[D.Vroom]:{displayText:Object(o.f)("categories.vroom"),icon:e=>E("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,E("path",{d:"m9.99984375 12.3529063c-1.299375 0-2.3528125-1.0534375-2.3528125-2.3528125 0-1.29968755 1.0534375-2.35312505 2.3528125-2.35312505 1.29968745 0 2.35312495 1.0534375 2.35312495 2.35312505 0 1.299375-1.0534375 2.3528125-2.35312495 2.3528125m7.78718745-4.64187505-3.2509375.4646875c-.73875.1053125-1.5-.11875-2.0228125-.650625-.6396875-.650625-1.52875-1.054375-2.51343745-1.054375-.984375 0-1.8734375.40375-2.513125 1.054375-.5228125.531875-1.2840625.7559375-2.0228125.650625l-3.2509375-.4646875c-.2140625.7265625-.330625 1.494375-.330625 2.28906245 0 .0053125.0003125.01125.0003125.0165625l1.8996875.2715625c1.385625.1978125 2.621875.930625 3.53 1.995625.0078125.009375.015625.0184375.02375.0275.923125 1.060625 1.4871875 2.384375 1.4871875 3.7903125v1.9296875c.3846875.05625.7771875.08625 1.1765625.08625.39968745 0 .79218745-.03 1.17687495-.08625v-1.9296875c0-1.4059375.5640625-2.7296875 1.4871875-3.7903125.008125-.0090625.0159375-.018125.02375-.0275.908125-1.065 2.144375-1.7978125 3.53-1.995625l1.8996875-.2715625c0-.0053125.0003125-.01125.0003125-.0165625 0-.79468745-.1165625-1.56249995-.330625-2.28906245m-7.78718745 11.11253125c-4.873125 0-8.823125-3.950625-8.823125-8.8234375 0-4.873125 3.95-8.82375 8.823125-8.82375 4.87343745 0 8.82343745 3.950625 8.82343745 8.82375 0 4.8728125-3.95 8.8234375-8.82343745 8.8234375m0-18.8234375c-5.5228125 0-10 4.4771875-10 10 0 5.5225 4.4771875 10 10 10 5.52312495 0 9.99999995-4.4775 9.99999995-10 0-5.5228125-4.476875-10-9.99999995-10"})),key:"vroom",name:D.Vroom,subreddits:["cars","motorcycles","carporn","aviation","autos","justrolledintotheshop","autodetailing","mechanicadvice","shitty_car_mods","teslamotors"]},[D.Writing]:{displayText:Object(o.f)("categories.writing"),icon:e=>N("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,N("path",{d:"m12.9166667 2.5h7v13.75h-7c-1.375 0-2.5 1.125-2.5 2.5v-13.75c0-1.375 1.125-2.5 2.5-2.5zm-5.9166667 0c1.375 0 2.5 1.125 2.5 2.5v13.75c0-1.375-1.125-2.5-2.5-2.5h-7v-13.75z"})),key:"writing",name:D.Writing,subreddits:["books","writingprompts","literature","suggestmeabook","writing","screenwriting","poetry","comicbooks","fantasy","freeEbooks"]}},R=(D.Advice,D.Animals,D.Art,D.Entertainment,D.Food,D.Health,D.Music,D.News,D.Outdoors,D.Photography,D.Sports,D.VideoGames,D.Videos,e=>{let t="";for(let r=0;r<e.length;r++)t+=e[r],r<e.length-1&&(t+="+");return t}),L=e=>`/r/${R(e)}`,M=Object.keys(A).reduce((e,t)=>{const r=A[t],n=R(r.subreddits);return e[Object(k.f)(n)]=t,e},{}),F=["#FAAF2A","#96DE50","#F9862D","#2EA1EA","#297ACA","#4DCF65","#96DE50","#F9862D","#FAAF2A","#297ACA","#2EA1EA","#2EA1EA","#37D2BB","#4DCF65","#297ACB","#96DE50","#F9862D","#FAAF2A","#297ACA","#2EA1EA","#297ACA","#37D2BB","#96DE50","#37D2BB","#4DCF65","#37D2BB","#F9862D"]},"./src/reddit/constants/chat.ts":function(e,t,r){"use strict";r.d(t,"f",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return d}),r.d(t,"a",function(){return c});const n={public:"room_public",private:"room_private"},o=140,s=30,i=10,d=500;var c;!function(e){e.SubredditChatNotifcationFtux="chat_subreddit_notification_ftux"}(c||(c={}))},"./src/reddit/constants/comments.ts":function(e,t,r){"use strict";var n;r.d(t,"a",function(){return n}),function(e){e.Comment="comment",e.MoreComments="moreComments",e.ContinueThread="continueThread"}(n||(n={}))},"./src/reddit/constants/experiments.ts":function(e,t,r){"use strict";r.d(t,"v",function(){return n}),r.d(t,"E",function(){return o}),r.d(t,"f",function(){return s}),r.d(t,"h",function(){return i}),r.d(t,"q",function(){return d}),r.d(t,"L",function(){return c}),r.d(t,"N",function(){return u}),r.d(t,"b",function(){return a}),r.d(t,"k",function(){return l}),r.d(t,"B",function(){return f}),r.d(t,"C",function(){return m}),r.d(t,"i",function(){return p}),r.d(t,"o",function(){return b}),r.d(t,"x",function(){return g}),r.d(t,"D",function(){return h}),r.d(t,"M",function(){return y}),r.d(t,"g",function(){return v}),r.d(t,"J",function(){return O}),r.d(t,"y",function(){return w}),r.d(t,"c",function(){return I}),r.d(t,"R",function(){return _}),r.d(t,"I",function(){return j}),r.d(t,"w",function(){return C}),r.d(t,"t",function(){return x}),r.d(t,"r",function(){return E}),r.d(t,"Q",function(){return N}),r.d(t,"d",function(){return k}),r.d(t,"P",function(){return D}),r.d(t,"O",function(){return A}),r.d(t,"l",function(){return R}),r.d(t,"j",function(){return L}),r.d(t,"F",function(){return M}),r.d(t,"G",function(){return F}),r.d(t,"m",function(){return V}),r.d(t,"p",function(){return U}),r.d(t,"z",function(){return B}),r.d(t,"H",function(){return W}),r.d(t,"s",function(){return H}),r.d(t,"K",function(){return $}),r.d(t,"A",function(){return G}),r.d(t,"e",function(){return z}),r.d(t,"a",function(){return K}),r.d(t,"n",function(){return q}),r.d(t,"u",function(){return J});const n="new_top_sort",o="redesign_go_to_home",s="desktop_m2m_logged_out",i="desktop_subscribe_button",d="hero_on_popular",c="mattknox_prime",u="typeahead_redesign",a="categories_entrypoint_redesign",l="dn_perms_current_pre_prompt",f="rails_search_results_redesign",m="rails_search_results_follow_button",p="disable_rails_hero_unit",b="follow_post_pd",g="desktop_seo_post_test_v1",h="redesign_explore_logged_out_v2",y="trending_entry_points_holdout_redesign",v="desktop_m2m_logged_out_v1-5",O="subreddit_top_content",w="premium_page_header",I="coins_page_header";var S;!function(e){e.Control1="control_1",e.Control2="control_2"}(S||(S={}));const _=e=>e===S.Control1||e===S.Control2;var j,T,P,C,x,E,N,k,D,A,R,L,M,F,V,U,B,W,H,$,G,z;!function(e){e.HomeAfter0="home_after_0",e.HomeAfter3="home_after_3",e.HomeAfter5="home_after_5"}(j||(j={})),function(e){e.Treatment1="treatment_1"}(T||(T={})),function(e){e.Treatment1="treatment_1"}(P||(P={})),function(e){e.Treatment1="treatment_1"}(C||(C={})),function(e){e.ACInFeed="ac_in_feed",e.ACAtBottom="ac_at_bottom",e.ACNone="ac_none"}(x||(x={})),function(e){e.Treatment1="treatment_1"}(E||(E={})),function(e){e.Treatment1="treatment_1"}(N||(N={})),function(e){e.Treatment1="treatment_1"}(k||(k={})),function(e){e.Treatment1="treatment_1"}(D||(D={})),function(e){e.TestTreatment1="toast",e.TestTreatment2="popup",e.TestTreatment3="knoxses"}(A||(A={})),function(e){e.Join="join",e.AddToHome="addtohome",e.Subscribe="subscribe",e.Follow="follow"}(R||(R={})),function(e){e.SystemDialogue="system_dialogue",e.DarkSystemDialogue="dark_system_dialogue",e.PrePrompt="pre_prompt",e.DarkPrePrompt="dark_pre_prompt"}(L||(L={})),function(e){e.Treatment1="treatment_1"}(M||(M={})),function(e){e.Treatment1="treatment_1"}(F||(F={})),function(e){e.Disabled="disabled"}(V||(V={})),function(e){e.FollowPost="follow_post",e.FollowPostTooltip="follow_post_tooltip",e.FollowPostTooltipHover="follow_post_tooltip_hover"}(U||(U={})),function(e){e.LeftRightRailSwap="left_right_rail_swap",e.DUOnBottom="du_on_bottom",e.ListingOnBottom="listing_on_bottom"}(B||(B={})),function(e){e.ExploreOld="explore_old",e.ExploreStandardSearchPost="explore_standard_search_post",e.ExploreStandardSearchCommunity="explore_standard_search_community",e.ExploreTrendingSearchCommunity="explore_trending_search_community",e.ExploreTrendingDUCommunity="explore_trending_du_community",e.ExploreTrendingDUCommunityPopular="explore_trending_du_community_pop"}(W||(W={})),function(e){e.TwoVisitMilestonePersistentTooltip="2_visit_milestone_persistent_tooltip",e.TwoVisitMilestoneNoPersistentTooltip="2_visit_milestone_no-persistent_tooltip",e.TwoVisitMilestonePersistentNoTooltip="2_visit_milestone_persistent_no-tooltip",e.ThreeVisitMilestonePersistentTooltip="3_visit_milestone_persistent_tooltip"}(H||(H={})),function(e){e.ShowTopContent="show_top_content"}($||($={})),function(e){e.LearnAward="learn_award",e.LearnGold="learn_gold",e.PriceAward="price_award",e.PriceGold="price_gold"}(G||(G={})),function(e){e.PostGift="post_gift",e.PostRecognize="post_recognize",e.SnoosGift="snoos_gift",e.SnoosRecognize="snoos_recognize"}(z||(z={}));const K={[v]:[H.TwoVisitMilestonePersistentTooltip,H.TwoVisitMilestoneNoPersistentTooltip,H.TwoVisitMilestonePersistentNoTooltip,H.ThreeVisitMilestonePersistentTooltip],[w]:[G.LearnAward,G.LearnGold,G.PriceAward,G.PriceGold],[I]:[z.PostGift,z.PostRecognize,z.SnoosGift,z.SnoosRecognize],[b]:[U.FollowPost,U.FollowPostTooltip,U.FollowPostTooltipHover],desktop_notif_perms_current:[T.Treatment1],desktop_notif_perms_new:[P.Treatment1],[d]:[E.Treatment1],[n]:[C.Treatment1],[s]:[x.ACInFeed,x.ACAtBottom,x.ACNone],[l]:[L.SystemDialogue,L.DarkSystemDialogue,L.PrePrompt,L.DarkPrePrompt],[i]:[R.Join,R.Follow,R.Subscribe,R.AddToHome],[y]:[D.Treatment1],[u]:[N.Treatment1],[a]:[k.Treatment1],[o]:[j.HomeAfter0,j.HomeAfter3,j.HomeAfter5],[f]:[M.Treatment1],[m]:[F.Treatment1],[p]:[V.Disabled],[g]:[B.LeftRightRailSwap,B.DUOnBottom,B.ListingOnBottom],[h]:[W.ExploreOld,W.ExploreStandardSearchPost,W.ExploreStandardSearchCommunity,W.ExploreTrendingSearchCommunity,W.ExploreTrendingDUCommunity,W.ExploreTrendingDUCommunityPopular],[O]:[$.ShowTopContent]},q=new Set([s,d,o,h]),Y=e=>e.reduce((e,t,r)=>(e[t]=r+1,e),{}),J=(Y(["NFL","Gaming","Memes","Funny","Sports","Wholesome","Video Games","Pics & Gifs","Mindblowing","Videos","News","Cringe","Schadenfreude","Science","Relationships","Learning","Photography","Vroom","Tech","Crypto","TV","Aww","Popcorn","Parenting","Discussion","Food","Beauty","Outdoors","Fashion","Books & Writing","Art & Design","Nostalgia","Music","Travel","Health & Fitness"]),Y(["NFL","Discussion","Relationships","Sports","Gaming","News","Beauty","Health & Fitness","Learning","Parenting","Tech","Crypto","Science","Video Games","TV","Popcorn","Vroom","Food","Outdoors","Fashion","Books & Writing","Art & Design","Nostalgia","Music","Travel","Photography","Funny","Wholesome","Memes","Aww","Pics & Gifs","Mindblowing","Videos","Cringe","Schadenfreude"]))},"./src/reddit/constants/news.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"d",function(){return i}),r.d(t,"e",function(){return d}),r.d(t,"f",function(){return c}),r.d(t,"g",function(){return u});const n=100,o=4,s=300,i=480,d=5,c=",",u="all stories"},"./src/reddit/constants/originalContent.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"c",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"e",function(){return i}),r.d(t,"a",function(){return d});const n="all",o="none",s="(oc-subreddits)",i=8,d=3},"./src/reddit/constants/page.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"j",function(){return o}),r.d(t,"f",function(){return s}),r.d(t,"g",function(){return i}),r.d(t,"h",function(){return d}),r.d(t,"d",function(){return c}),r.d(t,"a",function(){return u}),r.d(t,"e",function(){return a}),r.d(t,"c",function(){return l}),r.d(t,"k",function(){return f}),r.d(t,"i",function(){return m}),r.d(t,"l",function(){return p});const n="(frontpage)",o="(original)",s="(modListing)",i="(modListingFiltered)",d="(news)",c="(hero)",u="(explore)";var a;!function(e){e.Frontpage="frontpage",e.All="all",e.Mod="mod",e.Friends="friends",e.Popular="popular",e.News="news",e.Explore="explore",e.PostDetail="postDetail"}(a||(a={}));const l=a.Frontpage,f=a.Popular,m=a.News;var p;!function(e){e[e.Top=0]="Top",e[e.Posts=1]="Posts",e[e.Listings=2]="Listings"}(p||(p={}))},"./src/reddit/constants/parameters.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"g",function(){return i}),r.d(t,"h",function(){return d}),r.d(t,"k",function(){return c}),r.d(t,"l",function(){return u}),r.d(t,"m",function(){return a}),r.d(t,"n",function(){return l}),r.d(t,"c",function(){return f}),r.d(t,"o",function(){return m}),r.d(t,"q",function(){return p}),r.d(t,"s",function(){return b}),r.d(t,"f",function(){return g}),r.d(t,"t",function(){return h}),r.d(t,"u",function(){return y}),r.d(t,"r",function(){return v}),r.d(t,"e",function(){return O}),r.d(t,"j",function(){return w}),r.d(t,"i",function(){return I}),r.d(t,"p",function(){return S});const n="category",o="category_name",s="draft",i="include_over_18",d="is_multi",c="moderator",u="action",a="newUser",l="q",f="connected_account",m="restrict_sr",p="sort",b="t",g="geo_filter",h="verified",y="verifiedEmail",v="source",O="feature",w=["ad","adHash","clickUrl",b,O],I=["after","before"],S=["include_over_18","q","restrict_sr","sort","t","type",O,d,n,o,v]},"./src/reddit/constants/spezModal.ts":function(e,t,r){"use strict";r.d(t,"f",function(){return n}),r.d(t,"d",function(){return o}),r.d(t,"e",function(){return s}),r.d(t,"a",function(){return i}),r.d(t,"b",function(){return d}),r.d(t,"c",function(){return c});const n="spezmodal",o=1543464e6,s=15435324e5,i="https://dontwreckthe.net/",d="http://out.reddit.com/t3_9wq29y?url=https%3A%2F%2Fdontwreckthe.net%2F&token=AQAAlrECXF4W2BwhKoVC8oBtUxqfZLeQRSHjZFVyr8BlnsVS2AjP&app_name=web2x",c=1543680406e3},"./src/reddit/constants/things.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o});const n="t1_",o="t3_"},"./src/reddit/constants/tracking.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return o});const n={CLICK:"click",COMPLETE:"complete",START:"start",STOP:"stop",VIEW:"view"},o="media-element"},"./src/reddit/constants/video.ts":function(e,t,r){"use strict";r.d(t,"k",function(){return n}),r.d(t,"l",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"d",function(){return d}),r.d(t,"e",function(){return c}),r.d(t,"a",function(){return u}),r.d(t,"i",function(){return a}),r.d(t,"g",function(){return l}),r.d(t,"h",function(){return f}),r.d(t,"f",function(){return m}),r.d(t,"j",function(){return p});const n=250,o=500,s=25,i=50,d=75,c=95,u=100,a=[s,i,d,c,u],l=3,f=5,m=10,p=[l,f,m]},"./src/reddit/contexts/PageLayer/index.tsx":function(e,t,r){"use strict";r.d(t,"a",function(){return c}),r.d(t,"w",function(){return a});var n=r("./node_modules/react/index.js"),o=r.n(n),s=r("./src/reddit/contexts/PageLayer/selectors.ts");r.d(t,"b",function(){return s.a}),r.d(t,"c",function(){return s.b}),r.d(t,"d",function(){return s.c}),r.d(t,"e",function(){return s.d}),r.d(t,"f",function(){return s.e}),r.d(t,"g",function(){return s.f}),r.d(t,"h",function(){return s.g}),r.d(t,"i",function(){return s.h}),r.d(t,"j",function(){return s.i}),r.d(t,"k",function(){return s.j}),r.d(t,"l",function(){return s.k}),r.d(t,"m",function(){return s.l}),r.d(t,"n",function(){return s.m}),r.d(t,"o",function(){return s.n}),r.d(t,"p",function(){return s.o}),r.d(t,"q",function(){return s.p}),r.d(t,"r",function(){return s.q}),r.d(t,"s",function(){return s.r}),r.d(t,"t",function(){return s.s}),r.d(t,"u",function(){return s.t}),r.d(t,"v",function(){return s.u}),r.d(t,"x",function(){return s.v}),r.d(t,"y",function(){return s.w}),r.d(t,"z",function(){return s.x}),r.d(t,"A",function(){return s.y}),r.d(t,"B",function(){return s.z}),r.d(t,"C",function(){return s.A}),r.d(t,"D",function(){return s.B}),r.d(t,"E",function(){return s.C}),r.d(t,"F",function(){return s.D}),r.d(t,"G",function(){return s.E}),r.d(t,"H",function(){return s.F}),r.d(t,"I",function(){return s.G}),r.d(t,"J",function(){return s.H}),r.d(t,"K",function(){return s.I}),r.d(t,"L",function(){return s.J}),r.d(t,"M",function(){return s.K}),r.d(t,"N",function(){return s.L}),r.d(t,"O",function(){return s.M}),r.d(t,"P",function(){return s.N}),r.d(t,"Q",function(){return s.O}),r.d(t,"R",function(){return s.P}),r.d(t,"S",function(){return s.Q}),r.d(t,"T",function(){return s.R}),r.d(t,"U",function(){return s.S}),r.d(t,"V",function(){return s.T}),r.d(t,"W",function(){return s.U}),r.d(t,"X",function(){return s.V});var i,d=(i="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,n){var o=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&o)for(var d in o)void 0===t[d]&&(t[d]=o[d]);else t||(t=o||{});if(1===s)t.children=n;else if(s>1){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+3];t.children=c}return{$$typeof:i,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}});const c=o.a.createContext(null),u=(e,t)=>void 0!==t?Object.keys(t).reduce((r,n)=>(r[n]=t[n](e),r),{}):{pageLayer:e};function a(e){return t=>(class extends o.a.Component{constructor(){super(...arguments),this.renderChildren=(r=>{const n=Object.assign({},this.props,u(r,e));return o.a.createElement(t,n)})}render(){return d(c.Consumer,{},void 0,this.renderChildren)}})}},"./src/reddit/contexts/PageLayer/selectors.ts":function(e,t,r){"use strict";var n=r("./node_modules/lodash/isEmpty.js"),o=r.n(n),s=r("./node_modules/reselect/lib/index.js"),i=r("./src/lib/constants/index.ts"),d=r("./src/lib/isFakeSubreddit/index.ts"),c=r("./src/lib/objectSelector/index.ts"),u=r("./src/lib/search/index.ts"),a=r("./src/reddit/constants/categories.tsx"),l=r("./src/reddit/constants/page.ts"),f=r("./src/reddit/constants/parameters.ts"),m=r("./src/reddit/constants/postLayout.ts"),p=r("./src/reddit/constants/posts.ts");const b={access:!0,config:!0,flair:!0,mail:!0,posts:!0,wiki:!0,chatConfig:!0,chatOperator:!0,all:!0};var g=r("./src/reddit/helpers/name/index.ts"),h=r("./src/reddit/models/Flair/index.ts"),y=r("./src/reddit/models/Image/index.tsx"),v=r("./src/reddit/selectors/monthsToMinutes.ts"),O=r("./src/reddit/selectors/multireddit.ts"),w=r("./src/reddit/selectors/postCollection.ts"),I=r("./src/reddit/selectors/postDraft.ts"),S=r("./src/reddit/selectors/profile.ts"),_=r("./src/reddit/selectors/subreddit.ts"),j=r("./src/reddit/selectors/subredditModeration.ts"),T=r("./src/reddit/selectors/user.ts");r.d(t,"f",function(){return P}),r.d(t,"A",function(){return C}),r.d(t,"C",function(){return x}),r.d(t,"H",function(){return E}),r.d(t,"N",function(){return N}),r.d(t,"z",function(){return k}),r.d(t,"F",function(){return D}),r.d(t,"B",function(){return A}),r.d(t,"T",function(){return R}),r.d(t,"x",function(){return L}),r.d(t,"w",function(){return M}),r.d(t,"G",function(){return V}),r.d(t,"K",function(){return B}),r.d(t,"I",function(){return W}),r.d(t,"E",function(){return H}),r.d(t,"L",function(){return $}),r.d(t,"y",function(){return G}),r.d(t,"c",function(){return z}),r.d(t,"a",function(){return K}),r.d(t,"d",function(){return q}),r.d(t,"p",function(){return Y}),r.d(t,"s",function(){return J}),r.d(t,"o",function(){return Q}),r.d(t,"n",function(){return Z}),r.d(t,"q",function(){return ee}),r.d(t,"r",function(){return te}),r.d(t,"J",function(){return re}),r.d(t,"i",function(){return ne}),r.d(t,"j",function(){return oe}),r.d(t,"k",function(){return se}),r.d(t,"l",function(){return ie}),r.d(t,"D",function(){return de}),r.d(t,"h",function(){return ce}),r.d(t,"P",function(){return ue}),r.d(t,"R",function(){return ae}),r.d(t,"U",function(){return le}),r.d(t,"V",function(){return fe}),r.d(t,"M",function(){return me}),r.d(t,"O",function(){return pe}),r.d(t,"t",function(){return be}),r.d(t,"Q",function(){return ge}),r.d(t,"b",function(){return he}),r.d(t,"u",function(){return ye}),r.d(t,"v",function(){return ve}),r.d(t,"S",function(){return Oe}),r.d(t,"e",function(){return we}),r.d(t,"g",function(){return Ie}),r.d(t,"m",function(){return Se});const P=e=>e?e.url:"",C=e=>!!(e&&e.routeMatch&&i.r.FRONTPAGE.includes(e.routeMatch.route.chunk)),x=e=>!(!e||!e.routeMatch||e.routeMatch.route.chunk!==i.r.ORIGINAL_CONTENT),E=e=>e&&e.routeMatch&&[i.r.FRONTPAGE,i.r.MULTIREDDIT,i.r.SUBREDDIT].includes(e.routeMatch.route.chunk),N=(e,{pageLayer:t})=>{if(!t||!E(t)||!t.routeMatch)return null;const r=t.routeMatch.match.params.subredditName;if(!r)return null;const n=Object(_.v)(e,{subredditName:r});return n?n.name:r},k=(e,{pageLayer:t})=>{const r=N(e,{pageLayer:t});return!!r&&Object(d.a)(r)},D=(e,{pageLayer:t})=>{const r=N(e,{pageLayer:t}),n=C(t),o=Object(T.F)(e);return r===l.k||!o&&n&&!Object(v.j)(e)},A=(e,{pageLayer:t})=>{const r=N(e,{pageLayer:t});return!(r&&!Object(d.a)(r))},R=e=>{if(!e||!e.routeMatch)return;return e.routeMatch.route.meta.name},L=e=>!(!e||!e.meta||e.meta.name!==i.Rb.COMMENTS),M=e=>!!(e&&e.meta&&e.meta.name===i.Rb.COMMENTS&&e.urlParams.partialCommentId),F=e=>!(!e||!e.meta||e.meta.name!==i.Rb.COMMENTS||p.b[e.urlParams.routePrefix]!==p.a.PROFILE),V=e=>!(!e||!e.meta||e.meta.name!==i.Rb.POST_CREATION),U=e=>!(!e||!e.meta||e.meta.name!==i.Rb.POST_DRAFT),B=e=>!!(e&&e.meta&&i.Db.has(e.meta.name)),W=e=>!!(e&&e.meta&&i.Bb.has(e.meta.name)),H=e=>!(!e||!e.meta||e.meta.name!==i.Rb.PARTNER_SUBREDDIT_CONNECTION),$=e=>!!(e&&e.meta&&i.ic.has(e.meta.name)),G=e=>!(!e||!e.meta||e.meta.name!==i.Rb.EXPLORE),z=e=>{const t=e&&e.urlParams;return t?t.multiredditName:void 0},K=e=>{const t=e&&e.urlParams;return t?t.categoryName:void 0},q=(e,{pageLayer:t})=>{const r=z(t);return r?Object(O.b)(e,{multiredditName:r}):null},Y=(e,{pageLayer:t})=>{if(U(t)){const r=ve(t);return Object(I.e)(e,{draftId:r})}const r=t&&t.urlParams;return r?r.subredditName:void 0},J=(e,{pageLayer:t})=>{if(t&&t.urlParams&&p.b[t.urlParams.routePrefix]===p.a.PROFILE)return null;const r=Y(e,{pageLayer:t});return r?Object(_.v)(e,{subredditName:r}):null},Q=(e,{pageLayer:t})=>{const r=Y(e,{pageLayer:t});return r?Object(_.z)(e,r):null},X=(e,{pageLayer:t})=>{const r=Q(e,{pageLayer:t});return r?e.postFlair[r]:null},Z=(e,{pageLayer:t})=>{const r=X(e,{pageLayer:t});return!(!r||!r.templateIds)&&r.templateIds.length>0},ee=(e,t)=>J(e,t)||se(e,t),te=(e,{pageLayer:t})=>{const r=X(e,{pageLayer:t});return r?r.displaySettings.position:h.a.Right},re=e=>!!(e&&e.routeMatch&&i.Eb.has(e.routeMatch.route.meta.name))||F(e),ne=e=>{const t=e&&e.urlParams;return t?t.profileName:void 0},oe=e=>{if(e&&e.routeMatch&&R(e)===i.Rb.PROFILE_PRIVATE)return e.routeMatch.match.params.listingType},se=(e,{pageLayer:t})=>{const r=F(t)?Y(e,{pageLayer:t}):ne(t);return r?Object(S.h)(e,{profileName:r}):null},ie=(e,{pageLayer:t})=>{const r=F(t)?Y(e,{pageLayer:t}):ne(t);return r?Object(T.bb)(e,{userName:r}):null},de=(e,{pageLayer:t})=>{const r=se(e,{pageLayer:t}),n=Object(T.j)(e),o=n&&(n.username?n.username:n.displayText);return!(!o||!r||o!==r.name)},ce=(e,{pageLayer:t})=>{if(de(e,{pageLayer:t}))return b},ue=(e,{pageLayer:t})=>{if(!t)return;const r=t.key;return e.platform.referrers[r]},ae=e=>e?e.queryParams:{},le=e=>{const t=R(e);if(e&&t&&t===i.Rb.SEARCH_RESULTS)return e.queryParams[f.b]?Object(u.a)(e.queryParams[f.b]):Object(u.a)(e.queryParams[f.n])},fe=e=>e?e.url:"",me=(e,{pageLayer:t})=>{let r;if(void 0!==(r=void 0===t?e.platform.currentPage:t)){const n=R(r);if(n===i.Rb.POST_CREATION)return m.f.Large;if(n===i.Rb.SUBREDDIT_WIKI)return m.f.Classic;if(n===i.Rb.EXPLORE)return m.f.Classic;if(n===i.Rb.SUBREDDIT&&e.user.prefs.rememberCommunityLayout){const r=((e,{pageLayer:t})=>{const r=Q(e,{pageLayer:t});if(r){const t=e.user.prefs.subreddit[r];if(t&&t.layout)return t.layout}return null})(e,{pageLayer:t});if(r)return m.a[r]}if(i.Eb.has(n)){return pe(e,{pageLayer:t})?n===i.Rb.PROFILE_POSTS||n===i.Rb.PROFILE_PRIVATE?m.f.Classic:m.f.Compact:n===i.Rb.PROFILE_OVERVIEW?m.f.Large:m.f.Classic}}if(e.user.prefs.layout)return m.a[e.user.prefs.layout];{const t=Object(T.F)(e),n=!!r&&R(r)===i.Rb.ORIGINAL_CONTENT;return!t||n?m.f.Large:m.f.Classic}},pe=(e,{pageLayer:t})=>!!Object(j.s)(e)||!(!t||!t.meta)&&t.meta.name===i.Rb.MODQUEUE_PAGES,be=(e,{pageLayer:t})=>{const r=Q(e,{pageLayer:t});if(!r)return!0;const n=e.subreddits.about[r];return!n||n.showMedia},ge=Object(c.a)((e,{pageLayer:t,postId:r})=>{const n=e.posts.models[r];if(!n)return;const o=n.flair.find(e=>Object(h.k)(e.type));if(!o||!o.templateId)return;const s=Q(e,{pageLayer:t});if(!s||s!==n.belongsTo.id)return;if(!e.structuredStyles.models[s])return;if(t&&t.meta&&t.meta.name===i.Rb.MODERATION_PAGES)return;let d=e.structuredStyles.flairTemplate.draft[o.templateId]||e.structuredStyles.flairTemplate.models[o.templateId];if(!d)return;const c=!e.structuredStyles.isEditing&&Object(T.O)(e),u=t&&t.locationState&&t.locationState.isOverlay;if(c||u){if(!d.postPlaceholderImage)return;d={postPlaceholderImage:d.postPlaceholderImage}}return Object.keys(d).filter(e=>d[e]!==y.c).reduce((e,t)=>(e[t]=d[t],e),{})}),he=e=>e&&e.urlParams.sort||i.X.HOT,ye=e=>{if(!e)return i.sc;const t=f.s in e.queryParams&&e.queryParams[f.s].toUpperCase();return"string"==typeof t&&t in i.rc?i.rc[t]:i.sc},ve=e=>{if(e)return U(e)?e.urlParams.draftId:e.queryParams.draft},Oe=e=>e&&e.queryParams||{},we=(e,{pageLayer:t})=>{const r=Y(e,{pageLayer:t});if(r)return a.b[a.c[Object(g.f)(r)]]},Ie=(e,{pageLayer:t})=>{const r=(e=>e?e.queryParams.collection:void 0)(t);return r?Object(w.l)(e,{collectionId:r}):void 0},Se=Object(s.createSelector)(Y,e=>e.categories.models,e=>e.subreddits.models,e=>e.subreddits.byCategory,(e,t,r,n)=>{if(!e)return;const s=Object.keys(t).find(t=>{const s=n[t];if(o()(s))return!1;const i=s.map(e=>r[e].name);return!o()(i)&&Object(a.d)(i)===e});return s?t[s]:void 0})},"./src/reddit/featureFlags/communityTopics.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("./src/reddit/selectors/platform.ts");const o=new Set(["community_topics_test","0perspective","popydos","asoiaf","mls","aquariums","thenetherlands","leagueoflegends","christianmetal","earthporn","space","retrogaming","engineering","wtingtest","bettafish","machinelearning","learnmachinelearning","learnpython","dataisbeautiful","python","sql","parenting","pregnant","mommit","predaddit","tryingforababy","roadcam","idiotsincars","sweatypalms","nonononoyes","absoluteunits","aww","masterreturns","rarepuppers","dogs","skincareaddiction","femalefashionadvice","malefashionadvice","makeupaddiction","girlgamers","rocketleagueesports","rocketleague","thedivision","destinylfg","fortnitebr","fortnitecompetitive","fortnite","overwatch","overwatchleague","destinythegame","reddeadredemption","rainbow6","dota2","globaloffensive","changemyview","neutralpolitics","politics","racism","asktrumpsupporters","mutualsupport","crossdressing","gay_irl","the_mueller","sandersforpresident","wayofthebern","voteblue","conservative","democrats","libertarian"]),s=e=>{const t=Object(n.e)(e);return!!t&&o.has(t.toLowerCase())}},"./src/reddit/featureFlags/index.ts":function(e,t,r){"use strict";var n=r("./node_modules/lodash/isNil.js"),o=r.n(n),s=r("./node_modules/lodash/mapValues.js"),i=r.n(s),d=r("./src/lib/getParsedUserAgent/index.ts"),c=r("./src/reddit/selectors/user.ts"),u=r("./node_modules/crypto-js/sha256.js"),a=r.n(u),l=r("./src/reddit/constants/spezModal.ts");var f=r("./src/reddit/selectors/runTimeEnvVars.ts");const m=e=>t=>!e(t),p=(...e)=>t=>e.some(e=>e(t)),b=(...e)=>t=>e.every(e=>e(t)),g=e=>t=>(({user:e},t)=>{const r=e&&e.features;return!(!r||!r[t])})(t,e),h=(e,t)=>r=>{const n=r.meta.pageloadServerTime;return n>e&&n<t},y=e=>!1,v=e=>!1,O=c.D,w=p(v,f.c),I=e=>!("new.reddit.com"!==window.location.host),S=p(m(e=>e.user&&e.user.prefs&&e.user.prefs.profileOptOut),I),_=e=>!!e.user.session,j=(h(l.d,l.e),h(15492132e5,15492561e5));var T=r("./src/reddit/featureFlags/communityTopics.ts"),P=r("./src/reddit/selectors/platform.ts");const C=new Set(["communitycommunity","LssGoldNormal","gold_testing"]),x=new Set(["redesign","legaladvice","askwomen","exmormon","bestoflegaladvice","relationships","makeupaddiction","rupaulsdragrace","politicalhumor","amitheasshole","christianity"]),E=new Set(["ethtrader","funkygoose","karma_chameleon","pointsrtesty"]),N=new Set(["ethtrader","funkygoose","funkygooseeggs","karma_chameleon","modtestmeyourpoints","mountainbiking","nr4madastest","pointsrtesty","project_kairos","qameplease","stellar"]),k=new Set(["ethtrader","funkygoose","stellar"]),D=new Set(["ethtrader","funkygoose","stellar"]),A=new Set(["fortnitebr"]),R=new Set(["ethtrader","funkygoose","funkygooseeggs","karma_chameleon","modtestmeyourpoints","mountainbiking","nr4madastest","pointsrtesty","project_kairos","qameplease","stellar"]),L=new Set(["ethtrader","funkygoose","funkygooseeggs","karma_chameleon","modtestmeyourpoints","mountainbiking","nr4madastest","pointsrtesty","project_kairos","qameplease","stellar"]),M=new Set(["ethtrader","funkygoose","mountainbiking","stellar"]),F=new Set(["funkygoose"]),V=new Set(["funkygoose","shittymorph"]),U=(...e)=>t=>{const r=Object(P.e)(t);if(r){for(const t of e)if(!t.has(r.toLowerCase()))return!1;return!0}return!1},B=U(R,E),W=U(R,L,N),H=U(R,k),$=U(R,D),G=U(A),z=U(R),K=U(R,L),q=U(R,M),Y=U(R,F),J=U(V);r.d(t,"d",function(){return X}),r.d(t,"a",function(){return Z}),r.d(t,"f",function(){return ee}),r.d(t,"g",function(){return re}),r.d(t,"b",function(){return ne}),r.d(t,"c",function(){return oe}),r.d(t,"e",function(){return se});const Q={introModal:m(w),jiraTicket:O,markdownMode:w,modQueue:p(w,O),newRedditSubdomain:I,spBadges:B,spGovPolls:W,spHarberger:H,spLeaderboard:$,spLoadtest:G,spPoints:z,spPolls:K,spPublicPoints:q,spSpinoffs:Y,spSupport:J,communityAwards:p(g("community_awards"),w),createCommunityAwards:p(w,b(e=>{const t=Object(P.e)(e);return!!t&&C.has(t.toLowerCase())},g("community_awards"))),communityTopics:T.a,events:p(g("event_posts"),w),collections:p(g("collections"),w),rteVideoPoster:w,userSeenSubredditChatFtux:c.V,userInChat:c.y,userInSubredditChat:c.B,userInChatUserSettings:c.z,devAndStagingWatermark:w,fpsMeter:y,rabbitHole:y,news:e=>!0,redesignProfiles:S,measureScrollFPS:O,showVerboseErrors:p(w,O),uappBanner:y,canProxyGild:p(g("can_proxy_gild"),w),experiments:b(_,m(v)),enableGraphQl:_,importExportThemes:O,grantUserFlair:w,spezModal:y,superbOwl:j,enableShadowMode:(e=>t=>(({user:e},t)=>{if(0===t)return!1;const r=e&&e.loid.loid;return!!r&&parseInt(a()(r).toString(),16)%1e3<10*t})(t,e))(25),useGraphQLInFrontpage:O,emojis:p(w,O),pushNotificationsBrowserSupported:e=>{const t=navigator.userAgent,r=Object(d.a)(t).browser.version;if(!r)return!1;let n;try{n=r.split(/[^\d]/)[0]}catch(o){return!1}return!!(Object(d.b)(t)&&parseInt(n)>=50&&Object(d.c)(t))||(!!(Object(d.d)(t)&&parseInt(n)>52&&Object(d.c)(t))||!!(Object(d.f)(t)&&parseInt(n)>=27&&Object(d.c)(t)))},enableCrowdControlMode:e=>{const t=Object(P.e)(e);return!!t&&x.has(t.toLowerCase())},__requiredDoNotRemove:y},X=i()(Q,(e,t)=>r=>{const n=r.featureFlags.overrides[t];return o()(n)?e(r):n}),Z=Object.keys(Q),ee=e=>e.filter(e=>"__requiredDoNotRemove"!==e),te=/^feature_(.*)$/i,re=e=>{const t=e.match(te);if(null!==t)return t[1]},ne="FEATURES__FEATURE_SET",oe="FEATURES__FEATURE_TOGGLED",se=({featureName:e})=>(t,r)=>{const n=(0,X[e])(r());t((({featureName:e,currentValue:t})=>({type:oe,payload:{featureName:e,currentValue:t}}))({featureName:e,currentValue:n}))}},"./src/reddit/helpers/chooseVariant/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return l}),r.d(t,"b",function(){return p});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/lib/env/index.ts"),s=r("./src/reddit/constants/experiments.ts"),i=r("./src/reddit/selectors/telemetry.ts"),d=r("./src/reddit/selectors/user.ts"),c=r("./src/telemetry/index.ts"),u=r("./src/telemetry/models/Event.ts");const a=Object(n.createSelector)(e=>e.user.experiments.models,(e,t)=>t.experimentName,(e,t)=>e.find(({name:e})=>e.toLowerCase()===t.toLowerCase())),l=()=>!0,f=(e,t,r)=>{Object(c.a)(Object.assign({source:u.d.Experiment,action:u.c.Expose,noun:"user_id",actionInfo:void 0,app:i.app(),experiment:t,referrer:void 0,session:void 0,user:e},r))},m={},p=Object(n.createSelector)(a,(e,{experimentName:t})=>{const r=Object(d.j)(e),n=!!r&&r.isEmployee;return Object(o.a)()||n||s.n.has(t.toLowerCase())?e.user.experiments.overrides[t.toLowerCase()]:void 0},e=>i.user(e),(e,t)=>t.expEventOverride,(e,t)=>t.customPayloadMaker&&t.customPayloadMaker(e),(e,t)=>t.experimentEligibilitySelector(e),(e,t)=>t.experimentName,(e,t,r,n,o={},s,i)=>{if(!s)return;if(!e)return t&&!1!==n&&f(r,{id:-1,isOverride:!0,name:i,variant:t,version:"-1"},o),t;const d=e.name,c=e.id,u=void 0!==t,a=u?t:e.variant;if(a){const t=-1===c,s=m[d]===a;t||s||!1===n||(f(r,Object.assign({},e,{isOverride:u,variant:a}),o),m[d]=a)}return u?t:a})},"./src/reddit/helpers/dom/index.ts":function(e,t,r){"use strict";r.d(t,"e",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"g",function(){return d}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return u}),r.d(t,"d",function(){return a}),r.d(t,"f",function(){return l});var n=r("./node_modules/lodash/map.js"),o=r.n(n);const s=()=>{const e=document.getSelection();return!!e&&(e.rangeCount>0&&e.getRangeAt(0).toString().length>0)},i=()=>s()?(()=>{const e=document.getSelection();if(!e)return[];const t=e.getRangeAt(0).cloneContents().childNodes;return o()(t,e=>e.textContent||"")})():null,d=(e,t)=>{const r=document.createRange();return r.selectNode(t),e.compareBoundaryPoints(Range.END_TO_START,r)<0&&e.compareBoundaryPoints(Range.START_TO_END,r)>0},c=e=>{const t=window.getSelection();if(1!==t.rangeCount)return;const r=t.getRangeAt(0);if(!d(r,e))return;const n=r.startContainer,o=r.startOffset,s=r.endContainer,i=r.endOffset,c=document.createRange();c.selectNode(e);let u=!0;if(-1===c.compareBoundaryPoints(Range.START_TO_START,r)&&(c.setStart(n,o),u=!1),1===c.compareBoundaryPoints(Range.END_TO_END,r)&&(c.setEnd(s,i),u=!1),u)return[e];const a=document.createElement("div");return a.appendChild(c.cloneContents()),[...a.childNodes]},u=(e,t,r)=>{let n=e;for(;n&&(!r||!r(n));){if(n&&t(n))return n;n=n.parentElement}},a=e=>e&&e.parentElement&&u(e.parentElement,e=>"static"!==window.getComputedStyle(e).getPropertyValue("position")),l=e=>{if(!e||e.hidden)return!0;if(window.getComputedStyle){const t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)return!0}return!!e.parentElement&&l(e.parentElement)}},"./src/reddit/helpers/getPostFromRouteMatch/index.ts":function(e,t,r){"use strict";var n=r("./src/reddit/models/Post/index.ts"),o=r("./src/lib/constants/index.ts");t.a=((e,t)=>{if(!t){const r=e.platform.currentPage;if(!r)return null;t=r.routeMatch}if(t.route.meta.name===o.Rb.COMMENTS){const r=t.match.params.partialPostId,o=Object(n.f)(r);return e.posts.models[o]}return null})},"./src/reddit/helpers/getRichTextContent.ts":function(e,t,r){"use strict";var n=r("./src/lib/env/index.ts"),o=r("./src/lib/raven/index.ts"),s=r("./src/reddit/helpers/isComment.ts"),i=r("./src/reddit/models/RichTextJson/nodeMakers.ts");const d={document:"[Unable to render content]".split("\n").map(e=>Object(i.k)([Object(i.r)(e,null)]))};const c=(e,t)=>{const r=`getRichTextContent: ${e} (in ${Object(s.a)(t.id)?"comment":"post"})`;Object(o.c)(r,{extra:{info:{id:t.id,permalink:t.permalink,media:t.media}},tags:{rtjson:"getting_content"}}),Object(n.b)()||console.log(r)};t.a=((e,t)=>{const r=void 0===t?d:t,n=e.media;if(!n)return c("Media object is missing",e),r;if("rtjson"!==n.type)return c("Media object type is not rtjson",e),r;const o=n.richtextContent;return o?Array.isArray(o.document)?o:(c("Invalid richtextContent document",e),r):(c("Missing richtextContent property",e),r)})},"./src/reddit/helpers/getS3KeyFromUrl/index.ts":function(e,t,r){"use strict";var n=r("./node_modules/url/url.js"),o=r.n(n);t.a=(e=>{var t=o.a.parse(e).pathname;const r=void 0===t?"":t;return r.startsWith("/")?r.slice(1):r})},"./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx":function(e,t,r){"use strict";var n=r("./src/reddit/models/StructuredStyles/index.ts");const o={};t.a=(e=>e.subredditOrProfile?{url:e.subredditOrProfile.communityIcon||e.subredditOrProfile.icon.url,color:Object(n.e)(e.subredditOrProfile)}:o)},"./src/reddit/helpers/getSubredditUrl/index.ts":function(e,t,r){"use strict";var n=r("./src/lib/isFakeSubreddit/index.ts");t.a=(e=>e&&!Object(n.a)(e.name)?e.url:"")},"./src/reddit/helpers/isComment.ts":function(e,t,r){"use strict";var n=r("./src/reddit/constants/things.ts");t.a=function(e){return!!e&&e.substring(0,3)===n.a}},"./src/reddit/helpers/isPost.ts":function(e,t,r){"use strict";var n=r("./src/reddit/constants/things.ts");t.a=function(e){return!!e&&e.substring(0,3)===n.b}},"./src/reddit/helpers/media/index.ts":function(e,t,r){"use strict";r.d(t,"f",function(){return o}),r.d(t,"k",function(){return s}),r.d(t,"j",function(){return i}),r.d(t,"i",function(){return d}),r.d(t,"e",function(){return c}),r.d(t,"h",function(){return u}),r.d(t,"b",function(){return a}),r.d(t,"a",function(){return l}),r.d(t,"c",function(){return f}),r.d(t,"l",function(){return p}),r.d(t,"d",function(){return g}),r.d(t,"g",function(){return h});var n=r("./src/lib/constants/index.ts");function o(e){return new Promise((t,r)=>{try{const o=new FileReader;o.onloadend=(e=>{try{const o=e.target.result,s=new Uint8Array(o).subarray(0,4);let i="";for(let e=0;e<s.length;e++)i+=s[e].toString(16);const d=function(e){switch(e){case"89504e47":return"image/png";case"47494638":return"image/gif";default:return"ffd8ff"===e.slice(0,6)?"image/jpeg":null}}(i);t(d)}catch(n){r(n)}}),o.readAsArrayBuffer(e)}catch(n){r(n)}})}const s=e=>e.startsWith("video/"),i=e=>e.startsWith("image/"),d=e=>"image/gif"===e,c=e=>{if(e)return s(e)?"video":i(e)?"image":void 0},u=e=>n.a.has(e)||n.b.has(e),a=e=>window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(e):null;function l(e,t){try{return new File([e],t,{type:e.type,lastModified:Date.now()})}catch(r){const n=new Blob([e],{type:e.type});return Object.assign(n,{name:t,lastModified:Date.now()}),n}}function f(e){const t=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return new Blob([n],{type:r})}const m=(e,t,r)=>{e.addEventListener(t,n=>(e.removeEventListener(t,r),r(n)))},p=(e,t)=>new Promise((r,n)=>{const o=()=>{e.readyState>=2&&r(e)};m(e,"error",()=>{n(new Error("Invalid video source"))}),["loadedmetadata","loadeddata","suspend"].forEach(t=>m(e,t,o)),e.src=t,o()}),b=(e,t)=>new Promise(r=>{m(e,"seeked",()=>r(e)),e.currentTime=t});async function g(e,t,r){let n=e.currentTime;for(;null!==n;){await b(e,n),t.height=e.videoHeight,t.width=e.videoWidth;const o=t.getContext("2d");o&&o.drawImage(e,0,0),n=r({dataUrl:t.toDataURL(),time:e.currentTime})}}async function h(e,t=!1){const r=document.createElement("video");let n;if(await p(r,e),t){r.currentTime=0;const e=document.createElement("canvas");await g(r,e,e=>(n=e,null))}return{width:r.videoWidth,height:r.videoHeight,duration:r.duration,firstFrame:n}}},"./src/reddit/helpers/name/index.ts":function(e,t,r){"use strict";r.d(t,"g",function(){return i}),r.d(t,"f",function(){return d}),r.d(t,"b",function(){return c}),r.d(t,"c",function(){return u}),r.d(t,"d",function(){return l}),r.d(t,"e",function(){return f}),r.d(t,"a",function(){return m});const n=/^(r|u)?\//i,o=/^r\//i,s=/^u\//i,i=e=>e.replace(n,""),d=e=>i(e.toLowerCase().trim()),c=e=>`r/${i(e)}`,u=e=>`u/${i(e)}`,a=e=>n.test(e),l=e=>o.test(e),f=e=>s.test(e),m=(e,t)=>!((e,t)=>a(e)&&a(t)&&e[0].toLowerCase()!==t[0].toLowerCase())(e,t)&&d(e)===d(t)},"./src/reddit/helpers/news/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return s}),r.d(t,"a",function(){return i});var n=r("./src/reddit/constants/news.ts"),o=r("./src/reddit/models/News/index.ts");const s=e=>e&&e.topicId&&e.topicId===o.a,i=e=>{var t=e&&e.heroSource||{},r=t.url;const o=void 0===r?"":r;var s=t.width;const i=void 0===s?0:s;var d=t.height;const c=void 0===d?0:d;return o&&i>=n.d&&c>=n.c}},"./src/reddit/helpers/path/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s}),r.d(t,"b",function(){return i});var n=r("./node_modules/path-browserify/index.js"),o=r.n(n);const s=(e,t)=>o.a.join(o.a.sep,e||"",t),i=e=>e.replace(/^.*\/\/[^\/]+/,"")},"./src/reddit/helpers/pixels.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});const n=new(r("./src/lib/LRUCache/index.ts").a)(1e3),o=e=>{if(!n.get(e)){return(new Image).src=e,n.set(e,!0),!0}return!1},s=(e,t)=>e.filter(e=>e.type===t).map(e=>e.url).every(o)},"./src/reddit/helpers/r2/normalizeSubredditFromR2/index.ts":function(e,t,r){"use strict";t.a=(e=>({allowContractors:e.allow_contractors,communityIcon:e.community_icon,displayText:e.display_name_prefixed,icon:{height:e.icon_size?e.icon_size[1]:0,url:e.icon_img?e.icon_img:"",width:e.icon_size?e.icon_size[0]:0},id:e.name,isNSFW:e.over_18||e.over18,isQuarantined:!!e.quarantine,name:e.display_name,primaryColor:e.primary_color,subscribers:e.subscribers,title:e.title,type:e.subreddit_type,url:e.url,wls:e.wls}))},"./src/reddit/helpers/trackers/news.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"d",function(){return f}),r.d(t,"n",function(){return b}),r.d(t,"p",function(){return g}),r.d(t,"o",function(){return h}),r.d(t,"q",function(){return y}),r.d(t,"r",function(){return v}),r.d(t,"s",function(){return O}),r.d(t,"t",function(){return w}),r.d(t,"h",function(){return I}),r.d(t,"i",function(){return S}),r.d(t,"k",function(){return _}),r.d(t,"j",function(){return j}),r.d(t,"f",function(){return T}),r.d(t,"m",function(){return P}),r.d(t,"e",function(){return C}),r.d(t,"l",function(){return x}),r.d(t,"g",function(){return E}),r.d(t,"b",function(){return D}),r.d(t,"c",function(){return A});var n,o,s=r("./src/reddit/constants/tracking.ts"),i=r("./src/reddit/selectors/news.ts"),d=r("./src/reddit/selectors/posts.ts"),c=r("./src/reddit/selectors/subreddit.ts"),u=r("./src/reddit/selectors/telemetry.ts");!function(e){e.newsNav="news_nav",e.newsHero="news_hero",e.newsMiniHero="news_mini_hero"}(n||(n={})),function(e){e.heroNews="heroNews",e.newsHeroComments="newsHeroComments",e.newsHeroCommunity="newsHeroCommunity",e.newsHeroImage="newsHeroImage",e.newsHeroLatestTag="newsHeroLatestTag",e.newsHeroOutboundLink="newsHeroOutboundLink",e.newsHeroPostTitle="newsHeroPostTitle",e.newsHeroTime="newsHeroTime",e.newsHeroVoteCount="newsHeroVoteCount",e.topicFilter="topicFilter",e.topicHeader="topicHeader",e.topicHero="topicHero",e.topicPost="topicPost"}(o||(o={}));const a={topicFilter:{topic:"topic",subtopic:"subtopic"},topicHero:{topic:"topic_hero",subtopic:"subtopic_hero"},topicPost:{topic:"topic_post",subtopic:"subtopic_post"},topicHeader:{topic:"topic_header",subtopic:"subtopic_header"},newsHeroImage:{topic:"image",subtopic:"image"},newsHeroLatestTag:{topic:"latest_tag",subtopic:"latest_tag"},newsHeroPostTitle:{topic:"post_title",subtopic:"post_title"},newsHeroOutboundLink:{topic:"outbound_link",subtopic:"outbound_link"},newsHeroCommunity:{topic:"community",subtopic:"community"},newsHeroVoteCount:{topic:"vote_count",subtopic:"vote_count"},newsHeroComments:{topic:"comments",subtopic:"comments"},newsHeroTime:{topic:"post_age",subtopic:"post_age"},heroNews:{topic:"hero_news",subtopic:"hero_news"}},l=e=>{return e.replace(/\(|\)|&|\s|\//gi,"_").toLowerCase().toLowerCase()},f=(e,t)=>{const r={topicId:e.topicId,topicName:l(e.name)};let n={};return t&&(n=(e=>({subtopicId:e.subtopicId,subtopicName:l(e.name)}))(t)),Object.assign({},r,n)},m=(e,t,r,n)=>{const o=e.postId,s=e.listingKey,i=e.state,c=e.topic,u=e.subtopic,l={source:r,action:t,noun:u?a[n].subtopic:a[n].topic,news:f(c,u)};let m={};return o&&s&&i&&(m={discoveryUnit:((e,t,r)=>{return{id:e,type:"news_hero",title:"News Hero Module",name:"news_hero",items:Object(d.y)(r,{listingKey:t})}})(o,s,i)}),Object.assign({},l,m)},p=(e,t,r,n)=>{const o=e.postId,s=e.state,d=Object(i.q)(s,{postId:o});return m(Object.assign({},e,{topic:d.topic,subtopic:d.subtopic}),t,r,n)},b=e=>t=>p(Object.assign({},e,{state:t}),s.b.CLICK,n.newsMiniHero,o.newsHeroPostTitle),g=e=>t=>p(Object.assign({},e,{state:t}),s.b.CLICK,n.newsMiniHero,o.newsHeroOutboundLink),h=e=>t=>p(Object.assign({},e,{state:t}),s.b.CLICK,n.newsMiniHero,o.newsHeroCommunity),y=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsNav,o.topicFilter),v=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsNav,o.topicHeader),O=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsNav,o.topicHero),w=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsNav,o.topicPost),I=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroImage),S=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroLatestTag),_=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroPostTitle),j=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroOutboundLink),T=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroCommunity),P=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroVoteCount),C=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroComments),x=e=>t=>m(Object.assign({},e,{state:t}),s.b.CLICK,n.newsHero,o.newsHeroTime),E=e=>t=>m(Object.assign({},e,{state:t}),"consume",n.newsHero,o.heroNews),N=(e,t)=>Object(c.v)(e,{subredditName:t.name}),k=e=>e?{id:e.id,name:e.name.toLowerCase()}:null,D=e=>t=>{const r=k(N(t,e));return Object.assign({},u.defaults(t),{source:"active_communities",action:"click",noun:"community",subreddit:r})},A=e=>t=>r=>{const n=k(N(r,e));return Object.assign({},u.defaults(r),{source:"active_communities",action:t?"unsubscribe":"subscribe",noun:"button",subreddit:n})}},"./src/reddit/helpers/trackers/postList.ts":function(e,t,r){"use strict";r.d(t,"i",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"e",function(){return c}),r.d(t,"f",function(){return u}),r.d(t,"b",function(){return a}),r.d(t,"c",function(){return l}),r.d(t,"d",function(){return f}),r.d(t,"g",function(){return m}),r.d(t,"h",function(){return p}),r.d(t,"j",function(){return b});var n=r("./src/telemetry/index.ts"),o=r("./src/reddit/selectors/telemetry.ts");const s=(e,t)=>Object.assign({},o.defaults(e),{media:o.media(e,t),post:o.post(e,t),profile:o.profile(e),subreddit:o.subreddit(e)}),i=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"stop",noun:"autoplay_initial_load"}))},d=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"complete",noun:"autoplay_initial_load"}))},c=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"start",noun:"autoplay_initial_load"}))},u=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"start",noun:"autoplay_network_load"}))},a=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"consume",noun:"autoplay"}))},l=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"start",noun:"autoplay"}))},f=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"start",noun:"autoplay_buffering"}))},m=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"stop",noun:"autoplay"}))},p=(e,t)=>{Object(n.a)(Object.assign({},s(e,t),{source:"postlist",action:"stop",noun:"autoplay_buffering"}))},b=(e,t)=>{Object(n.a)(Object.assign({action:"view",source:"postlist",noun:"bottom"},o.defaults(e),{listing:o.listing(e,t),subreddit:o.subreddit(e)}))}},"./src/reddit/icons/svgs/News/index.tsx":function(e,t,r){"use strict";var n,o=r("./node_modules/react/index.js"),s=r.n(o),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,r,o){var s=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&s)for(var d in s)void 0===t[d]&&(t[d]=s[d]);else t||(t=s||{});if(1===i)t.children=o;else if(i>1){for(var c=Array(i),u=0;u<i;u++)c[u]=arguments[u+3];t.children=c}return{$$typeof:n,type:e,key:void 0===r?null:""+r,ref:null,props:t,_owner:null}});t.a=(e=>s.a.createElement("svg",i({viewBox:"0 0 20 20",version:"1.1"},e),d("defs",{},void 0,d("path",{d:"M16.5,7.5 L12.5,7.5 C12.224,7.5 12,7.276 12,7 C12,6.724 12.224,6.5 12.5,6.5 L16.5,6.5 C16.776,6.5 17,6.724 17,7 C17,7.276 16.776,7.5 16.5,7.5 Z M16.5,10 L12.5,10 C12.224,10 12,9.776 12,9.5 C12,9.224 12.224,9 12.5,9 L16.5,9 C16.776,9 17,9.224 17,9.5 C17,9.776 16.776,10 16.5,10 Z M16.5,12.5 L12.5,12.5 C12.224,12.5 12,12.276 12,12 C12,11.724 12.224,11.5 12.5,11.5 L16.5,11.5 C16.776,11.5 17,11.724 17,12 C17,12.276 16.776,12.5 16.5,12.5 Z M16.5,15 L12.5,15 C12.224,15 12,14.776 12,14.5 C12,14.224 12.224,14 12.5,14 L16.5,14 C16.776,14 17,14.224 17,14.5 C17,14.776 16.776,15 16.5,15 Z M11.035,9.5 C11.035,9.795 10.795,10.035 10.5,10.035 L6.5,10.035 C6.205,10.035 5.965,9.795 5.965,9.5 L5.965,5.5 C5.965,5.205 6.205,4.965 6.5,4.965 L10.5,4.965 C10.795,4.965 11.035,5.205 11.035,5.5 L11.035,9.5 Z M10.5,12.5 L6.5,12.5 C6.224,12.5 6,12.276 6,12 C6,11.724 6.224,11.5 6.5,11.5 L10.5,11.5 C10.776,11.5 11,11.724 11,12 C11,12.276 10.776,12.5 10.5,12.5 Z M10.5,15 L6.5,15 C6.224,15 6,14.776 6,14.5 C6,14.224 6.224,14 6.5,14 L10.5,14 C10.776,14 11,14.224 11,14.5 C11,14.776 10.776,15 10.5,15 Z M18,3 L5,3 C4.448,3 4,3.448 4,4 L4,14.5 C4,14.776 3.776,15 3.5,15 C3.224,15 3,14.776 3,14.5 L3,6 C3,5.441 2.543,4.992 1.985,5 L1.959,5 L1.917,5.003 C1.398,5.047 1,5.48 1,6 L1,14.321 C1,15.798 2.202,17 3.679,17 L17,17 C18.103,17 19,16.103 19,15 L19,4 C19,3.448 18.552,3 18,3 Z",id:"path-1"},void 0)),d("g",{id:"news",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},void 0,d("mask",{id:"mask-2",fill:"white"},void 0,d("use",{xlinkHref:"#path-1"})),d("use",{id:"Page-1",xlinkHref:"#path-1"}))))},"./src/reddit/models/Flair/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"e",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"k",function(){return a}),r.d(t,"j",function(){return f}),r.d(t,"g",function(){return m}),r.d(t,"f",function(){return p}),r.d(t,"i",function(){return b}),r.d(t,"h",function(){return g});var n,o,s,i,d,c=r("./src/lib/formatEmojiName/index.ts"),u=r("./src/reddit/constants/colors.ts");!function(e){e.Text="text",e.Emoji="emoji"}(n||(n={})),function(e){e.Image="image",e.Meta="meta",e.Nsfw="nsfw",e.PatreonPatron="patreonPatron",e.Richtext="richtext",e.Spoiler="spoiler",e.Text="text",e.Quarantined="quarantined"}(o||(o={})),function(e){e.Dark="dark",e.Light="light"}(s||(s={})),function(e){e.UserFlair="USER_FLAIR",e.LinkFlair="LINK_FLAIR"}(i||(i={})),function(e){e.Left="left",e.Right="right"}(d||(d={}));const a=e=>e===o.Text||e===o.Richtext||e===o.Image||e===o.Meta,l=e=>e.e===n.Emoji?Object(c.a)(e.a):e.t,f=e=>e.type===o.Richtext?e.richtext.map(l).join(""):e.text||"";var m,p;!function(e){e.Dark="DARK",e.Light="LIGHT"}(m||(m={})),function(e){e.RIGHT="RIGHT",e.LEFT="LEFT"}(p||(p={}));const b=e=>e.type===o.Richtext?{backgroundColor:e.backgroundColor,richtext:e.richtext,templateId:e.id,textColor:e.textColor,type:e.type}:{backgroundColor:e.backgroundColor,templateId:e.id,text:e.text||"",textColor:e.textColor,type:e.type},g=()=>{return{backgroundColor:u.a.defaultFlair,richtext:[],textColor:s.Dark,type:o.Richtext}}},"./src/reddit/models/Media/index.ts":function(e,t,r){"use strict";r.d(t,"q",function(){return n}),r.d(t,"z",function(){return i}),r.d(t,"A",function(){return d}),r.d(t,"x",function(){return c}),r.d(t,"y",function(){return u}),r.d(t,"m",function(){return a}),r.d(t,"a",function(){return l}),r.d(t,"i",function(){return f}),r.d(t,"j",function(){return m}),r.d(t,"t",function(){return p}),r.d(t,"c",function(){return b}),r.d(t,"k",function(){return g}),r.d(t,"l",function(){return h}),r.d(t,"n",function(){return y}),r.d(t,"o",function(){return v}),r.d(t,"e",function(){return O}),r.d(t,"f",function(){return w}),r.d(t,"h",function(){return I}),r.d(t,"b",function(){return S}),r.d(t,"p",function(){return _}),r.d(t,"s",function(){return j}),r.d(t,"r",function(){return T}),r.d(t,"d",function(){return P}),r.d(t,"g",function(){return C}),r.d(t,"u",function(){return x}),r.d(t,"w",function(){return E}),r.d(t,"v",function(){return N});var n,o=r("./node_modules/url/url.js"),s=r.n(o);!function(e){e.YouTube="YouTube",e.Vimeo="Vimeo",e.BandCamp="BandCamp",e.Gfycat="Gfycat",e.GfycatOld="gfycat",e.Giphy="Giphy",e.Imgur="Imgur",e.SoundCloud="SoundCloud",e.Spotify="Spotify",e.Streamable="Streamable",e.Twitch="Twitch.tv",e.IFrameEmbed="iframe embed"}(n||(n={}));const i=e=>"text"===e.type,d=e=>"video"===e.type,c=e=>"image"===e.type,u=e=>"rtjson"===e.type,a={TEXT:"text",VIDEO:"video",IMAGE:"image",EMBED:"embed",GIFVIDEO:"gifvideo",RTJSON:"rtjson"},l=new Set([a.TEXT,a.IMAGE,a.RTJSON]),f=512,m=250,p=608,b=.5625,g=486,h=864,y=273,v=486,O=700,w=822,I=new Set([n.YouTube,n.Vimeo,n.Spotify,n.SoundCloud,n.Gfycat,n.GfycatOld,n.Giphy]),S=new Set([n.BandCamp,n.Gfycat,n.GfycatOld,n.Giphy,n.Imgur,n.SoundCloud,n.Spotify,n.Streamable,n.Twitch,n.YouTube,n.Vimeo]),_=new Set([n.SoundCloud,n.Spotify,n.Streamable,n.Vimeo,n.YouTube]),j=new Set([n.Gfycat,n.GfycatOld,n.Imgur]),T=["gif","jpeg","jpg","png","tiff"],P=new Set([a.VIDEO,a.GIFVIDEO,a.EMBED]);var C,x;!function(e){e.Mute="mute",e.Pause="pause",e.Play="play"}(C||(C={})),function(e){e.Pause="pauseVideo",e.Play="playVideo",e.Mute="mute"}(x||(x={}));const E=e=>e.source?e.source.url:e.media&&e.media.type!==a.VIDEO&&e.media.content?e.media.content:"",N=e=>{if(!d(e))return;const t=e;let r;if(t.hlsUrl)r=t.hlsUrl;else{if(!t.dashUrl)return;r=t.dashUrl}return(e=>{const t=s.a.parse(e);if(t&&t.pathname)return t.pathname.split("/")[1]})(r)}},"./src/reddit/models/ModeratingSubreddits/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return i}),r.d(t,"c",function(){return d});var n,o=r("./node_modules/lodash/snakeCase.js"),s=r.n(o);!function(e){e.access="access",e.config="config",e.flair="flair",e.mail="mail",e.posts="posts",e.wiki="wiki",e.chatConfig="chatConfig",e.chatOperator="chatOperator",e.all="all"}(n||(n={}));const i={all:!0,access:!0,chatConfig:!0,chatOperator:!0,config:!0,flair:!0,mail:!0,posts:!0,wiki:!0},d=e=>{return Object.keys(e).map(t=>(e[t]?"+":"-")+s()(t)).join(",")}},"./src/reddit/models/MonthsToMinutes/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"d",function(){return o}),r.d(t,"h",function(){return s}),r.d(t,"e",function(){return i}),r.d(t,"i",function(){return d}),r.d(t,"f",function(){return c}),r.d(t,"j",function(){return u}),r.d(t,"c",function(){return a}),r.d(t,"g",function(){return l}),r.d(t,"b",function(){return f});const n=2e3,o=3,s=5,i=10,d=5,c=1500;var u,a,l,f;!function(e){e.Home="home_active",e.SubscribeFeed="subscribe_feed",e.SubscribeIdCard="subscribe_id",e.SubscribeReminder="subscribe_reminder",e.Vote="vote",e.VoteReminder="vote_reminder",e.VoteSuccess="vote_success"}(u||(u={})),function(e){e[e.Welcome=0]="Welcome",e[e.Subscribe=1]="Subscribe",e[e.Vote=2]="Vote",e[e.Signup=3]="Signup"}(a||(a={})),function(e){e.Subscribe="Subscribe",e.Vote="Vote"}(l||(l={})),function(e){e.Initial="initial",e.BannerVisible="bannerVisible",e.HomeVisited="homeVisited"}(f||(f={}))},"./src/reddit/models/Multireddit/index.ts":function(e,t,r){"use strict";var n;function o(e){return"string"==typeof e.url}r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s}),function(e){e.Hidden="hidden",e.Private="private",e.Public="public"}(n||(n={}));const s=(e,t)=>`/user/${e}/m/${t}/`.toLowerCase()},"./src/reddit/models/News/index.ts":function(e,t,r){"use strict";var n;r.d(t,"b",function(){return n}),r.d(t,"c",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"d",function(){return i}),function(e){e.Latest="latest"}(n||(n={}));const o={latest:"news.storyStatus.latest"},s=100,i=e=>{const t=[{name:"All Stories",subtopics:[],topicId:s}];return e.forEach(({display_name:e,topic_id:r,subtopics:n})=>{t.push({name:e,topicId:r,subtopics:(e=>e.map(({subreddits:e,display_name:t,id:r})=>({subreddits:e,name:t,subtopicId:r})))(n)})}),t}},"./src/reddit/models/OcSubreddits/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return i});var n=r("./src/reddit/helpers/r2/normalizeSubredditFromR2/index.ts");const o=6;function s(e){const t={subreddits:{},subredditsAboutInfo:{}};return e?e.reduce((e,t)=>(e.subreddits[t.name]=Object(n.a)(t),e.subredditsAboutInfo[t.name]={allOriginalContent:t.all_original_content,contentCategory:t.content_category,originalContentTagEnabled:t.original_content_tag_enabled,userIsSubscriber:t.user_is_subscriber},e),t):t}function i(e){return!!e&&(e.originalContentTagEnabled||!!e.contentCategory)}},"./src/reddit/models/Post/index.ts":function(e,t,r){"use strict";r.d(t,"f",function(){return s}),r.d(t,"g",function(){return i}),r.d(t,"e",function(){return d}),r.d(t,"d",function(){return c}),r.d(t,"a",function(){return a}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return f});var n=r("./src/reddit/constants/things.ts"),o=r("./src/lib/constants/index.ts");const s=e=>`${n.b}${e}`,i=e=>e.startsWith(n.b)?e.substr(n.b.length):e,d=e=>e===o.D;var c,u,a,l,f;!function(e){e.AdPost="AdPost",e.DeletedProfilePost="DeletedProfilePost",e.DeletedSubredditPost="DeletedSubredditPost",e.ProfilePost="ProfilePost",e.SubredditPost="SubredditPost"}(c||(c={})),function(e){e.MOD_APPROVED="MOD_APPROVED",e.MOD_REMOVED="MOD_REMOVED",e.MOD_SPAMMED="MOD_SPAMMED",e.ADMIN_REMOVED="ADMIN_REMOVED",e.ADMIN_APPROVED="ADMIN_APPROVED",e.ADMIN_SPAMMED="ADMIN_SPAMMED"}(u||(u={})),function(e){e.Post="POST",e.Comment="COMMENT"}(a||(a={})),function(e){e.Embed="EMBED",e.Image="IMAGE",e.Video="VIDEO",e.Gifvideo="GIFVIDEO"}(l||(l={})),function(e){e.Richtext="RICHTEXT",e.Markdown="MARKDOWN"}(f||(f={}))},"./src/reddit/models/PostCreationForm/index.ts":function(e,t,r){"use strict";r.d(t,"m",function(){return o}),r.d(t,"n",function(){return s}),r.d(t,"e",function(){return i}),r.d(t,"q",function(){return d}),r.d(t,"u",function(){return u}),r.d(t,"h",function(){return a}),r.d(t,"g",function(){return l}),r.d(t,"k",function(){return f}),r.d(t,"l",function(){return m}),r.d(t,"o",function(){return p}),r.d(t,"p",function(){return b}),r.d(t,"j",function(){return g}),r.d(t,"d",function(){return h}),r.d(t,"a",function(){return y}),r.d(t,"b",function(){return v}),r.d(t,"c",function(){return O}),r.d(t,"f",function(){return w}),r.d(t,"r",function(){return I}),r.d(t,"s",function(){return S}),r.d(t,"t",function(){return _}),r.d(t,"i",function(){return j});var n=r("./src/reddit/models/Upload/index.ts");const o=Object(n.e)(n.b.POST_CREATION_MEDIA),s=Object(n.e)(n.b.POST_CREATION_VIDEO_POSTER),i={isProfile:!1,name:""};var d;!function(e){e[e.Post=0]="Post",e[e.Draft=1]="Draft"}(d||(d={}));const c=["title","body","link","flair"],u=e=>c.includes(e);var a,l,f,m,p,b,g;!function(e){e.MARKDOWN="markdown",e.RICH_TEXT="richtext"}(a||(a={})),function(e){e.POST_CREATION="POST_CREATION",e.POST_EDITING="POST_EDITING"}(l||(l={})),function(e){e.CLICK="click",e.TYPE="type"}(f||(f={})),function(e){e.TITLE="title",e.BODY="body",e.URL="url"}(m||(m={})),function(e){e.CROSSPOST="crosspost",e.LINK="link",e.RICH_TEXT="richText",e.MARKDOWN="markdown",e.MEDIA="media",e.VIDEO_GIF="videogif",e.SELF="self"}(p||(p={})),function(e){e.ImageWillBeRemoved="SrChangePrompt_ImageWillBeRemoved",e.VideoWillBeRemovedMediaNotAllowed="SrChangePrompt_VideoWillBeRemovedMediaNotAllowed",e.VideoWillBeRemovedTooLongForGif="SrChangePrompt_VideoWillBeRemovedTooLongForGif"}(b||(b={})),function(e){e.POST_OVERFLOW_MENU="postOverflowMenu",e.COLLECTION_INFO_POST="colletionInfoPost"}(g||(g={}));const h="POST_DRAFTS_MODAL_ID",y="COLLECTIONS_LIST_MODAL_ID",v="CREATE_COLLECTION_MODAL_ID",O="DISCARD_POST_ON_CREATE_POST_MODAL_ID",w="EVENT_SCHEDULE_PICKER_MODAL_ID",I=(e,t,r)=>`${w}-[postId: ${e}]-isOverlay[${t}]-pos[${r}]`,S=(e,t)=>`${y}-[postId: ${e}]-isOverlay[${t}]`,_=(e,t)=>`${v}-[postId: ${e}]-isOverlay[${t}]`;var j;!function(e){e.Now="now",e.AtEventTime="atEventTime"}(j||(j={}))},"./src/reddit/models/PostDraft/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return s});var n,o=r("./src/lib/constants/index.ts");!function(e){e[e.Image=0]="Image",e[e.Link=1]="Link",e[e.Markdown=2]="Markdown",e[e.RichText=3]="RichText",e[e.Video=4]="Video"}(n||(n={}));const s={[n.Image]:o.hc.MEDIA,[n.Link]:o.hc.LINK_ONLY,[n.Markdown]:o.hc.POST,[n.RichText]:o.hc.POST,[n.Video]:o.hc.MEDIA}},"./src/reddit/models/Profile/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n;!function(e){e.Downvoted="downvoted",e.Hidden="hidden",e.Saved="saved",e.Upvoted="upvoted"}(n||(n={}))},"./src/reddit/models/Profile/mock.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("./src/config.ts"),o=r("./src/reddit/models/Subreddit/index.ts");const s={t5_100:{id:"t5_100",isNSFW:!1,displayText:"u/cfb",name:"cfb",title:"CFB Title",type:o.b.User,url:"/user/cfb",subscribers:1,icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120}},t5_200:{id:"t5_200",isNSFW:!1,displayText:"u/test",name:"test",title:"Test User Title",type:o.b.User,url:"/user/test",subscribers:10,icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120}},t5_300:{id:"t5_200",isNSFW:!1,displayText:"u/shitty_watercolour",name:"shitty_watercolour",title:"Shitty_Watercolour Title",type:o.b.User,url:"/user/shitty_watercolour",subscribers:20,icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120}}}},"./src/reddit/models/RichTextJson/index.ts":function(e,t,r){"use strict";var n;r.d(t,"j",function(){return n}),r.d(t,"A",function(){return o}),r.d(t,"w",function(){return s}),r.d(t,"n",function(){return i}),r.d(t,"o",function(){return d}),r.d(t,"g",function(){return c}),r.d(t,"v",function(){return u}),r.d(t,"y",function(){return a}),r.d(t,"B",function(){return l}),r.d(t,"x",function(){return f}),r.d(t,"u",function(){return m}),r.d(t,"k",function(){return p}),r.d(t,"l",function(){return b}),r.d(t,"b",function(){return g}),r.d(t,"c",function(){return h}),r.d(t,"q",function(){return y}),r.d(t,"p",function(){return v}),r.d(t,"e",function(){return O}),r.d(t,"f",function(){return w}),r.d(t,"d",function(){return I}),r.d(t,"z",function(){return S}),r.d(t,"h",function(){return _}),r.d(t,"m",function(){return j}),r.d(t,"s",function(){return P}),r.d(t,"a",function(){return C}),r.d(t,"r",function(){return x}),r.d(t,"C",function(){return E}),r.d(t,"t",function(){return N}),r.d(t,"i",function(){return k}),r.d(t,"E",function(){return D}),r.d(t,"D",function(){return A}),function(e){e[e.bold=1]="bold",e[e.italic=2]="italic",e[e.underline=4]="underline",e[e.strikethrough=8]="strikethrough",e[e.subscript=16]="subscript",e[e.superscript=32]="superscript",e[e.monospace=64]="monospace"}(n||(n={}));const o="text",s="raw",i="br",d="link",c="c/",u="p/",a="r/",l="u/",f="spoilertext",m="par",p="h",b="hr",g="blockquote",h="code",y="li",v="list",O="L",w="R",I="C",S="table",_="embed",j="img";var T;!function(e){e.Valid="valid",e.Unprocessed="unprocessed",e.Failed="failed",e.Invalid="invalid"}(T||(T={}));const P="Image",C="gif",x="AnimatedImage",E="video",N="RedditVideo",k={document:[]},D=e=>!e||!e.document||(e=>0===e.length||1===e.length&&(e=>"par"===e.e&&(!e.c||0===e.c.length))(e[0]))(e.document),A=(e,t)=>{const r=e&&e[t];if(r&&(!r.status||r.status===T.Valid))return r}},"./src/reddit/models/RichTextJson/nodeMakers.ts":function(e,t,r){"use strict";r.d(t,"r",function(){return o}),r.d(t,"l",function(){return s}),r.d(t,"h",function(){return i}),r.d(t,"m",function(){return d}),r.d(t,"n",function(){return c}),r.d(t,"s",function(){return u}),r.d(t,"k",function(){return a}),r.d(t,"e",function(){return l}),r.d(t,"c",function(){return f}),r.d(t,"d",function(){return m}),r.d(t,"i",function(){return p}),r.d(t,"j",function(){return b}),r.d(t,"p",function(){return g}),r.d(t,"o",function(){return h}),r.d(t,"q",function(){return y}),r.d(t,"f",function(){return v}),r.d(t,"b",function(){return O}),r.d(t,"t",function(){return w}),r.d(t,"g",function(){return I}),r.d(t,"a",function(){return S});var n=r("./src/reddit/models/RichTextJson/index.ts");const o=(e,t)=>Object.assign({e:n.A,t:e},t?{f:t}:null),s=e=>({e:n.w,t:e}),i=(e,t,r)=>Object.assign({e:n.o,t:e,u:t},r?{f:r}:null),d=e=>({e:n.x,c:[o(e,null)]}),c=(e,t)=>({e:n.y,t:e,l:t}),u=(e,t)=>({e:n.B,t:e,l:t}),a=e=>({e:n.u,c:e}),l=(e,t)=>({e:n.k,l:e,c:t}),f=e=>({e:n.b,c:e}),m=e=>({e:"code",c:e}),p=e=>({e:n.q,c:e}),b=(e,t)=>({e:n.p,c:e,o:t}),g=(e,t)=>Object.assign({c:e},t?{a:t}:{}),h=e=>({c:e}),y=(e,t)=>({e:n.z,h:e,c:t}),v=(e,t)=>({e:n.m,id:e,c:t}),O=(e,t)=>({e:n.a,id:e,c:t}),w=(e,t,r,o)=>Object.assign({e:n.C,id:e,c:t,gifify:o},r?{p:v(r)}:{}),I=()=>({e:n.n}),S={e:n.u,c:[{e:n.A,t:""}]}},"./src/reddit/models/Subreddit/index.ts":function(e,t,r){"use strict";var n;r.d(t,"b",function(){return n}),r.d(t,"c",function(){return o}),r.d(t,"a",function(){return s}),function(e){e.Archived="archived",e.EmployeesOnly="employees_only",e.GoldOnly="gold_only",e.GoldRestricted="gold_restricted",e.Private="private",e.Public="public",e.Restricted="restricted",e.User="user"}(n||(n={}));const o=e=>e.type===n.User;var s;!function(e){e.Image="IMAGE",e.Link="LINK",e.Spoiler="SPOILER",e.Text="TEXT",e.Video="VIDEO"}(s||(s={}))},"./src/reddit/models/Subreddit/mock.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=r("./src/config.ts"),o=r("./src/reddit/models/Subreddit/index.ts"),s=r("./src/reddit/models/WhitelistStatus/index.ts");const i={t5_1:{id:"t5_1",displayText:"r/cfb",name:"cfb",title:"CFB Title",type:o.b.Public,url:"/r/cfb",icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120},subscribers:14343103,wls:s.a.ALL_ADS,isNSFW:!1},t5_2:{id:"t5_2",displayText:"r/test",name:"test",title:"Test Title",type:o.b.Private,url:"/r/test",icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120},subscribers:1,wls:void 0,isNSFW:!1},t5_3:{id:"t5_2",displayText:"r/test",name:"test",title:"Gold Title",type:o.b.GoldOnly,url:"/r/test",icon:{url:`${n.a.assetPath}/img/placeholder_gradient_light-280.png`,width:120,height:120},subscribers:1,wls:void 0,isNSFW:!1}}},"./src/reddit/models/SubredditAutocomplete/index.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"c",function(){return i}),r.d(t,"b",function(){return d}),r.d(t,"d",function(){return c});var n,o=r("./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx"),s=r("./src/reddit/models/User/index.ts");!function(e){e[e.OWN_PROFILE=0]="OWN_PROFILE",e[e.SUBSCRIBED_TO_SUBREDDIT=1]="SUBSCRIBED_TO_SUBREDDIT",e[e.OTHER_SUBREDDIT=2]="OTHER_SUBREDDIT",e[e.FAKE_ITEM=3]="FAKE_ITEM",e[e.MODERATED_SUBREDDIT=4]="MODERATED_SUBREDDIT"}(n||(n={}));const i=e=>{var t=Object(o.a)({subredditOrProfile:e});const r=t.color;return{iconUrl:t.url,id:e.id,name:e.name,primaryColor:r,subscribers:e.subscribers,type:n.SUBSCRIBED_TO_SUBREDDIT}},d=(e,t)=>{var r=Object(o.a)({subredditOrProfile:e});const n=r.color;return{iconUrl:r.url,id:e.id,name:e.name,primaryColor:n,subscribers:e.subscribers,type:t}},c=e=>({iconUrl:e.accountIcon,id:e.id,name:Object(s.f)(e),type:n.OWN_PROFILE})},"./src/reddit/models/SubredditModeration/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"c",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"d",function(){return i});const n=999;var o;!function(e){e.Editable="editable",e.Invited="invited"}(o||(o={}));const s={searchTerm:null,userId:null,username:null},i=(e,t,r)=>`${e}-${((e,t)=>t||e||"1")(r,t)}`},"./src/reddit/models/Upload/index.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return o}),r.d(t,"e",function(){return s}),r.d(t,"c",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"d",function(){return c});var n=r("./src/reddit/helpers/getS3KeyFromUrl/index.ts");const o={POST_CREATION_MEDIA:"POST_CREATION_MEDIA",POST_CREATION_VIDEO_POSTER:"POST_CREATION_VIDEO_POSTER",RTE_MEDIA:"RTE_MEDIA"},s=(e,t)=>t?`${e}/${t}`:e,i=e=>Object(n.a)(e).split("/").slice(-1)[0],d={PENDING:"PENDING",UPLOADING:"UPLOADING",SUCCESS:"SUCCESS",FAILED:"FAILED",CANCELED:"CANCELED"},c=({status:e})=>e===d.PENDING||e===d.UPLOADING},"./src/reddit/models/User/index.ts":function(e,t,r){"use strict";var n,o;r.d(t,"b",function(){return s}),r.d(t,"a",function(){return d}),r.d(t,"f",function(){return c}),r.d(t,"e",function(){return u}),r.d(t,"d",function(){return a}),r.d(t,"c",function(){return l}),function(e){e.CommentForm="commentForm"}(n||(n={})),function(e){e.MarkdownModeNotification="markdownModeNotification"}(o||(o={}));const s={commentForm:{markdownModeNotification:!1}};var i;!function(e){e.Favorites="favorites",e.Multis="multis",e.Moderating="moderating",e.Subscriptions="subscriptions",e.Profiles="profiles"}(i||(i={}));const d={favorites:!1,multis:!1,moderating:!1,subscriptions:!1,profiles:!1},c=e=>{const t=e.username||e.displayText;if(!t)throw new Error("Invalid username!");return t},u=e=>{const t=1e3*e.created;if(t)return new Date(t).getTime()};var a,l;!function(e){e.AvailableRedditor="Redditor",e.DeletedRedditor="DeletedRedditor",e.UnavailableRedditor="UnavailableRedditor"}(a||(a={})),function(e){e.BLANK="BLANK",e.CONFIDENCE="CONFIDENCE",e.CONTROVERSIAL="CONTROVERSIAL",e.LIVE="LIVE",e.NEW="NEW",e.OLD="OLD",e.QA="QA",e.RANDOM="RANDOM",e.TOP="TOP"}(l||(l={}))},"./src/reddit/models/Vote/index.ts":function(e,t,r){"use strict";var n;r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"c",function(){return i}),function(e){e[e.downvoted=-1]="downvoted",e[e.notVoted=0]="notVoted",e[e.upvoted=1]="upvoted"}(n||(n={}));const o=(e,t)=>e.voteState===t?n.notVoted:t,s=e=>{switch(e){case!0:return n.upvoted;case!1:return n.downvoted;default:return n.notVoted}},i=(e,t)=>{const r=e.voteState===t,n=r?0:t,o=r?e.score-t:e.score-e.voteState+t;return Object.assign({},e,{voteState:n,score:o})}},"./src/reddit/models/WhitelistStatus/index.ts":function(e,t,r){"use strict";var n,o;r.d(t,"a",function(){return n}),function(e){e[e.NO_ADS=0]="NO_ADS",e[e.HOUSE_ONLY=1]="HOUSE_ONLY",e[e.PROMO_ADULT_NSFW=3]="PROMO_ADULT_NSFW",e[e.PROMO_ALL=5]="PROMO_ALL",e[e.ALL_ADS=6]="ALL_ADS"}(n||(n={})),function(e){e.NO_ADS="NO_ADS",e.HOUSE_ONLY="HOUSE_ONLY",e.PROMO_SPECIFIED="PROMO_SPECIFIED",e.PROMO_ADULT_NSFW="PROMO_ADULT_NSFW",e.PROMO_ADULT="PROMO_ADULT",e.PROMO_ALL="PROMO_ALL",e.ALL_ADS="ALL_ADS"}(o||(o={}))},"./src/reddit/models/Widgets/index.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"k",function(){return o}),r.d(t,"f",function(){return c}),r.d(t,"a",function(){return u}),r.d(t,"b",function(){return a}),r.d(t,"q",function(){return m}),r.d(t,"l",function(){return p}),r.d(t,"e",function(){return b}),r.d(t,"d",function(){return y}),r.d(t,"h",function(){return w}),r.d(t,"g",function(){return I}),r.d(t,"p",function(){return D}),r.d(t,"i",function(){return A}),r.d(t,"j",function(){return R}),r.d(t,"n",function(){return L}),r.d(t,"m",function(){return M}),r.d(t,"o",function(){return F});const n=1,o=()=>({backgroundColor:null,headerColor:null}),s=()=>({id:null,kind:"textarea",shortName:"",text:"",textHtml:void 0,styles:o()}),i=e=>{return{id:e.id,kind:e.kind,text:e.text,shortName:e.shortName,styles:e.styles}},d=()=>({currentlyViewingCount:0,currentlyViewingText:"",description:"",id:null,kind:"id-card",shortName:"Community details",subscribersCount:0,subscribersText:"",styles:o()});var c;!function(e){e.Text="text",e.Image="image"}(c||(c={}));const u=32,a=288,l=e=>{return{id:e.id,kind:e.kind,shortName:e.shortName,description:e.description,buttons:e.buttons,styles:e.styles}},f=()=>({id:null,kind:"button",shortName:"",description:null,descriptionHtml:null,buttons:[],styles:o()}),m=()=>({kind:c.Text,text:"",url:"",color:"#000000",hoverState:void 0}),p=e=>e.kind===c.Image?e.linkUrl:e.url,b={FULL:"full",COMPACT:"compact"},g=e=>{return{id:e.id,display:e.display,kind:e.kind,subreddit:e.subreddit,shortName:"Subreddit Rules",styles:e.styles}},h=()=>({id:null,kind:"subreddit-rules",display:"full",data:[],subreddit:"",shortName:"Subreddit Rules",styles:o()});var y;!function(e){e.Cloud="cloud",e.List="list"}(y||(y={}));const v=()=>({id:null,kind:"post-flair",display:y.List,order:[],shortName:"",styles:o(),templates:{}}),O=e=>{return{id:e.id,display:e.display,kind:e.kind,order:e.order,shortName:e.shortName,styles:e.styles}},w=(e,t)=>{const r={id:e.id,displayText:e.displayText,name:e.name,subscribers:e.subscribers,iconUrl:e.icon.url,isSubscribed:!1,type:"subreddit",primaryColor:e.primaryColor,isNSFW:e.isNSFW};return t&&t.publicDescription&&(r.description=t.publicDescription),t&&t.bannerBackgroundImage&&(r.bannerBackgroundImage=t.bannerBackgroundImage),t&&t.bannerBackgroundColor&&(r.bannerBackgroundColor=t.bannerBackgroundColor),r},I=e=>({id:e.id,name:e.name,subscribers:e.subscribers,iconUrl:e&&e.icon.url,type:"profile",isNSFW:e.isNSFW}),S=e=>{const t=e.data.map(e=>e.name),r=Object.assign({},e);return r.data=t,r},_=()=>({id:null,kind:"community-list",shortName:"",data:[],styles:o()}),j=()=>({id:null,kind:"calendar",shortName:"",configuration:{numEvents:10,showDate:!0,showTime:!0,showTitle:!0,showLocation:!0,showDescription:!0},configuredAtUTC:null,data:[],googleCalendarId:"",moderator:null,requiresSync:!0,synchronizedAtUTC:null,styles:o()}),T=e=>{return{id:e.id,kind:e.kind,shortName:e.shortName,googleCalendarId:e.googleCalendarId,moderator:e.moderator,requiresSync:e.requiresSync,configuredAtUTC:e.configuredAtUTC,configuration:Object.assign({},e.configuration,{numEvents:e.configuration.numEvents||10}),data:e.data,styles:e.styles}},P=e=>(e.data.forEach(function(e){void 0===e.linkUrl&&(e.linkUrl="")}),e),C=()=>({data:[],id:null,kind:"image",shortName:""}),x=()=>({id:null,kind:"custom",shortName:"",text:"",css:"",height:null,imageData:[]}),E=e=>({id:e.id,kind:e.kind,shortName:e.shortName,text:e.text,css:e.css,height:e.height,imageData:e.imageData}),N=e=>({id:e.id,kind:e.kind,styles:e.styles}),k=()=>({id:null,kind:"menu",data:[],showWiki:!1});function D(e){return"widgetId"in e}function A(e){switch(e.kind){case"subreddit-rules":return g(e);case"community-list":return S(e);case"image":return P(e);case"calendar":return T(e);case"textarea":return i(e);case"button":return l(e);case"custom":return E(e);case"moderators":return N(e);case"post-flair":return O(e);default:return e}}function R(e){switch(e){case"textarea":return s();case"button":return f();case"subreddit-rules":return h();case"image":return C();case"community-list":return _();case"calendar":return j();case"menu":return k();case"custom":return x();case"id-card":return d();case"post-flair":return v();default:throw new Error("Unknown widget type encountered")}}function L(e){return`structuredStyles.widgets.${e}.label`}function M(e){return`structuredStyles.widgets.${e}.description`}function F(e){switch(e.kind){case"textarea":case"button":case"image":case"subreddit-rules":case"community-list":case"calendar":case"custom":case"id-card":case"post-flair":return e.shortName;default:return e.kind}}var V;!function(e){e[e.Pending=0]="Pending",e[e.Complete=1]="Complete",e[e.Failed=2]="Failed"}(V||(V={}))},"./src/reddit/reducers/mediaPlayback/index.ts":function(e,t,r){"use strict";var n=r("./node_modules/redux/es/index.js"),o=r("./src/reddit/actions/media.ts");var s=(e=!0,t)=>{switch(t.type){case o.a:return t.payload;default:return e}};var i=(e=1,t)=>{switch(t.type){case o.b:return t.payload;default:return e}};t.a=Object(n.c)({isMuted:s,volume:i})},"./src/reddit/reducers/posts/video/index.ts":function(e,t,r){"use strict";var n=r("./node_modules/redux/es/index.js"),o=r("./src/reddit/actions/video.ts");const s={};var i=(e=s,t)=>{switch(t.type){case o.k:{var r=t.payload;const n=r.auto,o=r.postId;return Object.assign({},e,{[o]:n})}default:return e}};const d={};var c=(e=d,t)=>{switch(t.type){case o.g:{var r=t.payload;const n=r.postId,o=r.isBuffering;return Object.assign({},e,{[n]:o})}default:return e}};const u={};var a=(e=u,t)=>{switch(t.type){case o.h:{const r=t.payload.postId;return Object.assign({},e,{[r]:!0})}default:return e}};const l={};var f=(e=l,t)=>{switch(t.type){case o.i:{var r=t.payload;const n=r.postId,o=r.time;return Object.assign({},e,{[n]:o})}default:return e}};var m=(e=null,t)=>{switch(t.type){case o.q:return t.payload.postId;case o.j:return null;default:return e}};const p={};var b=(e=p,t)=>{switch(t.type){case o.t:{const r=t.payload.postId;return e[r]?Object.assign({},e,{[r]:!1}):e}case o.k:{const r=t.payload.postId;return Object.assign({},e,{[r]:!0})}}return e};const g={};var h=(e=g,t)=>{switch(t.type){case o.n:{var r=t.payload;const n=r.postId,o=r.time,s=e[n]||{cached:!0,start:o};return o<s.start?e:Object.assign({},e,{[n]:Object.assign({},s,{playable:o})})}case o.l:{var n=t.payload;const r=n.postId,o=n.time;return Object.assign({},e,{[r]:{cached:!1,start:o}})}default:return e}};const y={};var v=(e=y,t)=>{switch(t.type){case o.p:{var r=t.payload;const n=r.postId,o=r.metadata;return Object.assign({},e,{[n]:o})}default:return e}};const O={};var w=(e=O,t)=>{switch(t.type){case o.u:{const r=t.payload.postId;return e[r]?Object.assign({},e,{[r]:!1}):e}case o.m:{const r=t.payload.postId;return Object.assign({},e,{[r]:!0})}}return e};const I={};var S=(e=I,t)=>{switch(t.type){case o.o:{var r=t.payload;const n=r.postId,o=r.isPlaying;return Object.assign({},e,{[n]:o})}default:return e}};const _={};var j=(e=_,t)=>{switch(t.type){case o.r:{const r=t.payload.postId;return Object.assign({},e,{[r]:!0})}default:return e}},T=r("./src/reddit/constants/video.ts");const P={};var C=(e=P,t)=>{switch(t.type){case o.s:{var r=t.payload;const n=r.postId,o=r.time;return e[n]&&parseInt(o.currentTime.toString(),10)-parseInt(e[n].currentTime.toString(),10)<T.k?e:Object.assign({},e,{[n]:o})}default:return e}};t.a=Object(n.c)({autoPlayed:i,buffering:c,consumed:a,continuousViewStartedAt:f,fullscreen:m,loadable:b,loadTimes:h,metadata:v,paused:w,playing:S,started:j,time:C})},"./src/reddit/routes/news/util.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"d",function(){return i}),r.d(t,"c",function(){return c}),r.d(t,"b",function(){return u});var n=r("./src/reddit/constants/news.ts");const o="/news",s=[{route:"_and_",topic:" & "},{route:"-",topic:" "},{route:"-",topic:"/"},{route:"general",topic:"(general)"}],i=e=>{let t=e.toLowerCase();return s.forEach(e=>{const r=e.topic,n=e.route;t=t.split(r).join(n)}),t},d=(e,t)=>{let r=null;return e.forEach(e=>{i(e.name)===t&&(r=e)}),r},c=(e,t="",r="")=>{let n=null,o=null;if(n=d(e,t)||e[0]){const e=n.subtopics||[];o=d(e,r)}return{selectedTopic:n,selectedSubtopic:o}},u=(e,t)=>{const r=e&&e.name||"",n=t&&t.name||"";return a(r,n)},a=(e,t)=>{t=t||"";const r=i(e=e||""),s=i(t),d=i(n.g);let c=o;return r===d?c="/news":r&&s?c=`/news/${r}/${s}`:r&&!s&&(c=`/news/${r}`),c}},"./src/reddit/routes/postCreation/constants.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"d",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"a",function(){return i});const n="/submit",o="/r/:subredditName/submit",s="/user/:profileName/submit",i="/original/submit"},"./src/reddit/selectors/ads.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return o});const n=e=>e.ads,o=(e,t)=>e.ads[t]},"./src/reddit/selectors/chat.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"f",function(){return c}),r.d(t,"e",function(){return u}),r.d(t,"d",function(){return a}),r.d(t,"b",function(){return l});var n=r("./src/reddit/models/ModeratingSubreddits/index.ts"),o=r("./src/reddit/selectors/moderatorPermissions.ts"),s=r("./src/reddit/selectors/platform.ts");const i=e=>e.chat.unread.count,d=e=>e.chat.promos,c=e=>!!e.chat.isUserSubredditChatEnabled,u=e=>!(e.chat.isInited||e.chat.unread.api.pending),a=Object(o.a)(n.b.chatConfig),l=e=>{const t=Object(s.d)(e);if(e.chat.subredditSettings.subredditId===t)return e.chat.subredditSettings}},"./src/reddit/selectors/comments.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return c}),r.d(t,"d",function(){return u}),r.d(t,"u",function(){return a}),r.d(t,"w",function(){return l}),r.d(t,"x",function(){return f}),r.d(t,"k",function(){return p}),r.d(t,"D",function(){return b}),r.d(t,"o",function(){return g}),r.d(t,"p",function(){return h}),r.d(t,"j",function(){return y}),r.d(t,"l",function(){return v}),r.d(t,"n",function(){return O}),r.d(t,"h",function(){return w}),r.d(t,"a",function(){return I}),r.d(t,"b",function(){return S}),r.d(t,"r",function(){return _}),r.d(t,"m",function(){return j}),r.d(t,"t",function(){return T}),r.d(t,"y",function(){return P}),r.d(t,"F",function(){return C}),r.d(t,"A",function(){return x}),r.d(t,"B",function(){return E}),r.d(t,"s",function(){return N}),r.d(t,"e",function(){return k}),r.d(t,"f",function(){return D}),r.d(t,"v",function(){return A}),r.d(t,"G",function(){return R}),r.d(t,"g",function(){return L}),r.d(t,"i",function(){return M}),r.d(t,"C",function(){return F}),r.d(t,"z",function(){return V}),r.d(t,"E",function(){return U}),r.d(t,"q",function(){return B}),r.d(t,"H",function(){return W});var n=r("./src/lib/makeCommentPermalink/index.ts"),o=r("./src/lib/objectSelector/index.ts"),s=r("./src/reddit/constants/comments.ts"),i=r("./src/reddit/selectors/posts.ts"),d=r("./src/reddit/selectors/subreddit.ts");const c=(e,{commentsPageKey:t})=>e.commentsPage.api.error[t],u=(e,{commentsPageKey:t})=>e.commentsPage.api.pending[t],a=(e,{commentsPageKey:t})=>e.commentsPage.api.fullyLoaded[t],l=(e,t)=>e.commentsPage.keyToHeadCommentId[t.commentsPageKey],f=(e,t)=>{const r=l(e,t);if(r)return O(e,{commentId:r})},m=[],p=Object(o.a)((e,t)=>{const r=l(e,t);if(!r)return m;const n=t.commentsPageKey,o=e.commentsPage.keyToCommentThreadLinkSets[n],i=[];let d={id:r,type:s.a.Comment};do{i.push(d),d=o[d.id].next}while(d);return i}),b=(e,{commentsPageKey:t})=>{const r=e.commentsPage.keyToPostId[t];return r?e.posts.models[r]:null},g=(e,{commentId:t,commentLink:r,commentsPageKey:n})=>{const o=e.commentsPage.keyToCommentThreadLinkSets[n];return o?r?o[r.id]:t?o[t]:null:null},h=(e,{commentsPageKey:t})=>e.commentsPage.keyToCommentThreadLinkSets[t],y=(e,t)=>{const r=t.commentsPageKey?g(e,t):null;return r?r.depth:null},v=(e,{commentLink:t})=>{const r=t.id;switch(t.type){case s.a.Comment:return e.comments.models[r];case s.a.MoreComments:return e.moreComments.models[r];case s.a.ContinueThread:return e.continueThreads.models[r];default:return null}},O=(e,{commentId:t})=>t?e.comments.models[t]:void 0,w=(e,{commentId:t,commentsPageKey:r})=>!!(t&&e.comments.collapsed[r]&&e.comments.collapsed[r][t]),I=(e,{commentsPageKey:t})=>e.comments.collapsed[t],S=(e,{commentsPageKey:t})=>e.moreComments.models,_=e=>e.comments.models,j=(e,{commentId:t})=>{const r=O(e,{commentId:t});return r?Object(n.a)(Object(i.C)(e,r),t):""},T=(e,{commentId:t})=>!!(t&&e.comments.focused&&e.comments.focused[t]),P=(e,{commentId:t,commentsPageKey:r})=>!!(t&&e.comments.isEditing[r]&&e.comments.isEditing[r][t]),C=(e,{commentId:t,commentsPageKey:r})=>!!(t&&e.comments.replyFormOpen[r]&&e.comments.replyFormOpen[r][t]),x=(e,{moreCommentsId:t})=>e.moreComments.models[t],E=(e,{moreCommentsId:t})=>!!e.moreComments.api.pending[t],N=(e,{id:t})=>e.continueThreads.models[t],k=(e,{commentId:t})=>{const r=t?e.comments.models[t]:void 0;if(!r)return null;const n=e.authorFlair.models[r.subredditId];return n?n[r.author]:null},D=(e,{commentId:t})=>{const r=t?e.comments.models[t]:void 0;if(!r)return null;const n=e.posts.models[r.postId];return n?Object(d.q)(e,{identifier:n.belongsTo,userName:r.author}):null},A=(e,{draftKey:t})=>!!e.comments.submit.error[t],R=(e,{draftKey:t})=>{const r=e.comments.submit.error[t];return r&&r.fields?r.fields.map(e=>e.msg):[]},L=(e,{draftKey:t})=>{const r=e.comments.drafts[t];return!!r&&r.autofocusDisabled},M=(e,{draftKey:t})=>e.comments.drafts[t],F=(e,{commentId:t})=>{const r=t?e.comments.submit.error[t]:void 0;return r&&r.fields?r.fields.map(e=>e.msg):void 0},V=(e,{commentId:t})=>!!t&&e.comments.submit.pending[t],U=(e,{commentId:t})=>!!t&&e.comments.models[t].sendReplies,B=e=>e.comments.visitHighlightFilter,W=(e,t)=>{const r=O(e,t);if(r)return Object(d.K)(e,r)}},"./src/reddit/selectors/experiments/m2mV1-5.ts":function(e,t,r){"use strict";var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/reddit/constants/experiments.ts"),s=r("./src/reddit/helpers/chooseVariant/index.ts");r.d(t,"c",function(){return i}),r.d(t,"a",function(){return d}),r.d(t,"b",function(){return c}),r.d(t,"d",function(){return a});const i=Object(n.createSelector)(e=>Object(s.b)(e,{experimentEligibilitySelector:e=>!e.user.temporaryGQL.isLoggedIn,experimentName:o.g}),e=>{if(!Object(o.R)(e))return e||void 0}),d=e=>e===o.s.TwoVisitMilestonePersistentTooltip||e===o.s.TwoVisitMilestonePersistentNoTooltip||e===o.s.ThreeVisitMilestonePersistentTooltip,c=e=>e===o.s.TwoVisitMilestoneNoPersistentTooltip,u={[o.s.TwoVisitMilestonePersistentTooltip]:2,[o.s.TwoVisitMilestoneNoPersistentTooltip]:2,[o.s.TwoVisitMilestonePersistentNoTooltip]:2,[o.s.ThreeVisitMilestonePersistentTooltip]:3},a=e=>{const t=i(e);return t&&u[t]||0}},"./src/reddit/selectors/listings.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return o}),r.d(t,"d",function(){return s}),r.d(t,"g",function(){return i}),r.d(t,"e",function(){return d}),r.d(t,"a",function(){return c}),r.d(t,"b",function(){return u}),r.d(t,"h",function(){return l}),r.d(t,"i",function(){return f}),r.d(t,"f",function(){return m}),r.d(t,"j",function(){return p});var n=r("./src/lib/objectSelector/index.ts");const o=(e,{listingKey:t})=>e.listings.postOrder.api.error[t],s=(e,{listingKey:t})=>e.listings.postOrder.api.pending[t],i=(e,t)=>e.listings.postOrder.loadMore[t.listingKey],d=(e,{listingKey:t,token:r})=>e.listings.postOrder.fetchedTokens[t][r],c=e=>e.listings.activeKey,u=Object(n.a)((e,{postId:t})=>{const r=c(e);if(!r)return;const n=e.listings.postOrder.ids[r];if(!n)return;const o=e.posts.models,s=a({listings:n,posts:o,postId:t,dir:"next"}),i=a({listings:n,posts:o,postId:t,dir:"prev"}),d=e.posts.models[i];return{nextPost:e.posts.models[s],prevPost:d}}),a=({listings:e,posts:t,postId:r,dir:n})=>{const o=e.indexOf(r);if(o<0)return null;let s,i=o;do{s=e[i+="prev"===n?-1:1]}while(t[s]&&t[s].isBlank);return s},l=(e,{listingKey:t})=>e.listings.listingOrder.api.pending[t],f=(e,{listingKey:t,token:r})=>e.listings.listingOrder.fetchedTokens[t][r],m=(e,{listingKey:t})=>!!e.listings.listingOrder.fetchedTokens[t],p=(e,{listingKey:t})=>e.listings.listingOrder.loadMore[t]},"./src/reddit/selectors/moderatorPermissions.ts":function(e,t,r){"use strict";r.d(t,"e",function(){return u}),r.d(t,"f",function(){return a}),r.d(t,"g",function(){return l}),r.d(t,"a",function(){return f}),r.d(t,"h",function(){return m}),r.d(t,"b",function(){return b}),r.d(t,"c",function(){return g}),r.d(t,"d",function(){return h});var n=r("./node_modules/lodash/values.js"),o=r.n(n),s=r("./src/lib/objectSelector/index.ts"),i=r("./src/reddit/models/ModeratingSubreddits/index.ts"),d=r("./src/reddit/selectors/posts.ts");const c=e=>!!(e.user&&e.user.account&&e.user.account.isAdmin),u=e=>!!(e.user&&e.user.account&&e.user.account.isMod)||c(e),a=(e,t)=>{const r=Object(d.D)(e,t);if(!r)return null;const n=r.belongsTo.id;return e.moderatingSubreddits[n]||c(e)},l=(e,t)=>e.moderatingSubreddits[t.subredditId]||c(e),f=e=>(t,r)=>{const n=l(t,r);return!(!n||!n[e])},m=Object(s.a)((e=>t=>{const r=[];for(const n in t.moderatingSubreddits){const o=t.moderatingSubreddits[n];o&&o[e]&&(t.subreddits.models[n]?r.push(t.subreddits.models[n]):t.profiles.models[n]&&r.push(t.profiles.models[n]))}return r})(i.b.posts)),p=e=>t=>{if(c(t))return!0;for(const r in t.moderatingSubreddits){const n=t.moderatingSubreddits[r];if(n&&n[e])return!0}return!1},b=p(i.b.flair),g=p(i.b.posts),h=(e,{subredditId:t})=>{const r=e.moderatingSubreddits[t];return c(e)||!(!r||!o()(r).some(e=>e))}},"./src/reddit/selectors/monthsToMinutes.ts":function(e,t,r){"use strict";r.d(t,"u",function(){return v}),r.d(t,"w",function(){return O}),r.d(t,"v",function(){return w}),r.d(t,"g",function(){return I}),r.d(t,"e",function(){return _}),r.d(t,"f",function(){return j}),r.d(t,"m",function(){return T}),r.d(t,"p",function(){return P}),r.d(t,"b",function(){return C}),r.d(t,"I",function(){return x}),r.d(t,"J",function(){return E}),r.d(t,"t",function(){return N}),r.d(t,"s",function(){return k}),r.d(t,"r",function(){return D}),r.d(t,"i",function(){return A}),r.d(t,"H",function(){return R}),r.d(t,"A",function(){return M}),r.d(t,"z",function(){return F}),r.d(t,"B",function(){return V}),r.d(t,"G",function(){return U}),r.d(t,"E",function(){return B}),r.d(t,"F",function(){return W}),r.d(t,"l",function(){return H}),r.d(t,"C",function(){return $}),r.d(t,"h",function(){return z}),r.d(t,"j",function(){return K}),r.d(t,"n",function(){return q}),r.d(t,"a",function(){return Y}),r.d(t,"c",function(){return J}),r.d(t,"d",function(){return Q}),r.d(t,"q",function(){return Z}),r.d(t,"D",function(){return te}),r.d(t,"x",function(){return re}),r.d(t,"y",function(){return ne}),r.d(t,"k",function(){return oe}),r.d(t,"o",function(){return se});var n=r("./node_modules/lodash/uniq.js"),o=r.n(n),s=r("./node_modules/lodash/values.js"),i=r.n(s),d=r("./node_modules/reselect/lib/index.js"),c=r("./src/lib/constants/index.ts"),u=r("./src/reddit/constants/experiments.ts"),a=r("./src/reddit/helpers/name/index.ts"),l=r("./src/reddit/models/MonthsToMinutes/index.ts"),f=r("./src/reddit/models/Vote/index.ts"),m=r("./src/reddit/selectors/experiments/m2mV1-5.ts"),p=r("./src/reddit/selectors/runTimeEnvVars.ts"),b=r("./src/reddit/selectors/subreddit.ts"),g=r("./src/reddit/selectors/subscriptions.ts"),h=r("./src/reddit/selectors/user.ts"),y=r("./src/reddit/selectors/platform.ts");const v=e=>!!Object(m.c)(e),O=e=>Object(m.c)(e)===u.t.ACInFeed&&!S(e),w=e=>Object(m.c)(e)===u.t.ACAtBottom&&!S(e)&&!_(e)&&![c.Rb.PREMIUM,c.Rb.COINS].includes(Object(y.n)(e)),I=e=>{const t=G(e);return!!t&&Object(p.a)(e)-t>21*c.y},S=e=>e.user.loggedOutData.accountCompleteness.closed,_=e=>e.user.loggedOutData.accountCompleteness.sleeping,j=e=>e.user.loggedOutData.accountCompleteness.step,T=e=>{const t=j(e);return t===l.b.BannerVisible||t===l.b.HomeVisited},P=e=>j(e)===l.b.HomeVisited,C=e=>e.user.loggedOutData.accountCompleteness.collapsed,x=e=>e.user.experiments.dismissed.welcomeModal,E=e=>!x(e)&&e.user.experiments.dismissed.localStorageLoaded&&!!e.user.experiments.localPersisted[u.f]&&Object(h.C)(e),N=e=>e.user.loggedOutData.votes,k=e=>e.user.loggedOutData.views,D=e=>e.user.loggedOutData.homeFeed,A=e=>{if(!v(e))return null;const t=(e=>e.user.loggedOutData.feedMultiName)(e);return t.length?t.join("+"):null},R=Object(d.createSelector)(e=>e.user.loggedOutData.votes.posts,e=>e.user.loggedOutData.votes.comments,(e,t)=>{return Object.keys(e).filter(t=>0!==e[t]).length+Object.keys(t).filter(e=>0!==t[e]).length}),L=e=>e&&!e.isDismissed&&e.postId,M=e=>{const t=e.user.loggedOutData.tooltips[l.j.SubscribeFeed];return!Object(g.a)(e)&&L(t)?t.postId:void 0},F=e=>{const t=e.user.loggedOutData.tooltips[l.j.SubscribeReminder];return!Object(g.a)(e)&&L(t)?t.postId:void 0},V=e=>{const t=e.user.loggedOutData.tooltips[l.j.SubscribeIdCard];return!Object(g.a)(e)&&!t.isDismissed&&v(e)},U=e=>{const t=e.user.loggedOutData.tooltips[l.j.Vote];return!R(e)&&L(t)&&v(e)?t.postId:void 0},B=e=>{const t=e.user.loggedOutData.tooltips[l.j.VoteReminder];return!R(e)&&L(t)&&v(e)?t.postId:void 0},W=e=>{const t=e.user.loggedOutData.tooltips[l.j.VoteSuccess];return L(t)&&v(e)?t.postId:void 0},H=e=>{const t=e.user.loggedOutData.tooltips[l.j.Home];return v(e)&&!1===t.isDismissed},$=e=>{const t=e.user.loggedOutData.tooltips;return{homeTooltipTime:t[l.j.Home].time,subscribeIdCardTooltipTime:t[l.j.SubscribeIdCard].time,subscribeTooltipTime:t[l.j.SubscribeFeed].time,voteTooltipTime:t[l.j.Vote].time}},G=Object(d.createSelector)($,e=>{const t=i()(e).filter(e=>!!e);return t.sort(),t.length>0?t[0]:void 0}),z=e=>e.user.loggedOutData.dataLoaded,K=(e,t)=>Object(h.F)(e)||v(e)&&!!A(e)&&e.user.loggedOutData.isFrontpageHome,q=e=>v(e)&&Object(g.a)(e)>=3&&!e.user.loggedOutData.isFrontpageHome,Y=e=>{const t=(e=>e.user.loggedOutData.accountCompleteness.selectedTab)(e);if(null!==t)return t;const r=(e=>e.user.loggedOutData.milestoneActionFresh)(e),n=Object(g.a)(e),o=R(e),s=(e=>e.user.loggedOutData.lastMilestoneAction)(e);if(s===l.g.Subscribe){if(n<l.h)return l.c.Subscribe;if(n===l.h&&r)return l.c.Subscribe}if(s===l.g.Vote){if(o<l.i)return l.c.Vote;if(o===l.i&&r)return l.c.Vote}const i=J(e);return i[l.c.Welcome]?i[l.c.Subscribe]?i[l.c.Vote]?l.c.Signup:l.c.Vote:l.c.Subscribe:l.c.Welcome},J=e=>{const t=Object(g.a)(e),r=R(e);return[t>0||r>0,!(t<l.h),!(r<l.i),!1]},Q=e=>{return{closed:S(e),collapsed:C(e),sleeping:_(e),step:j(e)}},X=Object(d.createSelector)(e=>e.user.loggedOutData.views.posts,e=>Object.keys(e).filter(t=>e[t]).length),Z=e=>{return!!Object(m.c)(e)&&X(e)>=Object(m.d)(e)},ee=Object(d.createSelector)(N,e=>D(e).votes,(e,t)=>{return[...Object.keys(e.comments).filter(t=>e.comments[t]!==f.a.notVoted),...Object.keys(e.posts).filter(t=>e.posts[t]!==f.a.notVoted)].map(e=>t[e]).filter(Boolean)}),te=Object(d.createSelector)(g.b,e=>D(e).views,ee,(e,t,r)=>{return o()([...e.map(({name:e})=>e),...r,...t].map(a.f))}),re=Object(d.createSelector)(te,e=>D(e).similar,(e,t)=>{return o()([...e,...t].map(a.f)).slice(0,l.e)}),ne=e=>{return re(e).reduce((t,r)=>{return t[Object(b.z)(e,r)]=r,t},{})},oe=e=>{return re(e).map(t=>Object(b.v)(e,{subredditName:t})).filter(Boolean)},se=e=>{const t=Z(e),r=re(e);return t&&r.length>=l.e}},"./src/reddit/selectors/multireddit.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return a}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return f}),r.d(t,"b",function(){return m}),r.d(t,"g",function(){return p}),r.d(t,"d",function(){return b}),r.d(t,"c",function(){return g});var n=r("./src/app/strings/index.ts"),o=r("./src/lib/objectSelector/index.ts"),s=r("./src/reddit/models/Multireddit/index.ts"),i=r("./src/reddit/models/User/index.ts"),d=r("./src/reddit/selectors/subreddit.ts"),c=r("./src/reddit/selectors/user.ts");const u=[],a=Object(o.a)((e,{listingName:t})=>{const r=(e=>e.replace(/\++/g,"+").replace(/^\+/,"").replace(/\+$/,""))(t.toLowerCase()).split("+").map(t=>Object(d.z)(e,t)).filter(e=>void 0!==e),o=r.map(t=>e.subreddits.models[t].name).join(", ");return{displayText:Object(n.d)(Object(c.M)(e),"multireddit.adHocDescription",o.length,{subreddits:o}),subredditIds:r}}),l=e=>e.multireddits.api.fetched,f=e=>e.multireddits.api.pending,m=(e,{multiredditName:t})=>{if(!e.user.account)return null;const r=e.user.account.displayText,n=Object(s.c)(r,t);return e.multireddits.models[n]},p=Object(o.a)(e=>{const t=e.user.account;if(!t)return u;const r=t.id,n=e.multireddits.byUserId[r];return n?n.map(t=>e.multireddits.models[t]).filter(e=>e.visibility!==s.a.Hidden):u}),b=(e,{multiredditName:t})=>{if(!e.user.account)return"";const r=m(e,{multiredditName:t});return r?`/me/m/${r.name}`:""},g=(e,{multiredditName:t})=>{const r=e.user.account;if(!r)return"";const o=Object(i.f)(r),d=Object(s.c)(o,t),c=e.multireddits.models[d];return c?Object(n.a)(e.user.language,"multireddit.title",{displayText:c.displayText,username:o}):""}},"./src/reddit/selectors/news.ts":function(e,t,r){"use strict";r.d(t,"m",function(){return O}),r.d(t,"i",function(){return _}),r.d(t,"l",function(){return j}),r.d(t,"h",function(){return T}),r.d(t,"o",function(){return x}),r.d(t,"n",function(){return E}),r.d(t,"d",function(){return N}),r.d(t,"r",function(){return k}),r.d(t,"g",function(){return D}),r.d(t,"j",function(){return A}),r.d(t,"k",function(){return R}),r.d(t,"b",function(){return L}),r.d(t,"f",function(){return M}),r.d(t,"e",function(){return F}),r.d(t,"p",function(){return V}),r.d(t,"a",function(){return U}),r.d(t,"q",function(){return B}),r.d(t,"c",function(){return W});var n=r("./src/lib/constants/index.ts"),o=r("./src/lib/env/index.ts"),s=r("./src/lib/makeListingKey/index.ts"),i=r("./src/lib/objectSelector/index.ts"),d=r("./src/reddit/constants/experiments.ts"),c=r("./src/reddit/constants/news.ts"),u=r("./src/reddit/constants/page.ts"),a=r("./src/reddit/featureFlags/index.ts"),l=r("./src/reddit/helpers/chooseVariant/index.ts"),f=r("./src/reddit/helpers/news/index.ts"),m=r("./src/reddit/models/Media/index.ts"),p=r("./src/reddit/models/News/index.ts"),b=r("./src/reddit/models/Widgets/index.ts"),g=r("./src/reddit/routes/news/util.ts"),h=r("./src/reddit/selectors/listings.ts"),y=r("./src/reddit/selectors/posts.ts"),v=r("./src/reddit/selectors/subreddit.ts");const O=e=>e&&e.session&&!e.session.unsafeLoggedOut?n.X.BEST:n.X.HOT,w=e=>(t,r="",n="")=>((e,t,r,n)=>{const o={topic:t,subtopic:r};return Object(s.a)(e,O(n),o)})(e,r,n,t),I=(e,t,r,n)=>{const o=[],s=[],i=[],d=[];return t.forEach(t=>{const c=B(e,{postId:t}),u=r[t],a=Object(f.a)(c),l=!((e,t)=>{return t[Object(m.w)(e)].posts.length>1})(u,n);if(a&&l)o.push(t);else if(a&&!l){const e=Object(m.w)(u),r=n[e].collIndex;if(null===r){const r=[t];s.push(r),n[e].collIndex=s.length-1}else s[r].push(t)}else!a&&l?i.push(t):a||l||d.push(t)}),{onOn:o,onOff:s,offOn:i,offOff:d}},S=(e,{listingKey:t})=>{const r=Object(y.y)(e,{listingKey:t}),n=Object(y.N)(e,{listingKey:t}),o=((e,t)=>{const r={};return e.forEach(e=>{const n=t[e],o=Object(m.w)(n);r[o]||(r[o]={posts:[],collIndex:null}),r[o].posts.push(n)}),r})(r,n);var s=I(e,r,n,o);const i=s.onOn,d=s.onOff,c=s.offOn,u=s.offOff;var a=((e,t)=>{const r=[],n=Math.max(e.length,t.length);for(let s=0;s<n;s++){const n=e[s];n&&r.push(n);const o=t[s];if(o){const e=o.shift();e&&r.push(e)}}let o=[];return t.forEach(e=>{o=[...o,...e]}),{crossPollinatedIds:r,remainingOnOffIds:o}})(i,d);return[...a.crossPollinatedIds,...c,...u,...a.remainingOnOffIds]},_=(e,t)=>{return S(e,t).slice(0,c.e)},j=(e,{listingKey:t})=>{const r=Object(y.y)(e,{listingKey:t});if(!V(e))return r;const n=R(e),o=_(e,{listingKey:n}),s=Object(y.G)(e,{postIds:o});return r.filter(e=>{return!!!s[e]})},T=w(u.h),P=w(u.d),C=[],x=e=>e.news.topics.models.selectedTopic,E=e=>e.news.topics.models.selectedSubtopic,N=e=>e.news.topics.models.availableTopics,k=e=>e.news.topics.api.pending,D=e=>{const t=Object(o.b)()?d.q:d.L,r=Object(o.b)()?d.r.Treatment1:d.O.TestTreatment1;return Object(l.b)(e,{experimentEligibilitySelector:e=>!1===e.user.temporaryGQL.isLoggedIn&&a.d.news(e),experimentName:t})===r},A=e=>{var t=e.news.topics.models;const r=t.selectedTopic,n=t.selectedSubtopic,o=r&&r.topicId!==p.a&&Object(g.d)(r.name)||"";return T(e.user,o,n&&Object(g.d)(n.name)||"")},R=e=>{var t=e.news.topics.models;const r=t.selectedTopic,n=t.selectedSubtopic,o=r&&r.topicId!==p.a&&Object(g.d)(r.name)||c.g;return P(e.user,o,n&&Object(g.d)(n.name)||"")},L=e=>P(e.user,c.g,""),M=e=>{const t=e.news.topics.api.pending,r=e.news.topics.models.availableTopics.length>0,n=!!e.news.topics.api.error;return t||!n||r},F=e=>{const t=L(e),r=Object(h.d)(e,{listingKey:t}),n=!!e.listings.postOrder.ids[t],o=Object(h.c)(e,{listingKey:t});return r||!o||n},V=e=>{const t=x(e),r=E(e);return!t||t&&!r},U=e=>{const t=A(e);return e.news.communityInfo.activeCommunityIds[t]||C},B=(e,{postId:t})=>e.news.stories.models[t],W=Object(i.a)((e,t)=>Object(v.M)(e,t).map(t=>Object(b.h)(t,Object(v.s)(e,{subredditName:t.name}))))},"./src/reddit/selectors/platform.ts":function(e,t,r){"use strict";r.d(t,"b",function(){return i}),r.d(t,"n",function(){return d}),r.d(t,"j",function(){return c}),r.d(t,"m",function(){return u}),r.d(t,"h",function(){return a}),r.d(t,"g",function(){return l}),r.d(t,"i",function(){return f}),r.d(t,"k",function(){return m}),r.d(t,"c",function(){return p}),r.d(t,"d",function(){return b}),r.d(t,"e",function(){return g}),r.d(t,"f",function(){return h}),r.d(t,"l",function(){return y}),r.d(t,"a",function(){return v}),r.d(t,"o",function(){return O});var n=r("./src/lib/constants/index.ts"),o=r("./src/reddit/models/Post/index.ts"),s=(r("./src/reddit/selectors/multireddit.ts"),r("./src/reddit/selectors/subreddit.ts"));const i=e=>e.platform.currentPage,d=e=>{if(!e.platform.currentPage||!e.platform.currentPage.routeMatch)return null;return e.platform.currentPage.routeMatch.route.meta.name},c=e=>e.platform.currentPage&&e.platform.currentPage.routeMatch&&[n.r.FRONTPAGE,n.r.MULTIREDDIT,n.r.SUBREDDIT].includes(e.platform.currentPage.routeMatch.route.chunk),u=e=>!!(e.platform.lastPage&&e.platform.lastPage.locationState&&e.platform.lastPage.locationState.isOverlay),a=e=>!!(e.platform.currentPage&&e.platform.currentPage.locationState&&e.platform.currentPage.locationState.isOverlay),l=e=>!(!e.platform.currentPage||!e.platform.currentPage.meta||e.platform.currentPage.meta.name!==n.Rb.COMMENTS),f=e=>!(!e.platform.currentPage||!e.platform.currentPage.meta||e.platform.currentPage.meta.name!==n.Rb.POST_CREATION),m=e=>!!(e.platform.currentPage&&e.platform.currentPage.meta&&e.platform.currentPage.meta.name===n.Rb.COMMENTS&&e.platform.currentPage.urlParams&&e.platform.currentPage.urlParams.routePrefix&&"user"===e.platform.currentPage.urlParams.routePrefix),p=e=>e.platform&&e.platform.currentPage&&e.platform.currentPage.status,b=e=>{const t=g(e);return t?Object(s.z)(e,t):null},g=e=>{const t=e.platform.currentPage&&e.platform.currentPage.urlParams;return t?t.subredditName:null},h=e=>{const t=g(e);return t?Object(s.v)(e,{subredditName:t}):null},y=(e,{page:t})=>{const r=t.routeMatch;if(!r)return;const n=r.match.params.partialPostId;return e.posts.models[Object(o.f)(n)]},v=e=>e.platform.allowNavigationCallback,O=e=>e.platform.currentPage?e.platform.currentPage.url:""},"./src/reddit/selectors/postCollection.ts":function(e,t,r){"use strict";r.d(t,"e",function(){return a}),r.d(t,"b",function(){return l}),r.d(t,"m",function(){return f}),r.d(t,"l",function(){return m}),r.d(t,"i",function(){return p}),r.d(t,"f",function(){return b}),r.d(t,"k",function(){return g}),r.d(t,"j",function(){return h}),r.d(t,"h",function(){return v}),r.d(t,"p",function(){return O}),r.d(t,"o",function(){return w}),r.d(t,"c",function(){return I}),r.d(t,"a",function(){return S}),r.d(t,"g",function(){return _}),r.d(t,"d",function(){return j}),r.d(t,"n",function(){return T});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/lib/eventTools/index.ts"),s=r("./src/reddit/selectors/posts.ts"),i=r("./src/reddit/selectors/structuredStyles.ts"),d=r("./src/reddit/selectors/subreddit.ts"),c=r("./src/reddit/selectors/postCreations.ts");const u=[],a=(e,{postId:t})=>{const r=Object(s.D)(e,{postId:t});let n=!1;if(r&&r.eventInfo){var i=r.eventInfo;const e=i.eventStart,t=i.eventEnd;if(!i.eventIsLive){n=Object(o.e)(e,t)===o.a.Future}}return n},l=(e,{collectionId:t})=>{const r=m(e,{collectionId:t});if(!r||!r.id)return"";const n=r.subredditId,o=Object(d.b)(e,{subredditId:n});let s="";return o&&t&&(s=`${o}submit?collection=${t}`),s},f=e=>{const t=Object(c.c)(e),r=Object(c.e)(e);return!!(t&&r&&r.collectionsEnabled)},m=(e,{collectionId:t})=>e.postCollection.models[t],p=(e,{postId:t})=>{const r=e.posts.models[t].collectionIds,n=r?r[0]:null;return n&&e.postCollection.models[n]||null},b=(e,{postId:t})=>{const r=e.posts.models[t].collectionIds;return!!(r?r[0]:null)},g=(e,{collectionId:t})=>{const r=m(e,{collectionId:t});return r?r.primaryPostId:null},h=(e,{collectionId:t})=>{const r=m(e,{collectionId:t});if(!r)return null;const n=r.postIds||[];return Object(s.G)(e,{postIds:n})},y=(e,{subredditId:t})=>e.postCollection.subredditToIds[t],v=(e,{subredditId:t})=>{const r=y(e,{subredditId:t});return!(!r||!r.length)},O=Object(n.createSelector)(y,e=>e.postCollection.models,(e,t)=>e?e.map(e=>t[e]).filter(Boolean):u),w=(e,t)=>{const r=y(e,t);return r?r.length:0},I=e=>e.creations.api.collection.createOrUpdate.pending,S=e=>e.creations.api.collection.createOrUpdate.error,_=e=>e.postCollection.api.pending.reorderPending,j=e=>e.postCollection.api.pending.updateDescriptionPending,T=(e,{collectionId:t})=>!(!((e,{collectionId:t})=>{const r=m(e,{collectionId:t});if(!r||!r.id)return;const n=r.subredditId;return!!Object(i.k)(e,{subredditId:n}).postPlaceholderImage})(e,{collectionId:t})&&!((e,{collectionId:t})=>{const r=h(e,{collectionId:t});if(!r||!Object.keys(r).length)return;let n=0;for(const o in r){const e=r[o];e&&e.thumbnail.width&&e.thumbnail.height&&(n+=1)}return n>=Object.keys(r).length-n})(e,{collectionId:t}))},"./src/reddit/selectors/postCreations.ts":function(e,t,r){"use strict";r.d(t,"q",function(){return P}),r.d(t,"r",function(){return C}),r.d(t,"m",function(){return E}),r.d(t,"z",function(){return N}),r.d(t,"Q",function(){return k}),r.d(t,"bb",function(){return D}),r.d(t,"I",function(){return A}),r.d(t,"K",function(){return R}),r.d(t,"f",function(){return L}),r.d(t,"e",function(){return M}),r.d(t,"Z",function(){return F}),r.d(t,"c",function(){return V}),r.d(t,"a",function(){return U}),r.d(t,"A",function(){return B}),r.d(t,"P",function(){return W}),r.d(t,"i",function(){return H}),r.d(t,"g",function(){return $}),r.d(t,"h",function(){return G}),r.d(t,"j",function(){return z}),r.d(t,"k",function(){return K}),r.d(t,"B",function(){return q}),r.d(t,"E",function(){return Y}),r.d(t,"C",function(){return J}),r.d(t,"O",function(){return Q}),r.d(t,"n",function(){return X}),r.d(t,"p",function(){return Z}),r.d(t,"l",function(){return ee}),r.d(t,"M",function(){return te}),r.d(t,"N",function(){return re}),r.d(t,"db",function(){return ne}),r.d(t,"W",function(){return oe}),r.d(t,"D",function(){return se}),r.d(t,"y",function(){return ie}),r.d(t,"ab",function(){return de}),r.d(t,"cb",function(){return ce}),r.d(t,"U",function(){return ue}),r.d(t,"X",function(){return ae}),r.d(t,"F",function(){return le}),r.d(t,"G",function(){return fe}),r.d(t,"H",function(){return me}),r.d(t,"V",function(){return pe}),r.d(t,"L",function(){return be}),r.d(t,"x",function(){return ge}),r.d(t,"w",function(){return he}),r.d(t,"t",function(){return ye}),r.d(t,"u",function(){return ve}),r.d(t,"s",function(){return Oe}),r.d(t,"v",function(){return we}),r.d(t,"J",function(){return Ie}),r.d(t,"o",function(){return Se}),r.d(t,"b",function(){return _e}),r.d(t,"S",function(){return je}),r.d(t,"Y",function(){return Te}),r.d(t,"d",function(){return Pe}),r.d(t,"R",function(){return Ce}),r.d(t,"T",function(){return xe});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/app/strings/index.ts"),s=r("./src/lib/constants/index.ts"),i=r("./src/lib/makeListingKey/index.ts"),d=r("./src/lib/makePostCreationPageKey/index.ts"),c=r("./src/reddit/components/RichTextEditor/RTEState/index.tsx"),u=r("./src/reddit/constants/originalContent.ts"),a=r("./src/reddit/contexts/PageLayer/index.tsx"),l=r("./src/reddit/contexts/PageLayer/selectors.ts"),f=r("./src/reddit/helpers/getSubredditUrl/index.ts"),m=r("./src/reddit/helpers/media/index.ts"),p=r("./src/reddit/helpers/name/index.ts"),b=r("./src/reddit/helpers/path/index.ts"),g=r("./src/reddit/models/OcSubreddits/index.ts"),h=r("./src/reddit/models/PostCreationForm/index.ts"),y=r("./src/reddit/models/Upload/index.ts"),v=r("./src/reddit/routes/postCreation/constants.ts"),O=r("./src/reddit/selectors/listings.ts"),w=r("./src/reddit/selectors/platform.ts"),I=r("./src/reddit/selectors/postFlair.ts"),S=r("./src/reddit/selectors/posts.ts"),_=r("./src/reddit/selectors/subreddit.ts"),j=r("./src/reddit/selectors/subredditAutocomplete.ts"),T=r("./src/reddit/selectors/user.ts");const P=e=>{const t=e.creations.api;var r=t.post.submit.error;const n=r.apiError,o=r.pollError,s=r.validationError;return!!(n||s||t.editor.mediaUpload.error||o)},C=e=>{return!!e.creations.api.post.submit.error.submitValidationError},x=e=>(e&&e.fields||[]).map(e=>e.msg),E=Object(n.createSelector)(e=>e.creations.api.post.submit.error,e=>e.creations.api.editor.mediaUpload.error,(e,t)=>{const r=e.apiError,n=e.validationError,o=e.pollError;return[...x(r),...x(n),...x(t),...(e=>e&&"extra"in e?Object.keys(e.extra).map(t=>e.extra[t]):[])(o)]}),N=(e,{pageLayer:t})=>{if(!t||!Object(a.I)(t))return!1;var r=t.urlParams;const n=r.subredditName,o=r.profileName,s=Object(d.a)({subredditName:n,profileName:o});return!!e.creations.api.page.pending[s]},k=e=>D(e)||A(e),D=e=>e.creations.api.post.submit.pending,A=e=>e.creations.api.editor.mediaUpload.pending,R=e=>e.creations.api.post.submit.error.needsCaptcha,L=Object(n.createSelector)(T.j,w.f,e=>{const t=Object(w.e)(e);if(t){const r=Object(j.d)(e,{substring:t});if(r)return r.subreddits.find(e=>Object(p.a)(e.name,t))}},e=>{const t=Object(w.f)(e);return t&&Object(_.u)(e,{subredditName:t.name})},e=>e.platform.currentPage,(e,t,r,n,o)=>{var s=o&&o.urlParams||{},i=s.profileName;const d=void 0===i?"":i;var c=s.subredditName;const u=void 0===c?"":c;if(d)return{isProfile:!0,name:e&&e.username||Object(p.f)(d),id:e&&e.id||void 0};{var a=t||r||{},l=a.name;const e=void 0===l?Object(p.f)(u):l;var f=a.id;return{isProfile:!1,allowedPostTypes:n,id:(void 0===f?"":f)||void 0,name:e}}}),M=e=>{const t=L(e);return t.isProfile||!t.name?null:Object(_.s)(e,{subredditName:t.name})},F=e=>e.creations.formData.submissionType,V=e=>{const t=L(e);if(!t.id)return!1;const r=e.moderatingSubreddits[t.id];return!!r&&(e=>Object.keys(e).some(t=>!0===e[t]))(r)},U=Object(n.createSelector)(F,w.f,L,V,(e,t,r,n)=>{if(e===s.hc.POLL)return e;const o=r.allowedPostTypes;if(n||!o)return e;const i=!!t&&t.isNSFW,d=[o.text&&s.hc.POST,(o.images||o.videos)&&!i&&s.hc.MEDIA,o.links&&s.hc.LINK_ONLY,s.hc.CROSSPOST].filter(Boolean);return d.indexOf(e)>=0?e:d[0]}),B=(e,{postId:t})=>e.creations.postEditing.postId===t,W=e=>e.creations.api.post.update.pending,H=e=>!!e.creations.api.post.update.error,$=e=>e.creations.postEditing.editorMode,G=Object(n.createSelector)(e=>e.creations.api.post.update.error,e=>x(e).join()),z=e=>e.creations.postEditing.draft.markdown,K=e=>e.creations.postEditing.draft.rte,q=e=>e.creations.formData.isNSFW,Y=e=>e.creations.formData.isSpoiler,J=e=>{const t=e.creations.formData.isOC,r=M(e);if(r){if(!Object(g.b)(r))return!1;if(r.allOriginalContent)return!0}return t},Q=e=>e.creations.formData.ocCategory,X=e=>e.creations.formData.eventSchedule||void 0,Z=Object(n.createSelector)(e=>e.creations.formData.flair,e=>{const t=Object(w.d)(e);return t?Object(I.c)(e,{subredditId:t}):null},(e,t)=>e&&e.templateId&&t&&t.templateIds.includes(e.templateId)?e:null),ee=e=>e.user.prefs.editorMode,te=e=>e.creations.formState.ocCategory||"",re=(e,{category:t})=>!!t&&Object(O.h)(e,{listingKey:Object(i.a)(u.d,"",{category:t})}),ne=e=>e.creations.formData.title,oe=e=>e.creations.formData.sendReplies,se=e=>e.creations.formData.isPublicLink,ie=e=>e.creations.formState.isChanged,de=e=>e.creations.formState.submitMode,ce=e=>e.creations.api.subreddit.change.pending,ue=e=>{const t=L(e).name;return e.subredditSettings.requirementsBySubreddit[t.toLowerCase()]},ae=Object(n.createSelector)(V,ue,(e,t)=>e||!t||"notAllowed"!==t.ruleBodyRequirement),le=e=>e.creations.formData.body.link,fe=e=>e.creations.formData.body.markdown,me=Object(n.createSelector)(e=>e.creations.formData.body.media,e=>e.uploads[h.m],L,T.M,(e,t,r,n)=>{if(!t)return;const s=Object(m.e)(t.metadata.mimetype),i=r.allowedPostTypes;var d=(e&&e.video||{}).isMakeGif;let c,u=void 0!==d&&d;if(i){const e=r.name;i.images?i.videos||(c=Object(o.a)(n,"postCreation.mediaInput.makeGif.fixedToOnReason",{subredditName:e}),u=!0):(c=Object(o.a)(n,"postCreation.mediaInput.makeGif.fixedToOffReason",{subredditName:e}),u=!1)}return{file:t.file,status:t.status,url:t.url,mediaType:s||void 0,video:"video"===s?Object.assign({thumbnail:{time:0,url:t.metadata.videoFirstFrameUrl}},e&&e.video||{},{duration:t.metadata.videoDuration||0,isMakeGif:u,makeGifDisableReason:c}):void 0}}),pe=e=>e.creations.formData.body.rte,be=e=>e.creations.formData.nextSubreddit,ge=e=>{return!!ne(e).trim()},he=e=>{const t=pe(e);return c.a.hasContent(t)},ye=e=>{return!!fe(e).trim()},ve=e=>{const t=me(e);return!!t&&!!t.file&&t.status!==y.a.FAILED},Oe=e=>{return!!le(e).trim()},we=e=>ge(e)||he(e)||ye(e)||ve(e)||Oe(e),Ie=e=>e.creations.formState.modalId||e.activeModalId,Se=(e,{field:t})=>{switch(t){case s.vb.TITLE:return{title:ne(e)};case s.vb.BODY:if(ee(e)===h.h.RICH_TEXT){const t=pe(e);return{rtjson:c.a.toRichTextJSON(t,e.uploads).document}}return{selftext:fe(e).trim()};case s.vb.LINK:{const t=le(e);if(!t)return;return{url:t}}case s.vb.FLAIR:{const t=Z(e);return{flairId:t?t.templateId:void 0}}default:return}},_e=(e,t)=>{const r=L(e),n=Z(e),o=q(e),s=J(e),i=Y(e),d=Q(e),c=oe(e),u=ne(e),a=se(e);return{collectionId:e.platform.currentPage.queryParams.collection,destSubreddit:r,draftId:t,flair:n,isNSFW:o,isOC:s,isSpoiler:i,ocCategory:d,sendReplies:c,title:u,isPublicLink:a}},je=(e,t)=>{const r=_e(e,t.draftId);if(!r||!r.destSubreddit.name)return;const n=(e=>e.creations.formData.recaptcha)(e),o=xe(e,t),i=X(e),d=Object.assign({},r,{eventSchedule:i,gRecaptchaResponse:n,postToTwitter:o,validate_on_submit:!0}),u=ee(e),a=le(e),l=fe(e),f=me(e),m=pe(e),p=ae(e),b=U(e),g=e.uploads,y=t.sourcePostId;if(b===s.hc.LINK_ONLY&&a)return Object.assign({},d,{url:a,kind:h.o.LINK});if(b===s.hc.MEDIA&&f){var v=f.mediaType;const e=void 0===v?"image":v,t=f.video,r=g[h.n],n="video"===e?r.url:null;return Object.assign({},d,{mediaType:e,videoThumbnailUrl:n,kind:h.o.MEDIA,url:f.url||"",makeGif:!!t&&t.isMakeGif})}if((b===s.hc.POST||b===s.hc.POLL)&&u===h.h.MARKDOWN)return Object.assign({},d,{kind:h.o.MARKDOWN,markdown:p?l:""});if((b===s.hc.POST||b===s.hc.POLL)&&u===h.h.RICH_TEXT){const e=p&&c.a.hasContent(m)?c.a.toRichTextJSON(m,g).document:[];return Object.assign({},d,{kind:h.o.RICH_TEXT,document:e})}return b===s.hc.CROSSPOST&&y?Object.assign({},d,{kind:h.o.CROSSPOST,sourcePostId:y}):void 0},Te=(e,{sourcePostId:t})=>t?Object(S.e)(e,{postId:t}):void 0,Pe=e=>{const t=me(e);switch(U(e)){case s.hc.LINK_ONLY:return"link";case s.hc.MEDIA:return t&&"image"!==t.mediaType&&t.video?t.video.isMakeGif?"videogif":"video":"image";default:return"self"}},Ce=(e,{pageLayer:t})=>{if(!t)return v.c;const r=Object(a.t)(e,{pageLayer:t});if(r)return Object(b.a)(Object(f.a)(r),v.c);if(Object(a.E)(t))return Object(b.a)("/original/",v.c);const n=Object(a.l)(e,{pageLayer:t});return n&&Object(a.F)(e,{pageLayer:t})&&Object(T.g)(e)?Object(b.a)(n.url,v.c):v.c},xe=(e,t)=>{const r=Object(l.q)(e,t);return(!r||!r.isQuarantined)&&e.creations.formData.postToTwitter}},"./src/reddit/selectors/postDraft.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return p}),r.d(t,"d",function(){return b}),r.d(t,"e",function(){return g}),r.d(t,"b",function(){return h}),r.d(t,"f",function(){return y}),r.d(t,"g",function(){return O}),r.d(t,"a",function(){return w}),r.d(t,"h",function(){return I}),r.d(t,"i",function(){return S});var n=r("./src/config.ts"),o=r("./node_modules/lodash/values.js"),s=r.n(o),i=r("./node_modules/reselect/lib/index.js"),d=r("./src/lib/constants/index.ts"),c=r("./src/reddit/components/RichTextEditor/RTEState/index.tsx"),u=r("./src/reddit/models/PostCreationForm/index.ts"),a=r("./src/reddit/models/PostDraft/index.ts"),l=r("./src/reddit/selectors/postCreations.ts"),f=r("./src/reddit/selectors/subreddit.ts"),m=r("./src/reddit/selectors/user.ts");const p=Object(i.createSelector)(e=>e.creations.drafts,e=>s()(e).sort((e,t)=>{const r=e.modified||e.created;return(t.modified||t.created)-r})),b=(e,{draftId:t})=>t?e.creations.drafts[t]:null,g=(e,t)=>{const r=b(e,t);if(r&&r.subredditId){const t=Object(f.G)(e,{subredditId:r.subredditId});return t?t.name:void 0}},h=e=>e.creations.api.draft.listing.pending,y=e=>{var t=e.creations.api.draft.save.error;const r=t.apiError,n=t.validationError;return!(!r&&!n)},v=e=>(e&&e.fields||[]).map(e=>e.msg),O=(Object(i.createSelector)(e=>e.creations.api.draft.save.error,e=>{const t=e.apiError,r=e.validationError;return[...v(t),...v(r)]}),e=>e.creations.api.draft.save.pending),w=(e,t)=>e.creations.api.draft.deleteDraft.pending[t]||!1,I=(e,t)=>{const r=Object(l.b)(e,t);if(!r)return;const n=Object(l.l)(e),o=Object(l.F)(e),s=Object(l.G)(e),i=Object(l.V)(e),f=Object(l.X)(e),m=Object(l.a)(e),p=e.uploads;if(m===d.hc.LINK_ONLY)return Object.assign({},r,{body:o,kind:a.b.Link});if(m===d.hc.POST&&n===u.h.MARKDOWN)return Object.assign({},r,{body:f?s:"",kind:a.b.Markdown});if(m===d.hc.POST&&n===u.h.RICH_TEXT){const e=f?c.a.toRichTextJSON(i,p).document:[];return Object.assign({},r,{body:e,kind:a.b.RichText})}},S=(e,{draftId:t})=>{const r=Object(m.j)(e);return t&&r?`${n.a.redditUrl}/user/${r.displayText}/draft/${t}`:""}},"./src/reddit/selectors/postFlair.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"d",function(){return i});const n=(e,{subredditId:t})=>e.postFlair[t],o=(e,{post:t})=>e.postFlair[t.belongsTo.id],s=(e,{subredditId:t})=>!e.postFlair[t]||e.postFlair[t].displaySettings.isEnabled,i=(e,t)=>e.structuredStyles.flairTemplate.draft[t]},"./src/reddit/selectors/posts.ts":function(e,t,r){"use strict";r.d(t,"g",function(){return p}),r.d(t,"j",function(){return b}),r.d(t,"y",function(){return g}),r.d(t,"I",function(){return y}),r.d(t,"f",function(){return v}),r.d(t,"D",function(){return O}),r.d(t,"A",function(){return w}),r.d(t,"z",function(){return I}),r.d(t,"c",function(){return S}),r.d(t,"e",function(){return _}),r.d(t,"F",function(){return j}),r.d(t,"G",function(){return P}),r.d(t,"H",function(){return C}),r.d(t,"N",function(){return E}),r.d(t,"O",function(){return N}),r.d(t,"b",function(){return k}),r.d(t,"d",function(){return D}),r.d(t,"h",function(){return A}),r.d(t,"m",function(){return R}),r.d(t,"C",function(){return L}),r.d(t,"L",function(){return M}),r.d(t,"E",function(){return V}),r.d(t,"w",function(){return U}),r.d(t,"s",function(){return B}),r.d(t,"k",function(){return W}),r.d(t,"u",function(){return H}),r.d(t,"M",function(){return $}),r.d(t,"n",function(){return G}),r.d(t,"o",function(){return z}),r.d(t,"t",function(){return K}),r.d(t,"r",function(){return q}),r.d(t,"l",function(){return Y}),r.d(t,"q",function(){return J}),r.d(t,"p",function(){return Q}),r.d(t,"K",function(){return X}),r.d(t,"a",function(){return Z}),r.d(t,"x",function(){return ee}),r.d(t,"J",function(){return te}),r.d(t,"i",function(){return re}),r.d(t,"v",function(){return ne}),r.d(t,"P",function(){return oe}),r.d(t,"B",function(){return se});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/lib/isPinnedAdminPost/index.ts"),s=r("./src/lib/objectSelector/index.ts"),i=r("./src/reddit/constants/posts.ts"),d=r("./src/reddit/models/Media/index.ts"),c=r("./src/reddit/models/Subreddit/index.ts"),u=r("./src/reddit/models/Widgets/index.ts"),a=(r("./src/reddit/models/Profile/mock.ts"),r("./src/reddit/models/Subreddit/mock.ts"),r("./src/reddit/selectors/profile.ts")),l=r("./src/reddit/selectors/subreddit.ts"),f=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,s=void 0;try{for(var i,d=e[Symbol.iterator]();!(n=(i=d.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(c){o=!0,s=c}finally{try{!n&&d.return&&d.return()}finally{if(o)throw s}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const m=[],p=(e,{postId:t})=>e.posts.models[t].media&&(e.posts.models[t].media.type===d.m.EMBED||e.posts.models[t].media.type===d.m.IMAGE),b=(e,{postId:t})=>e.posts.models[t].media&&e.posts.models[t].media.type===d.m.GIFVIDEO,g=Object(s.a)((e,{listingKey:t})=>{const r=e.posts.models;return h(e,{listingKey:t}).filter(e=>{const t=r[e];return t&&!t.hidden})}),h=Object(s.a)((e,{listingKey:t})=>{return[...e.listings.postOrder.ids[t]||[]]}),y=Object(s.a)((e,{listingKey:t})=>{return g(e,{listingKey:t}).map(t=>e.posts.models[t])}),v=(e,{postId:t})=>!!e.shortcuts.activePostId&&t===e.shortcuts.activePostId,O=(e,{postId:t})=>e.posts.models[t],w=(e,{postId:t})=>O(e,{postId:t}).isLocked,I=(e,{postId:t})=>O(e,{postId:t}).isArchived,S=(e,{postId:t})=>{const r=O(e,{postId:t});if(r&&r.crosspostRootId)return O(e,{postId:r.crosspostRootId})||void 0},_=(e,{postId:t})=>S(e,{postId:t})||O(e,{postId:t})||void 0,j=e=>e.posts.models,T=e=>e.posts.models,P=Object(s.a)((e,{postIds:t})=>{const r=e.posts.models,n={};return t.map(e=>{n[e]=r[e]}),n}),C=Object(n.createSelector)(T,(e,t)=>t.postIds,(e,t)=>t.length?t.map(t=>e[t]):m),x=Object(n.createSelector)(T,g,(e,t)=>t.limit,(e,t,r)=>{let n=t;return r&&(n=t.slice(0,r)),n.reduce((t,r)=>(t[r]=e[r],t),{})}),E=Object(s.a)((e,t)=>{const r=x(e,t),n={},o=e.posts.models;return Object.keys(r).forEach(e=>{const t=r[e].crosspostRootId;t&&(n[t]=o[t])}),Object.assign({},r,n)}),N=(e,{postId:t})=>{const r=O(e,{postId:t});if(!r)return;const n=r.belongsTo;return n.type===i.a.PROFILE?e.profiles.models[n.id]||!1:e.subreddits.models[n.id]||!1},k=(e,{postId:t})=>{const r=N(e,{postId:t});if(r)return Object(c.c)(r)?Object(u.g)(r):Object(u.h)(r)},D=(e,{postId:t})=>{const r=O(e,{postId:t});return r&&r.crosspostRootId?N(e,{postId:r.crosspostRootId}):null},A=(e,{postId:t})=>e.posts.expanded[t],R=(e,{postId:t})=>!!e.posts.metaMap[t],L=(e,{postId:t})=>{if(!t)return"";const r=O(e,{postId:t});return r?r.permalink:""},M=Object(s.a)(e=>{return e.posts.recent.map(t=>e.posts.models[t]).filter(e=>!!e)}),F=e=>(t,{postId:r})=>{if(!r)return!1;const n=O(t,{postId:r});return!!n&&!!n[e]},V=(e,{postId:t})=>{if(!t)return null;const r=O(e,{postId:t});return r&&r.belongsTo.type!==i.a.PROFILE?Object(l.A)(e,{identifier:r.belongsTo}):null},U=(e,t)=>t.postCategories,B=F("saved"),W=F("hidden"),H=F("isSponsored"),$=F("sendReplies"),G=F("isNSFW"),z=F("isOriginalContent"),K=F("isSpoiler"),q=(e,{postId:t})=>{const r=O(e,{postId:t}),n=Object(a.j)(e,r.author),o=e.profiles.pinnedPosts.data[n];return!!o&&o.includes(t)},Y=(e,t,r)=>{const n=Object(a.j)(e,r),o=e.profiles.pinnedPosts.initialData[n];return!!o&&o.includes(t)},J=(e,t,r)=>{const n=Object(a.j)(e,r),o=e.profiles.pinnedPosts.data[n];return!!o&&o.includes(t)},Q=(e,t)=>q(e,t)!==((e,{postId:t})=>{const r=O(e,{postId:t}),n=Object(a.j)(e,r.author),o=e.profiles.pinnedPosts.pending[n];return!!o&&o.includes(t)})(e,t),X=Object(s.a)((e,t)=>{const r=Object(a.j)(e,t.profileName);return e.profiles.pinnedPosts.data[r]||[]}),Z=(e,t)=>{const r=Object(a.j)(e,t.profileName);return!!e.profiles.pinnedPosts.data[r]},ee=(e,t)=>{const r=O(e,{postId:t}),n=(new Date).getTime();return!!r&&(n-r.created)/1e3/60/60<24},te=Object(s.a)((e,t)=>{const r=g(e,t);return t.excludePinnedPosts?r.filter(t=>!q(e,{postId:t})):r}),re=(e,{profileName:t})=>{const r=X(e,{profileName:t});if(!r.length)return!1;const n=f(r,1)[0],s=O(e,{postId:n});return!!s&&(!(t.toLowerCase()===s.author.toLowerCase())&&Object(o.a)(!0,s.distinguishType))},ne=(e,t)=>{const r=N(e,{postId:t});if(r){const t=Object(c.c)(r)?"profile":"subreddit",n={name:r.name,type:t};return Object(l.P)(e,{identifier:n})}return!1},oe=Object(s.a)((e,t)=>{const r=e.posts.models;return t.filter(e=>{const t=r[e];return!!t&&!t.isBlank&&!t.hidden})}),se=(e,t,r,n)=>{const o=g(e,{listingKey:t});if(n){const t=Object(l.z)(e,r);if(t){if(!!e.subreddits.appliedFilters.meta[t]){const t=e.posts.metaMap;return o.filter(e=>!!t[e])}}}return o}},"./src/reddit/selectors/profile.ts":function(e,t,r){"use strict";r.d(t,"l",function(){return a}),r.d(t,"h",function(){return l}),r.d(t,"g",function(){return f}),r.d(t,"j",function(){return p}),r.d(t,"a",function(){return b}),r.d(t,"d",function(){return g}),r.d(t,"m",function(){return h}),r.d(t,"f",function(){return y}),r.d(t,"e",function(){return v}),r.d(t,"i",function(){return O}),r.d(t,"k",function(){return w}),r.d(t,"n",function(){return I}),r.d(t,"b",function(){return S}),r.d(t,"c",function(){return _});var n=r("./src/app/strings/index.ts"),o=r("./src/lib/objectSelector/index.ts"),s=r("./src/reddit/models/User/index.ts"),i=r("./src/reddit/selectors/subreddit.ts"),d=r("./src/reddit/selectors/user.ts"),c=r("./node_modules/reselect/lib/index.js");const u=[],a=(e,{profileId:t})=>e.profiles.models[t],l=(e,{profileName:t})=>e.profiles.models[p(e,t)],f=(e,t)=>e.profiles.models[t],m=Object(c.createSelector)(e=>e.profiles.models,e=>{const t={};for(const r in e){const n=e[r];t[n.name.toLowerCase()]=n.id}return t}),p=(e,t)=>m(e)[t?t.toLowerCase():""],b=(e,{profileName:t})=>{const r=e.profiles.moderated.api.pending;return!!(t&&t in r)&&r[t.toLowerCase()]},g=(e,{profileName:t})=>{const r=Object(d.j)(e);if(!r||!t)return!1;const n=Object(s.f)(r);return w(e,{profileName:n}).some(e=>e.name.toLowerCase()===t.toLowerCase())},h=(e,{profileName:t})=>{const r=l(e,{profileName:t});return r&&`${r.title||r.name} (${r.displayText}) - Reddit`||Object(n.a)(e.user.language,"title.frontpage")},y=(e,{profileName:t})=>{const r=p(e,t);return e.profiles.about[r]},v=(e,t)=>e.profiles.about[t],O=Object(o.a)((e,{profileName:t})=>void 0!==e.profiles.moderated.models[t?t.toLowerCase():""]),w=Object(o.a)((e,{profileName:t})=>{const r=e.profiles.moderated.models[t?t.toLowerCase():""];if(!r)return u;const n=[];return r.forEach(t=>{Object(i.G)(e,{subredditId:t})?n.push(Object(i.G)(e,{subredditId:t})):a(e,{profileId:t})&&n.push(a(e,{profileId:t}))}),n}),I=Object(c.createSelector)(e=>e.trophies,e=>e.profiles.trophyCases,(e,t)=>t,(e,t,r)=>{const n=t[r];return n?n.map(t=>e[t]):[]}),S=(e,{extraCommentsId:t})=>e.profileOverviewPage.conversations.extraComments.models[t],_=(e,{profileName:t})=>e.profiles.moderated.pageInfo[t]?e.profiles.moderated.pageInfo[t].hasNextPage:void 0},"./src/reddit/selectors/profileComments.ts":function(e,t,r){"use strict";r.d(t,"f",function(){return d}),r.d(t,"e",function(){return c}),r.d(t,"a",function(){return u}),r.d(t,"b",function(){return a}),r.d(t,"d",function(){return l}),r.d(t,"c",function(){return f});var n=r("./node_modules/lodash/set.js"),o=r.n(n),s=r("./src/lib/objectSelector/index.ts"),i=r("./src/reddit/selectors/comments.ts");const d=(e,{listingKey:t})=>{return e.profileCommentsPage.commentIds[t]||[]},c=Object(s.a)((e,{listingKey:t})=>{const r=Object(i.r)(e);return d(e,{listingKey:t}).reduce((e,t)=>o()(e,t,r[t].postId),{})}),u=(e,{listingKey:t})=>e.profileCommentsPage.api.error[t],a=(e,{listingKey:t})=>e.profileCommentsPage.api.pending[t],l=(e,{listingKey:t})=>e.profileCommentsPage.loadMore[t],f=(e,{listingKey:t})=>e.profileCommentsPage.fetchedTokens[t]},"./src/reddit/selectors/runTimeEnvVars.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"a",function(){return s});const n=e=>e.runTimeEnvVars.staging,o=e=>n(e),s=e=>e.runTimeEnvVars.startTimeInMillis},"./src/reddit/selectors/structuredStyles.ts":function(e,t,r){"use strict";r.d(t,"i",function(){return a}),r.d(t,"k",function(){return l}),r.d(t,"o",function(){return b}),r.d(t,"c",function(){return g}),r.d(t,"g",function(){return h}),r.d(t,"f",function(){return y}),r.d(t,"d",function(){return v}),r.d(t,"n",function(){return O}),r.d(t,"m",function(){return w}),r.d(t,"b",function(){return I}),r.d(t,"e",function(){return S}),r.d(t,"h",function(){return _}),r.d(t,"j",function(){return j}),r.d(t,"a",function(){return T}),r.d(t,"l",function(){return P});var n=r("./node_modules/lodash/isEqual.js"),o=r.n(n),s=r("./node_modules/reselect/lib/index.js"),i=r("./src/lib/objectSelector/index.ts"),d=r("./src/reddit/selectors/platform.ts"),c=r("./src/reddit/selectors/subreddit.ts"),u=r("./src/reddit/selectors/user.ts");const a=e=>e.structuredStyles.isEditing,l=(e,t)=>e.structuredStyles.models[t.subredditId],f=e=>e.structuredStyles.draft,m={},p=Object(i.a)((e,t)=>{const r=((e,t)=>{const r=l(e,t);if(r)return{url:r.communityIcon,color:r.primaryColor}})(e,t);if(r&&r.url)return r;const n=r?r.color:void 0;return((e,t)=>e&&e.icon?{url:e.icon.url,color:t}:m)(Object(c.G)(e,t),n)}),b=(e,t)=>{const r=Object(c.z)(e,t.subredditName);return r?p(e,{subredditId:r}):m},g=e=>{const t=Object(d.d)(e);return t?p(e,{subredditId:t}):m},h=(e,t)=>{const r=e.structuredStyles.imagePreviews[t.name];if(r&&r in e.imageUploads)return e.imageUploads[r]},y=Object(i.a)(e=>{const t=e.structuredStyles.imagePreviews,r={};for(const n in t){const t=h(e,{name:n});t&&(r[n]=t.url)}return r}),v=(e,t)=>f(e)[t.name],O=e=>e.structuredStyles.models,w=(e,t)=>e.structuredStyles.models[t],I=(e,{subredditId:t})=>{const r=e.structuredStyles.models[t];return r&&r.communityIcon?r.communityIcon:null},S=e=>e.structuredStyles.exportStyles.pending,_=e=>e.structuredStyles.isBladeEditorDirty,j=(e,{subredditId:t})=>{const r=e.subreddits.about[t],n=r&&r.quarantinePermissions;return!!n&&!n.styles},T=Object(s.createSelector)(a,_,f,(e,t)=>t.subredditId&&l(e,{subredditId:t.subredditId}),(e,t,r,n)=>!(!e||!r)&&(t||!o()(r,n))),P=(e,t)=>{if(Object(u.Z)(e))return!0;if(t){const r=t.subredditId||t.subredditName&&Object(c.z)(e,t.subredditName);if(r&&Object(u.Y)(e,{subredditId:r}))return!0}return!1}},"./src/reddit/selectors/subreddit.ts":function(e,t,r){"use strict";r.d(t,"M",function(){return g}),r.d(t,"p",function(){return h}),r.d(t,"N",function(){return v}),r.d(t,"a",function(){return O}),r.d(t,"c",function(){return I}),r.d(t,"b",function(){return S}),r.d(t,"A",function(){return _}),r.d(t,"C",function(){return j}),r.d(t,"L",function(){return T}),r.d(t,"G",function(){return P}),r.d(t,"K",function(){return C}),r.d(t,"O",function(){return x}),r.d(t,"P",function(){return E}),r.d(t,"v",function(){return k}),r.d(t,"z",function(){return D}),r.d(t,"s",function(){return A}),r.d(t,"B",function(){return R}),r.d(t,"I",function(){return L}),r.d(t,"F",function(){return M}),r.d(t,"D",function(){return F}),r.d(t,"E",function(){return V}),r.d(t,"x",function(){return U}),r.d(t,"u",function(){return B}),r.d(t,"r",function(){return H}),r.d(t,"n",function(){return $}),r.d(t,"d",function(){return G}),r.d(t,"f",function(){return z}),r.d(t,"y",function(){return K}),r.d(t,"l",function(){return q}),r.d(t,"m",function(){return Y}),r.d(t,"q",function(){return J}),r.d(t,"i",function(){return Q}),r.d(t,"g",function(){return X}),r.d(t,"h",function(){return Z}),r.d(t,"j",function(){return ee}),r.d(t,"o",function(){return te}),r.d(t,"k",function(){return re}),r.d(t,"t",function(){return ne}),r.d(t,"e",function(){return oe}),r.d(t,"H",function(){return se}),r.d(t,"w",function(){return ie}),r.d(t,"J",function(){return de});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/app/strings/index.ts"),s=r("./src/lib/constants/index.ts"),i=r("./src/lib/isFakeSubreddit/index.ts"),d=r("./src/lib/objectSelector/index.ts"),c=r("./src/reddit/constants/posts.ts"),u=r("./src/reddit/models/Flair/index.ts"),a=(r("./src/reddit/models/Profile/mock.ts"),r("./src/reddit/models/Subreddit/index.ts")),l=(r("./src/reddit/models/Subreddit/mock.ts"),r("./src/reddit/models/Widgets/index.ts")),f=r("./src/reddit/selectors/comments.ts"),m=r("./src/reddit/selectors/profile.ts"),p=r("./src/reddit/selectors/user.ts");r("./src/reddit/selectors/posts.ts");const b=[],g=Object(d.a)((e,{subredditIds:t})=>{if(0===t.length)return b;const r=[];return t.forEach(t=>{const n=e.subreddits.models[t];n&&r.push(n)}),r}),h=Object(d.a)((e,t)=>{if(!t)return b;const r=y(e),n=T(e);return r.map(e=>n[e]).filter(({name:r})=>W(e,{subredditName:r})===t)}),y=e=>e.subreddits.original,v=(e,{categoryName:t})=>e.subreddits.top[t]||b,O=(e,{profileName:t})=>{if(!t)return null;const r=Object(m.h)(e,t);return r?r.url:`/user/${t}/`},w=(e,t)=>{const r=t.toLowerCase();return e?e.url:Object(i.a)(r)?"/r/"+r+"/":null},I=(e,{subredditName:t})=>{if(!t)return null;const r=D(e,t),n=P(e,{subredditId:r});return w(n,t)},S=(e,{subredditId:t})=>{if(!t)return null;const r=P(e,{subredditId:t}),n=r.name||"";return w(r,n)},_=(e,{identifier:t})=>t.type===c.a.PROFILE?e.profiles.about[t.id]:e.subreddits.about[t.id],j=(e,{identifier:t})=>t.type===c.a.PROFILE?e.profiles.models[t.id]||!1:e.subreddits.models[t.id]||!1,T=e=>e.subreddits.models,P=(e,{subredditId:t})=>e.subreddits.models[t]||!1,C=(e,t)=>{const r=P(e,t);if(r)return r.type},x=e=>e.subreddits.trending,E=(e,{identifier:t})=>{const r=((e,{identifier:t})=>{if(t.type===c.a.PROFILE){const r=Object(m.j)(e,t.name);return e.profiles.models[r]||!1}const r=D(e,t.name);return e.subreddits.models[r]||!1})(e,{identifier:t}).id,n=_(e,{identifier:{id:r,type:t.type}});return n&&Object(p.F)(e)?!!n.userIsSubscriber:t.type===c.a.SUBREDDIT?e.subscriptions.subredditOrder.indexOf(r)>-1:e.subscriptions.profileOrder.indexOf(r)>-1},N=Object(n.createSelector)(e=>e.subreddits.models,e=>{const t={};for(const r in e){const n=e[r];t[n.name.toLowerCase()]=n.id}return t}),k=(e,{subredditName:t})=>e.subreddits.models[D(e,t)],D=(e,t)=>N(e)[t?t.toLowerCase():""],A=(e,{subredditName:t})=>e.subreddits.about[D(e,t)],R=(e,{commentId:t})=>{const r=Object(f.n)(e,{commentId:t}).subredditId;return e.profiles.models[r]||e.subreddits.models[r]},L=(e,{subredditName:t})=>{const r=k(e,{subredditName:t});return r&&r.title||Object(o.a)(e.user.language,"title.frontpage")},M=(e,{subredditId:t})=>e.subreddits.rules[t]?e.subreddits.rules[t].rules:b,F=Object(d.a)((e,{subredditId:t})=>e.subreddits.rules[t]?e.subreddits.rules[t].rules.map(e=>e.shortName):b),V=e=>e.subreddits.api.rules,U=(e,{subredditId:t})=>!!e.subreddits.models[t]&&!!e.subreddits.models[t].freeFormReports,B=(e,{subredditName:t})=>{const r=A(e,{subredditName:t});return r&&r.allowedPostTypes},W=(e,{subredditName:t})=>{const r=A(e,{subredditName:t});return r&&r.contentCategory},H=(e,{subredditName:t})=>{const r=D(e,t),n=e.widgets.sidebar[r],o=[],s=e.widgets.moderatorIds[r],i=e.widgets.models[s];let d=!1;return n&&n.forEach(function(t){e.widgets.models[t]&&(o.push(e.widgets.models[t]),t===s&&(d=!0))}),i&&!d&&o.push(i),o},$=(e,t)=>{return P(e,t).name===s.gc},G=(Object(d.a)(e=>{const t=e.subreddits.moderated.order,r=e.subreddits.models;return t&&t.length?t.map(e=>r[e]):[]}),(e,{subredditId:t})=>!!e.subredditChannels.api.whitelist[t]),z=Object(d.a)((e,t)=>g(e,t).map(e=>Object(l.h)(e))),K=(e,{subredditName:t})=>{const r=D(e,t),n=e.postFlair[r];return!(!n||!n.templateIds.length)},q=e=>e.subreddits.api.connectToPartner.pending,Y=e=>e.subreddits.api.create.pending,J=Object(d.a)((e,{identifier:t,userName:r})=>{const n=t.id;if(!n)return null;const s=e.providerFlair.models[n];return s&&r&&s[r]&&s[r].patreonFlair?{type:u.e.PatreonPatron,text:Object(o.a)(Object(p.M)(e),"flair.patron")}:null}),Q=e=>e.subreddits.api.create.error.apiError,X=e=>e.subreddits.api.connectToPartner.error,Z=e=>e.subreddits.api.connectToPartner.lastConnectedSubredditId||void 0,ee=e=>e.subreddits.api.create.lastCreatedSubredditId||void 0,te=(e,{subredditId:t})=>!(!e.subreddits.about[t]||!e.subreddits.about[t].usingNewModmail),re=(e,{postId:t})=>{const r=e.posts.models[t].belongsTo.id;return!!e.subreddits.rules[r]},ne=e=>e.subreddits.about,oe=Object(d.a)(Object(n.createSelector)(g,ne,(e,t)=>{const r=[];return e.forEach(e=>{e.type===a.b.Public&&r.push(Object(l.h)(e,t[e.id]))}),r})),se=(e,t)=>e.subreddits.settings[t],ie=(e,{subredditId:t})=>{let r=e.user.prefs.sort;if(e.user.prefs.rememberCommunitySort){const n=e.user.prefs.subreddit[t];n&&n.sort&&(r=n.sort)}return r},de=(e,{subredditName:t})=>e.subreddits.topContent[t.toLowerCase()]},"./src/reddit/selectors/subredditAutocomplete.ts":function(e,t,r){"use strict";var n=r("./node_modules/lodash/isNil.js"),o=r.n(n),s=r("./node_modules/reselect/lib/index.js"),i=r("./src/reddit/helpers/name/index.ts"),d=r("./src/reddit/models/Subreddit/index.ts"),c=r("./src/reddit/models/SubredditAutocomplete/index.ts"),u=r("./src/reddit/models/User/index.ts"),a=r("./src/reddit/selectors/subscriptions.ts"),l=r("./src/reddit/selectors/user.ts");r.d(t,"a",function(){return m}),r.d(t,"d",function(){return h}),r.d(t,"c",function(){return y}),r.d(t,"e",function(){return j}),r.d(t,"b",function(){return T});var f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r};const m="original_content_communities_name",p=(e,t)=>t.substring.toLowerCase(),b=(e,{substring:t})=>Object(i.e)(t)?"":Object(i.f)(t),g=(e,t)=>{for(let r=e.length;r>0;r--)if(!1===t(e.slice(0,r)))return},h=Object(s.createSelector)(b,e=>e.subredditAutocomplete.models,(e,t)=>{let r=null;return g(e,e=>{if(t.hasOwnProperty(e))return r=t[e],!1}),r}),y=Object(s.createSelector)(b,h,(e,t)=>!e||!o()(t)&&0===t.subreddits.length),v=Object(s.createSelector)(a.b,e=>e.map(e=>Object(c.c)(e))),O=Object(s.createSelector)(b,h,y,e=>e.subredditAutocomplete.api.pending,(e,t,r,n)=>{if(r)return!1;let o=!1;return g(e,e=>n.hasOwnProperty(e)?(o=n[e],!1):(!t||t.key!==e)&&void 0),o}),w=Object(s.createSelector)(b,a.b,(e,t)=>t.filter(t=>-1!==t.name.toLowerCase().indexOf(e))),I=Object(s.createSelector)(p,(e,t)=>t.includeUserProfile,l.j,(e,t,r)=>{if(!t||o()(r)||Object(i.d)(e))return null;const n=Object(i.f)(Object(u.f)(r)),s=Object(i.f)(e);return n.includes(s)?Object(c.d)(r):null}),S=Object(s.createSelector)(p,(e,t)=>t.showCrosspostableOnly,(e,t)=>t.includeOC,I,h,w,e=>e.subreddits.crosspostable.ids,(e,t,r,n,o,s,d)=>{const u=[];if(n&&u.push(n),t||!r||e&&e.trim()||u.push({id:"original_content_communities_id",name:m,type:c.a.FAKE_ITEM}),Object(i.e)(e))return u;const a={};return s.forEach(e=>{if(t&&!d[e.id])return null;const r=Object(c.c)(e);a[r.name]=r,u.push(r)}),!t&&o&&o.subreddits.forEach(e=>{const t=e.communityIcon,r=e.icon,n=e.name,o=f(e,["communityIcon","icon","name"]),s=t||r;a[n]||u.push(Object.assign({},o,{iconUrl:s,name:n,type:c.a.OTHER_SUBREDDIT}))}),u}),_=Object(s.createSelector)(p,l.i,(e,t)=>{const r=Object(i.f)(e);return t.filter(({name:e})=>e.toLowerCase().includes(r))}),j=Object(s.createSelector)(p,I,_,(e,t)=>t.partnerConnectionSafeOnly,(e,t,r,n)=>{const o=[];if(t&&o.push(t),Object(i.e)(e))return o;let s=r;return n&&(s=r.filter(e=>(e.type===d.b.Public||e.type===d.b.Restricted)&&!e.isQuarantined&&!e.isNSFW&&e.subscribers<2e5)),o.push(...s.map(e=>Object(c.b)(e,c.a.MODERATED_SUBREDDIT))),o}),T=Object(s.createStructuredSelector)({suggestedItems:S,fallbackItems:v,isAllDataRetrieved:y,isPending:O})},"./src/reddit/selectors/subredditChannel.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return i}),r.d(t,"e",function(){return d}),r.d(t,"f",function(){return c}),r.d(t,"d",function(){return u}),r.d(t,"c",function(){return a}),r.d(t,"b",function(){return l});var n=r("./node_modules/lodash/values.js"),o=r.n(n),s=r("./src/reddit/selectors/user.ts");const i=(e,{subredditId:t})=>{const r=e.subredditChannels.models;return Object.keys(r).map(e=>r[e]).filter(e=>e.subredditId===t)},d=(e,{subredditId:t})=>!(!1!==e.subredditChannels.api.pending[t]||!1!==e.subredditChannels.api.error[t]),c=(e,{subredditId:t})=>void 0===e.subredditChannels.api.pending[t]&&!d(e,{subredditId:t})&&Object(s.F)(e),u=e=>{const t=e.subredditChannels.models;return Object.keys(t).map(e=>t[e]&&t[e].name)},a=(e,t)=>{const r=o()(e.subredditChannels.models);return r.length&&r.find(({channelId:e})=>e===t)||void 0},l=e=>{const t=e.subredditChannels.selected;if(t){return o()(e.subredditChannels.models).find(e=>e.channelId===t)}}},"./src/reddit/selectors/subredditModeration.ts":function(e,t,r){"use strict";r.d(t,"l",function(){return d}),r.d(t,"h",function(){return c}),r.d(t,"g",function(){return u}),r.d(t,"i",function(){return a}),r.d(t,"j",function(){return l}),r.d(t,"k",function(){return f}),r.d(t,"f",function(){return m}),r.d(t,"v",function(){return p}),r.d(t,"n",function(){return b}),r.d(t,"q",function(){return g}),r.d(t,"A",function(){return h}),r.d(t,"y",function(){return y}),r.d(t,"z",function(){return v}),r.d(t,"t",function(){return O}),r.d(t,"w",function(){return w}),r.d(t,"x",function(){return I}),r.d(t,"o",function(){return S}),r.d(t,"p",function(){return _}),r.d(t,"u",function(){return j}),r.d(t,"m",function(){return T}),r.d(t,"r",function(){return P}),r.d(t,"G",function(){return C}),r.d(t,"C",function(){return x}),r.d(t,"E",function(){return E}),r.d(t,"F",function(){return N}),r.d(t,"B",function(){return k}),r.d(t,"D",function(){return D}),r.d(t,"c",function(){return A}),r.d(t,"d",function(){return R}),r.d(t,"e",function(){return L}),r.d(t,"b",function(){return M}),r.d(t,"a",function(){return F}),r.d(t,"s",function(){return V});var n=r("./src/lib/objectSelector/index.ts"),o=r("./src/reddit/models/SubredditModeration/index.ts"),s=r("./src/reddit/selectors/user.ts");const i=[],d=(e,{subredditId:t})=>e.banned.models[t],c=Object(n.a)((e,{subredditId:t})=>{const r=e.banned.userOrder[t];return r?r.map(r=>e.banned.models[t][r]):i}),u=(e,{subredditId:t})=>{const r=Object(o.d)(t);return e.banned.api.pending[r]},a=(e,{subredditId:t})=>e.banned.loadMore[t],l=e=>e.banned.search.api.pending,f=e=>e.banned.search.result,m=e=>e.banned.inContext,p=Object(n.a)((e,{subredditId:t,before:r,after:n})=>{const s=Object(o.d)(t,n,r),i=e.moderators.userOrder.data[t]&&e.moderators.userOrder.data[t][s];return i?i.map(r=>e.moderators.models[t][r]):[]}),b=(e,{subredditId:t,beforeEditable:r,afterEditable:n})=>{const s=Object(o.d)(t,n,r),i=e.moderators.editableUserOrder.data[t]&&e.moderators.editableUserOrder.data[t][s];return i?i.map(r=>e.moderators.editableModerators[t][r]):[]},g=(e,{subredditId:t})=>e.moderators.editableModerators[t]||null,h=(e,{subredditId:t})=>e.moderators.models[t]||null,y=e=>e.moderators.search.api.pending,v=e=>e.moderators.search.result,O=(e,{subredditId:t})=>e.moderators.invitePending[t],w=(e,{subredditId:t})=>e.moderators.loadMoreModerators[t]&&e.moderators.loadMoreModerators[t].after,I=(e,{subredditId:t})=>e.moderators.loadMoreModerators[t]&&e.moderators.loadMoreModerators[t].before,S=(e,{subredditId:t})=>e.moderators.loadMoreEditableModerators[t]&&e.moderators.loadMoreEditableModerators[t].after,_=(e,{subredditId:t})=>e.moderators.loadMoreEditableModerators[t]&&e.moderators.loadMoreEditableModerators[t].before,j=(e,t)=>{const r=Object(o.d)(t.subredditId,t.after,t.before);return e.moderators.userOrder.api.pending[r]},T=(e,t)=>{const r=Object(o.d)(t.subredditId,t.afterEditable,t.beforeEditable);return e.moderators.editableUserOrder.api.pending[r]},P=Object(n.a)((e,{subredditId:t})=>{const r=e.moderators.invitedModerators.userOrder[t];return r?r.map(r=>e.moderators.invitedModerators.models[t][r]):i}),C=Object(n.a)((e,{subredditId:t})=>{const r=e.muted.userOrder[t];return r?r.map(r=>e.muted.models[t][r]):i}),x=(e,{subredditId:t})=>{const r=Object(o.d)(t);return e.muted.api.pending[r]},E=e=>e.muted.search.api.pending,N=e=>e.muted.search.result,k=e=>e.muted.inContext,D=(e,{subredditId:t})=>e.muted.loadMore[t],A=e=>e.approvedSubmitters.search.api.pending,R=e=>e.approvedSubmitters.search.result,L=Object(n.a)((e,{subredditId:t})=>{const r=e.approvedSubmitters.userOrder[t];return r?r.map(r=>e.approvedSubmitters.models[t][r]):i}),M=(e,{subredditId:t})=>e.approvedSubmitters.loadMore[t],F=(e,{subredditId:t})=>{const r=Object(o.d)(t);return e.approvedSubmitters.api.pending[r]},V=e=>!!Object(s.F)(e)&&e.modModeEnabled},"./src/reddit/selectors/subredditSettings.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return s});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/reddit/selectors/user.ts");const s=Object(n.createSelector)(o.j,e=>e.subreddits.settings,(e,t)=>{if(e&&e.profileId)return t[e.profileId]})},"./src/reddit/selectors/subscriptions.ts":function(e,t,r){"use strict";r.d(t,"c",function(){return i}),r.d(t,"d",function(){return d}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return u});var n=r("./node_modules/reselect/lib/index.js"),o=r("./src/reddit/constants/posts.ts"),s=r("./src/lib/objectSelector/index.ts");const i=e=>e.subscriptions.api.fetched,d=Object(s.a)(e=>{var t=e.subscriptions;const r=t.profileOrder;return[...t.subredditOrder,...r]}),c=(Object(s.a)(e=>{var t=e.subscriptions;const r=t.profileOrder,n=t.subredditOrder,s=r?r.map(e=>({id:e,type:o.a.PROFILE})):[];return(n?n.map(e=>({id:e,type:o.a.SUBREDDIT})):[]).concat(s)}),Object(s.a)(Object(n.createSelector)(e=>e.subreddits.models,e=>e.subscriptions.subredditOrder,(e,t)=>{if(!t||!t.length)return[];return t.map(t=>e[t])}))),u=(Object(s.a)(Object(n.createSelector)(e=>e.profiles.models,e=>e.subscriptions.profileOrder,(e,t)=>{if(!t||!t.length)return[];return t.map(t=>e[t])})),Object(s.a)(e=>{var t=e.subscriptions;const r=t.favoriteSubredditOrder,n=t.favoriteProfileOrder,o=e.subreddits.models,s=e.profiles.models,i=r?r.map(e=>o[e]):[],d=n?n.map(e=>s[e]):[];return i.concat(d)}),Object(n.createSelector)(e=>e.subscriptions.profileOrder,e=>e.subscriptions.subredditOrder,(e,t)=>e.length+t.length));Object(n.createSelector)(c,e=>e.reduce((e,t)=>(e[t.id]=t.name,e),{}))},"./src/reddit/selectors/telemetry.ts":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/js-cookie/src/js.cookie.js"),o=r.n(n),s=r("./node_modules/lodash/trimStart.js"),i=r.n(s),d=r("./node_modules/lodash/values.js"),c=r.n(d),u=r("./node_modules/reselect/lib/index.js"),a=r("./node_modules/url/url.js"),l=r.n(a),f=r("./src/config.ts"),m=r("./src/lib/constants/index.ts"),p=r("./src/lib/isAdHocMultireddit/index.ts"),b=r("./src/lib/isFakeSubreddit/index.ts"),g=r("./src/reddit/constants/adEvents.ts"),h=r("./src/reddit/constants/blade.ts"),y=r("./src/reddit/constants/chat.ts"),v=r("./src/reddit/constants/originalContent.ts"),O=r("./src/reddit/contexts/PageLayer/index.tsx"),w=r("./src/reddit/helpers/dom/index.ts");const I=()=>!document.getElementById(f.a.adblockId);let S;(S=document.createElement("div")).className="promotedlink",S.style.height=S.style.width="1px",S.style.position="absolute",S.style.left="-1000000px",S.style.display="block",document.body.appendChild(S);var _=r("./src/reddit/constants/posts.ts"),j=r("./src/reddit/helpers/getPostFromRouteMatch/index.ts"),T=r("./src/reddit/helpers/getRichTextContent.ts"),P=r("./src/reddit/helpers/isPost.ts"),C=r("./src/reddit/helpers/trackers/news.ts"),x=r("./src/reddit/models/Media/index.ts"),E=r("./src/reddit/models/Post/index.ts"),N=r("./src/reddit/models/Profile/index.ts"),k=r("./src/reddit/selectors/listings.ts"),D=r("./src/reddit/selectors/platform.ts"),A=r("./src/reddit/selectors/profile.ts"),R=r("./src/reddit/selectors/profileComments.ts"),L=r("./src/reddit/models/User/index.ts"),M=r("./src/reddit/selectors/structuredStyles.ts"),F=r("./src/reddit/selectors/subreddit.ts"),V=r("./src/reddit/selectors/subredditChannel.ts"),U=r("./src/reddit/selectors/subredditSettings.ts"),B=r("./src/reddit/selectors/user.ts"),W=r("./src/telemetry/models/Timer.ts");r.d(t,"getRelativePostOrder",function(){return $}),r.d(t,"getAbsoluteOrder",function(){return G}),r.d(t,"actionInfo",function(){return z}),r.d(t,"app",function(){return K}),r.d(t,"comment",function(){return q}),r.d(t,"userSubreddit",function(){return Y}),r.d(t,"defaults",function(){return J}),r.d(t,"mediaActionInfo",function(){return Q}),r.d(t,"post",function(){return Z}),r.d(t,"currentPost",function(){return ee}),r.d(t,"listing",function(){return te}),r.d(t,"profileComments",function(){return re}),r.d(t,"media",function(){return ne}),r.d(t,"videoPlayerMaxTimeServed",function(){return oe}),r.d(t,"videoPlayerFirstFrameTimer",function(){return se}),r.d(t,"profileById",function(){return ie}),r.d(t,"profileByPostOrCommentId",function(){return de}),r.d(t,"referrer",function(){return ce}),r.d(t,"screen",function(){return ue}),r.d(t,"session",function(){return ae}),r.d(t,"profile",function(){return le}),r.d(t,"subreddit",function(){return fe}),r.d(t,"subredditById",function(){return me}),r.d(t,"subredditByName",function(){return pe}),r.d(t,"subredditByPostOrCommentId",function(){return be}),r.d(t,"timer",function(){return ge}),r.d(t,"user",function(){return he}),r.d(t,"widget",function(){return ye}),r.d(t,"request",function(){return ve}),r.d(t,"adblock",function(){return Oe}),r.d(t,"domTimer",function(){return we}),r.d(t,"oauth",function(){return Ie}),r.d(t,"news",function(){return Se}),r.d(t,"numberChannels",function(){return _e}),r.d(t,"channel",function(){return je}),r.d(t,"SearchDropdownNouns",function(){return Te}),r.d(t,"StructureType",function(){return Pe}),r.d(t,"OriginElement",function(){return Ce}),r.d(t,"search",function(){return xe}),r.d(t,"discoveryUnit",function(){return Ee}),r.d(t,"smartSearch",function(){return Ne}),r.d(t,"metaSearch",function(){return ke}),r.d(t,"postFlairClickToSearch",function(){return De}),r.d(t,"currentProfileModelSelector",function(){return Ae}),r.d(t,"notification",function(){return Re});const H=e=>{switch(e.meta&&e.meta.name){case m.Rb.INDEX:return"home";case m.Rb.PROFILE_OVERVIEW:return"profile_overview";case m.Rb.PROFILE_COMMENTS:return"profile_comments";case m.Rb.PROFILE_POSTS:return"profile_posts";case m.Rb.PROFILE:case m.Rb.PROFILE_BETA_CONFIRMATION:case m.Rb.PROFILE_MODERATION:case m.Rb.PROFILE_POST_COMMENTS:case m.Rb.PROFILE_PRIVACY:case m.Rb.PROFILE_SETTINGS:return"profile";case m.Rb.PROFILE_PRIVATE:if(!e.routeMatch)break;switch(e.routeMatch.match.params.listingType){case N.a.Downvoted:return"profile_downvoted";case N.a.Hidden:return"profile_hidden";case N.a.Upvoted:return"profile_upvoted";case N.a.Saved:return"profile_saved"}break;case m.Rb.COMMENTS:return e.urlParams.commentId||e.urlParams.partialCommentId?"single_comment_thread":"post_detail";case m.Rb.LISTING:case m.Rb.SUBREDDIT:{const t=e.urlParams.subredditName;if(!t)return"home";if(Object(b.a)(t)&&Object(p.a)(t))return"multireddit";switch(t.toLowerCase()){case"popular":return"popular";case"all":return"all";default:return"community"}}case m.Rb.SUBREDDIT_SETTINGS:return"subreddit_settings";case m.Rb.POST_CREATION:return e.queryParams&&e.queryParams.source_id?"crosspost_submit":"post_submit";case m.Rb.SEARCH_RESULTS:return"search_results";case m.Rb.MODERATION_PAGES:return`moderation_pages_${e.urlParams.pageName}`;case m.Rb.MODQUEUE_PAGES:{const t=e.urlParams.pageName;return"modqueue"===t?"modqueue_queue":`modqueue_${t}`}case m.Rb.MULTIREDDIT:return"multireddit";case m.Rb.NEWS:return"news";case m.Rb.ORIGINAL_CONTENT:return"original_content";case m.Rb.POST_DRAFT:return"draft_detail";case m.Rb.PARTNER_SUBREDDIT_CONNECTION:return e.urlParams.page===m.Nb.Select?"patreon_connect_community":"patreon_create_community";case m.Rb.EXPLORE:return"explore";case m.Rb.MOD_LISTING:return"r_mod";case m.Rb.SUBREDDIT_CREATION:return"subreddit_creation";case m.Rb.SUBREDDIT_WIKI:return"subreddit_wiki";case m.Rb.SETTINGS:{const t=e.urlParams.page;return t?`settings_${t}`:"settings_account"}default:return""}},$=(e,t,r)=>{const n=e.listings.postOrder.ids[r];return n.indexOf(t)>=0?n.indexOf(t):null},G=(e,t,r)=>{const n=e.listings.postOrder.ids[r];return n.indexOf(t)>=0?n.indexOf(t)+m.pb:null},z=(e,t)=>Object.assign({pageType:e.platform.currentPage?H(e.platform.currentPage):void 0},t),K=()=>({name:f.a.telemetry.appName.redesign}),q=(e,t)=>{const r=e.comments.models[t];return r?{body:r.body,id:r.id,postId:r.postId,authorId:r.authorId,parentId:r.parentId,bodyText:Object(T.a)(r),gildings:r.gildings,score:r.score,created:r.created}:null},Y=e=>{const t=Object(D.f)(e),r=t&&e.moderatingSubreddits[t.id];let n;if(Object(B.F)(e)&&t){const r=e.subscriptions.subredditOrder.includes(t.id),o=e.subreddits.about[t.id]&&e.subreddits.about[t.id].userIsSubscriber;n=r||o}else n=null;return{isMod:!!r,modAccess:r?r.access:null,modConfig:r?r.config:null,modFlair:r?r.flair:null,modFull:r?r.all:null,modMail:r?r.mail:null,modNone:r?!(e=>{let t=!1;return Object.keys(e).forEach(r=>{e[r]&&(t=!0)}),t})(r):null,modPost:r?r.posts:null,modWiki:r?r.wiki:null,isSubscriber:n}},J=e=>({actionInfo:z(e),app:K(),referrer:ce(e),request:ve(e),session:ae(e),screen:ue(e),user:he(e)}),Q=(e,t)=>{const r=e.posts.video.fullscreen,n=e.platform.currentPage?H(e.platform.currentPage):void 0;return{pageType:r===t?"fullscreen":n}},X=new Map,Z=(e,t,r)=>{const n=e.posts.models[t]||e.comments.models[t]&&e.posts.models[e.comments.models[t].postId];if(n){const t=n.source,o=n.events.find(e=>e.type===g.a.Impression),s=o&&o.url.match(/\?q=([^&]+)/);return{createdTimestamp:n.created,domain:n.domain,durationOnScreen:r||void 0,id:n.postId,nsfw:n.isNSFW,score:n.score,spoiler:n.isSpoiler,title:n.title,type:(e=>{if(e.isMeta)return"poll";if(!e.media)return"link";switch(e.media.type){case"gifvideo":return"gif";case"embed":return"link";default:return e.media.type}})(n),upvoteRatio:n.upvoteRatio?n.upvoteRatio:void 0,url:t?t.url:void 0,promoted:n.isSponsored,impressionId:s?s[1]:void 0,numberPostsFromAd:(({state:e,post:t})=>{const r=Object(k.a)(e);if(!r)return;let n;X.has(r)?n=X.get(r):(X.set(r,new Map),(n=X.get(r)).set("postIdToDistanceFromAdMapping",new Map));const o=n.get("postIdToDistanceFromAdMapping");if(o.has(t.id))return o.get(t.id);const s=e.listings.postOrder.ids[r];if(!s)return;const i=n.get("lastPostIndex");let d=n.get("lastAdIndex"),c=i?i+1:0;for(;c<s.length;c+=1){const t=e.posts.models[s[c]];if(t&&!t.hidden&&!t.isBlank){const e=d?c-d-1:void 0;o.set(t.id,e),t.isSponsored&&(d=c)}}return n.set("lastPostIndex",c),n.set("lastAdIndex",d),o.get(t.id)})({state:e,post:n})}}return Object(P.a)(t)?{id:t}:null},ee=e=>{const t=Object(j.a)(e);return t?Z(e,t.id):null},te=(e,t)=>{const r=e.listings.postOrder.ids[t];return r?{length:r.length,links:r.map(t=>e.posts.models[t].id)}:null},re=(e,t)=>{const r=Object(R.f)(e,{listingKey:t});return r?{length:r.length,links:r.map(t=>e.comments.models[t].id)}:null},ne=(e,t,r)=>{const n=e.posts.models[t];if(void 0===n)return null;const o={};if(o.id=n.postId,n.media&&"v.redd.it"===n.domain){const e=Object(x.v)(n.media);e&&(o.id=e)}if(r)o.loadTime=r;else{const r=e.posts.video.loadTimes[t];r&&r.start&&r.playable&&(o.loadTime=Math.round(r.playable-r.start))}const s=e.posts.video.metadata[t];s&&s.id===t&&(o.height=s.originalHeight,o.width=s.originalWidth,o.orientation=o.height>o.width?"portrait":"landscape",o.duration=s.length);const i=e.posts.video.time[t];return i&&(o.time=Math.round(i.currentTime)),o},oe=(e,t)=>{if(void 0===e.posts.models[t])return null;const r={},n=e.posts.video.time[t];return n&&(r.maxTimeServed=Math.round(n.maxTimeServed)),r},se=(e,t)=>{if(void 0===e.posts.models[t])return;const r={type:W.TimerType.VideoFirstFrame},n=e.posts.video.loadTimes[t];return n&&n.start&&(n.playable?r.millis=Math.round(n.playable-n.start):r.millis=Math.round(performance.now()-n.start)),r},ie=(e,t)=>{const r=e.profiles.models[t];return r&&{id:r.id,name:r.name}},de=(e,t)=>{const r=e.posts.models[t],n=e.comments.models[t];return r?ie(e,r.belongsTo.id):n?ie(e,n.subredditId):null},ce=e=>{let t=e.platform.currentPage?e.platform.referrers[e.platform.currentPage.key]:null;if(t){let r=l.a.parse(t).hostname;if(!r||t.startsWith("/")){let n=e.meta.protocol;r=e.meta.domain,n&&r||(n=window.location.protocol,r=window.location.hostname),t=`${n=n.endsWith(":")?n:`${n}:`}//${r}${t}`}return{domain:r,url:t}}return null},ue=(e,t)=>{const r=Object(O.O)(e,{});let n;Object(D.g)(e)&&(n=Object(D.h)(e)?"lightbox":"post_detail");let o="default";return e.user&&e.user.prefs&&e.user.prefs.nightmode&&(o="nightmode"),{layout:r,viewType:n,scrollPosition:t,theme:o}},ae=e=>{const t=o.a.get("session_tracker"),r=e.user.sessionTracker,n=(t||r).split("."),s=n[0],i=parseInt(n[2],10);let d={};const c=e.platform.sessionReferrer;if(c){d={referrerDomain:l.a.parse(c).hostname,referrerUrl:c}}return Object.assign({id:s,createdTimestamp:i},d)},le=e=>{const t=z(e).pageType;if(!e.platform.currentPage)return null;if(t&&t.includes("profile")){const t=e.platform.currentPage.urlParams.profileName;if(t){const r=t.toLowerCase(),n=Object(A.j)(e,r);return n?{id:n,name:r,type:"default"}:null}}else if("post_detail"===t){const t=e.platform.currentPage.urlParams.subredditName;if(t){const r=t.toLowerCase(),n=Object(A.j)(e,r),o=ie(e,n);return o&&o.name&&o.name.toLowerCase()===r?{id:n,name:r,type:"default"}:null}}return null},fe=e=>{const t=z(e).pageType;if(!e.platform.currentPage)return null;if("post_submit"===t){const t=e.platform.currentPage.urlParams.subredditName;if(t){const r=t.toLowerCase(),n=Object(F.z)(e,r);return n?{id:n,name:r}:null}return null}if("community"===t||"subreddit_settings"===t||"subreddit_wiki"===t||t&&t.includes("moderation_pages")){const t=e.platform.currentPage.urlParams.subredditName.toLowerCase(),r=Object(F.z)(e,t);return r?{id:r,name:t}:null}if("post_detail"===t||"single_comment_thread"===t){if(e.platform.currentPage.urlParams.subredditName){const t=e.platform.currentPage.urlParams.subredditName.toLowerCase(),r=Object(F.z)(e,t);return r?{id:r,name:t}:null}{const t=e.platform.currentPage.urlParams.partialPostId,r=Object(E.f)(t),n=e.posts.models[r];if(!n)return null;const o=((e,t)=>{const r=t.type,n=t.id;return r===_.a.PROFILE?e.profiles.models[n]:e.subreddits.models[n]})(e,n.belongsTo);return o?{id:o.id,name:o.name.toLowerCase()}:null}}if("search_results"===t){if("string"!=typeof e.platform.currentPage.urlParams.subredditName)return null;const t=e.platform.currentPage.urlParams.subredditName.toLowerCase(),r=Object(F.z)(e,t);return r?{id:r,name:t}:null}if("original_content"===t){var r=e.platform.currentPage.urlParams.categoryName;return{categoryName:(void 0===r?v.b:r).toLowerCase()}}return null},me=(e,t)=>{const r=e.subreddits.models[t];return r&&{id:r.id,name:r.name.toLowerCase()}},pe=(e,t)=>{const r=Object(F.z)(e,t);return fe&&{id:r,name:fe.name.toLowerCase()}},be=(e,t)=>{const r=e.posts.models[t],n=e.comments.models[t];return r?me(e,r.belongsTo.id):n?me(e,n.subredditId):null},ge=(e,t)=>e&&t?{type:e,millis:t}:null,he=Object(u.createSelector)(B.j,e=>e.user.loid,B.q,(e,t,r)=>Object.assign({id:e?e.id:`${m.wb.ACCOUNT}_${i()(t.loid,"0")}`,isAdmin:!!e&&e.isEmployee,isLoggedIn:!!e,cookieCreatedTimestamp:parseInt(t.loidCreated),createdTimestamp:e?1e3*e.created:null},e?{hasPremium:e.isGold,isPremiumSubscriber:r,numberCoins:e.coins||0,numberPremiumDaysRemaining:e.goldExpiration?Math.ceil((1e3*e.goldExpiration-Date.now())/m.y):0}:null)),ye=(e,{subredditId:t,widgetKind:r})=>{const n={targetSubredditId:t},o=e.subreddits.models[t];o&&o.name&&(n.targetSubredditName=o.name);const s=r&&h.j[r];return s&&(n.type=s),n},ve=e=>{const t=e.meta.domain;return{base_url:e.platform.currentPage?`${e.meta.protocol}://${t}${e.platform.currentPage.url}`:void 0,domain:t,reddaid:e.user.reddaid,user_agent:e.meta.userAgent}},Oe=e=>({enabled:I(),acceptableAds:(()=>I()?!w.f(S):null)()}),we=e=>({}),Ie=e=>({}),Se=e=>{const t=e.platform.currentPage;if(!t||!t.meta||t.meta.name!==m.Rb.NEWS)return null;var r=e.news.topics.models;const n=r.selectedTopic,o=r.selectedSubtopic;return n?Object(C.d)(n,o):null},_e=e=>{const t=c()(e.subredditChannels.models);return{number_channels:t&&t.length}},je=(e,t)=>{const r=Object(V.c)(e,t);if(!r)return null;const n=r.type,o=r.membersCount;return{id:r.channelSendbirdUrl,type:y.f[n],number_members:o}};var Te,Pe,Ce;!function(e){e.Recent="recent_search",e.Trending="trending_search",e.TypeaheadSubreddit="search_result_subreddit",e.TypeaheadProfile="search_result_profile"}(Te||(Te={})),function(e){e.Recent="history",e.Search="search",e.Trending="trending"}(Pe||(Pe={})),function(e){e.SearchBar="search_bar"}(Ce||(Ce={}));const xe=(e,t)=>{let r,n;if(t.eventType&&t.id){let o;switch(t.eventType){case"subreddit":o=me(e,t.id);break;case"post":o=be(e,t.id);break;case"profile":o=ie(e,t.id)}o&&(r=o.name,n=o.id)}return{originPageType:e.platform.currentPage?H(e.platform.currentPage):void 0,query:t.q?decodeURIComponent(t.q):t.q,range:t.t,sort:t.sort,structureType:t.structureType,subredditId:n,subredditName:r}},Ee=e=>({id:e.id,name:e.name,type:e.type}),Ne=(e,t)=>{const r=e.platform.currentPage?H(e.platform.currentPage):void 0;return{originElement:Ce.SearchBar,originPageType:r,query:t.searchQuery,typeaheadActive:!0}},ke=e=>({displayQuery:e.displayQuery,rawQuery:e.rawQuery,structureType:e.structureType,sort:e.sort,range:e.t,subredditId:e.subredditId,subredditName:e.subredditName,postFlairName:e.postFlairName,metaFlairId:e.metaFlairId,metaFlairName:e.metaFlairName}),De=(e,t)=>{let r,n;if(t.eventType&&t.id){let o;switch(t.eventType){case"subreddit":o=me(e,t.id);break;case"post":o=be(e,t.id);break;case"profile":o=ie(e,t.id)}o&&(r=o.name,n=o.id)}const o=e.platform.currentPage?H(e.platform.currentPage):void 0,s={originElement:t.originElement,originPageType:o,subredditName:r,subredditId:n};return t.postFlairName?s.postFlairName=t.postFlairName:t.metaFlairName&&(s.metaFlairName=t.metaFlairName),s},Ae=Object(u.createSelector)(B.j,e=>e,(e,t)=>{if(!e||!e.profileId)return;const r=Object(A.g)(t,e.profileId),n=Object(A.e)(t,e.profileId),o=Object(M.m)(t,e.profileId),s=Object(U.a)(t),i=Object(B.fb)(t),d=o&&o.bannerBackgroundImage;return{id:e.id,name:Object(L.f)(e),type:"default",display_name:r?r.title:void 0,about:n?n.publicDescription:void 0,avatar_url:e.accountIcon,cover_url:"string"==typeof d?d:void 0,nsfw:r?r.isNSFW:void 0,content_visible:s?s.contentVisible:void 0,communities_visible:i?i.showActiveCommunities:void 0}}),Re=(e,t,r)=>{const n={};return n.id=t,n.type=r?r.toLowerCase():void 0,n}},"./src/reddit/selectors/user.ts":function(e,t,r){"use strict";r.d(t,"n",function(){return v}),r.d(t,"p",function(){return O}),r.d(t,"o",function(){return w}),r.d(t,"q",function(){return I}),r.d(t,"r",function(){return S}),r.d(t,"v",function(){return _}),r.d(t,"t",function(){return j}),r.d(t,"M",function(){return T}),r.d(t,"F",function(){return P}),r.d(t,"K",function(){return C}),r.d(t,"j",function(){return x}),r.d(t,"c",function(){return E}),r.d(t,"u",function(){return k}),r.d(t,"fb",function(){return D}),r.d(t,"a",function(){return A}),r.d(t,"O",function(){return R}),r.d(t,"P",function(){return L}),r.d(t,"l",function(){return M}),r.d(t,"b",function(){return F}),r.d(t,"x",function(){return V}),r.d(t,"R",function(){return U}),r.d(t,"Q",function(){return B}),r.d(t,"L",function(){return W}),r.d(t,"d",function(){return H}),r.d(t,"X",function(){return $}),r.d(t,"U",function(){return G}),r.d(t,"Z",function(){return z}),r.d(t,"Y",function(){return K}),r.d(t,"D",function(){return q}),r.d(t,"G",function(){return Y}),r.d(t,"w",function(){return J}),r.d(t,"A",function(){return Q}),r.d(t,"y",function(){return X}),r.d(t,"m",function(){return Z}),r.d(t,"B",function(){return ee}),r.d(t,"z",function(){return te}),r.d(t,"V",function(){return re}),r.d(t,"bb",function(){return ne}),r.d(t,"S",function(){return oe}),r.d(t,"T",function(){return se}),r.d(t,"e",function(){return ie}),r.d(t,"db",function(){return de}),r.d(t,"W",function(){return ce}),r.d(t,"s",function(){return ue}),r.d(t,"ab",function(){return ae}),r.d(t,"I",function(){return le}),r.d(t,"k",function(){return fe}),r.d(t,"N",function(){return me}),r.d(t,"cb",function(){return pe}),r.d(t,"g",function(){return be}),r.d(t,"eb",function(){return ge}),r.d(t,"H",function(){return he}),r.d(t,"C",function(){return ye}),r.d(t,"i",function(){return ve}),r.d(t,"f",function(){return Oe}),r.d(t,"J",function(){return we}),r.d(t,"E",function(){return Ie}),r.d(t,"h",function(){return Se});var n=r("./node_modules/lodash/find.js"),o=r.n(n),s=r("./node_modules/lodash/pick.js"),i=r.n(s),d=r("./node_modules/lodash/values.js"),c=r.n(d),u=r("./node_modules/reselect/lib/index.js"),a=r("./src/lib/constants/index.ts"),l=r("./src/lib/objectSelector/index.ts"),f=r("./src/reddit/constants/chat.ts"),m=r("./src/reddit/models/User/index.ts"),p=r("./src/reddit/selectors/chat.ts"),b=r("./src/reddit/selectors/platform.ts"),g=r("./src/reddit/selectors/profile.ts"),h=r("./src/reddit/selectors/runTimeEnvVars.ts");const y=[],v=e=>e.user.account?e.user.account.goldExpiration:null,O=e=>!!e.user.account&&e.user.account.isGold,w=e=>!!e.user.account&&e.user.account.hasAndroidSubscription,I=e=>!!e.user.account&&e.user.account.hasGoldSubscription,S=e=>!!e.user.account&&e.user.account.hasIOSSubscription,_=e=>!!e.user.account&&e.user.account.hasStripeSubscription,j=e=>!!e.user.account&&e.user.account.hasPaypalSubscription,T=e=>e.user.language,P=e=>!!e.user.account,C=e=>!!e.user.session&&!e.user.session.unsafeLoggedOut,x=e=>e.user.account,E=e=>{const t=x(e);return t&&t.coins||0},N=e=>e.user.features,k=e=>{const t=x(e);return!!t&&t.seenRedesignModal},D=e=>e.user.prefs,A=e=>e.user.prefs.allowClickTracking||!P(e),R=e=>e.user.prefs.nightmode,L=e=>!!e.user.prefs.nightmodeTempUpdated,M=e=>e.user.prefs.geopopular,F=e=>e.user.prefs&&e.user.prefs.autoplayVideo,V=e=>e.user.prefs.hideNSFW,U=e=>D(e).over18,B=e=>D(e).openPostInNewTab,W=e=>e.user.prefs.labelNSFW,H=e=>e.user.prefs.featuresViewedHistory.commentForm.markdownModeNotification,$=e=>!(!e.user.account||e.user.account.seenLayoutSwitch||he(e)),G=e=>e.user.prefs.rememberCommunityLayout,z=e=>!D(e).stylesEnabled,K=(e,{subredditId:t})=>{const r=D(e).subreddit[t];return!!r&&!r.stylesEnabled},q=e=>!!e.user.temporaryGQL.isEmployee,Y=e=>{const t=x(e);return!!t&&t.isMod},J=e=>{const t=x(e);return!!t&&!t.isEmployee&&t.isGold},Q=e=>{const t=x(e);return!!t&&t.inRedesignBeta},X=e=>{const t=x(e);return!!t&&t.inChat},Z=e=>{const t=N(e);return!(!t||!t[f.a.SubredditChatNotifcationFtux])},ee=e=>{const t=N(e);return!!(t&&t.chat_subreddit||Object(p.f)(e))},te=e=>{const t=N(e);return!(!t||!t.chat_user_settings)},re=e=>{const t=x(e);return!!t&&t.seenSubredditChatFtux},ne=(e,{userName:t})=>e.users.models[t.toLowerCase()],oe=(e,{userId:t})=>{const r=((e,{userId:t})=>o()(c()(e.users.models),e=>e.id===t))(e,{userId:t});return r?r.profileId:void 0},se=(e,{userName:t})=>{const r=ne(e,{userName:t});return r?r.profileId:void 0},ie=(e,t)=>{const r=t?t.toLowerCase():"";return t&&e.contentGate[r]?e.contentGate[r]:null},de=(e,t)=>{const r=x(e),n=t.post||t.postId&&e.posts.models[t.postId];return!(!r||!n)&&Object(m.f)(r)===n.author},ce=e=>{const t=x(e);if(t){return(Object(m.e)(t)||(new Date).getTime())<(new Date).getTime()-a.lb&&(t.postKarma>=5||t.commentKarma>=10)}return!1},ue=e=>e.user.sessionRefreshFailed,ae=Object(l.a)(e=>{if(!e.user||!e.user.account)return;const t=i()(e.user.account,["hasUnreadOldModmail","hasUnreadMail","hasUnreadModmail","hasUnreadMessages","hasUnreadNotifs","inboxCount"]);return e.platform.currentPage&&e.platform.currentPage.routeMatch&&Object(b.n)(e)===a.Rb.INBOX_PAGES&&e.user.prefs.markMessagesRead&&(t.inboxCount=0),t}),le=(e,t)=>{const r=x(e);if(r){return Object(m.f)(r).toLowerCase()===t.toLowerCase()}return!1},fe=e=>e.user.drafts&&e.user.drafts.count||0,me=e=>e.user.drafts&&e.user.drafts.limit||20,pe=(e,{userName:t})=>{const r=ne(e,{userName:t});return!!r&&!!r.hasUserProfile},be=e=>{const t=x(e);return!!t&&t.hasUserProfile},ge=Object(u.createSelector)(e=>e.user.account,e=>e.users.models,(e,t)=>t,(e,t,r)=>{const n=r.toLowerCase();return e&&Object(m.f)(e)===n?e:t[n]}),he=e=>{return Object(h.a)(e)-parseInt(e.user.loid.loidCreated)<a.y},ye=e=>{const t=(e=>e.user.account?1e3*e.user.account.created:void 0)(e);return!!t&&Object(h.a)(e)-t<a.N},ve=e=>{const t=x(e);if(!t)return y;const r=Object(m.f)(t);return Object(g.k)(e,{profileName:r})},Oe=e=>{const t=x(e);if(!t)return!1;const r=Object(m.f)(t);return Object(g.i)(e,{profileName:r})},we=e=>{const t=x(e);return!!t&&(t.isSuspended&&!t.isFPR)},Ie=e=>{const t=x(e);return!!t&&t.isFPR},Se=e=>{const t=x(e);if(t){const r=ne(e,{userName:Object(m.f)(t)});if(r)return r.isNSFW}return!1}},"./src/reddit/selectors/video.ts":function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"e",function(){return s}),r.d(t,"f",function(){return i}),r.d(t,"g",function(){return d}),r.d(t,"h",function(){return c}),r.d(t,"i",function(){return u}),r.d(t,"d",function(){return a}),r.d(t,"c",function(){return l});const n=(e,{postId:t})=>!!e.posts.video.buffering[t],o=(e,{postId:t})=>!!e.posts.video.consumed[t],s=(e,{postId:t})=>!!e.posts.video.playing[t],i=(e,{postId:t})=>e.posts.video.loadTimes[t],d=(e,{postId:t})=>e.posts.video.metadata[t],c=(e,{postId:t})=>!!e.posts.video.loadable[t],u=(e,{postId:t})=>!!e.posts.video.started[t],a=(e,{postId:t})=>{if(!t)return null;const r=e.posts.video.time[t];return r?r.currentTime/1e3:null},l=(e,{postId:t})=>{return e.posts.video.continuousViewStartedAt[t]||0}}}]);
|
|
//# sourceMappingURL=Client~Governance~Reddit.cfadfa7b0d06251d4a53.js.map
|