1"use strict";(self.webpackChunkts_boilerplate=self.webpackChunkts_boilerplate||[]).push([[1494],{51494:function(e,t,r){r.d(t,{DD:function(){return d},FG:function(){return x},Ff:function(){return P},Hy:function(){return v},Od:function(){return j},Ty:function(){return m},pG:function(){return w}}),r(82185),r(61445),r(34068),r(86608),r(19224),r(65114),r(32242),r(60039),r(24075),r(66706),r(85062),r(97152),r(77135),r(12064),r(51163),r(82758),r(10475),r(82106),r(32145),r(3233),r(20884),r(31863),r(3940),r(74277),r(57045),r(42652),r(75868);var n=r(59352),o=r(25878);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t,r,n,o,a,c){try{var u=e[a](c),i=u.value}catch(e){return void r(e)}u.done?t(i):Promise.resolve(i).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function c(e){l(a,n,o,c,u,"next",e)}function u(e){l(a,n,o,c,u,"throw",e)}c(void 0)})}}var f=n.default.firestore();function d(e){return h.apply(this,arguments)}function h(){return(h=p(regeneratorRuntime.mark(function e(t){var r,n,o,a,c,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.collectionPath,n=t.tagID,r&&n&&"all"!==n){e.next=4;break}return console.warn("resetHashtagIdList requires a selected hashtag."),e.abrupt("return",[]);case 4:return o=f.collection(r),a=f.collection(r+"Hashtag").doc(n),e.prev=6,e.next=9,o.where("hashtagIdList","array-contains",n).get().then(function(e){return e.docs.map(function(e){var t,r,n,o,a=e.data(),c=null==a?void 0:a.createdAt,u=null!==(t=null!==(r=null==c||null===(n=c.toMillis)||void 0===n?void 0:n.call(c))&&void 0!==r?r:null==c||null===(o=c.getTime)||void 0===o?void 0:o.call(c))&&void 0!==t?t:"number"==typeof(null==c?void 0:c.seconds)?1e3*c.seconds:0;return{id:e.id,createdAtMillis:u}})});case 9:return(c=e.sent).sort(function(e,t){return t.createdAtMillis-e.createdAtMillis}),u=c.map(function(e){return e.id}),e.next=14,a.set({docIdList:u},{merge:!0});case 14:return console.log("docIdList has been successfully updated."),e.abrupt("return",u);case 18:throw e.prev=18,e.t0=e.catch(6),console.error("Error resetting hashtag ID list:",e.t0),e.t0;case 22:case"end":return e.stop()}},e,null,[[6,18]])}))).apply(this,arguments)}function m(e){return g.apply(this,arguments)}function g(){return g=p(regeneratorRuntime.mark(function e(t){var r,n,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collectionPath,n=f.collection(r),e.prev=2,e.next=5,n.get().then(function(e){return e.docs.map(function(e,t){return i({id:e.id},e.data())})});case 5:return o=e.sent,e.next=8,Promise.all(o.map(function(){var e=p(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.doc(t.id).set({_algoliaReindex:Date.now()},{merge:!0}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 8:console.log("â
모ë 문ì ì
ë°ì´í¸ ìë£!"),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(2),console.error("â 문ì ì
ë°ì´í¸ ì¤ ì¤ë¥ ë°ì:",e.t0),e.t0;case 15:case"end":return e.stop()}},e,null,[[2,11]])})),g.apply(this,arguments)}function v(e){return b.apply(this,arguments)}function b(){return b=p(regeneratorRuntime.mark(function e(t){var r,n,o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collectionPath,n=f.collection(r),o=f.collection("".concat(r,"2")),e.prev=3,e.next=6,o.get().then(function(e){return e.docs.map(function(e){return i({id:e.id},e.data())})});case 6:return a=e.sent,e.next=9,Promise.all(a.map(function(){var e=p(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.doc(t.id).set(t,{merge:!0}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 9:e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(3),console.error("â 문ì ì
ë°ì´í¸ ì¤ ì¤ë¥ ë°ì:",e.t0),e.t0;case 15:case"end":return e.stop()}},e,null,[[3,11]])})),b.apply(this,arguments)}function w(e){return y.apply(this,arguments)}function y(){return y=p(regeneratorRuntime.mark(function e(t){var r,n,o,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collectionPath,n=f.collection(r),o=f.collection("".concat(r,"Series")),e.next=5,o.get().then(function(e){return e.docs});case 5:return c=e.sent,e.abrupt("return",Promise.all(c.map(function(){var e=p(regeneratorRuntime.mark(function e(t,r){var c,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=t.id,e.next=3,n.where("series","==",c).get().then(function(e){return e.docs.map(function(e){return e.id})});case 3:return u=e.sent,e.abrupt("return",o.doc(c).set({postingList:a(u)},{merge:!0}));case 5:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}())));case 7:case"end":return e.stop()}},e)})),y.apply(this,arguments)}function x(){return R.apply(this,arguments)}function R(){return R=p(regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=f.collection("emoticon"),e.next=3,t.get().then(function(e){return e.docs});case 3:return r=e.sent,e.next=6,Promise.all(r.map(function(){var e=p(regeneratorRuntime.mark(function e(r,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.doc(r.id).set({order:n},{merge:!0}));case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()));case 6:case"end":return e.stop()}},e)})),R.apply(this,arguments)}function k(e){return O.apply(this,arguments)}function O(){return(O=p(regeneratorRuntime.mark(function e(t){var r,n,o,c,u,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=f.collection(t),e.next=3,r.get();case 3:return n=e.sent,o="".concat(t,"IdList"),c=n.docs.filter(function(e){return e.id!==o}),u=c.filter(function(e){return null!=e.data().createdAt}),i=c.filter(function(e){return null==e.data().createdAt}),u.sort(function(e,t){return e.data().createdAt.toMillis()-t.data().createdAt.toMillis()}),e.abrupt("return",[].concat(a(i),a(u)));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function P(e){return I.apply(this,arguments)}function I(){return(I=p(regeneratorRuntime.mark(function e(t){var r,n,o,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collectionPath,e.next=3,k(r);case 3:return n=e.sent,o=new Map(n.map(function(e,t){return[e.id,t+1]})),a=n.filter(function(e){return e.data().numberId!==o.get(e.id)}),e.abrupt("return",{total:n.length,toUpdate:a.length,toSkip:n.length-a.length});case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function j(e){return A.apply(this,arguments)}function A(){return A=p(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collectionPath,e.prev=2,e.delegateYield(regeneratorRuntime.mark(function e(){var t,n,a,c,u,i,s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(r);case 2:t=e.sent,n=new Map(t.map(function(e,t){return[e.id,t+1]})),a=t.filter(function(e){return e.data().numberId!==n.get(e.id)}
1),console.log("ð ì´ ".concat(t.length,"ê° ì¤ ").concat(a.length,"ê° ë³ê²½ íì (").concat(t.length-a.length,"ê° skip)")),c=regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=f.batch(),a.slice(t,t+500).forEach(function(e){r.update(e.ref,{numberId:n.get(e.id)})}),e.next=5,r.commit();case 5:case"end":return e.stop()}},e)}),u=0;case 8:if(!(u<a.length)){e.next=13;break}return e.delegateYield(c(u),"t0",10);case 10:u+=500,e.next=8;break;case 13:return i=(0,o.aU)(),s=(0,o.H9)(i,"_meta",r),l=t.length,e.next=18,(0,o.c4)(i,function(){var e=p(regeneratorRuntime.mark(function e(t){var r,n,o,a,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.get(s);case 2:o=e.sent,a=o.exists()&&null!==(r=null===(n=o.data())||void 0===n?void 0:n.lastNumberId)&&void 0!==r?r:0,c=Math.max(a,l),t.set(s,{lastNumberId:c},{merge:!0});case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:console.log("â numberId ì¬ì ì© ìë£! (".concat(r,": 1 ~ ").concat(t.length,", ë³ê²½: ").concat(a.length,"ê±´)"));case 19:case"end":return e.stop()}},e)})(),"t0",4);case 4:e.next=10;break;case 6:throw e.prev=6,e.t1=e.catch(2),console.error("â numberId ì¬ì ì© ì¤ ì¤ë¥ ë°ì:",e.t1),e.t1;case 10:case"end":return e.stop()}},e,null,[[2,6]])})),A.apply(this,arguments)}}}]); 2//# sourceMappingURL=1494.cff5cf8c.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.