PageSourceSearch

https://glotpress.blog/_static/??-eJyNkd1OwzAMhV8Iz2KaNLhAPMqUJl7r…kktnRnJGec+5ivHdknwHt6ejy/H18Ohnv4TxT4GVQ==

js glotpress.blog collected 2026-09-24 18:12:12 UTC 75,136 bytes, 1,385 lines download raw bytes

1(() => {
2    var e = {
3        5849(e) {
4            e.exports = {
5                getNamespacedPath(e) {
6                    const t = window?.p2?.state?.workspace?.apiNamespace || window?.p2Blocks?.apiNamespace;
7                    return t ? `${t}${e}` : e;
8                }
9            };
10        }
11    }, t = {};
12    function r(s) {
13        var o = t[s];
14        if (void 0 !== o) return o.exports;
15        var n = t[s] = {
16            exports: {}
17        };
18        return e[s](n, n.exports, r), n.exports;
19    }
20    r.n = e => {
21        var t = e && e.__esModule ? () => e.default : () => e;
22        return r.d(t, {
23            a: t
24        }), t;
25    }, r.d = (e, t) => {
26        for (var s in t) r.o(t, s) && !r.o(e, s) && Object.defineProperty(e, s, {
27            enumerable: !0,
28            get: t[s]
29        });
30    }, r.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t), (() => {
31        "use strict";
32        const e = window.wp.domReady;
33        var t = r.n(e);
34        const s = window.wp.hooks, o = window.wp.element, n = window.wp.apiFetch;
35        var l = r.n(n);
36        const a = {
37            getContentEntity: (e, t) => l()({
38                path: `/wp/v2/${e}s/${t}?context=edit`,
39                method: "GET"
40            }),
41            saveContentEntity: (e, t, r, s) => l()({
42                path: `/wp/v2/${e}s/${t}`,
43                method: "POST",
44                data: {
45                    content: r,
46                    ...s
47                }
48            }),
49            canCurrentUserEdit: (e, t) => l()({
50                path: `/wp/v2/${e}s/${t}?context=edit`,
51                method: "GET"
52            }).then(() => !0).catch(() => !1)
53        };
54        const c = window.wp.i18n, i = (() => {
55            const e = (0, c.createI18n)();
56            return t()(() => {
57                if (!window.p2Blocks?.translationsInSiteLocale) return;
58                const t = JSON.parse(window.p2Blocks.translationsInSiteLocale)?.locale_data?.messages;
59                e.setLocaleData(t, "p2-blocks");
60            }), e;
61        })(), d = JSON.parse('{"bM":{"unchecked":{"emoji":"⬜","ariaChecked":"false"},"mixed":{"emoji":"⏳","ariaChecked":"mixed"},"checked":{"emoji":"✅","ariaChecked":"true"}},"Dz":["unchecked","mixed","checked"]}'), u = d.Dz, p = {
62            get unchecked() {
63                return i.__("Pending", "p2-blocks");
64            },
65            get mixed() {
66                return i.__("In progress", "p2-blocks");
67            },
68            get checked() {
69                return i.__("Done", "p2-blocks");
70            }
71        }, b = window.ReactJSXRuntime, m = d.bM, h = ({status: e, disabled: t = !1, ...r}) => {
72            const s = (0, o.useRef)();
73            (0, o.useEffect)(() => {
74                s.current.indeterminate = "mixed" === e;
75            }, [ e ]);
76            const {ariaChecked: n} = m[e];
77            return (0, b.jsx)("div", {
78                className: "wp-block-p2-task__checkbox-wrapper",
79                children: (0, b.jsx)("input", {
80                    type: "checkbox",
81                    checked: "checked" === e,
82                    "aria-checked": n,
83                    title: p[e],
84                    className: "wp-block-p2-task__checkbox",
85                    disabled: t,
86                    ref: s,
87                    ...r
88                })
89            });
90        }, _ = "p2_blocks_task_status_changed";
91        function g() {
92            return (0, s.hasAction)(_, "P2Blocks");
93        }
94        function w({initialStatus: e, onChangeStatus: t, parentEntityData: r}) {
95            const {entityId: n, type: l, taskIndexInEntity: a, hasProjectBlock: i} = r, [d, p] = (0, 
96            o.useState)(e);
97            return (0, b.jsx)(h, {
98                status: d,
99                onChange: e => {
100                    if (!e.isTrusted) return;
101                    const r = ((e, t = !1) => {
102                        const r = u.findIndex(t => t === e);
103                        let s = (r + 1) % u.length;
104                        return t || "mixed" !== u[s] || s++, u[s];
105                    })(d, i);
106                    t(r), async function(e) {
107                        g() || (await (window.p2editor?.loadEditorBundle?.().catch(() => {})), g()) ? (0, 
108                        s.doAction)(_, e) : function(e) {
109                            const {entityType: t, entityId: r} = e, o = (0, c.__)("The task could not be saved. Reload the page and try again, or update the block from the editor.", "p2-blocks");
110                            (0, s.hasAction)("p2_blocks_interactive_updated_failed") ? (0, s.doAction)("p2_blocks_interactive_updated_failed", {
111                                entityType: t,
112                                entityId: r,
113                                message: o
114                            }) : alert(o);
115                        }(e);
116                    }({
117                        entityType: l,
118                        entityId: n,
119                        taskIndexInEntity: a,
120                        status: r
121                    }), p(r);
122                }
123            });
124        }
125        const k = ({children: e}) => (0, b.jsx)("span", {
126            className: "wp-block-p2-task__status-pill",
127            children: e
128        });
129        function f({node: e, type: t, id: r}) {
130            const s = !!e.querySelector(".wp-block-p2-project-status");
131            e.querySelectorAll(".wp-block-p2-task").forEach((e, n) => {
132                const l = e.querySelector(".wp-block-p2-task__checkbox-wrapper"), a = l.querySelector("[aria-checked]")?.getAttribute("aria-checked"), c = /^is-aria-checked-(\S+)/, i = {
133                    false: "unchecked",
134                    mixed: "mixed",
135                    true: "checked"
136                }[a || Array.from(e.querySelector(".wp-block-p2-task__checkbox")?.classList)?.find(e => c.test(e))?.match(c)?.[1]], d = document.createElement("div");
137                l.replaceWith(d), (0, o.createRoot)(d).render((0, b.jsx)(w, {
138                    initialStatus: i,
139                    onChangeStatus: t => {
140                        !function(e, t) {
141                            const r = "checked" === t ? "add" : "remove";
142                            e.querySelector(".wp-block-p2-task__content").classList[r]("is-checked");
143                        }(e, t), function(e, t) {
144                            const r = document.createElement("div"), s = e.querySelector(".wp-block-p2-task__status-pill");
145                            if (s) s.replaceWith(r); else {
146                                const t = e.querySelector(".wp-block-p2-task__content");
147                                t.parentNode.insertBefore(r, t.nextSibling);
148                            }
149                            "mixed" === t && ((0, o.createRoot)(r).render((0, b.jsx)(k, {
150                                children: p[t]
151                            })), r.replaceWith(r.firstChild));
152                        }(e, t);
153                    },
154                    parentEntityData: {
155                        entityId: r,
156                        type: t,
157                        taskIndexInEntity: n,
158                        hasProjectBlock: s
159                    }
160                }));
161            });
162        }
163        const x = function() {
164            !function(e) {
165                const t = (0, s.applyFilters)("p2_blocks_io", a);
166                [ "post", "comment" ].forEach(r => function(e) {
167                    const t = "post" === e ? ".post, .page" : ".comment";
168                    return Array.from(document.querySelectorAll(t)).reduce((t, r) => {
169                        const s = function(e, t) {
170                            const r = e.getAttribute("id")?.split("-");
171                            if (2 !== r?.length) return !1;
172                            const [s, o] = r;
173                            return !(s !== t || parseInt(o).toString() !== o) && parseInt(o);
174                        }(r, e), o = "post" === e ? r.querySelector(".entry-content") : r.querySelector(".comment-content");
175                        return s && o ? [ ...t, {
176                            node: o,
177                            id: s,
178                            type: e
179                        } ] : t;
180                    }, []);
181                }(r).forEach(r => {
182                    t.canCurrentUserEdit(r.type, r.id).then(t => {
183                        t && e(r);
184                    });
185                }));
186            }(f);
187        };
188        function v(e) {
189            var t, r, s = "";
190            if ("string" == typeof e || "number" == typeof e) s += e; else if ("object" == typeof e) if (Array.isArray(e)) {
191                var o = e.length;
192                for (t = 0; t < o; t++) e[t] && (r = v(e[t])) && (s && (s += " "), s += r);
193            } else for (r in e) e[r] && (s && (s += " "), s += r);
194            return s;
195        }
196        (0, s.addAction)("p2_blocks_content_rendered", "P2Blocks", 
196() => {
197            window.p2Blocks?.frontendEditingEnabled && x(), (() => {
198                if (!window.p2Blocks || !window.p2Blocks.userLogin) return;
199                const e = window.p2Blocks.userLogin;
200                document.querySelectorAll(".wp-block-p2-task").forEach(t => {
201                    const r = t.querySelectorAll(".wp-block-p2-task__assignee-hidden-username");
202                    if (Array.from(r).map(e => e.innerText).find(t => t === `@${e}`) && null === t.querySelector(".wp-block-p2-task__assignee-current-user")) {
203                        const e = document.createElement("div");
204                        e.className = "wp-block-p2-task__assignee-current-user is-current-user", e.textContent = (0, 
205                        c.__)("You", "p2-blocks"), t.querySelector(".wp-block-p2-task__right").prepend(e);
206                    }
207                });
208            })();
209        });
210        const j = function() {
211            for (var e, t, r = 0, s = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = v(e)) && (s && (s += " "), 
212            s += t);
213            return s;
214        }, y = function({icon: e, size: t = 24, ...r}) {
215            const {className: s, isPressed: o, ...n} = e.props;
216            return (0, b.jsx)("svg", {
217                ...n,
218                width: t,
219                height: t,
220                ...r,
221                className: j(s, {
222                    "is-pressed": o
223                }) || void 0,
224                "aria-hidden": !0,
225                focusable: !1
226            });
227        }, C = ({fillColor: e}) => (0, b.jsx)(y, {
228            icon: (0, b.jsx)("svg", {
229                width: "14",
230                height: "15",
231                viewBox: "0 0 14 15",
232                fill: "none",
233                xmlns: "http://www.w3.org/2000/svg",
234                children: (0, b.jsx)("path", {
235                    fillRule: "evenodd",
236                    clipRule: "evenodd",
237                    d: "M12.5 7.5C12.5 10.5376 10.0376 13 7 13C3.96243 13 1.5 10.5376 1.5 7.5C1.5 4.46243 3.96243 2 7 2C10.0376 2 12.5 4.46243 12.5 7.5ZM14 7.5C14 11.366 10.866 14.5 7 14.5C3.13401 14.5 0 11.366 0 7.5C0 3.63401 3.13401 0.5 7 0.5C10.866 0.5 14 3.63401 14 7.5ZM7 9.25C7.9665 9.25 8.75 8.4665 8.75 7.5C8.75 6.5335 7.9665 5.75 7 5.75C6.0335 5.75 5.25 6.5335 5.25 7.5C5.25 8.4665 6.0335 9.25 7 9.25Z",
238                    fill: e
239                })
240            })
241        });
242        (Object.getOwnPropertyDescriptor(C, "name") || {}).writable || Object.defineProperty(C, "name", {
243            value: "default",
244            configurable: !0
245        });
246        const N = ({fillColor: e}) => (0, b.jsx)(y, {
247            icon: (0, b.jsx)("svg", {
248                width: "14",
249                height: "15",
250                viewBox: "0 0 14 15",
251                fill: "none",
252                xmlns: "http://www.w3.org/2000/svg",
253                children: (0, b.jsx)("path", {
254                    fillRule: "evenodd",
255                    clipRule: "evenodd",
256                    d: "M12.5 7.5C12.5 10.5376 10.0376 13 7 13C3.96243 13 1.5 10.5376 1.5 7.5C1.5 4.46243 3.96243 2 7 2C10.0376 2 12.5 4.46243 12.5 7.5ZM14 7.5C14 11.366 10.866 14.5 7 14.5C3.13401 14.5 0 11.366 0 7.5C0 3.63401 3.13401 0.5 7 0.5C10.866 0.5 14 3.63401 14 7.5ZM10.1761 6.69621C10.4571 6.39184 10.4381 5.91735 10.1337 5.6364C9.82934 5.35544 9.35485 5.37442 9.0739 5.67879L6.39423 8.58176L4.9261 6.99129C4.64515 6.68692 4.17066 6.66794 3.86629 6.9489C3.56192 7.22985 3.54294 7.70434 3.8239 8.00871L5.84313 10.1962L6.39423 10.7932L6.94533 10.1962L10.1761 6.69621Z",
257                    fill: e
258                })
259            })
260        });
261        (Object.getOwnPropertyDescriptor(N, "name") || {}).writable || Object.defineProperty(N, "name", {
262            value: "default",
263            configurable: !0
264        });
265        const O = ({fillColor: e}) => (0, b.jsx)(y, {
266            icon: (0, b.jsx)("svg", {
267                width: "15",
268                height: "17",
269                viewBox: "0 0 15 17",
270                fill: "none",
271                xmlns: "http://www.w3.org/2000/svg",
272                children: (0, b.jsx)("path", {
273                    fillRule: "evenodd",
274                    clipRule: "evenodd",
275                    d: "M5.25 1.625V3.125C5.25 3.21266 5.26504 3.29681 5.29268 3.375H1.75C0.783502 3.375 0 4.1585 0 5.125V7.625C0 8.5915 0.783502 9.375 1.75 9.375H5.25L5.25 15.375C5.25 15.7892 5.58579 16.125 6 16.125C6.41421 16.125 6.75 15.7892 6.75 15.375L6.75 9.375H10.8009C11.3008 9.375 11.7768 9.16124 12.1089 8.78764L13.8106 6.87327L14.2535 6.375L13.8106 5.87673L12.1089 3.96236C11.7768 3.58876 11.3008 3.375 10.8009 3.375H6.70732C6.73496 3.29681 6.75 3.21266 6.75 3.125V1.625C6.75 1.21079 6.41421 0.875 6 0.875C5.58579 0.875 5.25 1.21079 5.25 1.625ZM1.75 4.875C1.61193 4.875 1.5 4.98693 1.5 5.125V7.625C1.5 7.76307 1.61193 7.875 1.75 7.875H10.8009C10.8723 7.875 10.9403 7.84446 10.9878 7.79109L12.2465 6.375L10.9878 4.95891C10.9403 4.90554 10.8723 4.875 10.8009 4.875H1.75Z",
276                    fill: e
277                })
278            })
279        });
280        (Object.getOwnPropertyDescriptor(O, "name") || {}).writable || Object.defineProperty(O, "name", {
281            value: "default",
282            configurable: !0
283        });
284        const P = ({fillColor: e}) => (0, b.jsx)(y, {
285            icon: (0, b.jsxs)("svg", {
286                width: "13",
287                height: "15",
288                viewBox: "0 0 13 15",
289                fill: "none",
290                xmlns: "http://www.w3.org/2000/svg",
291                children: [ (0, b.jsx)("path", {
292                    fillRule: "evenodd",
293                    clipRule: "evenodd",
294                    d: "M2.25 2.25C1.83579 2.25 1.5 2.58579 1.5 3C1.5 3.41421 1.83579 3.75 2.25 3.75C2.66421 3.75 3 3.41421 3 3C3 2.58579 2.66421 2.25 2.25 2.25ZM0 3C0 1.75736 1.00736 0.75 2.25 0.75C3.49264 0.75 4.5 1.75736 4.5 3C4.5 4.24264 3.49264 5.25 2.25 5.25C1.00736 5.25 0 4.24264 0 3Z",
295                    fill: e
296                }), (0, b.jsx)("path", {
297                    fillRule: "evenodd",
298                    clipRule: "evenodd",
299                    d: "M2.25 11.25C1.83579 11.25 1.5 11.5858 1.5 12C1.5 12.4142 1.83579 12.75 2.25 12.75C2.66421 12.75 3 12.4142 3 12C3 11.5858 2.66421 11.25 2.25 11.25ZM0 12C0 10.7574 1.00736 9.75 2.25 9.75C3.49264 9.75 4.5 10.7574 4.5 12C4.5 13.2426 3.49264 14.25 2.25 14.25C1.00736 14.25 0 13.2426 0 12Z",
300                    fill: e
301                }), (0, b.jsx)("path", {
302                    fillRule: "evenodd",
303                    clipRule: "evenodd",
304                    d: "M10.25 11.25C9.83579 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.83579 12.75 10.25 12.75C10.6642 12.75 11 12.4142 11 12C11 11.5858 10.6642 11.25 10.25 11.25ZM8 12C8 10.7574 9.00736 9.75 10.25 9.75C11.4926 9.75 12.5 10.7574 12.5 12C12.5 13.2426 11.4926 14.25 10.25 14.25C9.00736 14.25 8 13.2426 8 12Z",
305                    fill: e
306                }), (0, b.jsx)("path", {
307                    d: "M10.5 9.75V4.75C10.5 3.64543 9.60457 2.75 8.5 2.75H7",
308                    stroke: e,
309                    strokeWidth: "1.5",
310                    strokeLinecap: "round"
311                }), (0, b.jsx)("path", {
312                    d: "M6.25 2.93934L6.06066 2.75L6.25 2.56066V2.93934Z",
313                    fill: e,
314                    stroke: e,
315                    strokeWidth: "1.5",
316                    strokeLinecap: "round"
317                }), (0, b.jsx)("path", {
318                    fillRule: "evenodd",
319                    clipRule: "evenodd",
320                    d: "M1.5 10.75L1.5 4.75H3L3 10.75H1.5Z",
321                    fill: e
322                }) ]
323            })
324        });
325        (Object.getOwnPropertyDescriptor(P, "name") || {}).writable || Object.defineProperty(P, "name", {
326            value: "default",
327            configurable: !0
328        });
329        const L = ({fillColor: e}) => (0, b.jsx)(y, {
330            icon: (0, b.jsx)("svg", {
331                height: "16",
332                viewBox: "0 0 16 16",
333                width: "16",
334                children: (0, b.jsx)("path", {
335                    fillRule: "evenodd",
336                    d: "M10.72 1.227a.75.75 0 011.06 0l.97.97.97-.97a.75.75 0 111.06 1.061l-.97.97.97.97a.75.75 0 01-1.06 1.06l-.97-.97-.97.97a.75.75 0 11-1.06-1.06l.97-.97-.97-.97a.75.75 0 010-1.06zM12.75 6.5a.75.75 0 00-.75.75v3.378a2.251 2.251 0 101.5 0V7.25a.75.75 0 00-.75-.75zm0 5.5a.75.75 0 100 1.5.75.75 0 000-1.5zM2.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.25 1a2.25 2.25 0 00-.75 4.372v5.256a2.251 2.251 0 101.5 0V5.372A2.25 2.25 0 003.25 1zm0 11a.75.75 0 100 1.5.75.75 0 000-1.5z",
337                    fill: e
338                })
339            })
340        });
341        (Object.getOwnPropertyDescriptor(L, "name") || {}).writable || Object.defineProperty(L, "name", {
342            value: "default",
343            configurable: !0
344        });
345        const M = ({fillColor: e}) => (0, b.jsx)(y, {
346            icon: (0, b.jsxs)("svg", {
347                width: "13",
348                height: "15",
349                viewBox: "0 0 13 15",
350                fill: "none",
351                xmlns: "http://www.w3.org/2000/svg",
352                children: [ (0, b.jsx)("path", {
353                    fillRule: "evenodd",
354                    clipRule: "evenodd",
355                    d: "M2.25 2.25C1.83579 2.25 1.5 2.58579 1.5 3C1.5 3.41421 1.83579 3.75 2.25 3.75C2.66421 3.75 3 3.41421 3 3C3 2.58579 2.66421 2.25 2.25 2.25ZM0 3C0 1.75736 1.00736 0.75 2.25 0.75C3.49264 0.75 4.5 1.75736 4.5 3C4.5 4.24264 3.49264 5.25 2.25 5.25C1.00736 5.25 0 4.24264 0 3ZM10.25 7.25C9.83579 7.25 9.5 7.58579 9.5 8C9.5 8.41421 9.83579 8.75 10.25 8.75C10.6642 8.75 11 8.41421 11 8C11 7.58579 10.6642 7.25 10.25 7.25ZM8 8C8 6.75736 9.00736 5.75 10.25 5.75C11.4926 5.75 12.5 6.75736 12.5 8C12.5 9.24264 11.4926 10.25 10.25 10.25C9.00736 10.25 8 9.24264 8 8ZM1.5 12C1.5 11.5858 1.83579 11.25 2.25 11.25C2.66421 11.25 3 11.5858 3 12C3 12.4142 2.66421 12.75 2.25 12.75C1.83579 12.75 1.5 12.4142 1.5 12ZM2.25 9.75C1.00736 9.75 0 10.7574 0 12C0 13.2426 1.00736 14.25 2.25 14.25C3.49264 14.25 4.5 13.2426 4.5 12C4.5 10.7574 3.49264 9.75 2.25 9.75Z",
356                    fill: e
357                }), (0, b.jsx)("path", {
358                    fillRule: "evenodd",
359                    clipRule: "evenodd",
360                    d: "M1.81413 3.88976C2.15119 3.649 2.6196 3.72707 2.86036 4.06413L2.25006 4.50006C2.86036 4.06413 2.8605 4.06433 2.86036 4.06413L2.85957 4.06302L2.86233 4.06682L2.87843 4.08845C2.89382 4.10891 2.91846 4.14112 2.95211 4.18339C3.01946 4.268 3.12254 4.39255 3.25934 4.54375C3.53365 4.84693 3.9395 5.25281 4.46051 5.65804
360C5.50837 6.47304 6.97476 7.25006 8.75006 7.25006C9.16427 7.25006 9.50006 7.58584 9.50006 8.00006C9.50006 8.41427 9.16427 8.75006 8.75006 8.75006C6.52535 8.75006 4.74175 7.77708 3.5396 6.84207C2.93562 6.3723 2.46647 5.90318 2.14703 5.55012C1.98696 5.37319 1.86347 5.2243 1.77847 5.11751C1.73595 5.06408 1.70298 5.02109 1.6798 4.99028C1.6682 4.97487 1.65905 4.9625 1.65237 4.95338L1.6442 4.94217L1.64151 4.93844L1.64052 4.93705C1.64034 4.9368 1.63976 4.93599 2.25006 4.50006L1.63976 4.93599C1.399 4.59893 1.47707 4.13051 1.81413 3.88976ZM2.85957 4.06302C2.85944 4.06284 2.8594 4.0628 2.85957 4.06302V4.06302Z",
361                    fill: e
362                }), (0, b.jsx)("path", {
363                    fillRule: "evenodd",
364                    clipRule: "evenodd",
365                    d: "M1.5 10.5L1.5 4.5H3L3 10.5H1.5Z",
366                    fill: e
367                }) ]
368            })
369        });
370        (Object.getOwnPropertyDescriptor(M, "name") || {}).writable || Object.defineProperty(M, "name", {
371            value: "default",
372            configurable: !0
373        });
374        const S = window.wp.url;
375        var R = r(5849);
376        const A = e => {
377            if (!e) return e;
378            const t = [ "login", "avatar_url", "html_url" ];
379            return Object.keys(e).filter(e => t.includes(e)).reduce((t, r) => (t[r] = e[r], 
380            t), {});
381        }, I = (e, t) => {
382            switch (e) {
383              case "issues":
384                return (e => {
385                    const t = [ "html_url", "title", "state", "number", "user", "created_at", "closed_at", "closed_by" ], r = Object.keys(e).filter(e => t.includes(e)).reduce((t, r) => (t[r] = e[r], 
386                    t), {});
387                    return r.user = A(e.user), r.closed_by = A(e.closed_by), r;
388                })(t);
389
390              case "milestone":
391                return (e => {
392                    const t = [ "html_url", "title", "description", "state", "open_issues", "closed_issues", "created_at", "closed_at", "due_on" ];
393                    return Object.keys(e).filter(e => t.includes(e)).reduce((t, r) => (t[r] = e[r], 
394                    t), {});
395                })(t);
396
397              case "pull":
398                return (e => {
399                    const t = [ "html_url", "title", "state", "user", "number", "created_at", "merged", "base", "merged_at", "merged_by", "closed_at" ], r = Object.keys(e).filter(e => t.includes(e)).reduce((t, r) => (t[r] = e[r], 
400                    t), {});
401                    return r.base = (e => {
402                        if (!e || !e.repo) return e;
403                        const t = [ "html_url" ];
404                        return {
405                            repo: Object.keys(e.repo).filter(e => t.includes(e)).reduce((t, r) => (t[r] = e.repo[r], 
406                            t), {})
407                        };
408                    })(e.base), r.user = A(e.user), r.merged_by = A(e.merged_by), r;
409                })(t);
410            }
411        }, E = /^https:\/\/(github\.(?:com|a8c\.com))\/([\w\-]+)\/([\w\-_\.]+)\/(issues|milestone|pull)\/([\w\-_#]+)/i, q = async (e, t, r, s, o) => {
412            try {
413                return await (async (e, t, r, s, o) => {
414                    const n = (e => {
415                        let t = null;
416                        switch (e) {
417                          case "issues":
418                            t = e;
419                            break;
420
421                          case "milestone":
422                            t = "milestones";
423                            break;
424
425                          case "pull":
426                            t = "pulls";
427                        }
428                        return t;
429                    })(s);
430                    if (!n) return Promise.resolve({
431                        ok: !1,
432                        error: (0, c.__)("Unsupported entity type.")
433                    });
434                    const a = (0, R.getNamespacedPath)("/connections/github/proxy");
435                    return ((e, t, r) => {
436                        const s = r.body;
437                        if (200 !== r.status) {
438                            let t = (0, c.__)("We could not load data, GitHub error: ", "p2-blocks") + s.message;
439                            return "Not Found" === s.message && (t = (e => {
440                                let t = null;
441                                if (!window?.p2Blocks?.connections?.github) return t;
442                                if (window.p2Blocks.connections.github.hasOwnProperty(e)) t = window.p2Blocks.connections.github[e]; else {
443                                    const e = Object.keys(window.p2Blocks.connections.github);
444                                    t = window.p2Blocks.connections.github[e[0]];
445                                }
446                                return t;
447                            })(e) ? (0, c.__)("The GitHub item could not be found in your connected accounts.", "p2-blocks") : (0, 
448                            c.__)("Cannot load GitHub data, make sure you have connected your GitHub account.", "p2-blocks")), 
449                            {
450                                ok: !1,
451                                error: t
452                            };
453                        }
454                        return {
455                            ok: !0,
456                            data: I(t, s)
457                        };
458                    })(t, s, await l()({
459                        method: "GET",
460                        global: !0,
461                        path: (0, S.addQueryArgs)(a, {
462                            method: "GET",
463                            domain: e,
464                            owner: t,
465                            repo: r,
466                            item_type: n,
467                            item_id: o,
468                            hub_id: window.p2Blocks.hubId,
469                            site_id: window.p2Blocks.siteId
470                        })
471                    }));
472                })(e, t, r, s, o);
473            } catch (e) {
474                return {
475                    ok: !1,
476                    error: e.message
477                };
478            }
479        }, B = e => {
480            const t = navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language, r = [ [ "year", 31536e6 ], [ "month", 2628e6 ], [ "day", 864e5 ], [ "hour", 36e5 ], [ "minute", 6e4 ], [ "second", 1e3 ] ], s = Date.parse(e);
481            if (isNaN(s)) return "";
482            const o = Date.now() - s, n = new Intl.RelativeTimeFormat(t);
483            for (const [e, t] of r) if (Math.abs(o) > t || "second" === e) return n.format(-Math.round(o / t), e);
484        }, D = (e, t, r = !1) => {
485            switch (t) {
486              case "open":
487                return "var(--p2-blocks-color-green-dark)";
488
489              case "closed":
490                return "pull" !== e || r ? "var(--p2-blocks-color-purple)" : "var(--p2-blocks-color-red-dark)";
491
492              default:
493                return null;
494            }
495        }, T = ({type: e, state: t, number: r, merged: s = !1}) => {
496            let o, n;
497            switch (e) {
498              case "issues":
499                n = `Issue #${r}`, o = "open" === t ? C : N;
500                break;
501
502              case "pull":
503                n = `Pull Request #${r}`, o = "open" === t ? P : "closed" === t && s ? M : "closed" === t ? L : P;
504                break;
505
506              case "milestone":
507                n = "Milestone", o = O;
508            }
509            const l = D(e, t, s);
510            return (0, b.jsxs)("div", {
511                className: "wp-block-p2-embed-github__type-badge",
512                children: [ (0, b.jsx)(o, {
513                    fillColor: l
514                }), n ]
515            });
516        };
517        (Object.getOwnPropertyDescriptor(T, "name") || {}
517).writable || Object.defineProperty(T, "name", {
518            value: "default",
519            configurable: !0
520        });
521        const $ = ({owner: e, repo: t, className: r}) => (0, b.jsx)("a", {
522            className: r,
523            href: `https://github.com/${e}/${t}`,
524            children: ` ${e}/${t}`
525        });
526        (Object.getOwnPropertyDescriptor($, "name") || {}).writable || Object.defineProperty($, "name", {
527            value: "default",
528            configurable: !0
529        });
530        const F = e => {
531            switch (e.state) {
532              case "open":
533                return (0, b.jsxs)(b.Fragment, {
534                    children: [ (0, b.jsxs)("span", {
535                        children: [ (0, c.__)("Opened", "p2-blocks"), " ", B(e.created_at), " ", (0, c.__)("by", "p2-blocks") ]
536                    }), (0, b.jsx)("img", {
537                        src: e.user.avatar_url,
538                        alt: "",
539                        className: "wp-block-p2-embed-github__issue-avatar"
540                    }), (0, b.jsx)("a", {
541                        href: e.user.html_url,
542                        children: e.user.login
543                    }) ]
544                });
545
546              case "closed":
547                return (0, b.jsxs)(b.Fragment, {
548                    children: [ (0, b.jsxs)("span", {
549                        children: [ (0, c.__)("Closed", "p2-blocks"), " ", B(e.closed_at), " ", (0, c.__)("by", "p2-blocks") ]
550                    }), (0, b.jsx)("img", {
551                        src: e.closed_by.avatar_url,
552                        alt: "",
553                        className: "wp-block-p2-embed-github__issue-avatar"
554                    }), (0, b.jsx)("a", {
555                        href: e.closed_by.html_url,
556                        children: e.closed_by.login
557                    }) ]
558                });
559
560              default:
561                return (0, b.jsx)("span", {
562                    children: (0, c.__)("We could not figure out the state of this item.", "p2-blocks")
563                });
564            }
565        }, Z = (e, t) => {
566            const {itemType: r} = e;
567            switch (t.state) {
568              case "loading":
569                return (0, b.jsx)("div", {
570                    className: "p2-blocks-skeleton-long-text"
571                });
572
573              case "error":
574                return (0, b.jsx)("div", {
575                    className: "wp-block-p2-embed-github__issue-title-error",
576                    children: t.message
577                });
578
579              default:
580                return (0, b.jsxs)("a", {
581                    href: e.url,
582                    rel: "noopener noreferrer",
583                    target: "_blank",
584                    className: "wp-block-p2-embed-github__issue-title-link",
585                    children: [ (0, b.jsx)("div", {
586                        className: "wp-block-p2-embed-github__issue-title-text",
587                        children: t.title
588                    }), (0, b.jsx)(T, {
589                        type: r,
590                        state: t.state,
591                        number: t.number
592                    }) ]
593                });
594            }
595        }, H = (e, t) => {
596            switch (t.state) {
597              case "loading":
598                return (0, b.jsxs)(b.Fragment, {
599                    children: [ (0, b.jsx)("div", {
600                        className: "p2-blocks-skeleton-short-text"
601                    }), (0, b.jsx)("div", {
602                        className: "p2-blocks-skeleton-medium-text"
603                    }) ]
604                });
605
606              case "error":
607                return (0, b.jsx)("div", {
608                    className: "wp-block-p2-embed-github__issue-title-error",
609                    children: (0, b.jsx)("a", {
610                        href: e.url,
611                        rel: "noopener noreferrer",
612                        target: "_blank",
613                        children: e.url
614                    })
615                });
616
617              default:
618                return (0, b.jsxs)(b.Fragment, {
619                    children: [ (0, b.jsx)($, {
620                        owner: e.owner,
621                        repo: e.repo,
622                        className: "wp-block-p2-embed-github__issue-repo-url"
623                    }), (0, b.jsx)("span", {
624                        children: " · "
625                    }), F(t) ]
626                });
627            }
628        }, z = ({blockAttributes: e, data: t}) => (0, b.jsx)("div", {
629            className: "wp-block-p2-embed-github__issue",
630            children: (0, b.jsxs)("div", {
631                className: "wp-block-p2-embed-github__issue-content",
632                children: [ (0, b.jsx)("div", {
633                    className: "wp-block-p2-embed-github__issue-title",
634                    children: Z(e, t)
635                }), (0, b.jsx)("div", {
636                    className: "wp-block-p2-embed-github__issue-description",
637                    children: H(e, t)
638                }) ]
639            })
640        });
641        (Object.getOwnPropertyDescriptor(z, "name") || {}
641).writable || Object.defineProperty(z, "name", {
642            value: "default",
643            configurable: !0
644        });
645        const V = e => {
646            switch (e.state) {
647              case "open":
648                return (0, b.jsxs)(b.Fragment, {
649                    children: [ (0, b.jsxs)("span", {
650                        children: [ (0, c.__)("Opened", "p2-blocks"), " ", B(e.created_at), " ", (0, c.__)("by", "p2-blocks") ]
651                    }), (0, b.jsx)("img", {
652                        src: e.user?.avatar_url,
653                        alt: "",
654                        className: "wp-block-p2-embed-github__pr-avatar"
655                    }), (0, b.jsx)("a", {
656                        href: e.user?.html_url,
657                        children: e.user?.login
658                    }) ]
659                });
660
661              case "closed":
662                return e.merged ? (0, b.jsxs)(b.Fragment, {
663                    children: [ (0, b.jsxs)("span", {
664                        children: [ (0, c.__)("Merged", "p2-blocks"), " ", B(e.merged_at), " ", (0, c.__)("by", "p2-blocks") ]
665                    }), (0, b.jsx)("img", {
666                        src: e.merged_by?.avatar_url,
667                        alt: "",
668                        className: "wp-block-p2-embed-github__pr-avatar"
669                    }), (0, b.jsx)("a", {
670                        href: e.merged_by?.html_url,
671                        children: e.merged_by?.login
672                    }) ]
673                }) : (0, b.jsxs)("span", {
674                    children: [ (0, c.__)("Closed", "p2-blocks"), " ", B(e.closed_at) ]
675                });
676
677              default:
678                return (0, b.jsx)("span", {
679                    children: (0, c.__)("We could not figure out the state of this item.", "p2-blocks")
680                });
681            }
682        }, W = (e, t) => {
683            const {itemType: r} = e;
684            switch (t.state) {
685              case "loading":
686                return (0, b.jsx)("div", {
687                    className: "p2-blocks-skeleton-long-text"
688                });
689
690              case "error":
691                return (0, b.jsx)("div", {
692                    className: "wp-block-p2-embed-github__pr-title-error",
693                    children: t.message
694                });
695
696              default:
697                return (0, b.jsxs)("a", {
698                    href: e.url,
699                    rel: "noopener noreferrer",
700                    target: "_blank",
701                    className: "wp-block-p2-embed-github__pr-title-link",
702                    children: [ (0, b.jsx)("div", {
703                        className: "wp-block-p2-embed-github__pr-title-text",
704                        children: t.title
705                    }), (0, b.jsx)(T, {
706                        type: r,
707                        state: t.state,
708                        number: t.number,
709                        merged: "merged" in t && t.merged
710                    }) ]
711                });
712            }
713        }, G = (e, t) => {
714            const {owner: r, repo: s} = e;
715            switch (t.state) {
716              case "loading":
717                return (0, b.jsxs)(b.Fragment, {
718                    children: [ (0, b.jsx)("div", {
719                        className: "p2-blocks-skeleton-short-text"
720                    }), (0, b.jsx)("div", {
721                        className: "p2-blocks-skeleton-medium-text"
722                    }) ]
723                });
724
725              case "error":
726                return (0, b.jsx)("div", {
727                    className: "wp-block-p2-embed-github__pr-title-error",
728                    children: (0, b.jsx)("a", {
729                        href: e.url,
730                        rel: "noopener noreferrer",
731                        target: "_blank",
732                        children: e.url
733                    })
734                });
735
736              default:
737                return (0, b.jsxs)(b.Fragment, {
738                    children: [ (0, b.jsx)("a", {
739                        className: "wp-block-p2-embed-github__pr-url",
740                        href: t.base?.repo?.html_url,
741                        children: ` ${r}/${s}`
742                    }), (0, b.jsx)("span", {
743                        children: " · "
744                    }), V(t) ]
745                });
746            }
747        }, U = ({blockAttributes: e, data: t}) => (0, b.jsx)("div", {
748            className: "wp-block-p2-embed-github__pr",
749            children: (0, b.jsxs)("div", {
750                className: "wp-block-p2-embed-github__pr-content",
751                children: [ (0, b.jsx)("div", {
752                    className: "wp-block-p2-embed-github__pr-title",
753                    children: W(e, t)
754                }), (0, b.jsx)("div", {
755                    className: "wp-block-p2-embed-github__pr-description",
756                    children: G(e, t)
757                }) ]
758            })
759        });
760        (Object.getOwnPropertyDescriptor(U, "name") || {}
760).writable || Object.defineProperty(U, "name", {
761            value: "default",
762            configurable: !0
763        });
764        const J = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ];
765        function Q(e) {
766            const t = new Date(e);
767            if (Number.isNaN(t.getTime())) return "Invalid date";
768            const r = t.getUTCDate();
769            return `${J[t.getUTCMonth()]} ${r}${function(e) {
770                if (1 === Math.floor(e % 100 / 10)) return "th";
771                switch (e % 10) {
772                  case 1:
773                    return "st";
774
775                  case 2:
776                    return "nd";
777
778                  case 3:
779                    return "rd";
780
781                  default:
782                    return "th";
783                }
784            }(r)}, ${t.getUTCFullYear()}`;
785        }
786        const Y = ({percentage: e}) => (0, b.jsx)("div", {
787            className: "wp-block-p2-embed-github__progress",
788            children: (0, b.jsx)("div", {
789                className: "wp-block-p2-embed-github__progress-completed",
790                style: {
791                    width: `${e}%`
792                }
793            })
794        });
795        (Object.getOwnPropertyDescriptor(Y, "name") || {}).writable || Object.defineProperty(Y, "name", {
796            value: "default",
797            configurable: !0
798        });
799        const X = (e, t) => {
800            switch (t.state) {
801              case "loading":
802                return (0, b.jsx)("div", {
803                    className: "p2-blocks-skeleton-long-text"
804                });
805
806              case "error":
807                return (0, b.jsx)("div", {
808                    className: "wp-block-p2-embed-github__milestone-title-error",
809                    children: t.message
810                });
811
812              default:
813                return (0, b.jsxs)("a", {
814                    href: e.url,
815                    rel: "noopener noreferrer",
816                    target: "_blank",
817                    className: "wp-block-p2-embed-github__milestone-title-link",
818                    children: [ (0, b.jsx)("div", {
819                        className: "wp-block-p2-embed-github__milestone-title-text",
820                        children: t.title
821                    }), (0, b.jsx)(T, {
822                        type: "milestone",
823                        state: t.state
824                    }) ]
825                });
826            }
827        }, K = (e, t) => {
828            switch (t.state) {
829              case "loading":
830                return (0, b.jsxs)(b.Fragment, {
831                    children: [ (0, b.jsx)("div", {
832                        className: "p2-blocks-skeleton-medium-text"
833                    }), (0, b.jsx)("div", {
834                        className: "p2-blocks-skeleton-long-text"
835                    }), (0, b.jsx)("div", {
836                        className: "p2-blocks-skeleton-short-text"
837                    }) ]
838                });
839
840              case "error":
841                return (0, b.jsx)("div", {
842                    className: "wp-block-p2-embed-github__milestone-title-error",
843                    children: (0, b.jsx)("a", {
844                        href: e.url,
845                        rel: "noopener noreferrer",
846                        target: "_blank",
847                        children: e.url
848                    })
849                });
850
851              default:
852                const s = ((e, t) => {
853                    const r = e + t;
854                    return r ? Math.round(e / r * 100) : 0;
855                })(t.closed_issues, t.open_issues);
856                return (0, b.jsxs)(b.Fragment, {
857                    children: [ (0, b.jsx)("span", {
858                        className: "wp-block-p2-embed-github__milestone-description-text",
859                        children: t.description
860                    }), (0, b.jsx)(Y, {
861                        percentage: s
862                    }), (0, b.jsxs)("span", {
863                        className: "wp-block-p2-embed-github__milestone-progress-info",
864                        children: [ (0, b.jsx)($, {
865                            owner: e.owner,
866                            repo: e.repo,
867                            className: "wp-block-p2-embed-github__milestone-repo-url"
868                        }), " ", " · ", (r = t.due_on, r ? (0, b.jsxs)("span", {
869                            children: [ (0, c.__)("Due on", "p2-blocks"), " ", Q(r) ]
870                        }) : (0, b.jsx)("span", {
871                            children: (0, c.__)("No due date", "p2-blocks")
872                        })), " ", " · ", (0, b.jsxs)("strong", {
873                            children: [ s, "%" ]
874                        }), " ", (0, c.__)("complete", "p2-blocks"), " (", t.open_issues, (0, c.__)(" open", "p2-blocks") + ", ", t.closed_issues, (0, 
875                        c.__)(" closed", "p2-blocks"), ")" ]
876                    }) ]
877                });
878            }
879            var r;
880        }, ee = ({blockAttributes: e, data: t}) => (0, b.jsx)("div", {
881            className: "wp-block-p2-embed-github__milestone",
882            children: (0, b.jsxs)("div", {
883                className: "wp-block-p2-embed-github__milestone-content",
884                children: [ (0, b.jsx)("div", {
885                    className: "wp-block-p2-embed-github__milestone-title",
886                    children: X(e, t)
887                }), (0, b.jsx)("div", {
888                    className: "wp-block-p2-embed-github__milestone-description",
889                    children: K(e, t)
890                }) ]
891            })
892        });
893        (Object.getOwnPropertyDescriptor(ee, "name") || {}
893).writable || Object.defineProperty(ee, "name", {
894            value: "default",
895            configurable: !0
896        });
897        const te = () => (0, b.jsx)(y, {
898            icon: (0, b.jsx)("svg", {
899                width: "24",
900                height: "24",
901                viewBox: "0 0 16 16",
902                fill: "none",
903                xmlns: "http://www.w3.org/2000/svg",
904                children: (0, b.jsx)("path", {
905                    fillRule: "evenodd",
906                    clipRule: "evenodd",
907                    d: "M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
908                })
909            })
910        });
911        (Object.getOwnPropertyDescriptor(te, "name") || {}).writable || Object.defineProperty(te, "name", {
912            value: "default",
913            configurable: !0
914        });
915        const re = ({backgroundColor: e, showLogo: t = !0}) => (0, b.jsx)("div", {
916            className: j("wp-block-p2-embed-github__left-container", {
917                "has-background": !!e
918            }),
919            style: {
920                backgroundColor: e
921            },
922            children: (0, b.jsx)("div", {
923                className: "wp-block-p2-embed-github__logo",
924                children: t && (0, b.jsx)(te, {})
925            })
926        });
927        (Object.getOwnPropertyDescriptor(re, "name") || {}).writable || Object.defineProperty(re, "name", {
928            value: "default",
929            configurable: !0
930        });
931        const se = ({blockAttributes: e, data: t, isSave: r = !1}) => {
932            const {itemType: s} = e;
933            let o, n;
934            switch (s) {
935              case "issues":
936                n = D(s, t.state), o = z;
937                break;
938
939              case "pull":
940                n = D(s, t.state, "merged" in t && t.merged), o = U;
941                break;
942
943              case "milestone":
944                o = ee;
945                break;
946
947              default:
948                o = z;
949            }
950            return (0, b.jsxs)("div", {
951                className: "wp-block-p2-embed-github__main",
952                title: e.url,
953                children: [ (0, b.jsx)("div", {
954                    className: "wp-block-p2-embed-github__data-owner",
955                    title: e.owner
956                }), (0, b.jsx)("div", {
957                    className: "wp-block-p2-embed-github__data-repo",
958                    title: e.repo
959                }), (0, b.jsx)("div", {
960                    className: "wp-block-p2-embed-github__data-item-id",
961                    title: e.itemId
962                }), (0, b.jsx)("div", {
963                    className: "wp-block-p2-embed-github__data-item-type",
964                    title: e.itemType
965                }), (0, b.jsx)(re, {
966                    backgroundColor: n,
967                    showLogo: !r
968                }), (0, b.jsx)("div", {
969                    className: "wp-block-p2-embed-github__right-container",
970                    children: (0, b.jsx)(o, {
971                        blockAttributes: e,
972                        data: t
973                    })
974                }) ]
975            });
976        };
977        (Object.getOwnPropertyDescriptor(se, "name") || {}).writable || Object.defineProperty(se, "name", {
978            value: "default",
979            configurable: !0
980        });
981        const oe = ({blockAttributes: e, onRequestFinished: t = null, shouldRenderLoadingState: r = !0}) => {
982            const [s, n] = (0, o.useState)({
983                data: {
984                    state: "loading"
985                }
986            });
987            return (0, o.useEffect)(() => {
988                const {owner: r, repo: s, itemId: o, itemType: l} = e, {domain: a} = (e => {
989                    const t = e.match(E);
990                    return t ? {
991                        domain: t[1],
992                        owner: t[2],
993                        repo: t[3],
994                        itemType: t[4],
995                        itemId: t[5]
996                    } : null;
997                })(e.url);
998                q(a, r, s, l, o).then(e => {
999                    e.ok ? (t({
1000                        ok: !0,
1001                        data: e.data
1002                    }), n({
1003                        data: e.data
1004                    })) : (t({
1005                        ok: !1,
1006                        error: e.error
1007                    }), n({
1008                        data: {
1009                            state: "error",
1010                            message: e.error
1011                        }
1012                    }));
1013                }).catch(e => {
1014                    t({
1015                        ok: !1,
1016                        error: e.error
1017                    });
1018                });
1019            }, [ e, t ]), r || "loading" !== s.data.state ? (0, b.jsx)(se, {
1020                blockAttributes: e,
1021                data: s.data
1022            }) : null;
1023        };
1024        (Object.getOwnPropertyDescriptor(oe, "name") || {}
1024).writable || Object.defineProperty(oe, "name", {
1025            value: "default",
1026            configurable: !0
1027        });
1028        const ne = JSON.parse('{"attributes":{"url":{"selector":".wp-block-p2-embed-github__main"},"owner":{"selector":".wp-block-p2-embed-github__data-owner"},"repo":{"selector":".wp-block-p2-embed-github__data-repo"},"itemId":{"selector":".wp-block-p2-embed-github__data-item-id"},"itemType":{"selector":".wp-block-p2-embed-github__data-item-type"}}}'), le = "is-observed", ae = (() => {
1029            const e = new WeakMap, t = new IntersectionObserver((t, r) => {
1030                for (const s of t) {
1031                    const t = e.get(s.target);
1032                    t && s.isIntersecting && (t(s.target), r.unobserve(s.target));
1033                }
1034            });
1035            return {
1036                observeElement: (r, s) => {
1037                    e.set(r, s), t.observe(r);
1038                }
1039            };
1040        })(), ce = e => {
1041            const t = e.querySelector(".wp-block-p2-embed-github__saved");
1042            if (!t) return;
1043            const r = {
1044                url: e.querySelector(ne.attributes.url.selector).attributes.getNamedItem("title").value,
1045                owner: e.querySelector(ne.attributes.owner.selector).attributes.getNamedItem("title").value,
1046                repo: e.querySelector(ne.attributes.repo.selector).attributes.getNamedItem("title").value,
1047                itemId: e.querySelector(ne.attributes.itemId.selector).attributes.getNamedItem("title").value,
1048                itemType: e.querySelector(ne.attributes.itemType.selector).attributes.getNamedItem("title").value
1049            };
1050            if (r.url) {
1051                const s = ({ok: e, error: r}) => {
1052                    t.remove(), e || console.error(r);
1053                }, n = e.querySelector(".wp-block-p2-embed-github__rehydrate-placeholder");
1054                (0, o.createRoot)(n).render((0, b.jsx)(oe, {
1055                    blockAttributes: r,
1056                    onRequestFinished: s,
1057                    shouldRenderLoadingState: !1
1058                }));
1059            }
1060        };
1061        (0, s.addAction)("p2_blocks_content_rendered", "P2Blocks", () => {
1062            document.querySelectorAll(".wp-block-p2-embed-github").forEach(e => {
1063                e.classList.contains(le) || (e.classList.add(le), ae.observeElement(e, ce));
1064            });
1065        });
1066        const ie = e => t => {
1067            window.o2.$body.trigger("post-load", {
1068                html: e || t?.attributes?.contentFiltered || ""
1069            });
1070        }, de = {
1071            state: {
1072                post: {},
1073                comment: {}
1074            },
1075            add({attributes: {type: e, id: t}}, r) {
1076                this.state[e][t] = Math.max(this.state[e][t] || 0, r);
1077            },
1078            remove(e, t) {
1079                const {type: r, id: s} = e.attributes;
1080                t === this.state[r][s] ? (e.once("sync", ie()), delete this.state[r][s]) : (e.once(`o2-${r}-rendered`, ie(e.previousAttributes().contentFiltered)), 
1081                e.set({
1082                    contentFiltered: e.previousAttributes().contentFiltered,
1083                    contentRaw: e.previousAttributes().contentRaw
1084                }));
1085            }
1086        };
1087        function ue(e, t) {
1088            const r = "post" === e ? window.o2.App?.posts.get(t) : window.o2.App?.posts.find(e => !!e.comments.get(t)).comments?.get?.(t);
1089            if (!r) throw new Error(`${e} ${t} could not be found in O2 data.`);
1090            return r;
1091        }
1092        const pe = {
1093            getContentEntity(e, t) {
1094                const r = ue(e, t);
1095                return Promise.resolve({
1096                    content: {
1097                        raw: r?.attributes?.contentRaw
1098                    }
1099                });
1100            },
1101            saveContentEntity(e, t, r, s) {
1102                window.o2.Polling.stop();
1103                const o = function(e, t) {
1104                    const r = function(e, t) {
1105                        const r = function(e, t) {
1106                            return document.querySelector(`#${e}-${t}`);
1107                        }(e, t);
1108                        return "comment" === e ? r.querySelector(".comment-content") : r.querySelector(".entry-content");
1109                    }(e, t);
1110                    return "comment" === e ? Array.from(r.children).filter(e => !e.matches(".o2-comment-actions")).map(e => e.outerHTML).join("") : r.innerHTML;
1111                }(e, t), n = ue(e, t);
1112                n.once(`o2-${e}-rendered`, ie(o));
1113                const l = Date.now();
1114                return de.add(n, l), new Promise((e, t) => {
1115                    n.save({
1116                        contentRaw: r,
1117                        contentFiltered: o,
1118                        ...s
1119                    }, {
1120                        success: (t, r) => {
1121                            de.remove(n, l), window.o2.Polling.start(), e(r);
1122                        },
1123                        error: (e, r) => {
1124                            de.remove(n, l), window.o2.Polling.start(), t(r);
1125                        }
1126                    });
1127                });
1128            },
1129            canCurrentUserEdit(e, t) {
1130                const r = window.o2.currentUser, s = ue(e, t).attributes.userLogin === r.userLogin;
1131                return Promise.resolve(r.canEditOthersPosts || s);
1132            }
1133        };
1134        var be;
1135        window.o2Config && (be = window.jQuery, (0, s.addFilter)("p2_blocks_should_init_interactive_blocks_on_dom_ready", "P2Blocks", 
1135() => !1), 
1136        be(document).on("ready_o2", () => {
1137            (0, s.addFilter)("p2_blocks_io", "P2Blocks", () => pe), (0, s.addAction)("p2_blocks_interactive_updated_failed", "P2Blocks", ({entityType: e, entityId: t, message: r}) => {
1138                "post" === e ? window.o2.Http.requestO2Post(t) : window.o2.Http.requestO2Comment(t), 
1139                window.o2.Notifications.add({
1140                    type: "error",
1141                    text: r,
1142                    sticky: !0
1143                });
1144            });
1145        }), be(document).on("post-load", () => {
1146            (0, s.doAction)("p2_blocks_content_rendered");
1147        })), t()(() => {
1148            (0, s.applyFilters)("p2_blocks_should_init_interactive_blocks_on_dom_ready", !0) && (0, 
1149            s.doAction)("p2_blocks_content_rendered");
1150        });
1151    })();
1152})();;
1153(function(a,s,e){"use strict";var t,i;t=a.jQuery,i=a.wp.hooks,t(s).on("mentionsData.jetpack",(a,{data:s})=>{const e=s.map(a=>({displayName:a.display_name,username:a.user_login,avatarUrl:a.image_URL}));i.addFilter("task_assignee_list","P2Blocks",()=>e)})}).call(this,window,document);;
1154(function(o,e,t){"use strict";(0,o.jQuery)(e).on("ready_o2",()=>{o.setTimeout(()=>{o.wp.hooks.doAction("p2_blocks_content_rendered")},0)})}).call(this,window,document);;
1155( function() {
1156	var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1,
1157	    is_opera  = navigator.userAgent.toLowerCase().indexOf( 'opera' )  > -1,
1158	    is_ie     = navigator.userAgent.toLowerCase().indexOf( 'msie' )   > -1;
1159
1160	if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) {
1161		var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent';
1162		window[ eventMethod ]( 'hashchange', function() {
1163			var element = document.getElementById( location.hash.substring( 1 ) );
1164
1165			if ( element ) {
1166				if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
1167					element.tabIndex = -1;
1168
1169				element.focus();
1170			}
1171		}, false );
1172	}
1173})();
1174;
1175/**
1176 * MBP - Mobile boilerplate helper functions
1177 */
1178
1179(function(document) {
1180
1181    window.MBP = window.MBP || {};
1182
1183    /**
1184     * Fix for iPhone viewport scale bug
1185     * http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
1186     */
1187
1188    MBP.viewportmeta = document.querySelector && document.querySelector('meta[name="viewport"]');
1189    MBP.ua = navigator.userAgent;
1190
1191    MBP.scaleFix = function() {
1192        if (MBP.viewportmeta && /iPhone|iPad|iPod/.test(MBP.ua) && !/Opera Mini/.test(MBP.ua)) {
1193            MBP.viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
1194            document.addEventListener('gesturestart', MBP.gestureStart, false);
1195        }
1196    };
1197
1198    MBP.gestureStart = function() {
1199        MBP.viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
1200    };
1201
1202    /**
1203     * Normalized hide address bar for iOS & Android
1204     * (c) Scott Jehl, scottjehl.com
1205     * MIT License
1206     */
1207
1208    // If we split this up into two functions we can reuse
1209    // this function if we aren't doing full page reloads.
1210
1211    // If we cache this we don't need to re-calibrate everytime we call
1212    // the hide url bar
1213    MBP.BODY_SCROLL_TOP = false;
1214
1215    // So we don't redefine this function everytime we
1216    // we call hideUrlBar
1217    MBP.getScrollTop = function() {
1218        var win = window;
1219        var doc = document;
1220
1221        return win.pageYOffset || doc.compatMode === 'CSS1Compat' && doc.documentElement.scrollTop || doc.body.scrollTop || 0;
1222    };
1223
1224    // It should be up to the mobile
1225    MBP.hideUrlBar = function() {
1226        var win = window;
1227
1228        // if there is a hash, or MBP.BODY_SCROLL_TOP hasn't been set yet, wait till that happens
1229        if (!location.hash && MBP.BODY_SCROLL_TOP !== false) {
1230            win.scrollTo( 0, MBP.BODY_SCROLL_TOP === 1 ? 0 : 1 );
1231        }
1232    };
1233
1234    MBP.hideUrlBarOnLoad = function() {
1235        var win = window;
1236        var doc = win.document;
1237        var bodycheck;
1238
1239        // If there's a hash, or addEventListener is undefined, stop here
1240        if ( !location.hash && win.addEventListener ) {
1241
1242            // scroll to 1
1243            window.scrollTo( 0, 1 );
1244            MBP.BODY_SCROLL_TOP = 1;
1245
1246            // reset to 0 on bodyready, if needed
1247            bodycheck = setInterval(function() {
1248                if ( doc.body ) {
1249                    clearInterval( bodycheck );
1250                    MBP.BODY_SCROLL_TOP = MBP.getScrollTop();
1251                    MBP.hideUrlBar();
1252                }
1253            }, 15 );
1254
1255            win.addEventListener('load', function() {
1256                setTimeout(function() {
1257                    // at load, if user hasn't scrolled more than 20 or so...
1258                    if (MBP.getScrollTop() < 20) {
1259                        // reset to hide addr bar at onload
1260                        MBP.hideUrlBar();
1261                    }
1262                }, 0);
1263            });
1264        }
1265    };
1266
1267    /**
1268     * Prevent iOS from zooming onfocus
1269     * https://github.com/h5bp/mobile-boilerplate/pull/108
1270     * Adapted from original jQuery code here: http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/
1271     */
1272
1273    MBP.preventZoom = function() {
1274        var formFields = document.querySelectorAll('input, select, textarea');
1275        var contentString = 'width=device-width,initial-scale=1,maximum-scale=';
1276        var i = 0;
1277        var fieldLength = formFields.length;
1278
1279        var setViewportOnFocus = function() {
1280            MBP.viewportmeta.content = contentString + '1';
1281        };
1282
1283        var setViewportOnBlur = function() {
1284            MBP.viewportmeta.content = contentString + '10';
1285        };
1286
1287        for (; i < fieldLength; i++) {
1288            formFields[i].onfocus = setViewportOnFocus;
1289            formFields[i].onblur = setViewportOnBlur;
1290        }
1291    };
1292
1293})(document);;
1294( function( $ ) {
1295	$( document ).ready( function() {
1296		// Only do this once
1297		if ( $( 'body' ).hasClass( 'breathe-js-loaded' ) ) {
1298			return;
1299		}
1300		$( 'body' ).addClass( 'breathe-js-loaded' );
1301
1302
1303
1304		$( '#secondary-toggle, #primary-modal' ).click( function () {
1305
1306			$( 'body' ).toggleClass( 'responsive-show' );
1307			
1308		} );
1309		
1310		function moveNavIntoSidebar() {
1311			var $menu = $( 'nav#site-navigation' );
1312			if ( ( $menu.length ) && ( $menu.parents( 'header#masthead' ).length ) ) {
1313				$menu.prependTo( '#secondary-content' );
1314				$menu.wrap( '<aside class="widget" id="o2-responsive-nav"></aside>' );
1315			}
1316		}
1317
1318		function moveNavOutOfSidebar() {
1319			var $menu = $( 'nav#site-navigation' );
1320			if ( ( $menu.length ) && ( 0 === $menu.parents( 'header#masthead' ).length ) ) {
1321				$( 'nav#site-navigation' ).appendTo( 'header#masthead' );
1322				$( '#o2-responsive-nav' ).remove();
1323			}
1324		}
1325
1326		if ( 'undefined' != typeof enquire ) {
1327			// "Tablet" max-width also defined in inc/scss/partials/ui/_responsive.scss
1328			enquire.register("screen and (max-width:876px)", {
1329				match: function() {
1330					moveNavIntoSidebar();
1331				},
1332
1333				unmatch: function() {
1334					moveNavOutOfSidebar();
1335				}
1336			} );
1337
1338		}
1339	} );
1340} )( jQuery );
1341;
1342!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.JetpackScriptDataModule=t():e.JetpackScriptDataModule=t()}(globalThis,()=>(()=>{"use strict";var e={729(e,t,r){r.d(t,{$8:()=>n.$8,IT:()=>n.IT,KS:()=>n.KS,L2:()=>n.L2,Sy:()=>n.Sy,au:()=>n.au,d_:()=>n.d_,e5:()=>n.e5,hT:()=>n.hT,lI:()=>n.lI,mH:()=>n.mH,oQ:()=>n.oQ,sV:()=>n.sV});var n=r(336)},336(e,t,r){function n(){return window.JetpackScriptData}function o(){return n()?.site}function i(e=""){return`${n()?.site.admin_url}${e}`}function a(e=""){return i(`admin.php?page=jetpack${e}`)}function u(e=""){return i(`admin.php?page=my-jetpack${e}`)}function p(){return n()?.site.plan?.features?.active??[]}function c(e){return-1!==p().indexOf(e)}function s(){return"wpcom"===n()?.site?.host}function f(){return"woa"===n()?.site?.host}function d(){return n()?.site?.is_wpcom_platform}function l(){return"unknown"===n()?.site?.host}function S(){return s()?"simple":f()?"woa":"jetpack"}function m(e){return n()?.user.current_user.capabilities[e]}r.d(t,{$8:()=>d,IT:()=>c,KS:()=>S,L2:()=>l,Sy:()=>s,au:()=>n,d_:()=>m,e5:()=>u,hT:()=>i,lI:()=>f,mH:()=>p,oQ:()=>a,sV:()=>o})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{currentUserCan:()=>o.d_,getActiveFeatures:()=>o.mH,getAdminUrl:()=>o.hT,getJetpackAdminPageUrl:()=>o.oQ,getMyJetpackUrl:()=>o.e5,getScriptData:()=>o.au,getSiteData:()=>o.sV,getSiteType:()=>o.KS,isJetpackSelfHostedSite:()=>o.L2,isSimpleSite:()=>o.Sy,isWoASite:()=>o.lI,isWpcomPlatformSite:()=>o.$8,siteHasFeature:()=>o.IT});var o=r(729);return n})());;
1343!function(a){a.fn.mentions=function(s){Array.isArray(s)&&(s={data:s}),void 0!==s.suggestions&&(s.data=s.suggestions);var n={at:"@",data:a.map(s.data,function(a){return a.name=a.name||a.user_login+" "+a.display_name,a}),tpl:"<li class='${classes}' data-value='@${user_login}'><img src='${image_URL}' /><span class='username'>@${user_login}</span><small>${display_name}</small></li>"},e=a.extend(!0,{},jetpackSuggestUIDefaults,n,s);return a.fn.atwho.call(this,e)}}(jQuery);
1344;
1345/* global jetpackMentionsData, xpostData */
1346var o2 = o2 || {};
1347
1348o2.Suggestions = ( function() {
1349  return function( $editor ) {
1350    if ( 'undefined' !== typeof jetpackMentionsData && jetpackMentionsData.length ) {
1351      $editor.mentions( jetpackMentionsData );
1352    }
1353    if ( 'undefined' !== typeof xpostData && null !== xpostData && xpostData.length ) {
1354      $editor.xposts( xpostData );
1355    }
1356    if ( 'undefined' !== typeof glossaryData && glossaryData.length ) {
1357        $editor.glossary( glossaryData );
1358    }
1359    $editor.hashtags();
1360  };
1361} )();
1362
1363jQuery( document ).on( 'mentionsData.jetpack', function( event, mentions ) {
1364  // Global event, triggered when we first get data back from the suggest endpoint
1365  // Wire up any currently visible editors with mentions
1366  jQuery( '.o2-editor-text' ).mentions( mentions.data );
1367}).on( 'post-editor-create.o2', function( event, $editor ) {
1368  // When new o2 editors are created, wire them up as well
1369  o2.Suggestions( $editor );
1370});
1371;
1372var jetpackMentionsData = [];
1373jQuery( document ).ready( function() {
1374  // Commented out until we determine for sure if we need it
1375  // jQuery.wpcom_proxy_request( { metaAPI: { accessAllUsersBlogs: true } } ).done( function() {
1376    jQuery.wpcom_proxy_request( '/users/suggest', { 'method' : 'GET', 'query' : { site: window.location.host, image_size: 32 } } ).done( function( response, statusCode ) {
1377        if ( ( 'undefined' !== typeof response.suggestions ) && ( response.suggestions.length ) ) {
1378          jetpackMentionsData = response.suggestions;
1379          jQuery( document ).trigger( 'mentionsData.jetpack', { data: jetpackMentionsData } );
1380        }
1381    } );
1382  // } );
1383} );
1384;
1385!function(){var e=document.currentScript;function t(t){var n=document.createElement("script"),o=e||document.getElementsByTagName("script")[0];n.setAttribute("async",!0),n.setAttribute("src",t),o.parentNode.insertBefore(n,o)}function n(e,t){return Element.prototype.matches?e.matches(t):Element.prototype.msMatchesSelector?e.msMatchesSelector(t):void 0}function o(e,t){if(e.closest)return e.closest(t);var o=e;do{if(n(o,t))return o;o=o.parentElement||o.parentNode}while(null!==o&&1===o.nodeType);return null}function i(e,t){for(var n=0;n<e.length;n++)t(e[n],n,e)}var r,s=".sharing-hidden .inner",a="data-sharing-more-button-id";function c(e){this.button=e,this.pane=o(e,"div").querySelector(s),this.openedBy=null,this.recentlyOpenedByHover=!1,c.instances.push(this),this.pane.setAttribute(a,c.instances.length-1),this.attachHandlers()}if(c.instances=[],c.hoverOpenDelay=200,c.recentOpenDelay=400,c.hoverCloseDelay=300,c.instantiateOrReuse=function(e){var t=o(e,"div").querySelector(s),n=t&&t.getAttribute(a),i=c.instances[n];return i||new c(e)},c.getButtonInstanceFromPane=function(e){var t=e&&e.getAttribute(a);return c.instances[t]},c.closeAll=function(){for(var e=0;e<c.instances.length;e++)c.instances[e].close()},c.prototype.open=function(){var e,t,n=[0,0];function o(e){var t=e.getBoundingClientRect();return[t.left+(window.scrollX||window.pageXOffset||0),t.top+(window.scrollY||window.pageYOffset||0)]}function i(e,t){return parseInt(getComputedStyle(e).getPropertyValue(t)||0)}for(e=o(this.button),t=this.button.offsetParent||document.documentElement;t&&(t===document.body||t===document.documentElement)&&"static"===getComputedStyle(t).getPropertyValue("position");)t=t.parentNode;t&&t!==this.button&&1===t.nodeType&&(n=[(n=o(t))[0]+i(t,"border-left-width"),n[1]+i(t,"border-top-width")]);var r,s=e[0]-n[0]-i(this.button,"margin-left"),a=e[1]-n[1]-i(this.button,"margin-top");this.pane.style.left=s+"px",this.pane.style.top=a+this.button.offsetHeight+3+"px",(r=this.pane)&&r.style.removeProperty("display")},c.prototype.close=function(){var e;(e=this.pane)&&(e.style.display="none"),this.openedBy=null},c.prototype.toggle=function(){var e;(e=this.pane)&&"none"!==e.style.display?this.close():this.open()}
1385,c.prototype.nonHoverOpen=function(){clearTimeout(this.openTimer),clearTimeout(this.closeTimer),this.recentlyOpenedByHover?(this.recentlyOpenedByHover=!1,clearTimeout(this.hoverOpenTimer),this.open()):this.toggle()},c.prototype.resetCloseTimer=function(){clearTimeout(this.closeTimer),this.closeTimer=setTimeout(this.close.bind(this),c.hoverCloseDelay)},c.prototype.attachHandlers=function(){this.buttonClick=function(e){e.preventDefault(),e.stopPropagation(),this.openedBy="click",this.nonHoverOpen()}.bind(this),this.buttonKeydown=function(e){13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),e.stopPropagation(),this.openedBy="keydown",this.nonHoverOpen())}.bind(this),this.buttonEnter=function(){this.openedBy||(this.openTimer=setTimeout(function(){this.open(),this.openedBy="hover",this.recentlyOpenedByHover=!0,this.hoverOpenTimer=setTimeout(function(){this.recentlyOpenedByHover=!1}.bind(this),c.recentOpenDelay)}.bind(this),c.hoverOpenDelay)),clearTimeout(this.closeTimer)}.bind(this),this.buttonLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer(),clearTimeout(this.openTimer)}.bind(this),this.paneEnter=function(){clearTimeout(this.closeTimer)}.bind(this),this.paneLeave=function(){"hover"===this.openedBy&&this.resetCloseTimer()}.bind(this),this.documentClick=function(){this.close()}.bind(this),this.button.addEventListener("click",this.buttonClick),this.button.addEventListener("keydown",this.buttonKeydown),document.addEventListener("click",this.documentClick),void 0===document.ontouchstart&&(this.button.addEventListener("mouseenter",this.buttonEnter),this.button.addEventListener("mouseleave",this.buttonLeave),this.pane.addEventListener("mouseenter",this.paneEnter),this.pane.addEventListener("mouseleave",this.paneLeave))},window.sharing_js_options&&window.sharing_js_options.counts){var u={done_urls:[],get_counts:function(){var e,n,o,i,r;if("undefined"!=typeof WPCOM_sharing_counts)for(e in WPCOM_sharing_counts)if(o=WPCOM_sharing_counts[e],void 0===u.done_urls[o]){for(i in n={pinterest:[window.location.protocol+"//api.pinterest.com/v1/urls/count.json?callback=WPCOMSharing.update_pinterest_count&url="+encodeURIComponent(e)]})if(document.querySelector("a[data-shared=sharing-"+i+"-"+o+"]")){for(;r=n[i].pop();)t(r);window.sharing_js_options.is_stats_active&&u.bump_sharing_count_stat(i)}u.done_urls[o]=!0}},update_pinterest_count:function(e){void 0!==e.count&&1*e.count>0&&u.inject_share_count("sharing-pinterest-"+WPCOM_sharing_counts[e.url],e.count)},inject_share_count:function(e,t){i(document.querySelectorAll("a[data-shared="+e+"] > span"),function(e){var n,o=e.querySelector(".share-count");(n=o)&&n.parentNode&&n.parentNode.removeChild(n);var i=document.createElement("span");i.className="share-count",i.textContent=u.format_count(t),e.appendChild(i)})},format_count:function(e){return e<1e3?e:e>=1e3&&e<1e4?String(e).substring(0,1)+"K+":"10K+"},bump_sharing_count_stat:function(e){(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv&x_sharing-count-request="+e+"&r="+Math.random()}};window.WPCOMSharing=u}function d(e,t){e.setAttribute("jetpack-share-click-count",t)}function l(e){var t=e.getAttribute("jetpack-share-click-count");return null===t?0:parseInt(t,10)}function h(e,t){var n,o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.setRequestHeader("x-requested-with","XMLHttpRequest"),o.send((n=t,(encodeURIComponent("email-share-nonce")+"="+encodeURIComponent(n)).replace(/%20/g,"+")))}function p(){m()}function m(){window.WPCOMSharing&&window.WPCOMSharing.get_counts(),i(document.querySelectorAll(".sharedaddy a"),function(e){var t=e.getAttribute("href");t&&-1!==t.indexOf("share=")&&-1===t.indexOf("&nb=1")&&e.setAttribute("href",t+"&nb=1")}),i(document.querySelectorAll(".sharedaddy a.sharing-anchor"),function(e){c.instantiateOrReuse(e)}),void 0!==document.ontouchstart&&document.body.classList.add("jp-sharing-input-touch"),i(document.querySelectorAll(".sharedaddy ul"),function(e){"true"!==e.getAttribute("data-sharing-events-added")&&(e.setAttribute("data-sharing-events-added","true"),i(e.querySelectorAll("a.share-print"),function(e){e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation();var n=e.getAttribute("href")||"",i=function(){if(-1===n.indexOf("#print")){var e=(new Date).getTime();t=e,o=n,(i=document.createElement("iframe")).setAttribute("style","position:fixed; top:100; left:100; height:1px; width:1px; border:none;"),i.setAttribute("id","printFrame-"+t),i.setAttribute("name",i.getAttribute("id")),i.setAttribute("src",o),i.setAttribute("onload",'frames["printFrame-'+t+'"].focus();frames["printFrame-'+t+'"].print();'),document.body.appendChild(i)}else window.print();var t,o,i}
1385,r=o(e,s);if(r){var a=c.getButtonInstanceFromPane(r);a&&(a.close(),i())}else i()})}),i(e.querySelectorAll("a.share-press-this"),function(e){var t="wp-press-this-"+Math.random().toString(36).slice(2);e.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation();var o="";if(window.getSelection?o=window.getSelection():document.getSelection?o=document.getSelection():document.selection&&(o=document.selection.createRange().text),o){var i=e.getAttribute("href");e.setAttribute("href",i+"&sel="+encodeURI(o))}window.open(e.getAttribute("href"),t,"toolbar=0,resizable=1,scrollbars=1,status=1,width=720,height=570")||(document.location.href=e.getAttribute("href"))})}),i(e.querySelectorAll("a.share-email"),function(t){d(t,0);var n,o,r=t.getAttribute("data-email-share-nonce"),s=t.getAttribute("data-email-share-track-url");r&&s&&(n=s,o=window.location.protocol+"//"+window.location.hostname+"/",0===String(n).indexOf(o))&&t.addEventListener("click",function(){var n;d(n=t,l(n)+1),l(t)>2&&function(e,t){var n=t.parentElement;if(n.classList.contains("sd-content")){i(n.querySelectorAll(".share-email-error"),function(e){e.parentElement.removeChild(e)});var o=document.createElement("div");o.className="share-email-error";var r=document.createElement("h6");r.className="share-email-error-title",r.innerText=e.getAttribute("data-email-share-error-title"),o.appendChild(r);var s=document.createElement("p");s.className="share-email-error-text",s.innerText=e.getAttribute("data-email-share-error-text"),o.appendChild(s),n.appendChild(o)}}(t,e),h(s,r)})}))}),i(document.querySelectorAll("li.share-email, li.share-custom a.sharing-anchor"),function(e){e.classList.add("share-service-visible")})}"loading"!==document.readyState?p():document.addEventListener("DOMContentLoaded",p),document.body.addEventListener("is.post-load",m);var f={};!0!==window.WPCOM_sharing_popups_bound&&(document.body.addEventListener("click",function(e){var t=e.target;if(t&&1===t.nodeType){var n=function(e){if("A"===e.nodeName)return e;var t=e.parentNode;return t&&"A"===t.nodeName?t:null}(t);if(n){var o=function(e){var t=window.WPCOM_sharing_popups;if(!t)return null;for(var n="share-",o=(e.getAttribute("class")||"").split(/\s+/),i=0;i<o.length;i++)if(0===o[i].indexOf(n)){var r=o[i].slice(6);if("string"==typeof t[r])return r}return null}(n);o&&(e.preventDefault(),r&&r.close(),r=window.open(n.getAttribute("href"),function(e){return"string"!=typeof f[e]&&(f[e]="wpcom"+e+"-"+Math.random().toString(36).slice(2)),f[e]}(o),window.WPCOM_sharing_popups[o]))}}}),window.WPCOM_sharing_popups_bound=!0)}();;

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.