PageSourceSearch

https://brownsboard.com/assets/nodebb.min.js?v=83973beb2ae

js brownsboard.com collected 2026-10-09 22:40:16 UTC 718,957 bytes, 139 lines download raw bytes

1(()=>{var _o={1692(xt,P,b){var T,x,_;(function(W){"use strict";var z={tagClass:function(F){return"label label-info"},focusClass:"focus",itemValue:function(F){return F&&F.toString()},itemText:function(F){return this.itemValue(F)},itemTitle:function(F){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(F,K){K.hide().fadeIn()},trimValue:!1,allowDuplicates:!1,triggerChange:!0};function st(F,K){this.isInit=!0,this.itemsArray=[],this.$element=W(F),this.$element.hide(),this.isSelect=F.tagName==="SELECT",this.multiple=this.isSelect&&F.hasAttribute("multiple"),this.objectItems=K&&K.itemValue,this.placeholderText=F.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=W('<div class="bootstrap-tagsinput"></div>'),this.$input=W('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(K),this.isInit=!1}st.prototype={constructor:st,add:function(F,K,et){var ct=this;if(!(ct.options.maxTags&&ct.itemsArray.length>=ct.options.maxTags)&&!(F!==!1&&!F)){if(typeof F=="string"&&ct.options.trimValue&&(F=W.trim(F)),typeof F=="object"&&!ct.objectItems)throw"Can't add objects when itemValue option is not set";if(!F.toString().match(/^\s*$/)){if(ct.isSelect&&!ct.multiple&&ct.itemsArray.length>0&&ct.remove(ct.itemsArray[0]),typeof F=="string"&&this.$element[0].tagName==="INPUT"){var Tt=ct.options.delimiterRegex?ct.options.delimiterRegex:ct.options.delimiter,_t=F.split(Tt);if(_t.length>1){for(var kt=0;kt<_t.length;kt++)this.add(_t[kt],!0);K||ct.pushVal(ct.options.triggerChange);return}}var bt=ct.options.itemValue(F),yt=ct.options.itemText(F),Mt=ct.options.tagClass(F),Ht=ct.options.itemTitle(F),Kt=W.grep(ct.itemsArray,function(ce){return ct.options.itemValue(ce)===bt})[0];if(Kt&&!ct.options.allowDuplicates){if(ct.options.onTagExists){var ne=W(".tag",ct.$container).filter(function(){return W(this).data("item")===Kt});ct.options.onTagExists(F,ne)}return}if(!(ct.items().toString().length+F.length+1>ct.options.maxInputLength)){var re=W.Event("beforeItemAdd",{item:F,cancel:!1,options:et});if(ct.$element.trigger(re),!re.cancel){ct.itemsArray.push(F);var de=W('<span class="tag '+q(Mt)+(Ht!==null?'" title="'+Ht:"")+'">'+q(yt)+'<span data-role="remove"></span></span>');if(de.data("item",F),ct.findInputWrapper().before(de),de.after(" "),ct.isSelect){var qt=W('option[value="'+encodeURIComponent(bt)+'"]',ct.$element).length||W('option[value="'+q(bt)+'"]',ct.$element).length;if(!qt){var Vt=W("<option selected>"+q(yt)+"</option>");Vt.data("item",F),Vt.attr("value",bt),ct.$element.append(Vt)}}K||ct.pushVal(ct.options.triggerChange),(ct.options.maxTags===ct.itemsArray.length||ct.items().toString().length===ct.options.maxInputLength)&&ct.$container.addClass("bootstrap-tagsinput-max"),W(".typeahead, .twitter-typeahead",ct.$container).length&&ct.$input.typeahead("val",""),this.isInit?ct.$element.trigger(W.Event("itemAddedOnInit",{item:F,options:et})):ct.$element.trigger(W.Event("itemAdded",{item:F,options:et}))}}}}},remove:function(F,K,et){var ct=this;if(ct.objectItems&&(typeof F=="object"?F=W.grep(ct.itemsArray,function(_t){return ct.options.itemValue(_t)==ct.options.itemValue(F)}):F=W.grep(ct.itemsArray,function(_t){return ct.options.itemValue(_t)==F}),F=F[F.length-1]),F){var Tt=W.Event("beforeItemRemove",{item:F,cancel:!1,options:et});if(ct.$element.trigger(Tt),Tt.cancel)return;W(".tag",ct.$container).filter(function(){return W(this).data("item")===F}).remove(),W("option",ct.$element).filter(function(){return W(this).data("item")===F}).remove(),W.inArray(F,ct.itemsArray)!==-1&&ct.itemsArray.splice(W.inArray(F,ct.itemsArray),1)}K||ct.pushVal(ct.options.triggerChange),ct.options.maxTags>ct.itemsArray.length&&ct.$container.removeClass("bootstrap-tagsinput-max"),ct.$element.trigger(W.Event("itemRemoved",{item:F,options:et}))},removeAll:function(){var F=this;for(W(".tag",F.$container).remove(),W("option",F.$element).remove();F.itemsArray.length>0;)F.itemsArray.pop();F.pushVal(F.options.triggerChange)},refresh:function(){var F=this;W(".tag",F.$container).each(function(){var K=W(this),et=K.data("item"),ct=F.options.itemValue(et),Tt=F.options.itemText(et),_t=F.options.tagClass(et);if(K.attr("class",null),K.addClass("tag "+q(_t)),K.contents().filter(function(){return this.nodeType==3})[0].nodeValue=q(Tt),F.isSelect){var kt=W("option",F.$element).filter(function(){return W(this).data("item")===et});kt.attr("value",ct)}})},items:function(){return this.itemsArray},pushVal:function(){var F=this,K=W.map(F.items(),function(et){return F.options.itemValue(et).toString()});F.$element.val(K,!0),F.options.triggerChange&&F.$element.trigger("change")},build:function(F){var K=this;if(K.options=W.extend({},z,F),K.objectItems&&(K.options.freeInput=!1),dt(K.options,"itemValue"),dt(K.options,"itemText"),Z(K.options,"tagClass"),K.options.typeahead){var et=K.options.typeahead||{};Z(et,"source"),K.$input.typeahead(W.extend({},et,{source:function(kt,bt){function yt(Kt){for(var ne=[],re=0;re<Kt.length;re++){var de=K.options.itemText(Kt[re]);
1Mt[de]=Kt[re],ne.push(de)}bt(ne)}this.map={};var Mt=this.map,Ht=et.source(kt);W.isFunction(Ht.success)?Ht.success(yt):W.isFunction(Ht.then)?Ht.then(yt):W.when(Ht).then(yt)},updater:function(kt){return K.add(this.map[kt]),this.map[kt]},matcher:function(kt){return kt.toLowerCase().indexOf(this.query.trim().toLowerCase())!==-1},sorter:function(kt){return kt.sort()},highlighter:function(kt){var bt=new RegExp("("+this.query+")","gi");return kt.replace(bt,"<strong>$1</strong>")}}))}if(K.options.typeaheadjs){var ct=null,Tt={},_t=K.options.typeaheadjs;W.isArray(_t)?(ct=_t[0],Tt=_t[1]):Tt=_t,K.$input.typeahead(ct,Tt).on("typeahead:selected",W.proxy(function(kt,bt){Tt.valueKey?K.add(bt[Tt.valueKey]):K.add(bt),K.$input.typeahead("val","")},K))}K.$container.on("click",W.proxy(function(kt){K.$element.attr("disabled")||K.$input.removeAttr("disabled"),K.$input.focus()},K)),K.options.addOnBlur&&K.options.freeInput&&K.$input.on("focusout",W.proxy(function(kt){W(".typeahead, .twitter-typeahead",K.$container).length===0&&(K.add(K.$input.val()),K.$input.val(""))},K)),K.$container.on({focusin:function(){K.$container.addClass(K.options.focusClass)},focusout:function(){K.$container.removeClass(K.options.focusClass)}}),K.$container.on("keydown","input",W.proxy(function(kt){var bt=W(kt.target),yt=K.findInputWrapper();if(K.$element.attr("disabled")){K.$input.attr("disabled","disabled");return}switch(kt.which){case 8:if(J(bt[0])===0){var Mt=yt.prev();Mt.length&&K.remove(Mt.data("item"))}break;case 46:if(J(bt[0])===0){var Ht=yt.next();Ht.length&&K.remove(Ht.data("item"))}break;case 37:var Kt=yt.prev();bt.val().length===0&&Kt[0]&&(Kt.before(yt),bt.focus());break;case 39:var ne=yt.next();bt.val().length===0&&ne[0]&&(ne.after(yt),bt.focus());break;default:}var re=bt.val().length,de=Math.ceil(re/5),qt=re+de+1;bt.attr("size",Math.max(this.inputSize,bt.val().length))},K)),K.$container.on("keypress","input",W.proxy(function(kt){var bt=W(kt.target);if(K.$element.attr("disabled")){K.$input.attr("disabled","disabled");return}var yt=bt.val(),Mt=K.options.maxChars&&yt.length>=K.options.maxChars;K.options.freeInput&&(ut(kt,K.options.confirmKeys)||Mt)&&(yt.length!==0&&(K.add(Mt?yt.substr(0,K.options.maxChars):yt),bt.val("")),K.options.cancelConfirmKeysOnEmpty===!1&&kt.preventDefault());var Ht=bt.val().length,Kt=Math.ceil(Ht/5),ne=Ht+Kt+1;bt.attr("size",Math.max(this.inputSize,bt.val().length))},K)),K.$container.on("click","[data-role=remove]",W.proxy(function(kt){K.$element.attr("disabled")||K.remove(W(kt.target).closest(".tag").data("item"))},K)),K.options.itemValue===z.itemValue&&(K.$element[0].tagName==="INPUT"?K.add(K.$element.val()):W("option",K.$element).each(function(){K.add(W(this).attr("value"),!0)}))},destroy:function(){var F=this;F.$container.off("keypress","input"),F.$container.off("click","[role=remove]"),F.$container.remove(),F.$element.removeData("tagsinput"),F.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var F=this.$input[0],K=this.$container[0];F&&F.parentNode!==K;)F=F.parentNode;return W(F)}},W.fn.tagsinput=function(F,K,et){var ct=[];return this.each(function(){var Tt=W(this).data("tagsinput");if(!Tt)Tt=new st(this,F),W(this).data("tagsinput",Tt),ct.push(Tt),this.tagName==="SELECT"&&W("option",W(this)).attr("selected","selected"),W(this).val(W(this).val());else if(!F&&!K)ct.push(Tt);else if(Tt[F]!==void 0){if(Tt[F].length===3&&et!==void 0)var _t=Tt[F](K,null,et);else var _t=Tt[F](K);_t!==void 0&&ct.push(_t)}}),typeof F=="string"?ct.length>1?ct:ct[0]:ct},W.fn.tagsinput.Constructor=st;function dt(F,K){if(typeof F[K]!="function"){var et=F[K];F[K]=function(ct){return ct[et]}}}function Z(F,K){if(typeof F[K]!="function"){var et=F[K];F[K]=function(){return et}}}var k=W("<div />");function q(F){return F?k.text(F).html():""}function J(F){var K=0;if(document.selection){F.focus();var et=document.selection.createRange();et.moveStart("character",-F.value.length),K=et.text.length}else(F.selectionStart||F.selectionStart=="0")&&(K=F.selectionStart);return K}function ut(F,K){var et=!1;return W.each(K,function(ct,Tt){if(typeof Tt=="number"&&F.which===Tt)return et=!0,!1;if(F.which===Tt.which){var _t=!Tt.hasOwnProperty("altKey")||F.altKey===Tt.altKey,kt=!Tt.hasOwnProperty("shift
1Key")||F.shiftKey===Tt.shiftKey,bt=!Tt.hasOwnProperty("ctrlKey")||F.ctrlKey===Tt.ctrlKey;if(_t&&kt&&bt)return et=!0,!1}}),et}W(function(){W("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})})(window.jQuery),jQuery.fn.serializeObject=function(){for(var W={},z=this.serializeArray(),st=0,dt=z.length;st<dt;st++){var Z=z[st],k=Z.name,q=Z.value!=null?Z.value:"";W[k]!==void 0?(W[k].push||(W[k]=[W[k]]),W[k].push(q)):W[k]=q}return W},(function(W){xt.exports?xt.exports=W(b(4692)):W(window.jQuery)})(function(W){function z(F,K,et){var ct=et[F];return ct===void 0?et[F]=[K]:ct.push(K),et}function st(F,K){var et={},ct=F.map(function(){return this.elements?W.makeArray(this.elements):this}).filter(K||":input:not(:disabled)").get();return W.each(ct,function(Tt,_t){z(_t.name,_t,et)}),et}function dt(F){return(F.type||F.nodeName).toLowerCase()}function Z(F){var K={},et=/\+/g;return W.isPlainObject(F)?(W.extend(K,F),W.each(K,function(ct,Tt){W.isArray(Tt)||(K[ct]=[Tt])})):W.isArray(F)?W.each(F,function(ct,Tt){z(Tt.name,Tt.value,K)}):typeof F=="string"&&W.each(F.split("&"),function(ct,Tt){var _t=Tt.split("="),kt=decodeURIComponent(_t[0].replace(et,"%20")),bt=decodeURIComponent(_t[1].replace(et,"%20"));z(kt,bt,K)}),K}var k={checked:["radio","checkbox"],selected:["option","select-one","select-multiple"],value:["button","color","date","datetime","datetime-local","email","hidden","month","number","password","range","reset","search","submit","tel","text","textarea","time","url","week"]};function q(F){var K=dt(F),et=void 0;return W.each(k,function(ct,Tt){if(W.inArray(K,Tt)>-1)return et=ct,!1}),et}function J(F,K,et,ct,Tt){var _t=q(F);if(_t=="value"&&K==ct)F.value=et,Tt.call(F,et);else if(_t=="checked"||_t=="selected"){var kt=[];F.options?W.each(F.options,function(bt,yt){kt.push(yt)}):kt.push(F),F.multiple&&ct==0&&(F.selectedIndex=-1),W.each(kt,function(bt,yt){yt.value==et&&(yt[_t]=!0,Tt.call(yt,et))})}}var ut={change:W.noop,complete:W.noop};W.fn.deserialize=function(F,K){W.isFunction(K)&&(K={complete:K}),K=W.extend(ut,K||{}),F=Z(F);var et=st(this,K.filter);return W.each(F,function(ct,Tt){W.each(et[ct],function(_t,kt){W.each(Tt,function(bt,yt){J(kt,_t,yt,bt,K.change)})})}),K.complete.call(this),this}}),$(document).ready(function(){const W='[component="post/reaction/add"], [component="message/reaction/add"]';let z=null,st=null;function dt(){const{template:K,privileges:et}=ajaxify.data;return!K.topic||!!(et&&et["posts:upvote"])}Promise.resolve().then(function(){var K=[b(1749)];(function(et){et.on("action:ajaxify.end",function(){$('[component="topic"]').toggleClass("tbb-reactions-locked",!dt())})}).apply(null,K)}).catch(b.oe);async function Z(){return z||(z=await $.getJSON(`${config.asset_base_url}/plugins/nodebb-plugin-emoji/emoji/table.json?${config["cache-buster"]}`)),z}function k(){st&&(st.remove(),st=null)}function q(K){const et=K.getAttribute("data-pid");return et?{id:et,key:"pid",add:"addPostReaction",remove:"removePostReaction",pill:`[component="post/reaction"][data-pid="${et}"]`}:{id:K.getAttribute("data-mid"),key:"mid",add:"addMessageReaction",remove:"removeMessageReaction",pill:`[component="message/reaction"][data-mid="${K.getAttribute("data-mid")}"]`}}function J(K,et){const ct=et.getBoundingClientRect(),Tt=K.offsetWidth,_t=K.offsetHeight,kt=Math.min(Math.max(8,ct.left+ct.width/2-Tt/2),window.innerWidth-Tt-8),bt=ct.top-_t-8;K.style.left=`${kt}px`,K.style.top=`${bt>8?bt:ct.bottom+8}px`}function ut(K,et,ct,Tt,_t){const kt=document.createElement("button");return kt.type="button",kt.className=`tbb-reaction-palette__item${Tt?" is-reacted":""}`,kt.setAttribute("role","menuitem"),kt.setAttribute("title",`:${et}:`),kt.setAttribute("aria-label",et),kt.innerHTML=K,kt.addEventListener("click",()=>{k(),socket.emit(`plugins.reactions.${Tt?ct.remove:ct.add}`,{[ct.key]:ct.id,reaction:et},bt=>{bt&&_t.error(bt.message)})}),kt}async function F(K,et){k();const[ct,Tt,_t]=await Promise.all([Z(),app.require("emoji"),app.require("alerts")]),kt=q(K),bt=document.createElement("div");bt.className="tbb-reaction-palette",bt.setAttribute("role","menu");const yt=new Map;(config.tbbReactions||[]).filter(Mt=>
1ct[Mt]).forEach(Mt=>{const{pack:Ht}=ct[Mt];if(!yt.has(Ht)){const ne=document.createElement("div");ne.className="tbb-reaction-palette__group",yt.set(Ht,ne),bt.appendChild(ne)}const Kt=!!document.querySelector(`${kt.pill}[data-reaction="${CSS.escape(Mt)}"].reacted`);yt.get(Ht).appendChild(ut(Tt.buildEmoji({...ct[Mt],name:Mt}),Mt,kt,Kt,_t))}),document.body.appendChild(bt),J(bt,K),st=bt,et&&bt.querySelector("button")?.focus()}document.addEventListener("click",K=>{const et=K.target instanceof Element&&K.target.closest(W);if(et&&(config.tbbReactions||[]).length){if(K.preventDefault(),K.stopPropagation(),st){k();return}F(et,K.detail===0);return}st&&!(K.target instanceof Element&&K.target.closest(".tbb-reaction-palette"))&&k()},!0),document.addEventListener("keydown",K=>{K.key==="Escape"&&k()}),window.addEventListener("scroll",k,{passive:!0}),$(window).on("action:ajaxify.start",k)}),$(document).ready(function(){const W="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";let z=null;function st(){return window.turnstile?Promise.resolve(window.turnstile):(z||(z=new Promise((Z,k)=>{const q=document.createElement("script");q.src=W,q.async=!0,q.onload=()=>Z(window.turnstile),q.onerror=k,document.head.appendChild(q)})),z)}async function dt(){const Z=document.querySelector(".tbb-turnstile");if(!Z||Z.dataset.rendered)return;Z.dataset.rendered="1";const k=await st(),q=k.render(Z,{sitekey:Z.dataset.sitekey,theme:"auto"}),J=document.getElementById("register-error-notify");J&&new MutationObserver(()=>{J.classList.contains("hidden")||k.reset(q)}).observe(J,{attributes:!0,attributeFilter:["class"]})}Promise.resolve().then(function(){var Z=[b(1749)];(function(k){k.on("action:ajaxify.end",dt)}).apply(null,Z)}).catch(b.oe),dt()}),$(document).ready(function(){function W(dt){const Z=document.createElement("img");return Z.className="tbb-badge",Z.src=dt.image,Z.alt=dt.name,Z.title=dt.name,Z.loading="lazy",Z}function z(dt){const Z=document.createElement("span");return Z.className="tbb-profile-badges__points badge rounded-pill",Z.textContent=`${dt.toLocaleString()} points`,Z}function st(){const dt=window.ajaxify&&ajaxify.data,Z=document.querySelector('[component="user/badges"]');if(!Z||!dt||!Array.isArray(dt.tbbBadges)||!dt.tbbBadges.length&&!dt.tbbPoints)return;const k=document.createElement("a");k.className="tbb-profile-badges d-flex flex-wrap align-items-center gap-1 text-decoration-none",k.href=`${config.relative_path}/user/${dt.userslug}/badges`,k.title="Badges",k.append(...dt.tbbBadges.map(W)),dt.tbbPoints&&k.append(z(dt.tbbPoints)),Z.replaceChildren(k)}Promise.resolve().then(function(){var dt=[b(1749)];(function(Z){Z.on("action:ajaxify.end",st)}).apply(null,dt)}).catch(b.oe),st()}),$("document").ready(function(){Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468),b.e(6940)]).then(function(){var W=[b(1431),b(6940)];(function(z,st){z.addButton("fa fa-eye-slash",function(dt,Z,k){const J="(Spoiler) ";if(Z===k){const ut="Text";st.insertIntoTextarea(dt,">! "+J+ut),st.updateTextareaSelection(dt,Z+(3+J.length),Z+(3+J.length+ut.length))}else st.wrapSelectionInTextareaWith(dt,">! "+J,""),st.updateTextareaSelection(dt,Z+(3+J.length),k+(3+J.length))})}).apply(null,W)}).catch(b.oe),$("body").on("click",".spoiler > button",function(){const z=$(this).closest(".spoiler");z.hasClass("border-warning")?(z.removeClass("border-warning").addClass("border-success"),z.find("p.d-none").removeClass("d-none").addClass("d-block")):(z.removeClass("border-success").addClass("border-warning"),z.find("p.d-block").removeClass("d-block").addClass("d-none"))})});const a=60*1e3;let g=null;function v(W){return W&&(W.categories||W.category)}function c(W){$(".tbb-gd-board-slot").remove();const z=W.find(dt=>String(dt.cid)===String(ajaxify.data.cid));if(!z)return;const st=$('<div class="tbb-gd-board-slot"></div>').html(z.html);st.find(`.tbb-gd-board__link a[href="${z.link}"]`).filter(()=>z.link===`/category/${ajaxify.data.cid}`).closest("p").remove(),st.prependTo($("div.category").first())}function d(W){$(".tbb-gd-board-line").remove(),W.forEach(z=>{const st=$('<div class="tbb-gd-board-line"></div>').toggleClass("tbb-gd-board-line--live",z.live).text(z.line);$(`[component="categories/category"][data-cid="${z.cid}"] .tbb-forum__main`).first().append(st)}),$("[data-gameday-scores]").html(W.map(z=>z.compact).join(""))}async function s(){clearTimeout(g);const{template:W}=ajaxify.data;if(!v(W))return;let z=[];try{z=(await(await fetch(`${config.relative_path}/api/v3/plugins/gameday/boards`,{credentials:"same-origin"})).json()).response.boards||[]}catch{return}ajaxify.data.template===W&&(W.category?c(z):d(z),z.some(st=>st.live)&&(g=setTimeout(s,a)))}$(window).on("action:ajaxify.end",s);const n="Your take, optional",i=800,o=/https?:\/\/[^\s<>"']+/i,y=new Map;function f(W){for(const z of W){const st=z.attributes&&z.attributes.link;if(st&&/^https?:\/\//i.test(st))return st;const dt=typeof z.insert=="string"&&z.insert.match(o);if(dt)return dt[0].replace(/[)\].,;:!?'"]+$/,"")}return""}function e(W,z){if(W.empty().removeAttr("hidden"),z.blocked){W.append($('<div class="tbb-news-preview__existing">').text(`Posts and videos from ${z.blocked} are not news articles. Link the article itself.`));return}if(z.existing){const st=$("<a>").attr("href",`${config.relative_path}/topic/${z.existing.slug}`).text(z.existing.title);W.append($('<div class="tbb-news-preview__existing">').text("Already posted: ").append(st));return}z.image&&W.append($('<img class="tbb-news-preview__image" alt="" referrerpolicy="no-referrer">').attr("src",z.image)),W.append($('<div class="tbb-news-preview__body">').append($('<div class="tbb-news-preview__site">').text(z.site),z.title?$('<div class="tbb-news-preview__title">').text(z.title):$('<div class="tbb-news-preview__existing">').text(`${z.site} would not let us read the headline. Type it in the title.`)))}function u(W,z){let st=[];try{st=JSON.parse(W).ops||[]}catch{st=W?[{insert:`${W}
2`}]:[]}return f(st)===z?W:JSON.stringify({ops:[{insert:z,attributes:{link:z}},{insert:`
3`},...st]})}function h(W,z,st,dt,Z){const k=z.find("input.title"),q=z.find(".title-container").first(),J=$('<div class="tbb-news-link" hidden><i class="fa fa-link"></i><input type="url" class="form-control shadow-none" inputmode="url" autocomplete="off" placeholder="Paste the article link"></div>
3').insertBefore(q),ut=J.find("input"),F=$('<div class="tbb-news-preview" hidden></div>').insertAfter(q),K=$(`<div class="tbb-news-hint" hidden>Keep the title close to the article's headline. <button type="button" class="btn btn-link btn-sm p-0 align-baseline">Use the headline</button></div>`).insertAfter(F),et={body:W.root.dataset.placeholder||"",title:k.attr("placeholder")||""};let ct="",Tt="",_t=null,kt="";const bt=()=>!!(config.tbbNews&&config.tbbNews.cid)&&String(st.cid)===String(config.tbbNews.cid),yt=()=>ut.val().trim()||f(W.getContents().ops),Mt=()=>{const qt=!!_t&&!!k.val()&&!Z.matchesHeadline(k.val(),_t.headlines);K.attr("hidden",!qt)},Ht=()=>{const qt=bt();J.attr("hidden",!qt),W.root.dataset.placeholder=qt?n:et.body,k.attr("placeholder",qt?"The headline fills in from the link":et.title),qt||(F.attr("hidden",!0),K.attr("hidden",!0))},Kt=utils.debounce(async()=>{Ht();const qt=bt()?yt():"";if(qt===ct)return;if(ct=qt,_t=null,kt="",Mt(),!/^https?:\/\/\S+\.\S+/i.test(qt)){F.attr("hidden",!0).empty();return}F.removeAttr("hidden").empty().append('<div class="tbb-news-preview__loading"><i class="fa fa-circle-notch fa-spin"></i> Reading the article\u2026</div>');const Vt=await dt.get("/plugins/tbb-news/article",{url:qt}).catch(()=>null);if(qt===ct){if(!Vt){F.attr("hidden",!0).empty();return}e(F,Vt),Vt.blocked?kt="Link the news article itself, not a social post or video.":Vt.existing&&(kt=`That story is already up as "${Vt.existing.title}". Join that topic instead.`),_t=!Vt.blocked&&!Vt.existing&&Vt.headlines&&Vt.headlines.length?Vt:null,_t&&(!k.val()||k.val()===Tt)&&(Tt=Vt.title,k.val(Vt.title).trigger("input")),!Vt.blocked&&!Vt.existing&&!Vt.title&&!k.val()&&k.trigger("focus"),Mt()}},300),ne=Date.now()+i,re=qt=>{if(Date.now()>ne){z.off("focusin",re);return}bt()&&qt.target!==ut[0]&&!ut.val()&&ut.trigger("focus")};z.on("focusin",re);const de=()=>_t?(Tt=_t.title,k.val(_t.title).trigger("input"),!0):!1;k.on("input",()=>{const qt=k.val().trim();bt()&&/^https?:\/\/\S+$/i.test(qt)&&!ut.val()&&(k.val(""),ut.val(qt),Kt()),Mt()}),ut.on("input paste",Kt),K.on("click","button",de),W.on("text-change",Kt),$(window).on("action:composer.changeCategory",(qt,Vt)=>{Vt.postData===st&&Kt()}),y.set(String(z.attr("data-uuid")),{isNews:bt,currentLink:yt,linkEl:ut,titleEl:k,fillTitle:de,problem:()=>kt}),A(),Ht(),bt()&&setTimeout(()=>ut.trigger("focus"),0),Kt()}function m(W,z){const st=y.get(String(z.post_uuid));if(!st||!st.isNews())return;const dt=st.currentLink();if(!dt&&!app.user.isAdmin&&!app.user.isGlobalMod){z.error="Paste the article link first.",st.linkEl.trigger("focus");return}if(st.problem()){z.error=st.problem();return}if(!st.titleEl.val().trim()&&!st.fillTitle()){z.error="Type the headline in the title, or wait a second for it to load.",st.titleEl.trigger("focus");return}z.titleLen=st.titleEl.val().length,z.bodyLen=Math.max(z.bodyLen,dt.length)}let w=!1;function A(){w||(w=!0,$(window).on("action:composer.check",m))}Promise.resolve().then(function(){var W=[b(1749)];(z=>{z.on("filter:composer.submit",st=>{const dt=y.get(String(st.composerEl.attr("data-uuid")));if(!dt||!dt.isNews()||st.action!=="topics.post")return st;const Z=dt.currentLink();return Z&&(st.composerData.content=u(st.composerData.content,Z)),st}),z.on("action:composer.discard",st=>{y.delete(String(st.post_uuid))})}).apply(null,W)}).catch(b.oe),$(window).on("action:quill.load",(W,z)=>{const st=$(z.container).closest(".composer"),dt=st.attr("data-uuid");Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468),b.e(1444)]).then(function(){var Z=[b(1431),b(9897),b(1444)];((k,q,J)=>{const ut=k.posts[dt];!ut||ut.tid||ut.pid||h(z,st,ut,q,J)}).apply(null,Z)}).catch(b.oe)});const S={x:"https://platform.twitter.com/widgets.js",bluesky:"https://embed.bsky.app/static/embed.js"},I={};function R(W){return I[W]||(I[W]=new Promise((z,st)=>{const dt=document.createElement("script");dt.src=S[W],dt.async=!0,dt.charset="utf-8",dt.onload=z,dt.onerror=st,document.head.appendChild(dt)})),I[W]}function r(){const[W,z,st]=(getComputedStyle(document.body).backgroundColor.match(/\d+/g)||[255,255,255]).map(Number);return .299*W+.587*z+.114*st<128}async function D(W){const z=W.querySelectorAll(".tbb-social-embed:not([data-rendered])");if(!z.length)return;const st=r()?"dark":"light",dt={x:[],bluesky:[]};z.forEach(Z=>{Z.setAttribute("data-rendered","");const k=Z.querySelector("blockquote");!k||!dt[Z.dataset.provider]||(k.setAttribute(Z.dataset.provider==="x"?"data-theme":"data-bluesky-embed-color-mode",st),dt[Z.dataset.provider].push(Z))}),dt.x.length&&R("x").then(()=>dt.x.forEach(Z=>window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(Z))).catch(()=>{}),dt.bluesky.length&&R("bluesky").then(()=>dt.bluesky.forEach(Z=>
3window.bluesky&&window.bluesky.scan(Z))).catch(()=>{})}$(window).on("action:ajaxify.end action:posts.loaded action:posts.edited",()=>D(document)),$(document).ready(function(){const W="tbb:announcements:dismissed";function z(){try{return JSON.parse(localStorage.getItem(W))||[]}catch{return[]}}function st(q){try{localStorage.setItem(W,JSON.stringify([...new Set([...z(),q])].slice(-50)))}catch{}}function dt(q){const J=q.closest(".tbb-announcements");q.remove(),J&&!J.querySelector(".tbb-announcement")&&J.remove()}function Z(){if(app.user.uid)return;const q=new Set(z());document.querySelectorAll(".tbb-announcement[data-tid]").forEach(J=>{q.has(J.getAttribute("data-tid"))&&dt(J)})}document.addEventListener("click",q=>{const J=q.target instanceof Element&&q.target.closest(".tbb-announcement__close");if(!J)return;const ut=J.closest(".tbb-announcement"),F=ut.getAttribute("data-tid");if(dt(ut),!app.user.uid){st(F);return}b.e(4271).then(function(){var K=[b(9897),b(9930)];((et,ct)=>{et.put(`/plugins/tbb-announcements/${F}/dismissed`).catch(Tt=>ct.error(Tt))}).apply(null,K)}).catch(b.oe)});function k(q){b.e(4271).then(function(){var J=[b(3530),b(9897),b(9930)];((ut,F,K)=>{ut.prompt({title:"Banner text",message:'<p class="mb-0">A line under the title in the main page banner. Leave it empty to show the title alone.</p>',value:ajaxify.data.tbbBannerText||"",maxlength:160,callback:et=>{et!==null&&F.put(`/plugins/tbb-announcements/${q}/banner-text`,{text:et}).then(ct=>{ajaxify.data.tbbBannerText=ct.text,K.success(ct.text?"Banner text saved.":"Banner text cleared.")}).catch(ct=>K.error(ct))}})}).apply(null,J)}).catch(b.oe)}document.addEventListener("click",q=>{!(q.target instanceof Element&&q.target.closest(".tbb-banner-text"))||!ajaxify.data.tid||(q.preventDefault(),k(ajaxify.data.tid))}),Z(),$(window).on("action:ajaxify.end",Z)}),(function(){const W="partials/pickem/card",k=new Map,q=new Map,J=new Map;let ut=null;const F=jt=>jt.getAttribute("data-event"),K=jt=>jt>0?`+${jt}`:`\u2212${Math.abs(jt)}`,et=jt=>Number(jt.getAttribute("data-max"));function ct(jt){const Ft=jt.value.trim();return Ft===""?null:Number(Ft)}function Tt(jt){const Ft=jt.querySelector('input[name="confidence"]:checked');return{away:ct(jt.elements.away),home:ct(jt.elements.home),confidence:Ft?Number(Ft.value):null}}const _t=(jt,Ft)=>jt.querySelector(`.tbb-pickem__team[data-side="${Ft}"]`);function kt(jt,Ft){if(Ft.away===null||Ft.home===null)return{ok:!1,text:"Set both scores to pick a winner."};if(Ft.away===1||Ft.home===1)return{ok:!1,text:"Nobody finishes with 1 point."};if(Ft.away>et(jt)||Ft.home>et(jt))return{ok:!1,text:`${et(jt)} is the max. The NFL record is 73.`};if(Ft.away===Ft.home)return{ok:!1,text:"No ties. Somebody has to win."};const Jt=Ft.home>Ft.away?"home":"away";return{ok:!0,text:`${_t(jt,Jt).getAttribute("data-name")} by ${Math.abs(Ft.home-Ft.away)}`,side:Jt}}function bt(jt){const Ft=jt.querySelector(".tbb-pickem__form");if(!Ft)return;const Jt=Tt(Ft),_e=kt(Ft,Jt),Oe=Ft.querySelector("[data-winner]");Oe.textContent=_e.text,Oe.classList.toggle("tbb-pickem__winner--set",_e.ok),["away","home"].forEach(Le=>{_t(Ft,Le).classList.toggle("tbb-pickem__team--winner",_e.ok&&_e.side===Le)});const Me=Ft.querySelector("[data-stakes]");Me.textContent=Jt.confidence?`Right ${K(Jt.confidence)}, wrong ${K(-Jt.confidence)}`:"";const bn=`${Jt.away}-${Jt.home}-${Jt.confidence}`,Je=Ft.getAttribute("data-mine")!==bn;Ft.querySelector("[data-submit]").disabled=!_e.ok||!Jt.confidence||!Je}function yt(jt){const Ft=jt.querySelector(".tbb-pickem__form");Ft&&q.set(F(jt),{away:Ft.elements.away.value,home:Ft.elements.home.value,confidence:(Ft.querySelector('input[name="confidence"]:checked')||{}).value})}function Mt(jt){const Ft=jt.querySelector(".tbb-pickem__form"),Jt=q.get(F(jt));if(!Ft||!Jt)return;Ft.elements.away.value=Jt.away,Ft.elements.home.value=Jt.home;const _e=Jt.confidence&&Ft.querySelector(`input[name="confidence"][value="${Jt.confidence}"]`);_e&&(_e.checked=!0)}function Ht(jt){const Ft=F(jt);clearTimeout(J.get(Ft));const Jt=Number(jt.getAttribute("data-start"))-Date.now()+5e3;jt.getAttribute("data-status")!=="open"||Jt>864e5||J.set(Ft,setTimeout(()=>de(Ft),Math.max(Jt,0)))}function Kt(jt){k.set(F(jt),jt),Mt(jt),bt(jt),Ht(jt)}async function ne(jt,Ft){const Jt=k.get(jt);Jt&&yt(Jt);const[_e]=await app.parseAndTranslate(W,{...Ft,base:config.relative_path}),Oe=Jt&&Jt.isConnected?Jt:document.querySelector(`.tbb-pickem[data-event="${jt}"][data-ready="pending"]`);Oe&&(Oe.replaceWith(_e),Kt(_e))}async function re(jt){return(await app.require("api")).get(`/plugins/pickem/games/${jt}`,{})}async function de(jt){let Ft;try{Ft=await re(jt)}catch{return}const Jt=k.get(jt);if(!Jt||!Jt.isConnected||Jt.getAttribute("data-status")!==Ft.status){await ne(jt,Ft);return}const Oe=Jt.querySelector(".tbb-pickem__tag");Oe&&Ft.open&&(Oe.textContent=Ft.countText)}const qt=jt=>!!jt.closest('[component="post"][data-index="0"] [component="post/content"]');function Vt(){document.querySelectorAll(".tbb-pickem:not([data-ready])").forEach(jt=>{if(!qt(jt))return;const Ft=F(jt),Jt=k.get(Ft);if(Jt&&!Jt.isConnected){jt.replaceWith(Jt),de(Ft);return}jt.setAttribute("data-ready","pending"),de(Ft)}),document.querySelectorAll('.tbb-pickem[data-ready="1"]').forEach(jt=>{k.get(F(jt))!==jt&&Kt(jt)})}new MutationObserver(Vt).observe(document.documentElement,{childList:!0,subtree:!0});function ce(jt,Ft,Jt){const _e=Math.min(Jt,Math.max(0,(jt===null?0:jt)+Ft));return _e===1?_e+Ft:_e}function he(jt,Ft){const Jt=jt.closest("form");jt.value=String(ce(ct(jt),Ft,et(Jt)));const _e=Jt.closest(".tbb-pickem");yt(_e),bt(_e)}function pe(jt){he(jt.closest("form").elements[jt.getAttribute("data-side")],Number(jt.getAttribute("data-step")))}function je(){clearTimeout(ut),clearInterval(ut),ut=null}function Fe(jt){je(),pe(jt),ut=setTimeout(()=>{ut=setInterval(()=>pe(jt),70)},400)}async function Qt(jt){const Ft=jt.closest(".tbb-pickem"),Jt=F(Ft),_e=Tt(jt),Oe=jt.querySelector("[data-submit]");Oe.disabled=!0;const[Me,bn]=await Promise.all([app.require("api"),app.require("alerts")]);try{const Je=await Me.put(`/plugins/pickem/games/${Jt}/pick`,_e);q.delete(Jt),k.delete(Jt);const[Le]=await app.parseAndTranslate(W,{...Je,base:config.relative_path});Ft.replaceWith(Le),Kt(Le),Le.querySelector("[data-saved]").classList.add("tbb-pickem__saved--fresh")}catch(Je){bn.error(Je),bt(Ft),de(Jt)}}$(document).on("pointerdown",".tbb-pickem [data-step]",function(jt){jt.button===0&&(jt.preventDefault(),Fe(this))}),$(document).on("pointerup pointerleave pointercancel",".tbb-pickem [data-step]",je),$(document).on("click",".tbb-pickem [data-step]",function(jt){jt.detail===0&&pe(this)}),$(document).on("keydown",'.tbb-pickem__form input[inputmode="numeric"]',function(jt){const Ft={ArrowUp:1,ArrowDown:-1}[jt.key];Ft&&(jt.preventDefault(),he(this,Ft))}),$(document).on("input change",".tbb-pickem__form input",function(){this.inputMode==="numeric"&&(this.value=this.value.replace(/\D/g,"").slice(0,2));const jt=this.closest(".tbb-pickem");yt(jt),bt(jt)}),$(document).on("submit",".tbb-pickem__form",function(jt){jt.preventDefault(),Qt(this)})})(),$(document).ready(function(){W(),Z(),z(),st(),dt(),k(),q(),J(),ut();function W(){$('[component="skinSwitcher"]').on("click",".dropdown-item",function(){const F=$(this).attr("data-value");$('[component="skinSwitcher"] .dropdown-item .fa-check').addClass("invisible"),$(this).find(".fa-check").removeClass("invisible"),Promise.all([b.e(56),b.e(3400),b.e(2380)]).then(function(){var K=[b(8030),b(1749)];(function(et,ct){ct.one("action:skin.change",function(){$('[component="skinSwitcher"] [component="skinSwitcher/icon"]').removeClass("fa-fade")}),$('[component="skinSwitcher"] [component="skinSwitcher/icon"]').addClass("fa-fade"),et.changeSkin(F)}).apply(null,K)}).catch(b.oe)})}Promise.resolve().then(function(){var F=[b(1749)];(function(K){$(window).on("action:composer.resize action:sidebar.toggle",function(){const et=$("html").attr("data-dir")==="rtl",ct={width:$("#panel").width()},Tt=$(".sidebar-left");ct[et?"right":"left"]=Tt.is(":visible")?Tt.outerWidth(!0):0,$('[component="composer"]').css(ct)}),K.on("filter:chat.openChat",function(et){return et.modal=config.theme.chatModals&&!utils.isMobile(),et})}).apply(null,F)}).catch(b.oe);function z(){Promise.all([b.e(5928),b.e(9897)]).then(function(){var F=[b(1749),b(9897),b(6352)];(function(K,et,ct){$('[component="sidebar/toggle"]').on("click",async function(){const qt=$(".sidebar");qt.toggleClass("open"),app.user.uid&&await et.put(`/users/${app.user.uid}
3/settings`,{settings:{openSidebars:qt.hasClass("open")?"on":"off"}}),$(window).trigger("action:sidebar.toggle"),ajaxify.data.template.topic&&K.fire("action:navigator.update",{newIndex:ct.getIndex()})});const Tt=$('[component="bottombar"]');let _t=null;const kt=config.theme.topMobilebar?"top":"bottom",bt=$("body"),yt=$(window);bt.on("shown.bs.dropdown hidden.bs.dropdown",".sticky-tools",function(){Tt.toggleClass("hidden",$(this).find(".dropdown-menu.show").length)});function Mt(){return!!$('[component="bottombar"] [component="sidebar/search"] .search-dropdown.show').length}let Ht=yt.scrollTop(),Kt=!1;function ne(){const qt=yt.scrollTop();if(Kt){Kt=!1,Ht=qt;return}if(qt!==Ht&&!ct.scrollActive&&!Mt()){const Vt=Math.abs(qt-Ht),ce=qt>Ht,pe=!(qt<Ht)&&ce;Vt>10&&(Tt.css({[kt]:pe?-Tt.find(".bottombar-nav").outerHeight(!0):0}),_t&&config.theme.topMobilebar&&config.theme.autohideBottombar&&_t.css({top:pe?0:"var(--panel-offset)"}))}Ht=qt}const re=utils.throttle(ne,250);function de(){yt.off("scroll",re),config.theme.autohideBottombar&&(Ht=yt.scrollTop(),yt.on("scroll",re))}K.on("action:posts.loading",function(){yt.off("scroll",re)}),K.on("action:posts.loaded",function(){Kt=!0,setTimeout(de,250)}),K.on("action:ajaxify.end",function(){Tt.removeClass("hidden");const{template:qt}=ajaxify.data;_t=qt.category||qt.topic?$(".sticky-tools"):null,yt.off("scroll",re),config.theme.autohideBottombar&&(Tt.css({[kt]:0}),setTimeout(de,250))})}).apply(null,F)}).catch(b.oe)}function st(){$('[component="sidebar/search"]').on("shown.bs.dropdown",function(){$(this).find('[component="search/fields"] input[name="query"]').trigger("focus")})}function dt(){b.e(2332).then(function(){var F=[b(4566),b(5303),b(9897)];(function(K,et,ct){const Tt=$('[component="sidebar/drafts"]'),_t=$('[component="bottombar"] [component="sidebar/drafts"]');function kt(){const yt=K.getAvailableCount();_t.toggleClass("hidden",yt===0),$('[component="drafts/count"]').toggleClass("hidden",yt<=0).text(yt)}async function bt(){const yt=$('[component="drafts/list"]'),Mt=K.listAvailable();if(!Mt.length){yt.find(".no-drafts").removeClass("hidden"),yt.find(".placeholder-wave").addClass("hidden"),yt.find(".draft-item-container").html("");return}Mt.reverse(),await Promise.all(Mt.map(async Kt=>{const ne=String(Kt.cid);if(Kt&&Kt.action==="topics.post"&&ne!=="0"){const re=ne!=="-1"?`/api/category/${encodeURIComponent(ne)}`:"/api/world";Kt.category=await ct.get(re,{})}}));const Ht=await app.parseAndTranslate("partials/sidebar/drafts","drafts",{drafts:Mt});yt.find(".no-drafts").addClass("hidden"),yt.find(".placeholder-wave").addClass("hidden"),yt.find(".draft-item-container").html(Ht).find(".timeago").timeago()}Tt.on("shown.bs.dropdown",bt),Tt.on("click",'[component="drafts/open"]',function(){K.open($(this).attr("data-save-id"))}),Tt.on("click",'[component="drafts/delete"]',function(){const yt=$(this).attr("data-save-id");return et.confirm({title:"[[modules:bootbox.confirm]]",message:"[[modules:composer.discard-draft-confirm]]",callback:function(Mt){Mt&&(K.removeDraft(yt),bt())}}),!1}),$(window).on("action:composer.drafts.save",kt),$(window).on("action:composer.drafts.remove",kt),$(window).on("storage",function(yt){const Mt=yt.originalEvent&&yt.originalEvent.key;(Mt===null||Mt==="drafts:available")&&kt()}),kt()}).apply(null,F)}).catch(b.oe)}function Z(){b.e(5947).then(function(){var F=[b(5947)];(function(K){window.nprogress=K,K&&($(window).on("action:ajaxify.start",function(){K.set(.7)}),$(window).on("action:ajaxify.end",function(){K.done(!0)}))}).apply(null,F)}).catch(b.oe)}function k(){const F=$(".pagination-block");Promise.resolve().then(function(){var K=[b(1749)];(function(et){et.on("action:ajaxify.end",function(){F.find(".dropdown-menu.show").removeClass("show")}),et.on("filter:navigator.scroll",function(ct){return F.find(".dropdown-menu.show").removeClass("show"),ct})}).apply(null,K)}).catch(b.oe)}function q(){$('.sidebar [component="header/avatar"] .avatar').removeAttr("title");const F=$(".sidebar [title]"),K=$(".sidebar-left [title]"),et=$(".sidebar-right [title]"),ct=$("html").attr("data-dir")==="rtl";K.tooltip({trigger:"manual",animation:!1,placement:ct?"left":"right"}),et.tooltip({trigger:"manual",animation:!1,placement:ct?"right":"left"}),F.on("mouseenter",function(Tt){const _t=$(Tt.target),kt=_t.hasClass("dropdown-menu")||!!_t.parents(".dropdown-menu").length;!_t.parents(".sidebar").hasClass("open")&&!kt&&$(this).tooltip("show")}),F.on("click mouseleave",function(){$(this).tooltip("hide")})}function J(){config.loggedIn&&["notifications","chat"].forEach(F=>{const K=$(`nav.sidebar [component="${F}/count"]`).first();if(!K.length)return;const et=parseInt(K.text(),10);et>1&&$(`.dropdown-menu [component="${F}/list"]`).each((Tt,_t)=>{const kt=$(_t).children().first();for(let bt=0;bt<et-1;bt++)kt.clone(!0).insertAfter(kt)})})}function ut(){const F=$("#main-nav");function K(){F.toggleClass("overflow-y-auto",!F.find(".dropdown-menu.show").length)}F.on("shown.bs.dropdown",K).on("hidden.bs.dropdown",K)}}),$.ajaxPrefilter(W=>{W.url.startsWith(`${config.asset_base_url}/templates/`)&&(W.cache=!0,W.url+=`?${config["cache-buster"]}`)}
3),$(document).ready(function(){const W="tbb:skin",z="(prefers-color-scheme: dark)",st="not all and (prefers-color-scheme: dark)",dt={"":"fa-circle-half-stroke",light:"fa-sun",dark:"fa-moon"};function Z(){try{return localStorage.getItem(W)||""}catch{return""}}function k(Qt){try{Qt?localStorage.setItem(W,Qt):localStorage.removeItem(W)}catch{}}function q(Qt,jt){return jt?Qt===jt?"all":"not all":Qt==="dark"?z:st}function J(Qt){document.querySelectorAll("link[data-tbb-skin]").forEach(jt=>{jt.media=q(jt.getAttribute("data-tbb-skin"),Qt)}),$("[data-tbb-theme]").each(function(){$(this).find(".fa-check").toggleClass("invisible",$(this).attr("data-tbb-theme")!==Qt)}),$("[data-tbb-theme-icon]").removeClass(Object.values(dt).join(" ")).addClass(dt[Qt]||dt[""])}$("body").on("click","[data-tbb-theme]",function(Qt){Qt.preventDefault();const jt=$(this).attr("data-tbb-theme");k(jt),J(jt)}),J(Z());const ut=["categories","category","topic"];function F(){const Qt=$("#main-nav"),jt=ajaxify.data.template&&ajaxify.data.template.name;Qt.find("a.active").length||!ut.includes(jt)||Qt.find(`a[href="${config.relative_path}/categories"]`).addClass("active")}const K=11;function et(){document.querySelectorAll(".tbb-post__username").forEach(Qt=>{Qt.style.fontSize="";let jt=parseFloat(getComputedStyle(Qt).fontSize);for(;Qt.scrollWidth>Qt.clientWidth&&jt>K;)jt-=.5,Qt.style.fontSize=`${jt}px`})}const ct=15e3,Tt=200,_t='<i class="fa fa-arrow-up"></i> Show earlier posts',kt='<i class="fa fa-circle-notch fa-spin"></i> Loading earlier posts',bt=2e3,yt=["wheel","touchstart","keydown","mousedown"];let Mt=!1,Ht=()=>{};function Kt(Qt){const jt=window.scrollY,Ft=document.documentElement.scrollHeight;Qt(),window.scrollTo(0,jt+(document.documentElement.scrollHeight-Ft))}function ne(Qt){const jt=Qt.getBoundingClientRect().top;let Ft=!0;const Jt=()=>{Ft=!1,yt.forEach(Oe=>window.removeEventListener(Oe,Jt))};yt.forEach(Oe=>window.addEventListener(Oe,Jt,{passive:!0}));const _e=()=>{if(!Ft||!Qt.isConnected)return;const Oe=Qt.getBoundingClientRect().top-jt;Oe&&window.scrollBy(0,Oe),requestAnimationFrame(_e)};return requestAnimationFrame(_e),setTimeout(Jt,ct),Jt}function re(){const Qt=$('[component="topic"]'),jt=Qt.children(".tbb-earlier");if(!(ajaxify.data.template.topic&&Qt.length&&!Qt.find('[component="post"][data-index="0"]').length)){jt.length&&Kt(()=>jt.remove());return}if(jt.length){jt.find("button").prop("disabled",!1).html(_t);return}Kt(()=>Qt.prepend(`<li class="tbb-earlier"><button type="button" class="btn btn-light">${_t}</button></li>`))}function de(){re(),setTimeout(Ht,bt)}function qt(){$(this).prop("disabled",!0).html(kt),Ht=ne($('[component="topic"] [component="post"]').get(0)),setTimeout(re,ct),Promise.all([b.e(5928),b.e(8454),b.e(7536)]).then(function(){var Qt=[b(7536)];(jt=>{Mt=!0,jt.loadMorePosts(-1),Mt=!1}).apply(null,Qt)}).catch(b.oe)}function Vt(Qt,jt){const Ft=$('<div class="tbb-loading-more" role="status"><i class="fa fa-circle-notch fa-spin"></i> Loading more\u2026</div>').appendTo("body");let Jt;const _e=()=>{clearTimeout(Jt),Ft.removeClass("show")},Oe=Je=>{clearTimeout(Jt),Ft.toggleClass("tbb-loading-more--up",Je<0).addClass("show"),Jt=setTimeout(_e,ct)},Me=Je=>(...Le)=>{const Mn=Le.pop(),ln=Le[Le.length-1],En=ln&&Number(ln.direction);return En<0&&ajaxify.data.template.topic?Mt?Je(...Le,(Rn,wn)=>Mn(Rn,()=>{wn(),de()})):void 0:(Oe(En),Je(...Le,(Rn,wn)=>{_e(),Mn(Rn,wn)}))};Qt.loadMore=Me(Qt.loadMore),Qt.loadMoreXhr=Me(Qt.loadMoreXhr);const{removeExtra:bn}=Qt;Qt.removeExtra=(Je,Le,Mn)=>{const ln=bn(Je,Le,Math.max(Mn,Tt));return Le>0&&ln.length&&re(),ln},jt.on("action:ajaxify.start",_e)}function ce(){!app.user.uid||document.getElementById("emoji-dialog")||b.e(5150).then(function(){var Qt=[b(6924)];(jt=>{const{open:Ft}=jt.dialogActions;jt.dialogActions.open=Jt=>{const _e=Ft(Jt);return setTimeout(()=>$(Jt).find(".emoji-tabs .tab-content").trigger("scroll"),0),_e},jt.init(()=>{})}).apply(null,Qt)}).catch(b.oe)}const he=60*1e3;function pe(Qt,jt){const Ft=Math.floor((jt-Qt)/6e4);if(Ft<1)return"now";if(Ft<60)return`${Ft}m`;if(Ft<1440)return`${Math.floor(Ft/60)}h`;if(Ft<10080)return`${Math.floor(Ft/1440)}d`;const Jt=Qt.getFullYear()===new Date(jt).getFullYear();return Qt.toLocaleDateString("en-US",Jt?{month:"short",day:"numeric"}:{month:"short",day:"numeric",year:"numeric"})}function je(){const Qt=Date.now();document.querySelectorAll("[data-tbb-time]").forEach(jt=>{jt.textContent=pe(new Date(Number(jt.getAttribute("data-tbb-time"))),Qt)})}function Fe(){document.querySelectorAll(".widget-topics .timeago").forEach(Qt=>{const jt=new Date(Qt.getAttribute("datetime")||Qt.getAttribute("title"));Number.isNaN(jt.getTime())||($(Qt).timeago("dispose"),Qt.classList.remove("timeago"),Qt.setAttribute("data-tbb-time",String(jt.getTime())),Qt.setAttribute("title",jt.toLocaleStr
3ing()))}),je()}setInterval(je,he),b.e(2858).then(function(){var Qt=[b(2410),b(1749)];Vt.apply(null,Qt)}.bind(this)).catch(b.oe),(window.requestIdleCallback||(Qt=>setTimeout(Qt,2e3)))(ce),Promise.resolve().then(function(){var Qt=[b(1749)];(jt=>{jt.on("action:ajaxify.end",F),jt.on("action:ajaxify.end",et),jt.on("action:ajaxify.end",Fe),jt.on("action:posts.loaded",et),jt.on("action:topic.loaded",re)}).apply(null,Qt)}).catch(b.oe),$("body").on("click",".tbb-earlier button",qt),F(),et(),Fe(),document.fonts.ready.then(et)}),$(document).ready(function(){let W,z,st,dt;function Z(K,et){Promise.resolve().then(function(){var ct=[b(9930)];(function(Tt){Tt[K](et)}).apply(null,ct)}).catch(b.oe)}$(window).on("composer:autocomplete:init chat:autocomplete:init",function(K,et){et.element.one("focus",async function(){await Promise.all([J(et.element),W?Promise.resolve():ut(),st?Promise.resolve():F()])});let ct;const Tt={match:/\B@([^\s\n]*)?$/,search:function(_t,kt){Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var bt=[b(1431),b(76),b(3230)];(function(yt,Mt,Ht){if(dt=Mt,ct=Ht,!_t)return kt(z.filter(ne=>ne.uid!==app.user.uid));const Kt=et.options.className&&et.options.className.match(/dropdown-(.+?)\s/)[1];socket.emit("plugins.mentions.userSearch",{query:_t,composerObj:yt.posts[Kt]},function(ne,re){if(ne)return Z("error",ne.message),kt([]);const de=_t.toLocaleLowerCase(),qt=z.filter(he=>he.username.toLocaleLowerCase().startsWith(de)),Vt=st.filter(he=>he&&he.handle&&he.handle.startsWith(de));re=re.filter(he=>!qt.find(pe=>pe.uid===he.uid)),re.sort((he,pe)=>{const je=utils.isNumber(he.uid),Fe=utils.isNumber(pe.uid);return je!==Fe?je?-1:1:pe.postcount-he.postcount}),re=k(qt).concat(re).concat(k(Vt));const ce=W.filter(he=>he.name.toLocaleLowerCase().startsWith(de)||he.slug.startsWith(de)).sort((he,pe)=>he.name.toLocaleLowerCase()>pe.name.toLocaleLowerCase()?1:-1);kt([...re,...ce])})}).apply(null,bt)}).catch(b.oe)},index:1,template:q,replace:function(_t){if(_t.uid)return`@${_t.userslug} `;if(_t.cid)return`@${utils.isNumber(_t.cid)?_t.handle:_t.slug} `;if(_t.isGroup)return`@${ct(_t.name,!0)} `;if(_t)return`@${ct(_t,!0)} `},cache:!0};et.strategies.push(Tt),et.options={...et.options,maxCount:100}}),$(window).on("action:composer.loaded",function(K,et){$("#cmp-uuid-"+et.post_uuid+" .write").attr("data-mentions","1")});function k(K){return K.sort(function(et,ct){const Tt=et.username||et.name,_t=ct.username||ct.name;return Tt.toLocaleLowerCase()>_t.toLocaleLowerCase()?1:-1})}function q(K){switch(!0){case K.hasOwnProperty("uid"):{const et=dt.buildAvatar(K,"24px",!0),ct=K.fullname?`(${K.fullname})`:"";return`${et} ${dt.escape(K.username||K.name)} ${dt.escape(ct)}`}case K.hasOwnProperty("cid"):{const et=dt.buildCategoryIcon(K,"24px","rounded-circle"),ct=utils.isNumber(K.cid)?"":`(${K.slug})`;return`${et} ${dt.escape(K.name)}${dt.escape(ct)}`}case K.isGroup:return`${dt.buildCategoryIcon({icon:K.icon||"fa-users",bgColor:K.labelColor,color:K.textColor},"24px","rounded-circle")} ${dt.escape(K.name)} <span class="text-sm text-secondary">(${K.memberCountText})</span>`;default:return K.hasOwnProperty("name")?K.name:K}}async function J(K){const et=await app.require("composer");function ct(){const _t=K.parents(".composer").get(0);if(_t){const kt=_t.getAttribute("data-uuid"),bt=et.posts[kt];if(bt&&bt.tid)return bt.tid}return ajaxify.data.template.topic?ajaxify.data.tid:null}const Tt=ct();if(!Tt){z=[];return}z=await socket.emit("plugins.mentions.getTopicUsers",{tid:Tt}).catch(_t=>Z("error",_t))}async function ut(){W=await socket.emit("plugins.mentions.listGroups");const[K,et]=await app.require(["translator","helpers"]);await Promise.all(W.map(async ct=>{const Tt=K.compile("groups:x-members",et.formattedNumber(ct.memberCount));ct.memberCountText=await K.translateKey(Tt)}))}async function F(){const[K,et]=await app.require(["api","translator"]),{categories:ct}=await K.get("/categories");st=ct,await Promise.all(ct.map(async Tt=>{Tt.name=await et.translateKey(Tt.name)}))}});const B=13,G=window.matchMedia("(max-width: 767.98px)"),j=["header","font","underline","code-block","script","color","background","align","clean","zen"];function rt(W){const[z]=W.getLine(W.getLength()-1);if(!z||!z.formats().blockquote)return;const st=W.getSelection(),dt=W.getContents().constructor;W.updateContents(new dt().retain(W.getLength()-1).insert(`
4`,{blockquote:!0}).retain(1,{blockquote:null}),"api"),st&&W.setSelection(st,"silent")}function it(W){W.keyboard.addBinding({key:B},{format:["blockquote"],empty:!0},st=>(W.formatLine(st.index,1,"blockquote",!1,"user"),!1));const z=W.keyboard.bindings[B];z.unshift(z.pop())}$(window).on("action:quill.load",(W,z)=>
4{it(z),z.on("text-change",()=>rt(z))}),$(window).on("action:quill.load",(W,z)=>{const st=$(z.container).closest(".composer").find("input.title");!st.length||st.val()||setTimeout(()=>st.trigger("focus"),0)});const Et=W=>typeof W=="string"?W:Object.keys(W)[0];Promise.resolve().then(function(){var W=[b(1749)];(z=>{z.on("filter:quill.toolbar",st=>(G.matches&&(st.toolbar.container=st.toolbar.container.map(dt=>dt.filter(Z=>!j.includes(Et(Z)))).filter(dt=>dt.length)),st))}).apply(null,W)}).catch(b.oe);const pt="tbb-posting";let tt="";$(window).on("action:composer.submit",(W,z)=>{tt=String(z.composerEl.attr("data-uuid")),Promise.resolve().then(function(){var st=[b(9930)];(dt=>{dt.alert({alert_id:pt,type:"info",title:"Posting\u2026",message:"Sending your post, hang tight."})}).apply(null,st)}).catch(b.oe)}),$(window).on("action:composer.discard action:composer.activate",(W,z)=>{!tt||String(z.post_uuid)!==tt||(tt="",Promise.resolve().then(function(){var st=[b(9930)];(dt=>dt.remove(pt)).apply(null,st)}).catch(b.oe))});function U(W){let z;try{z=JSON.parse(W).ops}catch{z=[{insert:`${String(W||"").trim()}
5`}]}const st=[];let dt=[];return z.forEach(Z=>{if(typeof Z.insert!="string"){dt.push(Z);return}Z.insert.split(/(\n)/).filter(Boolean).forEach(k=>{if(k!==`
6`){dt.push({insert:k,attributes:Z.attributes});return}st.push({ops:dt,quoted:!!(Z.attributes&&Z.attributes.blockquote)}),dt=[]})}),dt.length&&st.push({ops:dt,quoted:!1}),st}const Q=W=>W.ops.every(z=>typeof z.insert=="string"&&!z.insert.trim());function X({username:W,pid:z,body:st}){const dt=[];W&&dt.push({insert:`${W} `},{insert:"said",attributes:{link:`${config.relative_path}/post/${z}`}},{insert:":"},{insert:`
7`,attributes:{blockquote:!0}});const Z=U(st).filter(k=>!k.quoted);for(;Z.length&&Q(Z[0]);)Z.shift();for(;Z.length&&Q(Z[Z.length-1]);)Z.pop();return Z.forEach(k=>{dt.push(...k.ops,{insert:`
8`,attributes:{blockquote:!0}})}),dt.push({insert:`
9`}),dt}function lt(W){try{return JSON.parse(W).ops}catch{return[{insert:String(W)}]}}function ot(W,z){const st=$(`.composer[data-uuid="${W}"] .ql-container`).data("quill");if(!st)return!1;const dt=st.getContents().constructor,Z=st.getLength()-1,k=Z>0&&st.getText(Z-1,1)!==`
10`?[{insert:`
11`}]:[];return st.updateContents(new dt([{retain:Z},...k,...z]),"user"),st.setSelection(st.getLength()-1,0,"user"),!0}Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var W=[b(1431),b(1749)];((z,st)=>{const{newReply:dt}=z;let Z=!1;const k=q=>Object.keys(z.posts).find(J=>z.posts[J].action==="posts.reply"&&String(z.posts[J].tid)===String(q));z.newReply=q=>{if(Z){Z=!1;return}const J=q.body&&k(q.tid);if(J&&ot(J,lt(q.body))){z.load(J);return}return dt(q)},st.on("action:composer.addQuote",q=>{Z=!0,setTimeout(()=>{Z=!1},0);const J=X({username:q.username,pid:q.selectedPid||q.pid,body:q.body||q.text}),ut=k(q.tid);if(ut&&ot(ut,J)){z.load(ut);return}dt({tid:q.tid,toPid:q.pid,title:q.title||q.topicName,body:JSON.stringify({ops:J})})})}).apply(null,W)}).catch(b.oe);const V={"posts.reply":"Continue reply","posts.edit":"Continue edit","topics.post":"Continue new topic"};function at(W){return Object.keys(W.posts).filter(z=>{const st=$(`.composer[data-uuid="${z}"]`);return st.length&&st.css("visibility")==="hidden"})}function wt(W){let z=$(".tbb-draft-dock");const st=at(W);if(!st.length){z.remove();return}z.length||(z=$('<div class="tbb-draft-dock" role="region" aria-label="Drafts"></div>').appendTo("body")),z.empty().append(st.map(dt=>{const Z=W.posts[dt],k=$('<button type="button" class="tbb-draft-dock__item"><i class="fa fa-pen"></i><span class="tbb-draft-dock__text"><strong></strong><span></span></span></button>');return k.attr("data-uuid",dt),k.find("strong").text(V[Z.action]||"Continue draft"),k.find(".tbb-draft-dock__text > span").text(Z.title||""),k}))}Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var W=[b(1431)];(z=>{const st=()=>setTimeout(()=>wt(z),0);$(window).on("action:composer.minimize action:composer.loaded action:composer.discard action:composer.submit action:ajaxify.end",st),$(document).on("click",".tbb-draft-dock__item",function(){z.load($(this).attr("data-uuid")),st()})}).apply(null,W)}).catch(b.oe);const mt=13;$(window).on("action:quill.load",(W,z)=>
11{const st=$(z.container).closest('[component="chat/composer"]');!st.length||utils.isMobile()||(z.keyboard.addBinding({key:mt,shiftKey:!1},()=>$(".textcomplete-dropdown:visible").length?!0:(st.find('[data-action="send"]').trigger("click"),!1)),z.keyboard.bindings[mt].unshift(z.keyboard.bindings[mt].pop()))});const Rt=/^(data|blob):/i;function Gt(W){if(!W.insert||typeof W.insert!="object")return"";const{image:z,emoji:st}=W.insert;return W.attributes&&W.attributes.src||(typeof z=="string"?z:"")||st&&st.src||""}function Xt(W){const z=[];let st=0;W.getContents().ops.forEach(dt=>{Rt.test(Gt(dt))&&z.push(st),st+=typeof dt.insert=="string"?dt.insert.length:1}),z.reverse().forEach(dt=>W.deleteText(dt,1,"api"))}$(window).on("action:quill.load",(W,z)=>{z.on("text-change",(st,dt,Z)=>{Z==="user"&&Xt(z)})}),document.addEventListener("mousedown",W=>{W.target instanceof Element&&W.target.closest(".textcomplete-dropdown")&&W.preventDefault()},!0),$(document).ready(function(){dt();let W,z,st=0;function dt(){K(),Promise.resolve().then(function(){var et=[b(1749),b(9930)];(function(ct,Tt){W=Tt,ct.on("action:ajaxify.end",function(){ajaxify.data.template.topic&&Z()}),ct.on("action:chat.loaded",function(_t){(ajaxify.data.template.chats&&ajaxify.data.roomId||_t.hasClass("chat-modal")||_t.attr("component")==="chat/widget")&&k(_t)})}).apply(null,et)}).catch(b.oe),socket.on("event:post_deleted",function(et){$('[component="post/reactions"][data-pid="'+et.pid+'"]').addClass("hidden")}),socket.on("event:post_restored",function(et){$('[component="post/reactions"][data-pid="'+et.pid+'"]').removeClass("hidden")}),socket.on("event:chats.delete",function(et){$('[component="message/reactions"][data-mid="'+et+'"]').addClass("hidden")}),socket.on("event:chats.restore",function(et){$('[component="message/reactions"][data-mid="'+et.mid+'"]').removeClass("hidden")})}function Z(){q(),$('[component="topic"]').on("click",'[component="post/reaction"]',function(){const et=$(this),ct=et.attr("data-pid"),Tt=et.attr("data-reaction"),kt="plugins.reactions."+(et.hasClass("reacted")?"removePostReaction":"addPostReaction");socket.emit(kt,{pid:ct,reaction:Tt},function(bt){bt&&W.error(bt.message)})}),$('[component="topic"]').on("click",'[component="post/reaction/add"]',function(){const et=$(this),ct=et.attr("data-pid");b.e(5150).then(function(){var Tt=[b(6924)];(function(_t){_t.toggle(et[0],function(kt,bt,yt){_t.dialogActions.close(yt),socket.emit("plugins.reactions.addPostReaction",{pid:ct,reaction:bt},function(Mt){if(Mt)throw W.error(Mt.message),Mt;$('[component="post/reaction"][data-pid="'+ct+'"][data-reaction="'+bt+'"]').addClass("reacted")})})}).apply(null,Tt)}).catch(b.oe)})}function k(et){J();const ct=et.find('[component="chat/message/content"]');ct.on("click",'[component="message/reaction"]',function(){const Tt=$(this),_t=Tt.attr("data-mid"),kt=Tt.attr("data-reaction"),yt="plugins.reactions."+(Tt.hasClass("reacted")?"removeMessageReaction":"addMessageReaction");socket.emit(yt,{mid:_t,reaction:kt},function(Mt){Mt&&W.error(Mt.message)})}),ct.on("click",'[component="message/reaction/add"]',function(){const Tt=$(this),_t=Tt.attr("data-mid");b.e(5150).then(function(){var kt=[b(6924)];(function(bt){bt.toggle(Tt[0],function(yt,Mt,Ht){bt.dialogActions.close(Ht),socket.emit("plugins.reactions.addMessageReaction",{mid:_t,reaction:Mt},function(Kt){if(Kt)return W.error(Kt.message);$('[component="message/reaction"][data-mid="'+_t+'"][data-reaction="'+Mt+'"]').addClass("reacted")})})}).apply(null,kt)}).catch(b.oe)})}function q(){socket.off("event:reactions.addPostReaction").on("event:reactions.addPostReaction",function(et){ut(et,"add")}),socket.off("event:reactions.removePostReaction").on("event:reactions.removePostReaction",function(et){ut(et,"remove")})}function J(){socket.off("event:reactions.addMessageReaction").on("event:reactions.addMessageReaction",function(et){F(et,"add")}),socket.off("event:reactions.removeMessageReaction").on("event:reactions.removeMessageReaction",function(et){F(et,"remove")})}function ut(et,ct){const Tt=config.maximumReactions>0&&parseInt(et.totalReactions,10)>=config.maximumReactions;$('[component="post/reaction/add"][data-pid="'+et.pid+'"]').toggleClass("max-reactions",Tt);const _t=$(`[component="post/reaction"][data-pid="${et.pid}"][data-reaction="${et.reaction}"]`);parseInt(et.reactionCount,10)===0&&(_t.tooltip("dispose"),_t.remove());const kt=parseInt(et.uid,10)===app.user.uid;_t.length===0?app.parseAndTranslate("partials/topic/reaction",{pid:et.pid,reaction:et.reaction,reactionCount:et.reactionCount,usernames:et.usernames,reacted:kt&&ct==="add",reactionImage:et.reactionImage},function(bt){$('[component="post/reactions"][data-pid="'+et.pid+'"]').prepend(bt)}):(_t.find(".reaction-emoji-count").attr("data-count",et.reactionCount),_t.attr("data-bs-original-title",et.usernames),_t.attr("aria-label",et.usernames),kt&&_t.toggleClass("reacted",ct==="add"))}function F(et,ct){const Tt=config.maximumReactionsPerMessage>0&&parseInt(et.totalReactions,10)>=config.maximumReactionsPerMessage;$('[component="message/reaction/add"][data-mid="'+et.mid+'"]').toggleClass("max-reactions",Tt);const _t=$(`[component="message/reaction"][data-mid="${et.mid}"][data-reaction="${et.reaction}"]`);parseInt(et.reactionCount,10)===0&&(_t.tooltip("dispose"),_t.remove());const kt=parseInt(et.uid,10)===app.user.uid;_t.length===0?app.parseAndTranslate("partials/chats/reaction",{mid:et.mid,reaction:et.reaction,reactionCount:et.reactionCount,reacted:kt&&ct==="add",reactionImage:et.reactionImage},function(bt){Promise.all([b.e(419),b.e(9127)]).then(function(){var yt=[b(419)];(function(Mt){const Ht=$('[component="message/reactions"][data-mid="'+et.mid+'"]'),Kt=Ht.parents('[component="chat/message/content"]'),ne=Mt.isAtBottom(Kt);Ht.append(bt),ne&&Mt.scrollToBottom(Kt)}).apply(null,yt)}).catch(b.oe)}):(_t.find(".reaction-emoji-count").attr("data-count",et.reactionCount),_t.attr("data-bs-original-title",et.usernames),_t.attr("aria-label",et.usernames),kt&&_t.toggleClass("reacted",ct==="add"))}
11function K(){Promise.resolve().then(function(){var et=[b(9336),b(7459)];(function(ct,Tt){function _t(yt){if(yt&&yt.length){const Mt=ct.Tooltip.getInstance(yt.get(0));Mt&&(Mt.dispose(),yt.attr("title",""))}}async function kt(yt){const Mt=z;_t(Mt);let Ht=yt.usernames.filter(Kt=>Kt!=="[[global:former_user]]");Ht.length&&(Ht.length+yt.otherCount>yt.cutoff?Ht=await Tt.translate(Tt.compile("topic:users-and-others",Ht.join(", "),yt.otherCount)):Ht=Ht.join(", "),Mt.attr("title",Ht),new ct.Tooltip(Mt,{container:"#content",html:!0,placement:"top",animation:!1}).show())}function bt(){st&&(clearTimeout(st),st=0)}utils.isTouchDevice()||($("body").on("mouseenter",".reaction",function(){z=$(this),bt(),st=setTimeout(async()=>{if(z&&z.length){const Mt=z.attr("data-pid"),Ht=z.attr("data-mid"),Kt=z.attr("data-reaction"),ne=Mt?"post":"message",re=await socket.emit("plugins.reactions.getReactionUsernames",{type:ne,mid:Ht,pid:Mt,reaction:Kt});z&&z.length&&Kt===z.attr("data-reaction")&&(ne==="post"&&Mt===z.attr("data-pid")||ne==="message"&&Ht===z.attr("data-mid"))&&kt(re)}},200)}),$("body").on("mouseleave",".reaction",function(){bt(),z=null,_t($(this))}))}).apply(null,et)}).catch(b.oe)}}),window.Poll={},$(document).ready(function(){window.Poll.alertError=function(st){Promise.resolve().then(function(){var dt=[b(9930)];(function(Z){Z.error(st)}).apply(null,dt)}).catch(b.oe)},Promise.resolve().then(function(){var st=[b(1749)];(function(dt){dt.on("filter:composer.submit",function(Z){Z.composerData.polls=Z.postData.polls||[]}),dt.on("filter:composer.drafts.save",function(Z){const{draft:k,postData:q}=Z;return Object.hasOwn(q,"polls")&&(k.polls=q.polls||[]),Z}),dt.on("filter:composer.drafts.open",function(Z){const{draft:k}=Z;return Object.hasOwn(k,"polls")&&(Z.composerData.polls=k.polls||[]),Z}),dt.on("filter:composer.topic.push",function(Z){return Z.pushData.polls=Z.data.polls||[],Z}),dt.on("filter:composer.reply.push",function(Z){return Z.pushData.polls=Z.data.polls||[],Z})}).apply(null,st)}).catch(b.oe),$(window).on("action:topic.loading",function(){ajaxify.data.posts.forEach(st=>{W(st)})}),$(window).on("action:posts.loaded",function(st,dt){dt.posts.forEach(Z=>{W(Z)})}),$(window).on("action:posts.edited",function(st,dt){W(dt.post)}),$(window).on("action:ajaxify.end",function(){$("[data-widget-poll-id]").each(function(){const st=$(this);z([st.attr("data-widget-poll-id")],st)})}),socket.on("event:poll.voteChange",function(st){Poll.view.update(st.pollData,st.uid)});function W(st){if(!st)return;let dt=[];if(st.pollIds)try{dt=JSON.parse(st.pollIds)}catch{dt=[]}const k=$(`[component="post"][data-pid="${st.pid}"]`).find('[component="post/content"]'),q=new Set((dt||[]).map(J=>String(J)));k.find("[data-poll-id]").each(function(){const J=$(this).attr("data-poll-id");q.has(J)||($(this).remove(),delete Poll.view.polls[J])}),dt.length&&z(dt,k)}function z(st,dt){const Z=st.map(k=>parseInt(k,10)).filter(k=>!isNaN(k));socket.emit("plugins.poll.get",{pollIds:Z},async function(k,q){if(k)return Poll.alertError(k.message);q.reverse();for(const J of q)J.container=dt,dt.attr("data-widget-poll-id")&&(J.isWidget=!0),await Poll.view.load(J)})}}),(function(W){const z={};function st(){$(window).on("action:composer.enhanced",dt)}function dt(bt,{postContainer:yt,postData:Mt}){Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var Ht=[b(1431),b(449)];(function(Kt,ne){if(ne){ne.addButtonDispatch("poll",function(){Z(Kt)});const re=yt.attr("data-uuid");kt(re,Mt.polls?Mt.polls.length:0)}}).apply(null,Ht)}).catch(b.oe)}async function Z(bt){const yt=bt.posts[bt.active];if(!yt)return _t("error","[[poll:error.invalid-post]]");if(parseInt(yt.cid,10)===0)return _t("error","[[error:category-not-selected]]");if(!await socket.emit("plugins.poll.canCreate",{cid:yt.cid,pid:yt.pid,tid:yt.tid}))return _t("error","[[error:no-privileges]]");yt.polls=yt.polls||[],await k({postData:yt,uuid:bt.active})}async function k(bt){const[yt,Mt]=await app.require(["modals","benchpressjs"]),{postData:Ht,modal:Kt,uuid:ne}=bt,re=await Mt.render("poll/manage",{post:Ht});if(Kt)Kt.find(".bootbox-body").html(re),ut({modal:Kt,polls:Ht.polls});else{const de=await yt.dialog({title:"[[poll:manage-polls]]",message:re,className:"poll-manage",buttons:{add:{label:"[[poll:add-poll]]",className:"btn-success",callback:()=>(z.show("[[poll:creator_title]]",{pollId:Date.now(),title:config.poll.defaultTitle,maximumVotesPerUser:config.poll.maximumVotesPerUser},config.poll).then(qt=>{qt&&Ht.polls.push(qt),k({...bt,modal:de}),kt(ne,Ht.polls.length)}),!1)},close:{label:"[[global:close]]",className:"btn-primary"}}});q({...bt,modal:de}),J({...bt,modal:de}),ut({modal:de,polls:Ht.polls})}}async function q(bt){const yt=await app.require("modals"),{uuid:Mt,modal:Ht,postData:Kt}=bt;Ht.on("click",'button[data-action="remove"]',function(){const ne=$(this).attr("data-poll-id");yt.confirm("[[poll:confirm-remove]]",re=>{if(!re)return;Kt?.polls.find(qt=>String(qt.pollId)===ne)&&(Kt.polls=Kt.polls.filter(qt=>String(qt.pollId)!==ne),k(bt),kt(Mt,Kt.polls.length))})})}function J(bt){const{modal:yt,postData:Mt}=bt;yt.on("click",'button[data-action="edit"]',async function(){const Ht=$(this).attr("data-poll-id"),Kt=Mt?.polls.find(ne=>String(ne.pollId)===Ht);if(Kt){const ne=await z.show("[[poll:edit-a-poll-title]]",Kt,config.poll);ne&&(Mt.polls=Mt.polls.map(re=>String(re.pollId)===String(ne.pollId)?ne:re),k(bt))}})}function ut({modal:bt,polls:yt}){if(Array.isArray(yt)&&yt.length>1){const Mt=bt.find(".topic-poll-modal");Mt.sortable({handle:'[component="sort/handle"]',axis:"y",zIndex:9999,items:'[component="post/poll/item"]'}),Mt.on("sortupdate",function(){if(!yt)return;const Ht=[];Mt.find('[component="post/poll/item"]').each(function(){const Kt=$(this).attr("data-poll-id"),ne=yt.find(re=>String(re.pollId)===Kt);ne&&Ht.push(ne)}),yt.length=0,Array.prototype.push.apply(yt,Ht)})}}z.show=function(bt,yt,Mt){return new Promise(Ht=>{app.require(["benchpressjs","modals"]).then(([Kt,ne])=>{const re={...yt},de=parseInt(re.end,10);if(de>0){const qt=new Date(de),Vt=ce=>String(ce).padStart(2,"0");re.end=`${qt.getFullYear()}-${Vt(qt.getMonth()+1)}-${Vt(qt.getDate())}T${Vt(qt.getHours())}:${Vt(qt.getMinutes())}`}else re.end="";Kt.render("poll/creator",{poll:re,config:Mt}).then(async function(qt){const Vt=await ne.dialog({title:bt,message:qt,className:"poll-creator",buttons:{cancel:{label:"[[global:close]]",callback:function(){Ht(null)}},save:{label:"[[modules:bootbox.confirm]]",callback:function(){ct();const ce=Vt.find("#pollCreator"),he=Tt(ce);return he.options.length===0?(et("[[poll:error.no_options]]"),!1):(Ht(he),!0)}}}});K(Vt),F({modal:Vt}
11),Vt.find("#pollAddOption").off("click").on("click",async function(){const ce=Vt.find('#poll-options-container [component="post/poll/option/item"]').length;if(Mt.maxOptions<=ce)return ct(),et(`[[poll:error.max_options, ${Mt.maxOptions}]]`),!1;const he=Date.now(),pe=await app.parseAndTranslate("poll/option-input",{id:he,title:""});Vt.find("#poll-options-container").append(pe),Vt.find(`[data-option-id="${he}"] input`).focus()}),Vt.find("#poll-options-container").on("click",'[data-action="remove-option"]',function(){$(this).parents('[component="post/poll/option/item"]').remove()})})})})};function F({modal:bt}){bt.find("#poll-options-container").sortable({handle:'[component="sort/handle"]',axis:"y",zIndex:9999,items:'[component="post/poll/option/item"]'})}function K(bt){const yt=-new Date().getTimezoneOffset(),Mt=yt>=0?"+":"-",Ht=String(Math.floor(Math.abs(yt)/60)).padStart(2,"0"),Kt=String(Math.abs(yt)%60).padStart(2,"0");bt.find("[data-timezone-label]").text(`(UTC${Mt}${Ht}:${Kt})`)}async function et(bt){const yt=$("#pollErrorBox"),Ht=await(await app.require("translator")).translate(bt);yt.removeClass("hidden"),yt.append(Ht+"<br>")}function ct(){$("#pollErrorBox").addClass("hidden").html("")}function Tt(bt){const yt=bt.serializeObject();yt.options=yt.options||[],yt.id=yt.id||[];const Mt=yt.options.map((Kt,ne)=>({id:yt.id[ne],title:Kt})).filter(Kt=>Kt.title?.length);return{pollId:yt.pollId,options:Mt,title:yt.title,maximumVotesPerUser:yt.maximumVotesPerUser,disallowVoteUpdate:yt.disallowVoteUpdate==="on"?1:0,allowAnonVoting:yt.allowAnonVoting==="on"?1:0,end:yt.end?new Date(yt.end).getTime():0}}function _t(bt,yt){Promise.resolve().then(function(){var Mt=[b(9930)];(function(Ht){Ht[bt](yt)}).apply(null,Mt)}).catch(b.oe)}function kt(bt,yt){$(window).trigger("action:composer.updateFormattingBtnBadgeCount",{uuid:bt,formatName:"poll",count:yt})}W.creator=z,st()})(window.Poll),(function(W){function z(Z,k){const J=Z.dom.votingPanel.find("form").serializeArray().map(ut=>parseInt(ut.value,10));if(J.length>0){const ut={pollId:Z.pollData.info.pollId,options:J,voteAnon:k.voteAnon};socket.emit("plugins.poll.vote",ut,function(F){if(config.loggedIn||$(window).trigger("action:poll.vote.notloggedin"),F)return W.alertError(F.message);Z.showResultsPanel()})}}const st=[{register:function(Z){const k=this;Z.dom.voteButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){z(Z,{voteAnon:!1})}},{register:function(Z){const k=this;Z.dom.voteAnonButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){z(Z,{voteAnon:!0})}},{register:function(Z){const k=this;Z.dom.updateVoteButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){const q=Z.dom.votingPanel.find("form").serializeArray().map(function(J){return parseInt(J.value,10)});if(q.length>0){const J={pollId:Z.pollData.info.pollId,options:q};socket.emit("plugins.poll.updateVote",J,function(ut){if(ut)return W.alertError(ut.message);Z.showResultsPanel()})}}},{register:function(Z){const k=this;Z.dom.removeVoteButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){const k={pollId:Z.pollData.info.pollId};socket.emit("plugins.poll.removeVote",k,function(q){if(q)return W.alertError(q.message);Z.showResultsPanel()})}},{register:function(Z){const k=this;Z.dom.resultsPanelButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){Z.showResultsPanel()}},{register:function(Z){const k=this;Z.dom.votingPanelButton.off("click").on("click",function(){k.handle(Z)})},handle:function(Z){Z.showVotingPanel()}},{register:function(Z){if(!app.user.uid)return;const k=this;Z.dom.resultsPanel.off("click").on("click",".poll-result-votecount",function(q){k.handle(Z,q)})},handle:function(Z,k){const q=$(k.currentTarget).parents("[data-poll-option-id]").data("poll-option-id");socket.emit("plugins.poll.getOptionDetails",{pollId:Z.pollData.info.pollId,optionId:q},function(J,ut){if(J)return W.alertError(J.message);Z.showOptionDetails(ut)})}}],dt=function(Z){this.pollData=Z};dt.prototype.load=async function(){const Z=this;if(!Z.pollData.container.length)return;const k=await app.parseAndTranslate("poll/view",{poll:Z.pollData,isAdmin:app.user.isAdmin});Z.pollData.container.prepend(k),Z.dom={panel:k,votingForm:k.find(".poll-voting-form"),messages:k.find(".poll-view-messages"),votingPanel:k.find(".poll-view-voting"),resultsPanel:k.find(".poll-view-results"),voteButton:k.find(".poll-button-vote"),voteAnonButton:k.find(".poll-button-vote-anon"),updateVoteButton:k.find(".poll-button-update-vote"),removeVoteButton:k.find(".poll-button-remove-vote"),votingPanelButton:k.find(".poll-button-voting"),resultsPanelButton:k.find(".poll-button-results")},Z.hideMessage(),Z.pollEndedOrDeleted(),Z.hasVotedAndVotingUpdateDisallowed(),!app.user.uid||Z.pollData.hasVoted?Z.showResultsPanel
11():Z.showVotingPanel(),st.forEach(function(q){q.register(Z)})},dt.prototype.hasPollEndedOrDeleted=function(){return parseInt(this.pollData.info.ended,10)===1||parseInt(this.pollData.info.deleted,10)===1},dt.prototype.voteUpdateAllowed=function(){return parseInt(this.pollData.info.disallowVoteUpdate,10)!==1},dt.prototype.pollEndedOrDeleted=function(){this.hasPollEndedOrDeleted()&&(this.showResultsPanel(),this.hideVotingPanelButton(),this.showMessage("[[poll:voting_unavailable_title]]","[[poll:voting_unavailable_message]]"))},dt.prototype.hasVotedAndVotingUpdateDisallowed=function(){this.pollData.hasVoted&&!this.voteUpdateAllowed()&&(this.showResultsPanel(),this.hideVotingPanelButton(),this.showMessage("[[poll:voting_unavailable_title]]","[[poll:voting_update_disallowed_message]]"))},dt.prototype.update=function(Z,k){const q=String(k)===String(app.user.uid),J=this.pollData.hasVoted,ut=this.pollData.vote;this.pollData=Z,q||(this.pollData.hasVoted=J,this.pollData.vote=ut),this.pollEndedOrDeleted(),this.pollData.options.forEach(function(F){const K=this.dom.resultsPanel.find("[data-poll-option-id="+F.id+"]");K.find(".poll-result-votecount span").translateText(`[[poll:x-votes, ${F.voteCount}]]`),K.find(".poll-result-progressbar").css("width",F.percentage+"%").find("span.percent").text(F.percentage)},this),this.dom.resultsPanel.find(".poll-result-total-votecount").translateText(`[[poll:total-votes-x, ${Z.info.voteCount}]]`)},dt.prototype.showMessage=function(Z,k){const q=this;app.parseAndTranslate("poll/view/messages",{title:Z,content:k},function(J){q.dom.messages.html(J).removeClass("hidden")})},dt.prototype.hideMessage=function(){this.dom.messages.addClass("hidden")},dt.prototype.showOptionDetails=async function(Z){const[k,q]=await app.require(["modals","benchpressjs"]);if(Z.votes){const ut=await app.require("translator");await Promise.all(Z.votes.map(async F=>{!parseInt(F.uid,10)&&F.displayname&&(F.displayname=await ut.translate(F.displayname))}))}const J=await q.render("poll/view/details",Z);await k.dialog({title:`[[poll:x-users-voted-for-this-option, ${Z.voteCount}]]`,message:J,backdrop:!0,buttons:{close:{label:"[[global:close]]"}}})},dt.prototype.fillVotingForm=function(){const Z=this;this.resetVotingForm(),this.pollData.vote&&this.pollData.vote.options&&this.pollData.vote.options.forEach(function(k){Z.dom.votingForm.find('[data-poll-option-id="'+k+'"].poll-view-option input').prop("checked",!0)})},dt.prototype.resetVotingForm=function(){this.dom.votingForm.get(0).reset()},dt.prototype.showVotingPanel=function(){this.hideResultsPanel(),this.showResultsPanelButton(),this.pollData.hasVoted?this.voteUpdateAllowed()&&!this.hasPollEndedOrDeleted()&&(this.showUpdateVoteButton(),this.showRemoveVoteButton(),this.fillVotingForm()):(this.showVoteButton(),this.pollData.info.allowAnonVoting&&this.showVoteAnonButton()),this.dom.votingPanel.removeClass("hidden")},dt.prototype.hideVotingPanel=function(){this.hideResultsPanelButton(),this.hideUpdateVoteButton(),this.hideRemoveVoteButton(),this.resetVotingForm(),this.hideVoteButton(),this.hideVoteAnonButton(),this.dom.votingPanel.addClass("hidden")},dt.prototype.showResultsPanel=function(){this.hideVotingPanel(),(!this.pollData.hasVoted||this.voteUpdateAllowed())&&!this.hasPollEndedOrDeleted()?this.showVotingPanelButton():this.hideVotingPanelButton(),this.dom.resultsPanel.removeClass("hidden")},dt.prototype.hideResultsPanel=function(){this.hideVotingPanelButton(),this.dom.resultsPanel.addClass("hidden")},dt.prototype.showVoteButton=function(){this.dom.voteButton.removeClass("hidden")},dt.prototype.hideVoteButton=function(){this.dom.voteButton.addClass("hidden")},dt.prototype.showVoteAnonButton=function(){this.dom.voteAnonButton.removeClass("hidden")},dt.prototype.hideVoteAnonButton=function(){this.dom.voteAnonButton.addClass("hidden")},dt.prototype.showUpdateVoteButton=function(){this.dom.updateVoteButton.removeClass("hidden")},dt.prototype.hideUpdateVoteButton=function(){this.dom.updateVoteButton.addClass("hidden")},dt.prototype.showRemoveVoteButton=function(){this.dom.removeVoteButton.removeClass("hidden")},dt.prototype.hideRemoveVoteButton=function(){this.dom.removeVoteButton.addClass("hidden")},dt.prototype.showVotingPanelButton=function(){this.dom.votingPanelButton.removeClass("hidden")},dt.prototype.hideVotingPanelButton=function(){this.dom.votingPanelButton.addClass("hidden")},dt.prototype.showResultsPanelButton=function(){this.dom.resultsPanelButton.removeClass("hidden")},dt.prototype.hideResultsPanelButton=function(){this.dom.resultsPanelButton.addClass("hidden")},W.view={polls:Object.create(null),load:async function(Z){const k=Z.info.pollId;Object.hasOwn(this.polls,k)&&Z.container.find(`[data-poll-id="${k}"]`).remove();const q=new dt(Z);this.polls[k]=q,await q.load()},update:function(Z,k){const q=Z.info.pollId;Object.hasOwn(this.polls,q)&&this.polls[q].update(Z,k)}}})(window.Poll),window.quill={uploads:{}}
11,T=[b(1780),b(9594),b(2473),b(3230),b(9930)],x=((W,z,st,dt,Z)=>{$(window).on("action:composer.loaded",(q,J)=>{const ut=$(`.composer[data-uuid="${J.post_uuid}"]`),F=ut.find(".write-container div");window.quill.init(F,J);const K=ut.find(".category-list");K.length?K.attr("id",`cmp-cid-${J.post_uuid}`):ut.append(`<input id="cmp-cid-${J.post_uuid}" type="hidden" value="${ajaxify.data.cid}"/>`),z.reposition(ut)}),$(window).on("action:composer.check",(q,J)=>{const ut=st.get("composer").filter(`[data-uuid="${J.post_uuid}"]`).find(".ql-container").data("quill");J.bodyLen=ut.getLength()-1}),$(window).on("action:chat.sent",(q,J)=>{const ut=$(`.chat-modal[data-roomid="${J.roomId}"] .ql-container, .expanded-chat[data-roomid="${J.roomId}"] .ql-container`).data("quill");ut.deleteText(0,ut.getLength());const F=$("html").attr("data-dir");ut.format("direction",F),ut.format("align",F==="rtl"?"right":"left")}),$(window).on("action:chat.prepEdit",(q,J)=>{let ut=J.inputEl.val();const F=J.inputEl.siblings(".ql-container").data("quill");try{ut=JSON.parse(ut),F.setContents(ut,"user")}catch{Z.error("[[error:invalid-json]]")}}),$(window).on("action:composer.uploadUpdate",(q,J)=>{}),$(window).on("action:composer.upload",(q,J)=>{const ut=st.get("composer").filter(`[data-uuid="${J.post_uuid}"]`).find(".ql-container").data("quill");J.files.forEach(F=>{const K=k(J.post_uuid,F.filename);if(Z.remove(K),delete window.quill.uploads[F.filename],F.isImage)ut.insertEmbed(ut.getSelection().index,"image",F.url);else{const et=ut.getSelection();if(et.length){const ct=ut.getText(et.index,et.length);ut.deleteText(et.index,et.length),ut.insertText(et.index,ct,{link:F.url})}else ut.insertText(et.index,F.filename,{link:F.url})}})}),$(window).on("action:composer.uploadError",(q,J)=>{const ut=st.get("composer").filter(`[data-uuid="${J.post_uuid}"]`).find(".ql-container").data("quill"),F=st.get("composer").filter(`[data-uuid="${J.post_uuid}"]`).find("textarea");F.val(window.quill.isEmpty(ut)?"":JSON.stringify(ut.getContents())),F.trigger("change"),F.trigger("keyup")}),$(window).on("action:composer.uploadStart",(q,J)=>{J.files.forEach(ut=>{const F=k(J.post_uuid,ut.filename);window.quill.uploads[ut.filename]=ut})}),$(window).on("action:composer.insertIntoTextarea",(q,J)=>{const ut=$(J.textarea).siblings(".ql-container").data("quill"),F=ut.getSelection(!0);ut.insertText(F.index,J.value),J.preventDefault=!0,b.e(3495).then(function(){var K=[b(3495)];(et=>{et.convert.call(ut)}).apply(null,K)}).catch(b.oe)}),$(window).on("action:composer.updateTextareaSelection",(q,J)=>{$(J.textarea).siblings(".ql-container").data("quill").setSelection(J.start,J.end-J.start),J.preventDefault=!0}),$(window).on("action:composer.wrapSelectionInTextareaWith",(q,J)=>{const ut=W.import("delta"),F=$(J.textarea).siblings(".ql-container").data("quill"),K=F.getSelection();let et;K.length?et=F.getContents(K.index,K.length):et=new ut,F.updateContents(new ut().retain(K.index).delete(K.length).insert(J.leading).concat(et).insert(J.trailing)),K.length&&F.setSelection(K.index+J.leading.length,K.length),J.preventDefault=!0}),$(window).on("action:chat.updateRemainingLength",(q,J)=>{const F=J.parent.find(".ql-container").data("quill").getText().length-1;J.parent.find('[component="chat/message/length"]').text(F),J.parent.find('[component="chat/message/remaining"]').text(config.maximumChatMessageLength-F)});function k(q,J){return dt([q,J].join("-"))}}).apply(_={},T),x===void 0&&(x=_),$(window).on("action:chat.loaded",(W,z)=>{Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var st=[b(1431),b(8518),b(2473),b(9930)];((dt,Z,k,q)=>{const J=$("<div></div>").insertBefore(k.get("chat/input")),ut=function(){Z.init($(z))};dt.formatting?window.quill.init(J,{formatting:dt.formatting,theme:"bubble",bounds:z},ut):socket.emit("plugins.composer.getFormattingOptions",(F,K)=>{F&&q.error(F.message),dt.formatting=K,window.quill.init(J,{formatting:dt.formatting,theme:"bubble",bounds:z},ut)})}).apply(null,st)}).catch(b.oe)}),window.quill.init=function(W,z,st){return Promise.all([b.e(56),b.e(8689),b.e(3669)]).then(function(){var dt=[b(1780),b(7994),b(3495),b(7902),b(8518),b(4566)];((Z,k,q,J,ut,F)=>{const K=$("html").attr("data-dir"),et=W.siblings("textarea");window.quill.configureToolbar(W,z).then(({toolbar:ct})=>{Z.register("modules/magicUrl",k.default),Z.register("modules/markdownShortcuts",J);const Tt=new Z(W.get(0),{theme:z.theme||"snow",modules:{toolbar:ct,magicUrl:{normalizeUrlOptions:{sortQueryParameters:!1,defaultProtocol:"https:"}},markdownShortcuts:{}},bounds:z.bounds||document.body});W.data("quill",Tt),W.find(".ql-editor").addClass("write");
11const _t=W.siblings(".ql-toolbar").length?W.siblings(".ql-toolbar"):W.find(".ql-toolbar");z.formatting.forEach(yt=>{const Mt=_t.find(`.ql-${yt.name}`);Mt.html(`<i class="${yt.className}"></i>`),yt.mobile&&Mt.addClass("visible-xs")}),["upload:post:image","upload:post:file"].forEach(yt=>{if(app.user.privileges[yt]){const Mt=yt==="upload:post:image"?"picture":"upload",Ht=_t.find(`.ql-${Mt}`);Mt==="picture"?Ht.html('<i class="fa fa-file-image-o"></i>'):Ht.html('<i class="fa fa-file-o"></i>')}}),$(window).trigger("action:quill.load",Tt);const kt=z.composerData&&F.get(z.composerData.save_id);if(z.composerData&&z.composerData.body){try{const Mt=z.composerData.body.replace(/&quot;/g,'"'),Ht=JSON.parse(Mt);Ht.ops.push({insert:`
12`,attributes:{direction:K,align:K==="rtl"?"right":"left"}}),Tt.setContents(Ht,"api")}catch{Tt.setContents({ops:[{insert:z.composerData.body.toString(),attributes:{direction:K,align:K==="rtl"?"right":"left"}}]},"api")}const yt=Tt.getLength();Tt.setSelection(yt)}else if(kt&&kt.text){W.parents(".composer").find(".title").val(kt.title);const yt=JSON.parse(kt.text);yt.ops.push({insert:`
13`,attributes:{direction:K,align:K==="rtl"?"right":"left"}}),Tt.setContents(yt,"api")}Tt.format("direction",K),Tt.format("align",K==="rtl"?"right":"left"),ut.init(W,z.post_uuid),q.enable(Tt),Tt.on("editor-change",()=>{et.val(JSON.stringify(Tt.getContents())),et.trigger("change"),et.trigger("keyup")}),Tt.on("text-change",()=>{window.quill.isEmpty(Tt)&&(Tt.deleteText(0,Tt.getLength()),et.val(""))});const bt=function(){return setTimeout(q.convert.bind(Tt),0),!$(`.composer-autocomplete-dropdown-${z.post_uuid}:visible`).length};[9,13].forEach(yt=>{Tt.keyboard.addBinding({key:yt},bt),Tt.keyboard.bindings[yt].unshift(Tt.keyboard.bindings[yt].pop())}),(!z.composerData||z.composerData.action!=="topics.post")&&setTimeout(Tt.focus.bind(Tt),0),typeof st=="function"&&st()})}).apply(null,dt)}).catch(b.oe),window.quill},window.quill.configureToolbar=async(W,z)=>{const st=W.siblings("textarea"),[dt,Z]=await new Promise(ut=>{Promise.all([b.e(3662),b.e(47),b.e(449)]).then(function(){var F=[b(449),b(1749)];((...K)=>ut(K)).apply(null,F)}).catch(b.oe)}),k={container:[[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike"],["link","blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{color:[]},{background:[]}],[{align:[]}],["clean"]],handlers:{}},q=dt.getDispatchTable(),J=[];return z.formatting.forEach(ut=>{["tags","thumbs","picture","upload"].includes(ut.name)||(J.push(ut.name),k.handlers[ut.name]=function(){const et=W.data("quill").getSelection(!0);q[ut.name].apply(z.postContainer,[st.get(0),et.index,et.index+et.length])})}),["upload:post:file","upload:post:image"].forEach(ut=>{if(app.user.privileges[ut]){const F=ut==="upload:post:image"?"picture":"upload";J.unshift(F),k.handlers[F]=function(){return q[F].apply(z.postContainer,arguments)}}}),k.container.push(J),await Z.fire("filter:quill.toolbar",{toolbar:k})},window.quill.isEmpty=function(W){const z=W.getContents();if(z.ops.length===1){const st=z.ops[0].insert.replace(/[\s\n]/g,"");return z.ops[0].attributes?!1:st===""}return!1},$(document).ready(()=>{const W=function(z){try{const st=JSON.parse(z);return st.ops=st.ops.map(dt=>(dt.attributes=Object.assign({blockquote:!0},dt.attributes||{}),dt)),JSON.stringify(st)}catch{return JSON.stringify({ops:[{insert:`${z}
14`,attributes:{blockquote:!0}}]})}};$(window).on("action:app.load",()=>{Promise.all([b.e(56),b.e(3662),b.e(47),b.e(7346),b.e(449),b.e(1468)]).then(function(){var z=[b(1431),x];(st=>{$(window).on("action:composer.topic.new",(dt,Z)=>{st.newTopic({cid:Z.cid,title:Z.title||"",body:Z.body||"",tags:Z.tags||[]})}),$(window).on("action:composer.post.edit",(dt,Z)=>{st.editPost({pid:Z.pid})}),$(window).on("action:composer.post.new",(dt,Z)=>{Z.body=Z.body||Z.text,Z.title=Z.title||Z.topicName,st.newReply({tid:Z.tid,toPid:Z.pid,title:Z.title,body:Z.body})}),$(window).on("action:composer.addQuote",(dt,Z)=>{Z.title=Z.title||Z.topicName,Z.body=Z.body||Z.text,st.newReply({tid:Z.tid,toPid:Z.pid,title:Z.title,body:W(Z.body)})})}).apply(null,z)}).catch(b.oe)})});/*!
15* screenfull
16* v5.2.0 - 2021-11-03
17* (c) Sindre Sorhus; MIT License
18*/(function(){"use strict";var W=typeof window<"u"&&typeof window.document<"u"?window.document:{},z=xt.exports,st=(function(){for(var k,q=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
18webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],J=0,ut=q.length,F={};J<ut;J++)if(k=q[J],k&&k[1]in W){for(J=0;J<k.length;J++)F[q[0][J]]=k[J];return F}return!1})(),dt={change:st.fullscreenchange,error:st.fullscreenerror},Z={request:function(k,q){return new Promise(function(J,ut){var F=function(){this.off("change",F),J()}.bind(this);this.on("change",F),k=k||W.documentElement;var K=k[st.requestFullscreen](q);K instanceof Promise&&K.then(F).catch(ut)}.bind(this))},exit:function(){return new Promise(function(k,q){if(!this.isFullscreen){k();return}var J=function(){this.off("change",J),k()}.bind(this);this.on("change",J);var ut=W[st.exitFullscreen]();ut instanceof Promise&&ut.then(J).catch(q)}.bind(this))},toggle:function(k,q){return this.isFullscreen?this.exit():this.request(k,q)},onchange:function(k){this.on("change",k)},onerror:function(k){this.on("error",k)},on:function(k,q){var J=dt[k];J&&W.addEventListener(J,q,!1)},off:function(k,q){var J=dt[k];J&&W.removeEventListener(J,q,!1)},raw:st};if(!st){z?xt.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(Z,{isFullscreen:{get:function(){return!!W[st.fullscreenElement]}},element:{enumerable:!0,get:function(){return W[st.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!W[st.fullscreenEnabled]}}}),z?xt.exports=Z:window.screenfull=Z})(),b.e(4953).then(function(){var W=[b(6243)];(function(z){$(window).on("composer:autocomplete:init chat:autocomplete:init",function(st,dt){z.init(),dt.strategies.push(z.strategy)}),$(window).on("action:chat.loaded",(st,dt)=>{const Z=$(dt),k=Z.find('[component="chat/input"]')[0];Z.find('[data-action="emoji"]').on("click",J=>{b.e(6924).then(function(){var ut=[b(6924)];(function(F){F.toggleForInsert(k,0,0,J)}).apply(null,ut)}).catch(b.oe)})})}).apply(null,W)}).catch(b.oe)},4433(xt,P,b){const T={"./admin":[7740,7,[16]],"./admin.js":[7740,7,[16]],"./advanced/cache":[6160,7,[6972]],"./advanced/cache.js":[6160,7,[6972]],"./advanced/errors":[371,9,[106,4875]],"./advanced/errors.js":[371,9,[106,4875]],"./advanced/events":[7341,7,[56,1977]],"./advanced/events.js":[7341,7,[56,1977]],"./advanced/logs":[5515,7,[6439]],"./advanced/logs.js":[5515,7,[6439]],"./appearance/customise":[9840,7,[6411,675,1396,7172]],"./appearance/customise.js":[9840,7,[6411,675,1396,7172]],"./appearance/skins":[6020,7,[7612]],"./appearance/skins.js":[6020,7,[7612]],"./appearance/themes":[7882,7,[8440]],"./appearance/themes.js":[7882,7,[8440]],"./dashboard":[7971,9,[106,4037]],"./dashboard.js":[7971,9,[106,4037]],"./dashboard/logins":[500,7,[106,8088]],"./dashboard/logins.js":[500,7,[106,8088]],"./dashboard/searches":[5602,7,[2082]],"./dashboard/searches.js":[5602,7,[2082]],"./dashboard/topics":[2866,7,[106,6282]],"./dashboard/topics.js":[2866,7,[106,6282]],"./dashboard/users":[2884,7,[106,5762]],"./dashboard/users.js":[2884,7,[106,5762]],"./extend/plugins":[3360,7,[3662,47,4368]],"./extend/plugins.js":[3360,7,[3662,47,4368]],"./extend/rewards":[4488,7,[3662,47,1268]],"./extend/rewards.js":[4488,7,[3662,47,1268]],"./extend/widgets":[2701,7,[3662,47,1758,6871]],"./extend/widgets.js":[2701,7,[3662,47,1758,6871]],"./federation/analytics":[1017,9,[106,3487]],"./federation/analytics.js":[1017,9,[106,3487]],"./federation/errors":[4034,9,[8756]],"./federation/errors.js":[4034,9,[8756]],"./federation/hashtags":[9416,9,[1838]],"./federation/hashtags.js":[9416,9,[1838]],"./federation/relays":[4043,9,[106,5663]],"./federation/relays.js":[4043,9,[106,5663]],"./federation/rules":[962,9,[762]],"./federation/rules.js":[962,9,[762]],"./federation/safety":[3571,9,[3827]],"./federation/safety.js":[3571,9,[3827]],"./manage/admins-mods":[3665,7,[56,7759]],"./manage/admins-mods.js":[3665,7,[56,7759]],"./manage/api":[135,7,[8285]],"./manage/api.js":[135,7,[8285]],"./manage/categories":[9195,7,[246,479]],"./manage/categories.js":[9195,7,[246,479]],"./manage/category":[6871,7,[6411,1396,7308,3931]],"./manage/category-analytics":[3118,9,[106,3436]],"./manage/category-analytics.js":[3118,9,[106,3436]],"./manage/category-federation":[3251,9,[9587]],"./manage/category-federation.js":[3251,9,[9587]],"./manage/category.js":[6871,7,[6411,1396,7308,3931]],"./manage/digest":[4023,7,[8463]],"./manage/digest.js":[4023,7,[8463]],"./manage/group":[2296,7,[6411,1396,7308,9980]],"./manage/group.js":[2296,7,[6411,1396,7308,9980]],"./manage/groups":[6231,7,[159]],"./manage/groups.js":[6231,7,[159]],"./manage/privileges":[3431,7,[56,6411,1396,1295]],"./manage/privileges.js":[3431,7,[56,6411,1396,1295]],"./manage/tags":[1234,7,[3662,1080]],"./manage/tags.js":[1234,7,[3662,1080]],"./manage/uploads":[4649,7,[8655]],"./manage/uploads.js":[4649,7,[8655]],"./manage/u
18sers":[1847,7,[56,8289]],"./manage/users.js":[1847,7,[56,8289]],"./manage/users/custom-fields":[1135,7,[3662,47,7308,9723]],"./manage/users/custom-fields.js":[1135,7,[3662,47,7308,9723]],"./manage/users/custom-reasons":[9925,7,[3662,47,2075]],"./manage/users/custom-reasons.js":[9925,7,[3662,47,2075]],"./modules/change-email":[6296,7,[3020]],"./modules/change-email.js":[6296,7,[3020]],"./modules/checkboxRowSelector":[2627,7,[9047]],"./modules/checkboxRowSelector.js":[2627,7,[9047]],"./modules/dashboard-line-graph":[8569,9,[106,7843]],"./modules/dashboard-line-graph.js":[8569,9,[106,7843]],"./modules/fullscreen":[8884,9,[4572]],"./modules/fullscreen.js":[8884,9,[4572]],"./modules/instance":[7270,7,[2050]],"./modules/instance.js":[7270,7,[2050]],"./modules/listEditor":[5748,7,[3662,47,9064]],"./modules/listEditor.js":[5748,7,[3662,47,9064]],"./modules/relogin-timer":[6519,9,[8399]],"./modules/relogin-timer.js":[6519,9,[8399]],"./modules/search":[5117,7,[6411,5903]],"./modules/search.js":[5117,7,[6411,5903]],"./modules/selectable":[9905,7,[3662,4819]],"./modules/selectable.js":[9905,7,[3662,4819]],"./plugins/composer-quill":[6196,7,[5672]],"./plugins/composer-quill.js":[6196,7,[5672]],"./plugins/dbsearch":[9512,7,[6411,1396,4832]],"./plugins/dbsearch.js":[9512,7,[6411,1396,4832]],"./plugins/embed":[9785,7,[1799,5505]],"./plugins/embed.js":[9785,7,[1799,5505]],"./plugins/emoji":[6246,7,[6387,896]],"./plugins/emoji.js":[6246,7,[6387,896]],"./plugins/gameday":[3160,7,[1650]],"./plugins/gameday.js":[3160,7,[1650]],"./plugins/harmony":[1602,7,[1308]],"./plugins/harmony.js":[1602,7,[1308]],"./plugins/mentions":[8730,7,[6595]],"./plugins/mentions.js":[8730,7,[6595]],"./plugins/poll":[9399,7,[6485]],"./plugins/poll.js":[9399,7,[6485]],"./plugins/reactions":[6640,7,[3338]],"./plugins/reactions.js":[6640,7,[3338]],"./plugins/s3-uploads":[8731,9,[7573]],"./plugins/s3-uploads.js":[8731,9,[7573]],"./plugins/sso-google":[4939,7,[5417]],"./plugins/sso-google.js":[4939,7,[5417]],"./plugins/tbb-achievements":[6177,7,[56,2275]],"./plugins/tbb-achievements.js":[6177,7,[56,2275]],"./plugins/tbb-bans":[2283,7,[653]],"./plugins/tbb-bans.js":[2283,7,[653]],"./plugins/web-push":[1783,9,[6601]],"./plugins/web-push.js":[1783,9,[6601]],"./settings":[4222,7,[6411,1396]],"./settings.js":[4222,7,[6411,1396]],"./settings/cookies":[5694,7,[2238]],"./settings/cookies.js":[5694,7,[2238]],"./settings/email":[9589,7,[6411,675,1396,8259]],"./settings/email.js":[9589,7,[6411,675,1396,8259]],"./settings/general":[7817,7,[6411,1396,2651]],"./settings/general.js":[7817,7,[6411,1396,2651]],"./settings/navigation":[403,7,[3662,47,1758,7308,5007]],"./settings/navigation.js":[403,7,[3662,47,1758,7308,5007]],"./settings/notifications":[9821,7,[56,8087]],"./settings/notifications.js":[9821,7,[56,8087]]};function x(_){try{if(!b.o(T,_))return Promise.resolve().then(()=>{const v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v})}catch(v){return Promise.reject(v)}const a=T[_],g=a[0];return Promise.all(a[2].map(v=>b.e(v))).then(()=>b.t(g,a[1]|16))}x.keys=()=>Object.keys(T),x.id=4433,xt.exports=x},139(xt,P,b){"use strict";const T=b(1335),x=b(7459),_=b(9930),a=b(1749),{render:g}=b(6814);window.ajaxify=window.ajaxify||{},ajaxify.data=window._ajaxifyData||{},delete window._ajaxifyData,$("script#ajaxify-data").remove(),ajaxify.widgets={render:g},(function(){let v=null,c,d=!0,s="";ajaxify.count=0,ajaxify.currentPage=null,ajaxify.requestedPage=null,"scrollRestoration"in history&&(history.scrollRestoration="manual"),ajaxify.check=f=>{let e,u=f instanceof Element?f.getAttribute("href"):void 0;try{e=new URL(f,`${document.location.origin}${config.relative_path}`),u||({pathname:u}=e)}catch(w){return console.error(w),!1}const h=utils.isInternalURI(e,window.location,config.relative_path),m=w=>w===void 0||w===""||w==="javascript:;";if(f instanceof Element){if(f.getAttribute("data-ajaxify")==="false")return h?null:!1;if(m(e.href)||e.protocol==="javascript:"||u==="#"||u==="")return null}return!(h&&(u.endsWith(".rss")||String(u).startsWith(config.relative_path+"/sitemap")&&u.endsWith(".xml")||["/uploads","/assets/","/api/"].some(function(w){return String(u).startsWith(config.relative_path+w)})))},ajaxify.go=function(f,e,u){return!socket.connected&&parseInt(app.user.uid,10)>=0&&app.reconnect(),ajaxify.requestedPage===f&&c&&Date.now()-c<500||(c=Date.now(),ajaxify.requestedPage=f,ajaxify.handleRedirects(f))?!0:(!u&&f===ajaxify.currentPage+window.location.search+window.location.hash&&(u=!0),ajaxify.cleanup(f,ajaxify.data.template.name),$("#content").hasClass("ajaxifying")&&v&&v.abort(),app.previousUrl=["reset"].includes(ajaxify.currentPage)?app.previousUrl:window.location.pathname.slice(config.relative_path.length)+window.location.search,f=ajaxify.start(f),f===null?(a.fire("action:ajaxify.end",{url:f,tpl_url:ajaxify.data.template.name,title:ajaxify.data.title}),!1):(s=ajaxify.data.bodyClass,$("#footer, #content").removeClass("hide").addClass("ajaxifying"),ajaxify.loadData(f,function(h,m){if((!h||h&&h.data&&parseInt(h.data.status,10)!==302&&parseInt(h.data.status,10)!==308)&&ajaxify.updateHistory(f,u),h)return n(h,f,e,u);d=!0,i(f,m.templateToRender||m.template.name,m,e),setTimeout(()=>{document.activeElement.blur()},0)}),!0))},ajaxify.coldLoad=function(){const f=ajaxify.start(window.location.pathname.slice(1)+window.location.search+window.location.hash);ajaxify.updateHistory(f,!0),ajaxify.end(f,ajaxify.data.template.name),a.fire("action:ajaxify.coldLoad")},ajaxify.isCold=function(){return ajaxify.count<=1},ajaxify.handleRedirects=function(f){f=ajaxify.removeRelativePath(f.replace(/^\/|\/$/g,"")).toLowerCase();const e=f.startsWith("admin"),u=window.location.pathname.indexOf(`${config.relative_path}/admin`)===0;return e&&!u||!e&&u?(window.open(`${config.relative_path}/${f}`,"_top"),!0):!1},ajaxify.start=function(f){f=ajaxify.removeRelativePath(f.replace(/^\/|\/$/g,""));const e={url:f};return a.logs.collect(),a.fire("action:ajaxify.start",e),ajaxify.count+=1,e.url}
18,ajaxify.updateHistory=function(f,e){if(ajaxify.currentPage=f.split(/[?#]/)[0],ajaxify.requestedPage=null,window.history&&window.history.pushState){const u=f&&!f.startsWith("?")&&!f.startsWith("#"),{relative_path:h}=config,m=u?h+"/"+f:h+(f||(h?"":"/"));window.history[e?"replaceState":"pushState"]({url:f},"",m)}};function n(f,e,u,h){const m=f.data,w=f.textStatus;if(m){let A=parseInt(m.status,10);if([400,403,404,500,502,503].includes(A))return A===502&&d?(d=!1,c=void 0,ajaxify.go(e,u,h)):(A===502&&(A=500),m.responseJSON&&(ajaxify.data.bodyClass=m.responseJSON.bodyClass,m.responseJSON.config=config),$("#footer, #content").removeClass("hide").addClass("ajaxifying"),i(e,A.toString(),m.responseJSON||{},u));A===401?(_.error("[[global:please-log-in]]"),app.previousUrl=e,window.location.href=config.relative_path+"/login"):(A===302||A===308)&&(m.responseJSON&&m.responseJSON.external?window.location.href=m.responseJSON.external:typeof m.responseJSON=="string"&&(c=void 0,m.responseJSON.startsWith("http://")||m.responseJSON.startsWith("https://")?window.location.href=m.responseJSON:ajaxify.go(m.responseJSON.slice(1),u,h)))}else w!=="abort"&&_.error(m.responseJSON.error)}function i(f,e,u,h){a.fire("action:ajaxify.loadingTemplates",{}),T.render(e,u).then(function(m){$("body").removeClass(s).addClass(u.bodyClass),$("#content").html(m),ajaxify.end(f,e),typeof h=="function"&&h(),$("#content, #footer").removeClass("ajaxifying"),o(u.title),y()})}async function o(f){if(!f)return;const e={title:f};a.fire("action:ajaxify.updateTitle",e);const[u,h]=await Promise.all([ajaxify.data.template.topic?e.title:x.translateKey(e.title),x.translateKey(config.browserTitle||"")]),m=config.titleLayout.replace(/&#123;/g,"{").replace(/&#125;/g,"}").replace("{pageTitle}",()=>u.slice(0,60)).replace("{browserTitle}",()=>h);window.document.title=utils.decodeHTMLEntities(m)}ajaxify.updateTitle=o;function y(){const f=["title","description",/og:.+/,/article:.+/,"robots"].map(m=>new RegExp(m)),e=["name","property","content","http-equiv"],u=["canonical","alternate","up"],h=["rel","href","type","sizes","hreflang","media"];document.querySelectorAll("head meta").forEach(m=>{const w=m.getAttribute("property")||m.getAttribute("name")||"";f.some(A=>A.test(w))&&m.remove()}),ajaxify.data._header.tags.meta.forEach(async m=>{const w=m.name||m.property;if(f.some(A=>A.test(w))){const A=document.createElement("meta");e.forEach(S=>Object.hasOwn(m,S)&&A.setAttribute(S,m[S])),document.head.appendChild(A)}}),document.querySelectorAll("head link").forEach(m=>{const w=m.getAttribute("rel");u.some(A=>A===w)&&m.remove()}),ajaxify.data._header.tags.link.forEach(async m=>{if(u.some(w=>w===m.rel)){const w=document.createElement("link");h.forEach(A=>Object.hasOwn(m,A)&&w.setAttribute(A,m[A])),document.head.appendChild(w)}})}ajaxify.end=function(f,e){ajaxify.isCold()||(window.scrollTo(0,0),b.e(5928).then(function(){var u=[b(6352)];(function(h){h.shouldScrollToPost(ajaxify.data.postIndex)&&h.scrollToPostIndex(ajaxify.data.postIndex-1,!0,0)}).apply(null,u)}).catch(b.oe)),ajaxify.loadScript(e,function(){a.fire("action:ajaxify.end",{url:f,tpl_url:e,title:ajaxify.data.title}),a.logs.flush()}),ajaxify.widgets.render(e),a.fire("action:ajaxify.contentLoaded",{url:f,tpl:e}),app.processPage()},ajaxify.removeRelativePath=function(f){if(config.relative_path&&f){const e=config.relative_path.slice(1);if(f===e)return"";f.startsWith(`${e}/`)&&(f=f.slice(e.length+1))}return f},ajaxify.refresh=function(f){ajaxify.go(ajaxify.currentPage+window.location.search+window.location.hash,f,!0)},ajaxify.loadScript=function(f,e){let u=app.inAdmin?"":"forum/";f.startsWith("admin")&&(u="");const h={tpl_url:f,scripts:[u+f]};a.fire("action:script.load",h),a.fire("filter:script.load",h).then(m=>{let w=m.scripts.length;const A=m.scripts.map(function(S){return typeof S=="function"?function(I){S(),I()}:typeof S=="string"?async function(I){const R=await app.require(S);a.fire("static:script.init",{tpl_url:f,name:S,module:R}).then(()=>{R&&R.init&&R.init(),I()})}:null}).filter(Boolean);A.length?A.forEach(function(S){S(function(){w-=1,w===0&&e()})}):e()})},ajaxify.loadData=function(f,e){f=ajaxify.removeRelativePath(f),a.fire("action:ajaxify.loadingData",{url:f}),v=$.ajax({url:config.relative_path+"/api/"+f,cache:!1,headers:{"X-Return-To":app.previousUrl},success:function(u,h,m){if(u){if(m.getResponseHeader("X-Redirect"))return e({data:{status:302,responseJSON:u},textStatus:"error"});ajaxify.data=u,u.config=config,a.fire("action:ajaxify.dataLoaded",{url:f,data:u}),e(null,u)}},error:function(u,h){u.status===0&&h==="error"&&(u.status=500,u.responseJSON=u.responseJSON||{},u.responseJSON.error="[[error:no-connection]]"),e({data:u,textStatus:h})}})},ajaxify.loadTemplate=function(f,e){const u=new URL(`${config.asset_base_url}/templates/`,window.location.origin);if(!new URL(`${f}.js`,u).pathname.startsWith(u.pathname)){e(new Error("[[error:invalid-template-path]]"));return}$.ajax({url:`${config.asset_base_url}/templates/${f}.js`,cache:!1,dataType:"text",success:function(m){const w=new Function("module",m),A={exports:{}};
18w(A),e(A.exports)}}).fail(function(){console.error("Unable to load template: "+f),e(new Error("[[error:unable-to-load-template]]"))})},ajaxify.destroyTooltips=()=>{$(".tooltip").each(function(){const f=this.getAttribute("id"),e=f?document.querySelector(`[aria-describedby="${f}"]`):null;if(e&&window.bootstrap&&window.bootstrap.Tooltip){const u=window.bootstrap.Tooltip.getInstance(e);u&&u.hide()}$(this).remove()})},ajaxify.cleanup=(f,e)=>{app.leaveCurrentRoom(),$(window).off("scroll"),ajaxify.destroyTooltips(),a.fire("action:ajaxify.cleanup",{url:f,tpl_url:e})},ajaxify.handleTransientElements=()=>{ajaxify.destroyTooltips();const f=['[component="notifications"]','[component="chat/dropdown"]','[component="sidebar/drafts"]','[component="header/avatar"]'].map(e=>document.querySelector(`${e} .dropdown-menu.show`)||document.querySelector(`${e} + .dropdown-menu.show`)).filter(Boolean);f.length&&f.forEach(e=>{e.classList.remove("show")})},x.translate("[[error:no-connection]]"),x.translate("[[error:socket-reconnect-failed]]"),x.translate(`[[global:reconnecting-message, ${config.siteTitle}]]`),T.registerLoader(ajaxify.loadTemplate),T.setGlobal("config",config),T.render("500",{}),T.render("partials/toast")})(),$(document).ready(function(){window.addEventListener("popstate",c=>{if(c!==null&&c.state){const{returnPath:d}=c.state;c.state.url===null&&d!==void 0?window.history.replaceState({url:d},""):c.state.url!==void 0&&(ajaxify.handleTransientElements(),ajaxify.go(c.state.url,function(){a.fire("action:popstate",{url:c.state.url})},!0))}}),window.addEventListener("pageshow",c=>{c.persisted&&$("#content").hasClass("ajaxifying")&&ajaxify.refresh()});function v(){const c=document.location||window.location,d=c.protocol+"//"+(c.hostname||c.host)+(c.port?":"+c.port:""),s=document.getElementById("content");$(document.body).on("click","a",function(n){const i=this;if(this.target!==""||this.protocol!=="http:"&&this.protocol!=="https:")return;const o=utils.isInternalURI(this,window.location,config.relative_path),y=new RegExp(`^${d}${config.relative_path}/?`),f=function(){if(!n.ctrlKey&&!n.shiftKey&&!n.metaKey&&n.which===1){if(o){const u=this.href.replace(y,"");window.location.pathname===this.pathname&&this.hash.length?window.location.hash=this.hash:ajaxify.go(u)&&n.preventDefault()}else if(window.location.pathname!==config.relative_path+"/outgoing")if(config.openOutgoingLinksInNewTab&&$.contains(s,this)){const u=window.open();u.opener=null,u.location=this.href,n.preventDefault()}else if(config.useOutgoingLinksPage){const u=config.outgoingLinksWhitelist.trim().split(/[\s,]+/g).filter(Boolean),h=this.href;(!u.length||!u.some(function(m){return h.indexOf(m)!==-1}))&&(ajaxify.go("outgoing?url="+encodeURIComponent(h)),n.preventDefault())}else config.activitypub.probe&&(ajaxify.go(`ap?resource=${encodeURIComponent(this.href)}`),n.preventDefault())}};switch(ajaxify.check(this)){case!0:{if(app.flags&&app.flags.hasOwnProperty("_unsaved")&&app.flags._unsaved===!0)return n.ctrlKey?void 0:(b.e(2067).then(function(){var u=[b(5303)];(function(h){h.confirm("[[global:unsaved-changes]]",function(m){m&&(app.flags._unsaved=!1,f.call(i))})}).apply(null,u)}).catch(b.oe),n.preventDefault());f.call(i);break}case null:{n.preventDefault();break}}})}window.history&&window.history.pushState&&v()})},7032(xt,P,b){"use strict";window.$=b(4692),window.jQuery=window.$,b(9336),window.bootbox=b(3530),b(4061),window.utils=b(7918),b(5475);const T=b(1335);T.setGlobal("config",config),T.setGlobal("_i18n",window._i18n),b(76).register(),b(6105),b(178),b(139),Object.defineProperty(app,"isFocused",{get(){return document.visibilityState==="visible"}}),app.currentRoom=null,app.widgets={},app.flags={},app.onDomReady=function(){$(document).ready(async function(){app.user.timeagoCode&&app.user.timeagoCode!=="en"&&await b(8489)("./jquery.timeago."+app.user.timeagoCode),app.load()})},(function(){let x=!1;const _=utils.isTouchDevice();app.cacheBuster=config["cache-buster"],app.coldLoad=function(){x?ajaxify.coldLoad():$(window).one("action:app.load",ajaxify.coldLoad)},app.handleEarlyClicks=function(){if(document.body){let v=[];const c=function(d){let s=d.target.closest("button");const n=d.target.closest("a");!s&&n&&(n.getAttribute("data-ajaxify")==="false"||n.href==="#")&&(s=n),s&&!v.includes(s)&&(v.push(s),d.stopImmediatePropagation(),d.preventDefault())};document.body.addEventListener("click",c),Promise.resolve().then(function(){var d=[b(1749)];(function(s){s.on("action:ajaxify.end",function(){document.body.removeEventListener("click",c),v.forEach(function(n){n.click()}),v=[]})}).apply(null,d)}).catch(b.oe)}else setTimeout(app.handleEarlyClicks,50)},app.handleEarlyClicks(),app.load=function(){$("body").on("click","#new_topic",function(v){v.preventDefault(),app.newTopic()}),g(),b.e(6754).then(function(){var v=[b(4063),b(5967),b(870),b(9749),b(6174),b(1749)];(function(c,d,s,n,i,o){i.prepareDOM(),c.init(),d.init(),n.init(),overrides.overrideTimeago(),o.fire("action:app.load"),s.show(),x=!0}).apply(null,v)}).catch(b.oe)},app.require=async function(v){const c=!Array.isArray(v);c&&(v=[v]);async function d(n){let i;try{switch(n){case"bootbox":return b(3530);case"benchpressjs":return b(1335);case"clipboard":return b(7576)}n.startsWith("admin")?i=await b(4433)("./"+n.replace(/^admin\//,"")):n.startsWith("forum")?i=await b(2508)("./"+n.replace(/^forum\//,"")):i=await b(4366)("./"+n)}catch(o){console.warn(`error loading ${n}
19${o.stack}`)}return i&&i.default?i.default:i}const s=await Promise.all(v.map(d));return c?s.pop():s}
19,app.enterRoom=function(v,c){if(c=c||function(){},socket&&app.user.uid&&app.currentRoom!==v){const d=app.currentRoom;app.currentRoom=v,socket.emit("meta.rooms.enter",{enter:v},function(s){if(s){app.currentRoom=d,Promise.resolve().then(function(){var n=[b(9930)];(function(i){i.error(s)}).apply(null,n)}).catch(b.oe);return}c()})}},app.leaveCurrentRoom=function(){if(!socket||config.maintenanceMode)return;const v=app.currentRoom;app.currentRoom="",socket.emit("meta.rooms.leaveCurrent",function(c){c&&(app.currentRoom=v,Promise.resolve().then(function(){var d=[b(9930)];(function(s){s.error(c)}).apply(null,d)}).catch(b.oe))})};function a(){const v=utils.params();function c(d){const s=new URLSearchParams(d);for(const[n,i]of s)if(v[n]===i)return!0;return!1}$("#main-nav li").find("a").removeClass("active").filter(function(d,s){const n=$(s).attr("href")!=="#",i=s.search&&n&&!c(s.search);return n&&window.location.hostname===s.hostname&&!i&&(window.location.pathname===s.pathname||window.location.pathname.startsWith(s.pathname+"/"))}).addClass("active")}app.createUserTooltips=function(v,c){_||(v=v||$("body"),v.tooltip({selector:".avatar-tooltip",placement:c||"top",container:"#content",animation:!1}))},app.createStatusTooltips=function(){_||($("body").tooltip({selector:'[component="user/status"], [component="user/locality"]',placement:"top",container:"#content",animation:!1}),$("#content").on("inserted.bs.tooltip",function(v){const c=$(v.target);if(c.attr("component")==="user/status"){const d=c.attr("data-new-title");d&&$(".tooltip .tooltip-inner").text(d)}}))},app.processPage=function(){a(),overrides.overrideTimeagoCutoff(),$(".timeago").timeago(),app.createUserTooltips($("#content")),app.createStatusTooltips()},app.toggleNavbar=function(v){Promise.resolve().then(function(){var c=[b(2473)];(d=>{d.get("navbar")[v?"show":"hide"]()}).apply(null,c)}).catch(b.oe)},app.updateUserStatus=function(v,c){v.length&&v.removeClass("online offline dnd away").addClass(c).translateAttr("data-new-title",`[[global:${c}]]`)},app.newTopic=function(v){typeof v!="object"&&(v&&console.warn("[deprecated] app.newTopic(cid, tags) please pass in an object"),v={cid:v,tags:arguments[1]||(ajaxify.data.tag?[ajaxify.data.tag]:[])}),Promise.resolve().then(function(){var c=[b(1749)];(function(d){v.cid=v.cid||ajaxify.data.cid||0,v.tags=v.tags||(ajaxify.data.tag?[ajaxify.data.tag]:[]),d.fire("action:composer.topic.new",v)}).apply(null,c)}).catch(b.oe)},app.newReply=async function(v){typeof v!="object"&&(console.warn("[deprecated] app.newReply(tid) please pass in an object"),v={tid:v});const[c,d]=await app.require(["hooks","api"]);v.title=ajaxify.data.template.topic?ajaxify.data.title:(await d.get(`/topics/${v.tid}`)).title,c.fire("action:composer.post.new",v)},app.loadJQueryUI=function(v){if(typeof $().autocomplete=="function")return v();Promise.all([b.e(3662),b.e(47),b.e(1758),b.e(97)]).then(function(){var c=[b(97),b(5285),b(1758)];(function(){v()}).apply(null,c)}).catch(b.oe)},app.parseAndTranslate=function(v,c,d,s){return typeof c!="string"&&(s=d,d=c,c=void 0),T.render(v,d,c).then(n=>{try{n=$(n)}catch(i){if(i.message.startsWith("Syntax error, unrecognized expression"))n=$(`<div>${n}</div>`);else throw i}return s&&typeof s=="function"&&setTimeout(s,0,n),n})};function g(){"serviceWorker"in navigator&&navigator.serviceWorker.register(config.relative_path+"/service-worker.js",{scope:config.relative_path+"/"}).then(function(){navigator.serviceWorker.addEventListener("message",v=>{const{action:c,url:d}=v.data;c==="ajaxify"&&(ajaxify.check(d)?ajaxify.go(d):window.location.href=d)}),console.info("ServiceWorker registration succeeded.")}).catch(function(v){console.info("ServiceWorker registration failed: ",v)})}})()},2508(xt,P,b){const T={"./account/best":[5345,7,[3400,9016,7761]],"./account/best.js":[5345,7,[3400,9016,7761]],"./account/blocks":[89,7,[3400,4229]],"./account/blocks.js":[89,7,[3400,4229]],"./account/bookmarks":[5066,7,[3400,9016,2214]],"./account/bookmarks.js":[5066,7,[3400,9016,2214]],"./account/categories":[9859,7,[3400,8747]],"./account/categories.js":[9859,7,[3400,8747]],"./account/consent":[4485,7,[3400,5587]],"./account/consent.js":[4485,7,[3400,5587]],"./account/downvoted":[2699,7,[3400,9016,9525]],"./account/downvoted.js":[2699,7,[3400,9016,9525]],"./account/edit":[3387,7,[3400,8391]],"./account/edit.js":[3387,7,[3400,8391]],"./account/edit/password":[6043,7,[3400,6123]],"./account/edit/password.js":[6043,7,[3400,6123]],"./account/edit/username":[182,7,[3400,5512]],"./account/edit/username.js":[182,7,[3400,5512]],"./account/followers":[1420,7,[3400,7184]],"./account/followers.js":[1420,7,[3400,7184]],"./account/following":[3752,7,[3400,9708]],"./account/following.js":[3752,7,[3400,9708]],"./account/groups":[175,7,[3400,7003]],"./account/groups.js":[175,7,[3400,7003]],"./account/header":[7910,7,[3400,4884]],"./account/header.js":[7910,7,[3400,4884]],"./account/ignored":[7645,7,[3400,6923,619]],"./account/ignored.js":[7645,7,[3400,6923,619]],"./account/info":[8435,7,[3400,723]],"./account/info.js":[8435,7,[3400,723]],"./account/posts":[3984,7,[3400,9016]],"./account/posts.js":[3984,7,[3400,9016]],"./account/profile":[4902,7,[3400,6974]],"./account/profile.js":[4902,7,[3400,6974]],"./account/read":[1779,7,[3400,6923,6171]],"./account/read.js":[1779,7,[3400,6923,6171]],"./account/sessions":[1326,7,[3400,2648]],"./account/sessions.js":[1326,7,[3400,2648]],"./account/settings":[8030,7,[56,3400,2380]],"./account/settings.js":[8030,7,[56,3400,2380]],"./account/tags":[3930,7,[56,3400,1852]],"./account/tags.js":[3930,7,[56,3400,1852]],"./account/tbb-badges":[9460,7,[3400,6406]],"./account/tbb-badges.js":[9460,7,[3400,6406]],"./account/tbb-status":[1938,7,[3400,912]],"./account/tbb-status.js":[1938,7,[3400,912]],"./account/theme":[6934,7,[3400,6554]],"./account/theme.js":[6934,7,[3400,6554]],"./account/topics":[6835,7,[3400,6923]],"./account/topics.js":[6835,7,[3400,6923]],"./account/uploads":[7137,7,[3400,2619]],"./account/uploads.js":[7137,7,[3400,2619]],"./account/upvoted":[2176,7,[3400,9016,5860]],"./account/upvoted.js":[2176,7,[3400,9016,5860]],"./account/watched":[685,7,[3400,6923,623]],"./account/watched.js":[685,7,[3400,6923,623]],"./account/web-push":[3586,9,[3452]],"./account/web-push.js":[3586,9,[3452]],"./categories":[9067,7,[7109]],"./categories.js":[9067,7,[7109]],"./category":[4180,7,[5928,8454,5940,954,7597]],"./category.js":[4180,7,[5928,8454,5940,954,7597]],"./category/tools":[1131,7,[5928,8454,5940,5e3]],"./category/tools.js":[1131,7,[5928,8454,5940,5e3]],"./chats":[6255,7,[56,6411,419,238,8636,1462]],"./chats.js":[6255,7,[56,6411,419,238,8636,1462]],"./chats/create":[83,7,[3023]],"./chats/create.js":[83,7,[3023]],"./chats/events":[1746,7,[419,238,9076]],"./chats/events.js":[1746,7,[419,238,9076]],"./chats/manage":[8836,7,[56,2010]],"./chats/manage.js":[8836,7,[56,2010]],"./chats/message-search":[5161,7,[419,9393]],"./chats/message-search.js":[5161,7,[419,9393]],"./chats/messages":[419,7,[419,9127]],"./chats/messages.js":[419,7,[419,9127]],"./chats/pinned-messages":[849,7,[7358]],"./chats/pinned-messages.js":[849,7,[7358]],"./chats/recent":[6832,7,[238,6418]],"./chats/recent.js":[
196832,7,[238,6418]],"./chats/search":[1739,9,[3091]],"./chats/search.js":[1739,9,[3091]],"./chats/user-list":[2513,7,[6227]],"./chats/user-list.js":[2513,7,[6227]],"./chats/user-search":[3309,7,[7147]],"./chats/user-search.js":[3309,7,[7147]],"./compose":[3483,7,[2687]],"./compose.js":[3483,7,[2687]],"./flags/detail":[281,7,[6228]],"./flags/detail.js":[281,7,[6228]],"./flags/list":[3491,9,[56,106,7019]],"./flags/list.js":[3491,9,[56,106,7019]],"./groups/details":[2734,7,[56,7308,408]],"./groups/details.js":[2734,7,[56,7308,408]],"./groups/list":[7130,7,[5490]],"./groups/list.js":[7130,7,[5490]],"./groups/memberlist":[9664,7,[644]],"./groups/memberlist.js":[9664,7,[644]],"./header":[6174,7,[4590]],"./header.js":[6174,7,[4590]],"./header/chat":[1599,7,[3201]],"./header/chat.js":[1599,7,[3201]],"./header/notifications":[1949,7,[8813]],"./header/notifications.js":[1949,7,[8813]],"./header/unread":[9046,7,[8326]],"./header/unread.js":[9046,7,[8326]],"./infinitescroll":[2410,7,[2858]],"./infinitescroll.js":[2410,7,[2858]],"./intents":[3580,9,[3018]],"./intents.js":[3580,9,[3018]],"./ip-blacklist":[5068,9,[106,8300]],"./ip-blacklist.js":[5068,9,[106,8300]],"./login":[7014,7,[9992]],"./login.js":[7014,7,[9992]],"./notifications":[5211,7,[5928,8783]],"./notifications.js":[5211,7,[5928,8783]],"./pagination":[5967,7,[7549]],"./pagination.js":[5967,7,[7549]],"./popular":[5118,7,[5928,8454,5940,954,7616]],"./popular.js":[5118,7,[5928,8454,5940,954,7616]],"./post-queue":[7855,7,[56,6477]],"./post-queue.js":[7855,7,[56,6477]],"./recent":[5280,7,[5928,8454,5940,954,7624]],"./recent.js":[5280,7,[5928,8454,5940,954,7624]],"./register":[34,7,[9034]],"./register.js":[34,7,[9034]],"./registration-queue":[9832,7,[2804]],"./registration-queue.js":[9832,7,[2804]],"./reset":[5132,7,[894]],"./reset.js":[5132,7,[894]],"./reset_code":[686,7,[5898]],"./reset_code.js":[686,7,[5898]],"./search":[187,7,[8201]],"./search.js":[187,7,[8201]],"./tag":[919,7,[5928,8454,5940,954,6587]],"./tag.js":[919,7,[5928,8454,5940,954,6587]],"./tags":[1042,7,[5738]],"./tags.js":[1042,7,[5738]],"./top":[5256,7,[5928,8454,5940,954,5942]],"./top.js":[5256,7,[5928,8454,5940,954,5942]],"./topic":[2148,7,[56,6411,5928,8454,5940,5692,7810]],"./topic.js":[2148,7,[56,6411,5928,8454,5940,5692,7810]],"./topic/change-owner":[7205,7,[56,3097]],"./topic/change-owner.js":[7205,7,[56,3097]],"./topic/crosspost":[7325,7,[411]],"./topic/crosspost.js":[7325,7,[411]],"./topic/delete-posts":[6422,7,[4864]],"./topic/delete-posts.js":[6422,7,[4864]],"./topic/diffs":[2747,7,[2533]],"./topic/diffs.js":[2747,7,[2533]],"./topic/events":[7642,7,[5928,8454,5940,5707]],"./topic/events.js":[7642,7,[5928,8454,5940,5707]],"./topic/fork":[9771,7,[5431]],"./topic/fork.js":[9771,7,[5431]],"./topic/images":[2269,7,[2765]],"./topic/images.js":[2269,7,[2765]],"./topic/manage-editors":[4459,7,[56,1579]],"./topic/manage-editors.js":[4459,7,[56,1579]],"./topic/merge":[2403,7,[8593]],"./topic/merge.js":[2403,7,[8593]],"./topic/move":[8310,7,[9888]],"./topic/move-post":[677,7,[4747]],"./topic/move-post.js":[677,7,[4747]],"./topic/move.js":[8310,7,[9888]],"./topic/postTools":[8454,7,[5928,8454,1374]],"./topic/postTools.js":[8454,7,[5928,8454,1374]],"./topic/posts":[7536,7,[5928,8454,5264]],"./topic/posts.js":[7536,7,[5928,8454,5264]],"./topic/replies":[8631,7,[5928,8454,6177]],"./topic/replies.js":[8631,7,[5928,8454,6177]],"./topic/tag":[63,7,[56,7509]],"./topic/tag.js":[63,7,[56,7509]],"./topic/threadTools":[984,7,[5928,8454,5940]],"./topic/threadTools.js":[984,7,[5928,8454,5940]],"./topic/votes":[4342,7,[3154]],"./topic/votes.js":[4342,7,[3154]],"./unread":[5876,7,[5928,8454,5940,954,7200]],"./unread.js":[5876,7,[5928,8454,5940,954,7200]],"./users":[4567,7,[6131]],"./users.js":[4567,7,[6131]],"./world":[6147,7,[56,6411,5928,8454,5940,5692,755]],"./world.js":[6147,7,[56,6411,5928,8454,5940,5692,755]]};function x(_){try{if(!b.o(T,_))return Promise.resolve().then(()=>{const v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v})}catch(v){return Promise.reject(v)}const a=T[_],g=a[0];
19return Promise.all(a[2].map(v=>b.e(v))).then(()=>b.t(g,a[1]|16))}x.keys=()=>Object.keys(T),x.id=2508,xt.exports=x},9930(xt,P,b){"use strict";b.r(P),b.d(P,{alert:()=>g,error:()=>s,info:()=>c,remove:()=>n,success:()=>v,warning:()=>d});var T=b(2473),x=b.n(T),_=b(1749),a=b.n(_);function g(e){e.alert_id="alert_button_"+(e.alert_id?e.alert_id:new Date().getTime()),e.title=e.title&&String(e.title).trim()||"",e.message=e.message?String(e.message).trim():"",e.type=e.type||"info";const u=$(`#${e.alert_id}`);u.length?i(u,e):o(e)}function v(e,u){g({alert_id:utils.generateUUID(),title:"[[global:alert.success]]",message:e,type:"success",timeout:u!==void 0?u:5e3})}function c(e,u){g({alert_id:utils.generateUUID(),title:"[[global:alert.info]]",message:e,type:"info",timeout:u!==void 0?u:5e3})}function d(e,u){g({alert_id:utils.generateUUID(),title:"[[global:alert.warning]]",message:e,type:"warning",timeout:u!==void 0?u:5e3})}function s(e,u){if(e=e&&e.message||String(e),e==="[[error:revalidate-failure]]"){socket.disconnect(),app.reconnect();return}g({alert_id:utils.generateUUID(),title:"[[global:alert.error]]",message:e,type:"danger",timeout:u||1e4})}function n(e){$("#alert_button_"+e).remove()}async function i(e,u){const h=await app.parseAndTranslate("partials/toast",u);e.find('[component="toast/body"]').replaceWith(h.find('[component="toast/body"]')),e.removeClass("alert-success alert-danger alert-info alert-warning").addClass(`alert-${u.type}`),clearTimeout(parseInt(e.attr("timeoutId"),10)),u.timeout&&f(e,u),_.fire("action:alert.update",{alert:e,params:u}),e.off("click").removeClass("pointer"),typeof u.clickfn=="function"&&e.addClass("pointer").on("click",function(m){$(m.target).is(".btn-close")||(u.clickfn(),y(e))})}function o(e){app.parseAndTranslate("partials/toast",e,function(u){let h=$("#"+e.alert_id);if(h.length)return i(h,e);h=u,h.hide().fadeIn(200).prependTo(T.get("toaster/tray")),h.on("close.bs.alert",function(){typeof e.closefn=="function"&&e.closefn();const m=h.attr("timeoutId");m&&(clearTimeout(m),h.removeAttr("timeoutId"))}),parseInt(e.timeout,10)&&f(h,e),typeof e.clickfn=="function"&&h.addClass("pointer").on("click",function(m){$(m.target).is(".btn-close")||(e.clickfn(h,e),y(h))}),_.fire("action:alert.new",{alert:h,params:e})})}function y(e){e.alert("close")}function f(e,u){const h=parseInt(u.timeout,10),m=setTimeout(function(){e.removeAttr("timeoutId"),y(e),typeof u.timeoutfn=="function"&&u.timeoutfn(e,u)},h);e.attr("timeoutId",m);const w=e.find(".alert-progress");w.css("transition-property","none"),w.removeClass("animate"),setTimeout(function(){w.css("transition-property",""),w.css("transition","width "+(h+450)+"ms linear"),w.addClass("animate"),_.fire("action:alert.animate",{alert:e,alertProgress:w,params:u})},50),e.on("mouseenter",function(){w.css("transition-duration",0)})}},2473(xt,P,b){"use strict";var T;T=(function(){const x={};return x.core={"topic/teaser":function(_){return _?$('[component="category/topic"][data-tid="'+_+'"] [component="topic/teaser"]'):$('[component="topic/teaser"]')},topic:function(_,a){return $('[component="topic"][data-'+_+'="'+a+'"]')},post:function(_,a){return $('[component="post"][data-'+_+'="'+a+'"]')},"post/content":function(_){return $('[component="post"][data-pid="'+_+'"] [component="post/content"]')},"post/header":function(_){return $('[component="post"][data-pid="'+_+'"] [component="post/header"]')},"post/anchor":function(_){return $('[component="post"][data-index="'+_+'"] [component="post/anchor"]')},"post/vote-count":function(_){return $('[component="post"][data-pid="'+_+'"] [component="post/vote-count"]')},"post/bookmark-count":function(_){return $('[component="post"][data-pid="'+_+'"] [component="post/bookmark-count"]')},"user/postcount":function(_){return $('[component="user/postcount"][data-uid="'+_+'"]')},"user/reputation":function(_){return $('[component="user/reputation"][data-uid="'+_+'"]')},"category/topic":function(_,a){return $('[component="category/topic"][data-'+_+'="'+a+'"]')},"categories/category":function(_,a){return $('[component="categories/category"][data-'+_+'="'+a+'"]')},"chat/message":function(_){return $('[component="chat/message"][data-mid="'+_+'"]')},"chat/message/body":function(_){return $('[component="chat/message"][data-mid="'+_+'"] [component="chat/message/body"]')},"chat/recent/room":function(_){return $('[component="chat/recent/room"][data-roomid="'+_+'"]')},"chat/public/room":function(_){return $('[component="chat/public/room"][data-roomid="'+_+'"]')}},x.get=function(){const _=Array.prototype.slice.call(arguments,1
19);return x.core[arguments[0]]&&_.length?x.core[arguments[0]].apply(this,_):$('[component="'+arguments[0]+'"]')},x}).call(P,b,P,xt),T!==void 0&&(xt.exports=T)},9594(xt,P,b){xt.exports=b(7904)},9869(xt){"use strict";xt.exports=function(P,b,T,x){b.setGlobal("true",!0),b.setGlobal("false",!1);const _=1440*60*1e3,a={__escape:g,escape:g,txEscape:T.escape,txEscapeArg:T.escapeArg,tx:v,buildMetaTag:c,buildLinkTag:d,breadCrumbsToJSONLD:s,stringify:n,displayMenuItem:o,stripTags:y,buildCategoryIcon:f,buildCategoryLabel:e,generateCategoryBackground:u,generateChildrenCategories:h,generateTopicClass:m,generateGroupDisplayName:w,membershipBtn:A,spawnPrivilegeStates:S,cacheBustedUrl:I,localeToHTML:R,renderDigestAvatar:r,userAgentIcons:D,buildAvatar:B,renderShortcodeEmoji:dt,increment:G,lessthan:j,greaterthan:rt,max:it,min:Et,clamp:pt,quote:tt,concat:U,txDisplayname:Q,txUsername:X,generateWroteReplied:ot,generateRepliedTo:V,generateWrote:at,encodeURIComponent:wt,isoTimeToLocaleString:mt,shouldHideReplyContainer:Rt,humanReadableNumber:Gt,formattedNumber:Xt,isNumber:W,uploadBasename:z,generatePlaceholderWave:st,register:Z};function g(k){return P.escapeHTML(P.decodeHTMLEntities(k))}function v(k,...q){if(Array.isArray(k)&&k.length&&(q=[...k.slice(1)],k=k[0]),!k)return"";const J=q.length>0,[ut,F]=T.normalizeToken(k,J);!J&&F.length>0&&(q=F);const[K,et]=ut.split(":",2),ct=T.resolveKey(this?._i18n?.[K],et);if(!K||!et||!ct)return T.fixDoubleEscaped(T.escapeHTML(k));const Tt=q.map(_t=>{const kt=T.fixDoubleEscaped(T.escapeHTML(_t));return kt.startsWith("[[")&&kt.endsWith("]]")?v.call(this,kt):kt});return T.replaceArguments(ct,Tt)}function c(k){const q=k.name?`name="${g(k.name)}" `:"",J=k.property?`property="${g(k.property)}" `:"",ut=k.content?k.translate?v.call(this,k.content):k.content.replace(/\n/g," "):"",F=ut?`content="${g(ut)}" `:"";return"<meta "+q+J+F+`/>
20	`}function d(k){const q=["link","rel","as","type","href","hreflang","sizes","title","crossorigin"],[J,ut,F,K,et,ct,Tt,_t,kt]=q.map(bt=>k[bt]?`${bt}="${g(k[bt])}" `:"");return"<link "+J+ut+F+K+Tt+_t+et+ct+kt+`/>
21	`}function s(k){const q=this,J={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:k.filter(Boolean).map((ut,F)=>{const K={"@type":"ListItem",position:F+1,name:v.call(q,ut.text)};return F!==k.length-1&&(K.item=ut.url),K})};return JSON.stringify(J).replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/&/g,"\\u0026")}function n(k){return JSON.stringify(k).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/g,"&quot;")}const i=new Map([["/users","view:users"],["/tags","view:tags"],["/groups","view:groups"]]);function o(k,q){const J=k.navigation[q];if(!J)return!1;if(k.user){for(const[ut,F]of i)if(J.route.startsWith(ut)&&!k.user.privileges[F])return!1}return!0}function y(k,...q){return P.stripHTMLTags(k,[...q])}function f(k,q,J){if(!k)return"";
21const ut=g(q),F=parseInt(q,10)/2||16,K=k.icon?`<i class="fa fa-fw ${g(k.icon)}" style="line-height: ${ut};"></i>`:"";return`<span class="icon d-inline-flex justify-content-center align-items-center align-middle ${J}" style="${u(k)} width:${ut}; height: ${ut}; font-size: ${F}px;">${K}</span>`}function e(k,q="a",J=""){if(!k)return"";J=J?g(J):"";const ut=k.icon?g(k.icon):"",F=g(k.bgColor),K=g(k.color);["a","span"].includes(q)||(q="span");const et=q==="a"?`href="${x}/category/${g(k.slug)}"`:"",ct=y(v.call(this,String(k.name)));return`<${q} component="topic/category" ${et} class="badge px-1 text-truncate text-decoration-none ${J}" style="color: ${K};background-color: ${F};border-color: ${F}!important; max-width: 70vw;">
22			${ut&&ut!=="fa-nbb-none"?`<i class="fa fa-fw ${ut}"></i>`:""}
23			${ct}
24		</${q}>`}function u(k){if(!k)return"";const q=[];if(k.bgColor&&(q.push(`background-color: ${k.bgColor}`),q.push(`border-color: ${k.bgColor} !important`)),k.color&&q.push(`color: ${k.color}`),k.backgroundImage){const J=P.cacheBustedUrl(k.backgroundImage,k["backgroundImage:updatedAt"]);q.push(`background-image: url(${J})`),k.imageClass&&q.push(`background-size: ${k.imageClass}`)}return g(q.join("; ")+";")}function h(k){let q="";return!k||!k.children||!k.children.length?q:(k.children.forEach(function(J){if(J&&!J.isSection){const ut=J.link?J.link:x+"/category/"+J.slug;q+=`<span class="category-children-item"><div role="presentation" class="icon" style="${u(J)}"><i class="fa fa-fw ${g(J.icon)}"></i></div><a href="${g(ut)}"><small>${g(J.name)}</small></a></span>`}}),q&&`<span class="category-children">${q}</span>`)}function m(k){return["locked","pinned","deleted","unread","scheduled"].filter(J=>!!k[J]).join(" ")}function w(k){return k.system?k.displayName.replace(/-/g," "):k.displayName}function A(k,q=""){q=q?g(q):"";const J=k.displayName?g(k.displayName):"";return k.isMember&&k.name!=="administrators"?`<button class="btn btn-danger text-nowrap ${q}" data-action="leave" data-group="${J}" ${k.disableLeave?" disabled":""}><i class="fa fa-times"></i> ${v.call(this,"groups:membership.leave-group")}</button>`:k.isPending&&k.name!=="administrators"?`<button class="btn btn-warning text-nowrap disabled ${q}"><i class="fa fa-clock-o"></i> ${v.call(this,"groups:membership.invitation-pending")}</button>`:k.isInvited?`<button class="btn btn-warning text-nowrap" data-action="rejectInvite" data-group="${J}">${v.call(this,"groups:membership.reject")}</button><button class="btn btn-success" data-action="acceptInvite" data-group="${g(k.name)}"><i class="fa fa-plus"></i> ${v.call(this,"groups:membership.accept-invitation")}</button>`:!k.disableJoinRequests&&k.name!=="administrators"?`<button class="btn btn-success text-nowrap ${q}" data-action="join" data-group="${J}"><i class="fa fa-plus"></i> ${v.call(this,"groups:membership.join-group")}</button>`:""}function S(k,q,J,ut){const F=[];for(const[K,et]of Object.entries(J))F.push({name:K,state:et,type:ut[K]});return F.map(function(K){const et=["groups:moderate","groups:posts:upvote","groups:posts:downvote","groups:local:login","groups:group:create"],ct=["groups:find","groups:read","groups:topics:read","groups:view:users","groups:view:tags","groups:view:groups"],Tt=["groups:moderate"];let _t=["groups:view:users","groups:find","groups:read","groups:topics:read","groups:topics:create","groups:topics:reply","groups:topics:tag","groups:posts:edit","groups:posts:history","groups:posts:delete","groups:posts:upvote","groups:posts:downvote","groups:topics:delete","groups:chat","groups:chat:privileged"];k===-1&&(_t=_t.slice(3));const kt=q==="guests"&&(et.includes(K.name)||K.name.startsWith("groups:admin:"))||q==="spiders"&&!ct.includes(K.name)||q==="fediverse"&&!_t.includes(K.name)||q==="Global Moderators"&&Tt.includes(K.name);return`
25				<td data-privilege="${g(K.name)}" data-value="${g(K.state)}" data-type="${g(K.type)}">
26					<div class="form-check text-center">
27						<input class="form-check-input float-none${kt?' d-none"':""}" autocomplete="off" type="checkbox"${K.state===!0?" checked":""}${kt?' disabled="disabled" aria-diabled="true"':""} />
28					</div>
29				</td>
30			`}).join("")}function I(k,q){return g(P.cacheBustedUrl(k,q))}function R(k,q){return k=k||q||"en-GB",k.replace("_","-")}function r(k){const q=k.teaser&&k.teaser.user?k.teaser.user:k.user;if(!q)return"";const J="vertical-align: middle; width: 32px; height: 32px; border-radius: 50%;",ut=`vertical-align: middle; width: 32px; height: 32px; line-height: 32px; font-size: 16px; color: white; text-align: center; display: inline-block; border-radius: 50%; background-color: ${g(q["icon:bgColor"])};`;return q.picture?`<img style="${J}" src="${g(q.picture)}" title="${g(q.username)}" />`:`<div style="${ut}">${g(q["icon:text"])}</div>`}function D(k){let q="";switch(k.platform){case"Linux":q+='<i class="fa fa-fw fa-linux"></i>';break;case"Microsoft Windows":q+='<i class="fa fa-fw fa-windows"></i>';break;case"Apple Mac":q+='<i class="fa fa-fw fa-apple"></i>';break;case"Android":q+='<i class="fa fa-fw fa-android"></i>';break;case"iPad":q+='<i class="fa fa-fw fa-tablet"></i>';break;case"iPod":case"iPhone":q+='<i class="fa fa-fw fa-mobile"></i>';break;default:q+='<i class="fa fa-fw fa-question-circle"></i>';break}switch(k.browser){case"Chrome":q+='<i class="fa fa-fw fa-chrome"></i>';break;case"Firefox":q+='<i class="fa fa-fw fa-firefox"></i>';break;case"Safari":q+='<i class="fa fa-fw fa-safari"></i>';break;case"Opera":q+='<i class="fa fa-fw fa-opera"></i>';break;case"IE":q+='<i class="fa fa-fw fa-internet-explorer"></i>';break;case"Edge":q+='<i class="fa fa-fw fa-edge"></i>';break;default:q+='<i class="fa fa-fw fa-question-circle"></i>';break}return q}function B(k,q,J,ut,F){k||(k=this),ut=g(ut||""),F=g(F||"");const K=Q.call(this,k),et=g(String(k.picture||"")),ct=g(String(k["icon:bgColor"]||"")),Tt=g(String(k["icon:text"]||"")),_t=new Map([["title",K],["data-uid",g(String(k.uid||""))],["class",`avatar ${ut}${J?" avatar-rounded":""}`]]),kt=g(`--avatar-size: ${q};`),bt=Mt=>Array.from(Mt).reduce((Ht,[Kt,ne])=>(Ht+=` ${Kt}="${ne}"`,Ht),"");let yt="";return k.picture&&(yt+=`<img${bt(_t)} alt="${K}" loading="lazy" component="${F||"avatar/picture"}" src="${et}" style="${kt}" onError="this.remove()" />`),yt+=`<span${bt(_t)} component="${F||"avatar/icon"}" style="${kt} background-color: ${ct}">${Tt}</span>`,yt}function G(k,q){return String(k+parseInt(q,10))}function j(k,q){return parseInt(k,10)<parseInt(q,10)}function rt(k,q){return parseInt(k,10)>parseInt(q,10)}function it(k,q){return Math.max(parseInt(k,10),parseInt(q,10))}function Et(k,q){return Math.min(parseInt(k,10),parseInt(q,10))}function pt(k,q,J){return Math.min(Math.max(parseInt(k,10),parseInt(q,10)),parseInt(J,10))}function tt(k){return`"${k}"`}function U(...k){return k.join("")}function Q(k){return lt.call(this,k,"displayname")}function X(k){return lt.call(this,k,"username")}function lt(k,q){const J=String(k?.[q]||"");return k?.uid===0&&(J==="[[global:former-user]]"||J==="[[global:guest]]")?v.call(this,J):g(J)}function ot(k,q){return k.toPid?V.call(this,k,q):at.call(this,k,q)}function V(k,q){const J=k.parent&&k.parent.displayname?k.parent.displayname:"[[global:guest]]",F=k.timestamp<Date.now()-q*_?"on":"ago";return v.call(this,`topic:replied-to-user-${F}`,g(k.toPid),`${x}/post/${encodeURIComponent(k.toPid)}`,g(J),`${x}/post/${encodeURIComponent(k.pid)}`,k.timestampISO)}function at(k,q){const ut=k.timestamp<Date.now()-q*_?"on":"ago";return v.call(this,`topic:wrote-${ut}`,`${x}/post/${encodeURIComponent(k.pid)}`,k.timestampISO)}function wt(k){return encodeURIComponent(k)}
30function mt(k,q="en-GB"){return new Date(k).toLocaleString([q],{dateStyle:"short",timeStyle:"short"}).replace(/,/g,"&#44;")}function Rt(k){return k.replies.count<=0||k.replies.hasSingleImmediateReply}function Gt(k,q=1){return P.makeNumberHumanReadable(k,q)}function Xt(k){return P.addCommas(k)}function W(k){return P.isNumber(k)}function z(k,q="/"){const J=/^\d+-/,ut=k.substr(k.lastIndexOf(q)+1);return J.test(ut)?ut.slice(14):ut}function st(k){return k.map(J=>J==="divider"?'<li class="dropdown-divider"></li>':`
31			<li class="dropdown-item placeholder-wave">
32				<div class="placeholder" style="width: 20px;"></div>
33				<div class="placeholder col-${parseInt(J,10)||1}"></div>
34			</li>`).join("")}function dt(k,q){if(!k||!q||!q.length)return String(g(k)||"");let J=g(k);for(const{clean:ut,hostname:F}of q){const K=`:${ut}:`,et=`/emoji/ap/${encodeURIComponent(ut)}/${encodeURIComponent(F)}`,ct=`<img class="not-responsive emoji" src="${g(et)}" title="${g(K)}" />`;J=J.split(K).join(ct)}return J}function Z(){Object.keys(a).forEach(function(k){b.registerHelper(k,a[k])})}return a}},76(xt,P,b){"use strict";var T,x;const _=b(9869);T=[b(7918),b(1335),b(7459)],x=(function(a,g,v){return _(a,g,v,config.relative_path)}).apply(P,T),x!==void 0&&(xt.exports=x)},1749(xt,P){"use strict";var b,T;b=[],T=(()=>{const x={loaded:{},temporary:new Set,runOnce:new Set,deprecated:{},logs:{_collection:new Set}};x.logs.collect=()=>{x.logs._collection||(x.logs._collection=new Set)},x.logs.log=(...c)=>{x.logs._collection?x.logs._collection.add(c):console.debug.apply(console,c)},x.logs.flush=()=>{x.logs._collection&&x.logs._collection.size&&(x.logs._collection.forEach(c=>{console.debug.apply(console,c)}),console.groupEnd()),delete x.logs._collection},x.register=(c,d)=>
34{if(x.loaded[c]=x.loaded[c]||new Set,x.loaded[c].add(d),x.deprecated.hasOwnProperty(c)){const s=x.deprecated[c];console.groupCollapsed(s?`[hooks] Hook "${c}" is deprecated, please use "${s}" instead.`:`[hooks] Hook "${c}" is deprecated, there is no alternative.`),console.info(d),console.groupEnd()}return x.logs.log(`[hooks] Registered ${c}`,d),x},x.on=x.register,x.one=(c,d)=>(x.runOnce.add({hookName:c,method:d}),x.register(c,d)),x.registerPage=(c,d)=>(x.temporary.add({hookName:c,method:d}),x.register(c,d)),x.onPage=x.registerPage,x.register("action:ajaxify.start",()=>{x.temporary.forEach(c=>{x.unregister(c.hookName,c.method),x.temporary.delete(c)})}),x.unregister=(c,d)=>(x.loaded[c]&&x.loaded[c].has(d)?(x.loaded[c].delete(d),x.logs.log(`[hooks] Unregistered ${c}`,d)):x.logs.log(`[hooks] Unregistration of ${c} failed, passed-in method is not a registered listener or the hook itself has no listeners, currently.`),x),x.off=x.unregister,x.hasListeners=c=>x.loaded[c]&&x.loaded[c].size>0;const _=(c,d,s)=>(console.warn(`[hooks] Exception encountered in ${d.name?d.name:"anonymous function"}, stack trace follows.`),console.error(c),Promise.resolve(s)),a=(c,d)=>x.hasListeners(c)?Array.from(x.loaded[c]).reduce((n,i)=>n.then(o=>{const y=i(o);return utils.isPromise(y)?y.then(f=>Promise.resolve(f)):y}),Promise.resolve(d)):Promise.resolve(d),g=(c,d)=>{x.hasListeners(c)&&x.loaded[c].forEach(s=>s(d)),$(window).trigger(c,d)},v=async(c,d)=>{if(!x.hasListeners(c))return Promise.resolve(d);const s=Array.from(x.loaded[c]);return await Promise.allSettled(s.map(n=>{try{return n(d)}catch(i){return _(i,n)}})),await Promise.resolve(d)};return x.fire=(c,d)=>{const s=c.split(":").shift();let n;switch(s){case"filter":n=a(c,d);break;case"action":n=g(c,d);break;case"static":n=v(c,d);break}return x.runOnce.forEach(i=>{i.hookName===c&&(x.unregister(c,i.method),x.runOnce.delete(i))}),n},x}).apply(P,b),T!==void 0&&(xt.exports=T)},1780(xt,P,b){xt.exports=b(1574)},3230(xt,P,b){"use strict";var T,x;(function(_){T=_,x=typeof T=="function"?T.call(P,b,P,xt):T,x!==void 0&&(xt.exports=x)})(function(){const _=/[^\p{L}\s\d\-_@.]/gu,a=/[^\w\s\d\-_@.]/g,g=/^\s+|\s+$/g,v=/\s+/g,c=/-+/g,d=/-$/g,s=/^-/g,n=/^[\w\d\s.,\-@]+$/;return function(o,y){return!o||(o=String(o).replace(g,""),n.test(o)?o=o.replace(a,"-"):o=o.replace(_,"-"),o=y?o:o.toLocaleLowerCase(),o=o.replace(v,"-"),o=o.replace(c,"-"),o=o.replace(d,""),o=o.replace(s,""),o==="."||o==="..")?"":o}})},4063(xt,P,b){"use strict";xt=b.nmd(xt);var T,x;T=[b(7459),b(1749),b(76)],x=(function(_,a,g){const v={};let c=!1;v.init=function(){if(v.taskbar=$('[component="taskbar"]'),v.tasklist=v.taskbar.find("ul"),!v.taskbar.length||!v.tasklist.length){c=!0;return}v.taskbar.on("click","li",async function(){const o=$(this),y=o.attr("data-module"),f=o.attr("data-uuid"),e=await app.require(y);return o.hasClass("active")?e.minimize(f):(s(),e.load(f),v.toggleNew(f,!1),v.tasklist.removeClass("active"),o.addClass("active")),!1}),$(window).on("action:app.loggedOut",function(){v.closeAll()})},v.close=async function(o,y){if(c)return;if(v.tasklist.find('[data-module="'+xt+'"][data-uuid="'+y+'"]').length){const e=await app.require(o);e&&typeof e.close=="function"&&e.close(y)}},v.closeAll=function(o){if(c)return;let y="[data-uuid]";o&&(y='[data-module="'+o+'"]'+y),v.tasklist.find(y).each(function(f,e){v.close(o||e.getAttribute("data-module"),e.getAttribute("data-uuid"))})},v.discard=function(o,y){if(c)return;v.tasklist.find('[data-module="'+o+'"][data-uuid="'+y+'"]').remove(),d()},v.push=function(o,y,f,e){if(e=e||function(){},c)return e();const u=v.tasklist.find('li[data-uuid="'+y+'"]'),h={module:o,uuid:y,options:f,element:u};a.fire("filter:taskbar.push",h),!u.length&&h.module?n(h,e):e(u)},v.get=function(o){return c?[]:$('[data-module="'+o+'"]').map(function(f,e){return $(e).data()})},v.minimize=function(o,y){if(c)return;v.tasklist.find('[data-module="'+o+'"][data-uuid="'+y+'"]').toggleClass("active",!1)},v.toggleNew=function(o,y,f){if(c)return;v.tasklist.find('[data-uuid="'+o+'"]').toggleClass("new",y),f||a.fire("action:taskbar.toggleNew",o)}
34,v.updateActive=function(o){if(c)return;const y=v.tasklist.find("li");y.removeClass("active"),y.filter('[data-uuid="'+o+'"]').addClass("active"),$("[data-uuid]:not([data-module])").toggleClass("modal-unfocused",!0),$('[data-uuid="'+o+'"]:not([data-module])').toggleClass("modal-unfocused",!1)},v.isActive=function(o){return c?!1:v.tasklist.find('li[data-uuid="'+o+'"]').hasClass("active")};function d(){if(c)return;v.tasklist.find("li").length>0?v.taskbar.attr("data-active","1"):v.taskbar.removeAttr("data-active")}function s(){c||v.tasklist.find(".active").removeClass("active")}function n(o,y){if(c)return y();_.translate(o.options.title,function(f){const e=g.escape(f||"NodeBB Task"),u=o.options.image?g.escape(o.options.image):"",h=o.options.icon?g.escape(o.options.icon):"",m=$(`<li title="${e}"></li>`).addClass(o.options.className).html('<a href="#"'+(u?` style="background-image: url('${u}'); background-size: cover;"`:"")+">"+(h?`<i class="fa ${h}"></i> `:"")+`<span aria-label="${e}" component="taskbar/title">${e}</span></a>`).attr({"data-module":o.module,"data-uuid":o.uuid}).addClass(o.options.state!==void 0?o.options.state:"active");(!o.options.state||o.options.state==="active")&&s(),v.tasklist.append(m),d(),o.element=m,m.data(o),a.fire("action:taskbar.pushed",o),y(m)})}const i=function(o,y,f){switch(y){case"title":o.find('[component="taskbar/title"]').text(f);break;case"icon":o.find("i").attr("class","fa fa-"+f);break;case"image":o.find("a").css("background-image",f?'url("'+f.replace(/&#x2F;/g,"/")+'")':"");break;case"background-color":o.find("a").css("background-color",f);break;case"color":o.find("a").css("color",f);break}};return v.update=function(o,y,f){if(c)return;const e=v.tasklist.find('[data-module="'+o+'"][data-uuid="'+y+'"]');if(!e.length)return;const u=e.data();Object.keys(f).forEach(function(h){u[h]=f[h],i(e,h,f[h])}),e.data(u)},v}).apply(P,T),x!==void 0&&(xt.exports=x)},92(xt,P,b){"use strict";xt.exports=function(T,x,_){const a=Object.assign||jQuery.extend;function g(m){return T.escapeHTML(T.decodeHTMLEntities(String(m).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")))}function v(m){return m.replace(/&amp;lsqb;/g,"&lsqb;").replace(/&amp;rsqb;/g,"&rsqb;")}function c(m){const w=e(m);return w.length===1&&w[0].tx}function d(m){return e(m).some(w=>w.tx)}function s(m,w){if(!m||!w)return!1;if(typeof m[w]=="string")return m[w];const A=w.split(".");for(let S=0;S<=A.length;S++){if(S===A.length)return m[A[S-1]]!==void 0?m[A[S-1]]:m[""];switch(typeof m[A[S]]){case"object":m=m[A[S]];break;case"string":return S===A.length-1?m[A[S]]:!1;default:return!1}}}function n(m,w=!1){if(typeof m!="string"||m==="")return[String(m),[]];if(m.startsWith("[[")&&m.endsWith("]]")&&(m=m.slice(2,-2)),w)return[m.trim(),[]];const A=y(m);if(A.length===0)return[m.trim(),[]];const S=A[0].trim(),I=A.slice(1).map(R=>R.trim());return[S,I]}function i(m,w){return!Array.isArray(w)||w.length===0?m:(w.forEach((A,S)=>{const I=A.replace(/%(?=\d)/g,"&#37;").replace(/\\,/g,"&#44;");m=m.replaceAll(`%${S+1}`,I)}),o(m))}function o(m){return m.replace(/href\s*=\s*(["'])(.*?)\1/gi,(w,A,S)=>T.isSafeHref(S)?w:'href=""')}function y(m){if(m.indexOf(",")===-1)return[];const w=m.length-1,A=[];let S=0,I=0,R=0;for(;S<w;){const r=m[S],D=m[S+1];r==="["&&D==="["?(R+=1,S+=1):r==="]"&&D==="]"?(R-=1,S+=1):R===0&&r===","&&m[S-1]!=="\\"&&(A.push(m.slice(I,S).trim()),S+=1,I=S),S+=1}return A.push(m.slice(I,S+1).trim()),A}const f=/^\[\[[^[\]\s,]+:[^[\]\s,]+/;function e(m){const w=[];let A=0,S=0;const I=m.length;for(;A<I;){const R=m.indexOf("[[",A);if(R===-1)break;let r=1,D=R+2,B=!1;for(;D<I;){const G=m.indexOf("]]",D);if(G===-1)break;const j=m.indexOf("[[",D);if(j!==-1&&j<G)r++,D=j+2;else if(r--,D=G+2,r===0){B=!0;break}}if(B){const G=m.slice(R,D);if(f.test(G)){R>S&&w.push({text:m.slice(S,R),tx:!1}),w.push({text:G,tx:!0}),S=D,A=D;continue}}A=R+2}return S<I&&w.push({text:m.slice(S),tx:!1}),w}const u=(function(){function m(w){const A=this;if(!w)throw new TypeError("Parameter `language` must be a language string. Received "+w+(w===""?"(empty string)":""));A.modules=Object.keys(m.moduleFactories).map(function(S){const I=m.moduleFactories[S];return[S,I(w)]}
34).reduce(function(S,I){const R=I[0],r=I[1];return S[R]=r,S},{}),A.lang=w,A.translations={}}return m.prototype.load=x,m.prototype.translate=function(A){const S=e(A);return Promise.all(S.map(async I=>{if(I.tx){const[R,r]=n(I.text);return await this.translateKey(R,r,I.text)}return I.text})).then(I=>I.join("")).catch(I=>{_("Translation failed: "+I.stack)})},m.prototype.translateKey=function(A,S,I){const R=this,r=A.split(":",2),D=r[0],B=r[1];return R.modules[D]?Promise.resolve(R.modules[D](B,S)):!D||r.length===1||!B?Promise.resolve(g(I||A)):this.getTranslation(D,B).then(function(j){return j?R.txArgs(S).then(function(rt){return i(j,rt)}):(_('Missing translation "'+A+'" for language "'+R.lang+'"'),g(I||A))})},m.prototype.txArgs=async function(w){return!Array.isArray(w)||w.length===0?w:await Promise.all(w.map(async A=>{const S=v(g(A));if(S.startsWith("[[")&&S.endsWith("]]")){const[I,R]=n(S);return await this.translateKey(I,R)}return S}))},m.prototype.getTranslation=function(A,S){let I;return A?(this.translations[A]=this.translations[A]||this.load(this.lang,A).catch(function(){return{}}),I=this.translations[A]):(_("[translator] Parameter `namespace` is "+A+(A===""?"(empty string)":"")),I=Promise.resolve({})),S?I.then(function(R){return s(R,S)}):I},m.getLanguage=function(){return T.getLanguage()},m.create=function(A){return A||(A=m.getLanguage()),m.cache[A]=m.cache[A]||new m(A),m.cache[A]},m.cache={},m.registerModule=function(A,S){m.moduleFactories[A]=S,Object.keys(m.cache).forEach(function(I){const R=m.cache[I];R.modules[A]=S(R.lang)})},m.moduleFactories={},m.removePatterns=function(A){const S=A.length;let I=0,R=0,r=0,D="",B;for(;I<S;)B=A.slice(I,I+2),B==="[["?(r===0&&(D+=A.slice(R,I)),r+=1,I+=2):B==="]]"?(r-=1,I+=2,r===0&&(R=I)):I+=1;return D+=A.slice(R,I),D},m.escape=function(A){return typeof A=="string"?A.replace(/\[\[/g,"&lsqb;&lsqb;").replace(/\]\]/g,"&rsqb;&rsqb;"):A},m.unescape=function(A){return typeof A=="string"?A.replace(/&rsqb;&rsqb;/g,"]]").replace(/&lsqb;&lsqb;/g,"[["):A},m.compile=function(...A){return`[[${A.map(m.escapeArg).join(", ")}]]`},m.escapeArg=function(w){return w=String(w).replace(/%/g,"&#37;").replace(/,/g,"&#44;"),c(w)?w:m.escape(w)},m})(),h={Translator:u,compile:u.compile,escape:u.escape,unescape:u.unescape,escapeArg:u.escapeArg,escapeHTML:g,fixDoubleEscaped:v,normalizeToken:n,replaceArguments:i,getLanguage:u.getLanguage,rtlLanguages:["ar","fa-IR","he","ur"],languageDirection:function(m){return this.rtlLanguages.includes(m)?"rtl":"ltr"},isTranslationKey:c,hasTranslationKey:d,resolveKey:s,flush:function(){Object.keys(u.cache).forEach(function(m){u.cache[m].translations={}})},flushNamespace:function(m){Object.keys(u.cache).forEach(function(w){u.cache[w]&&u.cache[w].translations&&u.cache[w].translations[m]&&(u.cache[w].translations[m]=null)})},translate:function(w,A,S){let I=S,R=A;return typeof A=="function"&&(I=A,R=null),!(typeof w=="string"||w instanceof String)||w===""?I?setTimeout(I,0,""):"":u.create(R).translate(w).then(function(r){return I&&setTimeout(I,0,r),r},function(r){_("Translation failed: "+r.stack)})},translateKeys:async function(m,w,A){if(!Array.isArray(m))throw new Error("[[error:invalid-data]]");let S=A,I=w;typeof w=="function"&&(S=w,I=null),I=I||u.getLanguage(),m=m.map(r=>typeof r=="string"?[r||"",[],I]:r);const R=await Promise.all(m.map(async r=>{const[D,B,G]=r,j=Array.isArray(B)&&B.length>0,[rt,it]=h.normalizeToken(D,j);let Et=B;!j&&Array.isArray(it)&&it.length>0&&(Et=it);const pt=G||I;return u.create(pt).translateKey(rt,Et,D)}));return typeof S=="function"?setTimeout(S,0,R):R},translateKey:async function(m,w,A){const[S]=await h.translateKeys([[m,w,A]]);return S},addTranslation:function(w,A,S){u.create(w).getTranslation(A).then(function(I){a(I,S)})},getTranslations:function(w,A,S){S=S||function(){},u.create(w).getTranslation(A).then(S)},load:function(w,A,S){h.getTranslations(w,A,S)},toggleTimeagoShorthand:function(w){function A(){const S=a({},jQuery.timeago.settings.strings);jQuery.timeago.settings.strings=a({},h.timeagoShort),h.timeagoShort=a({},S),typeof w=="function"&&w()}if(h.timeagoShort)A();else{let S=T.userLangToTimeagoCode(config.userLang);config.timeagoCodes.includes(S+"-short")||(S="en");const I=a({},jQuery.timeago.settings.strings);h.switchTimeagoLanguage(S+"-short",function(){h.timeagoShort=a({},jQuery.timeago.settings.strings),jQuery.timeago.settings.strings=a({},I),A()})}},switchTimeagoLanguage:function(w,A){delete h.timeagoShort,b(8489)("./jquery.timeago."+w).then(A)}};return h}},7459(xt,P,b){"use strict";var T,x;const _=b(92);T=[b(4692),b(7918)],x=(function(a,g){function v(d,s){return new Promise(function(n,i){a.getJSON([config.asset_base_url,"language",d,s].join("/")+".json?"+config["cache-buster"],function(o){const y={language:d,namespace:s,data:o};Promise.resolve().then(function(){var f=[b(1749)];(function(e){e.fire("action:translator.loadClient",y),n(y.promise?Promise.resolve(y.promise):o)}).apply(null,f)}).catch(b.oe)}).fail(function(o,y,f){i(new Error(y+", "+f))})})}return _(g,v,function(){console.warn.apply(console,arguments)})}).apply(P,T),x!==void 0&&(xt.exports=x)},4366(xt,P,b){const T={"./accounts/delete":[7283,7,[5719]],"./accounts/delete.js":[7283,7,[5719]],"./accounts/invite":[637,7,[5737]],"./accounts/invite.js":[637,7,[5737]],"./accounts/moderate":[8061,7,[2289]],"./accounts/moderate.js":[8061,7,[2289]],"./accounts/picture":[7524,7,[3400]],"./accounts/picture.js":[7524,7,[3400]],"./ace-editor":[2222,9,[675,7960]],"./ace-editor.js":[2222,9,[675,7960]],"./alerts":[9930,9,[]],"./alerts.js":[9930,9,[]],"./api":[9897,9,[4271]],"./api.js":[9897,9,[4271]],"./autocomplete":[4405,7,[56,3417]],"./autocomplete.js":[4405,7,[56,3417]],"./categoryFilter":[9259,7,[183
341]],"./categoryFilter.js":[9259,7,[1831]],"./categorySearch":[6349,7,[9185]],"./categorySearch.js":[6349,7,[9185]],"./categorySelector":[5348,7,[6198]],"./categorySelector.js":[5348,7,[6198]],"./chat":[2619,7,[238,1091]],"./chat.js":[2619,7,[238,1091]],"./components":[2473,7,[]],"./components.js":[2473,7,[]],"./composer":[1431,7,[56,3662,47,7346,449,1468,6379]],"./composer.js":[1431,7,[56,3662,47,7346,449,1468,6379]],"./composer/autocomplete":[8518,7,[56,3848]],"./composer/autocomplete.js":[8518,7,[56,3848]],"./composer/categoryList":[3342,7,[5764]],"./composer/categoryList.js":[3342,7,[5764]],"./composer/controls":[6940,7,[6706]],"./composer/controls.js":[6940,7,[6706]],"./composer/drafts":[4566,7,[2332]],"./composer/drafts.js":[4566,7,[2332]],"./composer/formatting":[449,7,[3662,47,449,8189]],"./composer/formatting.js":[449,7,[3662,47,449,8189]],"./composer/post-queue":[381,7,[8772]],"./composer/post-queue.js":[381,7,[8772]],"./composer/preview":[9596,7,[6232]],"./composer/preview.js":[9596,7,[6232]],"./composer/resize":[9594,7,[8732]],"./composer/resize.js":[9594,7,[8732]],"./composer/scheduler":[2573,7,[4347]],"./composer/scheduler.js":[2573,7,[4347]],"./composer/tags":[2543,7,[1164]],"./composer/tags.js":[2543,7,[1164]],"./composer/uploads":[1494,7,[350]],"./composer/uploads.js":[1494,7,[350]],"./coverPhoto":[6684,7,[7082]],"./coverPhoto.js":[6684,7,[7082]],"./emoji":[6243,7,[4953]],"./emoji-dialog":[6924,7,[5150]],"./emoji-dialog.js":[6924,7,[5150]],"./emoji.js":[6243,7,[4953]],"./flags":[6574,7,[7282]],"./flags.js":[6574,7,[7282]],"./fuzzysearch":[9713,7,[363]],"./fuzzysearch.js":[9713,7,[363]],"./groupSearch":[2954,7,[4866]],"./groupSearch.js":[2954,7,[4866]],"./handleBack":[644,7,[5928,7418]],"./handleBack.js":[644,7,[5928,7418]],"./helpers":[76,7,[]],"./helpers.common":[9869,7,[]],"./helpers.common.js":[9869,7,[]],"./helpers.js":[76,7,[]],"./hooks":[1749,7,[]],"./hooks.js":[1749,7,[]],"./iconSelect":[7308,7,[7308,3602]],"./iconSelect.js":[7308,7,[7308,3602]],"./intents":[1722,9,[9718]],"./intents.js":[1722,9,[9718]],"./leven":[593,7,[5983]],"./leven.js":[593,7,[5983]],"./logout":[5427,7,[739]],"./logout.js":[5427,7,[739]],"./messages":[870,7,[1861]],"./messages.js":[870,7,[1861]],"./modals":[5303,9,[2067]],"./modals.js":[5303,9,[2067]],"./navigator":[6352,7,[5928]],"./navigator.js":[6352,7,[5928]],"./notifications":[6849,7,[5928,1307]],"./notifications.js":[6849,7,[5928,1307]],"./pictureCropper":[2254,7,[6852]],"./pictureCropper.js":[2254,7,[6852]],"./postSelect":[6227,7,[8395]],"./postSelect.js":[6227,7,[8395]],"./quickreply":[5692,7,[56,6411,5692,8314]],"./quickreply.js":[5692,7,[56,6411,5692,8314]],"./quill":[1780,7,[1574,5996]],"./quill-emoji":[3495,7,[1574,2701]],"./quill-emoji.js":[3495,7,[1574,2701]],"./quill-magic-url":[7994,7,[8689,1406]],"./quill-magic-url.js":[7994,7,[8689,1406]],"./quill-markdown-shortcuts":[7902,7,[1574,3324]],"./quill-markdown-shortcuts.js":[7902,7,[1574,3324]],"./quill.js":[1780,7,[1574,5996]],"./resizable":[2680,9,[3696]],"./resizable.js":[2680,9,[3696]],"./scrollStop":[1088,7,[7650]],"./scrollStop.js":[1088,7,[7650]],"./search":[9749,7,[2717]],"./search.js":[9749,7,[2717]],"./settings":[12,7,[8470]],"./settings.js":[12,7,[8470]],"./settings/array":[54,7,[5274]],"./settings/array.js":[54,7,[5274]],"./settings/checkbox":[5210,7,[2032]],"./settings/checkbox.js":[5210,7,[2032]],"./settings/key":[7708,7,[5004]],"./settings/key.js":[7708,7,[5004]],"./settings/number":[474,7,[1848]],"./settings/number.js":[474,7,[1848]],"./settings/object":[6700,7,[8118]],"./settings/object.js":[6700,7,[8118]],"./settings/select":[1575,7,[8815]],"./settings/select.js":[1575,7,[8815]],"./settings/sorted-list":[9175,7,[3662,47,6173]],"./settings/sorted-list.js":[9175,7,[3662,47,6173]],"./settings/textarea":[397,7,[7353]],"./settings/textarea.js":[397,7,[7353]],"./share":[4962,7,[7490]],"./share.js":[4962,7,[7490]],"./slugify":[3230,7,[6174]],"./slugify.js":[3230,7,[6174]],"./sort":[3349,7,[5285]],"./sort.js":[3349,7,[5285]],"./storage":[8636,7,[7212]],"./storage.js":[8636,7,[7212]],"./tagFilter":[5955,7,[8981]],"./tagFilter.js":[5955,7,[8981]],"./taskbar":[4063,7,[3069]],"./taskbar.js":[4063,7,[3069]],"./tbb-news/headline":[1444,3,[8402]],"./tbb-news/headline.js":[1444,3,[8402]],"./topicList":[7682,7,[5928,8454,5940,954]],"./topicList.js":[7682,7,[5928,8454,5940,954]],"./topicSelect":[550,7,[4526]],"./topicSelect.js":[550,7,[4526]],"./topicThumbs":[6159,7,[3662,47,2441]],"./topicThumbs.js":[6159,7,[3662,47,2441]],"./translator":[7459,7,[]],"./translator.common":[92,7,[]],"./translator.common.js":[92,7,[]],"./translator.js":[7459,7,[]],"./uploadHelpers":[5484,7,[3085]],"./uploadHelpers.js":[5484,7,[3085]],"./uploader":[4187,7,[844]],"./uploader.js":[4187,7,[844]],"./userFilter":[4308,7,[6874]],"./userFilter.js":[4308,7,[6874]]};function x(_){try{if(!b.o(T,_))return Promise.resolve().then(()=>{const v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v})}catch(v){return Promise.reject(v)}const a=T[_],g=a[0];
34return Promise.all(a[2].map(v=>b.e(v))).then(()=>b.t(g,a[1]|16))}x.keys=()=>Object.keys(T),x.id=4366,xt.exports=x},178(xt,P,b){"use strict";const T=b(7459);window.overrides=window.overrides||{};function x(_,a,g){return _.each(function(){const v=$(this);T.translate(g,function(c){v[a](c)})})}if(typeof window<"u"){(function(a){a.fn.getCursorPosition=function(){const g=a(this).get(0);let v=0;if("selectionStart"in g)v=g.selectionStart;else if("selection"in document){g.focus();const c=document.selection.createRange(),d=document.selection.createRange().text.length;c.moveStart("character",-g.value.length),v=c.text.length-d}return v},a.fn.selectRange=function(g,v){return v||(v=g),this.each(function(){if(this.setSelectionRange)this.focus(),this.setSelectionRange(g,v);else if(this.createTextRange){const c=this.createTextRange();c.collapse(!0),c.moveEnd("character",v),c.moveStart("character",g),c.select()}})},a.fn.putCursorAtEnd=function(){return this.each(function(){if(a(this).focus(),this.setSelectionRange){const g=a(this).val().length*2;this.setSelectionRange(g,g)}else a(this).val(a(this).val());this.scrollTop=999999})},a.fn.translateHtml=function(g){return x(this,"html",g)},a.fn.translateText=function(g){return x(this,"text",g)},a.fn.translateVal=function(g){return x(this,"val",g)},a.fn.translateAttr=function(g,v){return this.each(function(){const c=a(this);T.translate(v,function(d){c.attr(g,d)})})}})(jQuery||{fn:{}});let _;overrides.overrideTimeagoCutoff=function(){const a=parseInt(ajaxify.data.timeagoCutoff||config.timeagoCutoff,10);a===0?$.timeago.settings.cutoff=1:a>0&&($.timeago.settings.cutoff=864e5*a)},overrides.overrideTimeago=function(){_||(_=$.fn.timeago),overrides.overrideTimeagoCutoff(),$.timeago.settings.allowFuture=!0;const a=config.userLang.replace("_","-"),g={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};let v=function(s){return s.toLocaleString(a,g)};try{typeof Intl<"u"&&(v=new Intl.DateTimeFormat(a,g).format)}catch(s){console.error(s)}let c,d;$.fn.timeago=function(){$(this).each(function(){c=this.getAttribute("title"),c&&(this.setAttribute("datetime",c),d=new Date(c),isNaN(d)||(this.textContent=v(d)))}),_.apply(this,arguments)}}}},6105(xt,P,b){"use strict";const T=b(8007),x=b(4692),{alert:_}=b(9930),a=b(1749),g=b(76);(function(){let v=!1;const c={reconnectionAttempts:config.maxReconnectionAttempts,reconnectionDelay:config.reconnectionDelay,transports:config.socketioTransports,autoConnect:!1,path:config.relative_path+"/socket.io",query:{_csrf:config.csrf_token}};window.socket=T(config.websocketAddress,c);const d=socket.emit;socket.emit=function(m,w,A){if(typeof w=="function"&&(A=w,w=null),typeof A=="function"){d.apply(socket,[m,w,A]);return}return new Promise(function(S,I){d.apply(socket,[m,w,function(R,r){R?I(R):S(r)}])})},parseInt(app.user.uid,10)>=0&&(s(),socket.connect()),app.reconnect=(m=!1)=>{socket.connected||parseInt(app.user.uid,10)<0||(m&&x("#reconnect-alert").removeClass("alert-danger alert-success pointer hide").addClass("alert-warning show").find("p").translateHtml(`[[global:reconnecting-message, ${config.siteTitle}]]`),x("#reconnect").html('<i class="fa fa-spinner fa-spin"></i>'),socket.connect())};function s(){socket.on("connect",o),socket.on("connect_error",function(m){console.error("[socket.io] Connection error:",m)}),socket.on("disconnect",e),socket.io.on("reconnect_failed",function(){x("#reconnect").html('<i class="fa fa-plug text-danger"></i>'),x("#reconnect-alert").removeClass("alert-warning alert-success hide").addClass("alert-danger pointer show").find("p").translateText("[[error:socket-reconnect-failed]]").one("click",()=>app.reconnect(!0)),x(window).one("focus",()=>app.reconnect(!0))}),socket.on("checkSession",function(m){parseInt(m,10)!==parseInt(app.user.uid,10)&&i()}),socket.on("event:invalid_session",()=>{n()}),socket.on("setHostname",function(m){app.upstreamHost=m}),socket.on("event:banned",u),socket.on("event:unbanned",h),socket.on("event:logout",function(){b.e(739).then(function(){var m=[b(5427)];(function(w){w()}).apply(null,m)}).catch(b.oe)}),socket.on("event:alert",m=>_(m)),socket.on("event:deprecated_call",m=>{console.warn("[socket.io]",m.eventName,"is now deprecated",m.replacement?`in favour of ${m.replacement}`:"with no alternative planned.")}
34),socket.on("event:livereload",function(){app.user.isAdmin&&!ajaxify.currentPage.match(/admin/)&&window.location.reload()})}function n(){socket.disconnect(),b.e(9243).then(function(){var m=[b(870),b(5427)];(function(w,A){A(!1),w.showInvalidSession()}).apply(null,m)}).catch(b.oe)}function i(){app.flags._login||app.flags._logout||(socket.disconnect(),b.e(1861).then(function(){var m=[b(870)];(function(w){w.showSessionMismatch()}).apply(null,m)}).catch(b.oe))}async function o(){if(!v)a.fire("action:connected");else{const m=x("#reconnect"),w=x("#reconnect-alert");m.tooltip("dispose"),m.html('<i class="fa fa-check text-success"></i>'),w.removeClass("alert-warning alert-danger").addClass("alert-success").find("p").translateHtml(`[[global:reconnected-message, ${config.siteTitle}]]`),setTimeout(()=>{m.removeClass("active").addClass("hide"),w.removeClass("show").addClass("hide")},3e3),v=!1,y();const{"cache-buster":A,hostname:S}=await socket.emit("meta.reconnected");S===app.upstreamHost&&(!app.cacheBuster||app.cacheBuster!==A)&&(app.cacheBuster=A,_({alert_id:"forum_updated",title:"[[global:updated.title]]",message:"[[global:updated.message]]",clickfn:function(){window.location.reload()},type:"warning"})),a.fire("action:reconnected")}}function y(){if(app.currentRoom){const m=app.currentRoom;app.currentRoom="",app.enterRoom(m)}ajaxify.data.template.chats&&(ajaxify.data.roomId&&socket.emit("modules.chats.enter",ajaxify.data.roomId),ajaxify.data.publicRooms&&socket.emit("modules.chats.enterPublic",ajaxify.data.publicRooms.map(m=>m.roomId)))}function f(){const m=x("#reconnect");m.hasClass("active")||m.html('<i class="fa fa-spinner fa-spin"></i>'),m.addClass("active").removeClass("hide").tooltip({placement:"bottom",animation:!1})}function e(){v=!0,setTimeout(function(){socket.connected||f()},5e3),a.fire("action:disconnected")}function u(m){b.e(2067).then(function(){var w=[b(5303),b(7459)];(function(A,S){const I=m.until?S.compile("error:user-banned-reason-until",new Date(m.until).toLocaleString(),g.escape(m.reason)):S.compile("error:user-banned-reason",g.escape(m.reason));A.alert({title:"[[error:user-banned]]",message:I,closeButton:!1,callback:function(){window.location.href=config.relative_path+"/"}})}).apply(null,w)}).catch(b.oe)}function h(){b.e(2067).then(function(){var m=[b(5303)];(function(w){w.alert({title:"[[global:alert.unbanned]]",message:"[[global:alert.unbanned.message]]",closeButton:!1,callback:function(){window.location.href=config.relative_path+"/"}})}).apply(null,m)}).catch(b.oe)}config.socketioOrigins&&config.socketioOrigins!=="*:*"&&config.socketioOrigins.indexOf(location.hostname)===-1&&console.error('You are accessing the forum from an unknown origin. This will likely result in websockets failing to connect. \nTo fix this, set the `"url"` value in `config.json` to the URL at which you access the site. \nFor more information, see this FAQ topic: https://community.nodebb.org/topic/13388')})()},2103(xt){"use strict";const P=Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"});function b(g){return P[g]}const T=/[&<>"'`=]/g,x=/[\u200B-\u200F\u202A-\u202E\u2066-\u2069\u3164\uFEFF]/,_=Object.freeze({amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:1
3474,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,"OElig;":338,"oelig;":339,"Scaron;":352,"scaron;":353,"Yuml;":376,"fnof;":402,"circ;":710,"tilde;":732,"Alpha;":913,"Beta;":914,"Gamma;":915,"Delta;":916,"Epsilon;":917,"Zeta;":918,"Eta;":919,"Theta;":920,"Iota;":921,"Kappa;":922,"Lambda;":923,"Mu;":924,"Nu;":925,"Xi;":926,"Omicron;":927,"Pi;":928,"Rho;":929,"Sigma;":931,"Tau;":932,"Upsilon;":933,"Phi;":934,"Chi;":935,"Psi;":936,"Omega;":937,"alpha;":945,"beta;":946,"gamma;":947,"delta;":948,"epsilon;":949,"zeta;":950,"eta;":951,"theta;":952,"iota;":953,"kappa;":954,"lambda;":955,"mu;":956,"nu;":957,"xi;":958,"omicron;":959,"pi;":960,"rho;":961,"sigmaf;":962,"sigma;":963,"tau;":964,"upsilon;":965,"phi;":966,"chi;":967,"psi;":968,"omega;":969,"thetasym;":977,"upsih;":978,"piv;":982,"ensp;":8194,"emsp;":8195,"thinsp;":8201,"zwnj;":8204,"zwj;":8205,"lrm;":8206,"rlm;":8207,"ndash;":8211,"mdash;":8212,"lsquo;":8216,"rsquo;":8217,"sbquo;":8218,"ldquo;":8220,"rdquo;":8221,"bdquo;":8222,"dagger;":8224,"Dagger;":8225,"bull;":8226,"hellip;":8230,"permil;":8240,"prime;":8242,"Prime;":8243,"lsaquo;":8249,"rsaquo;":8250,"oline;":8254,"frasl;":8260,"euro;":8364,"image;":8465,"weierp;":8472,"real;":8476,"trade;":8482,"alefsym;":8501,"larr;":8592,"uarr;":8593,"rarr;":8594,"darr;":8595,"harr;":8596,"crarr;":8629,"lArr;":8656,"uArr;":8657,"rArr;":8658,"dArr;":8659,"hArr;":8660,"forall;":8704,"part;":8706,"exist;":8707,"empty;":8709,"nabla;":8711,"isin;":8712,"notin;":8713,"ni;":8715,"prod;":8719,"sum;":8721,"minus;":8722,"lowast;":8727,"radic;":8730,"prop;":8733,"infin;":8734,"ang;":8736,"and;":8743,"or;":8744,"cap;":8745,"cup;":8746,"int;":8747,"there4;":8756,"sim;":8764,"cong;":8773,"asymp;":8776,"ne;":8800,"equiv;":8801,"le;":8804,"ge;":8805,"sub;":8834,"sup;":8835,"nsub;":8836,"sube;":8838,"supe;":8839,"oplus;":8853,"otimes;":8855,"perp;":8869,"sdot;":8901,"lceil;":8968,"rceil;":8969,"lfloor;":8970,"rfloor;":8971,"lang;":9001,"rang;":9002,"loz;":9674,"spades;":9824,"clubs;":9827,"hearts;":9829,"diams;":9830}),a={decodeHTMLEntities:function(g){return String(g).replace(/&#(\d+);?/g,function(v,c){return String.fromCharCode(c)}).replace(/&#[xX]([A-Fa-f0-9]+);?/g,function(v,c){return String.fromCharCode(parseInt(c,16))}).replace(/&([^;\W]+;?)/g,function(v,c){const d=c.replace(/;$/,""),s=_[c]||c.match(/;$/)&&_[d];return typeof s=="number"?String.fromCharCode(s):typeof s=="string"?s:v})},stripHTMLTags:function(g,v){const c=(v||[""]).join("|");return String(g).replace(new RegExp("<(\\/)?("+(c||"[^\\s>]+")+")(\\s+[^<>]*?)?\\s*(\\/)?>","gi"),"")},stripBidiControls:function(g){return g.replace(/[\u202A-\u202E\u2066-\u2069]/gi,"")},cleanUpTag:function(g,v,c){if(typeof g!="string"||!g.length)return"";g=(c===void 0?typeof config<"u"?!config.caseSensitiveTags:!0:!c)?g.trim().toLowerCase():g.trim(),g=a.stripBidiControls(g),g=g.replace(/[,/#!$^*;:{}=_`<>'"~()?|]/g,""),g=g.slice(0,v||15).trim();const s=g.match(/^[.-]*(.+?)[.-]*$/);return s&&s.length>1&&(g=s[1]),g},createFieldChecker:function(g=[]){const v=!g.length;return function(d){return v||g.includes(d)}},removePunctuation:function(g){return g.replace(/[.,-/#!$%^&*;:{}=\-_`<>'"~()?]/g,"")},isEmailValid:function(g){return typeof g=="string"&&g.length&&g.includes("@")&&!g.includes(",")&&!g.includes(";")},isUserNameValid:function(g){return!g||g===""||g.trim().length===0||x.test(g)?!1:/^['" \-+.*[\]0-9\u00BF-\u1FFF\u2C00-\uD7FF\w]+$/.test(g)},isSlugValid:function(g){return!(!g||g===""||g==="."||g===".."||g.trim().length===0||x.test(g))},isPasswordValid:function(g){return typeof g=="string"&&g.length},isNumber:function(g){const v=typeof g;return v!=="number"&&v!=="string"?!1:!isNaN(parseFloat(g))&&isFinite(g)},isPEM:function(g){return!g||typeof g!="string"?!1:g.startsWith("-----BEGIN PUBLIC KEY-----")&&g.trim().endsWith("-----END PUBLIC KEY-----")},languageKeyRegex:/\[\[[\w]+:.+\]\]/,hasLanguageKey:function(g){return a.languageKeyRegex.test(g)},userLangToTimeagoCode:function(g){const v={"en-GB":"en","en-US":"en","fa-IR":"fa","pt-B
34R":"pt-br",nb:"no","nn-NO":"no"};return v.hasOwnProperty(g)?v[g]:g},merge:function(){const g={};let v,c;for(let d=0;d<arguments.length;d+=1){v=arguments[d]||{},c=Object.keys(v);for(let s=0;s<c.length;s+=1)g[c[s]]=v[c[s]]}return g},fileExtension:function(g){return(""+g).split(".").pop()},extensionMimeTypeMap:{bmp:"image/bmp",cmx:"image/x-cmx",cod:"image/cis-cod",gif:"image/gif",ico:"image/x-icon",ief:"image/ief",jfif:"image/pipeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",pbm:"image/x-portable-bitmap",pgm:"image/x-portable-graymap",pnm:"image/x-portable-anymap",ppm:"image/x-portable-pixmap",ras:"image/x-cmu-raster",rgb:"image/x-rgb",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",xbm:"image/x-xbitmap",xpm:"image/x-xpixmap",xwd:"image/x-xwindowdump"},fileMimeType:function(g){return a.extensionToMimeType(a.fileExtension(g))},extensionToMimeType:function(g){return a.extensionMimeTypeMap.hasOwnProperty(g)?a.extensionMimeTypeMap[g]:"*"},isPromise:function(g){return g&&typeof g.then=="function"},promiseParallel:function(g){const v=Object.keys(g);return Promise.all(v.map(function(c){return g[c]})).then(function(c){const d={};return v.forEach(function(s,n){d[s]=c[n]}),d})},isSafeHref:function(g){const v=String(g).trim().toLowerCase(),c=v.startsWith("https://")||v.startsWith("http://"),d=v.startsWith("/")&&!v.startsWith("//");return c||d},isAbsoluteUrlRE:/^[a-zA-Z][a-zA-Z\d+\-.]*:/,isWinPathRE:/^[a-zA-Z]:\\/,isAbsoluteUrl:function(g){return a.isWinPathRE.test(g)?!1:a.isAbsoluteUrlRE.test(g)},isRelativeUrl:function(g){return!a.isAbsoluteUrl(g)},cacheBustedUrl:function(g,v){if(!g||!v)return g;const c=g.includes("?")?"&":"?";return`${g}${c}v=${v}`},makeNumberHumanReadable:function(g,v=1){const c=parseInt(g,10);return c?c>999999?(c/1e6).toFixed(v)+"m":c>999?(c/1e3).toFixed(v)+"k":c:String(g)},addCommas:function(g){return String(g).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},toISOString:function(g){if(!g||!Date.prototype.toISOString)return"";g=Math.min(g,864e13);try{return new Date(parseInt(g,10)).toISOString()}catch{return g}},tags:["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","const","video","wbr"],stripTags:["abbr","acronym","address","applet","area","article","aside","audio","base","basefont","bdi","bdo","big","blink","body","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","input","ins","kbd","keygen","label","legend","li","link","map","mark","marquee","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","source","span","strike","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","const","video","wbr"],escapeRegexChars:function(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},escapeHTML:function(g){return g==null||g===""?"":g?g.toString().replace(T,b):String(g)},isAndroidBrowser:function(g){if(!g)if(typeof navigator<"u"&&navigator.userAgent)g=navigator.userAgent;else return!1;return g.indexOf("Mozilla/5.0")>-1&&g.indexOf("Android ")>-1&&g.indexOf("AppleWebKit")>-1&&!(g.indexOf("Chrome")>-1)},isTouchDevice:function(){return"ontouchstart"in document.documentElement},getHoursArray:function(){const g=new Date().getHours(),v=[];for(let c=g,d=g-24;c>d;c-=1){const s=c<0?24+c:c;v.push(s+":00")}return v.reverse()},getDaysArray:function(g,v){const c=new Date(parseInt(g,10)||Date.now()).getTime(),d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],s=[];let n;for(let i=(v||30)-1;i>=0;i-=1)n=new Date(c-1e3*60*60*24*i),s.push(d[n.getMonth()]+" "+n.getDate());return s},isElementInViewport:function(g){typeof jQuery=="function"&&g instanceof jQuery&&(g=g[0]);const v=g.getBoundingClientRect();return v.top>=0&&v.left>=0&&v.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&v.right<=(window.innerWidth||document.documentElement.clientWidth)},params:function(g={}){let v;g.url&&!g.url.startsWith("http")?v=new URL(g.url,"http://dummybase"):v=new 
34URL(g.url||document.location);let c=v.searchParams;if(g.full)return c;const d={};return c.forEach((s,n)=>{n.endsWith("[]")&&(n=n.slice(0,-2),d[n]=d[n]||[],d[n].push(a.toType(s)))}),Object.keys(d).forEach(s=>{c.delete(`${s}[]`)}),c=Object.fromEntries(c),Object.keys(c).forEach(s=>{c[s]=a.toType(c[s])}),{...c,...d}},param:function(g){return this.params()[g]},urlToLocation:function(g){const v=document.createElement("a");return v.href=g,v},toType:function(g){if(typeof g!=="string")return g;const c=parseFloat(g);if(!isNaN(c)&&isFinite(g))return c;if(g==="false")return!1;if(g==="true")return!0;try{g=JSON.parse(g)}catch{}return g},props:function(g,v,c){if(g===void 0&&(g=window),v==null)return;const d=v.indexOf(".");if(d===-1)return c!==void 0&&(g[v]=c),g[v];const s=v.slice(0,d),n=v.slice(d+1);return v!==void 0&&!(g[s]instanceof Object)&&(g[s]={}),a.props(g[s],n,c)},isInternalURI:function(g,v,c){return g.host===""||g.host===v.host&&g.protocol===v.protocol&&(c.length>0?g.pathname.indexOf(c)===0:!0)},rtrim:function(g){return g.replace(/\s+$/g,"")},maskToken:function(g){return g=String(g||""),g?`${g.slice(0,4)}...${g.slice(-4)}`:""},debounce:function(g,v,c){let d;return function(){const s=this,n=arguments,i=function(){d=null,c||g.apply(s,n)},o=c&&!d;clearTimeout(d),d=setTimeout(i,v),o&&g.apply(s,n)}},throttle:function(g,v,c){let d;return function(){const s=this,n=arguments,i=function(){d=null,g.apply(s,n)},o=c&&!d;d||(d=setTimeout(i,v)),o&&g.apply(s,n)}},generateSaveId:function(g){return["composer",g,Date.now()].join(":")}};xt.exports=a},7918(xt,P,b){"use strict";const T=b(4692),x={...b(2103)};x.getLanguage=function(){let _="en-GB";return typeof window=="object"&&window.config&&(_=x.params().lang||window.config.userLang||window.config.defaultLang||"en-GB"),_},x.makeNumbersHumanReadable=function(_){_.each(function(){const a=T(this),g=a.attr("data-toFixed")||1;a.text(x.makeNumberHumanReadable(a.attr("title"),g)).removeClass("hidden")})},x.addCommasToNumbers=function(_){_.each(function(a,g){const v=T(g);v.text(x.addCommas(v.text())).removeClass("hidden")})},x.findBootstrapEnvironment=function(){const _=["xs","sm","md","lg","xl","xxl"],a=document.createElement("div");document.body.appendChild(a);let g=_[0];for(let v=_.length-1;v>=0;v-=1){const c=_[v];if(a.classList.add(`d-${c}-none`),window.getComputedStyle(a).display==="none"){g=c;break}}return document.body.removeChild(a),g},x.isMobile=function(){const _=x.findBootstrapEnvironment();return["xs","sm"].some(function(a){return a===_})},x.assertPasswordValidity=(_,a)=>{if(x.isPasswordValid(_)){if(_.length<ajaxify.data.minimumPasswordLength)throw new Error("[[reset_password:password-too-short]]");if(_.length>512)throw new Error("[[error:password-too-long]]")}else throw new Error("[[user:change-password-error]]");if(typeof a!="function")return;if(a(_).score<ajaxify.data.minimumPasswordStrength)throw new Error("[[user:weak-password]]")},x.generateUUID=function(){const _=URL.createObjectURL(new Blob),a=_.toString();return URL.revokeObjectURL(_),a.split(/[:/]/g).pop().toLowerCase()},xt.exports=x},6814(xt,P,b){"use strict";xt.exports.render=function(T){if(T.match(/^admin/))return;Object.keys(ajaxify.data.widgets).forEach(function(_){let a=$('#content [widget-area="'+_+'"],#content [data-widget-area="'+_+'"]').eq(0);const g=ajaxify.data.widgets[_]||[];if(a.length||!g.length)return;const v=g.map(c=>c.html).join("");v&&(_==="footer"&&!$('#content [widget-area="footer"],#content [data-widget-area="footer"]').length?$("#content").append($('<div data-widget-area="footer"></div>')):_==="sidebar"&&!$('#content [widget-area="sidebar"],#content [data-widget-area="sidebar"]').length?$('[component="account/cover"]').length?$('[component="account/cover"]').nextAll().wrapAll($('<div class="row"><div class="col-lg-9 col-12"></div><div data-widget-area="sidebar" class="col-lg-3 col-12"></div></div></div>')):$('[component="groups/cover"]').length?$('[component="groups/cover"]').nextAll().wrapAll($('<div class="row"><div class="col-lg-9 col-12"></div><div data-widget-area="sidebar" class="col-lg-3 col-12"></div></div></div>')):$("#content > *").wrapAll($('<div class="row"><div class="col-lg-9 col-12"></div><div data-widget-area="sidebar" class="col-lg-3 col-12"></div></div></div>')):_==="header"&&!$('#content [widget-area="header"],#content [data-widget-area="header"]').length&&$("#content").prepend($('
34<div class="row"><div data-widget-area="header" class="col-12"></div></div>')),a=$('#content [widget-area="'+_+'"],#content [data-widget-area="'+_+'"]').eq(0),v&&a.length&&(a.html(v),a.find("img:not(.not-responsive)").addClass("img-fluid")),g.length&&a.removeClass("hidden"))}),Promise.resolve().then(function(){var _=[b(1749)];(function(a){a.fire("action:widgets.loaded",{})}).apply(null,_)}).catch(b.oe)}},1335(xt,P,b){var T,x;(function(_){T=_,x=typeof T=="function"?T.call(P,b,P,xt):T,x!==void 0&&(xt.exports=x)})(function(){const _=(function(){"use strict";function o(u){return u==null||Array.isArray(u)&&u.length===0?"":u}function y(u,h){if(!u||typeof u!="object")return"";let m="";const w=Object.keys(u),A=w.length;for(let S=0;S<A;S+=1){const I=w[S];m+=h(I,S,A,u[I])}return m}function f(u,h,m,w){if(typeof h[m]!="function")return"";try{return h[m].apply(u,w)||""}catch{return""}}function e(u,h,m){return o(m(u,h,o,y,f)).toString()}return typeof Promise.try!="function"&&(Promise.try={try(u){return new Promise(h=>{h(u())})}}.try),e})(),a=xt.exports?xt.exports:{};a.runtime=_,a.helpers={},a.registerHelper=function(y,f){a.helpers[y]=f};const g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},v=o=>g[o],c=/[&<>"'`=]/g;a.registerHelper("__escape",o=>o==null?"":o?o.toString().replace(c,v):String(o)),a.cache={},a.globals={},a.setGlobal=function(y,f){a.globals[y]=f};const d=Object.assign||jQuery.extend;a.addGlobals=function(y){return d({},a.globals,y)},a.flush=function(){a.cache={}};function s(o){return new Promise((y,f)=>{const e=a.loader(o,u=>{y(u)});e&&e.then&&e.then(y,f)})}function n(o,y,f){return y=a.addGlobals(y||{}),Promise.try(()=>(a.cache[o]=a.cache[o]||s(o),a.cache[o])).then(e=>(f&&(e=e.blocks&&e.blocks[f]),e?_(a.helpers,y,e):""))}function i(o,y,f,e){if(console.warn("Deprecated: Benchpress.parse is deprecated, to be removed in v3.0.0"),!e&&typeof y=="object"&&typeof f=="function"&&(e=f,f=y,y=null),typeof e!="function")throw TypeError("Invalid Arguments: callback must be a function");if(!o){e("");return}n(o,f,y).then(u=>setTimeout(e,0,u),u=>console.error(u))}return a.render=n,a.parse=i,a.registerLoader=function(y){a.loader=y},a})},3530(xt,P,b){var T,x,_;/*! @preserve
35* bootbox.js
36* version: 6.0.4
37* author: Nick Payne <[email protected]>
38* license: MIT
39* http://bootboxjs.com/
40*/(function(a,g){"use strict";x=[b(4692)],T=g,_=typeof T=="function"?T.apply(P,x):T,_!==void 0&&(xt.exports=_)})(this,function a(g,v){"use strict";let c={},d="6.0.4";c.VERSION=d;let s={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"}},n={dialog:'<div class="bootbox modal" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-body"><div class="bootbox-body"></div></div></div></div></div>',header:'<div class="modal-header"><h5 class="modal-title"></h5></div>',footer:'<div class="modal-footer"></div>',closeButton:'<button type="button" class="bootbox-close-button close btn-close" aria-hidden="true" aria-label="Close"></button>',form:'<form class="bootbox-form"></form>',button:'<button type="button" class="btn"></button>',option:'<option value=""></option>',promptMessage:'<div class="bootbox-prompt-message"></div>',inputs:{text:'<input class="bootbox-input bootbox-input-text form-control" autocomplete="off" type="text" />',textarea:'<textarea class="bootbox-input bootbox-input-textarea form-control"></textarea>',email:'<input class="bootbox-input bootbox-input-email form-control" autocomplete="off" type="email" />',select:'<select class="bootbox-input bootbox-input-select form-select"></select>',checkbox:'<div class="form-check checkbox"><label class="form-check-label">
40<input class="form-check-input bootbox-input bootbox-input-checkbox" type="checkbox" /></label></div>',radio:'<div class="form-check radio"><label class="form-check-label"><input class="form-check-input bootbox-input bootbox-input-radio" type="radio" name="bootbox-radio" /></label></div>',date:'<input class="bootbox-input bootbox-input-date form-control" autocomplete="off" type="date" />',time:'<input class="bootbox-input bootbox-input-time form-control" autocomplete="off" type="time" />',number:'<input class="bootbox-input bootbox-input-number form-control" autocomplete="off" type="number" />',password:'<input class="bootbox-input bootbox-input-password form-control" autocomplete="off" type="password" />',range:'<input class="bootbox-input bootbox-input-range form-control-range" autocomplete="off" type="range" />'}},i={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body",value:"",inputType:"text",errorMessage:null,swapButtonOrder:!1,centerVertical:!1,multiple:!1,scrollable:!1,reusable:!1,relatedTarget:null,size:null,id:null};c.locales=function(j){return j?s[j]:s},c.addLocale=function(j,rt){return g.each(["OK","CANCEL","CONFIRM"],function(it,Et){if(!rt[Et])throw new Error('Please supply a translation for "'+Et+'"')}),s[j]={OK:rt.OK,CANCEL:rt.CANCEL,CONFIRM:rt.CONFIRM},c},c.removeLocale=function(j){if(j!=="en")delete s[j];else throw new Error('"en" is used as the default and fallback locale and cannot be removed.');return c},c.setLocale=function(j){return c.setDefaults("locale",j)},c.setDefaults=function(){let j={};return arguments.length===2?j[arguments[0]]=arguments[1]:j=arguments[0],g.extend(i,j),c},c.hideAll=function(){return g(".bootbox").modal("hide"),c},c.init=function(j){return a(j||g)},c.dialog=function(j){if(g.fn.modal===v)throw new Error('"$.fn.modal" is not defined; please double check you have included the Bootstrap JavaScript library. See https://getbootstrap.com/docs/5.3/getting-started/introduction/ for more details.');if(j=m(j),g.fn.modal.Constructor.VERSION){j.fullBootstrapVersion=g.fn.modal.Constructor.VERSION;let X=j.fullBootstrapVersion.indexOf(".");j.bootstrap=j.fullBootstrapVersion.substring(0,X)}else j.bootstrap="2",j.fullBootstrapVersion="2.3.2",console.warn("Bootbox will *mostly* work with Bootstrap 2, but we do not officially support it. Please upgrade, if possible.");let rt=g(n.dialog),it=rt.find(".modal-dialog"),Et=rt.find(".modal-body"),pt=g(n.header),tt=g(n.footer),U=j.buttons,Q={onEscape:j.onEscape};if(Et.find(".bootbox-body").html(j.message),w(j.buttons)>0&&(A(U,function(X,lt){let ot=g(n.button);switch(ot.data("bb-handler",X),ot.addClass(lt.className),X){case"ok":case"confirm":ot.addClass("bootbox-accept");break;case"cancel":ot.addClass("bootbox-cancel");break}ot.html(lt.label),lt.id&&ot.attr({id:lt.id}),lt.disabled===!0&&ot.prop({disabled:!0}),tt.append(ot),Q[X]=lt.callback}),Et.after(tt)),j.animate===!0&&rt.addClass("fade"),j.className&&rt.addClass(j.className),j.id&&rt.attr({id:j.id}),j.size)switch(j.fullBootstrapVersion.substring(0,3)<"3.1"&&console.warn('"size" requires Bootstrap 3.1.0 or higher. You appear to be using '+j.fullBootstrapVersion+". Please upgrade to use this option."),j.size){case"small":case"sm":it.addClass("modal-sm");break;case"large":case"lg":it.addClass("modal-lg");break;case"extra-large":case"xl":it.addClass("modal-xl"),j.fullBootstrapVersion.substring(0,3)<"4.2"&&console.warn('Using size "xl"/"extra-large" requires Bootstrap 4.2.0 or higher. You appear to be using '+j.fullBootstrapVersion+". Please upgrade to use this option.");break}if(j.scrollable&&(it.addClass("modal-dialog-scrollable"),j.fullBootstrapVersion.substring(0,3)<"4.3"&&console.warn('Using "scrollable" requires Bootstrap 4.3.0 or higher. You appear to be using '+j.fullBootstrapVersion+". Please upgrade to use this option.")),j.title||j.closeButton){if(j.title?pt.find(".modal-title").html(j.title):pt.addClass("border-0"),j.closeButton){let X=g(n.closeButton);j.bootstrap<5&&X.html("&times;"),j.bootstrap<4?pt.prepend(X):pt.append(X)}Et.before(pt)}if(j.centerVertical&&(it.addClass("modal-dialog-centered"),j.fullBootstrapVersion<"4.0.0"&&c
40onsole.warn('"centerVertical" requires Bootstrap 4.0.0-beta.3 or higher. You appear to be using '+j.fullBootstrapVersion+". Please upgrade to use this option.")),j.reusable||(rt.one("hide.bs.modal",{dialog:rt},R),rt.one("hidden.bs.modal",{dialog:rt},I)),j.onHide)if(typeof j.onHide=="function")rt.on("hide.bs.modal",j.onHide);else throw new Error('Argument supplied to "onHide" must be a function');if(j.onHidden)if(typeof j.onHidden=="function")rt.on("hidden.bs.modal",j.onHidden);else throw new Error('Argument supplied to "onHidden" must be a function');if(j.onShow)if(typeof j.onShow=="function")rt.on("show.bs.modal",j.onShow);else throw new Error('Argument supplied to "onShow" must be a function');if(rt.one("shown.bs.modal",{dialog:rt},S),j.onShown)if(typeof j.onShown=="function")rt.on("shown.bs.modal",j.onShown);else throw new Error('Argument supplied to "onShown" must be a function');if(j.backdrop===!0){let X=!1;rt.on("mousedown",".modal-content",function(lt){lt.stopPropagation(),X=!0}),rt.on("click.dismiss.bs.modal",function(lt){X||lt.target!==lt.currentTarget||rt.trigger("escape.close.bb")})}return rt.on("escape.close.bb",function(X){Q.onEscape&&r(X,rt,Q.onEscape)}),rt.on("click",".modal-footer button:not(.disabled)",function(X){let lt=g(this).data("bb-handler");lt!==v&&r(X,rt,Q[lt])}),rt.on("click",".bootbox-close-button",function(X){r(X,rt,Q.onEscape)}),rt.on("keyup",function(X){X.which===27&&rt.trigger("escape.close.bb")}),g(j.container).append(rt),rt.modal({backdrop:j.backdrop,keyboard:!1,show:!1}),j.show&&rt.modal("show",j.relatedTarget),rt},c.alert=function(){let j;if(j=f("alert",["ok"],["message","callback"],arguments),j.callback&&typeof j.callback!="function")throw new Error('alert requires the "callback" property to be a function when provided');return j.buttons.ok.callback=j.onEscape=function(){return typeof j.callback=="function"?j.callback.call(this):!0},c.dialog(j)},c.confirm=function(){let j;if(j=f("confirm",["cancel","confirm"],["message","callback"],arguments),typeof j.callback!="function")throw new Error("confirm requires a callback");return j.buttons.cancel.callback=j.onEscape=function(){return j.callback.call(this,!1)},j.buttons.confirm.callback=function(){return j.callback.call(this,!0)},c.dialog(j)},c.prompt=function(){let j,rt,it,Et,pt,tt;if(it=g(n.form),j=f("prompt",["cancel","confirm"],["title","callback"],arguments),j.value||(j.value=i.value),j.inputType||(j.inputType=i.inputType),pt=j.show===v?i.show:j.show,j.show=!1,j.buttons.cancel.callback=j.onEscape=function(){return j.callback.call(this,null)},j.buttons.confirm.callback=function(){let U;if(j.inputType==="checkbox"){if(U=Et.find("input:checked").map(function(){return g(this).val()}).get(),U.length===0&&j.required===!0)return!1}else if(j.inputType==="radio")U=Et.find("input:checked").val();else{let Q=Et[0];if(Q.checkValidity&&!Q.checkValidity())return j.errorMessage&&Q.setCustomValidity(j.errorMessage),Q.reportValidity&&Q.reportValidity(),!1;j.inputType==="select"&&j.multiple===!0?U=Et.find("option:selected").map(function(){return g(this).val()}).get():U=Et.val()}return j.callback.call(this,U)},!j.title)throw new Error("prompt requires a title");if(typeof j.callback!="function")throw new Error("prompt requires a callback");if(!n.inputs[j.inputType])throw new Error("Invalid prompt type");switch(Et=g(n.inputs[j.inputType]),j.inputType){case"text":case"textarea":case"email":case"password":Et.val(j.value),j.placeholder&&Et.attr("placeholder",j.placeholder),j.pattern&&Et.attr("pattern",j.pattern),j.maxlength&&Et.attr("maxlength",j.maxlength),j.required&&Et.prop({required:!0}),j.rows&&!isNaN(parseInt(j.rows))&&j.inputType==="textarea"&&Et.attr({rows:j.rows});break;case"date":case"time":case"number":case"range":if(Et.val(j.value),j.placeholder&&Et.attr("placeholder",j.placeholder),j.pattern?Et.attr("pattern",j.pattern):j.inputType==="date"?Et.attr("pattern","d{4}-d{2}-d{2}"):j.inputType==="time"&&Et.attr("pattern","d{2}:d{2}"),j.required&&Et.prop({required:!0}),j.step)if(j.step==="any"||!isNaN(j.step)&&parseFloat(j.step)>0)Et.attr("step",j.step);else throw new Error('"step" must be a valid positive number or the value "any". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-step for more information.');D(j.inputType,j.min,j.max)&&(j.min!==v&&Et.attr("min",j.min),j.max!==v&&Et.attr("max",j.max));break;case"select":let U={};if(tt=j.inputOptions||[],!Array.isArray(tt))throw new Error("Please pass an array of input options");
40if(!tt.length)throw new Error('prompt with "inputType" set to "select" requires at least one option');j.required&&Et.prop({required:!0}),j.multiple&&Et.prop({multiple:!0}),A(tt,function(lt,ot){let V=Et;if(ot.value===v||ot.text===v)throw new Error('each option needs a "value" property and a "text" property');ot.group&&(U[ot.group]||(U[ot.group]=g("<optgroup />").attr("label",ot.group)),V=U[ot.group]);let at=g(n.option);at.attr("value",ot.value).text(ot.text),V.append(at)}),A(U,function(lt,ot){Et.append(ot)}),Et.val(j.value),j.bootstrap<5&&Et.removeClass("form-select").addClass("form-control");break;case"checkbox":let Q=Array.isArray(j.value)?j.value:[j.value];if(tt=j.inputOptions||[],!tt.length)throw new Error('prompt with "inputType" set to "checkbox" requires at least one option');Et=g('<div class="bootbox-checkbox-list"></div>'),A(tt,function(lt,ot){if(ot.value===v||ot.text===v)throw new Error('each option needs a "value" property and a "text" property');let V=g(n.inputs[j.inputType]);V.find("input").attr("value",ot.value),V.find("label").append(`
41`+ot.text),A(Q,function(at,wt){wt===ot.value&&V.find("input").prop("checked",!0)}),Et.append(V)});break;case"radio":if(j.value!==v&&Array.isArray(j.value))throw new Error('prompt with "inputType" set to "radio" requires a single, non-array value for "value"');if(tt=j.inputOptions||[],!tt.length)throw new Error('prompt with "inputType" set to "radio" requires at least one option');Et=g('<div class="bootbox-radiobutton-list"></div>');let X=!0;A(tt,function(lt,ot){if(ot.value===v||ot.text===v)throw new Error('each option needs a "value" property and a "text" property');let V=g(n.inputs[j.inputType]);V.find("input").attr("value",ot.value),V.find("label").append(`
42`+ot.text),j.value!==v&&ot.value===j.value&&(V.find("input").prop("checked",!0),X=!1),Et.append(V)}),X&&Et.find('input[type="radio"]').first().prop("checked",!0);break}if(it.append(Et),it.on("submit",function(U){U.preventDefault(),U.stopPropagation(),rt.find(".bootbox-accept").trigger("click")}),j.message&&j.message.trim()!==""){let U=g(n.promptMessage).html(j.message);
42it.prepend(U),j.message=it}else j.message=it;return rt=c.dialog(j),rt.off("shown.bs.modal",S),rt.on("shown.bs.modal",function(){Et.focus()}),pt===!0&&rt.modal("show"),rt};function o(j,rt){let it=j.length,Et={};if(it<1||it>2)throw new Error("Invalid argument length");return it===2||typeof j[0]=="string"?(Et[rt[0]]=j[0],Et[rt[1]]=j[1]):Et=j[0],Et}function y(j,rt,it){return g.extend(!0,{},j,o(rt,it))}function f(j,rt,it,Et){let pt;Et&&Et[0]&&(pt=Et[0].locale||i.locale,(Et[0].swapButtonOrder||i.swapButtonOrder)&&(rt=rt.reverse()));let tt={className:"bootbox-"+j,buttons:u(rt,pt)};return e(y(tt,Et,it),rt)}function e(j,rt){let it={};return A(rt,function(Et,pt){it[pt]=!0}),A(j.buttons,function(Et){if(it[Et]===v)throw new Error('button key "'+Et+'" is not allowed (options are '+rt.join(" ")+")")}),j}function u(j,rt){let it={};for(let Et=0,pt=j.length;Et<pt;Et++){let tt=j[Et],U=tt.toLowerCase(),Q=tt.toUpperCase();it[U]={label:h(Q,rt)}}return it}function h(j,rt){let it=s[rt];return it?it[j]:s.en[j]}function m(j){let rt,it;if(typeof j!="object")throw new Error("Please supply an object of options");if(!j.message)throw new Error('"message" option must not be null or an empty string.');return j=g.extend({},i,j),j.backdrop?j.backdrop=typeof j.backdrop=="string"&&j.backdrop.toLowerCase()==="static"?"static":!0:j.backdrop=j.backdrop===!1||j.backdrop===0?!1:"static",j.buttons||(j.buttons={}),rt=j.buttons,it=w(rt),A(rt,function(Et,pt,tt){if(typeof pt=="function"&&(pt=rt[Et]={callback:pt}),typeof pt!="object")throw new Error('button with key "'+Et+'" must be an object');if(pt.label||(pt.label=Et),!pt.className){let U=!1;j.swapButtonOrder?U=tt===0:U=tt===it-1,it<=2&&U?pt.className="btn-primary":pt.className="btn-secondary btn-default"}}),j}function w(j){return Object.keys(j).length}function A(j,rt){let it=0;g.each(j,function(Et,pt){rt(Et,pt,it++)})}function S(j){j.data.dialog.find(".bootbox-accept").first().trigger("focus")}function I(j){j.target===j.data.dialog[0]&&j.data.dialog.remove()}function R(j){j.target===j.data.dialog[0]&&(j.data.dialog.off("escape.close.bb"),j.data.dialog.off("click"))}function r(j,rt,it){j.stopPropagation(),j.preventDefault(),typeof it=="function"&&it.call(rt,j)===!1||rt.modal("hide")}function D(j,rt,it){let Et=!1,pt=!0,tt=!0;if(j==="date")rt!==v&&!(pt=G(rt))?console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your min value may not be enforced by this browser.'):it!==v&&!(tt=G(it))&&console.warn('Browsers which natively support the "date" input type expect date values to be of the form "YYYY-MM-DD" (see ISO-8601 https://www.iso.org/iso-8601-date-and-time-format.html). Bootbox does not enforce this rule, but your max value may not be enforced by this browser.');else if(j==="time"){if(rt!==v&&!(pt=B(rt)))throw new Error('"min" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.');if(it!==v&&!(tt=B(it)))throw new Error('"max" is not a valid time. See https://www.w3.org/TR/2012/WD-html-markup-20120315/datatypes.html#form.data.time for more information.')}else{if(rt!==v&&isNaN(rt))throw pt=!1,new Error('"min" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-min for more information.');if(it!==v&&isNaN(it))throw tt=!1,new Error('"max" must be a valid number. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.')}if(pt&&tt){if(it<rt)throw new Error('"max" must be greater than or equal to "min". See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-max for more information.');Et=!0}return Et}function B(j){return/([01][0-9]|2[0-3]):[0-5][0-9]?:[0-5][0-9]/.test(j)}function G(j){return/(\d{4})-(\d{2})-(\d{2})/.test(j)}return c})},9336(xt,P,b){"use strict";b.r(P),b.d(P,{Alert:()=>H,Button:()=>se,Carousel:()=>Lt,Collapse:()=>Br,Dropdown:()=>jn,Modal:()=>dr,Offcanvas:()=>Un,Popover:()=>Bi,ScrollSpy:()=>si,Tab:()=>gr,Toast:()=>li,Tooltip:()=>hr});var T={};b.r(T),b.d(T,{afterMain:()=>S,afterRead:()=>m,afterWrite:()=>r,applyStyles:()=>tt,arrow:()=>Tt,auto:()=>v,basePlacements:()=>c,beforeMain:()=>w,beforeRead:()=>u,beforeWrite:()=>I,bottom:()=>_,clippingParents:()=>n,computeStyles:()=>Ht,createPopper:()=>xr,createPopperBase:()=>Qi,createPopperLite:()=>Kr,detectOverflow:()=>Le,end:()=>s,eventListeners:()=>re,flip:()=>Rn,hide:()=>di,left:()=>g,main:()=>A,modifierPhases:()=>D,offset:()=>pi,placements:()=>e,popper:()=>o,popperGenerator:()=>Wn,popperOffsets:()=>Hr,preventOverflow:()=>Ar,read:()=>h,reference:()=>y,right:()=>a,start:()=>d,top:()=>x,variationPlacements:()=>f,viewport:()=>i,write:()=>R});var x="top",_="bottom",a="right",g="left",v="auto",c=[x,_,a,g],d="start",s="end",n="clippingParents",i="viewport",o="popper",y="reference",f=c.reduce(function(N,l){return N.concat([l+"-"+d,l+"-"+s])},[]),e=[].concat(c,[v]).reduce(function(N,l){return N.concat([l,l+"-"+d,l+"-"+s])},[]),u="beforeRead",h="read",m="afterRead",w="beforeMain",A="main",S="afterMain",I="beforeWrite",R="write",r="afterWrite",D=[u,h,m,w,A,S,I,R,r];function B(N){return N?(N.nodeName||"").toLowerCase():null}function G(N){if(N==null)return window;if(N.toString()!=="[object Window]"){var l=N.ownerDocument;return l&&l.defaultView||window}return N}function j(N){var l=G(N).Element;return N instanceof l||N instanceof Element}function rt(N){var l=G(N).HTMLElement;return N instanceof l||N instanceof HTMLElement}function it(N){if(typeof ShadowRoot>"u")return!1;var l=G(N).ShadowRoot;return N instanceof l||N instanceof ShadowRoot}function Et(N){var l=N.state;
vendor: 17,497 bytes, line 42
42Object.keys(l.elements).forEach(function(O){var Y=l.styles[O]||{},ht=l.attributes[O]||{},Ot=l.elements[O];!rt(Ot)||!B(Ot)||(Object.assign(Ot.style,Y),Object.keys(ht).forEach(function(Nt){var $t=ht[Nt];$t===!1?Ot.removeAttribute(Nt):Ot.setAttribute(Nt,$t===!0?"":$t)}))})}function pt(N){var l=N.state,O={popper:{position:l.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(l.elements.popper.style,O.popper),l.styles=O,l.elements.arrow&&Object.assign(l.elements.arrow.style,O.arrow),function(){Object.keys(l.elements).forEach(function(Y){var ht=l.elements[Y],Ot=l.attributes[Y]||{},Nt=Object.keys(l.styles.hasOwnProperty(Y)?l.styles[Y]:O[Y]),$t=Nt.reduce(function(Wt,ie){return Wt[ie]="",Wt},{});!rt(ht)||!B(ht)||(Object.assign(ht.style,$t),Object.keys(Ot).forEach(function(Wt){ht.removeAttribute(Wt)}))})}}const tt={name:"applyStyles",enabled:!0,phase:"write",fn:Et,effect:pt,requires:["computeStyles"]};function U(N){return N.split("-")[0]}var Q=Math.max,X=Math.min,lt=Math.round;function ot(){var N=navigator.userAgentData;return N!=null&&N.brands&&Array.isArray(N.brands)?N.brands.map(function(l){return l.brand+"/"+l.version}).join(" "):navigator.userAgent}function V(){return!/^((?!chrome|android).)*safari/i.test(ot())}function at(N,l,O){l===void 0&&(l=!1),O===void 0&&(O=!1);var Y=N.getBoundingClientRect(),ht=1,Ot=1;l&&rt(N)&&(ht=N.offsetWidth>0&&lt(Y.width)/N.offsetWidth||1,Ot=N.offsetHeight>0&&lt(Y.height)/N.offsetHeight||1);var Nt=j(N)?G(N):window,$t=Nt.visualViewport,Wt=!V()&&O,ie=(Y.left+(Wt&&$t?$t.offsetLeft:0))/ht,zt=(Y.top+(Wt&&$t?$t.offsetTop:0))/Ot,ge=Y.width/ht,Ee=Y.height/Ot;return{width:ge,height:Ee,top:zt,right:ie+ge,bottom:zt+Ee,left:ie,x:ie,y:zt}}function wt(N){var l=at(N),O=N.offsetWidth,Y=N.offsetHeight;return Math.abs(l.width-O)<=1&&(O=l.width),Math.abs(l.height-Y)<=1&&(Y=l.height),{x:N.offsetLeft,y:N.offsetTop,width:O,height:Y}}function mt(N,l){var O=l.getRootNode&&l.getRootNode();if(N.contains(l))return!0;if(O&&it(O)){var Y=l;do{if(Y&&N.isSameNode(Y))return!0;Y=Y.parentNode||Y.host}while(Y)}return!1}function Rt(N){return G(N).getComputedStyle(N)}function Gt(N){return["table","td","th"].indexOf(B(N))>=0}function Xt(N){return((j(N)?N.ownerDocument:N.document)||window.document).documentElement}function W(N){return B(N)==="html"?N:N.assignedSlot||N.parentNode||(it(N)?N.host:null)||Xt(N)}function z(N){return!rt(N)||Rt(N).position==="fixed"?null:N.offsetParent}function st(N){var l=/firefox/i.test(ot()),O=/Trident/i.test(ot());if(O&&rt(N)){var Y=Rt(N);if(Y.position==="fixed")return null}var ht=W(N);for(it(ht)&&(ht=ht.host);rt(ht)&&["html","body"].indexOf(B(ht))<0;){var Ot=Rt(ht);if(Ot.transform!=="none"||Ot.perspective!=="none"||Ot.contain==="paint"||["transform","perspective"].indexOf(Ot.willChange)!==-1||l&&Ot.willChange==="filter"||l&&Ot.filter&&Ot.filter!=="none")return ht;ht=ht.parentNode}return null}function dt(N){for(var l=G(N),O=z(N);O&&Gt(O)&&Rt(O).position==="static";)O=z(O);return O&&(B(O)==="html"||B(O)==="body"&&Rt(O).position==="static")?l:O||st(N)||l}function Z(N){return["top","bottom"].indexOf(N)>=0?"x":"y"}function k(N,l,O){return Q(N,X(l,O))}function q(N,l,O){var Y=k(N,l,O);return Y>O?O:Y}function J(){return{top:0,right:0,bottom:0,left:0}}function ut(N){return Object.assign({},J(),N)}function F(N,l){return l.reduce(function(O,Y){return O[Y]=N,O},{})}var K=function(l,O){return l=typeof l=="function"?l(Object.assign({},O.rects,{placement:O.placement})):l,ut(typeof l!="number"?l:F(l,c))};function et(N){var l,O=N.state,Y=N.name,ht=N.options,Ot=O.elements.arrow,Nt=O.modifiersData.popperOffsets,$t=U(O.placement),Wt=Z($t),ie=[g,a].indexOf($t)>=0,zt=ie?"height":"width";if(!(!Ot||!Nt)){var ge=K(ht.padding,O),Ee=wt(Ot),me=Wt==="y"?x:g,De=Wt==="y"?_:a,we=O.rects.reference[zt]+O.rects.reference[Wt]-Nt[Wt]-O.rects.popper[zt],ke=Nt[Wt]-O.rects.reference[Wt],Ie=dt(Ot),We=Ie?Wt==="y"?Ie.clientHeight||0:Ie.clientWidth||0:0,Ve=we/2-ke/2,xe=ge[me],Pe=We-Ee[zt]-ge[De],Re=We/2-Ee[zt]/2+Ve,Be=k(xe,Re,Pe),nn=Wt;O.modifiersData[Y]=(l={},l[nn]=Be,l.centerOffset=Be-Re,l)}}function ct(N){var l=N.state,O=N.options,Y=O.element,ht=Y===void 0?"[data-popper-arrow]":Y;ht!=null&&(typeof ht=="string"&&(ht=l.elements.popper.querySelector(ht),!ht)||mt(l.elements.popper,ht)&&(l.elements.arrow=ht))}const Tt={name:"arrow",enabled:!0,phase:"main",fn:et,effect:ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _t(N){return N.split("-")[1]}var kt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bt(N,l){var O=N.x,Y=N.y,ht=l.devicePixelRatio||1;return{x:lt(O*ht)/ht||0,y:lt(Y*ht)/ht||0}}function yt(N){var l,O=N.popper,Y=N.popperRect,ht=N.placement,Ot=N.variation,Nt=N.offsets,$t=N.position,Wt=N.gpuAcceleration,ie=N.adaptive,zt=N.roundOffsets,ge=N.isFixed,Ee=Nt.x,me=Ee===void 0?0:Ee,De=Nt.y,we=De===void 0?0:De,ke=typeof zt=="function"?zt({x:me,y:we}):{x:me,y:we};me=ke.x,we=ke.y;var Ie=Nt.hasOwnProperty("x"),We=Nt.hasOwnProperty("y"),Ve=g,xe=x,Pe=window;if(ie){var Re=dt(O),Be="clientHeight",nn="clientWidth";if(Re===G(O)&&(Re=Xt(O),Rt(Re).position!=="static"&&$t==="absolute"&&(Be="scrollHeight",nn="scrollWidth")),Re=Re,ht===x||(ht===g||ht===a)&&Ot===s){xe=_;var Xe=ge&&Re===Pe&&Pe.visualViewport?Pe.visualViewport.height:Re[Be];we-=Xe-Y.height,we*=Wt?1:-1}if(ht===g||(ht===x||ht===_)&&Ot===s){Ve=a;var ze=ge&&Re===Pe&&Pe.visualViewport?Pe.visualViewport.width:Re[nn];me-=ze-Y.width,me*=Wt?1:-1}}var rn=Object.assign({position:$t},ie&&kt),Nn=zt===!0?bt({x:me,y:we},G(O)):{x:me,y:we};if(me=Nn.x,we=Nn.y,Wt){var sn;return Object.assign({},rn,(sn={},sn[xe]=We?"0":"",sn[Ve]=Ie?"0":"",sn.transform=(Pe.devicePixelRatio||1)<=1?"translate("+me+"px, "+we+"px)":"translate3d("+me+"px, "+we+"px, 0)",sn))}return Object.assign({},rn,(l={},l[xe]=We?we+"px":"",l[Ve]=Ie?me+"px":"",l.transform="",l))}function Mt(N){var l=N.state,O=N.options,Y=O.gpuAcceleration,ht=Y===void 0?!0:Y,Ot=O.adaptive,Nt=Ot===void 0?!0:Ot,$t=O.roundOffsets,Wt=$t===void 0?!0:$t,ie={placement:U(l.placement),variation:_t(l.placement),popper:l.elements.popper,popperRect:l.rects.popper,gpuAcceleration:ht,isFixed:l.options.strategy==="fixed"};l.modifiersData.popperOffsets!=null&&(l.styles.popper=Object.assign({},l.styles.popper,yt(Object.assign({},ie,{offsets:l.modifiersData.popperOffsets,position:l.options.strategy,adaptive:Nt,roundOffsets:Wt})))),l.modifiersData.arrow!=null&&(l.styles.arrow=Object.assign({},l.styles.arrow,yt(Object.assign({},ie,{offsets:l.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Wt})))),l.attributes.popper=Object.assign({},l.attributes.popper,{"data-popper-placement":l.placement})}const Ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Mt,data:{}};var Kt={passive:!0};function ne(N){var l=N.state,O=N.instance,Y=N.options,ht=Y.scroll,Ot=ht===void 0?!0:ht,Nt=Y.resize,$t=Nt===void 0?!0:Nt,Wt=G(l.elements.popper),ie=[].concat(l.scrollParents.reference,l.scrollParents.popper);return Ot&&ie.forEach(function(zt){zt.addEventListener("scroll",O.update,Kt)}),$t&&Wt.addEventListener("resize",O.update,Kt),function(){Ot&&ie.forEach(function(zt){zt.removeEventListener("scroll",O.update,Kt)}),$t&&Wt.removeEventListener("resize",O.update,Kt)}}const re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ne,data:{}};var de={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(N){return N.replace(/left|right|bottom|top/g,function(l){return de[l]})}var Vt={start:"end",end:"start"};function ce(N){return N.replace(/start|end/g,function(l){return Vt[l]})}function he(N){var l=G(N),O=l.pageXOffset,Y=l.pageYOffset;return{scrollLeft:O,scrollTop:Y}}function pe(N){return at(Xt(N)).left+he(N).scrollLeft}function je(N,l){var O=G(N),Y=Xt(N),ht=O.visualViewport,Ot=Y.clientWidth,Nt=Y.clientHeight,$t=0,Wt=0;if(ht){Ot=ht.width,Nt=ht.height;var ie=V();(ie||!ie&&l==="fixed")&&($t=ht.offsetLeft,Wt=ht.offsetTop)}return{width:Ot,height:Nt,x:$t+pe(N),y:Wt}}function Fe(N){var l,O=Xt(N),Y=he(N),ht=(l=N.ownerDocument)==null?void 0:l.body,Ot=Q(O.scrollWidth,O.clientWidth,ht?ht.scrollWidth:0,ht?ht.clientWidth:0),Nt=Q(O.scrollHeight,O.clientHeight,ht?ht.scrollHeight:0,ht?ht.clientHeight:0),$t=-Y.scrollLeft+pe(N),Wt=-Y.scrollTop;return Rt(ht||O).direction==="rtl"&&($t+=Q(O.clientWidth,ht?ht.clientWidth:0)-Ot),{width:Ot,height:Nt,x:$t,y:Wt}}function Qt(N){var l=Rt(N),O=l.overflow,Y=l.overflowX,ht=l.overflowY;return/auto|scroll|overlay|hidden/.test(O+ht+Y)}function jt(N){return["html","body","#document"].indexOf(B(N))>=0?N.ownerDocument.body:rt(N)&&Qt(N)?N:jt(W(N))}function Ft(N,l){var O;l===void 0&&(l=[]);var Y=jt(N),ht=Y===((O=N.ownerDocument)==null?void 0:O.body),Ot=G(Y),Nt=ht?[Ot].concat(Ot.visualViewport||[],Qt(Y)?Y:[]):Y,$t=l.concat(Nt);return ht?$t:$t.concat(Ft(W(Nt)))}function Jt(N){return Object.assign({},N,{left:N.x,top:N.y,right:N.x+N.width,bottom:N.y+N.height})}function _e(N,l){var O=at(N,!1,l==="fixed");return O.top=O.top+N.clientTop,O.left=O.left+N.clientLeft,O.bottom=O.top+N.clientHeight,O.right=O.left+N.clientWidth,O.width=N.clientWidth,O.height=N.clientHeight,O.x=O.left,O.y=O.top,O}function Oe(N,l,O){return l===i?Jt(je(N,O)):j(l)?_e(l,O):Jt(Fe(Xt(N)))}function Me(N){var l=Ft(W(N)),O=["absolute","fixed"].indexOf(Rt(N).position)>=0,Y=O&&rt(N)?dt(N):N;return j(Y)?l.filter(function(ht){return j(ht)&&mt(ht,Y)&&B(ht)!=="body"}):[]}function bn(N,l,O,Y){var ht=l==="clippingParents"?Me(N):[].concat(l),Ot=[].concat(ht,[O]),Nt=Ot[0],$t=Ot.reduce(function(Wt,ie){var zt=Oe(N,ie,Y);return Wt.top=Q(zt.top,Wt.top),Wt.right=X(zt.right,Wt.right),Wt.bottom=X(zt.bottom,Wt.bottom),Wt.left=Q(zt.left,Wt.left),Wt},Oe(N,Nt,Y));return $t.width=$t.right-$t.left,$t.height=$t.bottom-$t.top,$t.x=$t.left,$t.y=$t.top,$t}function Je(N){var l=N.reference,O=N.element,Y=N.placement,ht=Y?U(Y):null,Ot=Y?_t(Y):null,Nt=l.x+l.width/2-O.width/2,$t=l.y+l.height/2-O.height/2,Wt;switch(ht){case x:Wt={x:Nt,y:l.y-O.height};break;case _:Wt={x:Nt,y:l.y+l.height};break;case a:Wt={x:l.x+l.width,y:$t};break;case g:Wt={x:l.x-O.width,y:$t};break;default:Wt={x:l.x,y:l.y}}var ie=ht?Z(ht):null;if(ie!=null){var zt=ie==="y"?"height":"width";switch(Ot){case d:Wt[ie]=Wt[ie]-(l[zt]/2-O[zt]/2);break;case s:Wt[ie]=Wt[ie]+(l[zt]/2-O[zt]/2);break;default:}}return Wt}function Le(N,l){l===void 0&&(l={});var O=l,Y=O.placement,ht=Y===void 0?N.placement:Y,Ot=O.strategy,Nt=Ot===void 0?N.strategy:Ot,$t=O.boundary,Wt=$t===void 0?n:$t,ie=O.rootBoundary,zt=ie===void 0?i:ie,ge=O.elementContext,Ee=ge===void 0?o:ge,me=O.altBoundary,De=me===void 0?!1:me,we=O.padding,ke=we===void 0?0:we,Ie=ut(typeof ke!="number"?ke:F(ke,c)),We=Ee===o?y:o,Ve=N.rects.popper,xe=N.elements[De?We:Ee],Pe=bn(j(xe)?xe:xe.contextElement||Xt(N.elements.popper),Wt,zt,Nt),Re=at(N.elements.reference),Be=Je({reference:Re,element:Ve,strategy:"absolute",placement:ht}),nn=Jt(Object.assign({},Ve,Be)),Xe=Ee===o?nn:Re,ze={top:Pe.top-Xe.top+Ie.top,bottom:Xe.bottom-Pe.bottom+Ie.bottom,left:Pe.left-Xe.left+Ie.left,right:Xe.right-Pe.right+Ie.right},rn=N.modifiersData.offset;if(Ee===o&&rn){var Nn=rn[ht];Object.keys(ze).forEach(function(sn){var yr=[a,_].indexOf(sn)>=0?1:-1,vr=[x,_].indexOf(sn)>=0?"y":"x";ze[sn]+=Nn[vr]*yr})}return ze}function Mn(N,l){l===void 0&&(l={});var O=l,Y=O.placement,ht=O.boundary,Ot=O.rootBoundary,Nt=O.padding,$t=O.flipVariations,Wt=O.allowedAutoPlacements,ie=Wt===void 0?e:Wt,zt=_t(Y),ge=zt?$t?f:f.filter(function(De){return _t(De)===zt}):c,Ee=ge.filter(function(De){return ie.indexOf(De)>=0});Ee.length===0&&(Ee=ge);var me=Ee.reduce(function(De,we){return De[we]=Le(N,{placement:we,boundary:ht,rootBoundary:Ot,padding:Nt})[U(we)],De},{});return Object.keys(me).sort(function(De,we){return me[De]-me[we]})}function ln(N){if(U(N)===v)return[];var l=qt(N);return[ce(N),l,ce(l)]}function En(N){var l=N.state,O=N.options,Y=N.name;if(!l.modifiersData[Y]._skip){for(var ht=O.mainAxis,Ot=ht===void 0?!0:ht,Nt=O.altAxis,$t=Nt===void 0?!0:Nt,Wt=O.fallbackPlacements,ie=O.padding,zt=O.boundary,ge=O.rootBoundary,Ee=O.altBoundary,me=O.flipVariations,De=me===void 0?!0:me,we=O.allowedAutoPlacements,ke=l.options.placement,Ie=U(ke),We=Ie===ke,Ve=Wt||(We||!De?[qt(ke)]:ln(ke)),xe=[ke].concat(Ve).reduce(function(Ur,Jn){return Ur.concat(U(Jn)===v?Mn(l,{placement:Jn,boundary:zt,rootBoundary:ge,padding:ie,flipVariations:De,allowedAutoPlacements:we}):Jn)},[]),Pe=l.rects.reference,Re=l.rects.popper,Be=new Map,nn=!0,Xe=xe[0],ze=0;ze<xe.length;ze++){var rn=xe[ze],Nn=U(rn),sn=_t(rn)===d,yr=[x,_].indexOf(Nn)>=0,vr=yr?"width":"height",dn=Le(l,{placement:rn,boundary:zt,rootBoundary:ge,altBoundary:Ee,padding:ie}),Pn=yr?sn?a:g:sn?_:x;Pe[vr]>Re[vr]&&(Pn=qt(Pn));var Ui=qt(Pn),br=[];if(Ot&&br.push(dn[Nn]<=0),$t&&br.push(dn[Pn]<=0,dn[Ui]<=0),br.every(function(Ur){return Ur})){Xe=rn,nn=!1;break}Be.set(rn,br)}if(nn)for(var Hi=De?3:1,wo=function(Jn){var ui=xe.find(function(Vi){var Er=Be.get(Vi);if(Er)return Er.slice(0,Jn).every(function(Ao){return Ao})});if(ui)return Xe=ui,"break"},ci=Hi;ci>0;ci--){var Wi=wo(ci);if(Wi==="break")break}l.placement!==Xe&&(l.modifiersData[Y]._skip=!0,l.placement=Xe,l.reset=!0)}}const Rn={name:"flip",enabled:!0,phase:"main",fn:En,requiresIfExists:["offset"],data:{_skip:!1}};function wn(N,l,O){return O===void 0&&(O={x:0,y:0}),{top:N.top-l.height-O.y,right:N.right-l.width+O.x,bottom:N.bottom-l.height+O.y,left:N.left-l.width-O.x}}function fi(N){return[x,a,_,g].some(function(l){return N[l]>=0})}function zi(N){var l=N.state,O=N.name,Y=l.rects.reference,ht=l.rects.popper,Ot=l.modifiersData.preventOverflow,Nt=Le(l,{elementContext:"reference"}),$t=Le(l,{altBoundary:!0}),Wt=wn(Nt,Y),ie=wn($t,ht,Ot),zt=fi(Wt),ge=fi(ie);l.modifiersData[O]={referenceClippingOffsets:Wt,popperEscapeOffsets:ie,isReferenceHidden:zt,hasPopperEscaped:ge},l.attributes.popper=Object.assign({},l.attributes.popper,{"data-popper-reference-hidden":zt,"data-popper-escaped":ge})}const di={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zi};function hi(N,l,O){var Y=U(N),ht=[g,x].indexOf(Y)>=0?-1:1,Ot=typeof O=="function"?O(Object.assign({},l,{placement:N})):O,Nt=Ot[0],$t=Ot[1];return Nt=Nt||0,$t=($t||0)*ht,[g,a].indexOf(Y)>=0?{x:$t,y:Nt}:{x:Nt,y:$t}}function Yi(N){var l=N.state,O=N.options,Y=N.name,ht=O.offset,Ot=ht===void 0?[0,0]:ht,Nt=e.reduce(function(zt,ge){return zt[ge]=hi(ge,l.rects,Ot),zt},{}),$t=Nt[l.placement],Wt=$t.x,ie=$t.y;l.modifiersData.popperOffsets!=null&&(l.modifiersData.popperOffsets.x+=Wt,l.modifiersData.popperOffsets.y+=ie),l.modifiersData[Y]=Nt}const pi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yi};function mi(N){var l=N.state,O=N.name;l.modifiersData[O]=Je({reference:l.rects.reference,element:l.rects.popper,strategy:"absolute",placement:l.placement})}const Hr={name:"popperOffsets",enabled:!0,phase:"read",fn:mi,data:{}};function Hn(N){return N==="x"?"y":"x"}function gi(N){var l=N.state,O=N.options,Y=N.name,ht=O.mainAxis,Ot=ht===void 0?!0:ht,Nt=O.altAxis,$t=Nt===void 0?!1:Nt,Wt=O.boundary,ie=O.rootBoundary,zt=O.altBoundary,ge=O.padding,Ee=O.tether,me=Ee===void 0?!0:Ee,De=O.tetherOffset,we=De===void 0?0:De,ke=Le(l,{boundary:Wt,rootBoundary:ie,padding:ge,altBoundary:zt}),Ie=U(l.placement),We=_t(l.placement),Ve=!We,xe=Z(Ie),Pe=Hn(xe),Re=l.modifiersData.popperOffsets,Be=l.rects.reference,nn=l.rects.popper,Xe=typeof we=="function"?we(Object.assign({},l.rects,{placement:l.placement})):we,ze=typeof Xe=="number"?{mainAxis:Xe,altAxis:Xe}:Object.assign({mainAxis:0,altAxis:0},Xe),rn=l.modifiersData.offset?l.modifiersData.offset[l.placement]:null,Nn={x:0,y:0};if(Re){if(Ot){var sn,yr=xe==="y"?x:g,vr=xe==="y"?_:a,dn=xe==="y"?"height":"width",Pn=Re[xe],Ui=Pn+ke[yr],br=Pn-ke[vr],Hi=me?-nn[dn]/2:0,wo=We===d?Be[dn]:nn[dn],ci=We===d?-nn[dn]:-Be[dn],Wi=l.elements.arrow,Ur=me&&Wi?wt(Wi):{width:0,height:0},Jn=l.modifiersData["arrow#persistent"]?l.modifiersData["arrow#persistent"].padding:J(),ui=Jn[yr],Vi=Jn[vr],Er=k(0,Be[dn],Ur[dn]),Ao=Ve?Be[dn]/2-Hi-Er-ui-ze.mainAxis:wo-Er-ui-ze.mainAxis,ec=Ve?-Be[dn]/2+Hi+Er+Vi+ze.mainAxis:ci+Er+Vi+ze.mainAxis,To=l.elements.arrow&&dt(l.elements.arrow),nc=To?xe==="y"?To.clientTop||0:To.clientLeft||0:0,ua=(sn=rn?.[xe])!=null?sn:0,rc=Pn+Ao-ua-nc,ic=Pn+ec-ua,fa=k(me?X(Ui,rc):Ui,Pn,me?Q(br,ic):br);Re[xe]=fa,Nn[xe]=fa-Pn}if($t){var da,oc=xe==="x"?x:g,ac=xe==="x"?_:a,wr=Re[Pe],Ki=Pe==="y"?"height":"width",ha=wr+ke[oc],pa=wr-ke[ac],xo=[x,g].indexOf(Ie)!==-1,ma=(da=rn?.[Pe])!=null?da:0,ga=xo?ha:wr-Be[Ki]-nn[Ki]-ma+ze.altAxis,ya=xo?wr+Be[Ki]+nn[Ki]-ma-ze.altAxis:pa,va=me&&xo?q(ga,wr,ya):k(me?ga:ha,wr,me?ya:pa);Re[Pe]=va,Nn[Pe]=va-wr}l.modifiersData[Y]=Nn}}const Ar={name:"preventOverflow",enabled:!0,phase:"main",fn:gi,requiresIfExists:["offset"]};function Wr(N){return{scrollLeft:N.scrollLeft,scrollTop:N.scrollTop}}function Tr(N){return N===G(N)||!rt(N)?he(N):Wr(N)}function yi(N){var l=N.getBoundingClientRect(),O=lt(l.width)/N.offsetWidth||1,Y=lt(l.height)/N.offsetHeight||1;return O!==1||Y!==1}function Gi(N,l,O){O===void 0&&(O=!1);var Y=rt(l),ht=rt(l)&&yi(l),Ot=Xt(l),Nt=at(N,ht,O),$t={scrollLeft:0,scrollTop:0},Wt={x:0,y:0};return(Y||!Y&&!O)&&((B(l)!=="body"||Qt(Ot))&&($t=Tr(l)),rt(l)?(Wt=at(l,!0),Wt.x+=l.clientLeft,Wt.y+=l.clientTop):Ot&&(Wt.x=pe(Ot))),{x:Nt.left+$t.scrollLeft-Wt.x,y:Nt.top+$t.scrollTop-Wt.y,width:Nt.width,height:Nt.height}}function Zn(N){var l=new Map,O=new Set,Y=[];N.forEach(function(Ot){l.set(Ot.name,Ot)});function ht(Ot){O.add(Ot.name);var Nt=[].concat(Ot.requires||[],Ot.requiresIfExists||[]);Nt.forEach(function($t){if(!O.has($t)){var Wt=l.get($t);Wt&&ht(Wt)}}),Y.push(Ot)}
vendor: 5,175 bytes, lines 42-46
42return N.forEach(function(Ot){O.has(Ot.name)||ht(Ot)}),Y}function vi(N){var l=Zn(N);return D.reduce(function(O,Y){return O.concat(l.filter(function(ht){return ht.phase===Y}))},[])}function bi(N){var l;return function(){return l||(l=new Promise(function(O){Promise.resolve().then(function(){l=void 0,O(N())})})),l}}function Ei(N){var l=N.reduce(function(O,Y){var ht=O[Y.name];return O[Y.name]=ht?Object.assign({},ht,Y,{options:Object.assign({},ht.options,Y.options),data:Object.assign({},ht.data,Y.data)}):Y,O},{});return Object.keys(l).map(function(O){return l[O]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function wi(){for(var N=arguments.length,l=new Array(N),O=0;O<N;O++)l[O]=arguments[O];return!l.some(function(Y){return!(Y&&typeof Y.getBoundingClientRect=="function")})}function Wn(N){N===void 0&&(N={});var l=N,O=l.defaultModifiers,Y=O===void 0?[]:O,ht=l.defaultOptions,Ot=ht===void 0?Vr:ht;return function($t,Wt,ie){ie===void 0&&(ie=Ot);var zt={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vr,Ot),modifiersData:{},elements:{reference:$t,popper:Wt},attributes:{},styles:{}},ge=[],Ee=!1,me={state:zt,setOptions:function(Ie){var We=typeof Ie=="function"?Ie(zt.options):Ie;we(),zt.options=Object.assign({},Ot,zt.options,We),zt.scrollParents={reference:j($t)?Ft($t):$t.contextElement?Ft($t.contextElement):[],popper:Ft(Wt)};var Ve=vi(Ei([].concat(Y,zt.options.modifiers)));return zt.orderedModifiers=Ve.filter(function(xe){return xe.enabled}),De(),me.update()},forceUpdate:function(){if(!Ee){var Ie=zt.elements,We=Ie.reference,Ve=Ie.popper;if(wi(We,Ve)){zt.rects={reference:Gi(We,dt(Ve),zt.options.strategy==="fixed"),popper:wt(Ve)},zt.reset=!1,zt.placement=zt.options.placement,zt.orderedModifiers.forEach(function(ze){return zt.modifiersData[ze.name]=Object.assign({},ze.data)});for(var xe=0;xe<zt.orderedModifiers.length;xe++){if(zt.reset===!0){zt.reset=!1,xe=-1;continue}var Pe=zt.orderedModifiers[xe],Re=Pe.fn,Be=Pe.options,nn=Be===void 0?{}:Be,Xe=Pe.name;typeof Re=="function"&&(zt=Re({state:zt,options:nn,name:Xe,instance:me})||zt)}}}},update:bi(function(){return new Promise(function(ke){me.forceUpdate(),ke(zt)})}),destroy:function(){we(),Ee=!0}};if(!wi($t,Wt))return me;me.setOptions(ie).then(function(ke){!Ee&&ie.onFirstUpdate&&ie.onFirstUpdate(ke)});function De(){zt.orderedModifiers.forEach(function(ke){var Ie=ke.name,We=ke.options,Ve=We===void 0?{}:We,xe=ke.effect;if(typeof xe=="function"){var Pe=xe({state:zt,name:Ie,instance:me,options:Ve}),Re=function(){};ge.push(Pe||Re)}})}function we(){ge.forEach(function(ke){return ke()}),ge=[]}return me}}var Qi=Wn(),Xi=[re,Hr,Ht,tt,pi,Rn,Ar,Tt,di],xr=Wn({defaultModifiers:Xi}),Ai=[re,Hr,Ht,tt],Kr=Wn({defaultModifiers:Ai});/*!
43  * Bootstrap v5.3.8 (https://getbootstrap.com/)
44  * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
45  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
46  */const An=new Map,Ye={set(N,l,O){An.has(N)||An.set(N,new Map);const Y=An.get(N);if(!Y.has(l)&&Y.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(Y.keys())[0]}.`);return}Y.set(l,O)},get(N,l){return An.has(N)&&An.get(N).get(l)||null},remove(N,l){if(!An.has(N))return;const O=An.get(N);O.delete(l),O.size===0&&An.delete(N)}},Vn=1e6,_r=1e3,zr="transitionend",Ti=N=>(N&&window.CSS&&window.CSS.escape&&(N=N.replace(/#([^\s"#']+)/g,(l,O)=>`#${CSS.escape(O)}`)),N),Yr=N=>N==null?`${N}`:Object.prototype.toString.call(N).match(/\s([a-z]+)/i)[1].toLowerCase(),xi=N=>{do N+=Math.floor(Math.random()*Vn);while(document.getElementById(N));return N},Or=N=>{if(!N)return 0;let{transitionDuration:l,transitionDelay:O}=window.getComputedStyle(N);const Y=Number.parseFloat(l),ht=Number.parseFloat(O);return!Y&&!ht?0:(l=l.split(",")[0],O=O.split(",")[0],(Number.parseFloat(l)+Number.parseFloat(O))*_r)},Gr=N=>{N.dispatchEvent(new Event(zr))},Tn=N=>!N||typeof N!="object"?!1:(typeof N.jquery<"u"&&(N=N[0]),typeof N.nodeType<"u"),Dn=N=>Tn(N)?N.jquery?N[0]:N:typeof N=="string"&&N.length>0?document.querySelector(Ti(N)):null,Ge=N=>{if(!Tn(N)||N.getClientRects().length===0)return!1;const l=getComputedStyle(N).getPropertyValue("visibility")==="visible",O=N.closest("details:not([open])");if(!O)return l;if(O!==N){const Y=N.closest("summary");if(Y&&Y.parentNode!==O||Y===null)return!1}return l},xn=N=>!N||N.nodeType!==Node.ELEMENT_NODE||N.classList.contains("disabled")?!0:typeof N.disabled<"u"?N.disabled:N.hasAttribute("disabled")&&N.getAttribute("disabled")!=="false",Kn=N=>{if(!document.documentElement.attachShadow)return null;if(typeof N.getRootNode=="function"){const l=N.getRootNode();return l instanceof ShadowRoot?l:null}return N instanceof ShadowRoot?N:N.parentNode?Kn(N.parentNode):null},Cr=()=>{},tr=N=>{N.offsetHeight},Ln=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,_n=[],Qr=N=>{document.readyState==="loading"?(_n.length||document.addEventListener("DOMContentLoaded",()=>{for(const l of _n)l()}),_n.push(N)):N()},cn=()=>document.documentElement.dir==="rtl",Qe=N=>{Qr(()=>{const l=Ln();if(l){const O=N.NAME,Y=l.fn[O];
46l.fn[O]=N.jQueryInterface,l.fn[O].Constructor=N,l.fn[O].noConflict=()=>(l.fn[O]=Y,N.jQueryInterface)}})},Ze=(N,l=[],O=N)=>typeof N=="function"?N.call(...l):O,Sr=(N,l,O=!0)=>{if(!O){Ze(N);return}const ht=Or(l)+5;let Ot=!1;const Nt=({target:$t})=>{$t===l&&(Ot=!0,l.removeEventListener(zr,Nt),Ze(N))};l.addEventListener(zr,Nt),setTimeout(()=>{Ot||Gr(l)},ht)},kr=(N,l,O,Y)=>{const ht=N.length;let Ot=N.indexOf(l);return Ot===-1?!O&&Y?N[ht-1]:N[0]:(Ot+=O?1:-1,Y&&(Ot=(Ot+ht)%ht),N[Math.max(0,Math.min(Ot,ht-1))])},_i=/[^.]*(?=\..*)\.|.*/,Ji=/\..*/,Oi=/::\d+$/,Xr={};let Ci=1;const jr={mouseenter:"mouseover",mouseleave:"mouseout"},Zi=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Si(N,l){return l&&`${l}::${Ci++}`||N.uidEvent||Ci++}function ki(N){const l=Si(N);return N.uidEvent=l,Xr[l]=Xr[l]||{},Xr[l]}function to(N,l){return function O(Y){return Pr(Y,{delegateTarget:N}),O.oneOff&&Bt.off(N,Y.type,l),l.apply(N,[Y])}}function eo(N,l,O){return function Y(ht){const Ot=N.querySelectorAll(l);for(let{target:Nt}=ht;Nt&&Nt!==this;Nt=Nt.parentNode)for(const $t of Ot)if($t===Nt)return Pr(ht,{delegateTarget:Nt}),Y.oneOff&&Bt.off(N,ht.type,l,O),O.apply(Nt,[ht])}}function ji(N,l,O=null){return Object.values(N).find(Y=>Y.callable===l&&Y.delegationSelector===O)}function Ni(N,l,O){const Y=typeof l=="string",ht=Y?O:l||O;let Ot=Nr(N);return Zi.has(Ot)||(Ot=N),[Y,ht,Ot]}function Jr(N,l,O,Y,ht){if(typeof l!="string"||!N)return;let[Ot,Nt,$t]=Ni(l,O,Y);l in jr&&(Nt=(De=>function(we){if(!we.relatedTarget||we.relatedTarget!==we.delegateTarget&&!we.delegateTarget.contains(we.relatedTarget))return De.call(this,we)})(Nt));const Wt=ki(N),ie=Wt[$t]||(Wt[$t]={}),zt=ji(ie,Nt,Ot?O:null);if(zt){zt.oneOff=zt.oneOff&&ht;return}const ge=Si(Nt,l.replace(_i,"")),Ee=Ot?eo(N,O,Nt):to(N,Nt);Ee.delegationSelector=Ot?O:null,Ee.callable=Nt,Ee.oneOff=ht,Ee.uidEvent=ge,ie[ge]=Ee,N.addEventListener($t,Ee,Ot)}function er(N,l,O,Y,ht){const Ot=ji(l[O],Y,ht);Ot&&(N.removeEventListener(O,Ot,!!ht),delete l[O][Ot.uidEvent])}function Pi(N,l,O,Y){const ht=l[O]||{};for(const[Ot,Nt]of Object.entries(ht))Ot.includes(Y)&&er(N,l,O,Nt.callable,Nt.delegationSelector)}function Nr(N){return N=N.replace(Ji,""),jr[N]||N}const Bt={on(N,l,O,Y){Jr(N,l,O,Y,!1)},one(N,l,O,Y){Jr(N,l,O,Y,!0)},off(N,l,O,Y){if(typeof l!="string"||!N)return;const[ht,Ot,Nt]=Ni(l,O,Y),$t=Nt!==l,Wt=ki(N),ie=Wt[Nt]||{},zt=l.startsWith(".");if(typeof Ot<"u"){if(!Object.keys(ie).length)return;er(N,Wt,Nt,Ot,ht?O:null);return}if(zt)for(const ge of Object.keys(Wt))Pi(N,Wt,ge,l.slice(1));for(const[ge,Ee]of Object.entries(ie)){const me=ge.replace(Oi,"");(!$t||l.includes(me))&&er(N,Wt,Nt,Ee.callable,Ee.delegationSelector)}},trigger(N,l,O){if(typeof l!="string"||!N)return null;const Y=Ln(),ht=Nr(l),Ot=l!==ht;let Nt=null,$t=!0,Wt=!0,ie=!1;Ot&&Y&&(Nt=Y.Event(l,O),Y(N).trigger(Nt),$t=!Nt.isPropagationStopped(),Wt=!Nt.isImmediatePropagationStopped(),ie=Nt.isDefaultPrevented());const zt=Pr(new Event(l,{bubbles:$t,cancelable:!0}),O);return ie&&zt.preventDefault(),Wt&&N.dispatchEvent(zt),zt.defaultPrevented&&Nt&&Nt.preventDefault(),zt}};function Pr(N,l={}){for(const[O,Y]of Object.entries(l))try{N[O]=Y}catch{Object.defineProperty(N,O,{configurable:!0,get(){return Y}})}return N}function Rr(N){if(N==="true")return!0;if(N==="false")return!1;if(N===Number(N).toString())return Number(N);if(N===""||N==="null")return null;if(typeof N!="string")return N;try{return JSON.parse(decodeURIComponent(N))}catch{return N}}function Zr(N){return N.replace(/[A-Z]/g,l=>`-${l.toLowerCase()}`)}const On={setDataAttribute(N,l,O){N.setAttribute(`data-bs-${Zr(l)}`,O)},removeDataAttribute(N,l){N.removeAttribute(`data-bs-${Zr(l)}`)},getDataAttributes(N){if(!N)return{};const l={},O=Object.keys(N.dataset).filter(Y=>Y.startsWith("bs")&&!Y.startsWith("bsConfig"));for(const Y of O){let ht=Y.replace(/^bs/,"");ht=ht.charAt(0).toLowerCase()+ht.slice(1),l[ht]=Rr(N.dataset[Y])}return l},getDataAttribute(N,l){return Rr(N.getAttribute(`data-bs-${Zr(l)}`))}};
vendor: 28,862 bytes, line 46
46class nr{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,O){const Y=Tn(O)?On.getDataAttribute(O,"config"):{};return{...this.constructor.Default,...typeof Y=="object"?Y:{},...Tn(O)?On.getDataAttributes(O):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,O=this.constructor.DefaultType){for(const[Y,ht]of Object.entries(O)){const Ot=l[Y],Nt=Tn(Ot)?"element":Yr(Ot);if(!new RegExp(ht).test(Nt))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${Y}" provided type "${Nt}" but expected type "${ht}".`)}}}const rr="5.3.8";class un extends nr{constructor(l,O){super(),l=Dn(l),l&&(this._element=l,this._config=this._getConfig(O),Ye.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ye.remove(this._element,this.constructor.DATA_KEY),Bt.off(this._element,this.constructor.EVENT_KEY);for(const l of Object.getOwnPropertyNames(this))this[l]=null}_queueCallback(l,O,Y=!0){Sr(l,O,Y)}_getConfig(l){return l=this._mergeConfigObj(l,this._element),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}static getInstance(l){return Ye.get(Dn(l),this.DATA_KEY)}static getOrCreateInstance(l,O={}){return this.getInstance(l)||new this(l,typeof O=="object"?O:null)}static get VERSION(){return rr}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(l){return`${l}${this.EVENT_KEY}`}}const ir=N=>{let l=N.getAttribute("data-bs-target");if(!l||l==="#"){let O=N.getAttribute("href");if(!O||!O.includes("#")&&!O.startsWith("."))return null;O.includes("#")&&!O.startsWith("#")&&(O=`#${O.split("#")[1]}`),l=O&&O!=="#"?O.trim():null}return l?l.split(",").map(O=>Ti(O)).join(","):null},oe={find(N,l=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(l,N))},findOne(N,l=document.documentElement){return Element.prototype.querySelector.call(l,N)},children(N,l){return[].concat(...N.children).filter(O=>O.matches(l))},parents(N,l){const O=[];let Y=N.parentNode.closest(l);for(;Y;)O.push(Y),Y=Y.parentNode.closest(l);return O},prev(N,l){let O=N.previousElementSibling;for(;O;){if(O.matches(l))return[O];O=O.previousElementSibling}return[]},next(N,l){let O=N.nextElementSibling;for(;O;){if(O.matches(l))return[O];O=O.nextElementSibling}return[]},focusableChildren(N){const l=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(O=>`${O}:not([tabindex^="-"])`).join(",");return this.find(l,N).filter(O=>!xn(O)&&Ge(O))},getSelectorFromElement(N){const l=ir(N);return l&&oe.findOne(l)?l:null},getElementFromSelector(N){const l=ir(N);return l?oe.findOne(l):null},getMultipleElementsFromSelector(N){const l=ir(N);return l?oe.find(l):[]}},Dr=(N,l="hide")=>{const O=`click.dismiss${N.EVENT_KEY}`,Y=N.NAME;Bt.on(document,O,`[data-bs-dismiss="${Y}"]`,function(ht){if(["A","AREA"].includes(this.tagName)&&ht.preventDefault(),xn(this))return;const Ot=oe.getElementFromSelector(this)||this.closest(`.${Y}`);N.getOrCreateInstance(Ot)[l]()})},no="alert",p=".bs.alert",E=`close${p}`,C=`closed${p}`,L="fade",M="show";class H extends un{static get NAME(){return no}close(){if(Bt.trigger(this._element,E).defaultPrevented)return;this._element.classList.remove(M);const O=this._element.classList.contains(L);this._queueCallback(()=>this._destroyElement(),this._element,O)}_destroyElement(){this._element.remove(),Bt.trigger(this._element,C),this.dispose()}static jQueryInterface(l){return this.each(function(){const O=H.getOrCreateInstance(this);if(typeof l=="string"){if(O[l]===void 0||l.startsWith("_")||l==="constructor")throw new TypeError(`No method named "${l}"`);O[l](this)}})}}Dr(H,"close"),Qe(H);const gt="button",At=".bs.button",Dt=".data-api",It="active",St='[data-bs-toggle="button"]',Ut=`click${At}${Dt}`;class se extends un{static get NAME(){return gt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(It))}static jQueryInterface(l){return this.each(function(){const O=se.getOrCreateInstance(this);l==="toggle"&&O[l]()})}}Bt.on(document,Ut,St,N=>{N.preventDefault();const l=N.target.closest(St);se.getOrCreateInstance(l).toggle()}),Qe(se);const Te="swipe",ue=".bs.swipe",Ke=`touchstart${ue}`,qe=`touchmove${ue}`,hn=`touchend${ue}`,pn=`pointerdown${ue}`,be=`pointerup${ue}`,$n="touch",Ce="pen",$e="pointer-event",or=40,ti={endCallback:null,leftCallback:null,rightCallback:null},mn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends nr{constructor(l,O){super(),this._element=l,!(!l||!In.isSupported())&&(this._config=this._getConfig(O),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ti}static get DefaultType(){return mn}static get NAME(){return Te}dispose(){Bt.off(this._element,ue)}_start(l){if(!this._supportPointerEvents){this._deltaX=l.touches[0].clientX;return}this._eventIsPointerPenTouch(l)&&(this._deltaX=l.clientX)}_end(l){this._eventIsPointerPenTouch(l)&&(this._deltaX=l.clientX-this._deltaX),this._handleSwipe(),Ze(this._config.endCallback)}_move(l){this._deltaX=l.touches&&l.touches.length>1?0:l.touches[0].clientX-this._deltaX}_handleSwipe(){const l=Math.abs(this._deltaX);if(l<=or)return;const O=l/this._deltaX;this._deltaX=0,O&&Ze(O>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Bt.on(this._element,pn,l=>this._start(l)),Bt.on(this._element,be,l=>this._end(l)),this._element.classList.add($e)):(Bt.on(this._element,Ke,l=>this._start(l)),Bt.on(this._element,qe,l=>this._move(l)),Bt.on(this._element,hn,l=>this._end(l)))}_eventIsPointerPenTouch(l){return this._supportPointerEvents&&(l.pointerType===Ce||l.pointerType===$n)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const gn="carousel",tn=".bs.carousel",on=".data-api",ei="ArrowLeft",Cn="ArrowRight",Sn=500,ar="next",zn="prev",Yn="left",Se="right",Lr=`slide${tn}`,an=`slid${tn}`,Gn=`keydown${tn}`,ro=`mouseenter${tn}`,io=`mouseleave${tn}`,Ri=`dragstart${tn}`,Fn=`load${tn}${on}`,ni=`click${tn}${on}`,kn="carousel",sr="active",lr="slide",Ir="carousel-item-end",Mr="carousel-item-start",ri="carousel-item-next",oo="carousel-item-prev",cr=".active",$r=".carousel-item",ii=cr+$r,ao=".carousel-item img",oi=".carousel-indicators",Di="[data-bs-slide], [data-bs-slide-to]",nt='[data-bs-ride="carousel"]',vt={[ei]:Se,[Cn]:Yn},Ct={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Pt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Lt extends un{constructor(l,O){super(l,O),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=oe.findOne(oi,this._element),this._addEventListeners(),this._config.ride===kn&&this.cycle()}static get Default(){return Ct}static get DefaultType(){return Pt}static get NAME(){return gn}next(){this._slide(ar)}nextWhenVisible(){!document.hidden&&Ge(this._element)&&this.next()}prev(){this._slide(zn)}pause(){this._isSliding&&Gr(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Bt.one(this._element,an,()=>this.cycle());return}this.cycle()}}to(l){const O=this._getItems();if(l>O.length-1||l<0)return;if(this._isSliding){Bt.one(this._element,an,()=>this.to(l));return}const Y=this._getItemIndex(this._getActive());if(Y===l)return;const ht=l>Y?ar:zn;this._slide(ht,O[l])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(l){return l.defaultInterval=l.interval,l}_addEventListeners(){this._config.keyboard&&Bt.on(this._element,Gn,l=>this._keydown(l)),this._config.pause==="hover"&&(Bt.on(this._element,ro,()=>this.pause()),Bt.on(this._element,io,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const Y of oe.find(ao,this._element))Bt.on(Y,Ri,ht=>ht.preventDefault());const O={leftCallback:()=>this._slide(this._directionToOrder(Yn)),rightCallback:()=>this._slide(this._directionToOrder(Se)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Sn+this._config.interval))}};this._swipeHelper=new In(this._element,O)}_keydown(l){if(/input|textarea/i.test(l.target.tagName))return;const O=vt[l.key];O&&(l.preventDefault(),this._slide(this._directionToOrder(O)))}_getItemIndex(l){return this._getItems().indexOf(l)}_setActiveIndicatorElement(l){if(!this._indicatorsElement)return;const O=oe.findOne(cr,this._indicatorsElement);O.classList.remove(sr),O.removeAttribute("aria-current");const Y=oe.findOne(`[data-bs-slide-to="${l}"]`,this._indicatorsElement);Y&&(Y.classList.add(sr),Y.setAttribute("aria-current","true"))}_updateInterval(){const l=this._activeElement||this._getActive();if(!l)return;const O=Number.parseInt(l.getAttribute("data-bs-interval"),10);this._config.interval=O||this._config.defaultInterval}_slide(l,O=null){if(this._isSliding)return;const Y=this._getActive(),ht=l===ar,Ot=O||kr(this._getItems(),Y,ht,this._config.wrap);if(Ot===Y)return;const Nt=this._getItemIndex(Ot),$t=me=>Bt.trigger(this._element,me,{relatedTarget:Ot,direction:this._orderToDirection(l),from:this._getItemIndex(Y),to:Nt});if($t(Lr).defaultPrevented||!Y||!Ot)return;const ie=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(Nt),this._activeElement=Ot;const zt=ht?Mr:Ir,ge=ht?ri:oo;Ot.classList.add(ge),tr(Ot),Y.classList.add(zt),Ot.classList.add(zt);const Ee=()=>{Ot.classList.remove(zt,ge),Ot.classList.add(sr),Y.classList.remove(sr,ge,zt),this._isSliding=!1,$t(an)};this._queueCallback(Ee,Y,this._isAnimated()),ie&&this.cycle()}_isAnimated(){return this._element.classList.contains(lr)}_getActive(){return oe.findOne(ii,this._element)}_getItems(){return oe.find($r,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(l){return cn()?l===Yn?zn:ar:l===Yn?ar:zn}_orderToDirection(l){return cn()?l===zn?Yn:Se:l===zn?Se:Yn}static jQueryInterface(l){return this.each(function(){const O=Lt.getOrCreateInstance(this,l);if(typeof l=="number"){O.to(l);return}if(typeof l=="string"){if(O[l]===void 0||l.startsWith("_")||l==="constructor")throw new TypeError(`No method named "${l}"`);O[l]()}})}}Bt.on(document,ni,Di,function(N){const l=oe.getElementFromSelector(this);if(!l||!l.classList.contains(kn))return;N.preventDefault();const O=Lt.getOrCreateInstance(l),Y=this.getAttribute("data-bs-slide-to");if(Y){O.to(Y),O._maybeEnableCycle();return}if(On.getDataAttribute(this,"slide")==="next"){O.next(),O._maybeEnableCycle();return}O.prev(),O._maybeEnableCycle()}),Bt.on(window,Fn,()=>{const N=oe.find(nt);for(const l of N)Lt.getOrCreateInstance(l)}),Qe(Lt);const Yt="collapse",ee=".bs.collapse",Zt=".data-api",ye=`show${ee}`,le=`shown${ee}`,fe=`hide${ee}`,ve=`hidden${ee}`,ae=`click${ee}${Zt}`,Ne="show",Ue="collapse",He="collapsing",fn="collapsed",yn=`:scope .${Ue} .${Ue}`,Qn="collapse-horizontal",en="width",ba="height",Ea=".collapse.show, .collapse.collapsing",so='[data-bs-toggle="collapse"]',wa={parent:null,toggle:!0},Aa={parent:"(null|element)",toggle:"boolean"};class Br extends un{constructor(l,O){super(l,O),this._isTransitioning=!1,this._triggerArray=[];const Y=oe.find(so);for(const ht of Y){const Ot=oe.getSelectorFromElement(ht),Nt=oe.find(Ot).filter($t=>$t===this._element);Ot!==null&&Nt.length&&this._triggerArray.push(ht)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wa}static get DefaultType(){return Aa}static get NAME(){return Yt}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let l=[];if(this._config.parent&&(l=this._getFirstLevelChildren(Ea).filter($t=>$t!==this._element).map($t=>Br.getOrCreateInstance($t,{toggle:!1}))),l.length&&l[0]._isTransitioning||Bt.trigger(this._element,ye).defaultPrevented)return;for(const $t of l)$t.hide();const Y=this._getDimension();this._element.classList.remove(Ue),this._element.classList.add(He),this._element.style[Y]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const ht=()=>{this._isTransitioning=!1,this._element.classList.remove(He),this._element.classList.add(Ue,Ne),this._element.style[Y]="",Bt.trigger(this._element,le)},Nt=`scroll${Y[0].toUpperCase()+Y.slice(1)}`;this._queueCallback(ht,this._element,!0),this._element.style[Y]=`${this._element[Nt]}px`}hide(){if(this._isTransitioning||!this._isShown()||Bt.trigger(this._element,fe).defaultPrevented)return;const O=this._getDimension();this._element.style[O]=`${this._element.getBoundingClientRect()[O]}px`,tr(this._element),this._element.classList.add(He),this._element.classList.remove(Ue,Ne);for(const ht of this._triggerArray){const Ot=oe.getElementFromSelector(ht);Ot&&!this._isShown(Ot)&&this._addAriaAndCollapsedClass([ht],!1)}this._isTransitioning=!0;const Y=()=>{this._isTransitioning=!1,this._element.classList.remove(He),this._element.classList.add(Ue),Bt.trigger(this._element,ve)};this._element.style[O]="",this._queueCallback(Y,this._element,!0)}_isShown(l=this._element){return l.classList.contains(Ne)}_configAfterMerge(l){return l.toggle=!!l.toggle,l.parent=Dn(l.parent),l}_getDimension(){return this._element.classList.contains(Qn)?en:ba}_initializeChildren(){if(!this._config.parent)return;const l=this._getFirstLevelChildren(so);for(const O of l){const Y=oe.getElementFromSelector(O);Y&&this._addAriaAndCollapsedClass([O],this._isShown(Y))}}_getFirstLevelChildren(l){const O=oe.find(yn,this._config.parent);return oe.find(l,this._config.parent).filter(Y=>!O.includes(Y))}_addAriaAndCollapsedClass(l,O){if(l.length)for(const Y of l)Y.classList.toggle(fn,!O),Y.setAttribute("aria-expanded",O)}static jQueryInterface(l){const O={};return typeof l=="string"&&/show|hide/.test(l)&&(O.toggle=!1),this.each(function(){const Y=Br.getOrCreateInstance(this,O);if(typeof l=="string"){if(typeof Y[l]>"u")throw new TypeError(`No method named "${l}"`);Y[l]()}})}}Bt.on(document,ae,so,function(N){(N.target.tagName==="A"||N.delegateTarget&&N.delegateTarget.tagName==="A")&&N.preventDefault();for(const l of oe.getMultipleElementsFromSelector(this))Br.getOrCreateInstance(l,{toggle:!1}).toggle()}),Qe(Br);const Co="dropdown",ur=".bs.dropdown",lo=".data-api",Ta="Escape",So="Tab",xa="ArrowUp",ko="ArrowDown",_a=2,Oa=`hide${ur}`,Ca=`hidden${ur}`,Sa=`show${ur}`,ka=`shown${ur}`,jo=`click${ur}${lo}`,No=`keydown${ur}${lo}`,ja=`keyup${ur}${lo}`,Fr="show",Na="dropup",Pa="dropend",Ra="dropstart",Da="dropup-center",La="dropdown-center",fr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ia=`${fr}.${Fr}`,Li=".dropdown-menu",Ma=".navbar",$a=".navbar-nav",Ba=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Fa=cn()?"top-end":"top-start",qa=cn()?"top-start":"top-end",Ua=cn()?"bottom-end":"bottom-start",Ha=cn()?"bottom-start":"bottom-end",Wa=cn()?"left-start":"right-start",Va=cn()?"right-start":"left-start",Ka="top",za="bottom",Ya={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ga={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class jn extends un{constructor(l,O){super(l,O),this._popper=null,this._parent=this._element.parentNode,this._menu=oe.next(this._element,Li)[0]||oe.prev(this._element,Li)[0]||oe.findOne(Li,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ya}static get DefaultType(){return Ga}static get NAME(){return Co}toggle(){return this._isShown()?this.hide():this.show()}show(){if(xn(this._element)||this._isShown())return;const l={relatedTarget:this._element};if(!Bt.trigger(this._element,Sa,l).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest($a))for(const Y of[].concat(...document.body.children))Bt.on(Y,"mouseover",Cr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fr),this._element.classList.add(Fr),Bt.trigger(this._element,ka,l)}}hide(){if(xn(this._element)||!this._isShown())return;const l={relatedTarget:this._element};this._completeHide(l)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(l){if(!Bt.trigger(this._element,Oa,l).defaultPrevented){if("ontouchstart"in document.documentElement)for(const Y of[].concat(...document.body.children))Bt.off(Y,"mouseover",Cr);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fr),this._element.classList.remove(Fr),this._element.setAttribute("aria-expanded","false"),On.removeDataAttribute(this._menu,"popper"),Bt.trigger(this._element,Ca,l)}}_getConfig(l){if(l=super._getConfig(l),typeof l.reference=="object"&&!Tn(l.reference)&&typeof l.reference.getBoundingClientRect!="function")throw new TypeError(`${Co.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return l}_createPopper(){if(typeof T>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let l=this._element;this._config.reference==="parent"?l=this._parent:Tn(this._config.reference)?l=Dn(this._config.reference):typeof this._config.reference=="object"&&(l=this._config.reference);const O=this._getPopperConfig();this._popper=xr(l,this._menu,O)}_isShown(){return this._menu.classList.contains(Fr)}_getPlacement(){const l=this._parent;if(l.classList.contains(Pa))return Wa;if(l.classList.contains(Ra))return Va;if(l.classList.contains(Da))return Ka;if(l.classList.contains(La))return za;const O=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return l.classList.contains(Na)?O?qa:Fa:O?Ha:Ua}_detectNavbar(){return this._element.closest(Ma)!==null}_getOffset(){const{offset:l}=this._config;return typeof l=="string"?l.split(",").map(O=>Number.parseInt(O,10)):typeof l=="function"?O=>l(O,this._element):l}_getPopperConfig(){const l={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(On.setDataAttribute(this._menu,"popper","static"),l.modifiers=[{name:"applyStyles",enabled:!1}]),{...l,...Ze(this._config.popperConfig,[void 0,l])}}_selectMenuItem({key:l,target:O}){const Y=oe.find(Ba,this._menu).filter(ht=>Ge(ht));Y.length&&kr(Y,O,l===ko,!Y.includes(O)).focus()}static jQueryInterface(l){return this.each(function(){const O=jn.getOrCreateInstance(this,l);if(typeof l=="string"){if(typeof O[l]>"u")throw new TypeError(`No method named "${l}"`);O[l]()}})}static clearMenus(l){if(l.button===_a||l.type==="keyup"&&l.key!==So)return;const O=oe.find(Ia);for(const Y of O){const ht=jn.getInstance(Y);if(!ht||ht._config.autoClose===!1)continue;const Ot=l.composedPath(),Nt=Ot.includes(ht._menu);if(Ot.includes(ht._element)||ht._config.autoClose==="inside"&&!Nt||ht._config.autoClose==="outside"&&Nt||ht._menu.contains(l.target)&&(l.type==="keyup"&&l.key===So||/input|select|option|textarea|form/i.test(l.target.tagName)))continue;const $t={relatedTarget:ht._element};l.type==="click"&&($t.clickEvent=l),ht._completeHide($t)}}static dataApiKeydownHandler(l){const O=/input|textarea/i.test(l.target.tagName),Y=l.key===Ta,ht=[xa,ko].includes(l.key);if(!ht&&!Y||O&&!Y)return;l.preventDefault();const Ot=this.matches(fr)?this:oe.prev(this,fr)[0]||oe.next(this,fr)[0]||oe.findOne(fr,l.delegateTarget.parentNode),Nt=jn.getOrCreateInstance(Ot);if(ht){l.stopPropagation(),Nt.show(),Nt._selectMenuItem(l);return}Nt._isShown()&&(l.stopPropagation(),Nt.hide(),Ot.focus())}}Bt.on(document,No,fr,jn.dataApiKeydownHandler),Bt.on(document,No,Li,jn.dataApiKeydownHandler),Bt.on(document,jo,jn.clearMenus),Bt.on(document,ja,jn.clearMenus),Bt.on(document,jo,fr,function(N){N.preventDefault(),jn.getOrCreateInstance(this).toggle()}),Qe(jn);const Po="backdrop",Qa="fade",Ro="show",Do=`mousedown.bs.${Po}`,Xa={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ja={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Lo extends nr{constructor(l){super(),this._config=this._getConfig(l),this._isAppended=!1,this._element=null}static get Default(){return Xa}static get DefaultType(){return Ja}static get NAME(){return Po}show(l){if(!this._config.isVisible){Ze(l);return}this._append();const O=this._getElement();this._config.isAnimated&&tr(O),O.classList.add(Ro),this._emulateAnimation(()=>{Ze(l)})}hide(l){if(!this._config.isVisible){Ze(l);return}this._getElement().classList.remove(Ro),this._emulateAnimation(()=>{this.dispose(),Ze(l)})}dispose(){this._isAppended&&(Bt.off(this._element,Do),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const l=document.createElement("div");l.className=this._config.className,this._config.isAnimated&&l.classList.add(Qa),this._element=l}return this._element}_configAfterMerge(l){return l.rootElement=Dn(l.rootElement),l}_append(){if(this._isAppended)return;const l=this._getElement();this._config.rootElement.append(l),Bt.on(l,Do,()=>{Ze(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(l){Sr(l,this._getElement(),this._config.isAnimated)}}const Za="focustrap",Ii=".bs.focustrap",ts=`focusin${Ii}`,es=`keydown.tab${Ii}`,ns="Tab",rs="forward",Io="backward",is={autofocus:!0,trapElement:null},os={autofocus:"boolean",trapElement:"element"};class Mo extends nr{constructor(l){super(),this._config=this._getConfig(l),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return is}static get DefaultType(){return os}static get NAME(){return Za}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Bt.off(document,Ii),Bt.on(document,ts,l=>this._handleFocusin(l)),Bt.on(document,es,l=>this._handleKeydown(l)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Bt.off(document,Ii))}_handleFocusin(l){const{trapElement:O}=this._config;if(l.target===document||l.target===O||O.contains(l.target))return;const Y=oe.focusableChildren(O);Y.length===0?O.focus():this._lastTabNavDirection===Io?Y[Y.length-1].focus():Y[0].focus()}_handleKeydown(l){l.key===ns&&(this._lastTabNavDirection=l.shiftKey?Io:rs)}}const $o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bo=".sticky-top",Mi="padding-right",Fo="margin-right";class co{constructor(){this._element=document.body}getWidth(){const l=document.documentElement.clientWidth;return Math.abs(window.innerWidth-l)}hide(){const l=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Mi,O=>O+l),this._setElementAttributes($o,Mi,O=>O+l),this._setElementAttributes(Bo,Fo,O=>O-l)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Mi),this._resetElementAttributes($o,Mi),this._resetElementAttributes(Bo,Fo)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(l,O,Y){const ht=this.getWidth(),Ot=Nt=>{if(Nt!==this._element&&window.innerWidth>Nt.clientWidth+ht)return;this._saveInitialAttribute(Nt,O);const $t=window.getComputedStyle(Nt).getPropertyValue(O);Nt.style.setProperty(O,`${Y(Number.parseFloat($t))}px`)};this._applyManipulationCallback(l,Ot)}_saveInitialAttribute(l,O){const Y=l.style.getPropertyValue(O);Y&&On.setDataAttribute(l,O,Y)}_resetElementAttributes(l,O){const Y=ht=>{const Ot=On.getDataAttribute(ht,O);if(Ot===null){ht.style.removeProperty(O);return}On.removeDataAttribute(ht,O),ht.style.setProperty(O,Ot)};this._applyManipulationCallback(l,Y)}_applyManipulationCallback(l,O){if(Tn(l)){O(l);return}for(const Y of oe.find(l,this._element))O(Y)}}const as="modal",vn=".bs.modal",ss=".data-api",ls="Escape",cs=`hide${vn}`,us=`hidePrevented${vn}`,qo=`hidden${vn}`,Uo=`show${vn}`,fs=`shown${vn}`,ds=`resize${vn}`,hs=`click.dismiss${vn}`,ps=`mousedown.dismiss${vn}`,ms=`keydown.dismiss${vn}`,gs=`click${vn}${ss}`,Ho="modal-open",ys="fade",Wo="show",uo="modal-static",vs=".modal.show",bs=".modal-dialog",Es=".modal-body",ws='[data-bs-toggle="modal"]',As={backdrop:!0,focus:!0,keyboard:!0},Ts={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class dr extends un{constructor(l,O){super(l,O),this._dialog=oe.findOne(bs,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new co,this._addEventListeners()}static get Default(){return As}static get DefaultType(){return Ts}static get NAME(){return as}toggle(l){return this._isShown?this.hide():this.show(l)}show(l){this._isShown||this._isTransitioning||Bt.trigger(this._element,Uo,{relatedTarget:l}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ho),this._adjustDialog(),this._backdrop.show(()=>this._showElement(l)))}hide(){!this._isShown||this._isTransitioning||Bt.trigger(this._element,cs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Wo),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Bt.off(window,vn),Bt.off(this._dialog,vn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Lo({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Mo({trapElement:this._element})}_showElement(l){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const O=oe.findOne(Es,this._dialog);O&&(O.scrollTop=0),tr(this._element),this._element.classList.add(Wo);const Y=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Bt.trigger(this._element,fs,{relatedTarget:l})};this._queueCallback(Y,this._dialog,this._isAnimated())}_addEventListeners(){Bt.on(this._element,ms,l=>{if(l.key===ls){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Bt.on(window,ds,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Bt.on(this._element,ps,l=>{Bt.one(this._element,hs,O=>{if(!(this._element!==l.target||this._element!==O.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ho),this._resetAdjustments(),this._scrollBar.reset(),Bt.trigger(this._element,qo)})}_isAnimated(){return this._element.classList.contains(ys)}_triggerBackdropTransition(){if(Bt.trigger(this._element,us).defaultPrevented)return;const O=this._element.scrollHeight>document.documentElement.clientHeight,Y=this._element.style.overflowY;Y==="hidden"||this._element.classList.contains(uo)||(O||(this._element.style.overflowY="hidden"),this._element.classList.add(uo),this._queueCallback(()=>{this._element.classList.remove(uo),this._queueCallback(()=>{this._element.style.overflowY=Y},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const l=this._element.scrollHeight>document.documentElement.clientHeight,O=this._scrollBar.getWidth(),Y=O>0;if(Y&&!l){const ht=cn()?"paddingLeft":"paddingRight";this._element.style[ht]=`${O}px`}if(!Y&&l){const ht=cn()?"paddingRight":"paddingLeft";this._element.style[ht]=`${O}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(l,O){return this.each(function(){const Y=dr.getOrCreateInstance(this,l);if(typeof l=="string"){if(typeof Y[l]>
46"u")throw new TypeError(`No method named "${l}"`);Y[l](O)}})}}Bt.on(document,gs,ws,function(N){const l=oe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&N.preventDefault(),Bt.one(l,Uo,ht=>{ht.defaultPrevented||Bt.one(l,qo,()=>{Ge(this)&&this.focus()})});const O=oe.findOne(vs);O&&dr.getInstance(O).hide(),dr.getOrCreateInstance(l).toggle(this)}),Dr(dr),Qe(dr);const xs="offcanvas",qn=".bs.offcanvas",Vo=".data-api",_s=`load${qn}${Vo}`,Os="Escape",Ko="show",zo="showing",Yo="hiding",Cs="offcanvas-backdrop",Go=".offcanvas.show",Ss=`show${qn}`,ks=`shown${qn}`,js=`hide${qn}`,Qo=`hidePrevented${qn}`,Xo=`hidden${qn}`,Ns=`resize${qn}`,Ps=`click${qn}${Vo}`,Rs=`keydown.dismiss${qn}`,Ds='[data-bs-toggle="offcanvas"]',Ls={backdrop:!0,keyboard:!0,scroll:!1},Is={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Un extends un{constructor(l,O){super(l,O),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ls}static get DefaultType(){return Is}static get NAME(){return xs}toggle(l){return this._isShown?this.hide():this.show(l)}show(l){if(this._isShown||Bt.trigger(this._element,Ss,{relatedTarget:l}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new co().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(zo);const Y=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ko),this._element.classList.remove(zo),Bt.trigger(this._element,ks,{relatedTarget:l})};this._queueCallback(Y,this._element,!0)}hide(){if(!this._isShown||Bt.trigger(this._element,js).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Yo),this._backdrop.hide();const O=()=>{this._element.classList.remove(Ko,Yo),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new co().reset(),Bt.trigger(this._element,Xo)};this._queueCallback(O,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const l=()=>{if(this._config.backdrop==="static"){Bt.trigger(this._element,Qo);return}this.hide()},O=!!this._config.backdrop;return new Lo({className:Cs,isVisible:O,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:O?l:null})}_initializeFocusTrap(){return new Mo({trapElement:this._element})}_addEventListeners(){Bt.on(this._element,Rs,l=>{if(l.key===Os){if(this._config.keyboard){this.hide();return}Bt.trigger(this._element,Qo)}})}static jQueryInterface(l){return this.each(function(){const O=Un.getOrCreateInstance(this,l);if(typeof l=="string"){if(O[l]===void 0||l.startsWith("_")||l==="constructor")throw new TypeError(`No method named "${l}"`);O[l](this)}})}}Bt.on(document,Ps,Ds,function(N){const l=oe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&N.preventDefault(),xn(this))return;Bt.one(l,Xo,()=>{Ge(this)&&this.focus()});const O=oe.findOne(Go);O&&O!==l&&Un.getInstance(O).hide(),Un.getOrCreateInstance(l).toggle(this)}),Bt.on(window,_s,()=>{for(const N of oe.find(Go))Un.getOrCreateInstance(N).show()}),Bt.on(window,Ns,()=>{for(const N of oe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(N).position!=="fixed"&&Un.getOrCreateInstance(N).hide()}),Dr(Un),Qe(Un);const Jo={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ms=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),$s=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Bs=(N,l)=>{const O=N.nodeName.toLowerCase();return l.includes(O)?Ms.has(O)?!!$s.test(N.nodeValue):!0:l.filter(Y=>Y instanceof RegExp).some(Y=>Y.test(O))};function Fs(N,l,O){if(!N.length)return N;if(O&&typeof O=="function")return O(N);const ht=new window.DOMParser().parseFromString(N,"text/html"),Ot=[].concat(...ht.body.querySelectorAll("*"));for(const Nt of Ot){const $t=Nt.nodeName.toLowerCase();if(!Object.keys(l).includes($t)){Nt.remove();continue}
vendor: 5,142 bytes, line 46
46const Wt=[].concat(...Nt.attributes),ie=[].concat(l["*"]||[],l[$t]||[]);for(const zt of Wt)Bs(zt,ie)||Nt.removeAttribute(zt.nodeName)}return ht.body.innerHTML}const qs="TemplateFactory",Us={allowList:Jo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Hs={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ws={entry:"(string|element|function|null)",selector:"(string|element)"};class Vs extends nr{constructor(l){super(),this._config=this._getConfig(l)}static get Default(){return Us}static get DefaultType(){return Hs}static get NAME(){return qs}getContent(){return Object.values(this._config.content).map(l=>this._resolvePossibleFunction(l)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(l){return this._checkContent(l),this._config.content={...this._config.content,...l},this}toHtml(){const l=document.createElement("div");l.innerHTML=this._maybeSanitize(this._config.template);for(const[ht,Ot]of Object.entries(this._config.content))this._setContent(l,Ot,ht);const O=l.children[0],Y=this._resolvePossibleFunction(this._config.extraClass);return Y&&O.classList.add(...Y.split(" ")),O}_typeCheckConfig(l){super._typeCheckConfig(l),this._checkContent(l.content)}_checkContent(l){for(const[O,Y]of Object.entries(l))super._typeCheckConfig({selector:O,entry:Y},Ws)}_setContent(l,O,Y){const ht=oe.findOne(Y,l);if(ht){if(O=this._resolvePossibleFunction(O),!O){ht.remove();return}if(Tn(O)){this._putElementInTemplate(Dn(O),ht);return}if(this._config.html){ht.innerHTML=this._maybeSanitize(O);return}ht.textContent=O}}_maybeSanitize(l){return this._config.sanitize?Fs(l,this._config.allowList,this._config.sanitizeFn):l}_resolvePossibleFunction(l){return Ze(l,[void 0,this])}_putElementInTemplate(l,O){if(this._config.html){O.innerHTML="",O.append(l);return}O.textContent=l.textContent}}const Ks="tooltip",zs=new Set(["sanitize","allowList","sanitizeFn"]),fo="fade",Ys="modal",$i="show",Gs=".tooltip-inner",Zo=`.${Ys}`,ta="hide.bs.modal",ai="hover",ho="focus",po="click",Qs="manual",Xs="hide",Js="hidden",Zs="show",tl="shown",el="inserted",nl="click",rl="focusin",il="focusout",ol="mouseenter",al="mouseleave",sl={AUTO:"auto",TOP:"top",RIGHT:cn()?"left":"right",BOTTOM:"bottom",LEFT:cn()?"right":"left"},ll={allowList:Jo,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},cl={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class hr extends un{constructor(l,O){if(typeof T>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(l,O),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ll}static get DefaultType(){return cl}static get NAME(){return Ks}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Bt.off(this._element.closest(Zo),ta,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const l=Bt.trigger(this._element,this.constructor.eventName(Zs)),Y=(Kn(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(l.defaultPrevented||!Y)return;this._disposePopper();const ht=this._getTipElement();this._element.setAttribute("aria-describedby",ht.getAttribute("id"));const{container:Ot}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Ot.append(ht),Bt.trigger(this._element,this.constructor.eventName(el))),this._popper=this._createPopper(ht),ht.classList.add($i),"ontouchstart"in document.documentElement)for(const $t of[].concat(...document.body.children))Bt.on($t,"mouseover",Cr);const Nt=()=>{Bt.trigger(this._element,this.constructor.eventName(tl)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(Nt,this.tip,this._isAnimated())}
46hide(){if(!this._isShown()||Bt.trigger(this._element,this.constructor.eventName(Xs)).defaultPrevented)return;if(this._getTipElement().classList.remove($i),"ontouchstart"in document.documentElement)for(const ht of[].concat(...document.body.children))Bt.off(ht,"mouseover",Cr);this._activeTrigger[po]=!1,this._activeTrigger[ho]=!1,this._activeTrigger[ai]=!1,this._isHovered=null;const Y=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Bt.trigger(this._element,this.constructor.eventName(Js)))};this._queueCallback(Y,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(l){const O=this._getTemplateFactory(l).toHtml();if(!O)return null;O.classList.remove(fo,$i),O.classList.add(`bs-${this.constructor.NAME}-auto`);const Y=xi(this.constructor.NAME).toString();return O.setAttribute("id",Y),this._isAnimated()&&O.classList.add(fo),O}setContent(l){this._newContent=l,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(l){return this._templateFactory?this._templateFactory.changeContent(l):this._templateFactory=new Vs({...this._config,content:l,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Gs]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(l){return this.constructor.getOrCreateInstance(l.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(fo)}_isShown(){return this.tip&&this.tip.classList.contains($i)}_createPopper(l){const O=Ze(this._config.placement,[this,l,this._element]),Y=sl[O.toUpperCase()];return xr(this._element,l,this._getPopperConfig(Y))}_getOffset(){const{offset:l}=this._config;return typeof l=="string"?l.split(",").map(O=>Number.parseInt(O,10)):typeof l=="function"?O=>l(O,this._element):l}_resolvePossibleFunction(l){return Ze(l,[this._element,this._element])}_getPopperConfig(l){const O={placement:l,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:Y=>{this._getTipElement().setAttribute("data-popper-placement",Y.state.placement)}}]};return{...O,...Ze(this._config.popperConfig,[void 0,O])}}_setListeners(){const l=this._config.trigger.split(" ");for(const O of l)if(O==="click")Bt.on(this._element,this.constructor.eventName(nl),this._config.selector,Y=>{const ht=this._initializeOnDelegatedTarget(Y);ht._activeTrigger[po]=!(ht._isShown()&&ht._activeTrigger[po]),ht.toggle()});else if(O!==Qs){const Y=O===ai?this.constructor.eventName(ol):this.constructor.eventName(rl),ht=O===ai?this.constructor.eventName(al):this.constructor.eventName(il);Bt.on(this._element,Y,this._config.selector,Ot=>{const Nt=this._initializeOnDelegatedTarget(Ot);Nt._activeTrigger[Ot.type==="focusin"?ho:ai]=!0,Nt._enter()}),Bt.on(this._element,ht,this._config.selector,Ot=>{const Nt=this._initializeOnDelegatedTarget(Ot);Nt._activeTrigger[Ot.type==="focusout"?ho:ai]=Nt._element.contains(Ot.relatedTarget),Nt._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Bt.on(this._element.closest(Zo),ta,this._hideModalHandler)}_fixTitle(){const l=this._element.getAttribute("title");l&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",l),this._element.setAttribute("data-bs-original-title",l),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(l,O){clearTimeout(this._timeout),this._timeout=setTimeout(l,O)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(l){const O=On.getDataAttributes(this._element);
vendor: 5,341 bytes, line 46
46for(const Y of Object.keys(O))zs.has(Y)&&delete O[Y];return l={...O,...typeof l=="object"&&l?l:{}},l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l.container=l.container===!1?document.body:Dn(l.container),typeof l.delay=="number"&&(l.delay={show:l.delay,hide:l.delay}),typeof l.title=="number"&&(l.title=l.title.toString()),typeof l.content=="number"&&(l.content=l.content.toString()),l}_getDelegateConfig(){const l={};for(const[O,Y]of Object.entries(this._config))this.constructor.Default[O]!==Y&&(l[O]=Y);return l.selector=!1,l.trigger="manual",l}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(l){return this.each(function(){const O=hr.getOrCreateInstance(this,l);if(typeof l=="string"){if(typeof O[l]>"u")throw new TypeError(`No method named "${l}"`);O[l]()}})}}Qe(hr);const ul="popover",fl=".popover-header",dl=".popover-body",hl={...hr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},pl={...hr.DefaultType,content:"(null|string|element|function)"};class Bi extends hr{static get Default(){return hl}static get DefaultType(){return pl}static get NAME(){return ul}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[fl]:this._getTitle(),[dl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(l){return this.each(function(){const O=Bi.getOrCreateInstance(this,l);if(typeof l=="string"){if(typeof O[l]>"u")throw new TypeError(`No method named "${l}"`);O[l]()}})}}Qe(Bi);const ml="scrollspy",mo=".bs.scrollspy",gl=".data-api",yl=`activate${mo}`,ea=`click${mo}`,vl=`load${mo}${gl}`,bl="dropdown-item",qr="active",El='[data-bs-spy="scroll"]',go="[href]",wl=".nav, .list-group",na=".nav-link",Al=`${na}, .nav-item > ${na}, .list-group-item`,Tl=".dropdown",xl=".dropdown-toggle",_l={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ol={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class si extends un{constructor(l,O){super(l,O),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return _l}static get DefaultType(){return Ol}static get NAME(){return ml}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const l of this._observableSections.values())this._observer.observe(l)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(l){return l.target=Dn(l.target)||document.body,l.rootMargin=l.offset?`${l.offset}px 0px -30%`:l.rootMargin,typeof l.threshold=="string"&&(l.threshold=l.threshold.split(",").map(O=>Number.parseFloat(O))),l}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Bt.off(this._config.target,ea),Bt.on(this._config.target,ea,go,l=>{const O=this._observableSections.get(l.target.hash);if(O){l.preventDefault();const Y=this._rootElement||window,ht=O.offsetTop-this._element.offsetTop;if(Y.scrollTo){Y.scrollTo({top:ht,behavior:"smooth"});return}Y.scrollTop=ht}}))}_getNewObserver(){const l={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(O=>this._observerCallback(O),l)}_observerCallback(l){const O=Nt=>this._targetLinks.get(`#${Nt.target.id}`),Y=Nt=>{this._previousScrollData.visibleEntryTop=Nt.target.offsetTop,this._process(O(Nt))},ht=(this._rootElement||document.documentElement).scrollTop,Ot=ht>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ht;for(const Nt of l){if(!Nt.isIntersecting){this._activeTarget=null,this._clearActiveClass(O(Nt));continue}const $t=Nt.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(Ot&&$t){if(Y(Nt),!ht)return;continue}!Ot&&!$t&&Y(Nt)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const l=oe.find(go,this._config.target);for(const O of l){if(!O.hash||xn(O))continue;const Y=oe.findOne(decodeURI(O.hash),this._element);Ge(Y)&&(this._targetLinks.set(decodeURI(O.hash),O),this._observableSections.set(O.hash,Y))}}_process(l){this._activeTarget!==l&&(this._clearActiveClass(this._config.target),this._activeTarget=l,l.classList.add(qr),this._activateParents(l),Bt.trigger(this._element,yl,{relatedTarget:l}))}_activateParents(l){if(l.classList.contains(bl)){oe.findOne(xl,l.closest(Tl)).classList.add(qr);return}for(const O of oe.parents(l,wl))for(const Y of oe.prev(O,Al))Y.classList.add(qr)}_clearActiveClass(l){l.classList.remove(qr);const O=oe.find(`${go}.${qr}`,l);for(const Y of O)Y.classList.remove(qr)}static jQueryInterface(l){return this.each(function(){const O=si.getOrCreateInstance(this,l);if(typeof l=="string"){if(O[l]===void 0||l.startsWith("_")||l==="constructor")throw new TypeError(`No method n
46amed "${l}"`);O[l]()}})}}Bt.on(window,vl,()=>{for(const N of oe.find(El))si.getOrCreateInstance(N)}),Qe(si);const Cl="tab",pr=".bs.tab",Sl=`hide${pr}`,kl=`hidden${pr}`,jl=`show${pr}`,Nl=`shown${pr}`,Pl=`click${pr}`,Rl=`keydown${pr}`,Dl=`load${pr}`,Ll="ArrowLeft",ra="ArrowRight",Il="ArrowUp",ia="ArrowDown",yo="Home",oa="End",mr="active",aa="fade",vo="show",Ml="dropdown",sa=".dropdown-toggle",$l=".dropdown-menu",bo=`:not(${sa})`,Bl='.list-group, .nav, [role="tablist"]',Fl=".nav-item, .list-group-item",ql=`.nav-link${bo}, .list-group-item${bo}, [role="tab"]${bo}`,la='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Eo=`${ql}, ${la}`,Ul=`.${mr}[data-bs-toggle="tab"], .${mr}[data-bs-toggle="pill"], .${mr}[data-bs-toggle="list"]`;class gr extends un{constructor(l){super(l),this._parent=this._element.closest(Bl),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Bt.on(this._element,Rl,O=>this._keydown(O)))}static get NAME(){return Cl}show(){const l=this._element;if(this._elemIsActive(l))return;const O=this._getActiveElem(),Y=O?Bt.trigger(O,Sl,{relatedTarget:l}):null;Bt.trigger(l,jl,{relatedTarget:O}).defaultPrevented||Y&&Y.defaultPrevented||(this._deactivate(O,l),this._activate(l,O))}_activate(l,O){if(!l)return;l.classList.add(mr),this._activate(oe.getElementFromSelector(l));const Y=()=>{if(l.getAttribute("role")!=="tab"){l.classList.add(vo);return}l.removeAttribute("tabindex"),l.setAttribute("aria-selected",!0),this._toggleDropDown(l,!0),Bt.trigger(l,Nl,{relatedTarget:O})};this._queueCallback(Y,l,l.classList.contains(aa))}_deactivate(l,O){if(!l)return;l.classList.remove(mr),l.blur(),this._deactivate(oe.getElementFromSelector(l));const Y=()=>{if(l.getAttribute("role")!=="tab"){l.classList.remove(vo);return}l.setAttribute("aria-selected",!1),l.setAttribute("tabindex","-1"),this._toggleDropDown(l,!1),Bt.trigger(l,kl,{relatedTarget:O})};this._queueCallback(Y,l,l.classList.contains(aa))}_keydown(l){if(![Ll,ra,Il,ia,yo,oa].includes(l.key))return;l.stopPropagation(),l.preventDefault();const O=this._getChildren().filter(ht=>!xn(ht));let Y;if([yo,oa].includes(l.key))Y=O[l.key===yo?0:O.length-1];else{const ht=[ra,ia].includes(l.key);Y=kr(O,l.target,ht,!0)}Y&&(Y.focus({preventScroll:!0}),gr.getOrCreateInstance(Y).show())}_getChildren(){return oe.find(Eo,this._parent)}_getActiveElem(){return this._getChildren().find(l=>this._elemIsActive(l))||null}_setInitialAttributes(l,O){this._setAttributeIfNotExists(l,"role","tablist");for(const Y of O)this._setInitialAttributesOnChild(Y)}_setInitialAttributesOnChild(l){l=this._getInnerElement(l);const O=this._elemIsActive(l),Y=this._getOuterElement(l);l.setAttribute("aria-selected",O),Y!==l&&this._setAttributeIfNotExists(Y,"role","presentation"),O||l.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(l,"role","tab"),this._setInitialAttributesOnTargetPanel(l)}_setInitialAttributesOnTargetPanel(l){const O=oe.getElementFromSelector(l);O&&(this._setAttributeIfNotExists(O,"role","tabpanel"),l.id&&this._setAttributeIfNotExists(O,"aria-labelledby",`${l.id}`))}_toggleDropDown(l,O){const Y=this._getOuterElement(l);if(!Y.classList.contains(Ml))return;const ht=(Ot,Nt)=>{const $t=oe.findOne(Ot,Y);$t&&$t.classList.toggle(Nt,O)};ht(sa,mr),ht($l,vo),Y.setAttribute("aria-expanded",O)}_setAttributeIfNotExists(l,O,Y){l.hasAttribute(O)||l.setAttribute(O,Y)}_elemIsActive(l){return l.classList.contains(mr)}_getInnerElement(l){return l.matches(Eo)?l:oe.findOne(Eo,l)}_getOuterElement(l){return l.closest(Fl)||l}static jQueryInterface(l){return this.each(function(){const O=gr.getOrCreateInstance(this);if(typeof l=="string"){if(O[l]===void 0||l.startsWith("_")||l==="constructor")throw new TypeError(`No method named "${l}"`);O[l]()}})}}Bt.on(document,Pl,la,function(N){["A","AREA"].includes(this.tagName)&&N.preventDefault(),!xn(this)&&gr.getOrCreateInstance(this).show()}),Bt.on(window,Dl,()=>{for(const N of oe.find(Ul))gr.getOrCreateInstance(N)}),Qe(gr);const Hl="toast",Xn=".bs.toast",Wl=`mouseover${Xn}`,Vl=`mouseout${Xn}`,Kl=`focusin${Xn}`,zl=`focusout${Xn}`,Yl=`hide${Xn}`,Gl=`hidden${Xn}`,Ql=`show${Xn}`,Xl=`shown${Xn}`,Jl="fade",ca="hide",Fi="show",qi="showing",Zl={animation:"boolean",autohide:"boolean",delay:"number"},tc={animation:!0,autohide:!0,delay:5e3};class li extends un{constructor(l,O){super(l,O),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tc}static get DefaultType(){return Zl}static get NAME(){return Hl}show(){if(Bt.trigger(this._element,Ql).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Jl);const O=()=>{this._element.classList.remove(qi),Bt.trigger(this._element,Xl),this._maybeScheduleHide()};this._element.classList.remove(ca),tr(this._element),this._element.classList.add(Fi,qi),this._queueCallback(O,this._element,this._config.animation)}
46hide(){if(!this.isShown()||Bt.trigger(this._element,Yl).defaultPrevented)return;const O=()=>{this._element.classList.add(ca),this._element.classList.remove(qi,Fi),Bt.trigger(this._element,Gl)};this._element.classList.add(qi),this._queueCallback(O,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Fi),super.dispose()}isShown(){return this._element.classList.contains(Fi)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(l,O){switch(l.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=O;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=O;break}}if(O){this._clearTimeout();return}const Y=l.relatedTarget;this._element===Y||this._element.contains(Y)||this._maybeScheduleHide()}_setListeners(){Bt.on(this._element,Wl,l=>this._onInteraction(l,!0)),Bt.on(this._element,Vl,l=>this._onInteraction(l,!1)),Bt.on(this._element,Kl,l=>this._onInteraction(l,!0)),Bt.on(this._element,zl,l=>this._onInteraction(l,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(l){return this.each(function(){const O=li.getOrCreateInstance(this,l);if(typeof l=="string"){if(typeof O[l]>"u")throw new TypeError(`No method named "${l}"`);O[l](this)}})}}Dr(li),Qe(li)},7576(xt){/*!
47 * clipboard.js v2.0.11
48 * https://clipboardjs.com/
49 *
50 * Licensed MIT © Zeno Rocha
51 */(function(b,T){xt.exports=T()})(this,function(){return(function(){var P={686:(function(x,_,a){"use strict";a.d(_,{default:function(){return U}});var g=a(279),v=a.n(g),c=a(370),d=a.n(c),s=a(817),n=a.n(s);function i(Q){try{return document.execCommand(Q)}catch{return!1}}var o=function(X){var lt=n()(X);return i("cut"),lt},y=o;function f(Q){var X=document.documentElement.getAttribute("dir")==="rtl",lt=document.createElement("textarea");lt.style.fontSize="12pt",lt.style.border="0",lt.style.padding="0",lt.style.margin="0",lt.style.position="absolute",lt.style[X?"right":"left"]="-9999px";var ot=window.pageYOffset||document.documentElement.scrollTop;return lt.style.top="".concat(ot,"px"),lt.setAttribute("readonly",""),lt.value=Q,lt}var e=function(X,lt){var ot=f(X);lt.container.appendChild(ot);var V=n()(ot);return i("copy"),ot.remove(),V},u=function(X){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ot="";return typeof X=="string"?ot=e(X,lt):X instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(X?.type)?ot=e(X.value,lt):(ot=n()(X),i("copy")),ot},h=u;function m(Q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(lt){return typeof lt}:m=function(lt){return lt&&typeof Symbol=="function"&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt},m(Q)}var w=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lt=X.action,ot=lt===void 0?"copy":lt,V=X.container,at=X.target,wt=X.text;if(ot!=="copy"&&ot!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(at!==void 0)if(at&&m(at)==="object"&&at.nodeType===1){if(ot==="copy"&&at.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ot==="cut"&&(at.hasAttribute("readonly")||at.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(wt)return h(wt,{container:V});if(at)return ot==="cut"?y(at):h(at,{container:V})},A=w;function S(Q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(lt){return typeof lt}:S=function(lt){return lt&&typeof Symbol=="function"&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt},S(Q)}function I(Q,X){if(!(Q instanceof X))throw new TypeError("Cannot call a class as a function")}function R(Q,X){for(var lt=0;lt<X.length;lt++){var ot=X[lt];ot.enumerable=ot.enumerable||!1,ot.configurable=!0,"value"in ot&&(ot.writable=!0),Object.defineProperty(Q,ot.key,ot)}}function r(Q,X,lt){return X&&R(Q.prototype,X),lt&&R(Q,lt),Q}function D(Q,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");Q.prototype=Object.create(X&&X.prototype,{constructor:{value:Q,writable:!0,configurable:!0}}
vendor: 4,739 bytes, line 51
51),X&&B(Q,X)}function B(Q,X){return B=Object.setPrototypeOf||function(ot,V){return ot.__proto__=V,ot},B(Q,X)}function G(Q){var X=it();return function(){var ot=Et(Q),V;if(X){var at=Et(this).constructor;V=Reflect.construct(ot,arguments,at)}else V=ot.apply(this,arguments);return j(this,V)}}function j(Q,X){return X&&(S(X)==="object"||typeof X=="function")?X:rt(Q)}function rt(Q){if(Q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Q}function it(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Et(Q){return Et=Object.setPrototypeOf?Object.getPrototypeOf:function(lt){return lt.__proto__||Object.getPrototypeOf(lt)},Et(Q)}function pt(Q,X){var lt="data-clipboard-".concat(Q);if(X.hasAttribute(lt))return X.getAttribute(lt)}var tt=(function(Q){D(lt,Q);var X=G(lt);function lt(ot,V){var at;return I(this,lt),at=X.call(this),at.resolveOptions(V),at.listenClick(ot),at}return r(lt,[{key:"resolveOptions",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof V.action=="function"?V.action:this.defaultAction,this.target=typeof V.target=="function"?V.target:this.defaultTarget,this.text=typeof V.text=="function"?V.text:this.defaultText,this.container=S(V.container)==="object"?V.container:document.body}},{key:"listenClick",value:function(V){var at=this;this.listener=d()(V,"click",function(wt){return at.onClick(wt)})}},{key:"onClick",value:function(V){var at=V.delegateTarget||V.currentTarget,wt=this.action(at)||"copy",mt=A({action:wt,container:this.container,target:this.target(at),text:this.text(at)});this.emit(mt?"success":"error",{action:wt,text:mt,trigger:at,clearSelection:function(){at&&at.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(V){return pt("action",V)}},{key:"defaultTarget",value:function(V){var at=pt("target",V);if(at)return document.querySelector(at)}},{key:"defaultText",value:function(V){return pt("text",V)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(V){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return h(V,at)}},{key:"cut",value:function(V){return y(V)}},{key:"isSupported",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],at=typeof V=="string"?[V]:V,wt=!!document.queryCommandSupported;return at.forEach(function(mt){wt=wt&&!!document.queryCommandSupported(mt)}),wt}}]),lt})(v()),U=tt}),828:(function(x){var _=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function g(v,c){for(;v&&v.nodeType!==_;){if(typeof v.matches=="function"&&v.matches(c))return v;v=v.parentNode}}x.exports=g}),438:(function(x,_,a){var g=a(828);function v(s,n,i,o,y){var f=d.apply(this,arguments);return s.addEventListener(i,f,y),{destroy:function(){s.removeEventListener(i,f,y)}}}function c(s,n,i,o,y){return typeof s.addEventListener=="function"?v.apply(null,arguments):typeof i=="function"?v.bind(null,document).apply(null,arguments):(typeof s=="string"&&(s=document.querySelectorAll(s)),Array.prototype.map.call(s,function(f){return v(f,n,i,o,y)}))}function d(s,n,i,o){return function(y){y.delegateTarget=g(y.target,n),y.delegateTarget&&o.call(s,y)}}x.exports=c}),879:(function(x,_){_.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},_.nodeList=function(a){var g=Object.prototype.toString.call(a);return a!==void 0&&(g==="[object NodeList]"||g==="[object HTMLCollection]")&&"length"in a&&(a.length===0||_.node(a[0]))},_.string=function(a){return typeof a=="string"||a instanceof String},_.fn=function(a){var g=Object.prototype.toString.call(a);return g==="[object Function]"}}),370:(function(x,_,a){var g=a(879),v=a(438);function c(i,o,y){if(!i&&!o&&!y)throw new Error("Missing required arguments");if(!g.string(o))throw new TypeError("Second argument must be a String");if(!g.fn(y))throw new TypeError("Third argument must be a Function");if(g.node(i))return d(i,o,y);if(g.nodeList(i))return s(i,o,y);if(g.string(i))return n(i,o,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(i,o,y){return i.addEventListener(o,y),{destroy:function(){i.removeEventListener(o,y)}}}function s(i,o,y){return Array.prototype.forEach.call(i,function(f){f.addEventListener(o,y)}),{destroy:function(){Array.prototype.forEach.call(i,function(f){f.removeEventListener(o,y)})}}}
51function n(i,o,y){return v(document.body,i,o,y)}x.exports=c}),817:(function(x){function _(a){var g;if(a.nodeName==="SELECT")a.focus(),g=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var v=a.hasAttribute("readonly");v||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),v||a.removeAttribute("readonly"),g=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(a),c.removeAllRanges(),c.addRange(d),g=c.toString()}return g}x.exports=_}),279:(function(x){function _(){}_.prototype={on:function(a,g,v){var c=this.e||(this.e={});return(c[a]||(c[a]=[])).push({fn:g,ctx:v}),this},once:function(a,g,v){var c=this;function d(){c.off(a,d),g.apply(v,arguments)}return d._=g,this.on(a,d,v)},emit:function(a){var g=[].slice.call(arguments,1),v=((this.e||(this.e={}))[a]||[]).slice(),c=0,d=v.length;for(c;c<d;c++)v[c].fn.apply(v[c].ctx,g);return this},off:function(a,g){var v=this.e||(this.e={}),c=v[a],d=[];if(c&&g)for(var s=0,n=c.length;s<n;s++)c[s].fn!==g&&c[s].fn._!==g&&d.push(c[s]);return d.length?v[a]=d:delete v[a],this}},x.exports=_,x.exports.TinyEmitter=_})},b={};function T(x){if(b[x])return b[x].exports;var _=b[x]={exports:{}};return P[x](_,_.exports,T),_.exports}return(function(){T.n=function(x){var _=x&&x.__esModule?function(){return x.default}:function(){return x};return T.d(_,{a:_}),_}})(),(function(){T.d=function(x,_){for(var a in _)T.o(_,a)&&!T.o(x,a)&&Object.defineProperty(x,a,{enumerable:!0,get:_[a]})}})(),(function(){T.o=function(x,_){return Object.prototype.hasOwnProperty.call(x,_)}})(),T(686)})().default})},6617(xt,P,b){P.formatArgs=x,P.save=_,P.load=a,P.useColors=T,P.storage=g(),P.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function T(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function x(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+xt.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;c.splice(1,0,d,"color: inherit");let s=0,n=0;c[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(s++,i==="%c"&&(n=s))}),c.splice(n,0,d)}P.log=console.debug||console.log||(()=>{});function _(c){try{c?P.storage.setItem("debug",c):P.storage.removeItem("debug")}catch{}}function a(){let c;try{c=P.storage.getItem("debug")||P.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function g(){try{return localStorage}catch{}}xt.exports=b(9040)(P);const{formatters:v}=xt.exports;v.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}},9040(xt,P,b){function T(x){a.debug=a,a.default=a,a.coerce=n,a.disable=d,a.enable=v,a.enabled=s,a.humanize=b(6585),a.destroy=i,Object.keys(x).forEac
51h(o=>{a[o]=x[o]}),a.names=[],a.skips=[],a.formatters={};function _(o){let y=0;for(let f=0;f<o.length;f++)y=(y<<5)-y+o.charCodeAt(f),y|=0;return a.colors[Math.abs(y)%a.colors.length]}a.selectColor=_;function a(o){let y,f=null,e,u;function h(...m){if(!h.enabled)return;const w=h,A=Number(new Date),S=A-(y||A);w.diff=S,w.prev=y,w.curr=A,y=A,m[0]=a.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let I=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(r,D)=>{if(r==="%%")return"%";I++;const B=a.formatters[D];if(typeof B=="function"){const G=m[I];r=B.call(w,G),m.splice(I,1),I--}return r}),a.formatArgs.call(w,m),(w.log||a.log).apply(w,m)}return h.namespace=o,h.useColors=a.useColors(),h.color=a.selectColor(o),h.extend=g,h.destroy=a.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(e!==a.namespaces&&(e=a.namespaces,u=a.enabled(o)),u),set:m=>{f=m}}),typeof a.init=="function"&&a.init(h),h}function g(o,y){const f=a(this.namespace+(typeof y>"u"?":":y)+o);return f.log=this.log,f}function v(o){a.save(o),a.namespaces=o,a.names=[],a.skips=[];const y=(typeof o=="string"?o:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of y)f[0]==="-"?a.skips.push(f.slice(1)):a.names.push(f)}function c(o,y){let f=0,e=0,u=-1,h=0;for(;f<o.length;)if(e<y.length&&(y[e]===o[f]||y[e]==="*"))y[e]==="*"?(u=e,h=f,e++):(f++,e++);else if(u!==-1)e=u+1,h++,f=h;else return!1;for(;e<y.length&&y[e]==="*";)e++;return e===y.length}function d(){const o=[...a.names,...a.skips.map(y=>"-"+y)].join(",");return a.enable(""),o}function s(o){for(const y of a.skips)if(c(o,y))return!1;for(const y of a.names)if(c(o,y))return!0;return!1}function n(o){return o instanceof Error?o.stack||o.message:o}function i(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}xt.exports=T},4061(xt,P,b){var T,x,_;/*!
52 * jQuery Form Plugin
53 * version: 4.3.0
54 * Requires jQuery v1.7.2 or later
55 * Project repository: https://github.com/jquery-form/form
56
57 * Copyright 2017 Kevin Morris
58 * Copyright 2006 M. Alsup
59
60 * Dual licensed under the LGPL-2.1+ or MIT licenses
61 * https://github.com/jquery-form/form#license
62
63 * This library is free software; you can redistribute it and/or
64 * modify it under the terms of the GNU Lesser General Public
65 * License as published by the Free Software Foundation; either
66 * version 2.1 of the License, or (at your option) any later version.
67 * This library is distributed in the hope that it will be useful,
68 * but WITHOUT ANY WARRANTY; without even the implied warranty of
69 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
70 * Lesser General Public License for more details.
71 */(function(a){x=[b(4692)],T=a,_=typeof T=="function"?T.apply(P,x):T,_!==void 0&&(xt.exports=_)})(function(a){"use strict";var g=/\r?\n/g,v={};v.fileapi=a('<input type="file">').get(0).files!==void 0,v.formdata=window.FormData!==void 0;var c=!!a.fn.prop;function d(i){var o=i.data;i.isDefaultPrevented()||(i.preventDefault(),a(i.target).closest("form").ajaxSubmit(o))}function s(i){var o=i.target,y=a(o);if(!y.is("[type=submit],[type=image]")){var f=y.closest("[type=submit]");if(f.length===0)return;o=f[0]}var e,u=o.form;(u.clk=o).type==="image"&&(i.offsetX!==void 0?(u.clk_x=i.offsetX,u.clk_y=i.offsetY):typeof a.fn.offset=="function"?(e=y.offset(),u.clk_x=i.pageX-e.left,u.clk_y=i.pageY-e.top):(u.clk_x=i.pageX-o.offsetLeft,u.clk_y=i.pageY-o.offsetTop)),setTimeout(function(){u.clk=u.clk_x=u.clk_y=null},100)}function n(){var i;a.fn.ajaxSubmit.debug&&(i="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&&window.console.log?window.console.log(i):window.opera&&window.opera.postError&&window.opera.postError(i))}a.fn.attr2=function(){if(!c)return this.attr.apply(this,arguments);var i=this.prop.apply(this,arguments);return i&&i.jquery||typeof i=="string"?i:this.attr.apply(this,arguments)},a.fn.ajaxSubmit=function(i,o,y,f){if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var e,u,h,m,w=this;typeof i=="function"?i={success:i}:typeof i=="string"||i===!1&&0<arguments.length?(i={url:i,data:o,dataType:y},typeof f=="function"&&(i.success=f)):i===void 0&&(i={}),e=i.method||i.type||this.attr2("method"),h=(h=(h=typeof(u=i.url||this.attr2("action"))=="string"?a.trim(u):"")||window.location.href||"")&&(h.match(/^([^#]+)/)||[])[1],m=/(MSIE|Trident)/.test(navigator.userAgent||"")&&/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",i=a.extend(!0,{url:h,success:a.ajaxSettings.success,type:e||a.aja
71xSettings.type,iframeSrc:m},i);var A={};if(this.trigger("form-pre-serialize",[this,i,A]),A.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(i.beforeSerialize&&i.beforeSerialize(this,i)===!1)return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var S=i.traditional;S===void 0&&(S=a.ajaxSettings.traditional);var I,R,r=[],D=this.formToArray(i.semantic,r,i.filtering);if(i.data&&(R=a.isFunction(i.data)?i.data(D):i.data,i.extraData=R,I=a.param(R,S)),i.beforeSubmit&&i.beforeSubmit(D,this,i)===!1)return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[D,this,i,A]),A.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var B=a.param(D,S);I&&(B=B?B+"&"+I:I),i.type.toUpperCase()==="GET"?(i.url+=(0<=i.url.indexOf("?")?"&":"?")+B,i.data=null):i.data=B;var G,j,rt,it=[];i.resetForm&&it.push(function(){w.resetForm()}),i.clearForm&&it.push(function(){w.clearForm(i.includeHidden)}),!i.dataType&&i.target?(G=i.success||function(){},it.push(function(V,at,wt){var mt=arguments,Rt=i.replaceTarget?"replaceWith":"html";a(i.target)[Rt](V).each(function(){G.apply(this,mt)})})):i.success&&(a.isArray(i.success)?a.merge(it,i.success):it.push(i.success)),i.success=function(V,at,wt){for(var mt=i.context||this,Rt=0,Gt=it.length;Rt<Gt;Rt++)it[Rt].apply(mt,[V,at,wt||w,w])},i.error&&(j=i.error,i.error=function(V,at,wt){var mt=i.context||this;j.apply(mt,[V,at,wt,w])}),i.complete&&(rt=i.complete,i.complete=function(V,at){var wt=i.context||this;rt.apply(wt,[V,at,w])});var Et=0<a("input[type=file]:enabled",this).filter(function(){return a(this).val()!==""}).length,pt="multipart/form-data",tt=w.attr("enctype")===pt||w.attr("encoding")===pt,U=v.fileapi&&v.formdata;n("fileAPI :"+U);var Q,X=(Et||tt)&&!U;i.iframe!==!1&&(i.iframe||X)?i.closeKeepAlive?a.get(i.closeKeepAlive,function(){Q=ot(D)}):Q=ot(D):Q=(Et||tt)&&U?(function(V){for(var at=new FormData,wt=0;wt<V.length;wt++)at.append(V[wt].name,V[wt].value);if(i.extraData){var mt=(function(Xt){var W,z,st=a.param(Xt,i.traditional).split("&"),dt=st.length,Z=[];for(W=0;W<dt;W++)st[W]=st[W].replace(/\+/g," "),z=st[W].split("="),Z.push([decodeURIComponent(z[0]),decodeURIComponent(z[1])]);return Z})(i.extraData);for(wt=0;wt<mt.length;wt++)mt[wt]&&at.append(mt[wt][0],mt[wt][1])}i.data=null;var Rt=a.extend(!0,{},a.ajaxSettings,i,{contentType:!1,processData:!1,cache:!1,type:e||"POST"});i.uploadProgress&&(Rt.xhr=function(){var Xt=a.ajaxSettings.xhr();return Xt.upload&&Xt.upload.addEventListener("progress",function(W){var z=0,st=W.loaded||W.position,dt=W.total;W.lengthComputable&&(z=Math.ceil(st/dt*100)),i.uploadProgress(W,st,dt,z)},!1),Xt}),Rt.data=null;var Gt=Rt.beforeSend;return Rt.beforeSend=function(Xt,W){i.formData?W.data=i.formData:W.data=at,Gt&&Gt.call(this,Xt,W)},a.ajax(Rt)})(D):a.ajax(i),w.removeData("jqxhr").data("jqxhr",Q);for(var lt=0;lt<r.length;lt++)r[lt]=null;return this.trigger("form-submit-notify",[this,i]),this;function ot(V){var at,wt,mt,Rt,Gt,Xt,W,z,st,dt,Z,k,q=w[0],J=a.Deferred();if(J.abort=function(qt){z.abort(qt)},V)for(wt=0;wt<r.length;wt++)at=a(r[wt]),c?at.prop("disabled",!1):at.removeAttr("disabled");(mt=a.extend(!0,{},a.ajaxSettings,i)).context=mt.context||mt,Gt="jqFormIO"+new Date().getTime();var ut=q.ownerDocument,F=w.closest("body");if(mt.iframeTarget?(dt=(Xt=a(mt.iframeTarget,ut)).attr2("name"))?Gt=dt:Xt.attr2("name",Gt):(Xt=a('<iframe name="'+Gt+'" src="'+mt.iframeSrc+'" />',ut)).css({position:"absolute",top:"-1000px",left:"-1000px"}),W=Xt[0],z={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(qt){var Vt=qt==="timeout"?"timeout":"aborted";n("aborting upload... "+Vt),this.aborted=1;try{W.contentWindow.document.execCommand&&W.contentWindow.document.execCommand("Stop")}catch{}Xt.attr("src",mt.iframeSrc),z.error=Vt,mt.error&&mt.error.call(mt.context,z,Vt,qt),Rt&&a.event.trigger("ajaxError",[z,mt,Vt]),mt.complete&&mt.complete.call(mt.context,z,Vt)}},(Rt=mt.global)&&a.active++==0&&a.event.trigger("ajaxStart"),Rt&&a.event.trigger("ajaxSend",[z,mt]),mt.beforeSend&&mt.beforeSend.c
71all(mt.context,z,mt)===!1)return mt.global&&a.active--,J.reject(),J;if(z.aborted)return J.reject(),J;(st=q.clk)&&(dt=st.name)&&!st.disabled&&(mt.extraData=mt.extraData||{},mt.extraData[dt]=st.value,st.type==="image"&&(mt.extraData[dt+".x"]=q.clk_x,mt.extraData[dt+".y"]=q.clk_y));var K=1,et=2;function ct(qt){var Vt=null;try{qt.contentWindow&&(Vt=qt.contentWindow.document)}catch(ce){n("cannot get iframe.contentWindow document: "+ce)}if(Vt)return Vt;try{Vt=qt.contentDocument?qt.contentDocument:qt.document}catch(ce){n("cannot get iframe.contentDocument: "+ce),Vt=qt.document}return Vt}var Tt=a("meta[name=csrf-token]").attr("content"),_t=a("meta[name=csrf-param]").attr("content");function kt(){var qt=w.attr2("target"),Vt=w.attr2("action"),ce=w.attr("enctype")||w.attr("encoding")||"multipart/form-data";q.setAttribute("target",Gt),e&&!/post/i.test(e)||q.setAttribute("method","POST"),Vt!==mt.url&&q.setAttribute("action",mt.url),mt.skipEncodingOverride||e&&!/post/i.test(e)||w.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),mt.timeout&&(k=setTimeout(function(){Z=!0,Kt(K)},mt.timeout));var he=[];try{if(mt.extraData)for(var pe in mt.extraData)mt.extraData.hasOwnProperty(pe)&&(a.isPlainObject(mt.extraData[pe])&&mt.extraData[pe].hasOwnProperty("name")&&mt.extraData[pe].hasOwnProperty("value")?he.push(a('<input type="hidden" name="'+mt.extraData[pe].name+'">',ut).val(mt.extraData[pe].value).appendTo(q)[0]):he.push(a('<input type="hidden" name="'+pe+'">',ut).val(mt.extraData[pe]).appendTo(q)[0]));mt.iframeTarget||Xt.appendTo(F),W.attachEvent?W.attachEvent("onload",Kt):W.addEventListener("load",Kt,!1),setTimeout(function je(){try{var Fe=ct(W).readyState;n("state = "+Fe),Fe&&Fe.toLowerCase()==="uninitialized"&&setTimeout(je,50)}catch(Qt){n("Server abort: ",Qt," (",Qt.name,")"),Kt(et),k&&clearTimeout(k),k=void 0}},15);try{q.submit()}catch{document.createElement("form").submit.apply(q)}}finally{q.setAttribute("action",Vt),q.setAttribute("enctype",ce),qt?q.setAttribute("target",qt):w.removeAttr("target"),a(he).remove()}}_t&&Tt&&(mt.extraData=mt.extraData||{},mt.extraData[_t]=Tt),mt.forceSync?kt():setTimeout(kt,10);var bt,yt,Mt,Ht=50;function Kt(qt){if(!z.aborted&&!Mt){if((yt=ct(W))||(n("cannot access response document"),qt=et),qt===K&&z)return z.abort("timeout"),void J.reject(z,"timeout");if(qt===et&&z)return z.abort("server abort"),void J.reject(z,"error","server abort");if(yt&&yt.location.href!==mt.iframeSrc||Z){W.detachEvent?W.detachEvent("onload",Kt):W.removeEventListener("load",Kt,!1);var Vt,ce="success";try{if(Z)throw"timeout";var he=mt.dataType==="xml"||yt.XMLDocument||a.isXMLDoc(yt);if(n("isXml="+he),!he&&window.opera&&(yt.body===null||!yt.body.innerHTML)&&--Ht)return n("requeing onLoad callback, DOM not available"),void setTimeout(Kt,250);var pe=yt.body?yt.body:yt.documentElement;z.responseText=pe?pe.innerHTML:null,z.responseXML=yt.XMLDocument?yt.XMLDocument:yt,he&&(mt.dataType="xml"),z.getResponseHeader=function(Jt){return{"content-type":mt.dataType}[Jt.toLowerCase()]},pe&&(z.status=Number(pe.getAttribute("status"))||z.status,z.statusText=pe.getAttribute("statusText")||z.statusText);var je,Fe,Qt,jt=(mt.dataType||"").toLowerCase(),Ft=/(json|script|text)/.test(jt);Ft||mt.textarea?(je=yt.getElementsByTagName("textarea")[0])?(z.responseText=je.value,z.status=Number(je.getAttribute("status"))||z.status,z.statusText=je.getAttribute("statusText")||z.statusText):Ft&&(Fe=yt.getElementsByTagName("pre")[0],Qt=yt.getElementsByTagName("body")[0],Fe?z.responseText=Fe.textContent?Fe.textContent:Fe.innerText:Qt&&(z.responseText=Qt.textContent?Qt.textContent:Qt.innerText)):jt==="xml"&&!z.responseXML&&z.responseText&&(z.responseXML=ne(z.responseText));try{bt=de(z,jt,mt)}catch(Jt){ce="parsererror",z.error=Vt=Jt||ce}}catch(Jt){n("error caught: ",Jt),ce="error",z.error=Vt=Jt||ce}z.aborted&&(n("upload aborted"),ce=null),z.status&&(ce=200<=z.status&&z.status<300||z.status===304?"success":"error"),ce==="success"?(mt.success&&mt.success.call(mt.context,bt,"success",z),J.resolve(z.responseText,"success",z),Rt&&a.event.trigger("ajaxSuccess",[z,mt])):ce&&(Vt===void 0&&(Vt=z.statusText),mt.error&&mt.error.call(mt.context,z,ce,Vt),J.reject(z,"error",Vt),Rt&&a.event.trigger("ajaxError",[z,mt,Vt])),Rt&&a.event.trigger("ajaxComplete",[z,mt]),Rt&&!--a.active&&a.event.trigger("ajaxStop"),mt.complete&&mt.complete.call(mt.context,z,ce),Mt=!0,mt.timeout&&clearTimeout(k),setTimeout(function(){mt.iframeTarget?Xt.attr("src",mt.iframeSrc):Xt.remove(),z.responseXML=null},100)}}}var ne=a.parseXML||function(qt,Vt){return window.ActiveXObject?((Vt=new ActiveXObject("Microsoft.XMLDOM")).async="false",Vt.loadXML(qt)):Vt=new DOMParser().parseFromString(qt,"text/xml"),Vt&&Vt.documentElement&&Vt.documentElement.nodeName!=="parsererror"?Vt:null},re=a.parseJSON||function(qt){return window.eval("("+qt+")")},de=function(qt,Vt,ce){var he=qt.getResponseHeader("content-type")||"",pe=(Vt==="xml"||!Vt)&&0<=he.indexOf("xml"),je=pe?qt.responseXML:qt.responseText;return pe&&je.documentElement.nodeName==="parsererror"&&a.error&&a.error("parsererror"),ce&&ce.dataFilter&&(je=ce.dataFilter(je,Vt)),typeof je=="string"&&((Vt==="json"||!Vt)&&0<=he.indexOf("json")?je=re(je):(Vt==="script"||!Vt)&&0<=he.indexOf("javascript")&&a.globalEval(je)),je};return J}},a.fn.ajaxForm=function(i,o,y,f){if((typeof i=="string"||i===!1&&0<arguments.length)&&(i={url:i,data:o,dataType:y},typeof f=="function"&&(i.success=f)),(i=i||{}).delegation=i.delegation&&a.isFunction(a.fn.on),i.delegation||this.length!==0)return i.delegation?(a(document).off("submit.form-plugin",this.selector,d).off("click.form-plugin",this.selector,s).on("submit.form-plugin",this.selector,i,d).on("click.form-plugin",this.selector,i,s),this):(i.beforeFormUnbind&&i.beforeFormUnbind(this,i),this.ajaxFormUnbind().on("submit.form-plugin",i,d).on("click.form-plugin",i,s));var e={s:this.selector,c:this.context};return!a.isReady&&e.s?(n("DOM not ready, queuing ajaxForm"),a(function(){a(e.s,e.c).ajaxForm(i)})):n("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)")),this},a.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},a.fn.formToArray=function(i,o,y){var f=[];if(this.length===0)return f;var e,u,h,m,w,A,S,I,R,r,D=this[0],B=this.attr("id"),G=(G=i||D.elements===void 0?D.getElementsByTagName("*"):D.elements)&&a.makeArray(G);if(B&&(i||/(Edge|Trident)\//.test(navigator.userAgent))&&(e=a(':input[form="'+B+'"]').get()).length&&(G=(G||[]).concat(e)),!G||!G.length)return f;for(a.isFunction(y)&&(G=a.map(G,y)),u=0,A=G.length;u<A;u++)if((r=(w=G[u]).name)&&!w.disabled)if(i&&D.clk&&w.type==="image")D.clk===w&&(f.push({name:r,value:a(w).val(),type:w.type}),f.push({name:r+".x",value:D.clk_x},{name:r+".y",value:D.clk_y}));else if((m=a.fieldValue(w,!0))&&m.constructor===Array)for(o&&o.push(w),h=0,S=m.length;h<S;h++)f.push({name:r,value:m[h]});else if(v.fileapi&&w.type==="file"){o&&o.push(w);var j=w.files;if(j.length)for(h=0;h<j.length;h++)f.push({name:r,value:j[h],type:w.type});else f.push({name:r,value:"",type:w.type})}else m!=null&&(o&&o.push(w),f.push({name:r,value:m,type:w.type,required:w.required}));return i||!D.clk||(r=(R=(I=a(D.clk))[0]).name)&&!R.disabled&&R.type==="image"&&(f.push({name:r,value:I.val()}),f.push({name:r+".x",value:D.clk_x},{name:r+".y",value:D.clk_y})),f}
71,a.fn.formSerialize=function(i){return a.param(this.formToArray(i))},a.fn.fieldSerialize=function(i){var o=[];return this.each(function(){var y=this.name;if(y){var f=a.fieldValue(this,i);if(f&&f.constructor===Array)for(var e=0,u=f.length;e<u;e++)o.push({name:y,value:f[e]});else f!=null&&o.push({name:this.name,value:f})}}),a.param(o)},a.fn.fieldValue=function(i){for(var o=[],y=0,f=this.length;y<f;y++){var e=this[y],u=a.fieldValue(e,i);u==null||u.constructor===Array&&!u.length||(u.constructor===Array?a.merge(o,u):o.push(u))}return o},a.fieldValue=function(i,o){var y=i.name,f=i.type,e=i.tagName.toLowerCase();if(o===void 0&&(o=!0),o&&(!y||i.disabled||f==="reset"||f==="button"||(f==="checkbox"||f==="radio")&&!i.checked||(f==="submit"||f==="image")&&i.form&&i.form.clk!==i||e==="select"&&i.selectedIndex===-1))return null;if(e!=="select")return a(i).val().replace(g,`\r
72`);var u=i.selectedIndex;if(u<0)return null;for(var h=[],m=i.options,w=f==="select-one",A=w?u+1:m.length,S=w?u:0;S<A;S++){var I=m[S];if(I.selected&&!I.disabled){var R=(R=I.value)||(I.attributes&&I.attributes.value&&!I.attributes.value.specified?I.text:I.value);if(w)return R;h.push(R)}}return h},a.fn.clearForm=function(i){return this.each(function(){a("input,select,textarea",this).clearFields(i)})},a.fn.clearFields=a.fn.clearInputs=function(i){var o=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var y=this.type,f=this.tagName.toLowerCase();o.test(y)||f==="textarea"?this.value="":y==="checkbox"||y==="radio"?this.checked=!1:f==="select"?this.selectedIndex=-1:y==="file"?/MSIE/.test(navigator.userAgent)?a(this).replaceWith(a(this).clone(!0)):a(this).val(""):i&&(i===!0&&/hidden/.test(y)||typeof i=="string"&&a(this).is(i))&&(this.value="")})},a.fn.resetForm=function(){return this.each(function(){var i=a(this),o=this.tagName.toLowerCase();switch(o){case"input":this.checked=this.defaultChecked;case"textarea":return this.value=this.defaultValue,!0;case"option":case"optgroup":var y=i.parents("select");return y.length&&y[0].multiple?o==="option"?this.selected=this.defaultSelected:i.find("option").resetForm():y.resetForm(),!0;case"select":return i.find("option").each(function(u){if(this.selected=this.defaultSelected,this.defaultSelected&&!i[0].multiple)return i[0].selectedIndex=u,!1}),!0;case"label":var f=a(i.attr("for")),e=i.find("input,select,textarea");return f[0]&&e.unshift(f[0]),e.resetForm(),!0;case"form":return typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset(),!0;default:return i.find("form,input,label,select,textarea").resetForm(),!0}})},a.fn.enable=function(i){return i===void 0&&(i=!0),this.each(function(){this.disabled=!i})},a.fn.selected=function(i){return i===void 0&&(i=!0),this.each(function(){var o,y=this.type;y==="checkbox"||y==="radio"?this.checked=i:this.tagName.toLowerCase()==="option"&&(o=a(this).parent("select"),i&&o[0]&&o[0].type==="select-one"&&o.find("option").selected(!1),this.selected=i)})},a.fn.ajaxSubmit.debug=!1})},4692(xt,P){var b,T;/*!
73* jQuery JavaScript Library v3.7.1
74* https://jquery.com/
75*
76* Copyright OpenJS Foundation and other contributors
77* Released under the MIT license
78* https://jquery.org/license
79*
80* Date: 2023-08-28T13:37Z
81*/(function(x,_){"use strict";typeof xt.exports=="object"?xt.exports=x.document?_(x,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return _(a)}:_(x)})(typeof window<"u"?window:this,function(x,_){"use strict";var a=[],g=Object.getPrototypeOf,v=a.slice,c=a.flat?function(t){return a.flat.call(t)}:function(t){return a.concat.apply([],t)},d=a.push,s=a.indexOf,n={},i=n.toString,o=n.hasOwnProperty,y=o.toString,f=y.call(Object),e={},u=function(p){return typeof p=="function"&&typeof p.nodeType!="number"&&typeof p.item!="function"},h=function(p){return p!=null&&p===p.window},m=x.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function A(t,p,E){E=E||m;var C,L,M=E.createElement("script");if(M.text=t,p)for(C in w)L=p[C]||p.getAttribute&&p.getAttribute(C),L&&M.setAttribute(C,L);E.head.appendChild(M).parentNode.removeChild(M)}function S(t){return t==null?t+"":typeof t=="object"||typeof t=="function"?n[i.call(t)]||"object":typeof t}var I="3.7.1",R=/HTML$/i,r=function(t,p){return new r.fn.init(t,p)};r.fn=r.prototype={jquery:I,constructor:r,length:0,toArray:function(){return v.call(this)},get:function(t){return t==null?v.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var p=r.merge(this.constructor(),t);return p.prevObject=this,p},each:function(t){return r.each(this,t)},map:function(t){return this.pushStack(r.map(this,function(p,E){return t.call(p,E,p)}))},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(r.grep(this,function(t,p){return(p+1)%2}))},odd:function(){return this.pushStack(r.grep(this,function(t,p){return p%2}))},eq:function(t){var p=this.length,E=+t+(t<0?p:0);return this.pushStack(E>=0&&E<p?[this[E]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:a.sort,splice:a.splice},r.extend=r.fn.extend=function(){var t,p,E,C,L,M,H=arguments[0]||{},gt=1,ft=arguments.length,At=!1;
81for(typeof H=="boolean"&&(At=H,H=arguments[gt]||{},gt++),typeof H!="object"&&!u(H)&&(H={}),gt===ft&&(H=this,gt--);gt<ft;gt++)if((t=arguments[gt])!=null)for(p in t)C=t[p],!(p==="__proto__"||H===C)&&(At&&C&&(r.isPlainObject(C)||(L=Array.isArray(C)))?(E=H[p],L&&!Array.isArray(E)?M=[]:!L&&!r.isPlainObject(E)?M={}:M=E,L=!1,H[p]=r.extend(At,M,C)):C!==void 0&&(H[p]=C));return H},r.extend({expando:"jQuery"+(I+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var p,E;return!t||i.call(t)!=="[object Object]"?!1:(p=g(t),p?(E=o.call(p,"constructor")&&p.constructor,typeof E=="function"&&y.call(E)===f):!0)},isEmptyObject:function(t){var p;for(p in t)return!1;return!0},globalEval:function(t,p,E){A(t,{nonce:p&&p.nonce},E)},each:function(t,p){var E,C=0;if(D(t))for(E=t.length;C<E&&p.call(t[C],C,t[C])!==!1;C++);else for(C in t)if(p.call(t[C],C,t[C])===!1)break;return t},text:function(t){var p,E="",C=0,L=t.nodeType;if(!L)for(;p=t[C++];)E+=r.text(p);return L===1||L===11?t.textContent:L===9?t.documentElement.textContent:L===3||L===4?t.nodeValue:E},makeArray:function(t,p){var E=p||[];return t!=null&&(D(Object(t))?r.merge(E,typeof t=="string"?[t]:t):d.call(E,t)),E},inArray:function(t,p,E){return p==null?-1:s.call(p,t,E)},isXMLDoc:function(t){var p=t&&t.namespaceURI,E=t&&(t.ownerDocument||t).documentElement;return!R.test(p||E&&E.nodeName||"HTML")},merge:function(t,p){for(var E=+p.length,C=0,L=t.length;C<E;C++)t[L++]=p[C];return t.length=L,t},grep:function(t,p,E){for(var C,L=[],M=0,H=t.length,gt=!E;M<H;M++)C=!p(t[M],M),C!==gt&&L.push(t[M]);return L},map:function(t,p,E){var C,L,M=0,H=[];if(D(t))for(C=t.length;M<C;M++)L=p(t[M],M,E),L!=null&&H.push(L);else for(M in t)L=p(t[M],M,E),L!=null&&H.push(L);return c(H)},guid:1,support:e}),typeof Symbol=="function"&&(r.fn[Symbol.iterator]=a[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,p){n["[object "+p+"]"]=p.toLowerCase()});function D(t){var p=!!t&&"length"in t&&t.length,E=S(t);return u(t)||h(t)?!1:E==="array"||p===0||typeof p=="number"&&p>0&&p-1 in t}function B(t,p){return t.nodeName&&t.nodeName.toLowerCase()===p.toLowerCase()}var G=a.pop,j=a.sort,rt=a.splice,it="[\\x20\\t\\r\\n\\f]",Et=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g");r.contains=function(t,p){var E=p&&p.parentNode;return t===E||!!(E&&E.nodeType===1&&(t.contains?t.contains(E):t.compareDocumentPosition&&t.compareDocumentPosition(E)&16))};var pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function tt(t,p){return p?t==="\0"?"\uFFFD":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}r.escapeSelector=function(t){return(t+"").replace(pt,tt)};var U=m,Q=d;(function(){var t,p,E,C,L,M=Q,H,gt,ft,At,Dt,It=r.expando,St=0,Ut=0,se=Lr(),Te=Lr(),ue=Lr(),Ke=Lr(),qe=function(nt,vt){return nt===vt&&(L=!0),0},hn="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",pn="(?:\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",be="\\["+it+"*("+pn+")(?:"+it+"*([*^$|!~]?=)"+it+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+pn+"))|)"+it+"*\\]",$n=":("+pn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+be+")*)|.*)\\)|)",Ce=new RegExp(it+"+","g"),$e=new RegExp("^"+it+"*,"+it+"*"),or=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ti=new RegExp(it+"|>"),mn=new RegExp($n),In=new RegExp("^"+pn+"$"),gn={ID:new RegExp("^#("+pn+")"),CLASS:new RegExp("^\\.("+pn+")"),TAG:new RegExp("^("+pn+"|[*])"),ATTR:new RegExp("^"+be),PSEUDO:new RegExp("^"+$n),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+hn+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},Bn=/^(?:input|select|textarea|button)$/i,tn=/^h\d$/i,on=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ei=/[+~]/,Cn=new RegExp("\\\\[\\da-fA-F]{1,6}"+it+"?|\\\\([^\\r\\n\\f])","g"),Sn=function(nt,vt){var Ct="0x"+nt.slice(1)-65536;return vt||(Ct<0?String.fromCharCode(Ct+65536):String.fromCharCode(Ct>>10|55296,Ct&1023|56320))},ar=function(){kn()},zn=Mr(function(nt){return nt.disabled===!0&&B(nt,"fieldset")},{dir:"parentNode",next:"legend"});function Yn(){try{return H.activeElement}catch{}}try{M.apply(a=v.call(U.childNodes),U.childNodes),a[U.childNodes.length].nodeType}catch{M={apply:function(vt,Ct){Q.apply(vt,v.call(Ct))}
81,call:function(vt){Q.apply(vt,v.call(arguments,1))}}}function Se(nt,vt,Ct,Pt){var Lt,Yt,te,ee,Zt,ye,le,fe=vt&&vt.ownerDocument,ve=vt?vt.nodeType:9;if(Ct=Ct||[],typeof nt!="string"||!nt||ve!==1&&ve!==9&&ve!==11)return Ct;if(!Pt&&(kn(vt),vt=vt||H,ft)){if(ve!==11&&(Zt=on.exec(nt)))if(Lt=Zt[1]){if(ve===9)if(te=vt.getElementById(Lt)){if(te.id===Lt)return M.call(Ct,te),Ct}else return Ct;else if(fe&&(te=fe.getElementById(Lt))&&Se.contains(vt,te)&&te.id===Lt)return M.call(Ct,te),Ct}else{if(Zt[2])return M.apply(Ct,vt.getElementsByTagName(nt)),Ct;if((Lt=Zt[3])&&vt.getElementsByClassName)return M.apply(Ct,vt.getElementsByClassName(Lt)),Ct}if(!Ke[nt+" "]&&(!At||!At.test(nt))){if(le=nt,fe=vt,ve===1&&(ti.test(nt)||or.test(nt))){for(fe=ei.test(nt)&&ni(vt.parentNode)||vt,(fe!=vt||!e.scope)&&((ee=vt.getAttribute("id"))?ee=r.escapeSelector(ee):vt.setAttribute("id",ee=It)),ye=lr(nt),Yt=ye.length;Yt--;)ye[Yt]=(ee?"#"+ee:":scope")+" "+Ir(ye[Yt]);le=ye.join(",")}try{return M.apply(Ct,fe.querySelectorAll(le)),Ct}catch{Ke(nt,!0)}finally{ee===It&&vt.removeAttribute("id")}}}return Di(nt.replace(Et,"$1"),vt,Ct,Pt)}function Lr(){var nt=[];function vt(Ct,Pt){return nt.push(Ct+" ")>p.cacheLength&&delete vt[nt.shift()],vt[Ct+" "]=Pt}return vt}function an(nt){return nt[It]=!0,nt}function Gn(nt){var vt=H.createElement("fieldset");try{return!!nt(vt)}catch{return!1}finally{vt.parentNode&&vt.parentNode.removeChild(vt),vt=null}}function ro(nt){return function(vt){return B(vt,"input")&&vt.type===nt}}function io(nt){return function(vt){return(B(vt,"input")||B(vt,"button"))&&vt.type===nt}}function Ri(nt){return function(vt){return"form"in vt?vt.parentNode&&vt.disabled===!1?"label"in vt?"label"in vt.parentNode?vt.parentNode.disabled===nt:vt.disabled===nt:vt.isDisabled===nt||vt.isDisabled!==!nt&&zn(vt)===nt:vt.disabled===nt:"label"in vt?vt.disabled===nt:!1}}function Fn(nt){return an(function(vt){return vt=+vt,an(function(Ct,Pt){for(var Lt,Yt=nt([],Ct.length,vt),te=Yt.length;te--;)Ct[Lt=Yt[te]]&&(Ct[Lt]=!(Pt[Lt]=Ct[Lt]))})})}function ni(nt){return nt&&typeof nt.getElementsByTagName<"u"&&nt}function kn(nt){var vt,Ct=nt?nt.ownerDocument||nt:U;return Ct==H||Ct.nodeType!==9||!Ct.documentElement||(H=Ct,gt=H.documentElement,ft=!r.isXMLDoc(H),Dt=gt.matches||gt.webkitMatchesSelector||gt.msMatchesSelector,gt.msMatchesSelector&&U!=H&&(vt=H.defaultView)&&vt.top!==vt&&vt.addEventListener("unload",ar),e.getById=Gn(function(Pt){return gt.appendChild(Pt).id=r.expando,!H.getElementsByName||!H.getElementsByName(r.expando).length}),e.disconnectedMatch=Gn(function(Pt){return Dt.call(Pt,"*")}),e.scope=Gn(function(){return H.querySelectorAll(":scope")}),e.cssHas=Gn(function(){try{return H.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),e.getById?(p.filter.ID=function(Pt){var Lt=Pt.replace(Cn,Sn);return function(Yt){return Yt.getAttribute("id")===Lt}},p.find.ID=function(Pt,Lt){if(typeof Lt.getElementById<"u"&&ft){var Yt=Lt.getElementById(Pt);return Yt?[Yt]:[]}}):(p.filter.ID=function(Pt){var Lt=Pt.replace(Cn,Sn);return function(Yt){var te=typeof Yt.getAttributeNode<"u"&&Yt.getAttributeNode("id");return te&&te.value===Lt}},p.find.ID=function(Pt,Lt){if(typeof Lt.getElementById<"u"&&ft){var Yt,te,ee,Zt=Lt.getElementById(Pt);if(Zt){if(Yt=Zt.getAttributeNode("id"),Yt&&Yt.value===Pt)return[Zt];for(ee=Lt.getElementsByName(Pt),te=0;Zt=ee[te++];)if(Yt=Zt.getAttributeNode("id"),Yt&&Yt.value===Pt)return[Zt]}return[]}}),p.find.TAG=function(Pt,Lt){return typeof Lt.getElementsByTagName<"u"?Lt.getElementsByTagName(Pt):Lt.querySelectorAll(Pt)},p.find.CLASS=function(Pt,Lt){if(typeof Lt.getElementsByClassName<"u"&&ft)return Lt.getElementsByClassName(Pt)},At=[],Gn(function(Pt){var Lt;gt.appendChild(Pt).innerHTML="<a id='"+It+"' href='' disabled='disabled'></a><select id='"+It+"-\r\\' disabled='disabled'><option selected=''></option></select>",Pt.querySelectorAll("[selected]").length||At.push("\\["+it+"*(?:value|"+hn+")"),Pt.querySelectorAll("[id~="+It+"-]").length||At.push("~="),Pt.querySelectorAll("a#"+It+"+*").length||At.push(".#.+[+~]"),Pt.querySelectorAll(":checked").length||At.push(":checked"),Lt=H.createElement("input"),Lt.setAttribute("type","hidden"),Pt.appendChild(Lt).setAttribute("name","D"),gt.appendChild(Pt).disabled=!0,Pt.querySelectorAll(":disabled").length!==2&&At.push(":enabled",":disabled"),Lt=H.createElement("input"),Lt.setAttribute("name",""),Pt.appendChild(Lt),Pt.querySelectorAll("[name='']").length||At.push("\\["+it+"*name"+it+"*="+it+`*(?:''|"")`)}),e.cssHas||At.push(":has"),At=At.length&&new RegExp(At.join("|")),qe=function(Pt,Lt){if(Pt===Lt)return L=!0,0;var Yt=!Pt.compareDocumentPosition-!Lt.compareDocumentPosition;return Yt||(Yt=(Pt.ownerDocument||Pt)==(Lt.ownerDocument||Lt)?Pt.compareDocumentPosition(Lt):1,Yt&1||!e.sortDetached&&Lt.compareDocumentPosition(Pt)===Yt?Pt===H||Pt.ownerDocument==U&&Se.contains(U,Pt)?-1:Lt===H||Lt.ownerDocument==U&&Se.contains(U,Lt)?1:C?s.call(C,Pt)-s.call(C,Lt):0:Yt&4?-1:1)}),H}Se.matches=function(nt,vt){return Se(nt,null,null,vt)},Se.matchesSelector=function(nt,vt){if(kn(nt),ft&&!Ke[vt+" "]&&(!At||!At.test(vt)))try{var Ct=Dt.call(nt,vt);if(Ct||e.disconnectedMatch||nt.document&&nt.document.nodeType!==11)return Ct}catch{Ke(vt,!0)}return Se(vt,H,null,[nt]).length>0},Se.contains=function(nt,vt){return(nt.ownerDocument||nt)!=H&&kn(nt),r.contains(nt,vt)},Se.attr=function(nt,vt){(nt.ownerDocument||nt)!=H&&kn(nt);var Ct=p.attrHandle[vt.toLowerCase()],Pt=Ct&&o.call(p.attrHandle,vt.toLowerCase())?Ct(nt,vt,!ft):void 0;return Pt!==void 0?Pt:nt.getAttribute(vt)},Se.error=function(nt){throw new Error("Syntax error, unrecognized expression: "+nt)},r.uniqueSort=function(nt){var vt,Ct=[],Pt=0,Lt=0;if(L=!e.sortStable,C=!e.sortStable&&v.call(nt,0),j.call(nt,qe),L){for(;vt=nt[Lt++];)vt===nt[Lt]&&(Pt=Ct.push(Lt));for(;Pt--;)rt.call(nt,Ct[Pt],1)}return C=null,nt},r.fn.uniqueSort=function(){return this.pushStack(r.uniqueSort(v.apply(this)))},p=r.expr={cacheLength:50,createPseudo:an,match:gn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(nt){return nt[1]=nt[1].replace(Cn,Sn),nt[3]=(nt[3]||nt[4]||nt[5]||"").replace(Cn,Sn),nt[2]==="~="&&(nt[3]=" "+nt[3]+" "),nt.slice(0,4)},CHILD:function(nt){return nt[1]=nt[1].toLowerCase(),nt[1].slice(0,3)==="nth"?(nt[3]||Se.error(nt[0]),nt[4]=+(nt[4]?nt[5]+(nt[6]||1):2*(nt[3]==="even"||nt[3]==="odd")),nt[5]=+(nt[7]+nt[8]||nt[3]==="odd")):nt[3]&&Se.error(nt[0]),nt},PSEUDO:function(nt){var vt,Ct=!nt[6]&&nt[2];return gn.CHILD.test(nt[0])?null:(nt[3]?nt[2]=nt[4]||nt[5]||"":Ct&&mn.test(Ct)&&(vt=lr(Ct,!0))&&(vt=Ct.indexOf(")",Ct.length-vt)-Ct.length)&&(nt[0]=nt[0].slice(0,vt),nt[2]=Ct.slice(0,vt)),nt.slice(0,3))}},filter:{TAG:function(nt){var vt=nt.replace(Cn,Sn).toLowerCase();return nt==="*"?function(){return!0}:function(Ct){return B(Ct,vt)}},CLASS:function(nt){var vt=se[nt+" "];return vt||(vt=new RegExp("(^|"+it+")"+nt+"("+it+"|$)"))&&se(nt,function(Ct){return vt.test(typeof Ct.className=="string"&&Ct.className||typeof Ct.getAttribute<"u"&&Ct.getAttribute("class")||"")})},ATTR:function(nt,vt,Ct){return function(Pt){var Lt=Se.attr(Pt,nt);
81return Lt==null?vt==="!=":vt?(Lt+="",vt==="="?Lt===Ct:vt==="!="?Lt!==Ct:vt==="^="?Ct&&Lt.indexOf(Ct)===0:vt==="*="?Ct&&Lt.indexOf(Ct)>-1:vt==="$="?Ct&&Lt.slice(-Ct.length)===Ct:vt==="~="?(" "+Lt.replace(Ce," ")+" ").indexOf(Ct)>-1:vt==="|="?Lt===Ct||Lt.slice(0,Ct.length+1)===Ct+"-":!1):!0}},CHILD:function(nt,vt,Ct,Pt,Lt){var Yt=nt.slice(0,3)!=="nth",te=nt.slice(-4)!=="last",ee=vt==="of-type";return Pt===1&&Lt===0?function(Zt){return!!Zt.parentNode}:function(Zt,ye,le){var fe,ve,ae,Ne,Ue,He=Yt!==te?"nextSibling":"previousSibling",fn=Zt.parentNode,yn=ee&&Zt.nodeName.toLowerCase(),Qn=!le&&!ee,en=!1;if(fn){if(Yt){for(;He;){for(ae=Zt;ae=ae[He];)if(ee?B(ae,yn):ae.nodeType===1)return!1;Ue=He=nt==="only"&&!Ue&&"nextSibling"}return!0}if(Ue=[te?fn.firstChild:fn.lastChild],te&&Qn){for(ve=fn[It]||(fn[It]={}),fe=ve[nt]||[],Ne=fe[0]===St&&fe[1],en=Ne&&fe[2],ae=Ne&&fn.childNodes[Ne];ae=++Ne&&ae&&ae[He]||(en=Ne=0)||Ue.pop();)if(ae.nodeType===1&&++en&&ae===Zt){ve[nt]=[St,Ne,en];break}}else if(Qn&&(ve=Zt[It]||(Zt[It]={}),fe=ve[nt]||[],Ne=fe[0]===St&&fe[1],en=Ne),en===!1)for(;(ae=++Ne&&ae&&ae[He]||(en=Ne=0)||Ue.pop())&&!((ee?B(ae,yn):ae.nodeType===1)&&++en&&(Qn&&(ve=ae[It]||(ae[It]={}),ve[nt]=[St,en]),ae===Zt)););return en-=Lt,en===Pt||en%Pt===0&&en/Pt>=0}}},PSEUDO:function(nt,vt){var Ct,Pt=p.pseudos[nt]||p.setFilters[nt.toLowerCase()]||Se.error("unsupported pseudo: "+nt);return Pt[It]?Pt(vt):Pt.length>1?(Ct=[nt,nt,"",vt],p.setFilters.hasOwnProperty(nt.toLowerCase())?an(function(Lt,Yt){for(var te,ee=Pt(Lt,vt),Zt=ee.length;Zt--;)te=s.call(Lt,ee[Zt]),Lt[te]=!(Yt[te]=ee[Zt])}):function(Lt){return Pt(Lt,0,Ct)}):Pt}},pseudos:{not:an(function(nt){var vt=[],Ct=[],Pt=oi(nt.replace(Et,"$1"));return Pt[It]?an(function(Lt,Yt,te,ee){for(var Zt,ye=Pt(Lt,null,ee,[]),le=Lt.length;le--;)(Zt=ye[le])&&(Lt[le]=!(Yt[le]=Zt))}):function(Lt,Yt,te){return vt[0]=Lt,Pt(vt,null,te,Ct),vt[0]=null,!Ct.pop()}}),has:an(function(nt){return function(vt){return Se(nt,vt).length>0}}),contains:an(function(nt){return nt=nt.replace(Cn,Sn),function(vt){return(vt.textContent||r.text(vt)).indexOf(nt)>-1}}),lang:an(function(nt){return In.test(nt||"")||Se.error("unsupported lang: "+nt),nt=nt.replace(Cn,Sn).toLowerCase(),function(vt){var Ct;do if(Ct=ft?vt.lang:vt.getAttribute("xml:lang")||vt.getAttribute("lang"))return Ct=Ct.toLowerCase(),Ct===nt||Ct.indexOf(nt+"-")===0;while((vt=vt.parentNode)&&vt.nodeType===1);return!1}}),target:function(nt){var vt=x.location&&x.location.hash;return vt&&vt.slice(1)===nt.id},root:function(nt){return nt===gt},focus:function(nt){return nt===Yn()&&H.hasFocus()&&!!(nt.type||nt.href||~nt.tabIndex)},enabled:Ri(!1),disabled:Ri(!0),checked:function(nt){return B(nt,"input")&&!!nt.checked||B(nt,"option")&&!!nt.selected},selected:function(nt){return nt.parentNode&&nt.parentNode.selectedIndex,nt.selected===!0},empty:function(nt){for(nt=nt.firstChild;nt;nt=nt.nextSibling)if(nt.nodeType<6)return!1;return!0},parent:function(nt){return!p.pseudos.empty(nt)},header:function(nt){return tn.test(nt.nodeName)},input:function(nt){return Bn.test(nt.nodeName)},button:function(nt){return B(nt,"input")&&nt.type==="button"||B(nt,"button")},text:function(nt){var vt;return B(nt,"input")&&nt.type==="text"&&((vt=nt.getAttribute("type"))==null||vt.toLowerCase()==="text")},first:Fn(function(){return[0]}),last:Fn(function(nt,vt){return[vt-1]}),eq:Fn(function(nt,vt,Ct){return[Ct<0?Ct+vt:Ct]}),even:Fn(function(nt,vt){for(var Ct=0;Ct<vt;Ct+=2)nt.push(Ct);return nt}),odd:Fn(function(nt,vt){for(var Ct=1;Ct<vt;Ct+=2)nt.push(Ct);return nt}),lt:Fn(function(nt,vt,Ct){var Pt;for(Ct<0?Pt=Ct+vt:Ct>vt?Pt=vt:Pt=Ct;--Pt>=0;)nt.push(Pt);return nt}),gt:Fn(function(nt,vt,Ct){for(var Pt=Ct<0?Ct+vt:Ct;++Pt<vt;)nt.push(Pt);return nt})}},p.pseudos.nth=p.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})p.pseudos[t]=ro(t);for(t in{submit:!0,reset:!0})p.pseudos[t]=io(t);function sr(){}sr.prototype=p.filters=p.pseudos,p.setFilters=new sr;function lr(nt,vt){var Ct,Pt,Lt,Yt,te,ee,Zt,ye=Te[nt+" "];if(ye)return vt?0:ye.slice(0);for(te=nt,ee=[],Zt=p.preFilter;te;){(!Ct||(Pt=$e.exec(te)))&&(Pt&&(te=te.slice(Pt[0].length)||te),ee.push(Lt=[])),Ct=!1,(Pt=or.exec(te))&&(Ct=Pt.shift(),Lt.push({value:Ct,type:Pt[0].replace(Et," ")}),te=te.slice(Ct.length));for(Yt in p.filter)(Pt=gn[Yt].exec(te))&&(!Zt[Yt]||(Pt=Zt[Yt](Pt)))&&(Ct=Pt.shift(),Lt.push({value:Ct,type:Yt,matches:Pt}),te=te.slice(Ct.length));if(!Ct)break}return vt?te.length:te?Se.error(nt):Te(nt,ee).slice(0)}function Ir(nt){for(var vt=0,Ct=nt.length,Pt="";vt<Ct;vt++)Pt+=nt[vt].value;return Pt}function Mr(nt,vt,Ct){var Pt=vt.dir,Lt=vt.next,Yt=Lt||Pt,te=Ct&&Yt==="parentNode",ee=Ut++;return vt.first?function(Zt,ye,le){for(;Zt=Zt[Pt];)if(Zt.nodeType===1||te)return nt(Zt,ye,le);return!1}:function(Zt,ye,le){var fe,ve,ae=[St,ee];if(le){for(;Zt=Zt[Pt];
vendor: 3,129 bytes, line 81
81)if((Zt.nodeType===1||te)&&nt(Zt,ye,le))return!0}else for(;Zt=Zt[Pt];)if(Zt.nodeType===1||te)if(ve=Zt[It]||(Zt[It]={}),Lt&&B(Zt,Lt))Zt=Zt[Pt]||Zt;else{if((fe=ve[Yt])&&fe[0]===St&&fe[1]===ee)return ae[2]=fe[2];if(ve[Yt]=ae,ae[2]=nt(Zt,ye,le))return!0}return!1}}function ri(nt){return nt.length>1?function(vt,Ct,Pt){for(var Lt=nt.length;Lt--;)if(!nt[Lt](vt,Ct,Pt))return!1;return!0}:nt[0]}function oo(nt,vt,Ct){for(var Pt=0,Lt=vt.length;Pt<Lt;Pt++)Se(nt,vt[Pt],Ct);return Ct}function cr(nt,vt,Ct,Pt,Lt){for(var Yt,te=[],ee=0,Zt=nt.length,ye=vt!=null;ee<Zt;ee++)(Yt=nt[ee])&&(!Ct||Ct(Yt,Pt,Lt))&&(te.push(Yt),ye&&vt.push(ee));return te}function $r(nt,vt,Ct,Pt,Lt,Yt){return Pt&&!Pt[It]&&(Pt=$r(Pt)),Lt&&!Lt[It]&&(Lt=$r(Lt,Yt)),an(function(te,ee,Zt,ye){var le,fe,ve,ae,Ne=[],Ue=[],He=ee.length,fn=te||oo(vt||"*",Zt.nodeType?[Zt]:Zt,[]),yn=nt&&(te||!vt)?cr(fn,Ne,nt,Zt,ye):fn;if(Ct?(ae=Lt||(te?nt:He||Pt)?[]:ee,Ct(yn,ae,Zt,ye)):ae=yn,Pt)for(le=cr(ae,Ue),Pt(le,[],Zt,ye),fe=le.length;fe--;)(ve=le[fe])&&(ae[Ue[fe]]=!(yn[Ue[fe]]=ve));if(te){if(Lt||nt){if(Lt){for(le=[],fe=ae.length;fe--;)(ve=ae[fe])&&le.push(yn[fe]=ve);Lt(null,ae=[],le,ye)}for(fe=ae.length;fe--;)(ve=ae[fe])&&(le=Lt?s.call(te,ve):Ne[fe])>-1&&(te[le]=!(ee[le]=ve))}}else ae=cr(ae===ee?ae.splice(He,ae.length):ae),Lt?Lt(null,ee,ae,ye):M.apply(ee,ae)})}function ii(nt){for(var vt,Ct,Pt,Lt=nt.length,Yt=p.relative[nt[0].type],te=Yt||p.relative[" "],ee=Yt?1:0,Zt=Mr(function(fe){return fe===vt},te,!0),ye=Mr(function(fe){return s.call(vt,fe)>-1},te,!0),le=[function(fe,ve,ae){var Ne=!Yt&&(ae||ve!=E)||((vt=ve).nodeType?Zt(fe,ve,ae):ye(fe,ve,ae));return vt=null,Ne}];ee<Lt;ee++)if(Ct=p.relative[nt[ee].type])le=[Mr(ri(le),Ct)];else{if(Ct=p.filter[nt[ee].type].apply(null,nt[ee].matches),Ct[It]){for(Pt=++ee;Pt<Lt&&!p.relative[nt[Pt].type];Pt++);return $r(ee>1&&ri(le),ee>1&&Ir(nt.slice(0,ee-1).concat({value:nt[ee-2].type===" "?"*":""})).replace(Et,"$1"),Ct,ee<Pt&&ii(nt.slice(ee,Pt)),Pt<Lt&&ii(nt=nt.slice(Pt)),Pt<Lt&&Ir(nt))}le.push(Ct)}return ri(le)}function ao(nt,vt){var Ct=vt.length>0,Pt=nt.length>0,Lt=function(Yt,te,ee,Zt,ye){var le,fe,ve,ae=0,Ne="0",Ue=Yt&&[],He=[],fn=E,yn=Yt||Pt&&p.find.TAG("*",ye),Qn=St+=fn==null?1:Math.random()||.1,en=yn.length;for(ye&&(E=te==H||te||ye);Ne!==en&&(le=yn[Ne])!=null;Ne++){if(Pt&&le){for(fe=0,!te&&le.ownerDocument!=H&&(kn(le),ee=!ft);ve=nt[fe++];)if(ve(le,te||H,ee)){M.call(Zt,le);break}ye&&(St=Qn)}Ct&&((le=!ve&&le)&&ae--,Yt&&Ue.push(le))}if(ae+=Ne,Ct&&Ne!==ae){for(fe=0;ve=vt[fe++];)ve(Ue,He,te,ee);if(Yt){if(ae>0)for(;Ne--;)Ue[Ne]||He[Ne]||(He[Ne]=G.call(Zt));He=cr(He)}M.apply(Zt,He),ye&&!Yt&&He.length>0&&ae+vt.length>1&&r.uniqueSort(Zt)}return ye&&(St=Qn,E=fn),Ue};return Ct?an(Lt):Lt}function oi(nt,vt){var Ct,Pt=[],Lt=[],Yt=ue[nt+" "];if(!Yt){for(vt||(vt=lr(nt)),Ct=vt.length;Ct--;)Yt=ii(vt[Ct]),Yt[It]?Pt.push(Yt):Lt.push(Yt);Yt=ue(nt,ao(Lt,Pt)),Yt.selector=nt}return Yt}function Di(nt,vt,Ct,Pt){var Lt,Yt,te,ee,Zt,ye=typeof nt=="function"&&nt,le=!Pt&&lr(nt=ye.selector||nt);if(Ct=Ct||[],le.length===1){if(Yt=le[0]=le[0].slice(0),Yt.length>2&&(te=Yt[0]).type==="ID"&&vt.nodeType===9&&ft&&p.relative[Yt[1].type]){if(vt=(
vendor: 5,253 bytes, line 81
81p.find.ID(te.matches[0].replace(Cn,Sn),vt)||[])[0],vt)ye&&(vt=vt.parentNode);else return Ct;nt=nt.slice(Yt.shift().value.length)}for(Lt=gn.needsContext.test(nt)?0:Yt.length;Lt--&&(te=Yt[Lt],!p.relative[ee=te.type]);)if((Zt=p.find[ee])&&(Pt=Zt(te.matches[0].replace(Cn,Sn),ei.test(Yt[0].type)&&ni(vt.parentNode)||vt))){if(Yt.splice(Lt,1),nt=Pt.length&&Ir(Yt),!nt)return M.apply(Ct,Pt),Ct;break}}return(ye||oi(nt,le))(Pt,vt,!ft,Ct,!vt||ei.test(nt)&&ni(vt.parentNode)||vt),Ct}e.sortStable=It.split("").sort(qe).join("")===It,kn(),e.sortDetached=Gn(function(nt){return nt.compareDocumentPosition(H.createElement("fieldset"))&1}),r.find=Se,r.expr[":"]=r.expr.pseudos,r.unique=r.uniqueSort,Se.compile=oi,Se.select=Di,Se.setDocument=kn,Se.tokenize=lr,Se.escape=r.escapeSelector,Se.getText=r.text,Se.isXML=r.isXMLDoc,Se.selectors=r.expr,Se.support=r.support,Se.uniqueSort=r.uniqueSort})();var X=function(t,p,E){for(var C=[],L=E!==void 0;(t=t[p])&&t.nodeType!==9;)if(t.nodeType===1){if(L&&r(t).is(E))break;C.push(t)}return C},lt=function(t,p){for(var E=[];t;t=t.nextSibling)t.nodeType===1&&t!==p&&E.push(t);return E},ot=r.expr.match.needsContext,V=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function at(t,p,E){return u(p)?r.grep(t,function(C,L){return!!p.call(C,L,C)!==E}):p.nodeType?r.grep(t,function(C){return C===p!==E}):typeof p!="string"?r.grep(t,function(C){return s.call(p,C)>-1!==E}):r.filter(p,t,E)}r.filter=function(t,p,E){var C=p[0];return E&&(t=":not("+t+")"),p.length===1&&C.nodeType===1?r.find.matchesSelector(C,t)?[C]:[]:r.find.matches(t,r.grep(p,function(L){return L.nodeType===1}))},r.fn.extend({find:function(t){var p,E,C=this.length,L=this;if(typeof t!="string")return this.pushStack(r(t).filter(function(){for(p=0;p<C;p++)if(r.contains(L[p],this))return!0}));for(E=this.pushStack([]),p=0;p<C;p++)r.find(t,L[p],E);return C>1?r.uniqueSort(E):E},filter:function(t){return this.pushStack(at(this,t||[],!1))},not:function(t){return this.pushStack(at(this,t||[],!0))},is:function(t){return!!at(this,typeof t=="string"&&ot.test(t)?r(t):t||[],!1).length}});var wt,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Rt=r.fn.init=function(t,p,E){var C,L;if(!t)return this;if(E=E||wt,typeof t=="string")if(t[0]==="<"&&t[t.length-1]===">"&&t.length>=3?C=[null,t,null]:C=mt.exec(t),C&&(C[1]||!p))if(C[1]){if(p=p instanceof r?p[0]:p,r.merge(this,r.parseHTML(C[1],p&&p.nodeType?p.ownerDocument||p:m,!0)),V.test(C[1])&&r.isPlainObject(p))for(C in p)u(this[C])?this[C](p[C]):this.attr(C,p[C]);return this}else return L=m.getElementById(C[2]),L&&(this[0]=L,this.length=1),this;else return!p||p.jquery?(p||E).find(t):this.constructor(p).find(t);else{if(t.nodeType)return this[0]=t,this.length=1,this;if(u(t))return E.ready!==void 0?E.ready(t):t(r)}return r.makeArray(t,this)};Rt.prototype=r.fn,wt=r(m);var Gt=/^(?:parents|prev(?:Until|All))/,Xt={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(t){var p=r(t,this),E=p.length;return this.filter(function(){for(var C=0;C<E;C++)if(r.contains(this,p[C]))return!0})},closest:function(t,p){var E,C=0,L=this.length,M=[],H=typeof t!="string"&&r(t);if(!ot.test(t)){for(;C<L;C++)for(E=this[C];E&&E!==p;E=E.parentNode)if(E.nodeType<11&&(H?H.index(E)>-1:E.nodeType===1&&r.find.matchesSelector(E,t))){M.push(E);break}}return this.pushStack(M.length>1?r.uniqueSort(M):M)},index:function(t){return t?typeof t=="string"?s.call(r(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,p){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(t,p))))},addBack:function(t){return this.add(t==null?this.prevObject:this.prevObject.filter(t))}});function W(t,p){for(;(t=t[p])&&t.nodeType!==1;);return t}r.each({parent:function(t){var p=t.parentNode;return p&&p.nodeType!==11?p:null},parents:function(t){return X(t,"parentNode")},parentsUntil:function(t,p,E){return X(t,"parentNode",E)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return X(t,"nextSibling")},prevAll:function(t){return X(t,"previousSibling")},nextUntil:function(t,p,E){return X(t,"nextSibling",E)},prevUntil:function(t,p,E){return X(t,"previousSibling",E)},siblings:function(t){return lt((t.parentNode||{}).firstChild,t)},children:function(t){return lt(t.firstChild)},contents:function(t){return t.contentDocument!=null&&g(t.contentDocument)?t.contentDocument:(B(t,"template")&&(t=t.content||t),r.merge([],t.childNodes))}},function(t,p){r.fn[t]=function(E,C){var L=r.map(this,p,E);return t.slice(-5)!=="Until"&&(C=E),C&&typeof C=="string"&&(L=r.filter(C,L)),this.length>1&&(Xt[t]||r.uniqueSort(L),Gt.test(t)&&L.reverse()),this.pushStack(L)}});var z=/[^\x20\t\r\n\f]+/g;function st(t){var p={};return r.each(t.match(z)||[],function(E,C){p[C]=!0}),p}r.Callbacks=function(t){t=typeof t=="string"?st(t):r.extend({},t);var p,E,C,L,M=[],H=[],gt=-1,ft=function(){for(L=L||t.once,C=p=!0;H.length;gt=-1)for(E=H.shift();++gt<M.length;)M[gt].apply(E[0],E[1])===!1&&t.stopOnFalse&&(gt=M.length,E=!1);t.memory||(E=!1),p=!1,L&&(E?M=[]:M="")},At={add:function(){return M&&(E&&!p&&(gt=M.length-1,H.push(E)),(function Dt(It){r.each(It,function(St,Ut){u(Ut)?(!t.unique||!At.has(Ut))&&M.push(Ut):Ut&&Ut.length&&S(Ut)!=="str
81ing"&&Dt(Ut)})})(arguments),E&&!p&&ft()),this},remove:function(){return r.each(arguments,function(Dt,It){for(var St;(St=r.inArray(It,M,St))>-1;)M.splice(St,1),St<=gt&&gt--}),this},has:function(Dt){return Dt?r.inArray(Dt,M)>-1:M.length>0},empty:function(){return M&&(M=[]),this},disable:function(){return L=H=[],M=E="",this},disabled:function(){return!M},lock:function(){return L=H=[],!E&&!p&&(M=E=""),this},locked:function(){return!!L},fireWith:function(Dt,It){return L||(It=It||[],It=[Dt,It.slice?It.slice():It],H.push(It),p||ft()),this},fire:function(){return At.fireWith(this,arguments),this},fired:function(){return!!C}};return At};function dt(t){return t}function Z(t){throw t}function k(t,p,E,C){var L;try{t&&u(L=t.promise)?L.call(t).done(p).fail(E):t&&u(L=t.then)?L.call(t,p,E):p.apply(void 0,[t].slice(C))}catch(M){E.apply(void 0,[M])}}r.extend({Deferred:function(t){var p=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],E="pending",C={state:function(){return E},always:function(){return L.done(arguments).fail(arguments),this},catch:function(M){return C.then(null,M)},pipe:function(){var M=arguments;return r.Deferred(function(H){r.each(p,function(gt,ft){var At=u(M[ft[4]])&&M[ft[4]];L[ft[1]](function(){var Dt=At&&At.apply(this,arguments);Dt&&u(Dt.promise)?Dt.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[ft[0]+"With"](this,At?[Dt]:arguments)})}),M=null}).promise()},then:function(M,H,gt){var ft=0;function At(Dt,It,St,Ut){return function(){var se=this,Te=arguments,ue=function(){var qe,hn;if(!(Dt<ft)){if(qe=St.apply(se,Te),qe===It.promise())throw new TypeError("Thenable self-resolution");hn=qe&&(typeof qe=="object"||typeof qe=="function")&&qe.then,u(hn)?Ut?hn.call(qe,At(ft,It,dt,Ut),At(ft,It,Z,Ut)):(ft++,hn.call(qe,At(ft,It,dt,Ut),At(ft,It,Z,Ut),At(ft,It,dt,It.notifyWith))):(St!==dt&&(se=void 0,Te=[qe]),(Ut||It.resolveWith)(se,Te))}},Ke=Ut?ue:function(){try{ue()}catch(qe){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(qe,Ke.error),Dt+1>=ft&&(St!==Z&&(se=void 0,Te=[qe]),It.rejectWith(se,Te))}};Dt?Ke():(r.Deferred.getErrorHook?Ke.error=r.Deferred.getErrorHook():r.Deferred.getStackHook&&(Ke.error=r.Deferred.getStackHook()),x.setTimeout(Ke))}}return r.Deferred(function(Dt){p[0][3].add(At(0,Dt,u(gt)?gt:dt,Dt.notifyWith)),p[1][3].add(At(0,Dt,u(M)?M:dt)),p[2][3].add(At(0,Dt,u(H)?H:Z))}).promise()},promise:function(M){return M!=null?r.extend(M,C):C}},L={};return r.each(p,function(M,H){var gt=H[2],ft=H[5];C[H[1]]=gt.add,ft&&gt.add(function(){E=ft},p[3-M][2].disable,p[3-M][3].disable,p[0][2].lock,p[0][3].lock),gt.add(H[3].fire),L[H[0]]=function(){return L[H[0]+"With"](this===L?void 0:this,arguments),this},L[H[0]+"With"]=gt.fireWith}),C.promise(L),t&&t.call(L,L),L},when:function(t){var p=arguments.length,E=p,C=Array(E),L=v.call(arguments),M=r.Deferred(),H=function(gt){return function(ft){C[gt]=this,L[gt]=arguments.length>1?v.call(arguments):ft,--p||M.resolveWith(C,L)}};if(p<=1&&(k(t,M.done(H(E)).resolve,M.reject,!p),M.state()==="pending"||u(L[E]&&L[E].then)))return M.then();for(;E--;)k(L[E],H(E),M.reject);return M.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(t,p){x.console&&x.console.warn&&t&&q.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,p)},r.readyException=function(t){x.setTimeout(function(){throw t})};var J=r.Deferred();r.fn.ready=function(t){return J.then(t).catch(function(p){r.readyException(p)}),this},r.extend({isReady:!1,readyWait:1,ready:function(t){(t===!0?--r.readyWait:r.isReady)||(r.isReady=!0,!(t!==!0&&--r.readyWait>0)&&J.resolveWith(m,[r]))}}),r.ready.then=J.then;function ut(){m.removeEventListener("DOMContentLoaded",ut),x.removeEventListener("load",ut),r.ready()}m.readyState==="complete"||m.readyState!=="loading"&&!m.documentElement.doScroll?x.setTimeout(r.ready):(m.addEventListener("DOMContentLoaded",ut),x.addEventListener("load",ut));var F=function(t,p,E,C,L,M,H){var gt=0,ft=t.length,At=E==null;if(S(E)==="object"){L=!0;for(gt in E)F(t,p,gt,E[gt],!0,M,H)}else if(C!==void 0&&(L=!0,u(C)||(H=!0),At&&(H?(p.call(t,C),p=null):(At=p,p=function(Dt,It,St){return At.call(r(Dt),St)})),p))for(;gt<ft;gt++)p(t[gt],E,H?C:C.call(t[gt],gt,p(t[gt],E)));return L?t:At?p.call(t):ft?p(t[0],E):M},K=/^-ms-/,et=/-([a-z])/g;function ct(t,p){return p.toUpperCase()}function Tt(t){return t.replace(K,"ms-").replace(et,ct)}var _t=function(t){return t.nodeType===1||t.nodeType===9||!+t.nodeType};function kt(){this.expando=r.expando+kt.uid++}kt.uid=1,kt.prototype={cache:function(t){var p=t[this.expando];return p||(p={},_t(t)&&(t.nodeType?t[this.expando]=p:Object.defineProperty(t,this.expando,{value:p,configurable:!0}))),p},set:function(t,p,E){var C,L=this.cache(t);if(typeof p=="string")L[Tt(p)]=E;else for(C in p)L[Tt(C)]=p[C];return L},get:function(t,p){return p===void 0?this.cache(t):t[this.expando]&&t[this.expando][Tt(p)]},access:function(t,p,E){return p===void 0||p&&typeof p=="string"&&E===void 0?this.get(t,p):(this.set(t,p,E),E!==void 0?E:p)},remove:function(t,p){var E,C=t[this.expando];if(C!==void 0){if(p!==void 0)for(Array.isArray(p)?p=p.map(Tt):(p=Tt(p),p=p in C?[p]:p.match(z)||[]),E=p.length;E--;)delete C[p[E]];
vendor: 8,933 bytes, line 81
81(p===void 0||r.isEmptyObject(C))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var p=t[this.expando];return p!==void 0&&!r.isEmptyObject(p)}};var bt=new kt,yt=new kt,Mt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ht=/[A-Z]/g;function Kt(t){return t==="true"?!0:t==="false"?!1:t==="null"?null:t===+t+""?+t:Mt.test(t)?JSON.parse(t):t}function ne(t,p,E){var C;if(E===void 0&&t.nodeType===1)if(C="data-"+p.replace(Ht,"-$&").toLowerCase(),E=t.getAttribute(C),typeof E=="string"){try{E=Kt(E)}catch{}yt.set(t,p,E)}else E=void 0;return E}r.extend({hasData:function(t){return yt.hasData(t)||bt.hasData(t)},data:function(t,p,E){return yt.access(t,p,E)},removeData:function(t,p){yt.remove(t,p)},_data:function(t,p,E){return bt.access(t,p,E)},_removeData:function(t,p){bt.remove(t,p)}}),r.fn.extend({data:function(t,p){var E,C,L,M=this[0],H=M&&M.attributes;if(t===void 0){if(this.length&&(L=yt.get(M),M.nodeType===1&&!bt.get(M,"hasDataAttrs"))){for(E=H.length;E--;)H[E]&&(C=H[E].name,C.indexOf("data-")===0&&(C=Tt(C.slice(5)),ne(M,C,L[C])));bt.set(M,"hasDataAttrs",!0)}return L}return typeof t=="object"?this.each(function(){yt.set(this,t)}):F(this,function(gt){var ft;if(M&&gt===void 0)return ft=yt.get(M,t),ft!==void 0||(ft=ne(M,t),ft!==void 0)?ft:void 0;this.each(function(){yt.set(this,t,gt)})},null,p,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),r.extend({queue:function(t,p,E){var C;if(t)return p=(p||"fx")+"queue",C=bt.get(t,p),E&&(!C||Array.isArray(E)?C=bt.access(t,p,r.makeArray(E)):C.push(E)),C||[]},dequeue:function(t,p){p=p||"fx";var E=r.queue(t,p),C=E.length,L=E.shift(),M=r._queueHooks(t,p),H=function(){r.dequeue(t,p)};L==="inprogress"&&(L=E.shift(),C--),L&&(p==="fx"&&E.unshift("inprogress"),delete M.stop,L.call(t,H,M)),!C&&M&&M.empty.fire()},_queueHooks:function(t,p){var E=p+"queueHooks";return bt.get(t,E)||bt.access(t,E,{empty:r.Callbacks("once memory").add(function(){bt.remove(t,[p+"queue",E])})})}}),r.fn.extend({queue:function(t,p){var E=2;return typeof t!="string"&&(p=t,t="fx",E--),arguments.length<E?r.queue(this[0],t):p===void 0?this:this.each(function(){var C=r.queue(this,t,p);r._queueHooks(this,t),t==="fx"&&C[0]!=="inprogress"&&r.dequeue(this,t)})},dequeue:function(t){return this.each(function(){r.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,p){var E,C=1,L=r.Deferred(),M=this,H=this.length,gt=function(){--C||L.resolveWith(M,[M])};for(typeof t!="string"&&(p=t,t=void 0),t=t||"fx";H--;)E=bt.get(M[H],t+"queueHooks"),E&&E.empty&&(C++,E.empty.add(gt));return gt(),L.promise(p)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,de=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),qt=["Top","Right","Bottom","Left"],Vt=m.documentElement,ce=function(t){return r.contains(t.ownerDocument,t)},he={composed:!0};Vt.getRootNode&&(ce=function(t){return r.contains(t.ownerDocument,t)||t.getRootNode(he)===t.ownerDocument});var pe=function(t,p){return t=p||t,t.style.display==="none"||t.style.display===""&&ce(t)&&r.css(t,"display")==="none"};function je(t,p,E,C){var L,M,H=20,gt=C?function(){return C.cur()}:function(){return r.css(t,p,"")},ft=gt(),At=E&&E[3]||(r.cssNumber[p]?"":"px"),Dt=t.nodeType&&(r.cssNumber[p]||At!=="px"&&+ft)&&de.exec(r.css(t,p));if(Dt&&Dt[3]!==At){for(ft=ft/2,At=At||Dt[3],Dt=+ft||1;H--;)r.style(t,p,Dt+At),(1-M)*(1-(M=gt()/ft||.5))<=0&&(H=0),Dt=Dt/M;Dt=Dt*2,r.style(t,p,Dt+At),E=E||[]}return E&&(Dt=+Dt||+ft||0,L=E[1]?Dt+(E[1]+1)*E[2]:+E[2],C&&(C.unit=At,C.start=Dt,C.end=L)),L}var Fe={};function Qt(t){var p,E=t.ownerDocument,C=t.nodeName,L=Fe[C];return L||(p=E.body.appendChild(E.createElement(C)),L=r.css(p,"display"),p.parentNode.removeChild(p),L==="none"&&(L="block"),Fe[C]=L,L)}function jt(t,p){for(var E,C,L=[],M=0,H=t.length;M<H;M++)C=t[M],C.style&&(E=C.style.display,p?(E==="none"&&(L[M]=bt.get(C,"display")||null,L[M]||(C.style.display="")),C.style.display===""&&pe(C)&&(L[M]=Qt(C))):E!=="none"&&(L[M]="none",bt.set(C,"display",E)));for(M=0;M<H;M++)L[M]!=null&&(t[M].style.display=L[M]);return t}r.fn.extend({show:function(){return jt(this,!0)},hide:function(){return jt(this)},toggle:function(t){return typeof t=="boolean"?t?this.show():this.hide():this.each(function(){pe(this)?r(this).show():r(this).hide()})}});var Ft=/^(?:checkbox|radio)$/i,Jt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;(function(){var t=m.createDocumentFragment(),p=t.appendChild(m.createElement("div")),E=m.createElement("input");E.setAttribute("type","radio"),E.setAttribute("checked","checked"),E.setAttribute("name","t"),p.appendChild(E),e.checkClone=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="<textarea>x</textarea>",e.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue,p.innerHTML="<option></option>",e.option=!!p.lastChild})();var Oe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td,e.option||(Oe.optgroup=Oe.option=[1,"<select multiple='multiple'>","</select>"]);function Me(t,p){var E;return typeof t.getElementsByTagName<"u"?E=t.getElementsByTagName(p||"*"):typeof t.querySelectorAll<"u"?E=t.querySelectorAll(p||"*"):E=[],p===void 0||p&&B(t,p)?r.merge([t],E):E}function bn(t,p){for(var E=0,C=t.length;E<C;E++)bt.set(t[E],"globalEval",!p||bt.get(p[E],"globalEval"))}var Je=/<|&#?\w+;/;function Le(t,p,E,C,L){for(var M,H,gt,ft,At,Dt,It=p.createDocumentFragment(),St=[],Ut=0,se=t.length;Ut<se;Ut++)if(M=t[Ut],M||M===0)if(S(M)==="object")r.merge(St,M.nodeType?[M]:M);else if(!Je.test(M))St.push(p.createTextNode(M));else{for(H=H||It.appendChild(p.createElement("div")),gt=(Jt.exec(M)||["",""])[1].toLowerCase(),ft=Oe[gt]||Oe._default,H.innerHTML=ft[1]+r.htmlPrefilter(M)+ft[2],Dt=ft[0];Dt--;)H=H.lastChild;r.merge(St,H.childNodes),H=It.firstChild,H.textContent=""}for(It.textContent="",Ut=0;M=St[Ut++];){if(C&&r.inArray(M,C)>-1){L&&L.push(M);continue}if(At=ce(M),H=Me(It.appendChild(M),"script"),At&&bn(H),E)for(Dt=0;M=H[Dt++];)_e.test(M.type||"")&&E.push(M)}return It}var Mn=/^([^.]*)(?:\.(.+)|)/;function ln(){return!0}function En(){return!1}function Rn(t,p,E,C,L,M){var H,gt;if(typeof p=="object"){typeof E!="string"&&(C=C||E,E=void 0);for(gt in p)Rn(t,gt,E,C,p[gt],M);return t}if(C==null&&L==null?(L=E,C=E=void 0):L==null&&(typeof E=="string"?(L=C,C=void 0):(L=C,C=E,E=void 0)),L===!1)L=En;else if(!L)return t;return M===1&&(H=L,L=function(ft){return r().off(ft),H.apply(this,arguments)},L.guid=H.guid||(H.guid=r.guid++)),t.each(function(){r.event.add(this,p,L,C,E)})}r.event={global:{},add:function(t,p,E,C,L){var M,H,gt,ft,At,Dt,It,St,Ut,se,Te,ue=bt.get(t);if(_t(t))for(E.handler&&(M=E,E=M.handler,L=M.selector),L&&r.find.matchesSelector(Vt,L),E.guid||(E.guid=r.guid++),(ft=ue.events)||(ft=ue.events=Object.create(null)),(H=ue.handle)||(H=ue.handle=function(Ke){return typeof r<"u"&&r.event.triggered!==Ke.type?r.event.dispatch.apply(t,arguments):void 0}),p=(p||"").match(z)||[""],At=p.length;At--;)gt=Mn.exec(p[At])||[],Ut=Te=gt[1],se=(gt[2]||"").split(".").sort(),Ut&&(It=r.event.special[Ut]||{},Ut=(L?It.delegateType:It.bindType)||Ut,It=r.event.special[Ut]||{},Dt=r.extend({type:Ut,origType:Te,data:C,handler:E,guid:E.guid,selector:L,needsContext:L&&r.expr.match.needsContext.test(L),namespace:se.join(".")},M),(St=ft[Ut])||(St=ft[Ut]=[],St.delegateCount=0,(!It.setup||It.setup.call(t,C,se,H)===!1)&&t.addEventListener&&t.addEventListener(Ut,H)),It.add&&(It.add.call(t,Dt),Dt.handler.guid||(Dt.handler.guid=E.guid)),L?St.splice(St.delegateCount++,0,Dt):St.push(Dt),r.event.global[Ut]=!0)},remove:function(t,p,E,C,L){var M,H,gt,ft,At,Dt,It,St,Ut,se,Te,ue=bt.hasData(t)&&bt.get(t);if(!(!ue||!(ft=ue.events))){for(p=(p||"").match(z)||[""],At=p.length;At--;){if(gt=Mn.exec(p[At])||[],Ut=Te=gt[1],se=(gt[2]||"").split(".").sort(),!Ut){for(Ut in ft)r.event.remove(t,Ut+p[At],E,C,!0);continue}for(It=r.event.special[Ut]||{},Ut=(C?It.delegateType:It.bindType)||Ut,St=ft[Ut]||[],gt=gt[2]&&new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=M=St.length;M--;)Dt=St[M],(L||Te===Dt.origType)&&(!E||E.guid===Dt.guid)&&(!gt||gt.test(Dt.namespace))&&(!C||C===Dt.selector||C==="**"&&Dt.selector)&&(St.splice(M,1),Dt.selector&&St.delegateCount--,It.remove&&It.remove.call(t,Dt));H&&!St.length&&((!It.teardown||It.teardown.call(t,se,ue.handle)===!1)&&r.removeEvent(t,Ut,ue.handle),delete ft[Ut])}r.isEmptyObject(ft)&&bt.remove(t,"handle events")}},dispatch:function(t){var p,E,C,L,M,H,gt=new Array(arguments.length),ft=r.event.fix(t),At=(bt.get(this,"events")||Object.create(null))[ft.type]||[],Dt=r.event.special[ft.type]||{};for(gt[0]=ft,p=1;p<arguments.length;p++)gt[p]=arguments[p];if(ft.delegateTarget=this,!(Dt.preDispatch&&Dt.preDispatch.call(this,ft)===!1)){for(H=r.event.handlers.call(this,ft,At),p=0;
81(L=H[p++])&&!ft.isPropagationStopped();)for(ft.currentTarget=L.elem,E=0;(M=L.handlers[E++])&&!ft.isImmediatePropagationStopped();)(!ft.rnamespace||M.namespace===!1||ft.rnamespace.test(M.namespace))&&(ft.handleObj=M,ft.data=M.data,C=((r.event.special[M.origType]||{}).handle||M.handler).apply(L.elem,gt),C!==void 0&&(ft.result=C)===!1&&(ft.preventDefault(),ft.stopPropagation()));return Dt.postDispatch&&Dt.postDispatch.call(this,ft),ft.result}},handlers:function(t,p){var E,C,L,M,H,gt=[],ft=p.delegateCount,At=t.target;if(ft&&At.nodeType&&!(t.type==="click"&&t.button>=1)){for(;At!==this;At=At.parentNode||this)if(At.nodeType===1&&!(t.type==="click"&&At.disabled===!0)){for(M=[],H={},E=0;E<ft;E++)C=p[E],L=C.selector+" ",H[L]===void 0&&(H[L]=C.needsContext?r(L,this).index(At)>-1:r.find(L,this,null,[At]).length),H[L]&&M.push(C);M.length&&gt.push({elem:At,handlers:M})}}return At=this,ft<p.length&&gt.push({elem:At,handlers:p.slice(ft)}),gt},addProp:function(t,p){Object.defineProperty(r.Event.prototype,t,{enumerable:!0,configurable:!0,get:u(p)?function(){if(this.originalEvent)return p(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(E){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:E})}})},fix:function(t){return t[r.expando]?t:new r.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var p=this||t;return Ft.test(p.type)&&p.click&&B(p,"input")&&wn(p,"click",!0),!1},trigger:function(t){var p=this||t;return Ft.test(p.type)&&p.click&&B(p,"input")&&wn(p,"click"),!0},_default:function(t){var p=t.target;return Ft.test(p.type)&&p.click&&B(p,"input")&&bt.get(p,"click")||B(p,"a")}},beforeunload:{postDispatch:function(t){t.result!==void 0&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}};function wn(t,p,E){if(!E){bt.get(t,p)===void 0&&r.event.add(t,p,ln);return}bt.set(t,p,!1),r.event.add(t,p,{namespace:!1,handler:function(C){var L,M=bt.get(this,p);if(C.isTrigger&1&&this[p]){if(M)(r.event.special[p]||{}).delegateType&&C.stopPropagation();else if(M=v.call(arguments),bt.set(this,p,M),this[p](),L=bt.get(this,p),bt.set(this,p,!1),M!==L)return C.stopImmediatePropagation(),C.preventDefault(),L}else M&&(bt.set(this,p,r.event.trigger(M[0],M.slice(1),this)),C.stopPropagation(),C.isImmediatePropagationStopped=ln)}})}r.removeEvent=function(t,p,E){t.removeEventListener&&t.removeEventListener(p,E)},r.Event=function(t,p){if(!(this instanceof r.Event))return new r.Event(t,p);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.defaultPrevented===void 0&&t.returnValue===!1?ln:En,this.target=t.target&&t.target.nodeType===3?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,p&&r.extend(this,p),this.timeStamp=t&&t.timeStamp||Date.now(),this[r.expando]=!0},r.Event.prototype={constructor:r.Event,isDefaultPrevented:En,isPropagationStopped:En,isImmediatePropagationStopped:En,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=ln,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=ln,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=ln,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},r.event.addProp),r.each({focus:"focusin",blur:"focusout"},function(t,p){function E(C){if(m.documentMode){var L=bt.get(this,"handle"),M=r.event.fix(C);M.type=C.type==="focusin"?"focus":"blur",M.isSimulated=!0,L(C),M.target===M.currentTarget&&L(M)}else r.event.simulate(p,C.target,r.event.fix(C))}r.event.special[t]={setup:function(){var C;if(wn(this,t,!0),m.documentMode)C=bt.get(this,p),C||this.addEventListener(p,E),bt.set(this,p,(C||0)+1);else return!1},trigger:function(){return wn(this,t),!0},teardown:function(){var C;if(m.documentMode)C=bt.get(this,p)-1,C?bt.set(this,p,C):(this.removeEventListener(p,E),bt.remove(this,p));else return!1},_default:function(C){return bt.get(C.target,t)},delegateType:p},r.event.special[p]={setup:function(){var C=this.ownerDocument||this.document||this,L=m.documentMode?this:C,M=bt.get(L,p);M||(m.documentMode?this.addEventListener(p,E):C.addEventListener(t,E,!0)),bt.set(L,p,(M||0)+1)},teardown:function(){var C=this.ownerDocument||this.document||this,L=m.documentMode?this:C,M=bt.get(L,p)-1;M?bt.set(L,p,M):(m.documentMode?this.removeEventListener(p,E):C.removeEventListener(t,E,!0),bt.remove(L,p))}}}
vendor: 15,612 bytes, line 81
81),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,p){r.event.special[t]={delegateType:p,bindType:p,handle:function(E){var C,L=this,M=E.relatedTarget,H=E.handleObj;return(!M||M!==L&&!r.contains(L,M))&&(E.type=H.origType,C=H.handler.apply(this,arguments),E.type=p),C}}}),r.fn.extend({on:function(t,p,E,C){return Rn(this,t,p,E,C)},one:function(t,p,E,C){return Rn(this,t,p,E,C,1)},off:function(t,p,E){var C,L;if(t&&t.preventDefault&&t.handleObj)return C=t.handleObj,r(t.delegateTarget).off(C.namespace?C.origType+"."+C.namespace:C.origType,C.selector,C.handler),this;if(typeof t=="object"){for(L in t)this.off(L,p,t[L]);return this}return(p===!1||typeof p=="function")&&(E=p,p=void 0),E===!1&&(E=En),this.each(function(){r.event.remove(this,t,E,p)})}});var fi=/<script|<style|<link/i,zi=/checked\s*(?:[^=]|=\s*.checked.)/i,di=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function hi(t,p){return B(t,"table")&&B(p.nodeType!==11?p:p.firstChild,"tr")&&r(t).children("tbody")[0]||t}function Yi(t){return t.type=(t.getAttribute("type")!==null)+"/"+t.type,t}function pi(t){return(t.type||"").slice(0,5)==="true/"?t.type=t.type.slice(5):t.removeAttribute("type"),t}function mi(t,p){var E,C,L,M,H,gt,ft;if(p.nodeType===1){if(bt.hasData(t)&&(M=bt.get(t),ft=M.events,ft)){bt.remove(p,"handle events");for(L in ft)for(E=0,C=ft[L].length;E<C;E++)r.event.add(p,L,ft[L][E])}yt.hasData(t)&&(H=yt.access(t),gt=r.extend({},H),yt.set(p,gt))}}function Hr(t,p){var E=p.nodeName.toLowerCase();E==="input"&&Ft.test(t.type)?p.checked=t.checked:(E==="input"||E==="textarea")&&(p.defaultValue=t.defaultValue)}function Hn(t,p,E,C){p=c(p);var L,M,H,gt,ft,At,Dt=0,It=t.length,St=It-1,Ut=p[0],se=u(Ut);if(se||It>1&&typeof Ut=="string"&&!e.checkClone&&zi.test(Ut))return t.each(function(Te){var ue=t.eq(Te);se&&(p[0]=Ut.call(this,Te,ue.html())),Hn(ue,p,E,C)});if(It&&(L=Le(p,t[0].ownerDocument,!1,t,C),M=L.firstChild,L.childNodes.length===1&&(L=M),M||C)){for(H=r.map(Me(L,"script"),Yi),gt=H.length;Dt<It;Dt++)ft=L,Dt!==St&&(ft=r.clone(ft,!0,!0),gt&&r.merge(H,Me(ft,"script"))),E.call(t[Dt],ft,Dt);if(gt)for(At=H[H.length-1].ownerDocument,r.map(H,pi),Dt=0;Dt<gt;Dt++)ft=H[Dt],_e.test(ft.type||"")&&!bt.access(ft,"globalEval")&&r.contains(At,ft)&&(ft.src&&(ft.type||"").toLowerCase()!=="module"?r._evalUrl&&!ft.noModule&&r._evalUrl(ft.src,{nonce:ft.nonce||ft.getAttribute("nonce")},At):A(ft.textContent.replace(di,""),ft,At))}return t}function gi(t,p,E){for(var C,L=p?r.filter(p,t):t,M=0;(C=L[M])!=null;M++)!E&&C.nodeType===1&&r.cleanData(Me(C)),C.parentNode&&(E&&ce(C)&&bn(Me(C,"script")),C.parentNode.removeChild(C));return t}r.extend({htmlPrefilter:function(t){return t},clone:function(t,p,E){var C,L,M,H,gt=t.cloneNode(!0),ft=ce(t);if(!e.noCloneChecked&&(t.nodeType===1||t.nodeType===11)&&!r.isXMLDoc(t))for(H=Me(gt),M=Me(t),C=0,L=M.length;C<L;C++)Hr(M[C],H[C]);if(p)if(E)for(M=M||Me(t),H=H||Me(gt),C=0,L=M.length;C<L;C++)mi(M[C],H[C]);else mi(t,gt);return H=Me(gt,"script"),H.length>0&&bn(H,!ft&&Me(t,"script")),gt},cleanData:function(t){for(var p,E,C,L=r.event.special,M=0;(E=t[M])!==void 0;M++)if(_t(E)){if(p=E[bt.expando]){if(p.events)for(C in p.events)L[C]?r.event.remove(E,C):r.removeEvent(E,C,p.handle);E[bt.expando]=void 0}E[yt.expando]&&(E[yt.expando]=void 0)}}}),r.fn.extend({detach:function(t){return gi(this,t,!0)},remove:function(t){return gi(this,t)},text:function(t){return F(this,function(p){return p===void 0?r.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=p)})},null,t,arguments.length)},append:function(){return Hn(this,arguments,function(t){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=hi(this,t);p.appendChild(t)}})},prepend:function(){return Hn(this,arguments,function(t){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var p=hi(this,t);p.insertBefore(t,p.firstChild)}})},before:function(){return Hn(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Hn(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,p=0;(t=this[p])!=null;p++)t.nodeType===1&&(r.cleanData(Me(t,!1)),t.textContent="");return this},clone:function(t,p){return t=t??!1,p=p??t,this.map(function(){return r.clone(this,t,p)})},html:function(t){return F(this,function(p){var E=this[0]||{},C=0,L=this.length;if(p===void 0&&E.nodeType===1)return E.innerHTML;if(typeof p=="string"&&!fi.test(p)&&!Oe[(Jt.exec(p)||["",""])[1].toLowerCase()]){p=r.htmlPrefilter(p);try{for(;C<L;C++)E=this[C]||{},E.nodeType===1&&(r.cleanData(Me(E,!1)),E.innerHTML=p);E=0}catch{}}E&&this.empty().append(p)},null,t,arguments.length)},replaceWith:function(){var t=[];return Hn(this,arguments,function(p){var E=this.parentNode;r.inArray(this,t)<0&&(r.cleanData(Me(this)),E&&E.replaceChild(p,this))},t)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,p){r.fn[t]=function(E){for(var C,L=[],M=r(E),H=M.length-1,gt=0;gt<=H;gt++)C=gt===H?this:this.clone(!0),r(M[gt])[p](C),d.apply(L,C.get());return this.pushStack(L)}});var Ar=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Wr=/^--/,Tr=function(t){var p=t.ownerDocument.defaultView;return(!p||!p.opener)&&(p=x),p.getComputedStyle(t)},yi=function(t,p,E){var C,L,M={};for(L in p)M[L]=t.style[L],t.style[L]=p[L];C=E.call(t);for(L in p)t.style[L]=M[L];return C},Gi=new RegExp(qt.join("|"),"i");(function(){function t(){if(At){ft.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",At.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Vt.appendChild(ft).appendChild(At);var Dt=x.getComputedStyle(At);E=Dt.top!=="1%",gt=p(Dt.marginLeft)===12,At.style.right="60%",M=p(Dt.right)===36,C=p(Dt.width)===36,At.style.position="absolute",L=p(At.offsetWidth/3)===12,Vt.removeChild(ft),At=null}}function p(Dt){return Math.round(parseFloat(Dt))}var E,C,L,M,H,gt,ft=m.createElement("div"),At=m.createElement("div");At.style&&(At.style.backgroundClip="content-box",At.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=At.style.backgroundClip==="content-box",r.extend(e,{boxSizingReliable:function(){return t(),C},pixelBoxStyles:function(){return t(),M},pixelPosition:function(){return t(),E},reliableMarginLeft:function(){return t(),gt},scrollboxSize:function(){return t(),L},reliableTrDimensions:function(){var Dt,It,St,Ut;return H==null&&(Dt=m.createElement("table"),It=m.createElement("tr"),St=m.createElement("div"),Dt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",It.style.cssText="box-sizing:content-box;border:1px solid",It.style.height="1px",St.style.height="9px",St.style.display="block",Vt.appendChild(Dt).appendChild(It).appendChild(St),Ut=x.getComputedStyle(It),H=parseInt(Ut.height,10)+parseInt(Ut.borderTopWidth,10)+parseInt(Ut.borderBottomWidth,10)===It.offsetHeight,Vt.removeChild(Dt)),H}}))})();function Zn(t,p,E){var C,L,M,H,gt=Wr.test(p),ft=t.style;return E=E||Tr(t),E&&(H=E.getPropertyValue(p)||E[p],gt&&H&&(H=H.replace(Et,"$1")||void 0),H===""&&!ce(t)&&(H=r.style(t,p)),!e.pixelBoxStyles()&&Ar.test(H)&&Gi.test(p)&&(C=ft.width,L=ft.minWidth,M=ft.maxWidth,ft.minWidth=ft.maxWidth=ft.width=H,H=E.width,ft.width=C,ft.minWidth=L,ft.maxWidth=M)),H!==void 0?H+"":H}function vi(t,p){return{get:function(){if(t()){delete this.get;return}return(this.get=p).apply(this,arguments)}}}var bi=["Webkit","Moz","ms"],Ei=m.createElement("div").style,Vr={};function wi(t){for(var p=t[0].toUpperCase()+t.slice(1),E=bi.length;E--;)if(t=bi[E]+p,t in Ei)return t}function Wn(t){var p=r.cssProps[t]||Vr[t];return p||(t in Ei?t:Vr[t]=wi(t)||t)}var Qi=/^(none|table(?!-c[ea]).+)/,Xi={position:"absolute",visibility:"hidden",display:"block"},xr={letterSpacing:"0",fontWeight:"400"};function Ai(t,p,E){var C=de.exec(p);return C?Math.max(0,C[2]-(E||0))+(C[3]||"px"):p}function Kr(t,p,E,C,L,M){var H=p==="width"?1:0,gt=0,ft=0,At=0;if(E===(C?"border":"content"))return 0;for(;H<4;H+=2)E==="margin"&&(At+=r.css(t,E+qt[H],!0,L)),C?(E==="content"&&(ft-=r.css(t,"padding"+qt[H],!0,L)),E!=="margin"&&(ft-=r.css(t,"border"+qt[H]+"Width",!0,L))):(ft+=r.css(t,"padding"+qt[H],!0,L),E!=="padding"?ft+=r.css(t,"border"+qt[H]+"Width",!0,L):gt+=r.css(t,"border"+qt[H]+"Width",!0,L));return!C&&M>=0&&(ft+=Math.max(0,Math.ceil(t["offset"+p[0].toUpperCase()+p.slice(1)]-M-ft-gt-.5))||0),ft+At}function An(t,p,E){var C=Tr(t),L=!e.boxSizingReliable()||E,M=L&&r.css(t,"boxSizing",!1,C)==="border-box",H=M,gt=Zn(t,p,C),ft="offset"+p[0].toUpperCase()+p.slice(1);if(Ar.test(gt)){if(!E)return gt;gt="auto"}return(!e.boxSizingReliable()&&M||!e.reliableTrDimensions()&&B(t,"tr")||gt==="auto"||!parseFloat(gt)&&r.css(t,"display",!1,C)==="inline")&&t.getClientRects().length&&(M=r.css(t,"boxSizing",!1,C)==="border-box",H=ft in t,H&&(gt=t[ft])),gt=parseFloat(gt)||0,gt+Kr(t,p,E||(M?"border":"content"),H,C,gt)+"px"}r.extend({cssHooks:{opacity:{get:function(t,p){if(p){var E=Zn(t,"opacity");return E===""?"1":E}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,p,E,C){if(!(!t||t.nodeType===3||t.nodeType===8||!t.style)){var L,M,H,gt=Tt(p),ft=Wr.test(p),At=t.style;if(ft||(p=Wn(gt)),H=r.cssHooks[p]||r.cssHooks[gt],E!==void 0){if(M=typeof E,M==="string"&&(L=de.exec(E))&&L[1]&&(E=je(t,p,L),M="number"),E==null||E!==E)return;M==="number"&&!ft&&(E+=L&&L[3]||(r.cssNumber[gt]?"":"px")),!e.clearCloneStyle&&E===""&&p.indexOf("background")===0&&(At[p]="inherit"),(!H||!("set"in H)||(E=H.set(t,E,C))!==void 0)&&(ft?At.setProperty(p,E):At[p]=E)}else return H&&"get"in H&&(L=H.get(t,!1,C))!==void 0?L:At[p]}},css:function(t,p,E,C){var L,M,H,gt=Tt(p),ft=Wr.test(p);return ft||(p=Wn(gt)),H=r.cssHooks[p]||r.cssHooks[gt],H&&"get"in H&&(L=H.get(t,!0,E)),L===void 0&&(L=Zn(t,p,C)),L==="normal"&&p in xr&&(L=xr[p]),E===""||E?(M=parseFloat(L),E===!0||isFinite(M)?M||0:L):L}}),r.each(["height","width"],function(t,p){r.cssHooks[p]={get:function(E,C,L){if(C)return Qi.test(r.css(E,"display"))&&(!E.getClientRects().length||!E.getBoundingClientRect().width)?yi(E,Xi,function(){return An(E,p,L)}):An(E,p,L)},set:function(E,C,L){var M,H=Tr(E),gt=!e.scrollboxSize()&&H.position==="absolute",ft=gt||L,At=ft&&r.css(E,"boxSizing",!1,H)==="border-box",Dt=L?Kr(E,p,L,At,H):0;return At&&gt&&(Dt-=Math.ceil(E["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(H[p])-Kr(E,p,"border",!1,H)-.5)),Dt&&(M=de.exec(C))&&(M[3]||"px")!=="px"&&(E.style[p]=C,C=r.css(E,p)),Ai(E,C,Dt)}}}),r.cssHooks.marginLeft=vi(e.reliableMarginLeft,function(t,p){if(p)return(parseFloat(Zn(t,"marginLeft"))||t.getBoundingClientRect().left-yi(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(t,p){r.cssHooks[t+p]={expand:function(E){for(var C=0,L={},M=typeof E=="string"?E.split(" "):[E];C<4;C++)L[t+qt[C]+p]=M[C]||M[C-2]||M[0];return L}},t!=="margin"&&(r.cssHooks[t+p].set=Ai)}),r.fn.extend({css:function(t,p){return F(this,function(E,C,L){var M,H,gt={},ft=0;if(Array.isArray(C)){for(M=Tr(E),H=C.length;ft<H;ft++)gt[C[ft]]=r.css(E,C[ft],!1,M);return gt}return L!==void 0?r.style(E,C,L):r.css(E,C)},t,p,arguments.length>1)}});function Ye(t,p,E,C,L){return new Ye.prototype.init(t,p,E,C,L)}r.Tween=Ye,Ye.prototype={constructor:Ye,init:function(t,p,E,C,L,M){this.elem=t,this.prop=E,this.easing=L||r.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=C,this.unit=M||(r.cssNumber[E]?"":"px")},cur:function(){var t=Ye.propHooks[this.prop];return t&&t.get?t.get(this):Ye.propHooks._default.get(this)},run:function(t){var p,E=Ye.propHooks[this.prop];return this.options.duration?this.pos=p=r.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=p=t,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),E&&E.set?E.set(this):Ye.propHooks._default.set(this),this}},Ye.prototype.init.prototype=Ye.prototype,Ye.propHooks={_default:{get:function(t){var p;return t.elem.nodeType!==1||t.elem[t.prop]!=null&&t.elem.style[t.prop]==null?t.elem[t.prop]:(p=r.css(t.elem,t.prop,""),!p||p==="auto"?0:p)},set:function(t){r.fx.step[t.prop]?r.fx.step[t.prop](t):t.elem.nodeType===1&&(r.cssHooks[t.prop]||t.elem.style[Wn(t.prop)]!=null)?r.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},Ye.propHooks.scrollTop=Ye.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},r.easing={linear:function(t){return t},swing:function(t){return .5-Math.cos(t*Math.PI)/2},_default:"swing"},r.fx=Ye.prototype.init,r.fx.step={};var Vn,_r,zr=/^(?:toggle|show|hide)$/,Ti=/queueHooks$/;function Yr(){_r&&(m.hidden===!1&&x.requestAnimationFrame?x.requestAnimationFrame(Yr):x.setTimeout(Yr,r.fx.interval),r.fx.tick())}function xi(){return x.setTimeout(function(){Vn=void 0}),Vn=Date.now()}function Or(t,p){var E,C=0,L={height:t};for(p=p?1:0;C<4;C+=2-p)E=qt[C],L["margin"+E]=L["padding"+E]=t;return p&&(L.opacity=L.width=t),L}function Gr(t,p,E){for(var C,L=(Ge.tweeners[p]||[]).concat(Ge.tweeners["*"]),M=0,H=L.length;M<H;M++)if(C=L[M].call(E,p,t))return C}function Tn(t,p,E){var C,L,M,H,gt,ft,At,Dt,It="width"in p||"height"in p,St=this,Ut={},se=t.style,Te=t.nodeType&&pe(t),ue=bt.get(t,"fxshow");E.queue||(H=r._queueHooks(t,"fx"),H.unqueued==null&&(H.unqueued=0,gt=H.empty.fire,H.empty.fire=function(){H.unqueued||gt()}),H.unqueued++,St.always(function(){St.always(function(){H.unqueued--,r.queue(t,"fx").length||H.empty.fire()})}));for(C in p)if(L=p[C],zr.test(L)){if(delete p[C],M=M||L==="toggle",L===(Te?"hide":"show"))if(L==="show"&&ue&&ue[C]!==void 0)Te=!0;else continue;Ut[C]=ue&&ue[C]||r.style(t,C)}if(ft=!r.isEmptyObject(p),!(!ft&&r.isEmptyObject(Ut))){It&&t.nodeType===1&&(E.overflow=[se.overflow,se.overflowX,se.overflowY],At=ue&&ue.display,At==null&&(At=bt.get(t,"display")),Dt=r.css(t,"display"),Dt==="none"&&(At?Dt=At:(jt([t],!0),At=t.style.display||At,Dt=r.css(t,"display"),jt([t]))),(Dt==="inline"||Dt==="inline-block"&&At!=null)&&r.css(t,"float")==="none"&&(ft||(St.done(function(){se.display=At}),At==null&&(Dt=se.display,At=Dt==="none"?"":Dt)),se.display="inline-block")),E.overflow&&(se.overflow="hidden",St.always(function(){se.overflow=E.overflow[0],se.overflowX=E.overflow[1],se.overflowY=E.overflow[2]})),ft=!1;for(C in Ut)ft||(ue?"hidden"in ue&&(Te=ue.hidden):ue=bt.access(t,"fxshow",{display:At}),M&&(ue.hidden=!Te),Te&&jt([t],!0),St.done(function(){Te||jt([t]),bt.remove(t,"fxshow");for(C in Ut)r.style(t,C,Ut[C])})),ft=Gr(Te?ue[C]:0,C,St),C in ue||(ue[C]=ft.start,Te&&(ft.end=ft.start,ft.start=0))}}function Dn(t,p){var E,C,L,M,H;for(E in t)if(C=Tt(E),L=p[C],M=t[E],Array.isArray(M)&&(L=M[1],M=t[E]=M[0]),E!==C&&(t[C]=M,delete t[E]),H=r.cssHooks[C],H&&"expand"in H){M=H.expand(M),delete t[C];for(E in M)E in t||(t[E]=M[E],p[E]=L)}else p[C]=L}function Ge(t,p,E){var C,L,M=0,H=Ge.prefilters.length,gt=r.Deferred().always(function(){delete ft.elem}),ft=function(){if(L)return!1;for(var It=Vn||xi(),St=Math.max(0,At.startTime+At.duration-It),Ut=St/At.duration||0,se=1-Ut,Te=0,ue=At.tweens.length;Te<ue;Te++)At.tweens[Te].run(se);
vendor: 5,907 bytes, line 81
81return gt.notifyWith(t,[At,se,St]),se<1&&ue?St:(ue||gt.notifyWith(t,[At,1,0]),gt.resolveWith(t,[At]),!1)},At=gt.promise({elem:t,props:r.extend({},p),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},E),originalProperties:p,originalOptions:E,startTime:Vn||xi(),duration:E.duration,tweens:[],createTween:function(It,St){var Ut=r.Tween(t,At.opts,It,St,At.opts.specialEasing[It]||At.opts.easing);return At.tweens.push(Ut),Ut},stop:function(It){var St=0,Ut=It?At.tweens.length:0;if(L)return this;for(L=!0;St<Ut;St++)At.tweens[St].run(1);return It?(gt.notifyWith(t,[At,1,0]),gt.resolveWith(t,[At,It])):gt.rejectWith(t,[At,It]),this}}),Dt=At.props;for(Dn(Dt,At.opts.specialEasing);M<H;M++)if(C=Ge.prefilters[M].call(At,t,Dt,At.opts),C)return u(C.stop)&&(r._queueHooks(At.elem,At.opts.queue).stop=C.stop.bind(C)),C;return r.map(Dt,Gr,At),u(At.opts.start)&&At.opts.start.call(t,At),At.progress(At.opts.progress).done(At.opts.done,At.opts.complete).fail(At.opts.fail).always(At.opts.always),r.fx.timer(r.extend(ft,{elem:t,anim:At,queue:At.opts.queue})),At}r.Animation=r.extend(Ge,{tweeners:{"*":[function(t,p){var E=this.createTween(t,p);return je(E.elem,t,de.exec(p),E),E}]},tweener:function(t,p){u(t)?(p=t,t=["*"]):t=t.match(z);for(var E,C=0,L=t.length;C<L;C++)E=t[C],Ge.tweeners[E]=Ge.tweeners[E]||[],Ge.tweeners[E].unshift(p)},prefilters:[Tn],prefilter:function(t,p){p?Ge.prefilters.unshift(t):Ge.prefilters.push(t)}}),r.speed=function(t,p,E){var C=t&&typeof t=="object"?r.extend({},t):{complete:E||!E&&p||u(t)&&t,duration:t,easing:E&&p||p&&!u(p)&&p};return r.fx.off?C.duration=0:typeof C.duration!="number"&&(C.duration in r.fx.speeds?C.duration=r.fx.speeds[C.duration]:C.duration=r.fx.speeds._default),(C.queue==null||C.queue===!0)&&(C.queue="fx"),C.old=C.complete,C.complete=function(){u(C.old)&&C.old.call(this),C.queue&&r.dequeue(this,C.queue)},C},r.fn.extend({fadeTo:function(t,p,E,C){return this.filter(pe).css("opacity",0).show().end().animate({opacity:p},t,E,C)},animate:function(t,p,E,C){var L=r.isEmptyObject(t),M=r.speed(p,E,C),H=function(){var gt=Ge(this,r.extend({},t),M);(L||bt.get(this,"finish"))&&gt.stop(!0)};return H.finish=H,L||M.queue===!1?this.each(H):this.queue(M.queue,H)},stop:function(t,p,E){var C=function(L){var M=L.stop;delete L.stop,M(E)};return typeof t!="string"&&(E=p,p=t,t=void 0),p&&this.queue(t||"fx",[]),this.each(function(){var L=!0,M=t!=null&&t+"queueHooks",H=r.timers,gt=bt.get(this);if(M)gt[M]&&gt[M].stop&&C(gt[M]);else for(M in gt)gt[M]&&gt[M].stop&&Ti.test(M)&&C(gt[M]);for(M=H.length;M--;)H[M].elem===this&&(t==null||H[M].queue===t)&&(H[M].anim.stop(E),L=!1,H.splice(M,1));(L||!E)&&r.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var p,E=bt.get(this),C=E[t+"queue"],L=E[t+"queueHooks"],M=r.timers,H=C?C.length:0;for(E.finish=!0,r.queue(this,t,[]),L&&L.stop&&L.stop.call(this,!0),p=M.length;p--;)M[p].elem===this&&M[p].queue===t&&(M[p].anim.stop(!0),M.splice(p,1));for(p=0;p<H;p++)C[p]&&C[p].finish&&C[p].finish.call(this);delete E.finish})}}),r.each(["toggle","show","hide"],function(t,p){var E=r.fn[p];r.fn[p]=function(C,L,M){return C==null||typeof C=="boolean"?E.apply(this,arguments):this.animate(Or(p,!0),C,L,M)}}),r.each({slideDown:Or("show"),slideUp:Or("hide"),slideToggle:Or("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,p){r.fn[t]=function(E,C,L){return this.animate(p,E,C,L)}}),r.timers=[],r.fx.tick=function(){var t,p=0,E=r.timers;for(Vn=Date.now();p<E.length;p++)t=E[p],!t()&&E[p]===t&&E.splice(p--,1);E.length||r.fx.stop(),Vn=void 0},r.fx.timer=function(t){r.timers.push(t),r.fx.start()},r.fx.interval=13,r.fx.start=function(){_r||(_r=!0,Yr())},r.fx.stop=function(){_r=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(t,p){return t=r.fx&&r.fx.speeds[t]||t,p=p||"fx",this.queue(p,function(E,C){var L=x.setTimeout(E,t);C.stop=function(){x.clearTimeout(L)}})},(function(){var t=m.createElement("input"),p=m.createElement("select"),E=p.appendChild(m.createElement("option"));t.type="checkbox",e.checkOn=t.value!=="",e.optSelected=E.selected,t=m.createElement("input"),t.value="t",t.type="radio",e.radioValue=t.value==="t"})();var xn,Kn=r.expr.attrHandle;r.fn.extend({attr:function(t,p){return F(this,r.attr,t,p,arguments.length>1)},removeAttr:function(t){return this.each(function(){r.removeAttr(this,t)})}}),r.extend({attr:function(t,p,E){var C,L,M=t.nodeType;if(!(M===3||M===8||M===2)){if(typeof t.getAttribute>"u")return r.prop(t,p,E);if((M!==1||!r.isXMLDoc(t))&&(L=r.attrHooks[p.toLowerCase()]||(r.expr.match.bool.test(p)?xn:void 0)),E!==void 0){if(E===null){r.removeAttr(t,p);return}return L&&"set"in L&&(C=L.set(t,E,p))!==void 0?C:(t.setAttribute(p,E+""),E)}return L&&"get"in L&&(C=L.get(t,p))!==null?C:(C=r.find.attr(t,p),C??void 0)}},attrHooks:{type:{set:function(t,p){if(!e.radioValue&&p==="radio"&&B(t,"input")){var E=t.value;return t.setAttribute("type",p),E&&(t.value=E),p}}}},removeAttr:function(t,p){var E,C=0,L=p&&p.match(z);if(L&&t.nodeType===1)for(;E=L[C++];)t.removeAttribute(E)}}),xn={set:function(t,p,E){return p===!1?r.removeAttr(t,E):t.setAttribute(E,E),E}},r.each(r.expr.match.bool.source.match(/\w+/g),function(t,p){var E=Kn[p]||r.find.attr;Kn[p]=function(C,L,M){var H,gt,ft=L.toLowerCase();return M||(gt=Kn[ft],Kn[ft]=H,H=E(C,L,M)!=null?ft:null,Kn[ft]=gt),H}});var Cr=/^(?:input|select|textarea|button)$/i,tr=/^(?:a|area)$/i;r.fn.extend({prop:function(t,p){return F(this,r.prop,t,p,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[r.propFix[t]||t]})}}),r.extend({prop:function(t,p,E){var C,L,M=t.nodeType;if(!(M===3||M===8||M===2))return(M!==1||!r.isXMLDoc(t))&&(p=r.propFix[p]||p,L=r.propHooks[p]),E!==void 0?L&&"set"in L&&(C=L.set(t,E,p))!==void 0?C:t[p]=E:L&&"get"in L&&(C=L.get(t,p))!==null?C:t[p]},propHooks:{tabIndex:{get:function(t){var p=r.find.attr(t,"tabindex");
81return p?parseInt(p,10):Cr.test(t.nodeName)||tr.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),e.optSelected||(r.propHooks.selected={get:function(t){var p=t.parentNode;return p&&p.parentNode&&p.parentNode.selectedIndex,null},set:function(t){var p=t.parentNode;p&&(p.selectedIndex,p.parentNode&&p.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function Ln(t){var p=t.match(z)||[];return p.join(" ")}function _n(t){return t.getAttribute&&t.getAttribute("class")||""}function Qr(t){return Array.isArray(t)?t:typeof t=="string"?t.match(z)||[]:[]}r.fn.extend({addClass:function(t){var p,E,C,L,M,H;return u(t)?this.each(function(gt){r(this).addClass(t.call(this,gt,_n(this)))}):(p=Qr(t),p.length?this.each(function(){if(C=_n(this),E=this.nodeType===1&&" "+Ln(C)+" ",E){for(M=0;M<p.length;M++)L=p[M],E.indexOf(" "+L+" ")<0&&(E+=L+" ");H=Ln(E),C!==H&&this.setAttribute("class",H)}}):this)},removeClass:function(t){var p,E,C,L,M,H;return u(t)?this.each(function(gt){r(this).removeClass(t.call(this,gt,_n(this)))}):arguments.length?(p=Qr(t),p.length?this.each(function(){if(C=_n(this),E=this.nodeType===1&&" "+Ln(C)+" ",E){for(M=0;M<p.length;M++)for(L=p[M];E.indexOf(" "+L+" ")>-1;)E=E.replace(" "+L+" "," ");H=Ln(E),C!==H&&this.setAttribute("class",H)}}):this):this.attr("class","")},toggleClass:function(t,p){var E,C,L,M,H=typeof t,gt=H==="string"||Array.isArray(t);return u(t)?this.each(function(ft){r(this).toggleClass(t.call(this,ft,_n(this),p),p)}):typeof p=="boolean"&&gt?p?this.addClass(t):this.removeClass(t):(E=Qr(t),this.each(function(){if(gt)for(M=r(this),L=0;L<E.length;L++)C=E[L],M.hasClass(C)?M.removeClass(C):M.addClass(C);else(t===void 0||H==="boolean")&&(C=_n(this),C&&bt.set(this,"__className__",C),this.setAttribute&&this.setAttribute("class",C||t===!1?"":bt.get(this,"__className__")||""))}))},hasClass:function(t){var p,E,C=0;for(p=" "+t+" ";E=this[C++];)if(E.nodeType===1&&(" "+Ln(_n(E))+" ").indexOf(p)>-1)return!0;return!1}});var cn=/\r/g;r.fn.extend({val:function(t){var p,E,C,L=this[0];return arguments.length?(C=u(t),this.each(function(M){var H;this.nodeType===1&&(C?H=t.call(this,M,r(this).val()):H=t,H==null?H="":typeof H=="number"?H+="":Array.isArray(H)&&(H=r.map(H,function(gt){return gt==null?"":gt+""})),p=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],(!p||!("set"in p)||p.set(this,H,"value")===void 0)&&(this.value=H))})):L?(p=r.valHooks[L.type]||r.valHooks[L.nodeName.toLowerCase()],p&&"get"in p&&(E=p.get(L,"value"))!==void 0?E:(E=L.value,typeof E=="string"?E.replace(cn,""):E??"")):void 0}}),r.extend({valHooks:{option:{get:function(t){var p=r.find.attr(t,"value");return p??Ln(r.text(t))}},select:{get:function(t){var p,E,C,L=t.options,M=t.selectedIndex,H=t.type==="select-one",gt=H?null:[],ft=H?M+1:L.length;for(M<0?C=ft:C=H?M:0;C<ft;C++)if(E=L[C],(E.selected||C===M)&&!E.disabled&&(!E.parentNode.disabled||!B(E.parentNode,"optgroup"))){if(p=r(E).val(),H)return p;gt.push(p)}return gt},set:function(t,p){for(var E,C,L=t.options,M=r.makeArray(p),H=L.length;H--;)C=L[H],(C.selected=r.inArray(r.valHooks.option.get(C),M)>-1)&&(E=!0);return E||(t.selectedIndex=-1),M}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(t,p){if(Array.isArray(p))return t.checked=r.inArray(r(t).val(),p)>-1}},e.checkOn||(r.valHooks[this].get=function(t){return t.getAttribute("value")===null?"on":t.value})});var Qe=x.location,Ze={guid:Date.now()},Sr=/\?/;r.parseXML=function(t){var p,E;if(!t||typeof t!="string")return null;try{p=new x.DOMParser().parseFromString(t,"text/xml")}catch{}return E=p&&p.getElementsByTagName("parsererror")[0],(!p||E)&&r.error("Invalid XML: "+(E?r.map(E.childNodes,function(C){return C.textContent}).join(`
82`):t)),p};var kr=/^(?:focusinfocus|focusoutblur)$/,_i=function(t){t.stopPropagation()};r.extend(r.event,{trigger:function(t,p,E,C){var L,M,H,gt,ft,At,Dt,It,St=[E||m],Ut=o.call(t,"type")?t.type:t,se=o.call(t,"namespace")?t.namespace.split("."):[];if(M=It=H=E=E||m,!(E.nodeType===3||E.nodeType===8)&&!kr.test(Ut+r.event.triggered)&&(Ut.indexOf(".")>-1&&(se=Ut.split("."),Ut=se.shift(),se.sort()),ft=Ut.indexOf(":")<0&&"on"+Ut,t=t[r.expando]?t:new r.Event(Ut,typeof t=="object"&&t),t.isTrigger=C?2:3,t.namespace=se.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+se.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=E),p=p==null?[t]:r.makeArray(p,[t]),Dt=r.event.special[Ut]||{},!(!C&&Dt.trigger&&Dt.trigger.apply(E,p)===!1))){if(!C&&!Dt.noBubble&&!h(E)){for(gt=Dt.delegateType||Ut,kr.test(gt+Ut)||(M=M.parentNode);M;M=M.parentNode)St.push(M),H=M;H===(E.ownerDocument||m)&&St.push(H.defaultView||H.parentWindow||x)}for(L=0;(M=St[L++])&&!t.isPropagationStopped();)It=M,t.type=L>1?gt:Dt.bindType||Ut,At=(bt.get(M,"events")||Object.create(null))[t.type]&&bt.get(M,"handle"),At&&At.apply(M,p),At=ft&&M[ft],At&&At.apply&&_t(M)&&(t.result=At.apply(M,p),t.result===!1&&t.preventDefault());return t.type=Ut,!C&&!t.isDefaultPrevented()&&(!Dt._default||Dt._default.apply(St.pop(),p)===!1)&&_t(E)&&ft&&u(E[Ut])&&!h(E)&&(H=E[ft],H&&(E[ft]=null),r.event.triggered=Ut,t.isPropagationStopped()&&It.addEventListener(Ut,_i),E[Ut](),t.isPropagationStopped()&&It.removeEventListener(Ut,_i),r.event.triggered=void 0,H&&(E[ft]=H)),t.result}},simulate:function(t,p,E){var C=r.extend(new r.Event,E,{type:t,isSimulated:!0});r.event.trigger(C,null,p)}}),r.fn.extend({trigger:function(t,p){return this.each(function(){r.event.trigger(t,p,this)})},triggerHandler:function(t,p){var E=this[0];if(E)return r.event.trigger(t,p,E,!0)}});var Ji=/\[\]$/,Oi=/\r?\n/g,Xr=/^(?:submit|button|image|reset|file)$/i,Ci=/^(?:input|select|textarea|keygen)/i;function jr(t,p,E,C){var L;if(Array.isArray(p))r.each(p,function(M,H){E||Ji.test(t)?C(t,H):jr(t+"["+(typeof H=="object"&&H!=null?M:"")+"]",H,E,C)});else if(!E&&S(p)==="object")for(L in p)jr(t+"["+L+"]",p[L],E,C);else C(t,p)}r.param=function(t,p){var E,C=[],L=function(M,H){var gt=u(H)?H():H;C[C.length]=encodeURIComponent(M)+"="+encodeURIComponent(gt??"")};if(t==null)return"";if(Array.isArray(t)||t.jquery&&!r.isPlainObject(t))r.each(t,function(){L(this.name,this.value)});else for(E in t)jr(E,t[E],p,L);return C.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=r.prop(this,"elements");return t?r.makeArray(t):this}
vendor: 4,730 bytes, lines 82-84
82).filter(function(){var t=this.type;return this.name&&!r(this).is(":disabled")&&Ci.test(this.nodeName)&&!Xr.test(t)&&(this.checked||!Ft.test(t))}).map(function(t,p){var E=r(this).val();return E==null?null:Array.isArray(E)?r.map(E,function(C){return{name:p.name,value:C.replace(Oi,`\r
83`)}}):{name:p.name,value:E.replace(Oi,`\r
84`)}}).get()}});var Zi=/%20/g,Si=/#.*$/,ki=/([?&])_=[^&]*/,to=/^(.*?):[ \t]*([^\r\n]*)$/mg,eo=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ji=/^(?:GET|HEAD)$/,Ni=/^\/\//,Jr={},er={},Pi="*/".concat("*"),Nr=m.createElement("a");Nr.href=Qe.href;function Bt(t){return function(p,E){typeof p!="string"&&(E=p,p="*");var C,L=0,M=p.toLowerCase().match(z)||[];if(u(E))for(;C=M[L++];)C[0]==="+"?(C=C.slice(1)||"*",(t[C]=t[C]||[]).unshift(E)):(t[C]=t[C]||[]).push(E)}}function Pr(t,p,E,C){var L={},M=t===er;function H(gt){var ft;return L[gt]=!0,r.each(t[gt]||[],function(At,Dt){var It=Dt(p,E,C);if(typeof It=="string"&&!M&&!L[It])return p.dataTypes.unshift(It),H(It),!1;if(M)return!(ft=It)}),ft}return H(p.dataTypes[0])||!L["*"]&&H("*")}function Rr(t,p){var E,C,L=r.ajaxSettings.flatOptions||{};for(E in p)p[E]!==void 0&&((L[E]?t:C||(C={}))[E]=p[E]);return C&&r.extend(!0,t,C),t}function Zr(t,p,E){for(var C,L,M,H,gt=t.contents,ft=t.dataTypes;ft[0]==="*";)ft.shift(),C===void 0&&(C=t.mimeType||p.getResponseHeader("Content-Type"));if(C){for(L in gt)if(gt[L]&&gt[L].test(C)){ft.unshift(L);break}}if(ft[0]in E)M=ft[0];else{for(L in E){if(!ft[0]||t.converters[L+" "+ft[0]]){M=L;break}H||(H=L)}M=M||H}if(M)return M!==ft[0]&&ft.unshift(M),E[M]}function On(t,p,E,C){var L,M,H,gt,ft,At={},Dt=t.dataTypes.slice();if(Dt[1])for(H in t.converters)At[H.toLowerCase()]=t.converters[H];for(M=Dt.shift();M;)if(t.responseFields[M]&&(E[t.responseFields[M]]=p),!ft&&C&&t.dataFilter&&(p=t.dataFilter(p,t.dataType)),ft=M,M=Dt.shift(),M){if(M==="*")M=ft;else if(ft!=="*"&&ft!==M){if(H=At[ft+" "+M]||At["* "+M],!H){for(L in At)if(gt=L.split(" "),gt[1]===M&&(H=At[ft+" "+gt[0]]||At["* "+gt[0]],H)){H===!0?H=At[L]:At[L]!==!0&&(M=gt[0],Dt.unshift(gt[1]));break}}if(H!==!0)if(H&&t.throws)p=H(p);else try{p=H(p)}catch(It){return{state:"parsererror",error:H?It:"No conversion from "+ft+" to "+M}}}}return{state:"success",data:p}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qe.href,type:"GET",isLocal:eo.test(Qe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pi,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,p){return p?Rr(Rr(t,r.ajaxSettings),p):Rr(r.ajaxSettings,t)},ajaxPrefilter:Bt(Jr),ajaxTransport:Bt(er),ajax:function(t,p){typeof t=="object"&&(p=t,t=void 0),p=p||{};var E,C,L,M,H,gt,ft,At,Dt,It,St=r.ajaxSetup({},p),Ut=St.context||St,se=St.context&&(Ut.nodeType||Ut.jquery)?r(Ut):r.event,Te=r.Deferred(),ue=r.Callbacks("once memory"),Ke=St.statusCode||{},qe={},hn={},pn="canceled",be={readyState:0,getResponseHeader:function(Ce){var $e;if(ft){if(!M)for(M={};$e=to.exec(L);)M[$e[1].toLowerCase()+" "]=(M[$e[1].toLowerCase()+" "]||[]).concat($e[2]);$e=M[Ce.toLowerCase()+" "]}return $e==null?null:$e.join(", ")},getAllResponseHeaders:function(){return ft?L:null},setRequestHeader:function(Ce,$e){return ft==null&&(Ce=hn[Ce.toLowerCase()]=hn[Ce.toLowerCase()]||Ce,qe[Ce]=$e),this},overrideMimeType:function(Ce){return ft==null&&(St.mimeType=Ce),this},statusCode:function(Ce){var $e;if(Ce)if(ft)be.always(Ce[be.status]);else for($e in Ce)Ke[$e]=[Ke[$e],Ce[$e]];return this},abort:function(Ce){var $e=Ce||pn;return E&&E.abort($e),$n(0,$e),this}};if(Te.promise(be),St.url=((t||St.url||Qe.href)+"").replace(Ni,Qe.protocol+"//"),St.type=p.method||p.type||St.method||St.type,St.dataTypes=(St.dataType||"*").toLowerCase().match(z)||[""],St.crossDomain==null){gt=m.createElement("a");try{gt.href=St.url,gt.href=gt.href,St.crossDomain=Nr.protocol+"//"+Nr.host!=gt.protocol+"//"+gt.host}catch{St.crossDomain=!0}}if(St.data&&St.processData&&typeof St.data!="string"&&(St.data=r.param(St.data,St.traditional)),Pr(Jr,St,p,be),ft)return be;At=r.event&&St.global,At&&r.active++===0&&r.event.trigger("ajaxStart"),St.type=St.type.toUpperCase(),St.hasContent=!ji.test(St.type),C=St.url.replace(Si,""),St.hasContent?St.data&&St.processData&&(St.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(St.data=St.data.replace(Zi,"+")):(It=St.url.slice(C.length),St.data&&(St.processData||typeof St.data=="str
84ing")&&(C+=(Sr.test(C)?"&":"?")+St.data,delete St.data),St.cache===!1&&(C=C.replace(ki,"$1"),It=(Sr.test(C)?"&":"?")+"_="+Ze.guid+++It),St.url=C+It),St.ifModified&&(r.lastModified[C]&&be.setRequestHeader("If-Modified-Since",r.lastModified[C]),r.etag[C]&&be.setRequestHeader("If-None-Match",r.etag[C])),(St.data&&St.hasContent&&St.contentType!==!1||p.contentType)&&be.setRequestHeader("Content-Type",St.contentType),be.setRequestHeader("Accept",St.dataTypes[0]&&St.accepts[St.dataTypes[0]]?St.accepts[St.dataTypes[0]]+(St.dataTypes[0]!=="*"?", "+Pi+"; q=0.01":""):St.accepts["*"]);for(Dt in St.headers)be.setRequestHeader(Dt,St.headers[Dt]);if(St.beforeSend&&(St.beforeSend.call(Ut,be,St)===!1||ft))return be.abort();if(pn="abort",ue.add(St.complete),be.done(St.success),be.fail(St.error),E=Pr(er,St,p,be),!E)$n(-1,"No Transport");else{if(be.readyState=1,At&&se.trigger("ajaxSend",[be,St]),ft)return be;St.async&&St.timeout>0&&(H=x.setTimeout(function(){be.abort("timeout")},St.timeout));try{ft=!1,E.send(qe,$n)}catch(Ce){if(ft)throw Ce;$n(-1,Ce)}}function $n(Ce,$e,or,ti){var mn,In,gn,Bn,tn,on=$e;ft||(ft=!0,H&&x.clearTimeout(H),E=void 0,L=ti||"",be.readyState=Ce>0?4:0,mn=Ce>=200&&Ce<300||Ce===304,or&&(Bn=Zr(St,be,or)),!mn&&r.inArray("script",St.dataTypes)>-1&&r.inArray("json",St.dataTypes)<0&&(St.converters["text script"]=function(){}),Bn=On(St,Bn,be,mn),mn?(St.ifModified&&(tn=be.getResponseHeader("Last-Modified"),tn&&(r.lastModified[C]=tn),tn=be.getResponseHeader("etag"),tn&&(r.etag[C]=tn)),Ce===204||St.type==="HEAD"?on="nocontent":Ce===304?on="notmodified":(on=Bn.state,In=Bn.data,gn=Bn.error,mn=!gn)):(gn=on,(Ce||!on)&&(on="error",Ce<0&&(Ce=0))),be.status=Ce,be.statusText=($e||on)+"",mn?Te.resolveWith(Ut,[In,on,be]):Te.rejectWith(Ut,[be,on,gn]),be.statusCode(Ke),Ke=void 0,At&&se.trigger(mn?"ajaxSuccess":"ajaxError",[be,St,mn?In:gn]),ue.fireWith(Ut,[be,on]),At&&(se.trigger("ajaxComplete",[be,St]),--r.active||r.event.trigger("ajaxStop")))}return be},getJSON:function(t,p,E){return r.get(t,p,E,"json")},getScript:function(t,p){return r.get(t,void 0,p,"script")}}),r.each(["get","post"],function(t,p){r[p]=function(E,C,L,M){return u(C)&&(M=M||L,L=C,C=void 0),r.ajax(r.extend({url:E,type:p,dataType:M,data:C,success:L},r.isPlainObject(E)&&E))}}),r.ajaxPrefilter(function(t){var p;for(p in t.headers)p.toLowerCase()==="content-type"&&(t.contentType=t.headers[p]||"")}),r._evalUrl=function(t,p,E){return r.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(C){r.globalEval(C,p,E)}})},r.fn.extend({wrapAll:function(t){var p;return this[0]&&(u(t)&&(t=t.call(this[0])),p=r(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var E=this;E.firstElementChild;)E=E.firstElementChild;return E}).append(this)),this},wrapInner:function(t){return u(t)?this.each(function(p){r(this).wrapInner(t.call(this,p))}):this.each(function(){var p=r(this),E=p.contents();E.length?E.wrapAll(t):p.append(t)})},wrap:function(t){var p=u(t);return this.each(function(E){r(this).wrapAll(p?t.call(this,E):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(t){return!r.expr.pseudos.visible(t)},r.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch{}};var nr={0:200,1223:204},rr=r.ajaxSettings.xhr();e.cors=!!rr&&"withCredentials"in rr,e.ajax=rr=!!rr,r.ajaxTransport(function(t){var p,E;if(e.cors||rr&&!t.crossDomain)return{send:function(C,L){var M,H=t.xhr();if(H.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(M in t.xhrFields)H[M]=t.xhrFields[M];t.mimeType&&H.overrideMimeType&&H.overrideMimeType(t.mimeType),!t.crossDomain&&!C["X-Requested-With"]&&(C["X-Requested-With"]="XMLHttpRequest");for(M in C)H.setRequestHeader(M,C[M]);p=function(gt){return function(){p&&(p=E=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,gt==="abort"?H.abort():gt==="error"?typeof H.status!="number"?L(0,"error"):L(H.status,H.statusText):L(nr[H.status]||H.status,H.statusText,(H.responseType||"text")!=="text"||typeof H.responseText!="string"?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=p(),E=H.onerror=H.ontimeout=p("error"),H.onabort!==void 0?H.onabort=E:H.onreadystatechange=function(){H.readyState===4&&x.setTimeout(function(){p&&E()})},p=p("abort");try{H.send(t.hasContent&&t.data||null)}catch(gt){if(p)throw gt}},abort:function(){p&&p()}}}),r.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return r.globalEval(t),t}}}),r.ajaxPrefilter("script",function(t){t.cache===void 0&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),r.ajaxTransport("script",function(t){if(t.crossDomain||t.scriptAttrs){var p,E;
vendor: 7,271 bytes, line 84
84return{send:function(C,L){p=r("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",E=function(M){p.remove(),E=null,M&&L(M.type==="error"?404:200,M.type)}),m.head.appendChild(p[0])},abort:function(){E&&E()}}}});var un=[],ir=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=un.pop()||r.expando+"_"+Ze.guid++;return this[t]=!0,t}}),r.ajaxPrefilter("json jsonp",function(t,p,E){var C,L,M,H=t.jsonp!==!1&&(ir.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ir.test(t.data)&&"data");if(H||t.dataTypes[0]==="jsonp")return C=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,H?t[H]=t[H].replace(ir,"$1"+C):t.jsonp!==!1&&(t.url+=(Sr.test(t.url)?"&":"?")+t.jsonp+"="+C),t.converters["script json"]=function(){return M||r.error(C+" was not called"),M[0]},t.dataTypes[0]="json",L=x[C],x[C]=function(){M=arguments},E.always(function(){L===void 0?r(x).removeProp(C):x[C]=L,t[C]&&(t.jsonpCallback=p.jsonpCallback,un.push(C)),M&&u(L)&&L(M[0]),M=L=void 0}),"script"}),e.createHTMLDocument=(function(){var t=m.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",t.childNodes.length===2})(),r.parseHTML=function(t,p,E){if(typeof t!="string")return[];typeof p=="boolean"&&(E=p,p=!1);var C,L,M;return p||(e.createHTMLDocument?(p=m.implementation.createHTMLDocument(""),C=p.createElement("base"),C.href=m.location.href,p.head.appendChild(C)):p=m),L=V.exec(t),M=!E&&[],L?[p.createElement(L[1])]:(L=Le([t],p,M),M&&M.length&&r(M).remove(),r.merge([],L.childNodes))},r.fn.load=function(t,p,E){var C,L,M,H=this,gt=t.indexOf(" ");return gt>-1&&(C=Ln(t.slice(gt)),t=t.slice(0,gt)),u(p)?(E=p,p=void 0):p&&typeof p=="object"&&(L="POST"),H.length>0&&r.ajax({url:t,type:L||"GET",dataType:"html",data:p}).done(function(ft){M=arguments,H.html(C?r("<div>").append(r.parseHTML(ft)).find(C):ft)}).always(E&&function(ft,At){H.each(function(){E.apply(this,M||[ft.responseText,At,ft])})}),this},r.expr.pseudos.animated=function(t){return r.grep(r.timers,function(p){return t===p.elem}).length},r.offset={setOffset:function(t,p,E){var C,L,M,H,gt,ft,At,Dt=r.css(t,"position"),It=r(t),St={};Dt==="static"&&(t.style.position="relative"),gt=It.offset(),M=r.css(t,"top"),ft=r.css(t,"left"),At=(Dt==="absolute"||Dt==="fixed")&&(M+ft).indexOf("auto")>-1,At?(C=It.position(),H=C.top,L=C.left):(H=parseFloat(M)||0,L=parseFloat(ft)||0),u(p)&&(p=p.call(t,E,r.extend({},gt))),p.top!=null&&(St.top=p.top-gt.top+H),p.left!=null&&(St.left=p.left-gt.left+L),"using"in p?p.using.call(t,St):It.css(St)}},r.fn.extend({offset:function(t){if(arguments.length)return t===void 0?this:this.each(function(L){r.offset.setOffset(this,t,L)});var p,E,C=this[0];if(C)return C.getClientRects().length?(p=C.getBoundingClientRect(),E=C.ownerDocument.defaultView,{top:p.top+E.pageYOffset,left:p.left+E.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var t,p,E,C=this[0],L={top:0,left:0};if(r.css(C,"position")==="fixed")p=C.getBoundingClientRect();else{for(p=this.offset(),E=C.ownerDocument,t=C.offsetParent||E.documentElement;t&&(t===E.body||t===E.documentElement)&&r.css(t,"position")==="static";)t=t.parentNode;t&&t!==C&&t.nodeType===1&&(L=r(t).offset(),L.top+=r.css(t,"borderTopWidth",!0),L.left+=r.css(t,"borderLeftWidth",!0))}return{top:p.top-L.top-r.css(C,"marginTop",!0),left:p.left-L.left-r.css(C,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&r.css(t,"position")==="static";)t=t.offsetParent;return t||Vt})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,p){var E=p==="pageYOffset";r.fn[t]=function(C){return F(this,function(L,M,H){var gt;if(h(L)?gt=L:L.nodeType===9&&(gt=L.defaultView),H===void 0)return gt?gt[p]:L[M];gt?gt.scrollTo(E?gt.pageXOffset:H,E?H:gt.pageYOffset):L[M]=H},t,C,arguments.length)}}),r.each(["top","left"],function(t,p){r.cssHooks[p]=vi(e.pixelPosition,function(E,C){if(C)return C=Zn(E,p),Ar.test(C)?r(E).position()[p]+"px":C})}),r.each({Height:"height",Width:"width"},function(t,p){r.each({padding:"inner"+t,content:p,"":"outer"+t},function(E,C){r.fn[C]=function(L,M){var H=arguments.length&&(E||typeof L!="boolean"),gt=E||(L===!0||M===!0?"margin":"border");return F(this,function(ft,At,Dt){var It;return h(ft)?C.indexOf("outer")===0?ft["inner"+t]:ft.document.documentElement["client"+t]:ft.nodeType===9?(It=ft.documentElement,Math.max(ft.body["scroll"+t],It["scroll"+t],ft.body["offset"+t],It["offset"+t],It["client"+t])):Dt===void 0?r.css(ft,At,gt):r.style(ft,At,Dt,gt)},p,H?L:void 0,H)}})}),r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,p){r.fn[p]=function(E){return this.on(p,E)}}),r.fn.extend({bind:function(t,p,E){return this.on(t,null,p,E)},unbind:function(t,p){return this.off(t,null,p)},delegate:function(t,p,E,C){return this.on(p,t,E,C)},undelegate:function(t,p,E){return arguments.length===1?this.off(t,"**"):this.off(p,t||"**",E)},hover:function(t,p){return this.on("mouseenter",t).on("mouseleave",p||t)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,p){r.fn[p]=function(E,C){return arguments.length>0?this.on(p,null,E,C):this.trigger(p)}});var oe=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;r.proxy=function(t,p){var E,C,L;if(typeof p=="string"&&(E=t[p],p=t,t=E),!!u(t))return C=v.call(arguments,2),L=function(){return t.apply(p||this,C.concat(v.call(arguments)))},L.guid=t.guid=t.guid||r.guid++,L},r.holdReady=function(t){t?r.readyWait++:r.ready(!0)},r.isArray=Array.isArray,r.parseJSON=JSON.parse,r.nodeName=B,r.isFunction=u,r.isWindow=h,r.camelCase=Tt,r.type=S,r.now=Date.now,r.isNumeric=function(t){var p=r.type(t);return(p==="number"||p==="string")&&!isNaN(t-parseFloat(t))},r.trim=function(t){return t==null?"":(t+"").replace(oe,"$1")},b=[],T=(function(){return r}).apply(P,b),T!==void 0&&(xt.exports=T);var Dr=x.jQuery,no=x.$;return r.noConflict=function(t){return x.$===r&&(x.$=no),t&&x.jQuery===r&&(x.jQuery=Dr),r},typeof _>"u"&&(x.jQuery=x.$=r),r})},6585(xt){var P=1e3,b=P*60,T=b*60,x=T*24,_=x*7,a=x*365.25;xt.exports=function(s,n){n=n||{};var i=typeof s;if(i==="string"&&s.length>0)return g(s);if(i==="number"&&isFinite(s))return n.long?c(s):v(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))};function g(s){if(s=String(s),!(s.length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(n){var i=parseFloat(n[1]),o=(n[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return i*a;case"weeks":case"week":case"w":return i*_;case"days":case"day":case"d":return i*x;case"hours":case"hour":case"hrs":case"hr":case"h":return i*T;case"minutes":case"minute":case"mins":case"min":case"m":return i*b;case"seconds":case"second":case"secs":case"sec":case"s":return i*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function v(s){var n=Math.abs(s);return n>
84=x?Math.round(s/x)+"d":n>=T?Math.round(s/T)+"h":n>=b?Math.round(s/b)+"m":n>=P?Math.round(s/P)+"s":s+"ms"}function c(s){var n=Math.abs(s);return n>=x?d(s,n,x,"day"):n>=T?d(s,n,T,"hour"):n>=b?d(s,n,b,"minute"):n>=P?d(s,n,P,"second"):s+" ms"}function d(s,n,i,o){var y=n>=i*1.5;return Math.round(s/i)+" "+o+(y?"s":"")}},7904(xt,P,b){"use strict";var T,x;T=[b(4063)],x=(function(_){const a={};let g=0;const v=.3,c=.05,d=768,s=$("body"),n=$(window),i=$('[component="navbar"]'),o=document.getElementById("content"),y=i[0];function f(){return localStorage.getItem("composer:resizeRatio")||.5}function e(A){localStorage.setItem("composer:resizeRatio",Math.min(A,1))}function u(){let A;y?A=y.getBoundingClientRect():A={bottom:0};const S=Math.max(A.bottom,0),I={top:0,left:0,right:window.innerWidth,bottom:window.innerHeight};return I.width=I.right,I.height=I.bottom,I.boundedTop=S,I.boundedHeight=I.bottom-S,I}function h(A,S){const I=u(),R=A[0],r=window.getComputedStyle(R),D=parseInt(r.getPropertyValue("min-height"),10),B=Math.max(D/window.innerHeight,v);if(I.width>
84=d){const G=(I.height-I.boundedHeight)/I.height;S=Math.min(Math.max(S,B+G),1);const j=S*I.boundedHeight/I.height;R.style.top=((1-j)*100).toString()+"%";const rt=R.getBoundingClientRect();o.style.paddingBottom=(rt.bottom-rt.top).toString()+"px"}else R.style.top=0,o.style.paddingBottom=0;A.ratio=S,_.updateActive(A.attr("data-uuid"))}let m=h;const w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return w&&(m=function(A,S){w(function(){h(A,S),setTimeout(function(){n.trigger("action:composer.resize"),A.trigger("action:composer.resize")},0)})}),a.reposition=function(A){let S=f();S>=1-c&&(S=1,A.addClass("maximized")),m(A,S)},a.maximize=function(A,S){S?m(A,1):a.reposition(A)},a.handleResize=function(A){let S=0,I=0,R=0;const r=A.find(".resizer"),D=r[0];function B(it){const Et=D.getBoundingClientRect();S=((Et.top+Et.bottom)/2-it.clientY)/2,I=it.clientY,n.on("mousemove",G),n.on("mouseup",j),s.on("touchmove",rt)}function G(it){const Et=it.clientY-S,pt=u(),tt=(pt.height-Et)/pt.boundedHeight;m(A,tt)}function j(it){it.preventDefault(),R=it.clientY,A.find("textarea").focus(),n.off("mousemove",G),n.off("mouseup",j),s.off("touchmove",rt);const Et=R-S,pt=u();let tt=(pt.height-Et)/pt.boundedHeight;R-I===0&&A.hasClass("maximized")?(A.removeClass("maximized"),tt=!g||g>=1-c?.5:g,m(A,tt)):R-I===0||tt>=1-c?(m(A,1),A.addClass("maximized"),g=tt):A.removeClass("maximized"),e(tt)}function rt(it){it.preventDefault(),G(it.touches[0])}r.on("mousedown",function(it){it.button===0&&(it.preventDefault(),B(it))}).on("touchstart",function(it){it.preventDefault(),B(it.touches[0])}).on("touchend",j)},a}).apply(P,T),x!==void 0&&(xt.exports=x)},1574(xt){/*!
85 * Quill Editor v1.3.7
86 * https://quilljs.com/
87 * Copyright (c) 2014, Jason Chen
88 * Copyright (c) 2013, salesforce.com
89 */(function(b,T){xt.exports=T()})(typeof self<"u"?self:this,function(){return(function(P){var b={};function T(x){if(b[x])return b[x].exports;var _=b[x]={i:x,l:!1,exports:{}};return P[x].call(_.exports,_,_.exports,T),_.l=!0,_.exports}return T.m=P,T.c=b,T.d=function(x,_,a){T.o(x,_)||Object.defineProperty(x,_,{configurable:!1,enumerable:!0,get:a})},T.n=function(x){var _=x&&x.__esModule?function(){return x.default}:function(){return x};return T.d(_,"a",_),_},T.o=function(x,_){return Object.prototype.hasOwnProperty.call(x,_)},T.p="",T(T.s=109)})([(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(17),_=T(18),a=T(19),g=T(45),v=T(46),c=T(47),d=T(48),s=T(49),n=T(12),i=T(32),o=T(33),y=T(31),f=T(1),e={Scope:f.Scope,create:f.create,find:f.find,query:f.query,register:f.register,Container:x.default,Format:_.default,Leaf:a.default,Embed:d.default,Scroll:g.default,Block:c.default,Inline:v.default,Text:s.default,Attributor:{Attribute:n.default,Class:i.default,Style:o.default,Store:y.default}};b.default=e}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,e){for(var u in e)e.hasOwnProperty(u)&&(f[u]=e[u])};return function(f,e){y(f,e);function u(){this.constructor=f}f.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=(function(y){x(f,y);function f(e){var u=this;return e="[Parchment] "+e,u=y.call(this,e)||this,u.message=e,u.name=u.constructor.name,u}return f})(Error);b.ParchmentError=_;var a={},g={},v={},c={};b.DATA_KEY="__blot";var d;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(d=b.Scope||(b.Scope={}));function s(y,f){var e=i(y);if(e==null)throw new _("Unable to create "+y+" blot");var u=e,h=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:u.create(f);return new u(h,f)}b.create=s;function n(y,f){return f===void 0&&(f=!1),y==null?null:y[b.DATA_KEY]!=null?y[b.DATA_KEY].blot:f?n(y.parentNode,f):null}b.find=n;function i(y,f){f===void 0&&(f=d.ANY);var e;if(typeof y=="string")e=c[y]||a[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)e=c.text;else if(typeof y=="number")y&d.LEVEL&d.BLOCK?e=c.block:y&d.LEVEL&d.INLINE&&(e=c.inl
vendor: 66,150 bytes, lines 89-109
89ine);else if(y instanceof HTMLElement){var u=(y.getAttribute("class")||"").split(/\s+/);for(var h in u)if(e=g[u[h]],e)break;e=e||v[y.tagName]}return e==null?null:f&d.LEVEL&e.scope&&f&d.TYPE&e.scope?e:null}b.query=i;function o(){for(var y=[],f=0;f<arguments.length;f++)y[f]=arguments[f];if(y.length>1)return y.map(function(h){return o(h)});var e=y[0];if(typeof e.blotName!="string"&&typeof e.attrName!="string")throw new _("Invalid definition");if(e.blotName==="abstract")throw new _("Cannot register abstract class");if(c[e.blotName||e.attrName]=e,typeof e.keyName=="string")a[e.keyName]=e;else if(e.className!=null&&(g[e.className]=e),e.tagName!=null){Array.isArray(e.tagName)?e.tagName=e.tagName.map(function(h){return h.toUpperCase()}):e.tagName=e.tagName.toUpperCase();var u=Array.isArray(e.tagName)?e.tagName:[e.tagName];u.forEach(function(h){(v[h]==null||e.className==null)&&(v[h]=e)})}return e}b.register=o}),(function(P,b,T){var x=T(51),_=T(11),a=T(3),g=T(20),v="\0",c=function(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]};c.prototype.insert=function(d,s){var n={};return d.length===0?this:(n.insert=d,s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(n.attributes=s),this.push(n))},c.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},c.prototype.retain=function(d,s){if(d<=0)return this;var n={retain:d};return s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(n.attributes=s),this.push(n)},c.prototype.push=function(d){var s=this.ops.length,n=this.ops[s-1];if(d=a(!0,{},d),typeof n=="object"){if(typeof d.delete=="number"&&typeof n.delete=="number")return this.ops[s-1]={delete:n.delete+d.delete},this;if(typeof n.delete=="number"&&d.insert!=null&&(s-=1,n=this.ops[s-1],typeof n!="object"))return this.ops.unshift(d),this;if(_(d.attributes,n.attributes)){if(typeof d.insert=="string"&&typeof n.insert=="string")return this.ops[s-1]={insert:n.insert+d.insert},typeof d.attributes=="object"&&(this.ops[s-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof n.retain=="number")return this.ops[s-1]={retain:n.retain+d.retain},typeof d.attributes=="object"&&(this.ops[s-1].attributes=d.attributes),this}}return s===this.ops.length?this.ops.push(d):this.ops.splice(s,0,d),this},c.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},c.prototype.filter=function(d){return this.ops.filter(d)},c.prototype.forEach=function(d){this.ops.forEach(d)},c.prototype.map=function(d){return this.ops.map(d)},c.prototype.partition=function(d){var s=[],n=[];return this.forEach(function(i){var o=d(i)?s:n;o.push(i)}),[s,n]},c.prototype.reduce=function(d,s){return this.ops.reduce(d,s)},c.prototype.changeLength=function(){return this.reduce(function(d,s){return s.insert?d+g.length(s):s.delete?d-s.delete:d},0)},c.prototype.length=function(){return this.reduce(function(d,s){return d+g.length(s)},0)},c.prototype.slice=function(d,s){d=d||0,typeof s!="number"&&(s=1/0);for(var n=[],i=g.iterator(this.ops),o=0;o<s&&i.hasNext();){var y;o<d?y=i.next(d-o):(y=i.next(s-o),n.push(y)),o+=g.length(y)}return new c(n)},c.prototype.compose=function(d){var s=g.iterator(this.ops),n=g.iterator(d.ops),i=[],o=n.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var y=o.retain;s.peekType()==="insert"&&s.peekLength()<=y;)y-=s.peekLength(),i.push(s.next());o.retain-y>0&&n.next(o.retain-y)}for(var f=new c(i);s.hasNext()||n.hasNext();)if(n.peekType()==="insert")f.push(n.next());else if(s.peekType()==="delete")f.push(s.next());else{var e=Math.min(s.peekLength(),n.peekLength()),u=s.next(e),h=n.next(e);if(typeof h.retain=="number"){var m={};typeof u.retain=="number"?m.retain=e:m.insert=u.insert;var w=g.attributes.compose(u.attributes,h.attributes,typeof u.retain=="number");if(w&&(m.attributes=w),f.push(m),!n.hasNext()&&_(f.ops[f.ops.length-1],m)){var A=new c(s.rest());return f.concat(A).chop()}}else typeof h.delete=="number"&&typeof u.retain=="number"&&f.push(h)}return f.chop()},c.prototype.concat=function(d){var s=new c(this.ops.slice());return d.ops.length>0&&(s.push(d.ops[0]),s.ops=s.ops.concat(d.ops.slice(1))),s},c.prototype.diff=function(d,s){if(this.ops===d.ops)return new c;var n=[this,d].map(function(e){return e.map(function(u){if(u.insert!=null)return typeof u.insert=="string"?u.insert:v;var h=e===d?"on":"with";throw new Error("diff() called "+h+" non-document")}).join("")}),i=new c,o=x(n[0],n[1],s),y=g.iterator(this.ops),f=g.iterator(d.ops);return o.forEach(function(e){for(var u=e[1].length;u>0;){var h=0;switch(e[0]){case x.INSERT:h=Math.min(f.peekLength(),u),i.push(f.next(h));break;case x.DELETE:h=Math.min(u,y.peekLength()),y.next(h),i.delete(h);break;case x.EQUAL:h=Math.min(y.peekLength(),f.peekLength(),u);var m=y.next(h),w=f.next(h);_(m.insert,w.insert)?i.retain(h,g.attributes.diff(m.attributes,w.attributes)):i.push(w).delete(h);break}u-=h}}),i.chop()},c.prototype.eachLine=function(d,s){s=s||`
90`;for(var n=g.iterator(this.ops),i=new c,o=0;n.hasNext();){if(n.peekType()!=="insert")return;var y=n.peek(),f=g.length(y)-n.peekLength(),e=typeof y.insert=="string"?y.insert.indexOf(s,f)-f:-1;if(e<0)i.push(n.next());else if(e>0)i.push(n.next(e));else{if(d(i,n.next(1).attributes||{},o)===!1)return;o+=1,i=new c}}i.length()>0&&d(i,{},o)},c.prototype.transform=function(d,s){if(s=!!s,typeof d=="number")return this.transformPosition(d,s);for(var n=g.iterator(this.ops),i=g.iterator(d.ops),o=new c;n.hasNext()||i.hasNext();)if(n.peekType()==="insert"&&(s||i.peekType()!=="insert"))o.retain(g.length(n.next()));else if(i.peekType()==="insert")o.push(i.next());else{var y=Math.min(n.peekLength(),i.peekLength()),f=n.next(y),e=i.next(y);if(f.delete)continue;e.delete?o.push(e):o.retain(y,g.attributes.transform(f.attributes,e.attributes,s))}return o.chop()},c.prototype.transformPosition=function(d,s){s=!!s;for(var n=g.iterator(this.ops),i=0;n.hasNext()&&i<=d;){var o=n.peekLength(),y=n.peekType();if(n.next(),y==="delete"){d-=Math.min(o,d-i);continue}else y==="insert"&&(i<d||!s)&&(d+=o);i+=o}return d},P.exports=c}),(function(P,b){"use strict";var T=Object.prototype.hasOwnProperty,x=Object.prototype.toString,_=Object.defineProperty,a=Object.getOwnPropertyDescriptor,g=function(n){return typeof Array.isArray=="function"?Array.isArray(n):x.call(n)==="[object Array]"},v=function(n){if(!n||x.call(n)!=="[object Object]")return!1;var i=T.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&T.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;var y;for(y in n);return typeof y>"u"||T.call(n,y)},c=function(n,i){_&&i.name==="__proto__"?_(n,i.name,{enumerable:!0,configurable:!0,value:i.newValue,writable:!0}):n[i.name]=i.newValue},d=function(n,i){if(i==="__proto__")if(T.call(n,i)){if(a)return a(n,i).value}else return;return n[i]};P.exports=function s(){var n,i,o,y,f,e,u=arguments[0],h=1,m=arguments.length,w=!1;for(typeof u=="boolean"&&(w=u,u=arguments[1]||{},h=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});h<m;++h)if(n=arguments[h],n!=null)for(i in n)o=d(u,i),y=d(n,i),u!==y&&(w&&y&&(v(y)||(f=g(y)))?(f?(f=!1,e=o&&g(o)?o:[]):e=o&&v(o)?o:{},c(u,{name:i,newValue:s(w,e,y)})):typeof y<"u"&&c(u,{name:i,newValue:y}));return u}}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BlockEmbed=b.bubbleFormats=void 0;var x=(function(){function r(D,B){for(var G=0;G<B.length;G++){var j=B[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}return function(D,B,G){return B&&r(D.prototype,B),G&&r(D,G),D}})(),_=function r(D,B,G){D===null&&(D=Function.prototype);var j=Object.getOwnPropertyDescriptor(D,B);if(j===void 0){var rt=Object.getPrototypeOf(D);return rt===null?void 0:r(rt,B,G)}else{if("value"in j)return j.value;var it=j.get;return it===void 0?void 0:it.call(G)}},a=T(3),g=u(a),v=T(2),c=u(v),d=T(0),s=u(d),n=T(16),i=u(n),o=T(6),y=u(o),f=T(7),e=u(f);function u(r){return r&&r.__esModule?r:{default:r}}function h(r,D){if(!(r instanceof D))throw new TypeError("Cannot call a class as a function")}function m(r,D){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:r}function w(r,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);r.prototype=Object.create(D&&D.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(r,D):r.__proto__=D)}var A=1,S=(function(r){w(D,r);function D(){return h(this,D),m(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return x(D,[{key:"attach",value:function(){_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(G,j){var rt=s.default.query(G,s.default.Scope.BLOCK_ATTRIBUTE);rt!=null&&this.attributes.attribute(rt,j)}},{key:"formatAt",value:function(G,j,rt,it){this.format(rt,it)}},{key:"insertAt",value:function(G,j,rt){if(typeof j=="string"&&j.endsWith(`
91`)){var it=s.default.create(I.blotName);this.parent.insertBefore(it,G===0?this:this.next),it.insertAt(0,j.slice(0,-1))}else _(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,G,j,rt)}}]),D})(s.default.Embed);S.scope=s.default.Scope.BLOCK_BLOT;var I=(function(r){w(D,r);function D(B){h(this,D);var G=m(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B));return G.cache={},G}return x(D,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(G,j){return j.length()===0?G:G.insert(j.value(),R(j))},new c.default).insert(`
92`,R(this))),this.cache.delta}},{key:"deleteAt",value:function(G,j){_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,G,j),this.cache={}}},{key:"formatAt",value:function(G,j,rt,it){j<=0||(s.default.query(rt,s.default.Scope.BLOCK)?G+j===this.length()&&this.format(rt,it):_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,G,Math.min(j,this.length()-G-1),rt,it),this.cache={})}},{key:"insertAt",value:function(G,j,rt){if(rt!=null)return _(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,G,j,rt);if(j.length!==0){var it=j.split(`
93`),Et=it.shift();Et.length>0&&(G<this.length()-1||this.children.tail==null?_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,Math.min(G,this.length()-1),Et):this.children.tail.insertAt(this.children.tail.length(),Et),this.cache={});var pt=this;it.reduce(function(tt,U){return pt=pt.split(tt,!0),pt.insertAt(0,U),U.length},G+Et.length)}}},{key:"insertBefore",value:function(G,j){var rt=this.children.head;_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,G,j),rt instanceof i.default&&rt.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(G,j){_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"moveChildren",this).call(this,G,j),this.cache={}}},{key:"optimize",value:function(G){_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,G),this.cache={}}},{key:"path",value:function(G){return _(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,G,!0)}},{key:"removeChild",value:function(G){_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"removeChild",this).call(this,G),this.cache={}}},{key:"split",value:function(G){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(G===0||G>=this.length()-A)){var rt=this.clone();return G===0?(this.parent.insertBefore(rt,this),this):(this.parent.insertBefore(rt,this.next),rt)}else{var it=_(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"split",this).call(this,G,j);return this.cache={},it}}}]),D})(s.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[y.default,s.default.Embed,e.default];function R(r){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r==null||(typeof r.formats=="function"&&(D=(0,g.default)(D,r.formats())),r.parent==null||r.parent.blotName=="scroll"||r.parent.statics.scope!==r.statics.scope)?D:R(r.parent,D)}b.bubbleFormats=R,b.BlockEmbed=S,b.default=I}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.overload=b.expandConfig=void 0;var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},_=(function(){function pt(tt,U){var Q=[],X=!0,lt=!1,ot=void 0;try{for(var V=tt[Symbol.iterator](),at;!(X=(at=V.next()).done)&&(Q.push(at.value),!(U&&Q.length===U));X=!0);}catch(wt){lt=!0,ot=wt}finally{try{!X&&V.return&&V.return()}finally{if(lt)throw ot}}return Q}return function(tt,U){if(Array.isArray(tt))return tt;if(Symbol.iterator in Object(tt))return pt(tt,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function pt(tt,U){for(var Q=0;Q<U.length;Q++){var X=U[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(tt,X.key,X)}}return function(tt,U,Q){return U&&pt(tt.prototype,U),Q&&pt(tt,Q),tt}})();T(50);var g=T(2),v=R(g),c=T(14),d=R(c),s=T(8),n=R(s),i=T(9),o=R(i),y=T(0),f=R(y),e=T(15),u=R(e),h=T(3),m=R(h),w=T(10),A=R(w),S=T(34),I=R(S);function R(pt){return pt&&pt.__esModule?pt:{default:pt}}function r(pt,tt,U){return tt in pt?Object.defineProperty(pt,tt,{value:U,enumerable:!0,configurable:!0,writable:!0}):pt[tt]=U,pt}function D(pt,tt){if(!(pt instanceof tt))throw new TypeError("Cannot call a class as a function")}var B=(0,A.default)("quill"),G=(function(){a(pt,null,[{key:"debug",value:function(U){U===!0&&(U="log"),A.default.level(U)}},{key:"find",value:function(U){return U.__quill||f.default.find(U)}},{key:"import",value:function(U){return this.imports[U]==null&&B.error("Cannot import "+U+". Are you sure it was registered?"),this.imports[U]}},{key:"register",value:function(U,Q){var X=this,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof U!="string"){var ot=U.attrName||U.blotName;typeof ot=="string"?this.register("formats/"+ot,U,Q):Object.keys(U).forEach(function(V){X.register(V,U[V],Q)})}else this.imports[U]!=null&&!lt&&B.warn("Overwriting "+U+" with",Q),this.imports[U]=Q,(U.startsWith("blots/")||U.startsWith("formats/"))&&Q.blotName!=="abstract"?f.default.register(Q):U.startsWith("modules")&&typeof Q.register=="function"&&Q.register()}}]);function pt(tt){var U=this,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D(this,pt),this.options=j(tt,Q),this.container=this.options.container,this.container==null)return B.error("Invalid Quill container",tt);this.options.debug&&pt.debug(this.options.debug);var X=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new n.default,this.scroll=f.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new u.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(n.default.events.EDITOR_CHANGE,function(ot){ot===n.default.events.TEXT_CHANGE&&U.root.classList.toggle("ql-blank",U.editor.isBlank())}),this.emitter.on(n.default.events.SCROLL_UPDATE,function(ot,V){var at=U.selection.lastRange,wt=at&&at.length===0?at.index:void 0;rt.call(U,function(){return U.editor.update(null,V,wt)},ot)});var lt=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+X+"<p><br></p></div>");this.setContents(lt),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(pt,[{key:"addContainer",value:function(U){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof U=="string"){var X=U;U=document.createElement("div"),U.classList.add(X)}return this.container.insertBefore(U,Q),U}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(U,Q,X){var lt=this,ot=it(U,Q,X),V=_(ot,4);return U=V[0],Q=V[1],X=V[3],rt.call(this,function(){return lt.editor.deleteText(U,Q)},X,U,-1*Q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(U),this.container.classList.toggle("ql-disabled",!U)}},{key:"focus",value:function(){var U=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=U,this.scrollIntoView()}},{key:"format",value:function(U,Q){var X=this,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n.default.sources.API;return rt.call(this,function(){var ot=X.getSelection(!0),V=new v.default;if(ot==null)return V;if(f.default.query(U,f.default.Scope.BLOCK))V=X.editor.formatLine(ot.index,ot.length,r({},U,Q));else{if(ot.length===0)return X.selection.format(U,Q),V;V=X.editor.formatText(ot.index,ot.length,r({},U,Q))}return X.setSelection(ot,n.default.sources.SILENT),V},lt)}},{key:"formatLine",value:function(U,Q,X,lt,ot){var V=this,at=void 0,wt=it(U,Q,X,lt,ot),mt=_(wt,4);return U=mt[0],Q=mt[1],at=mt[2],ot=mt[3],rt.call(this,function(){return V.editor.formatLine(U,Q,at)},ot,U,0)}},{key:"formatText",value:function(U,Q,X,lt,ot){var V=this,at=void 0,wt=it(U,Q,X,lt,ot),mt=_(wt,4);return U=mt[0],Q=mt[1],at=mt[2],ot=mt[3],rt.call(this,function(){return V.editor.formatText(U,Q,at)},ot,U,0)}},{key:"getBounds",value:function(U){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=void 0;typeof U=="number"?X=this.selection.getBounds(U,Q):X=this.selection.getBounds(U.index,U.length);var lt=this.container.getBoundingClientRect();return{bottom:X.bottom-lt.top,height:X.height,left:X.left-lt.left,right:X.right-lt.left,top:X.top-lt.top,width:X.width}}},{key:"getContents",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-U,X=it(U,Q),lt=_(X,2);return U=lt[0],Q=lt[1],this.editor.getContents(U,Q)}},{key:"getFormat",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof U=="number"?this.editor.getFormat(U,Q):this.editor.getFormat(U.index,U.length)}},{key:"getIndex",value:function(U){return U.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(U){return this.scroll.leaf(U)}},{key:"getLine",value:function(U){return this.scroll.line(U)}},{key:"getLines",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof U!="number"?this.scroll.lines(U.index,U.length):this.scroll.lines(U,Q)}},{key:"getModule",value:function(U){return this.theme.modules[U]}},{key:"getSelection",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return U&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-U,X=it(U,Q),lt=_(X,2);return U=lt[0],Q=lt[1],this.editor.getText(U,Q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(U,Q,X){var lt=this,ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pt.sources.API;return rt.call(this,function(){return lt.editor.insertEmbed(U,Q,X)},ot,U)}},{key:"insertText",value:function(U,Q,X,lt,ot){var V=this,at=void 0,wt=it(U,0,X,lt,ot),mt=_(wt,4);return U=mt[0],at=mt[2],ot=mt[3],rt.call(this,function(){return V.editor.insertText(U,Q,at)},ot,U,Q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(U,Q,X){this.clipboard.dangerouslyPasteHTML(U,Q,X)}},{key:"removeFormat",value:function(U,Q,X){var lt=this,ot=it(U,Q,X),V=_(ot,4);return U=V[0],Q=V[1],X=V[3],rt.call(this,function(){return lt.editor.removeFormat(U,Q)},X,U)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(U){var Q=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return rt.call(this,function(){U=new v.default(U);var lt=Q.getLength(),ot=Q.editor.deleteText(0,lt),V=Q.editor.applyDelta(U),at=V.ops[V.ops.length-1];at!=null&&typeof at.insert=="string"&&at.insert[at.insert.length-1]===`
94`&&(Q.editor.deleteText(Q.getLength()-1,1),V.delete(1));var wt=ot.compose(V);return wt},X)}},{key:"setSelection",value:function(U,Q,X){if(U==null)this.selection.setRange(null,Q||pt.sources.API);else{var lt=it(U,Q,X),ot=_(lt,4);U=ot[0],Q=ot[1],X=ot[3],this.selection.setRange(new e.Range(U,Q),X),X!==n.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(U){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API,X=new v.default().insert(U);return this.setContents(X,Q)}},{key:"update",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.default.sources.USER,Q=this.scroll.update(U);return this.selection.update(U),Q}},{key:"updateContents",value:function(U){var Q=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return rt.call(this,function(){return U=new v.default(U),Q.editor.applyDelta(U,X)},X,!0)}}]),pt})();G.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},G.events=n.default.events,G.sources=n.default.sources,G.version="1.3.7",G.imports={delta:v.default,parchment:f.default,"core/module":o.default,"core/theme":I.default};function j(pt,tt){if(tt=(0,m.default)(!0,{container:pt,modules:{clipboard:!0,keyboard:!0,history:!0}},tt),!tt.theme||tt.theme===G.DEFAULTS.theme)tt.theme=I.default;else if(tt.theme=G.import("themes/"+tt.theme),tt.theme==null)throw new Error("Invalid theme "+tt.theme+". Did you register it?");var U=(0,m.default)(!0,{},tt.theme.DEFAULTS);[U,tt].forEach(function(lt){lt.modules=lt.modules||{},Object.keys(lt.modules).forEach(function(ot){lt.modules[ot]===!0&&(lt.modules[ot]={})})});var Q=Object.keys(U.modules).concat(Object.keys(tt.modules)),X=Q.reduce(function(lt,ot){var V=G.import("modules/"+ot);return V==null?B.error("Cannot load "+ot+" module. Are you sure you registered it?"):lt[ot]=V.DEFAULTS||{},lt},{});return tt.modules!=null&&tt.modules.toolbar&&tt.modules.toolbar.constructor!==Object&&(tt.modules.toolbar={container:tt.modules.toolbar}),tt=(0,m.default)(!0,{},G.DEFAULTS,{modules:X},U,tt),["bounds","container","scrollingContainer"].forEach(function(lt){typeof tt[lt]=="string"&&(tt[lt]=document.querySelector(tt[lt]))}),tt.modules=Object.keys(tt.modules).reduce(function(lt,ot){return tt.modules[ot]&&(lt[ot]=tt.modules[ot]),lt},{}),tt}function rt(pt,tt,U,Q){if(this.options.strict&&!this.isEnabled()&&tt===n.default.sources.USER)return new v.default;var X=U==null?null:this.getSelection(),lt=this.editor.delta,ot=pt();if(X!=null&&(U===!0&&(U=X.index),Q==null?X=Et(X,ot,tt):Q!==0&&(X=Et(X,U,Q,tt)),this.setSelection(X,n.default.sources.SILENT)),ot.length()>0){var V,at=[n.default.events.TEXT_CHANGE,ot,lt,tt];if((V=this.emitter).emit.apply(V,[n.default.events.EDITOR_CHANGE].concat(at)),tt!==n.default.sources.SILENT){var wt;(wt=this.emitter).emit.apply(wt,at)}}return ot}function it(pt,tt,U,Q,X){var lt={};return typeof pt.index=="number"&&typeof pt.length=="number"?typeof tt!="number"?(X=Q,Q=U,U=tt,tt=pt.length,pt=pt.index):(tt=pt.length,pt=pt.index):typeof tt!="number"&&(X=Q,Q=U,U=tt,tt=0),(typeof U>"u"?"undefined":x(U))==="object"?(lt=U,X=Q):typeof U=="string"&&(Q!=null?lt[U]=Q:X=U),X=X||n.default.sources.API,[pt,tt,lt,X]}function Et(pt,tt,U,Q){if(pt==null)return null;var X=void 0,lt=void 0;if(tt instanceof v.default){var ot=[pt.index,pt.index+pt.length].map(function(mt){return tt.transformPosition(mt,Q!==n.default.sources.USER)}),V=_(ot,2);X=V[0],lt=V[1]}else{var at=[pt.index,pt.index+pt.length].map(function(mt){return mt<tt||mt===tt&&Q===n.default.sources.USER?mt:U>=0?mt+U:Math.max(tt,mt+U)}),wt=_(at,2);X=wt[0],lt=wt[1]}return new e.Range(X,lt-X)}b.expandConfig=j,b.overload=it,b.default=G}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function y(f,e){for(var u=0;u<e.length;u++){var h=e[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,e,u){return e&&y(f.prototype,e),u&&y(f,u),f}})(),_=function y(f,e,u){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(h===void 0){var m=Object.getPrototypeOf(f);return m===null?void 0:y(m,e,u)}else{if("value"in h)return h.value;var w=h.get;return w===void 0?void 0:w.call(u)}},a=T(7),g=d(a),v=T(0),c=d(v);function d(y){return y&&y.__esModule?y:{default:y}}function s(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function n(y,f){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:y}function i(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}var o=(function(y){i(f,y);function f(){return s(this,f),n(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return x(f,[{key:"formatAt",value:function(u,h,m,w){if(f.compare(this.statics.blotName,m)<0&&c.default.query(m,c.default.Scope.BLOT)){var A=this.isolate(u,h);w&&A.wrap(m,w)}else _(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,u,h,m,w)}},{key:"optimize",value:function(u){if(_(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,u),this.parent instanceof f&&f.compare(this.statics.blotName,this.parent.statics.blotName)>0){var h=this.parent.isolate(this.offset(),this.length());this.moveChildren(h),h.wrap(this)}}}],[{key:"compare",value:function(u,h){var m=f.order.indexOf(u),w=f.order.indexOf(h);return m>=0||w>=0?m-w:u===h?0:u<h?-1:1}}]),f})(c.default.Inline);o.allowedChildren=[o,c.default.Embed,g.default],o.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],b.default=o}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(0),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}function g(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function v(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function c(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var d=(function(s){c(n,s);function n(){return g(this,n),v(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(_.default.Text);b.default=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function e(u,h){for(var m=0;m<h.length;m++){var w=h[m];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(u,w.key,w)}}return function(u,h,m){return h&&e(u.prototype,h),m&&e(u,m),u}})(),_=function e(u,h,m){u===null&&(u=Function.prototype);var w=Object.getOwnPropertyDescriptor(u,h);if(w===void 0){var A=Object.getPrototypeOf(u);return A===null?void 0:e(A,h,m)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(m)}},a=T(54),g=d(a),v=T(10),c=d(v);function d(e){return e&&e.__esModule?e:{default:e}}function s(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function n(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:e}function i(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}var o=(0,c.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(e){document.addEventListener(e,function(){for(var u=arguments.length,h=Array(u),m=0;m<u;m++)h[m]=arguments[m];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(w){if(w.__quill&&w.__quill.emitter){var A;(A=w.__quill.emitter).handleDOM.apply(A,h)}})})});var f=(function(e){i(u,e);function u(){s(this,u);var h=n(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return h.listeners={},h.on("error",o.error),h}return x(u,[{key:"emit",value:function(){o.log.apply(o,arguments),_(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(m){for(var w=arguments.length,A=Array(w>1?w-1:0),S=1;S<w;S++)A[S-1]=arguments[S];(this.listeners[m.type]||[]).forEach(function(I){var R=I.node,r=I.handler;(m.target===R||R.contains(m.target))&&r.apply(void 0,[m].concat(A))})}},{key:"listenDOM",value:function(m,w,A){this.listeners[m]||(this.listeners[m]=[]),this.listeners[m].push({node:w,handler:A})}}]),u})(g.default);f.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},f.sources={API:"api",SILENT:"silent",USER:"user"},b.default=f}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});function x(a,g){if(!(a instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function a(g){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x(this,a),this.quill=g,this.options=v};_.DEFAULTS={},b.default=_}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=["error","warn","log","info"],_="warn";function a(v){if(x.indexOf(v)<=x.indexOf(_)){for(var c,d=arguments.length,s=Array(d>1?d-1:0),n=1;n<d;n++)s[n-1]=arguments[n];(c=console)[v].apply(c,s)}}function g(v){return x.reduce(function(c,d){return c[d]=a.bind(console,d,v),c},{})}a.level=g.level=function(v){_=v},b.default=g}),(function(P,b,T){var x=Array.prototype.slice,_=T(52),a=T(53),g=P.exports=function(s,n,i){return i||(i={}),s===n?!0:s instanceof Date&&n instanceof Date?s.getTime()===n.getTime():!s||!n||typeof s!="object"&&typeof n!="object"?i.strict?s===n:s==n:d(s,n,i)};function v(s){return s==null}function c(s){return!(!s||typeof s!="object"||typeof s.length!="number"||typeof s.copy!="function"||typeof s.slice!="function"||s.length>0&&typeof s[0]!="number")}function d(s,n,i){var o,y;if(v(s)||v(n)||s.prototype!==n.prototype)return!1;if(a(s))return a(n)?(s=x.call(s),n=x.call(n),g(s,n,i)):!1;if(c(s)){if(!c(n)||s.length!==n.length)return!1;for(o=0;o<s.length;o++)if(s[o]!==n[o])return!1;return!0}try{var f=_(s),e=_(n)}catch{return!1}if(f.length!=e.length)return!1;for(f.sort(),e.sort(),o=f.length-1;o>=0;o--)if(f[o]!=e[o])return!1;for(o=f.length-1;o>=0;o--)if(y=f[o],!g(s[y],n[y],i))return!1;return typeof s==typeof n}}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(1),_=(function(){function a(g,v,c){c===void 0&&(c={}),this.attrName=g,this.keyName=v;var d=x.Scope.TYPE&x.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&x.Scope.LEVEL|d:this.scope=x.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return a.keys=function(g){return[].map.call(g.attributes,function(v){return v.name})},a.prototype.add=function(g,v){return this.canAdd(g,v)?(g.setAttribute(this.keyName,v),!0):!1},a.prototype.canAdd=function(g,v){var c=x.query(g,x.Scope.BLOT&(this.scope|x.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},a.prototype.remove=function(g){g.removeAttribute(this.keyName)},a.prototype.value=function(g){var v=g.getAttribute(this.keyName);return this.canAdd(g,v)&&v?v:""},a})();b.default=_}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Code=void 0;var x=(function(){function S(I,R){var r=[],D=!0,B=!1,G=void 0;try{for(var j=I[Symbol.iterator](),rt;!(D=(rt=j.next()).done)&&(r.push(rt.value),!(R&&r.length===R));D=!0);}catch(it){B=!0,G=it}finally{try{!D&&j.return&&j.return()}finally{if(B)throw G}}return r}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return S(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=(function(){function S(I,R){for(var r=0;r<R.length;r++){var D=R[r];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}return function(I,R,r){return R&&S(I.prototype,R),r&&S(I,r),I}})(),a=function S(I,R,r){I===null&&(I=Function.prototype);var D=Object.getOwnPropertyDescriptor(I,R);if(D===void 0){var B=Object.getPrototypeOf(I);return B===null?void 0:S(B,R,r)}else{if("value"in D)return D.value;var G=D.get;return G===void 0?void 0:G.call(r)}},g=T(2),v=e(g),c=T(0),d=e(c),s=T(4),n=e(s),i=T(6),o=e(i),y=T(7),f=e(y);function e(S){return S&&S.__esModule?S:{default:S}}function u(S,I){if(!(S instanceof I))throw new TypeError("Cannot call a class as a function")}function h(S,I){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:S}function m(S,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);S.prototype=Object.create(I&&I.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(S,I):S.__proto__=I)}var w=(function(S){m(I,S);function I(){return u(this,I),h(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I})(o.default);w.blotName="code",w.tagName="CODE";var A=(function(S){m(I,S);function I(){return u(this,I),h(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return _(I,[{key:"delta",value:function(){var r=this,D=this.domNode.textContent;return D.endsWith(`
95`)&&(D=D.slice(0,-1)),D.split(`
96`).reduce(function(B,G){return B.insert(G).insert(`
97`,r.formats())},new v.default)}},{key:"format",value:function(r,D){if(!(r===this.statics.blotName&&D)){var B=this.descendant(f.default,this.length()-1),G=x(B,1),j=G[0];j?.deleteAt(j.length()-1,1),a(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,r,D)}}},{key:"formatAt",value:function(r,D,B,G){if(D!==0&&!(d.default.query(B,d.default.Scope.BLOCK)==null||B===this.statics.blotName&&G===this.statics.formats(this.domNode))){var j=this.newlineIndex(r);if(!(j<0||j>=r+D)){var rt=this.newlineIndex(r,!0)+1,it=j-rt+1,Et=this.isolate(rt,it),pt=Et.next;Et.format(B,G),pt instanceof I&&pt.formatAt(0,r-rt+D-it,B,G)}}}},{key:"insertAt",value:function(r,D,B){if(B==null){var G=this.descendant(f.default,r),j=x(G,2),rt=j[0],it=j[1];rt.insertAt(it,D)}}},{key:"length",value:function(){var r=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
98`)?r:r+1}},{key:"newlineIndex",value:function(r){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D)return this.domNode.textContent.slice(0,r).lastIndexOf(`
99`);var B=this.domNode.textContent.slice(r).indexOf(`
100`);return B>-1?r+B:-1}},{key:"optimize",value:function(r){this.domNode.textContent.endsWith(`
101`)||this.appendChild(d.default.create("text",`
102`)),a(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,r);var D=this.next;D!=null&&D.prev===this&&D.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===D.statics.formats(D.domNode)&&(D.optimize(r),D.moveChildren(this),D.remove())}},{key:"replace",value:function(r){a(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,r),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(D){var B=d.default.find(D);B==null?D.parentNode.removeChild(D):B instanceof d.default.Embed?B.remove():B.unwrap()})}}],[{key:"create",value:function(r){var D=a(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,r);return D.setAttribute("spellcheck",!1),D}},{key:"formats",value:function(){return!0}}]),I})(n.default);A.blotName="code-block",A.tagName="PRE",A.TAB="  ",b.Code=w,b.default=A}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pt){return typeof pt}:function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},_=(function(){function pt(tt,U){var Q=[],X=!0,lt=!1,ot=void 0;try{for(var V=tt[Symbol.iterator](),at;!(X=(at=V.next()).done)&&(Q.push(at.value),!(U&&Q.length===U));X=!0);}catch(wt){lt=!0,ot=wt}finally{try{!X&&V.return&&V.return()}finally{if(lt)throw ot}}return Q}return function(tt,U){if(Array.isArray(tt))return tt;if(Symbol.iterator in Object(tt))return pt(tt,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function pt(tt,U){for(var Q=0;Q<U.length;Q++){var X=U[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(tt,X.key,X)}}return function(tt,U,Q){return U&&pt(tt.prototype,U),Q&&pt(tt,Q),tt}})(),g=T(2),v=D(g),c=T(20),d=D(c),s=T(0),n=D(s),i=T(13),o=D(i),y=T(24),f=D(y),e=T(4),u=D(e),h=T(16),m=D(h),w=T(21),A=D(w),S=T(11),I=D(S),R=T(3),r=D(R);function D(pt){return pt&&pt.__esModule?pt:{default:pt}}function B(pt,tt,U){return tt in pt?Object.defineProperty(pt,tt,{value:U,enumerable:!0,configurable:!0,writable:!0}):pt[tt]=U,pt}function G(pt,tt){if(!(pt instanceof tt))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,rt=(function(){function pt(tt){G(this,pt),this.scroll=tt,this.delta=this.getDelta()}return a(pt,[{key:"applyDelta",value:function(U){var Q=this,X=!1;this.scroll.update();var lt=this.scroll.length();return this.scroll.batchStart(),U=Et(U),U.reduce(function(ot,V){var at=V.retain||V.delete||V.insert.length||1,wt=V.attributes||{};if(V.insert!=null){if(typeof V.insert=="string"){var mt=V.insert;mt.endsWith(`
103`)&&X&&(X=!1,mt=mt.slice(0,-1)),ot>=lt&&!mt.endsWith(`
104`)&&(X=!0),Q.scroll.insertAt(ot,mt);var Rt=Q.scroll.line(ot),Gt=_(Rt,2),Xt=Gt[0],W=Gt[1],z=(0,r.default)({},(0,e.bubbleFormats)(Xt));if(Xt instanceof u.default){var st=Xt.descendant(n.default.Leaf,W),dt=_(st,1),Z=dt[0];z=(0,r.default)(z,(0,e.bubbleFormats)(Z))}wt=d.default.attributes.diff(z,wt)||{}}else if(x(V.insert)==="object"){var k=Object.keys(V.insert)[0];if(k==null)return ot;Q.scroll.insertAt(ot,k,V.insert[k])}lt+=at}return Object.keys(wt).forEach(function(q){Q.scroll.formatAt(ot,at,q,wt[q])}),ot+at},0),U.reduce(function(ot,V){return typeof V.delete=="number"?(Q.scroll.deleteAt(ot,V.delete),ot):ot+(V.retain||V.insert.length||1)},0),this.scroll.batchEnd(),this.update(U)}},{key:"deleteText",value:function(U,Q){return this.scroll.deleteAt(U,Q),this.update(new v.default().retain(U).delete(Q))}},{key:"formatLine",value:function(U,Q){var X=this,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(lt).forEach(function(ot){if(!(X.scroll.whitelist!=null&&!X.scroll.whitelist[ot])){var V=X.scroll.lines(U,Math.max(Q,1)),at=Q;V.forEach(function(wt){var mt=wt.length();if(!(wt instanceof o.default))wt.format(ot,lt[ot]);else{var Rt=U-wt.offset(X.scroll),Gt=wt.newlineIndex(Rt+at)-Rt+1;wt.formatAt(Rt,Gt,ot,lt[ot])}at-=mt})}}),this.scroll.optimize(),this.update(new v.default().retain(U).retain(Q,(0,A.default)(lt)))}},{key:"formatText",value:function(U,Q){var X=this,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(lt).forEach(function(ot){X.scroll.formatAt(U,Q,ot,lt[ot])}),this.update(new v.default().retain(U).retain(Q,(0,A.default)(lt)))}},{key:"getContents",value:function(U,Q){return this.delta.slice(U,U+Q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(U,Q){return U.concat(Q.delta())},new v.default)}},{key:"getFormat",value:function(U){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=[],lt=[];Q===0?this.scroll.path(U).forEach(function(V){var at=_(V,1),wt=at[0];wt instanceof u.default?X.push(wt):wt instanceof n.default.Leaf&&lt.push(wt)}):(X=this.scroll.lines(U,Q),lt=this.scroll.descendants(n.default.Leaf,U,Q));var ot=[X,lt].map(function(V){if(V.length===0)return{};for(var at=(0,e.bubbleFormats)(V.shift());Object.keys(at).length>0;){var wt=V.shift();if(wt==null)return at;at=it((0,e.bubbleFormats)(wt),at)}return at});return r.default.apply(r.default,ot)}},{key:"getText",value:function(U,Q){return this.getContents(U,Q).filter(function(X){return typeof X.insert=="string"}).map(function(X){return X.insert}).join("")}},{key:"insertEmbed",value:function(U,Q,X){return this.scroll.insertAt(U,Q,X),this.update(new v.default().retain(U).insert(B({},Q,X)))}},{key:"insertText",value:function(U,Q){var X=this,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Q=Q.replace(/\r\n/g,`
105`).replace(/\r/g,`
106`),this.scroll.insertAt(U,Q),Object.keys(lt).forEach(function(ot){X.scroll.formatAt(U,Q.length,ot,lt[ot])}),this.update(new v.default().retain(U).insert(Q,(0,A.default)(lt)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var U=this.scroll.children.head;return U.statics.blotName!==u.default.blotName||U.children.length>1?!1:U.children.head instanceof m.default}},{key:"removeFormat",value:function(U,Q){var X=this.getText(U,Q),lt=this.scroll.line(U+Q),ot=_(lt,2),V=ot[0],at=ot[1],wt=0,mt=new v.default;V!=null&&(V instanceof o.default?wt=V.newlineIndex(at)-at+1:wt=V.length()-at,mt=V.delta().slice(at,at+wt-1).insert(`
107`));var Rt=this.getContents(U,Q+wt),Gt=Rt.diff(new v.default().insert(X).concat(mt)),Xt=new v.default().retain(U).concat(Gt);return this.applyDelta(Xt)}},{key:"update",value:function(U){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,lt=this.delta;if(Q.length===1&&Q[0].type==="characterData"&&Q[0].target.data.match(j)&&n.default.find(Q[0].target)){var ot=n.default.find(Q[0].target),V=(0,e.bubbleFormats)(ot),at=ot.offset(this.scroll),wt=Q[0].oldValue.replace(f.default.CONTENTS,""),mt=new v.default().insert(wt),Rt=new v.default().insert(ot.value()),Gt=new v.default().retain(at).concat(mt.diff(Rt,X));U=Gt.reduce(function(Xt,W){return W.insert?Xt.insert(W.insert,V):Xt.push(W)},new v.default),this.delta=lt.compose(U)}else this.delta=this.getDelta(),(!U||!(0,I.default)(lt.compose(U),this.delta))&&(U=lt.diff(this.delta,X));return U}}]),pt})();function it(pt,tt){return Object.keys(tt).reduce(function(U,Q){return pt[Q]==null||(tt[Q]===pt[Q]?U[Q]=tt[Q]:Array.isArray(tt[Q])?tt[Q].indexOf(pt[Q])<0&&(U[Q]=tt[Q].concat([pt[Q]])):U[Q]=[tt[Q],pt[Q]]),U},{})}function Et(pt){return pt.reduce(function(tt,U){if(U.insert===1){var Q=(0,A.default)(U.attributes);return delete Q.image,tt.insert({image:U.attributes.image},Q)}if(U.attributes!=null&&(U.attributes.list===!0||U.attributes.bullet===!0)&&(U=(0,A.default)(U),U.attributes.list?U.attributes.list="ordered":(U.attributes.list="bullet",delete U.attributes.bullet)),typeof U.insert=="string"){var X=U.insert.replace(/\r\n/g,`
108`).replace(/\r/g,`
109`);return tt.insert(X,U.attributes)}return tt.push(U)},new v.default)}b.default=rt}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Range=void 0;var x=(function(){function S(I,R){var r=[],D=!0,B=!1,G=void 0;try{for(var j=I[Symbol.iterator](),rt;!(D=(rt=j.next()).done)&&(r.push(rt.value),!(R&&r.length===R));D=!0);}catch(it){B=!0,G=it}finally{try{!D&&j.return&&j.return()}finally{if(B)throw G}}return r}return function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return S(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=(function(){function S(I,R){for(var r=0;r<R.length;r++){var D=R[r];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(I,D.key,D)}}return function(I,R,r){return R&&S(I.prototype,R),r&&S(I,r),I}})(),a=T(0),g=f(a),v=T(21),c=f(v),d=T(11),s=f(d),n=T(8),i=f(n),o=T(10),y=f(o);function f(S){return S&&S.__esModule?S:{default:S}}function e(S){if(Array.isArray(S)){for(var I=0,R=Array(S.length);I<S.length;I++)R[I]=S[I];return R}else return Array.from(S)}function u(S,I){if(!(S instanceof I))throw new TypeError("Cannot call a class as a function")}var h=(0,y.default)("quill:selection"),m=function S(I){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;u(this,S),this.index=I,this.length=R},w=(function(){function S(I,R){var r=this;u(this,S),this.emitter=R,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new m(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,i.default.sources.USER),1)}),this.emitter.on(i.default.events.EDITOR_CHANGE,function(D,B){D===i.default.events.TEXT_CHANGE&&B.length()>0&&r.update(i.default.sources.SILENT)}),this.emitter.on(i.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var D=r.getNativeRange();D!=null&&D.start.node!==r.cursor.textNode&&r.emitter.once(i.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(D.start.node,D.start.offset,D.end.node,D.end.offset)}catch{}})}}),this.emitter.on(i.default.events.SCROLL_OPTIMIZE,function(D,B){if(B.range){var G=B.range,j=G.startNode,rt=G.startOffset,it=G.endNode,Et=G.endOffset;r.setNativeRange(j,rt,it,Et)}}),this.update(i.default.sources.SILENT)}return _(S,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var r=R.cursor.restore();if(!r)return;setTimeout(function(){R.setNativeRange(r.startNode,r.startOffset,r.endNode,r.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(i.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,r){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var D=this.getNativeRange();if(!(D==null||!D.native.collapsed||g.default.query(R,g.default.Scope.BLOCK))){if(D.start.node!==this.cursor.textNode){var B=g.default.find(D.start.node,!1);if(B==null)return;if(B instanceof g.default.Leaf){var G=B.split(D.start.offset);B.parent.insertBefore(this.cursor,G)}else B.insertBefore(this.cursor,D.start.node);this.cursor.attach()}this.cursor.format(R,r),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=this.scroll.length();R=Math.min(R,D-1),r=Math.min(R+r,D-1)-R;var B=void 0,G=this.scroll.leaf(R),j=x(G,2),rt=j[0],it=j[1];if(rt==null)return null;var Et=rt.position(it,!0),pt=x(Et,2);B=pt[0],it=pt[1];var tt=document.createRange();if(r>0){tt.setStart(B,it);var U=this.scroll.leaf(R+r),Q=x(U,2);if(rt=Q[0],it=Q[1],rt==null)return null;var X=rt.position(it,!0),lt=x(X,2);return B=lt[0],it=lt[1],tt.setEnd(B,it),tt.getBoundingClientRect()}else{var ot="left",V=void 0;return B instanceof Text?(it<B.data.length?(tt.setStart(B,it),tt.setEnd(B,it+1)):(tt.setStart(B,it-1),tt.setEnd(B,it),ot="right"),V=tt.getBoundingClientRect()):(V=rt.domNode.getBoundingClientRect(),it>0&&(ot="right")),{bottom:V.top+V.height,height:V.height,left:V[ot],right:V[ot],top:V.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var r=R.getRangeAt(0);if(r==null)return null;var D=this.normalizeNative(r);return h.info("getNativeRange",D),D}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var r=this.normalizedToRange(R);return[r,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var r=this,D=[[R.start.node,R.start.offset]];R.native.collapsed||D.push([R.end.node,R.end.offset]);var B=D.map(function(rt){var it=x(rt,2),Et=it[0],pt=it[1],tt=g.default.find(Et,!0),U=tt.offset(r.scroll);return pt===0?U:tt instanceof g.default.Container?U+tt.length():U+tt.index(Et,pt)}),G=Math.min(Math.max.apply(Math,e(B)),this.scroll.length()-1),j=Math.min.apply(Math,[G].concat(e(B)));return new m(j,G-j)}},{key:"normalizeNative",value:function(R){if(!A(this.root,R.startContainer)||!R.collapsed&&!A(this.root,R.endContainer))return null;var r={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[r.start,r.end].forEach(function(D){for(var B=D.node,G=D.offset;!(B instanceof Text)&&B.childNodes.length>0;)if(B.childNodes.length>G)B=B.childNodes[G],G=0;else if(B.childNodes.length===G)B=B.lastChild,G=B instanceof Text?B.data.length:B.childNodes.length+1;else break;D.node=B,D.offset=G}),r}},{key:"rangeToNative",value:function(R){var r=this,D=R.collapsed?[R.index]:[R.index,R.index+R.length],B=[],G=this.scroll.length();return D.forEach(function(j,rt){j=Math.min(G-1,j);var it=void 0,Et=r.scroll.leaf(j),pt=x(Et,2),tt=pt[0],U=pt[1],Q=tt.position(U,rt!==0),X=x(Q,2);it=X[0],U=X[1],B.push(it,U)}),B.length<2&&(B=B.concat(B)),B}},{key:"scrollIntoView",value:function(R){var r=this.lastRange;if(r!=null){var D=this.getBounds(r.index,r.length);if(D!=null){var B=this.scroll.length()-1,G=this.scroll.line(Math.min(r.index,B)),j=x(G,1),rt=j[0],it=rt;if(r.length>0){var Et=this.scroll.line(Math.min(r.index+r.length,B)),pt=x(Et,1);it=pt[0]}if(!(rt==null||it==null)){var tt=R.getBoundingClientRect();D.top<tt.top?R.scrollTop-=tt.top-D.top:D.bottom>tt.bottom&&(R.scrollTop+=D.bottom-tt.bottom)}}}}},{key:"setNativeRange",value:function(R,r){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:r,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(h.info("setNativeRange",R,r,D,B),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||D.parentNode==null))){var j=document.getSelection();if(j!=null)if(R!=null){this.hasFocus()||this.root.focus();var rt=(this.getNativeRange()||{}).native;if(rt==null||G||R!==rt.startContainer||r!==rt.startOffset||D!==rt.endContainer||B!==rt.endOffset){R.tagName=="BR"&&(r=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),D.tagName=="BR"&&(B=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode);var it=document.createRange();it.setStart(R,r),it.setEnd(D,B),j.removeAllRanges(),j.addRange(it)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.default.sources.API;if(typeof r=="string"&&(D=r,r=!1),h.info("setRange",R),R!=null){var B=this.rangeToNative(R);this.setNativeRange.apply(this,e(B).concat([r]))}else this.setNativeRange(null);this.update(D)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.default.sources.USER,r=this.lastRange,D=this.getRange(),B=x(D,2),G=B[0],j=B[1];if(this.lastRange=G,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,s.default)(r,this.lastRange)){var rt;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var it=[i.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(r),R];if((rt=this.emitter).emit.apply(rt,[i.default.events.EDITOR_CHANGE].concat(it)),R!==i.default.sources.SILENT){var Et;(Et=this.emitter).emit.apply(Et,it)}}}}]),S})();function A(S,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),S.contains(I)}b.Range=m,b.default=w}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function i(o,y){for(var f=0;f<y.length;f++){var e=y[f];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,y,f){return y&&i(o.prototype,y),f&&i(o,f),o}})(),_=function i(o,y,f){o===null&&(o=Function.prototype);var e=Object.getOwnPropertyDescriptor(o,y);if(e===void 0){var u=Object.getPrototypeOf(o);return u===null?void 0:i(u,y,f)}else{if("value"in e)return e.value;var h=e.get;return h===void 0?void 0:h.call(f)}},a=T(0),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(){return c(this,o),d(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return x(o,[{key:"insertInto",value:function(f,e){f.children.length===0?_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"insertInto",this).call(this,f,e):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),o})(g.default.Embed);n.blotName="break",n.tagName="BR",b.default=n}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var i in n)n.hasOwnProperty(i)&&(s[i]=n[i])};return function(s,n){d(s,n);function i(){this.constructor=s}s.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(44),a=T(30),g=T(1),v=(function(d){x(s,d);function s(n){var i=d.call(this,n)||this;return i.build(),i}return s.prototype.appendChild=function(n){this.insertBefore(n)},s.prototype.attach=function(){d.prototype.attach.call(this),this.children.forEach(function(n){n.attach()})},s.prototype.build=function(){var n=this;this.children=new _.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(i){try{var o=c(i);n.insertBefore(o,n.children.head||void 0)}catch(y){if(y instanceof g.ParchmentError)return;throw y}})},s.prototype.deleteAt=function(n,i){if(n===0&&i===this.length())return this.remove();this.children.forEachAt(n,i,function(o,y,f){o.deleteAt(y,f)})},s.prototype.descendant=function(n,i){var o=this.children.find(i),y=o[0],f=o[1];return n.blotName==null&&n(y)||n.blotName!=null&&y instanceof n?[y,f]:y instanceof s?y.descendant(n,f):[null,-1]},s.prototype.descendants=function(n,i,o){i===void 0&&(i=0),o===void 0&&(o=Number.MAX_VALUE);var y=[],f=o;return this.children.forEachAt(i,o,function(e,u,h){(n.blotName==null&&n(e)||n.blotName!=null&&e instanceof n)&&y.push(e),e instanceof s&&(y=y.concat(e.descendants(n,u,f))),f-=h}),y},s.prototype.detach=function(){this.children.forEach(function(n){n.detach()}),d.prototype.detach.call(this)},s.prototype.formatAt=function(n,i,o,y){this.children.forEachAt(n,i,function(f,e,u){f.formatAt(e,u,o,y)})},s.prototype.insertAt=function(n,i,o){var y=this.children.find(n),f=y[0],e=y[1];if(f)f.insertAt(e,i,o);else{var u=o==null?g.create("text",i):g.create(i,o);this.appendChild(u)}},s.prototype.insertBefore=function(n,i){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(o){return n instanceof o}))throw new g.ParchmentError("Cannot insert "+n.statics.blotName+" into "+this.statics.blotName);n.insertInto(this,i)},s.prototype.length=function(){return this.children.reduce(function(n,i){return n+i.length()},0)},s.prototype.moveChildren=function(n,i){this.children.forEach(function(o){n.insertBefore(o,i)})},s.prototype.optimize=function(n){if(d.prototype.optimize.call(this,n),this.children.length===0)if(this.statics.defaultChild!=null){var i=g.create(this.statics.defaultChild);this.appendChild(i),i.optimize(n)}else this.remove()},s.prototype.path=function(n,i){i===void 0&&(i=!1);var o=this.children.find(n,i),y=o[0],f=o[1],e=[[this,n]];return y instanceof s?e.concat(y.path(f,i)):(y!=null&&e.push([y,f]),e)},s.prototype.removeChild=function(n){this.children.remove(n)},s.prototype.replace=function(n){n instanceof s&&n.moveChildren(this),d.prototype.replace.call(this,n)},s.prototype.split=function(n,i){if(i===void 0&&(i=!1),!i){if(n===0)return this;if(n===this.length())return this.next}var o=this.clone();return this.parent.insertBefore(o,this.next),this.children.forEachAt(n,this.length(),function(y,f,e){y=y.split(f,i),o.appendChild(y)}),o},s.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},s.prototype.update=function(n,i){var o=this,y=[],f=[];n.forEach(function(e){e.target===o.domNode&&e.type==="childList"&&(y.push.apply(y,e.addedNodes),f.push.apply(f,e.removedNodes))}),f.forEach(function(e){if(!(e.parentNode!=null&&e.tagName!=="IFRAME"&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var u=g.find(e);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===o.domNode)&&u.detach()}}),y.filter(function(e){return e.parentNode==o.domNode}).sort(function(e,u){return e===u?0:e.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var u=null;e.nextSibling!=null&&(u=g.find(e.nextSibling));var h=c(e);(h.next!=u||h.next==null)&&(h.parent!=null&&h.parent.removeChild(o),o.insertBefore(h,u||void 0))})},s})(a.default);function c(d){var s=g.find(d);if(s==null)try{s=g.create(d)}catch{s=g.create(g.Scope.INLINE),[].slice.call(d.childNodes).forEach(function(i){s.domNode.appendChild(i)}),d.parentNode&&d.parentNode.replaceChild(s.domNode,d),s.attach()}return s}b.default=v}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var i in n)n.hasOwnProperty(i)&&(s[i]=n[i])};return function(s,n){d(s,n);function i(){this.constructor=s}s.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(12),a=T(31),g=T(17),v=T(1),c=(function(d){x(s,d);function s(n){var i=d.call(this,n)||this;return i.attributes=new a.default(i.domNode),i}return s.formats=function(n){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase()},s.prototype.format=function(n,i){var o=v.query(n);o instanceof _.default?this.attributes.attribute(o,i):i&&o!=null&&(n!==this.statics.blotName||this.formats()[n]!==i)&&this.replaceWith(n,i)},s.prototype.formats=function(){var n=this.attributes.values(),i=this.statics.formats(this.domNode);return i!=null&&(n[this.statics.blotName]=i),n},s.prototype.replaceWith=function(n,i){var o=d.prototype.replaceWith.call(this,n,i);return this.attributes.copy(o),o},s.prototype.update=function(n,i){var o=this;d.prototype.update.call(this,n,i),n.some(function(y){return y.target===o.domNode&&y.type==="attributes"})&&this.attributes.build()},s.prototype.wrap=function(n,i){var o=d.prototype.wrap.call(this,n,i);return o instanceof s&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},s})(g.default);b.default=c}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var s in d)d.hasOwnProperty(s)&&(c[s]=d[s])};return function(c,d){v(c,d);function s(){this.constructor=c}c.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(30),a=T(1),g=(function(v){x(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.value=function(d){return!0},c.prototype.index=function(d,s){return this.domNode===d||this.domNode.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(s,1):-1},c.prototype.position=function(d,s){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return d>0&&(n+=1),[this.parent.domNode,n]},c.prototype.value=function(){var d;return d={},d[this.statics.blotName]=this.statics.value(this.domNode)||!0,d},c.scope=a.Scope.INLINE_BLOT,c})(_.default);b.default=g}),(function(P,b,T){var x=T(11),_=T(3),a={attributes:{compose:function(v,c,d){typeof v!="object"&&(v={}),typeof c!="object"&&(c={});var s=_(!0,{},c);d||(s=Object.keys(s).reduce(function(i,o){return s[o]!=null&&(i[o]=s[o]),i},{}));for(var n in v)v[n]!==void 0&&c[n]===void 0&&(s[n]=v[n]);return Object.keys(s).length>0?s:void 0},diff:function(v,c){typeof v!="object"&&(v={}),typeof c!="object"&&(c={});var d=Object.keys(v).concat(Object.keys(c)).reduce(function(s,n){return x(v[n],c[n])||(s[n]=c[n]===void 0?null:c[n]),s},{});return Object.keys(d).length>0?d:void 0},transform:function(v,c,d){if(typeof v!="object")return c;if(typeof c=="object"){if(!d)return c;var s=Object.keys(c).reduce(function(n,i){return v[i]===void 0&&(n[i]=c[i]),n},{});return Object.keys(s).length>0?s:void 0}}},iterator:function(v){return new g(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function g(v){this.ops=v,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(v){v||(v=1/0);var c=this.ops[this.index];if(c){var d=this.offset,s=a.length(c);if(v>=s-d?(v=s-d,this.index+=1,this.offset=0):this.offset+=v,typeof c.delete=="number")return{delete:v};var n={};return c.attributes&&(n.attributes=c.attributes),typeof c.retain=="number"?n.retain=v:typeof c.insert=="string"?n.insert=c.insert.substr(d,v):n.insert=c.insert,n}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,c=this.index,d=this.next(),s=this.ops.slice(this.index);return this.offset=v,this.index=c,[d].concat(s)}else return[]},P.exports=a}),(function(P,b){var T=(function(){"use strict";function x(o,y){return y!=null&&o instanceof y}var _;try{_=Map}catch{_=function(){}}var a;try{a=Set}catch{a=function(){}}var g;try{g=Promise}catch{g=function(){}}function v(o,y,f,e,u){typeof y=="object"&&(f=y.depth,e=y.prototype,u=y.includeNonEnumerable,y=y.circular);var h=[],m=[],w=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof f>"u"&&(f=1/0);function A(S,I){if(S===null)return null;if(I===0)return S;var R,r;if(typeof S!="object")return S;if(x(S,_))R=new _;else if(x(S,a))R=new a;else if(x(S,g))R=new g(function(tt,U){S.then(function(Q){tt(A(Q,I-1))},function(Q){U(A(Q,I-1))})});else if(v.__isArray(S))R=[];else if(v.__isRegExp(S))R=new RegExp(S.source,i(S)),S.lastIndex&&(R.lastIndex=S.lastIndex);else if(v.__isDate(S))R=new Date(S.getTime());else{if(w&&Buffer.isBuffer(S))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(S.length):R=new Buffer(S.length),S.copy(R),R;x(S,Error)?R=Object.create(S):typeof e>"u"?(r=Object.getPrototypeOf(S),R=Object.create(r)):(R=Object.create(e),r=e)}if(y){var D=h.indexOf(S);if(D!=-1)return m[D];h.push(S),m.push(R)}
109x(S,_)&&S.forEach(function(tt,U){var Q=A(U,I-1),X=A(tt,I-1);R.set(Q,X)}),x(S,a)&&S.forEach(function(tt){var U=A(tt,I-1);R.add(U)});for(var B in S){var G;r&&(G=Object.getOwnPropertyDescriptor(r,B)),!(G&&G.set==null)&&(R[B]=A(S[B],I-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(S),B=0;B<j.length;B++){var rt=j[B],it=Object.getOwnPropertyDescriptor(S,rt);it&&!it.enumerable&&!u||(R[rt]=A(S[rt],I-1),it.enumerable||Object.defineProperty(R,rt,{enumerable:!1}))}if(u)for(var Et=Object.getOwnPropertyNames(S),B=0;B<Et.length;B++){var pt=Et[B],it=Object.getOwnPropertyDescriptor(S,pt);it&&it.enumerable||(R[pt]=A(S[pt],I-1),Object.defineProperty(R,pt,{enumerable:!1}))}return R}return A(o,f)}v.clonePrototype=function(y){if(y===null)return null;var f=function(){};return f.prototype=y,new f};function c(o){return Object.prototype.toString.call(o)}v.__objToStr=c;function d(o){return typeof o=="object"&&c(o)==="[object Date]"}v.__isDate=d;function s(o){return typeof o=="object"&&c(o)==="[object Array]"}v.__isArray=s;function n(o){return typeof o=="object"&&c(o)==="[object RegExp]"}v.__isRegExp=n;function i(o){var y="";return o.global&&(y+="g"),o.ignoreCase&&(y+="i"),o.multiline&&(y+="m"),y}return v.__getRegExpFlags=i,v})();typeof P=="object"&&P.exports&&(P.exports=T)}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function R(r,D){var B=[],G=!0,j=!1,rt=void 0;try{for(var it=r[Symbol.iterator](),Et;!(G=(Et=it.next()).done)&&(B.push(Et.value),!(D&&B.length===D));G=!0);}catch(pt){j=!0,rt=pt}finally{try{!G&&it.return&&it.return()}finally{if(j)throw rt}}return B}return function(r,D){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return R(r,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=(function(){function R(r,D){for(var B=0;B<D.length;B++){var G=D[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(r,G.key,G)}}return function(r,D,B){return D&&R(r.prototype,D),B&&R(r,B),r}})(),a=function R(r,D,B){r===null&&(r=Function.prototype);var G=Object.getOwnPropertyDescriptor(r,D);if(G===void 0){var j=Object.getPrototypeOf(r);return j===null?void 0:R(j,D,B)}else{if("value"in G)return G.value;var rt=G.get;return rt===void 0?void 0:rt.call(B)}},g=T(0),v=h(g),c=T(8),d=h(c),s=T(4),n=h(s),i=T(16),o=h(i),y=T(13),f=h(y),e=T(25),u=h(e);function h(R){return R&&R.__esModule?R:{default:R}}function m(R,r){if(!(R instanceof r))throw new TypeError("Cannot call a class as a function")}function w(R,r){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:R}function A(R,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);R.prototype=Object.create(r&&r.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(R,r):R.__proto__=r)}function S(R){return R instanceof n.default||R instanceof s.BlockEmbed}var I=(function(R){A(r,R);function r(D,B){m(this,r);var G=w(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,D));return G.emitter=B.emitter,Array.isArray(B.whitelist)&&(G.whitelist=B.whitelist.reduce(function(j,rt){return j[rt]=!0,j},{})),G.domNode.addEventListener("DOMNodeInserted",function(){}),G.optimize(),G.enable(),G}return _(r,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}}
vendor: 19,153 bytes, lines 109-114
109,{key:"deleteAt",value:function(B,G){var j=this.line(B),rt=x(j,2),it=rt[0],Et=rt[1],pt=this.line(B+G),tt=x(pt,1),U=tt[0];if(a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"deleteAt",this).call(this,B,G),U!=null&&it!==U&&Et>0){if(it instanceof s.BlockEmbed||U instanceof s.BlockEmbed){this.optimize();return}if(it instanceof f.default){var Q=it.newlineIndex(it.length(),!0);if(Q>-1&&(it=it.split(Q+1),it===U)){this.optimize();return}}else if(U instanceof f.default){var X=U.newlineIndex(0);X>-1&&U.split(X+1)}var lt=U.children.head instanceof o.default?null:U.children.head;it.moveChildren(U,lt),it.remove()}this.optimize()}},{key:"enable",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",B)}},{key:"formatAt",value:function(B,G,j,rt){this.whitelist!=null&&!this.whitelist[j]||(a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,B,G,j,rt),this.optimize())}},{key:"insertAt",value:function(B,G,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[G])){if(B>=this.length())if(j==null||v.default.query(G,v.default.Scope.BLOCK)==null){var rt=v.default.create(this.statics.defaultChild);this.appendChild(rt),j==null&&G.endsWith(`
110`)&&(G=G.slice(0,-1)),rt.insertAt(0,G,j)}else{var it=v.default.create(G,j);this.appendChild(it)}else a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertAt",this).call(this,B,G,j);this.optimize()}}},{key:"insertBefore",value:function(B,G){if(B.statics.scope===v.default.Scope.INLINE_BLOT){var j=v.default.create(this.statics.defaultChild);j.appendChild(B),B=j}a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"insertBefore",this).call(this,B,G)}},{key:"leaf",value:function(B){return this.path(B).pop()||[null,-1]}},{key:"line",value:function(B){return B===this.length()?this.line(B-1):this.descendant(S,B)}},{key:"lines",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function rt(it,Et,pt){var tt=[],U=pt;return it.children.forEachAt(Et,pt,function(Q,X,lt){S(Q)?tt.push(Q):Q instanceof v.default.Container&&(tt=tt.concat(rt(Q,X,U))),U-=lt}),tt};return j(this,B,G)}},{key:"optimize",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,B,G),B.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,B,G))}},{key:"path",value:function(B){return a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"path",this).call(this,B).slice(1)}},{key:"update",value:function(B){if(this.batch!==!0){var G=d.default.sources.USER;typeof B=="string"&&(G=B),Array.isArray(B)||(B=this.observer.takeRecords()),B.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,G,B),a(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"update",this).call(this,B.concat([])),B.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,G,B)}}}]),r})(v.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[n.default,s.BlockEmbed,u.default],b.default=I}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SHORTKEY=b.default=void 0;var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_=(function(){function V(at,wt){var mt=[],Rt=!0,Gt=!1,Xt=void 0;try{for(var W=at[Symbol.iterator](),z;!(Rt=(z=W.next()).done)&&(mt.push(z.value),!(wt&&mt.length===wt));Rt=!0);}catch(st){Gt=!0,Xt=st}finally{try{!Rt&&W.return&&W.return()}finally{if(Gt)throw Xt}}return mt}return function(at,wt){if(Array.isArray(at))return at;if(Symbol.iterator in Object(at))return V(at,wt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function V(at,wt){for(var mt=0;mt<wt.length;mt++){var Rt=wt[mt];Rt.enumerable=Rt.enumerable||!1,Rt.configurable=!0,"value"in Rt&&(Rt.writable=!0),Object.defineProperty(at,Rt.key,Rt)}}return function(at,wt,mt){return wt&&V(at.prototype,wt),mt&&V(at,mt),at}})(),g=T(21),v=R(g),c=T(11),d=R(c),s=T(3),n=R(s),i=T(2),o=R(i),y=T(20),f=R(y),e=T(0),u=R(e),h=T(5),m=R(h),w=T(10),A=R(w),S=T(9),I=R(S);function R(V){return V&&V.__esModule?V:{default:V}}function r(V,at,wt){return at in V?Object.defineProperty(V,at,{value:wt,enumerable:!0,configurable:!0,writable:!0}):V[at]=wt,V}function D(V,at){if(!(V instanceof at))throw new TypeError("Cannot call a class as a function")}function B(V,at){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return at&&(typeof at=="object"||typeof at=="function")?at:V}function G(V,at){if(typeof at!="function"&&at!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof at);V.prototype=Object.create(at&&at.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),at&&(Object.setPrototypeOf?Object.setPrototypeOf(V,at):V.__proto__=at)}var j=(0,A.default)("quill:keyboard"),rt=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",it=(function(V){G(at,V),a(at,null,[{key:"match",value:function(mt,Rt){return Rt=ot(Rt),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Gt){return!!Rt[Gt]!==mt[Gt]&&Rt[Gt]!==null})?!1:Rt.key===(mt.which||mt.keyCode)}}]);function at(wt,mt){D(this,at);var Rt=B(this,(at.__proto__||Object.getPrototypeOf(at)).call(this,wt,mt));return Rt.bindings={},Object.keys(Rt.options.bindings).forEach(function(Gt){Gt==="list autofill"&&wt.scroll.whitelist!=null&&!wt.scroll.whitelist.list||Rt.options.bindings[Gt]&&Rt.addBinding(Rt.options.bindings[Gt])}),Rt.addBinding({key:at.keys.ENTER,shiftKey:null},Q),Rt.addBinding({key:at.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Rt.addBinding({key:at.keys.BACKSPACE},{collapsed:!0},pt),Rt.addBinding({key:at.keys.DELETE},{collapsed:!0},tt)):(Rt.addBinding({key:at.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},pt),Rt.addBinding({key:at.keys.DELETE},{collapsed:!0,suffix:/^.?$/},tt)),Rt.addBinding({key:at.keys.BACKSPACE},{collapsed:!1},U),Rt.addBinding({key:at.keys.DELETE},{collapsed:!1},U),Rt.addBinding({key:at.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},pt),Rt.listen(),Rt}return a(at,[{key:"addBinding",value:function(mt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=ot(mt);if(Xt==null||Xt.key==null)return j.warn("Attempted to add invalid keyboard binding",Xt);typeof Rt=="function"&&(Rt={handler:Rt}),typeof Gt=="function"&&(Gt={handler:Gt}),Xt=(0,n.default)(Xt,Rt,Gt),this.bindings[Xt.key]=this.bindings[Xt.key]||[],this.bindings[Xt.key].push(Xt)}},{key:"listen",value:function(){var mt=this;this.quill.root.addEventListener("keydown",function(Rt){if(!Rt.defaultPrevented){var Gt=Rt.which||Rt.keyCode,Xt=(mt.bindings[Gt]||[]).filter(function(yt){return at.match(Rt,yt)});if(Xt.length!==0){var W=mt.quill.getSelection();if(!(W==null||!mt.quill.hasFocus())){var z=mt.quill.getLine(W.index),st=_(z,2),dt=st[0],Z=st[1],k=mt.quill.getLeaf(W.index),q=_(k,2),J=q[0],ut=q[1],F=W.length===0?[J,ut]:mt.quill.getLeaf(W.index+W.length),K=_(F,2),et=K[0],ct=K[1],Tt=J instanceof u.default.Text?J.value().slice(0,ut):"",_t=et instanceof u.default.Text?et.value().slice(ct):"",kt={collapsed:W.length===0,empty:W.length===0&&dt.length()<=1,format:mt.quill.getFormat(W),offset:Z,prefix:Tt,suffix:_t},bt=Xt.some(function(yt){if(yt.collapsed!=null&&yt.collapsed!==kt.collapsed||yt.empty!=null&&yt.empty!==kt.empty||yt.offset!=null&&yt.offset!==kt.offset)return!1;if(Array.isArray(yt.format)){if(yt.format.every(function(Mt){return kt.format[Mt]==null}))return!1}else if(x(yt.format)==="object"&&!Object.keys(yt.format).every(function(Mt){return yt.format[Mt]===!0?kt.format[Mt]!=null:yt.format[Mt]===!1?kt.format[Mt]==null:(0,d.default)(yt.format[Mt],kt.format[Mt])}))return!1;return yt.prefix!=null&&!yt.prefix.test(kt.prefix)||yt.suffix!=null&&!yt.suffix.test(kt.suffix)?!1:yt.handler.call(mt,W,kt)!==!0});bt&&Rt.preventDefault()}}}})}}]),at})(I.default);it.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},it.DEFAULTS={bindings:{bold:lt("bold"),italic:lt("italic"),underline:lt("underline"),indent:{key:it.keys.TAB,format:["blockquote","indent","list"],handler:function(at,wt){if(wt.collapsed&&wt.offset!==0)return!0;this.quill.format("indent","+1",m.default.sources.USER)}},outdent:{key:it.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(at,wt){if(wt.collapsed&&wt.offset!==0)return!0;this.quill.format("indent","-1",m.default.sources.USER)}},"outdent backspace":{key:it.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(at,wt){wt.format.indent!=null?this.quill.format("indent","-1",m.default.sources.USER):wt.format.list!=null&&this.quill.format("list",!1,m.default.sources.USER)}},"indent code-block":X(!0),"outdent code-block":X(!1),"remove tab":{key:it.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(at){this.quill.deleteText(at.index-1,1,m.default.sources.USER)}},tab:{key:it.keys.TAB,handler:function(at){this.quill.history.cutoff();var wt=new o.default().retain(at.index).delete(at.length).insert("	");this.quill.updateContents(wt,m.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(at.index+1,m.default.sources.SILENT)}},"list empty enter":{key:it.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(at,wt){this.quill.format("list",!1,m.default.sources.USER),wt.format.indent&&this.quill.format("indent",!1,m.default.sources.USER)}},"checklist enter":{key:it.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(at){var wt=this.quill.getLine(at.index),mt=_(wt,2),Rt=mt[0],Gt=mt[1],Xt=(0,n.default)({},Rt.formats(),{list:"checked"}),W=new o.default().retain(at.index).insert(`
111`,Xt).retain(Rt.length()-Gt-1).retain(1,{list:"unchecked"});this.quill.updateContents(W,m.default.sources.USER),this.quill.setSelection(at.index+1,m.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:it.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(at,wt){var mt=this.quill.getLine(at.index),Rt=_(mt,2),Gt=Rt[0],Xt=Rt[1],W=new o.default().retain(at.index).insert(`
112`,wt.format).retain(Gt.length()-Xt-1).retain(1,{header:null});this.quill.updateContents(W,m.default.sources.USER),this.quill.setSelection(at.index+1,m.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(at,wt){var mt=wt.prefix.length,Rt=this.quill.getLine(at.index),Gt=_(Rt,2),Xt=Gt[0],W=Gt[1];if(W>mt)return!0;var z=void 0;switch(wt.prefix.trim()){case"[]":case"[ ]":z="unchecked";break;case"[x]":z="checked";break;case"-":case"*":z="bullet";break;default:z="ordered"}this.quill.insertText(at.index," ",m.default.sources.USER),this.quill.history.cutoff();var st=new o.default().retain(at.index-W).delete(mt+1).retain(Xt.length()-2-W).retain(1,{list:z});this.quill.updateContents(st,m.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(at.index-mt,m.default.sources.SILENT)}},"code exit":{key:it.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(at){var wt=this.quill.getLine(at.index),mt=_(wt,2),Rt=mt[0],Gt=mt[1],Xt=new o.default().retain(at.index+Rt.length()-Gt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Xt,m.default.sources.USER)}},"embed left":Et(it.keys.LEFT,!1),"embed left shift":Et(it.keys.LEFT,!0),"embed right":Et(it.keys.RIGHT,!1),"embed right shift":Et(it.keys.RIGHT,!0)}};function Et(V,at){var wt,mt=V===it.keys.LEFT?"prefix":"suffix";return wt={key:V,shiftKey:at,altKey:null},r(wt,mt,/^$/),r(wt,"handler",function(Gt){var Xt=Gt.index;V===it.keys.RIGHT&&(Xt+=Gt.length+1);var W=this.quill.getLeaf(Xt),z=_(W,1),st=z[0];return st instanceof u.default.Embed?(V===it.keys.LEFT?at?this.quill.setSelection(Gt.index-1,Gt.length+1,m.default.sources.USER):this.quill.setSelection(Gt.index-1,m.default.sources.USER):at?this.quill.setSelection(Gt.index,Gt.length+1,m.default.sources.USER):this.quill.setSelection(Gt.index+Gt.length+1,m.default.sources.USER),!1):!0}),wt}function pt(V,at){if(!(V.index===0||this.quill.getLength()<=1)){var wt=this.quill.getLine(V.index),mt=_(wt,1),Rt=mt[0],Gt={};if(at.offset===0){var Xt=this.quill.getLine(V.index-1),W=_(Xt,1),z=W[0];if(z!=null&&z.length()>1){var st=Rt.formats(),dt=this.quill.getFormat(V.index-1,1);Gt=f.default.attributes.diff(st,dt)||{}}}var Z=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(at.prefix)?2:1;this.quill.deleteText(V.index-Z,Z,m.default.sources.USER),Object.keys(Gt).length>0&&this.quill.formatLine(V.index-Z,Z,Gt,m.default.sources.USER),this.quill.focus()}}function tt(V,at){var wt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(at.suffix)?2:1;if(!(V.index>=this.quill.getLength()-wt)){var mt={},Rt=0,Gt=this.quill.getLine(V.index),Xt=_(Gt,1),W=Xt[0];if(at.offset>=W.length()-1){var z=this.quill.getLine(V.index+1),st=_(z,1),dt=st[0];if(dt){var Z=W.formats(),k=this.quill.getFormat(V.index,1);mt=f.default.attributes.diff(Z,k)||{},Rt=dt.length()}}this.quill.deleteText(V.index,wt,m.default.sources.USER),Object.keys(mt).length>0&&this.quill.formatLine(V.index+Rt-1,wt,mt,m.default.sources.USER)}}function U(V){var at=this.quill.getLines(V),wt={};if(at.length>1){var mt=at[0].formats(),Rt=at[at.length-1].formats();wt=f.default.attributes.diff(Rt,mt)||{}}this.quill.deleteText(V,m.default.sources.USER),Object.keys(wt).length>0&&this.quill.formatLine(V.index,1,wt,m.default.sources.USER),this.quill.setSelection(V.index,m.default.sources.SILENT),this.quill.focus()}function Q(V,at){var wt=this;V.length>0&&this.quill.scroll.deleteAt(V.index,V.length);var mt=Object.keys(at.format).reduce(function(Rt,Gt){return u.default.query(Gt,u.default.Scope.BLOCK)&&!Array.isArray(at.format[Gt])&&(Rt[Gt]=at.format[Gt]),Rt},{});this.quill.insertText(V.index,`
113`,mt,m.default.sources.USER),this.quill.setSelection(V.index+1,m.default.sources.SILENT),this.quill.focus(),Object.keys(at.format).forEach(function(Rt){mt[Rt]==null&&(Array.isArray(at.format[Rt])||Rt!=="link"&&wt.quill.format(Rt,at.format[Rt],m.default.sources.USER))})}function X(V){return{key:it.keys.TAB,shiftKey:!V,format:{"code-block":!0},handler:function(wt){var mt=u.default.query("code-block"),Rt=wt.index,Gt=wt.length,Xt=this.quill.scroll.descendant(mt,Rt),W=_(Xt,2),z=W[0],st=W[1];if(z!=null){var dt=this.quill.getIndex(z),Z=z.newlineIndex(st,!0)+1,k=z.newlineIndex(dt+st+Gt),q=z.domNode.textContent.slice(Z,k).split(`
114`);st=0,q.forEach(function(J,ut){V?(z.insertAt(Z+st,mt.TAB),st+=mt.TAB.length,ut===0?Rt+=mt.TAB.length:Gt+=mt.TAB.length):J.startsWith(mt.TAB)&&(z.deleteAt(Z+st,mt.TAB.length),st-=mt.TAB.length,ut===0?Rt-=mt.TAB.length:Gt-=mt.TAB.length),st+=J.length+1}),this.quill.update(m.default.sources.USER),this.quill.setSelection(Rt,Gt,m.default.sources.SILENT)}}}}function lt(V){return{key:V[0].toUpperCase(),shortKey:!0,handler:function(wt,mt){this.quill.format(V,!mt.format[V],m.default.sources.USER)}}}function ot(V){if(typeof V=="string"||typeof V=="number")return ot({key:V});if((typeof V>"u"?"undefined":x(V))==="object"&&(V=(0,v.default)(V,!1)),typeof V.key=="string")if(it.keys[V.key.toUpperCase()]!=null)V.key=it.keys[V.key.toUpperCase()];else if(V.key.length===1)V.key=V.key.toUpperCase().charCodeAt(0);else return null;return V.shortKey&&(V[rt]=V.shortKey,delete V.shortKey),V}b.default=it,b.SHORTKEY=rt}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function f(e,u){var h=[],m=!0,w=!1,A=void 0;try{for(var S=e[Symbol.iterator](),I;!(m=(I=S.next()).done)&&(h.push(I.value),!(u&&h.length===u));m=!0);}catch(R){w=!0,A=R}finally{try{!m&&S.return&&S.return()}finally{if(w)throw A}}return h}return function(e,u){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return f(e,u);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=function f(e,u,h){e===null&&(e=Function.prototype);var m=Object.getOwnPropertyDescriptor(e,u);if(m===void 0){var w=Object.getPrototypeOf(e);return w===null?void 0:f(w,u,h)}else{if("value"in m)return m.value;var A=m.get;return A===void 0?void 0:A.call(h)}},a=(function(){function f(e,u){for(var h=0;h<u.length;h++){var m=u[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,m.key,m)}}return function(e,u,h){return u&&f(e.prototype,u),h&&f(e,h),e}})(),g=T(0),v=s(g),c=T(7),d=s(c);function s(f){return f&&f.__esModule?f:{default:f}}function n(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function")}function i(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:f}function o(f,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}var y=(function(f){o(e,f),a(e,null,[{key:"value",value:function(){}}]);function e(u,h){n(this,e);var m=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,u));return m.selection=h,m.textNode=document.createTextNode(e.CONTENTS),m.domNode.appendChild(m.textNode),m._length=0,m}return a(e,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(h,m){if(this._length!==0)return _(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,h,m);for(var w=this,A=0;w!=null&&w.statics.scope!==v.default.Scope.BLOCK_BLOT;)A+=w.offset(w.parent),w=w.parent;w!=null&&(this._length=e.CONTENTS.length,w.optimize(),w.formatAt(A,e.CONTENTS.length,h,m),this._length=0)}},{key:"index",value:function(h,m){return h===this.textNode?0:_(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,h,m)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){_(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var h=this.textNode,m=this.selection.getNativeRange(),w=void 0,A=void 0,S=void 0;if(m!=null&&m.start.node===h&&m.end.node===h){var I=[h,m.start.offset,m.end.offset];w=I[0],A=I[1],S=I[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);
114if(this.textNode.data!==e.CONTENTS){var R=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof d.default?(w=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=e.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var r=[A,S].map(function(B){return Math.max(0,Math.min(w.data.length,B-1))}),D=x(r,2);return A=D[0],S=D[1],{startNode:w,startOffset:A,endNode:w,endOffset:S}}}}},{key:"update",value:function(h,m){var w=this;if(h.some(function(S){return S.type==="characterData"&&S.target===w.textNode})){var A=this.restore();A&&(m.range=A)}}},{key:"value",value:function(){return""}}]),e})(v.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",b.default=y}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(0),_=v(x),a=T(4),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(){return c(this,o),d(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o})(_.default.Container);n.allowedChildren=[g.default,a.BlockEmbed,n],b.default=n}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ColorStyle=b.ColorClass=b.ColorAttributor=void 0;var x=(function(){function y(f,e){for(var u=0;u<e.length;u++){var h=e[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,e,u){return e&&y(f.prototype,e),u&&y(f,u),f}})(),_=function y(f,e,u){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(h===void 0){var m=Object.getPrototypeOf(f);return m===null?void 0:y(m,e,u)}else{if("value"in h)return h.value;var w=h.get;return w===void 0?void 0:w.call(u)}},a=T(0),g=v(a);function v(y){return y&&y.__esModule?y:{default:y}}function c(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function d(y,f){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:y}function s(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}var n=(function(y){s(f,y);function f(){return c(this,f),d(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return x(f,[{key:"value",value:function(u){var h=_(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,u);return h.startsWith("rgb(")?(h=h.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+h.split(",").map(function(m){return("00"+parseInt(m).toString(16)).slice(-2)}).join("")):h}}]),f})(g.default.Attributor.Style),i=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),o=new n("color","color",{scope:g.default.Scope.INLINE});b.ColorAttributor=n,b.ColorClass=i,b.ColorStyle=o}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.sanitize=b.default=void 0;var x=(function(){function o(y,f){for(var e=0;e<f.length;e++){var u=f[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(y,u.key,u)}}return function(y,f,e){return f&&o(y.prototype,f),e&&o(y,e),y}})(),_=function o(y,f,e){y===null&&(y=Function.prototype);var u=Object.getOwnPropertyDescriptor(y,f);if(u===void 0){var h=Object.getPrototypeOf(y);return h===null?void 0:o(h,f,e)}else{if("value"in u)return u.value;var m=u.get;return m===void 0?void 0:m.call(e)}},a=T(6),g=v(a);function v(o){return o&&o.__esModule?o:{default:o}}function c(o,y){if(!(o instanceof y))throw new TypeError("Cannot call a class as a function")}function d(o,y){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:o}function s(o,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);o.prototype=Object.create(y&&y.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(o,y):o.__proto__=y)}var n=(function(o){s(y,o);function y(){return c(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return x(y,[{key:"format",value:function(e,u){if(e!==this.statics.blotName||!u)return _(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,e,u);u=this.constructor.sanitize(u),this.domNode.setAttribute("href",u)}}],[{key:"create",value:function(e){var u=_(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,e);return e=this.sanitize(e),u.setAttribute("href",e),u.setAttribute("rel","noopener noreferrer"),u.setAttribute("target","_blank"),u}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return i(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),y})(g.default);
114n.blotName="link",n.tagName="A",n.SANITIZED_URL="about:blank",n.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function i(o,y){var f=document.createElement("a");f.href=o;var e=f.href.slice(0,f.href.indexOf(":"));return y.indexOf(e)>-1}b.default=n,b.sanitize=i}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},_=(function(){function y(f,e){for(var u=0;u<e.length;u++){var h=e[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,e,u){return e&&y(f.prototype,e),u&&y(f,u),f}})(),a=T(23),g=d(a),v=T(107),c=d(v);function d(y){return y&&y.__esModule?y:{default:y}}function s(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}var n=0;function i(y,f){y.setAttribute(f,y.getAttribute(f)!=="true")}var o=(function(){function y(f){var e=this;s(this,y),this.select=f,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){e.togglePicker()}),this.label.addEventListener("keydown",function(u){switch(u.keyCode){case g.default.keys.ENTER:e.togglePicker();break;case g.default.keys.ESCAPE:e.escape(),u.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return _(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),i(this.label,"aria-expanded"),i(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var u=this,h=document.createElement("span");return h.tabIndex="0",h.setAttribute("role","button"),h.classList.add("ql-picker-item"),e.hasAttribute("value")&&h.setAttribute("data-value",e.getAttribute("value")),e.textContent&&h.setAttribute("data-label",e.textContent),h.addEventListener("click",function(){u.selectItem(h,!0)}),h.addEventListener("keydown",function(m){switch(m.keyCode){case g.default.keys.ENTER:u.selectItem(h,!0),m.preventDefault();break;case g.default.keys.ESCAPE:u.escape(),m.preventDefault();break;default:}}),h}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=c.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,u=document.createElement("span");u.classList.add("ql-picker-options"),u.setAttribute("aria-hidden","true"),u.tabIndex="-1",u.id="ql-picker-options-"+n,n+=1,this.label.setAttribute("aria-controls",u.id),this.options=u,[].slice.call(this.select.options).forEach(function(h){var m=e.buildItem(h);u.appendChild(m),h.selected===!0&&e.selectItem(m)}),this.container.appendChild(u)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(u){e.container.setAttribute(u.name,u.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=this.container.querySelector(".ql-selected");if(e!==h&&(h?.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),u))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":x(Event))==="object"){var m=document.createEvent("Event");m.initEvent("change",!0,!0),this.select.dispatchEvent(m)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var u=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(u)}else this.selectItem(null);var h=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",h)}}]),y})();b.default=o}),(function(P,b,T){"use strict";
vendor: 4,093 bytes, line 114
114Object.defineProperty(b,"__esModule",{value:!0});var x=T(0),_=j(x),a=T(5),g=j(a),v=T(4),c=j(v),d=T(16),s=j(d),n=T(25),i=j(n),o=T(24),y=j(o),f=T(35),e=j(f),u=T(6),h=j(u),m=T(22),w=j(m),A=T(7),S=j(A),I=T(55),R=j(I),r=T(42),D=j(r),B=T(23),G=j(B);function j(rt){return rt&&rt.__esModule?rt:{default:rt}}g.default.register({"blots/block":c.default,"blots/block/embed":v.BlockEmbed,"blots/break":s.default,"blots/container":i.default,"blots/cursor":y.default,"blots/embed":e.default,"blots/inline":h.default,"blots/scroll":w.default,"blots/text":S.default,"modules/clipboard":R.default,"modules/history":D.default,"modules/keyboard":G.default}),_.default.register(c.default,s.default,y.default,h.default,w.default,S.default),b.default=g.default}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(1),_=(function(){function a(g){this.domNode=g,this.domNode[x.DATA_KEY]={blot:this}}return Object.defineProperty(a.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),a.create=function(g){if(this.tagName==null)throw new x.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?v=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?v=document.createElement(g):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},a.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},a.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return x.create(g)},a.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[x.DATA_KEY]},a.prototype.deleteAt=function(g,v){var c=this.isolate(g,v);c.remove()},a.prototype.formatAt=function(g,v,c,d){var s=this.isolate(g,v);if(x.query(c,x.Scope.BLOT)!=null&&d)s.wrap(c,d);else if(x.query(c,x.Scope.ATTRIBUTE)!=null){var n=x.create(this.statics.scope);s.wrap(n),n.format(c,d)}},a.prototype.insertAt=function(g,v,c){var d=c==null?x.create("text",v):x.create(v,c),s=this.split(g);this.parent.insertBefore(d,s)},a.prototype.insertInto=function(g,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var c=null;g.children.insertBefore(this,v),v!=null&&(c=v.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=c)&&g.domNode.insertBefore(this.domNode,c),this.parent=g,this.attach()},a.prototype.isolate=function(g,v){var c=this.split(g);return c.split(v),c},a.prototype.length=function(){return 1},a.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},a.prototype.optimize=function(g){this.domNode[x.DATA_KEY]!=null&&delete this.domNode[x.DATA_KEY].mutations},a.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},a.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},a.prototype.replaceWith=function(g,v){var c=typeof g=="string"?x.create(g,v):g;return c.replace(this),c},a.prototype.split=function(g,v){return g===0?this:this.next},a.prototype.update=function(g,v){},a.prototype.wrap=function(g,v){var c=typeof g=="string"?x.create(g,v):g;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},a.blotName="abstract",a})();b.default=_}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(12),_=T(32),a=T(33),g=T(1),v=(function(){function c(d){this.attributes={},this.domNode=d,this.build()}return c.prototype.attribute=function(d,s){s?d.add(this.domNode,s)&&(d.value(this.domNode)!=null?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},c.prototype.build=function(){var d=this;this.attributes={};var s=x.default.keys(this.domNode),n=_.default.keys(this.domNode),i=a.default.keys(this.domNode);
114s.concat(n).concat(i).forEach(function(o){var y=g.query(o,g.Scope.ATTRIBUTE);y instanceof x.default&&(d.attributes[y.attrName]=y)})},c.prototype.copy=function(d){var s=this;Object.keys(this.attributes).forEach(function(n){var i=s.attributes[n].value(s.domNode);d.format(n,i)})},c.prototype.move=function(d){var s=this;this.copy(d),Object.keys(this.attributes).forEach(function(n){s.attributes[n].remove(s.domNode)}),this.attributes={}},c.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(s,n){return s[n]=d.attributes[n].value(d.domNode),s},{})},c})();b.default=v}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var s in d)d.hasOwnProperty(s)&&(c[s]=d[s])};return function(c,d){v(c,d);function s(){this.constructor=c}c.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(12);function a(v,c){var d=v.getAttribute("class")||"";return d.split(/\s+/).filter(function(s){return s.indexOf(c+"-")===0})}var g=(function(v){x(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(s){return s.split("-").slice(0,-1).join("-")})},c.prototype.add=function(d,s){return this.canAdd(d,s)?(this.remove(d),d.classList.add(this.keyName+"-"+s),!0):!1},c.prototype.remove=function(d){var s=a(d,this.keyName);s.forEach(function(n){d.classList.remove(n)}),d.classList.length===0&&d.removeAttribute("class")},c.prototype.value=function(d){var s=a(d,this.keyName)[0]||"",n=s.slice(this.keyName.length+1);return this.canAdd(d,n)?n:""},c})(_.default);b.default=g}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var s in d)d.hasOwnProperty(s)&&(c[s]=d[s])};return function(c,d){v(c,d);function s(){this.constructor=c}c.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(12);function a(v){var c=v.split("-"),d=c.slice(1).map(function(s){return s[0].toUpperCase()+s.slice(1)}).join("");return c[0]+d}var g=(function(v){x(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(s){var n=s.split(":");return n[0].trim()})},c.prototype.add=function(d,s){return this.canAdd(d,s)?(d.style[a(this.keyName)]=s,!0):!1},c.prototype.remove=function(d){d.style[a(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},c.prototype.value=function(d){var s=d.style[a(this.keyName)];return this.canAdd(d,s)?s:""},c})(_.default);b.default=g}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function g(v,c){for(var d=0;d<c.length;d++){var s=c[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(v,s.key,s)}}return function(v,c,d){return c&&g(v.prototype,c),d&&g(v,d),v}})();function _(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}var a=(function(){function g(v,c){_(this,g),this.quill=v,this.options=c,this.modules={}}return x(g,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(d){c.modules[d]==null&&c.addModule(d)})}},{key:"addModule",value:function(c){var d=this.quill.constructor.import("modules/"+c);return this.modules[c]=new d(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),g})();a.DEFAULTS={modules:{}},a.themes={default:a},b.default=a}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function f(e,u){for(var h=0;h<u.length;h++){var m=u[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,m.key,m)}}return function(e,u,h){return u&&f(e.prototype,u),h&&f(e,h),e}})(),_=function f(e,u,h){e===null&&(e=Function.prototype);var m=Object.getOwnPropertyDescriptor(e,u);if(m===void 0){var w=Object.getPrototypeOf(e);return w===null?void 0:f(w,u,h)}else{if("value"in m)return m.value;var A=m.get;return A===void 0?void 0:A.call(h)}},a=T(0),g=d(a),v=T(7),c=d(v);function d(f){return f&&f.__esModule?f:{default:f}}function s(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function")}function n(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:f}function i(f,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}var o="\uFEFF",y=(function(f){i(e,f);function e(u){s(this,e);var h=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,u));return h.contentNode=document.createElement("span"),h.contentNode.setAttribute("contenteditable",!1),[].slice.call(h.domNo
114de.childNodes).forEach(function(m){h.contentNode.appendChild(m)}),h.leftGuard=document.createTextNode(o),h.rightGuard=document.createTextNode(o),h.domNode.appendChild(h.leftGuard),h.domNode.appendChild(h.contentNode),h.domNode.appendChild(h.rightGuard),h}return x(e,[{key:"index",value:function(h,m){return h===this.leftGuard?0:h===this.rightGuard?1:_(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,h,m)}},{key:"restore",value:function(h){var m=void 0,w=void 0,A=h.data.split(o).join("");if(h===this.leftGuard)if(this.prev instanceof c.default){var S=this.prev.length();this.prev.insertAt(S,A),m={startNode:this.prev.domNode,startOffset:S+A.length}}else w=document.createTextNode(A),this.parent.insertBefore(g.default.create(w),this),m={startNode:w,startOffset:A.length};else h===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,A),m={startNode:this.next.domNode,startOffset:A.length}):(w=document.createTextNode(A),this.parent.insertBefore(g.default.create(w),this.next),m={startNode:w,startOffset:A.length}));return h.data=o,m}},{key:"update",value:function(h,m){var w=this;h.forEach(function(A){if(A.type==="characterData"&&(A.target===w.leftGuard||A.target===w.rightGuard)){var S=w.restore(A.target);S&&(m.range=S)}})}}]),e})(g.default.Embed);b.default=y}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.AlignStyle=b.AlignClass=b.AlignAttribute=void 0;var x=T(0),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}var g={scope:_.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new _.default.Attributor.Attribute("align","align",g),c=new _.default.Attributor.Class("align","ql-align",g),d=new _.default.Attributor.Style("align","text-align",g);b.AlignAttribute=v,b.AlignClass=c,b.AlignStyle=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BackgroundStyle=b.BackgroundClass=void 0;var x=T(0),_=g(x),a=T(26);function g(d){return d&&d.__esModule?d:{default:d}}var v=new _.default.Attributor.Class("background","ql-bg",{scope:_.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:_.default.Scope.INLINE});b.BackgroundClass=v,b.BackgroundStyle=c}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DirectionStyle=b.DirectionClass=b.DirectionAttribute=void 0;var x=T(0),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}var g={scope:_.default.Scope.BLOCK,whitelist:["rtl"]},v=new _.default.Attributor.Attribute("direction","dir",g),c=new _.default.Attributor.Class("direction","ql-direction",g),d=new _.default.Attributor.Style("direction","direction",g);b.DirectionAttribute=v,b.DirectionClass=c,b.DirectionStyle=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.FontClass=b.FontStyle=void 0;var x=(function(){function f(e,u){for(var h=0;h<u.length;h++){var m=u[h];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(e,m.key,m)}}return function(e,u,h){return u&&f(e.prototype,u),h&&f(e,h),e}})(),_=function f(e,u,h){e===null&&(e=Function.prototype);var m=Object.getOwnPropertyDescriptor(e,u);if(m===void 0){var w=Object.getPrototypeOf(e);return w===null?void 0:f(w,u,h)}else{if("value"in m)return m.value;var A=m.get;return A===void 0?void 0:A.call(h)}},a=T(0),g=v(a);function v(f){return f&&f.__esModule?f:{default:f}}function c(f,e){if(!(f instanceof e))throw new TypeError("Cannot call a class as a function")}function d(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:f}function s(f,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}var n={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},i=new g.default.Attributor.Class("font","ql-font",n),o=(function(f){s(e,f);function e(){return c(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return x(e,[{key:"value",value:function(h){return _(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,h).replace(/["']/g,"")}}]),e})(g.default.Attributor.Style),y=new o("font","font-family",n);b.FontStyle=y,b.FontClass=i}),(function(P,b,T){"use strict";
vendor: 15,708 bytes, lines 114-115
114Object.defineProperty(b,"__esModule",{value:!0}),b.SizeStyle=b.SizeClass=void 0;var x=T(0),_=a(x);function a(c){return c&&c.__esModule?c:{default:c}}var g=new _.default.Attributor.Class("size","ql-size",{scope:_.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new _.default.Attributor.Style("size","font-size",{scope:_.default.Scope.INLINE,whitelist:["10px","18px","32px"]});b.SizeClass=g,b.SizeStyle=v}),(function(P,b,T){"use strict";P.exports={align:{"":T(76),center:T(77),right:T(78),justify:T(79)},background:T(80),blockquote:T(81),bold:T(82),clean:T(83),code:T(58),"code-block":T(58),color:T(84),direction:{"":T(85),rtl:T(86)},float:{center:T(87),full:T(88),left:T(89),right:T(90)},formula:T(91),header:{1:T(92),2:T(93)},italic:T(94),image:T(95),indent:{"+1":T(96),"-1":T(97)},link:T(98),list:{ordered:T(99),bullet:T(100),check:T(101)},script:{sub:T(102),super:T(103)},strike:T(104),underline:T(105),video:T(106)}}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getLastChangeIndex=b.default=void 0;var x=(function(){function u(h,m){for(var w=0;w<m.length;w++){var A=m[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(h,A.key,A)}}return function(h,m,w){return m&&u(h.prototype,m),w&&u(h,w),h}})(),_=T(0),a=s(_),g=T(5),v=s(g),c=T(9),d=s(c);function s(u){return u&&u.__esModule?u:{default:u}}function n(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function i(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function o(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var y=(function(u){o(h,u);function h(m,w){n(this,h);var A=i(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,m,w));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(v.default.events.EDITOR_CHANGE,function(S,I,R,r){S!==v.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||r===v.default.sources.USER?A.record(I,R):A.transform(I))}),A.quill.keyboard.addBinding({key:"Z",shortKey:!0},A.undo.bind(A)),A.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},A.redo.bind(A)),/Win/i.test(navigator.platform)&&A.quill.keyboard.addBinding({key:"Y",shortKey:!0},A.redo.bind(A)),A}return x(h,[{key:"change",value:function(w,A){if(this.stack[w].length!==0){var S=this.stack[w].pop();this.stack[A].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[w],v.default.sources.USER),this.ignoreChange=!1;var I=e(S[w]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,A){if(w.ops.length!==0){this.stack.redo=[];var S=this.quill.getContents().diff(A),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var R=this.stack.undo.pop();S=S.compose(R.undo),w=R.redo.compose(w)}else this.lastRecorded=I;this.stack.undo.push({redo:w,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(A){A.undo=w.transform(A.undo,!0),A.redo=w.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=w.transform(A.undo,!0),A.redo=w.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),h})(d.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function f(u){var h=u.ops[u.ops.length-1];return h==null?!1:h.insert!=null?typeof h.insert=="string"&&h.insert.endsWith(`
115`):h.attributes!=null?Object.keys(h.attributes).some(function(m){return a.default.query(m,a.default.Scope.BLOCK)!=null}):!1}function e(u){var h=u.reduce(function(w,A){return w+=A.delete||0,w},0),m=u.length()-h;return f(u)&&(m-=1),m}b.default=y,b.getLastChangeIndex=e}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BaseTooltip=void 0;var x=(function(){function Q(X,lt){for(var ot=0;ot<lt.length;ot++){var V=lt[ot];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(X,V.key,V)}}return function(X,lt,ot){return lt&&Q(X.prototype,lt),ot&&Q(X,ot),X}})(),_=function Q(X,lt,ot){X===null&&(X=Function.prototype);var V=Object.getOwnPropertyDescriptor(X,lt);if(V===void 0){var at=Object.getPrototypeOf(X);return at===null?void 0:Q(at,lt,ot)}else{if("value"in V)return V.value;var wt=V.get;return wt===void 0?void 0:wt.call(ot)}},a=T(3),g=I(a),v=T(2),c=I(v),d=T(8),s=I(d),n=T(23),i=I(n),o=T(34),y=I(o),f=T(59),e=I(f),u=T(60),h=I(u),m=T(28),w=I(m),A=T(61),S=I(A);function I(Q){return Q&&Q.__esModule?Q:{default:Q}}function R(Q,X){if(!(Q instanceof X))throw new TypeError("Cannot call a class as a function")}function r(Q,X){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:Q}function D(Q,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);Q.prototype=Object.create(X&&X.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,X):Q.__proto__=X)}var B=[!1,"center","right","justify"],G=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],rt=["1","2","3",!1],it=["small",!1,"large","huge"],Et=(function(Q){D(X,Q);function X(lt,ot){R(this,X);var V=r(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,lt,ot)),at=function wt(mt){if(!document.body.contains(lt.root))return document.body.removeEventListener("click",wt);V.tooltip!=null&&!V.tooltip.root.contains(mt.target)&&document.activeElement!==V.tooltip.textbox&&!V.quill.hasFocus()&&V.tooltip.hide(),V.pickers!=null&&V.pickers.forEach(function(Rt){Rt.container.contains(mt.target)||Rt.close()})};return lt.emitter.listenDOM("click",document.body,at),V}return x(X,[{key:"addModule",value:function(ot){var V=_(X.prototype.__proto__||Object.getPrototypeOf(X.prototype),"addModule",this).call(this,ot);return ot==="toolbar"&&this.extendToolbar(V),V}},{key:"buildButtons",value:function(ot,V){ot.forEach(function(at){var wt=at.getAttribute("class")||"";wt.split(/\s+/).forEach(function(mt){if(mt.startsWith("ql-")&&(mt=mt.slice(3),V[mt]!=null))if(mt==="direction")at.innerHTML=V[mt][""]+V[mt].rtl;else if(typeof V[mt]=="string")at.innerHTML=V[mt];else{var Rt=at.value||"";Rt!=null&&V[mt][Rt]&&(at.innerHTML=V[mt][Rt])}})})}},{key:"buildPickers",value:function(ot,V){var at=this;this.pickers=ot.map(function(mt){if(mt.classList.contains("ql-align"))return mt.querySelector("option")==null&&U(mt,B),new h.default(mt,V.align);if(mt.classList.contains("ql-background")||mt.classList.contains("ql-color")){var Rt=mt.classList.contains("ql-background")?"background":"color";return mt.querySelector("option")==null&&U(mt,G,Rt==="background"?"#ffffff":"#000000"),new e.default(mt,V[Rt])}else return mt.querySelector("option")==null&&(mt.classList.contains("ql-font")?U(mt,j):mt.classList.contains("ql-header")?U(mt,rt):mt.classList.contains("ql-size")&&U(mt,it)),new w.default(mt)});var wt=function(){at.pickers.forEach(function(Rt){Rt.update()})};this.quill.on(s.default.events.EDITOR_CHANGE,wt)}}]),X})(y.default);Et.DEFAULTS=(0,g.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var X=this,lt=this.container.querySelector("input.ql-image[type=file]");lt==null&&(lt=document.createElement("input"),lt.setAttribute("type","file"),lt.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),lt.classList.add("ql-image"),lt.addEventListener("change",function(){if(lt.files!=null&&lt.files[0]!=null){var ot=new FileReader;ot.onload=function(V){var at=X.quill.getSelection(!0);X.quill.updateContents(new c.default().retain(at.index).delete(at.length).insert({image:V.target.result}),s.default.sources.USER),X.quill.setSelection(at.index+1,s.default.sources.SILENT),lt.value=""},ot.readAsDataURL(lt.files[0])}}),this.container.appendChild(lt)),lt.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var pt=(function(Q){D(X,Q);function X(lt,ot){R(this,X);var V=r(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,lt,ot));return V.textbox=V.root.querySelector('input[type="text"]'),V.listen(),V}return x(X,[{key:"listen",value:function(){var ot=this;this.textbox.addEventListener("keydown",function(V){i.default.match(V,"enter")?(ot.save(),V.preventDefault()):i.default.match(V,"escape")&&(ot.cancel(),V.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),V!=null?this.textbox.value=V:ot!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+ot)||""),this.root.setAttribute("data-mode",ot)}},{key:"restoreFocus",value:function(){var ot=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=ot}},{key:"save",value:function(){var ot=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var V=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",ot,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",ot,s.default.sources.USER)),this.quill.root.scrollTop=V;break}case"video":ot=tt(ot);case"formula":{if(!ot)break;var at=this.quill.getSelection(!0);if(at!=null){var wt=at.index+at.length;this.quill.insertEmbed(wt,this.root.getAttribute("data-mode"),ot,s.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(wt+1," ",s.default.sources.USER),this.quill.setSelection(wt+2,s.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),X})(S.default);function tt(Q){var X=Q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return X?(X[1]||"https")+"://www.youtube.com/embed/"+X[2]+"?showinfo=0":(X=Q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(X[1]||"https")+"://player.vimeo.com/video/"+X[2]+"/":Q}function U(Q,X){var lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;X.forEach(function(ot){var V=document.createElement("option");ot===lt?V.setAttribute("selected","selected"):V.setAttribute("value",ot),Q.appendChild(V)})}b.BaseTooltip=pt,b.default=Et}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function _(){this.head=this.tail=null,this.length=0}return _.prototype.append=function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];this.insertBefore(a[0],null),a.length>1&&this.append.apply(this,a.slice(1))},_.prototype.contains=function(a){for(var g,v=this.iterator();g=v();)if(g===a)return!0;return!1},_.prototype.insertBefore=function(a,g){a&&(a.next=g,g!=null?(a.prev=g.prev,g.prev!=null&&(g.prev.next=a),g.prev=a,g===this.head&&(this.head=a)):this.tail!=null?(this.tail.next=a,a.prev=this.tail,this.tail=a):(a.prev=null,this.head=this.tail=a),this.length+=1)},_.prototype.offset=function(a){for(var g=0,v=this.head;v!=null;){if(v===a)return g;g+=v.length(),v=v.next}return-1},_.prototype.remove=function(a){this.contains(a)&&(a.prev!=null&&(a.prev.next=a.next),a.next!=null&&(a.next.prev=a.prev),a===this.head&&(this.head=a.next),a===this.tail&&(this.tail=a.prev),this.length-=1)},_.prototype.iterator=function(a){return a===void 0&&(a=this.head),function(){var g=a;return a!=null&&(a=a.next),g}},_.prototype.find=function(a,g){g===void 0&&(g=!1);for(var v,c=this.iterator();v=c();){var d=v.length();if(a<d||g&&a===d&&(v.next==null||v.next.length()!==0))return[v,a];a-=d}return[null,0]},_.prototype.forEach=function(a){for(var g,v=this.iterator();g=v();)a(g)},_.prototype.forEachAt=function(a,g,v){if(!(g<=0))for(var c=this.find(a),d=c[0],s=c[1],n,i=a-s,o=this.iterator(d);(n=o())&&i<a+g;){var y=n.length();a>i?v(n,a-i,Math.min(g,i+y-a)):v(n,0,Math.min(y,a+g-i)),i+=y}},_.prototype.map=function(a){return this.reduce(function(g,v){return g.push(a(v)),g},[])},_.prototype.reduce=function(a,g){for(var v,c=this.iterator();v=c();)g=a(g,v);return g},_})();b.default=x}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,n){s.__proto__=n}||function(s,n){for(var i in n)n.hasOwnProperty(i)&&(s[i]=n[i])};return function(s,n){d(s,n);function i(){this.constructor=s}s.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(17),a=T(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,c=(function(d){x(s,d);function s(n){var i=d.call(this,n)||this;return i.scroll=i,i.observer=new MutationObserver(function(o){i.update(o)}),i.observer.observe(i.domNode,g),i.attach(),i}return s.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},s.prototype.deleteAt=function(n,i){this.update(),n===0&&i===this.length()?this.children.forEach(function(o){o.remove()}):d.prototype.deleteAt.call(this,n,i)},s.prototype.formatAt=function(n,i,o,y){this.update(),d.prototype.formatAt.call(this,n,i,o,y)},s.prototype.insertAt=function(n,i,o){this.update(),d.prototype.insertAt.call(this,n,i,o)},s.prototype.optimize=function(n,i){var o=this;n===void 0&&(n=[]),i===void 0&&(i={}),d.prototype.optimize.call(this,i);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)n.push(y.pop());for(var f=function(m,w){w===void 0&&(w=!0),!(m==null||m===o)&&m.domNode.parentNode!=null&&(m.domNode[a.DATA_KEY].mutations==null&&(m.domNode[a.DATA_KEY].mutations=[]),w&&f(m.parent))},e=function(m){m.domNode[a.DATA_KEY]==null||m.domNode[a.DATA_KEY].mutations==null||(m instanceof _.default&&m.children.forEach(e),m.optimize(i))},u=n,h=0;u.length>0;h+=1){if(h>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(m){var w=a.find(m.target,!0);w!=null&&(w.domNode===m.target&&(m.type==="childList"?(f(a.find(m.previousSibling,!1)),[].forEach.call(m.addedNodes,function(A){var S=a.find(A,!1);f(S,!1),S instanceof _.default&&S.children.forEach(function(I){f(I,!1)})})):m.type==="attributes"&&f(w.prev)),f(w))}),this.children.forEach(e),u=[].slice.call(this.observer.takeRecords()),y=u.slice();y.length>0;)n.push(y.pop())}},s.prototype.update=function(n,i){var o=this;i===void 0&&(i={}),n=n||this.observer.takeRecords(),n.map(function(y){var f=a.find(y.target,!0);return f==null?null:f.domNode[a.DATA_KEY].mutations==null?(f.domNode[a.DATA_KEY].mutations=[y],f):(f.domNode[a.DATA_KEY].mutations.push(y),null)}
115).forEach(function(y){y==null||y===o||y.domNode[a.DATA_KEY]==null||y.update(y.domNode[a.DATA_KEY].mutations||[],i)}),this.domNode[a.DATA_KEY].mutations!=null&&d.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,i),this.optimize(n,i)},s.blotName="scroll",s.defaultChild="block",s.scope=a.Scope.BLOCK_BLOT,s.tagName="DIV",s})(_.default);b.default=c}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,s){d.__proto__=s}||function(d,s){for(var n in s)s.hasOwnProperty(n)&&(d[n]=s[n])};return function(d,s){c(d,s);function n(){this.constructor=d}d.prototype=s===null?Object.create(s):(n.prototype=s.prototype,new n)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(18),a=T(1);function g(c,d){if(Object.keys(c).length!==Object.keys(d).length)return!1;for(var s in c)if(c[s]!==d[s])return!1;return!0}var v=(function(c){x(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(s){if(s.tagName!==d.tagName)return c.formats.call(this,s)},d.prototype.format=function(s,n){var i=this;s===this.statics.blotName&&!n?(this.children.forEach(function(o){o instanceof _.default||(o=o.wrap(d.blotName,!0)),i.attributes.copy(o)}),this.unwrap()):c.prototype.format.call(this,s,n)},d.prototype.formatAt=function(s,n,i,o){if(this.formats()[i]!=null||a.query(i,a.Scope.ATTRIBUTE)){var y=this.isolate(s,n);y.format(i,o)}else c.prototype.formatAt.call(this,s,n,i,o)},d.prototype.optimize=function(s){c.prototype.optimize.call(this,s);var n=this.formats();if(Object.keys(n).length===0)return this.unwrap();var i=this.next;i instanceof d&&i.prev===this&&g(n,i.formats())&&(i.moveChildren(this),i.remove())},d.blotName="inline",d.scope=a.Scope.INLINE_BLOT,d.tagName="SPAN",d})(_.default);b.default=v}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var s in d)d.hasOwnProperty(s)&&(c[s]=d[s])};return function(c,d){v(c,d);function s(){this.constructor=c}c.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(18),a=T(1),g=(function(v){x(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.formats=function(d){var s=a.query(c.blotName).tagName;if(d.tagName!==s)return v.formats.call(this,d)},c.prototype.format=function(d,s){a.query(d,a.Scope.BLOCK)!=null&&(d===this.statics.blotName&&!s?this.replaceWith(c.blotName):v.prototype.format.call(this,d,s))},c.prototype.formatAt=function(d,s,n,i){a.query(n,a.Scope.BLOCK)!=null?this.format(n,i):v.prototype.formatAt.call(this,d,s,n,i)},c.prototype.insertAt=function(d,s,n){if(n==null||a.query(s,a.Scope.INLINE)!=null)v.prototype.insertAt.call(this,d,s,n);else{var i=this.split(d),o=a.create(s,n);i.parent.insertBefore(o,i)}},c.prototype.update=function(d,s){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,d,s)},c.blotName="block",c.scope=a.Scope.BLOCK_BLOT,c.tagName="P",c})(_.default);b.default=g}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,c){v.__proto__=c}||function(v,c){for(var d in c)c.hasOwnProperty(d)&&(v[d]=c[d])};return function(v,c){g(v,c);function d(){this.constructor=v}v.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(19),a=(function(g){x(v,g);function v(){return g!==null&&g.apply(this,arguments)||this}return v.formats=function(c){},v.prototype.format=function(c,d){g.prototype.formatAt.call(this,0,this.length(),c,d)},v.prototype.formatAt=function(c,d,s,n){c===0&&d===this.length()?this.format(s,n):g.prototype.formatAt.call(this,c,d,s,n)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v})(_.default);b.default=a}),(function(P,b,T){"use strict";var x=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var s in d)d.hasOwnProperty(s)&&(c[s]=d[s])};return function(c,d){v(c,d);function s(){this.constructor=c}
vendor: 19,989 bytes, lines 115-124
115c.prototype=d===null?Object.create(d):(s.prototype=d.prototype,new s)}})();Object.defineProperty(b,"__esModule",{value:!0});var _=T(19),a=T(1),g=(function(v){x(c,v);function c(d){var s=v.call(this,d)||this;return s.text=s.statics.value(s.domNode),s}return c.create=function(d){return document.createTextNode(d)},c.value=function(d){var s=d.data;return s.normalize&&(s=s.normalize()),s},c.prototype.deleteAt=function(d,s){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+s)},c.prototype.index=function(d,s){return this.domNode===d?s:-1},c.prototype.insertAt=function(d,s,n){n==null?(this.text=this.text.slice(0,d)+s+this.text.slice(d),this.domNode.data=this.text):v.prototype.insertAt.call(this,d,s,n)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(d){v.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(d,s){return s===void 0&&(s=!1),[this.domNode,d]},c.prototype.split=function(d,s){if(s===void 0&&(s=!1),!s){if(d===0)return this;if(d===this.length())return this.next}var n=a.create(this.domNode.splitText(d));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},c.prototype.update=function(d,s){var n=this;d.some(function(i){return i.type==="characterData"&&i.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=a.Scope.INLINE_BLOT,c})(_.default);b.default=g}),(function(P,b,T){"use strict";var x=document.createElement("div");if(x.classList.toggle("test-class",!1),x.classList.contains("test-class")){var _=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(a,g){return arguments.length>1&&!this.contains(a)==!g?g:_.call(this,a)}}String.prototype.startsWith||(String.prototype.startsWith=function(a,g){return g=g||0,this.substr(g,a.length)===a}),String.prototype.endsWith||(String.prototype.endsWith=function(a,g){var v=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>v.length)&&(g=v.length),g-=a.length;var c=v.indexOf(a,g);return c!==-1&&c===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),c=v.length>>>0,d=arguments[1],s,n=0;n<c;n++)if(s=v[n],g.call(d,s,n,v))return s}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(P,b){var T=-1,x=1,_=0;function a(h,m,w){if(h==m)return h?[[_,h]]:[];(w<0||h.length<w)&&(w=null);var A=d(h,m),S=h.substring(0,A);h=h.substring(A),m=m.substring(A),A=s(h,m);var I=h.substring(h.length-A);h=h.substring(0,h.length-A),m=m.substring(0,m.length-A);var R=g(h,m);return S&&R.unshift([_,S]),I&&R.push([_,I]),i(R),w!=null&&(R=f(R,w)),R=e(R),R}function g(h,m){var w;if(!h)return[[x,m]];if(!m)return[[T,h]];var A=h.length>m.length?h:m,S=h.length>m.length?m:h,I=A.indexOf(S);if(I!=-1)return w=[[x,A.substring(0,I)],[_,S],[x,A.substring(I+S.length)]],h.length>m.length&&(w[0][0]=w[2][0]=T),w;if(S.length==1)return[[T,h],[x,m]];var R=n(h,m);if(R){var r=R[0],D=R[1],B=R[2],G=R[3],j=R[4],rt=a(r,B),it=a(D,G);return rt.concat([[_,j]],it)}return v(h,m)}function v(h,m){for(var w=h.length,A=m.length,S=Math.ceil((w+A)/2),I=S,R=2*S,r=new Array(R),D=new Array(R),B=0;B<R;B++)r[B]=-1,D[B]=-1;r[I+1]=0,D[I+1]=0;for(var G=w-A,j=G%2!=0,rt=0,it=0,Et=0,pt=0,tt=0;tt<S;tt++){for(var U=-tt+rt;U<=tt-it;U+=2){var Q=I+U,X;U==-tt||U!=tt&&r[Q-1]<r[Q+1]?X=r[Q+1]:X=r[Q-1]+1;for(var lt=X-U;X<w&&lt<A&&h.charAt(X)==m.charAt(lt);)X++,lt++;if(r[Q]=X,X>w)it+=2;else if(lt>A)rt+=2;else if(j){var ot=I+G-U;if(ot>=0&&ot<R&&D[ot]!=-1){var V=w-D[ot];if(X>=V)return c(h,m,X,lt)}}}for(var at=-tt+Et;at<=tt-pt;at+=2){var ot=I+at,V;at==-tt||at!=tt&&D[ot-1]<D[ot+1]?V=D[ot+1]:V=D[ot-1]+1;for(var wt=V-at;V<w&&wt<A&&h.charAt(w-V-1)==m.charAt(A-wt-1);)V++,wt++;if(D[ot]=V,V>w)pt+=2;else if(wt>A)Et+=2;else if(!j){var Q=I+G-at;if(Q>=0&&Q<R&&r[Q]!=-1){var X=r[Q],lt=I+X-Q;if(V=w-V,X>=V)return c(h,m,X,lt)}}}}return[[T,h],[x,m]]}function c(h,m,w,A){var S=h.substring(0,w),I=m.substring(0,A),R=h.substring(w),r=m.substring(A),D=a(S,I),B=a(R,r);return D.concat(B)}function d(h,m){if(!h||!m||h.charAt(0)!=m.charAt(0))return 0;for(var w=0,A=Math.min(h.length,m.length),S=A,I=0;w<S;)h.substring(I,S)==m.substring(I,S)?(w=S,I=w):A=S,S=Math.floor((A-w)/2+w);return S}function s(h,m){if(!h||!m||h.charAt(h.length-1)!=m.charAt(m.length-1))return 0;for(var w=0,A=Math.min(h.length,m.length),S=A,I=0;w<S;)h.substring(h.length-S,h.length-I)==m.substring(m.length-S,m.length-I)?(w=S,I=w):A=S,S=Math.floor((A-w)/2+w);return S}function n(h,m){var w=h.length>m.length?h:m,A=h.length>m.length?m:h;if(w.length<4||A.length*2<w.length)return null;function S(it,Et,pt){for(var tt=it.substring(pt,pt+Math.floor(it.length/4)),U=-1,Q="",X,lt,ot,V;(U=Et.indexOf(tt,U+1))!=-1;){var at=d(it.substring(pt),Et.substring(U)),wt=s(it.substring(0,pt),Et.substring(0,U));Q.length<wt+at&&(Q=Et.substring(U-wt,U)+Et.substring(U,U+at),X=it.substring(0,pt-wt),lt=it.substring(pt+at),ot=Et.substring(0,U-wt),V=Et.substring(U+at))}return Q.length*2>=it.length?[X,lt,ot,V,Q]:null}var I=S(w,A,Math.ceil(w.length/4)),R=S(w,A,Math.ceil(w.length/2)),r;if(!I&&!R)return null;R?I?r=I[4].length>R[4].length?I:R:r=R:r=I;var D,B,G,j;h.length>m.length?(D=r[0],B=r[1],G=r[2],j=r[3]):(G=r[0],j=r[1],D=r[2],B=r[3]);var rt=r[4];return[D,B,G,j,rt]}function i(h){h.push([_,""]);for(var m=0,w=0,A=0,S="",I="",R;m<h.length;)switch(h[m][0]){case x:A++,I+=h[m][1],m++;break;case T:w++,S+=h[m][1],m++;break;case _:w+A>1?(w!==0&&A!==0&&(R=d(I,S),R!==0&&(m-w-A>0&&h[m-w-A-1][0]==_?h[m-w-A-1][1]+=I.substring(0,R):(h.splice(0,0,[_,I.substring(0,R)]),m++),I=I.substring(R),S=S.substring(R)),R=s(I,S),R!==0&&(h[m][1]=I.substring(I.length-R)+h[m][1],I=I.substring(0,I.length-R),S=S.substring(0,S.length-R))),w===0?h.splice(m-A,w+A,[x,I]):A===0?h.splice(m-w,w+A,[T,S]):h.splice(m-w-A,w+A,[T,S],[x,I]),m=m-w-A+(w?1:0)+(A?1:0)+1):m!==0&&h[m-1][0]==_?(h[m-1][1]+=h[m][1],h.splice(m,1)):m++,A=0,w=0,S="",I="";break}h[h.length-1][1]===""&&h.pop();var r=!1;for(m=1;m<h.length-1;)h[m-1][0]==_&&h[m+1][0]==_&&(h[m][1].substring(h[m][1].length-h[m-1][1].length)==h[m-1][1]?(h[m][1]=h[m-1][1]+h[m][1].substring(0,h[m][1].length-h[m-1][1].length),h[m+1][1]=h[m-1][1]+h[m+1][1],h.splice(m-1,1),r=!0):h[m][1].substring(0,h[m+1][1].length)==h[m+1][1]&&(h[m-1][1]+=h[m+1][1],h[m][1]=h[m][1].substring(h[m+1][1].length)+h[m+1][1],h.splice(m+1,1),r=!0)),m++;r&&i(h)}var o=a;o.INSERT=x,o.DELETE=T,o.EQUAL=_,P.exports=o;function y(h,m){if(m===0)return[_,h];for(var w=0,A=0;A<h.length;A++){var S=h[A];if(S[0]===T||S[0]===_){var I=w+S[1].length;if(m===I)return[A+1,h];if(m<I){h=h.slice();var R=m-w,r=[S[0],S[1].slice(0,R)],D=[S[0],S[1].slice(R)];return h.splice(A,1,r,D),[A+1,h]}else w=I}}throw new Error("cursor_pos is out of bounds!")}function f(h,m){var w=y(h,m),A=w[1],S=w[0],I=A[S],R=A[S+1];if(I==null)return h;if(I[0]!==_)return h;if(R!=null&&I[1]+R[1]===R[1]+I[1])return A.splice(S,2,R,I),u(A,S,2);if(R!=null&&R[1].indexOf(I[1])===0){A.splice(S,2,[R[0],I[1]],[0,I[1]]);var r=R[1].slice(I[1].length);return r.length>0&&A.splice(S+2,0,[R[0],r]),u(A,S,3)}else return h}function e(h){for(var m=!1,w=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},A=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},S=2;S<h.length;S+=1)h[S-2][0]===_&&A(h[S-2][1])&&h[S-1][0]===T&&w(h[S-1][1])&&h[S][0]===x&&w(h[S][1])&&(m=!0,h[S-1][1]=h[S-2][1].slice(-1)+h[S-1][1],h[S][1]=h[S-2][1].slice(-1)+h[S][1],h[S-2][1]=h[S-2][1].slice(0,-1));if(!m)return h;for(var I=[],S=0;S<h.length;S+=1)h[S][1].length>0&&I.push(h[S]);return I}function u(h,m,w){for(var A=m+w-1;A>=0&&A>=m-1;A--)if(A+1<h.length){var S=h[A],I=h[A+1];S[0]===I[1]&&h.splice(A,2,[S[0],S[1]+I[1]])}return h}}),(function(P,b){b=P.exports=typeof Object.keys=="function"?Object.keys:T,b.shim=T;function T(x){var _=[];for(var a in x)_.push(a);return _}}),(function(P,b){var T=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";b=P.exports=T?x:_,b.supported=x;function x(a){return Object.prototype.toString.call(a)=="[object Arguments]"}b.unsupported=_;function _(a){return a&&typeof a=="object"&&typeof a.length=="number"&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}}),(function(P,b){"use strict";var T=Object.prototype.hasOwnProperty,x="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(x=!1));function a(v,c,d){this.fn=v,this.context=c,this.once=d||!1}function g(){this._events=new _,this._eventsCount=0}g.prototype.eventNames=function(){var c=[],d,s;if(this._eventsCount===0)return c;for(s in d=this._events)T.call(d,s)&&c.push(x?s.slice(1):s);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},g.prototype.listeners=function(c,d){var s=x?x+c:c,n=this._events[s];if(d)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,y=new Array(o);i<o;i++)y[i]=n[i].fn;return y},g.prototype.emit=function(c,d,s,n,i,o){var y=x?x+c:c;if(!this._events[y])return!1;var f=this._events[y],e=arguments.length,u,h;if(f.fn){switch(f.once&&this.removeListener(c,f.fn,void 0,!0),e){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,d),!0;case 3:return f.fn.call(f.context,d,s),!0;case 4:return f.fn.call(f.context,d,s,n),!0;case 5:return f.fn.call(f.context,d,s,n,i),!0;case 6:return f.fn.call(f.context,d,s,n,i,o),!0}for(h=1,u=new Array(e-1);h<e;h++)u[h-1]=arguments[h];f.fn.apply(f.context,u)}else{var m=f.length,w;for(h=0;h<m;h++)switch(f[h].once&&this.removeListener(c,f[h].fn,void 0,!0),e){case 1:f[h].fn.call(f[h].context);break;case 2:f[h].fn.call(f[h].context,d);break;case 3:f[h].fn.call(f[h].context,d,s);break;case 4:f[h].fn.call(f[h].context,d,s,n);break;default:if(!u)for(w=1,u=new Array(e-1);w<e;w++)u[w-1]=arguments[w];f[h].fn.apply(f[h].context,u)}}return!0},g.prototype.on=function(c,d,s){var n=new a(d,s||this),i=x?x+c:c;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},g.prototype.once=function(c,d,s){var n=new a(d,s||this,!0),i=x?x+c:c;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},g.prototype.removeListener=function(c,d,s,n){var i=x?x+c:c;if(!this._events[i])return this;if(!d)return--this._eventsCount===0?this._events=new _:delete this._events[i],this;var o=this._events[i];if(o.fn)o.fn===d&&(!n||o.once)&&(!s||o.context===s)&&(--this._eventsCount===0?this._events=new _:delete this._events[i]);else{for(var y=0,f=[],e=o.length;y<e;y++)(o[y].fn!==d||n&&!o[y].once||s&&o[y].context!==s)&&f.push(o[y]);f.length?this._events[i]=f.length===1?f[0]:f:--this._eventsCount===0?this._events=new _:delete this._events[i]}return this},g.prototype.removeAllListeners=function(c){var d;return c?(d=x?x+c:c,this._events[d]&&(--this._eventsCount===0?this._events=new _:delete this._events[d])):(this._events=new _,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=x,g.EventEmitter=g,typeof P<"u"&&(P.exports=g)}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.matchText=b.matchSpacing=b.matchNewline=b.matchBlot=b.matchAttributor=b.default=void 0;var x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},_=(function(){function k(q,J){var ut=[],F=!0,K=!1,et=void 0;try{for(var ct=q[Symbol.iterator](),Tt;!(F=(Tt=ct.next()).done)&&(ut.push(Tt.value),!(J&&ut.length===J));F=!0);}catch(_t){K=!0,et=_t}finally{try{!F&&ct.return&&ct.return()}finally{if(K)throw et}}return ut}return function(q,J){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return k(q,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function k(q,J){for(var ut=0;ut<J.length;ut++){var F=J[ut];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(q,F.key,F)}}return function(q,J,ut){return J&&k(q.prototype,J),ut&&k(q,ut),q}})(),g=T(3),v=D(g),c=T(2),d=D(c),s=T(0),n=D(s),i=T(5),o=D(i),y=T(10),f=D(y),e=T(9),u=D(e),h=T(36),m=T(37),w=T(13),A=D(w),S=T(26),I=T(38),R=T(39),r=T(40);function D(k){return k&&k.__esModule?k:{default:k}}function B(k,q,J){return q in k?Object.defineProperty(k,q,{value:J,enumerable:!0,configurable:!0,writable:!0}):k[q]=J,k}function G(k,q){if(!(k instanceof q))throw new TypeError("Cannot call a class as a function")}function j(k,q){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:k}function rt(k,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);k.prototype=Object.create(q&&q.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(k,q):k.__proto__=q)}var it=(0,f.default)("quill:clipboard"),Et="__ql-matcher",pt=[[Node.TEXT_NODE,Z],[Node.TEXT_NODE,z],["br",Gt],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,Rt],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,mt],[Node.ELEMENT_NODE,dt],["li",W],["b",wt.bind(wt,"bold")],["i",wt.bind(wt,"italic")],["style",Xt]],tt=[h.AlignAttribute,I.DirectionAttribute].reduce(function(k,q){return k[q.keyName]=q,k},{}),U=[h.AlignStyle,m.BackgroundStyle,S.ColorStyle,I.DirectionStyle,R.FontStyle,r.SizeStyle].reduce(function(k,q){return k[q.keyName]=q,k},{}),Q=(function(k){rt(q,k);function q(J,ut){G(this,q);var F=j(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,J,ut));return F.quill.root.addEventListener("paste",F.onPaste.bind(F)),F.container=F.quill.addContainer("ql-clipboard"),F.container.setAttribute("contenteditable",!0),F.container.setAttribute("tabindex",-1),F.matchers=[],pt.concat(F.options.matchers).forEach(function(K){var et=_(K,2),ct=et[0],Tt=et[1];!ut.matchVisual&&Tt===st||F.addMatcher(ct,Tt)}),F}return a(q,[{key:"addMatcher",value:function(ut,F){this.matchers.push([ut,F])}},{key:"convert",value:function(ut){if(typeof ut=="string")return this.container.innerHTML=ut.replace(/\>\r?\n +\</g,"><"),this.convert();var F=this.quill.getFormat(this.quill.selection.savedRange.index);if(F[A.default.blotName]){var K=this.container.innerText;return this.container.innerHTML="",new d.default().insert(K,B({},A.default.blotName,F[A.default.blotName]))}var et=this.prepareMatching(),ct=_(et,2),Tt=ct[0],_t=ct[1],kt=at(this.container,Tt,_t);return ot(kt,`
116`)&&kt.ops[kt.ops.length-1].attributes==null&&(kt=kt.compose(new d.default().retain(kt.length()-1).delete(1))),it.log("convert",this.container.innerHTML,kt),this.container.innerHTML="",kt}},{key:"dangerouslyPasteHTML",value:function(ut,F){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.default.sources.API;if(typeof ut=="string")this.quill.setContents(this.convert(ut),F),this.quill.setSelection(0,o.default.sources.SILENT);else{var et=this.convert(F);this.quill.updateContents(new d.default().retain(ut).concat(et),K),this.quill.setSelection(ut+et.length(),o.default.sources.SILENT)}}},{key:"onPaste",value:function(ut){var F=this;if(!(ut.defaultPrevented||!this.quill.isEnabled())){var K=this.quill.getSelection(),et=new d.default().retain(K.index),ct=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(o.default.sources.SILENT),setTimeout(function(){et=et.concat(F.convert()).delete(K.length),F.quill.updateContents(et,o.default.sources.USER),F.quill.setSelection(et.length()-K.length,o.default.sources.SILENT),F.quill.scrollingContainer.scrollTop=ct,F.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ut=this,F=[],K=[];return this.matchers.forEach(function(et){var ct=_(et,2),Tt=ct[0],_t=ct[1];switch(Tt){case Node.TEXT_NODE:K.push(_t);break;case Node.ELEMENT_NODE:F.push(_t);break;default:[].forEach.call(ut.container.querySelectorAll(Tt),function(kt){kt[Et]=kt[Et]||[],kt[Et].push(_t)});break}}),[F,K]}}]),q})(u.default);Q.DEFAULTS={matchers:[],matchVisual:!0};function X(k,q,J){return(typeof q>"u"?"undefined":x(q))==="object"?Object.keys(q).reduce(function(ut,F){return X(ut,F,q[F])},k):k.reduce(function(ut,F){return F.attributes&&F.attributes[q]?ut.push(F):ut.insert(F.insert,(0,v.default)({},B({},q,J),F.attributes))},new d.default)}function lt(k){if(k.nodeType!==Node.ELEMENT_NODE)return{};var q="__ql-computed-style";return k[q]||(k[q]=window.getComputedStyle(k))}function ot(k,q){for(var J="",ut=k.ops.length-1;ut>=0&&J.length<q.length;--ut){var F=k.ops[ut];if(typeof F.insert!="string")break;J=F.insert+J}return J.slice(-1*q.length)===q}function V(k){if(k.childNodes.length===0)return!1;var q=lt(k);return["block","list-item"].indexOf(q.display)>-1}function at(k,q,J){return k.nodeType===k.TEXT_NODE?J.reduce(function(ut,F){return F(k,ut)},new d.default):k.nodeType===k.ELEMENT_NODE?[].reduce.call(k.childNodes||[],function(ut,F){var K=at(F,q,J);return F.nodeType===k.ELEMENT_NODE&&(K=q.reduce(function(et,ct){return ct(F,et)},K),K=(F[Et]||[]).reduce(function(et,ct){return ct(F,et)},K)),ut.concat(K)},new d.default):new d.default}function wt(k,q,J){return X(J,k,!0)}function mt(k,q){var J=n.default.Attributor.Attribute.keys(k),ut=n.default.Attributor.Class.keys(k),F=n.default.Attributor.Style.keys(k),K={};return J.concat(ut).concat(F).forEach(function(et){var ct=n.default.query(et,n.default.Scope.ATTRIBUTE);ct!=null&&(K[ct.attrName]=ct.value(k),K[ct.attrName])||(ct=tt[et],ct!=null&&(ct.attrName===et||ct.keyName===et)&&(K[ct.attrName]=ct.value(k)||void 0),ct=U[et],ct!=null&&(ct.attrName===et||ct.keyName===et)&&(ct=U[et],K[ct.attrName]=ct.value(k)||void 0))}),Object.keys(K).length>0&&(q=X(q,K)),q}function Rt(k,q){var J=n.default.query(k);if(J==null)return q;if(J.prototype instanceof n.default.Embed){var ut={},F=J.value(k);F!=null&&(ut[J.blotName]=F,q=new d.default().insert(ut,J.formats(k)))}else typeof J.formats=="function"&&(q=X(q,J.blotName,J.formats(k)));return q}function Gt(k,q){return ot(q,`
117`)||q.insert(`
118`),q}function Xt(){return new d.default}function W(k,q){var J=n.default.query(k);if(J==null||J.blotName!=="list-item"||!ot(q,`
119`))return q;for(var ut=-1,F=k.parentNode;!F.classList.contains("ql-clipboard");)(n.default.query(F)||{}).blotName==="list"&&(ut+=1),F=F.parentNode;return ut<=0?q:q.compose(new d.default().retain(q.length()-1).retain(1,{indent:ut}))}function z(k,q){return ot(q,`
120`)||(V(k)||q.length()>0&&k.nextSibling&&V(k.nextSibling))&&q.insert(`
121`),q}function st(k,q){if(V(k)&&k.nextElementSibling!=null&&!ot(q,`
122
123`)){var J=k.offsetHeight+parseFloat(lt(k).marginTop)+parseFloat(lt(k).marginBottom);k.nextElementSibling.offsetTop>k.offsetTop+J*1.5&&q.insert(`
124`)}return q}function dt(k,q){var J={},ut=k.style||{};return ut.fontStyle&&lt(k).fontStyle==="italic"&&(J.italic=!0),ut.fontWeight&&(lt(k).fontWeight.startsWith("bold")||parseInt(lt(k).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&(q=X(q,J)),parseFloat(ut.textIndent||0)>0&&(q=new d.default().insert("	").concat(q)),q}function Z(k,q){var J=k.data;if(k.parentNode.tagName==="O:P")return q.insert(J.trim());if(J.trim().length===0&&k.parentNode.classList.contains("ql-clipboard"))return q;if(!lt(k.parentNode).whiteSpace.startsWith("pre")){var ut=function(K,et){return et=et.replace(/[^\u
12400a0]/g,""),et.length<1&&K?" ":et};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,ut.bind(ut,!0)),(k.previousSibling==null&&V(k.parentNode)||k.previousSibling!=null&&V(k.previousSibling))&&(J=J.replace(/^\s+/,ut.bind(ut,!1))),(k.nextSibling==null&&V(k.parentNode)||k.nextSibling!=null&&V(k.nextSibling))&&(J=J.replace(/\s+$/,ut.bind(ut,!1)))}return q.insert(J)}b.default=Q,b.matchAttributor=mt,b.matchBlot=Rt,b.matchNewline=z,b.matchSpacing=st,b.matchText=Z}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function i(o,y){for(var f=0;f<y.length;f++){var e=y[f];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,y,f){return y&&i(o.prototype,y),f&&i(o,f),o}})(),_=function i(o,y,f){o===null&&(o=Function.prototype);var e=Object.getOwnPropertyDescriptor(o,y);if(e===void 0){var u=Object.getPrototypeOf(o);return u===null?void 0:i(u,y,f)}else{if("value"in e)return e.value;var h=e.get;return h===void 0?void 0:h.call(f)}},a=T(6),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(){return c(this,o),d(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return x(o,[{key:"optimize",value:function(f){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,f),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return _(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),o})(g.default);n.blotName="bold",n.tagName=["STRONG","B"],b.default=n}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.addControls=b.default=void 0;var x=(function(){function r(D,B){var G=[],j=!0,rt=!1,it=void 0;try{for(var Et=D[Symbol.iterator](),pt;!(j=(pt=Et.next()).done)&&(G.push(pt.value),!(B&&G.length===B));j=!0);}catch(tt){rt=!0,it=tt}finally{try{!j&&Et.return&&Et.return()}finally{if(rt)throw it}}return G}return function(D,B){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return r(D,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=(function(){function r(D,B){for(var G=0;G<B.length;G++){var j=B[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}return function(D,B,G){return B&&r(D.prototype,B),G&&r(D,G),D}})(),a=T(2),g=f(a),v=T(0),c=f(v),d=T(5),s=f(d),n=T(10),i=f(n),o=T(9),y=f(o);function f(r){return r&&r.__esModule?r:{default:r}}function e(r,D,B){return D in r?Object.defineProperty(r,D,{value:B,enumerable:!0,configurable:!0,writable:!0}):r[D]=B,r}function u(r,D){if(!(r instanceof D))throw new TypeError("Cannot call a class as a function")}function h(r,D){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:r}function m(r,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);r.prototype=Object.create(D&&D.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(r,D):r.__proto__=D)}var w=(0,i.default)("quill:toolbar"),A=(function(r){m(D,r);function D(B,G){u(this,D);var j=h(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B,G));if(Array.isArray(j.options.container)){var rt=document.createElement("div");I(rt,j.options.container),B.container.parentNode.insertBefore(rt,B.container),j.container=rt}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var it;return it=w.error("Container required for toolbar",j.options),h(j,it)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={}
vendor: 4,404 bytes, line 124
124,Object.keys(j.options.handlers).forEach(function(Et){j.addHandler(Et,j.options.handlers[Et])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(Et){j.attach(Et)}),j.quill.on(s.default.events.EDITOR_CHANGE,function(Et,pt){Et===s.default.events.SELECTION_CHANGE&&j.update(pt)}),j.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var Et=j.quill.selection.getRange(),pt=x(Et,1),tt=pt[0];j.update(tt)}),j}return _(D,[{key:"addHandler",value:function(G,j){this.handlers[G]=j}},{key:"attach",value:function(G){var j=this,rt=[].find.call(G.classList,function(Et){return Et.indexOf("ql-")===0});if(rt){if(rt=rt.slice(3),G.tagName==="BUTTON"&&G.setAttribute("type","button"),this.handlers[rt]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[rt]==null){w.warn("ignoring attaching to disabled format",rt,G);return}if(c.default.query(rt)==null){w.warn("ignoring attaching to nonexistent format",rt,G);return}}var it=G.tagName==="SELECT"?"change":"click";G.addEventListener(it,function(Et){var pt=void 0;if(G.tagName==="SELECT"){if(G.selectedIndex<0)return;var tt=G.options[G.selectedIndex];tt.hasAttribute("selected")?pt=!1:pt=tt.value||!1}else G.classList.contains("ql-active")?pt=!1:pt=G.value||!G.hasAttribute("value"),Et.preventDefault();j.quill.focus();var U=j.quill.selection.getRange(),Q=x(U,1),X=Q[0];if(j.handlers[rt]!=null)j.handlers[rt].call(j,pt);else if(c.default.query(rt).prototype instanceof c.default.Embed){if(pt=prompt("Enter "+rt),!pt)return;j.quill.updateContents(new g.default().retain(X.index).delete(X.length).insert(e({},rt,pt)),s.default.sources.USER)}else j.quill.format(rt,pt,s.default.sources.USER);j.update(X)}),this.controls.push([rt,G])}}},{key:"update",value:function(G){var j=G==null?{}:this.quill.getFormat(G);this.controls.forEach(function(rt){var it=x(rt,2),Et=it[0],pt=it[1];if(pt.tagName==="SELECT"){var tt=void 0;if(G==null)tt=null;else if(j[Et]==null)tt=pt.querySelector("option[selected]");else if(!Array.isArray(j[Et])){var U=j[Et];typeof U=="string"&&(U=U.replace(/\"/g,'\\"')),tt=pt.querySelector('option[value="'+U+'"]')}tt==null?(pt.value="",pt.selectedIndex=-1):tt.selected=!0}else if(G==null)pt.classList.remove("ql-active");else if(pt.hasAttribute("value")){var Q=j[Et]===pt.getAttribute("value")||j[Et]!=null&&j[Et].toString()===pt.getAttribute("value")||j[Et]==null&&!pt.getAttribute("value");pt.classList.toggle("ql-active",Q)}else pt.classList.toggle("ql-active",j[Et]!=null)})}}]),D})(y.default);A.DEFAULTS={};function S(r,D,B){var G=document.createElement("button");G.setAttribute("type","button"),G.classList.add("ql-"+D),B!=null&&(G.value=B),r.appendChild(G)}function I(r,D){Array.isArray(D[0])||(D=[D]),D.forEach(function(B){var G=document.createElement("span");G.classList.add("ql-formats"),B.forEach(function(j){if(typeof j=="string")S(G,j);else{var rt=Object.keys(j)[0],it=j[rt];Array.isArray(it)?R(G,rt,it):S(G,rt,it)}}),r.appendChild(G)})}function R(r,D,B){var G=document.createElement("select");G.classList.add("ql-"+D),B.forEach(function(j){var rt=document.createElement("option");j!==!1?rt.setAttribute("value",j):rt.setAttribute("selected","selected"),G.appendChild(rt)}),r.appendChild(G)}A.DEFAULTS={container:null,handlers:{clean:function(){var D=this,B=this.quill.getSelection();if(B!=null)if(B.length==0){var G=this.quill.getFormat();Object.keys(G).forEach(function(j){c.default.query(j,c.default.Scope.INLINE)!=null&&D.quill.format(j,!1)})}else this.quill.removeFormat(B,s.default.sources.USER)},direction:function(D){var B=this.quill.getFormat().align;D==="rtl"&&B==null?this.quill.format("align","right",s.default.sources.USER):!D&&B==="right"&&this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",D,s.default.sources.USER)},indent:function(D){var B=this.quill.getSelection(),G=this.quill.getFormat(B),j=parseInt(G.indent||0);if(D==="+1"||D==="-1"){var rt=D==="+1"?1:-1;G.direction==="rtl"&&(rt*=-1),this.quill.format("indent",j+rt,s.default.sources.USER)}},link:function(D){D===!0&&(D=prompt("Enter link URL:")),this.quill.format("link",D,s.default.sources.USER)},list:function(D){var B=this.quill.getSelection(),G=this.quill.getFormat(B);D==="check"?G.list==="checked"||G.list==="unchecked"?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",D,s.default.sources.USER)}}}
124,b.default=A,b.addControls=I}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function i(o,y){for(var f=0;f<y.length;f++){var e=y[f];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,y,f){return y&&i(o.prototype,y),f&&i(o,f),o}})(),_=function i(o,y,f){o===null&&(o=Function.prototype);var e=Object.getOwnPropertyDescriptor(o,y);if(e===void 0){var u=Object.getPrototypeOf(o);return u===null?void 0:i(u,y,f)}else{if("value"in e)return e.value;var h=e.get;return h===void 0?void 0:h.call(f)}},a=T(28),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(y,f){c(this,o);var e=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,y));return e.label.innerHTML=f,e.container.classList.add("ql-color-picker"),[].slice.call(e.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(u){u.classList.add("ql-primary")}),e}return x(o,[{key:"buildItem",value:function(f){var e=_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"buildItem",this).call(this,f);return e.style.backgroundColor=f.getAttribute("value")||"",e}},{key:"selectItem",value:function(f,e){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,f,e);var u=this.label.querySelector(".ql-color-label"),h=f&&f.getAttribute("data-value")||"";u&&(u.tagName==="line"?u.style.stroke=h:u.style.fill=h)}}]),o})(g.default);b.default=n}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function i(o,y){for(var f=0;f<y.length;f++){var e=y[f];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,y,f){return y&&i(o.prototype,y),f&&i(o,f),o}})(),_=function i(o,y,f){o===null&&(o=Function.prototype);var e=Object.getOwnPropertyDescriptor(o,y);if(e===void 0){var u=Object.getPrototypeOf(o);return u===null?void 0:i(u,y,f)}else{if("value"in e)return e.value;var h=e.get;return h===void 0?void 0:h.call(f)}},a=T(28),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(y,f){c(this,o);var e=d(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,y));return e.container.classList.add("ql-icon-picker"),[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(u){u.innerHTML=f[u.getAttribute("data-value")||""]}),e.defaultItem=e.container.querySelector(".ql-selected"),e.selectItem(e.defaultItem),e}return x(o,[{key:"selectItem",value:function(f,e){_(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,f,e),f=f||this.defaultItem,this.label.innerHTML=f.innerHTML}}]),o})(g.default);b.default=n}),(function(P,b,T){"use strict";
124Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function g(v,c){for(var d=0;d<c.length;d++){var s=c[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(v,s.key,s)}}return function(v,c,d){return c&&g(v.prototype,c),d&&g(v,d),v}})();function _(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}var a=(function(){function g(v,c){var d=this;_(this,g),this.quill=v,this.boundsContainer=c||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){d.root.style.marginTop=-1*d.quill.root.scrollTop+"px"}),this.hide()}return x(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var d=c.left+c.width/2-this.root.offsetWidth/2,s=c.bottom+this.quill.root.scrollTop;this.root.style.left=d+"px",this.root.style.top=s+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>n.right&&(o=n.right-i.right,this.root.style.left=d+o+"px"),i.left<n.left&&(o=n.left-i.left,this.root.style.left=d+o+"px"),i.bottom>n.bottom){var y=i.bottom-i.top,f=c.bottom-c.top+y;this.root.style.top=s-f+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g})();b.default=a}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function R(r,D){var B=[],G=!0,j=!1,rt=void 0;try{for(var it=r[Symbol.iterator](),Et;!(G=(Et=it.next()).done)&&(B.push(Et.value),!(D&&B.length===D));G=!0);}catch(pt){j=!0,rt=pt}finally{try{!G&&it.return&&it.return()}finally{if(j)throw rt}}return B}return function(r,D){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return R(r,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),_=function R(r,D,B){r===null&&(r=Function.prototype);var G=Object.getOwnPropertyDescriptor(r,D);if(G===void 0){var j=Object.getPrototypeOf(r);return j===null?void 0:R(j,D,B)}else{if("value"in G)return G.value;var rt=G.get;return rt===void 0?void 0:rt.call(B)}},a=(function(){function R(r,D){for(var B=0;B<D.length;B++){var G=D[B];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(r,G.key,G)}}return function(r,D,B){return D&&R(r.prototype,D),B&&R(r,B),r}})(),g=T(3),v=u(g),c=T(8),d=u(c),s=T(43),n=u(s),i=T(27),o=u(i),y=T(15),f=T(41),e=u(f);function u(R){return R&&R.__esModule?R:{default:R}}function h(R,r){if(!(R instanceof r))throw new TypeError("Cannot call a class as a function")}function m(R,r){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:R}function w(R,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);R.prototype=Object.create(r&&r.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(R,r):R.__proto__=r)}var A=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=(function(R){w(r,R);function r(D,B){h(this,r),B.modules.toolbar!=null&&B.modules.toolbar.container==null&&(B.modules.toolbar.container=A);var G=m(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,D,B));return G.quill.container.classList.add("ql-snow"),G}return a(r,[{key:"extendToolbar",value:function(B){B.container.classList.add("ql-snow"),this.buildButtons([].slice.call(B.container.querySelectorAll("button")),e.default),this.buildPickers([].slice.call(B.container.querySelectorAll("select")),e.default),this.tooltip=new I(this.quill,this.options.bounds),B.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(G,j){B.handlers.link.call(B,!j.format.link)})}}]),r})(n.default);S.DEFAULTS=(0,v.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(r){if(r){var D=this.quill.getSelection();if(D==null||D.length==0)return;var B=this.quill.getText(D);
vendor: 6,003 bytes, line 124
124/^\S+@\S+\.\S+$/.test(B)&&B.indexOf("mailto:")!==0&&(B="mailto:"+B);var G=this.quill.theme.tooltip;G.edit("link",B)}else this.quill.format("link",!1)}}}}});var I=(function(R){w(r,R);function r(D,B){h(this,r);var G=m(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,D,B));return G.preview=G.root.querySelector("a.ql-preview"),G}return a(r,[{key:"listen",value:function(){var B=this;_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(G){B.root.classList.contains("ql-editing")?B.save():B.edit("link",B.preview.textContent),G.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(G){if(B.linkRange!=null){var j=B.linkRange;B.restoreFocus(),B.quill.formatText(j,"link",!1,d.default.sources.USER),delete B.linkRange}G.preventDefault(),B.hide()}),this.quill.on(d.default.events.SELECTION_CHANGE,function(G,j,rt){if(G!=null){if(G.length===0&&rt===d.default.sources.USER){var it=B.quill.scroll.descendant(o.default,G.index),Et=x(it,2),pt=Et[0],tt=Et[1];if(pt!=null){B.linkRange=new y.Range(G.index-tt,pt.length());var U=o.default.formats(pt.domNode);B.preview.textContent=U,B.preview.setAttribute("href",U),B.show(),B.position(B.quill.getBounds(B.linkRange));return}}else delete B.linkRange;B.hide()}})}},{key:"show",value:function(){_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),r})(s.BaseTooltip);I.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),b.default=S}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(29),_=F(x),a=T(36),g=T(38),v=T(64),c=T(65),d=F(c),s=T(66),n=F(s),i=T(67),o=F(i),y=T(37),f=T(26),e=T(39),u=T(40),h=T(56),m=F(h),w=T(68),A=F(w),S=T(27),I=F(S),R=T(69),r=F(R),D=T(70),B=F(D),G=T(71),j=F(G),rt=T(72),it=F(rt),Et=T(73),pt=F(Et),tt=T(13),U=F(tt),Q=T(74),X=F(Q),lt=T(75),ot=F(lt),V=T(57),at=F(V),wt=T(41),mt=F(wt),Rt=T(28),Gt=F(Rt),Xt=T(59),W=F(Xt),z=T(60),st=F(z),dt=T(61),Z=F(dt),k=T(108),q=F(k),J=T(62),ut=F(J);function F(K){return K&&K.__esModule?K:{default:K}}_.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":e.FontClass,"attributors/class/size":u.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":e.FontStyle,"attributors/style/size":u.SizeStyle},!0),_.default.register({"formats/align":a.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":v.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":e.FontClass,"formats/size":u.SizeClass,"formats/blockquote":d.default,"formats/code-block":U.default,"formats/header":n.default,"formats/list":o.default,"formats/bold":m.default,"formats/code":tt.Code,"formats/italic":A.default,"formats/link":I.default,"formats/script":r.default,"formats/strike":B.default,"formats/underline":j.default,"formats/image":it.default,"formats/video":pt.default,"formats/list/item":i.ListItem,"modules/formula":X.default,"modules/syntax":ot.default,"modules/toolbar":at.default,"themes/bubble":q.default,"themes/snow":ut.default,"ui/icons":mt.default,"ui/picker":Gt.default,"ui/icon-picker":st.default,"ui/color-picker":W.default,"ui/tooltip":Z.default},!0),b.default=_.default}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.IndentClass=void 0;var x=(function(){function o(y,f){for(var e=0;e<f.length;e++){var u=f[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(y,u.key,u)}}return function(y,f,e){return f&&o(y.prototype,f),e&&o(y,e),y}})(),_=function o(y,f,e){y===null&&(y=Function.prototype);var u=Object.getOwnPropertyDescriptor(y,f);if(u===void 0){var h=Object.getPrototypeOf(y);return h===null?void 0:o(h,f,e)}else{if("value"in u)return u.value;var m=u.get;return m===void 0?void 0:m.call(e)}},a=T(0),g=v(a);function v(o){return o&&o.__esModule?o:{default:o}}function c(o,y){if(!(o instanceof y))throw new TypeError("Cannot call a class as a function")}function d(o,y){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:o}function s(o,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);o.prototype=Object.create(y&&y.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(o,y):o.__proto__=y)}var n=(function(o){s(y,o);function y(){return c(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return x(y,[{key:"add",value:function(e,u){if(u==="+1"||u==="-1"){var h=this.value(e)||0;u=u==="+1"?h+1:h-1}return u===0?(this.remove(e),!0):_(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,e,u)}},{key:"canAdd",value:function(e,u){return _(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,e,u)||_(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,e,parseInt(u))}},{key:"value",value:function(e){return parseInt(_(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,e))||void 0}}]),y})(g.default.Attributor.Class),i=new n("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});b.IndentClass=i}),(function(P,b,T){"use strict";
124Object.defineProperty(b,"__esModule",{value:!0});var x=T(4),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}function g(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function v(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function c(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var d=(function(s){c(n,s);function n(){return g(this,n),v(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(_.default);d.blotName="blockquote",d.tagName="blockquote",b.default=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function n(i,o){for(var y=0;y<o.length;y++){var f=o[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,o,y){return o&&n(i.prototype,o),y&&n(i,y),i}})(),_=T(4),a=g(_);function g(n){return n&&n.__esModule?n:{default:n}}function v(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function c(n,i){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:n}function d(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(n,i):n.__proto__=i)}var s=(function(n){d(i,n);function i(){return v(this,i),c(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return x(i,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),i})(a.default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],b.default=s}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.ListItem=void 0;var x=(function(){function h(m,w){for(var A=0;A<w.length;A++){var S=w[A];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(m,S.key,S)}}return function(m,w,A){return w&&h(m.prototype,w),A&&h(m,A),m}})(),_=function h(m,w,A){m===null&&(m=Function.prototype);var S=Object.getOwnPropertyDescriptor(m,w);if(S===void 0){var I=Object.getPrototypeOf(m);return I===null?void 0:h(I,w,A)}else{if("value"in S)return S.value;var R=S.get;return R===void 0?void 0:R.call(A)}},a=T(0),g=n(a),v=T(4),c=n(v),d=T(25),s=n(d);function n(h){return h&&h.__esModule?h:{default:h}}function i(h,m,w){return m in h?Object.defineProperty(h,m,{value:w,enumerable:!0,configurable:!0,writable:!0}):h[m]=w,h}function o(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function y(h,m){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:h}function f(h,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);h.prototype=Object.create(m&&m.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(h,m):h.__proto__=m)}var e=(function(h){f(m,h);function m(){return o(this,m),y(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return x(m,[{key:"format",value:function(A,S){A===u.blotName&&!S?this.replaceWith(g.default.create(this.statics.scope)):_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,A,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(A,S){return this.parent.isolate(this.offset(this.parent),this.length()),A===this.parent.statics.blotName?(this.parent.replaceWith(A,S),this):(this.parent.unwrap(),_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replaceWith",this).call(this,A,S))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:_(m.__proto__||Object.getPrototypeOf(m),"formats",this).call(this,A)}}]),m})(c.default);e.blotName="list-item",e.tagName="LI";var u=(function(h){f(m,h),x(m,null,[{key:"create",value:function(A){var S=A==="ordered"?"OL":"UL",I=_(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,S);return(A==="checked"||A==="unchecked")&&I.setAttribute("data-checked",A==="checked"),I}},{key:"formats",value:function(A){if(A.tagName==="OL")return"ordered";if(A.tagName==="UL")return A.hasAttribute("data-checked")?A.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function m(w){o(this,m);var A=y(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,w)),S=function(R){if(R.target.parentNode===w){var r=A.statics.formats(w),D=g.default.find(R.target);r==="checked"?D.format("list","unchecked"):r==="unchecked"&&D.format("list","checked")}};return w.addEventListener("touchstart",S),w.addEventListener("mousedown",S
124),A}return x(m,[{key:"format",value:function(A,S){this.children.length>0&&this.children.tail.format(A,S)}},{key:"formats",value:function(){return i({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,S){if(A instanceof e)_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,A,S);else{var I=S==null?this.length():S.offset(this),R=this.split(I);R.parent.insertBefore(A,R)}}},{key:"optimize",value:function(A){_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,A);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var S=g.default.create(this.statics.defaultChild);A.moveChildren(S),this.appendChild(S)}_(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replace",this).call(this,A)}}]),m})(s.default);u.blotName="list",u.scope=g.default.Scope.BLOCK_BLOT,u.tagName=["OL","UL"],u.defaultChild="list-item",u.allowedChildren=[e],b.ListItem=e,b.default=u}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(56),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}function g(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function v(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function c(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var d=(function(s){c(n,s);function n(){return g(this,n),v(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(_.default);d.blotName="italic",d.tagName=["EM","I"],b.default=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function i(o,y){for(var f=0;f<y.length;f++){var e=y[f];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}return function(o,y,f){return y&&i(o.prototype,y),f&&i(o,f),o}})(),_=function i(o,y,f){o===null&&(o=Function.prototype);var e=Object.getOwnPropertyDescriptor(o,y);if(e===void 0){var u=Object.getPrototypeOf(o);return u===null?void 0:i(u,y,f)}else{if("value"in e)return e.value;var h=e.get;return h===void 0?void 0:h.call(f)}},a=T(6),g=v(a);function v(i){return i&&i.__esModule?i:{default:i}}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function d(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:i}function s(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o)}var n=(function(i){s(o,i);function o(){return c(this,o),d(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return x(o,null,[{key:"create",value:function(f){return f==="super"?document.createElement("sup"):f==="sub"?document.createElement("sub"):_(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,f)}},{key:"formats",value:function(f){if(f.tagName==="SUB")return"sub";if(f.tagName==="SUP")return"super"}}]),o})(g.default);n.blotName="script",n.tagName=["SUB","SUP"],b.default=n}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(6),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}function g(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}
124function v(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function c(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var d=(function(s){c(n,s);function n(){return g(this,n),v(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(_.default);d.blotName="strike",d.tagName="S",b.default=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=T(6),_=a(x);function a(s){return s&&s.__esModule?s:{default:s}}function g(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function v(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function c(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var d=(function(s){c(n,s);function n(){return g(this,n),v(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(_.default);d.blotName="underline",d.tagName="U",b.default=d}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function y(f,e){for(var u=0;u<e.length;u++){var h=e[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,e,u){return e&&y(f.prototype,e),u&&y(f,u),f}})(),_=function y(f,e,u){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(h===void 0){var m=Object.getPrototypeOf(f);return m===null?void 0:y(m,e,u)}else{if("value"in h)return h.value;var w=h.get;return w===void 0?void 0:w.call(u)}},a=T(0),g=c(a),v=T(27);function c(y){return y&&y.__esModule?y:{default:y}}function d(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function s(y,f){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:y}function n(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}var i=["alt","height","width"],o=(function(y){n(f,y);function f(){return d(this,f),s(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return x(f,[{key:"format",value:function(u,h){i.indexOf(u)>-1?h?this.domNode.setAttribute(u,h):this.domNode.removeAttribute(u):_(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,u,h)}}],[{key:"create",value:function(u){var h=_(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,u);return typeof u=="string"&&h.setAttribute("src",this.sanitize(u)),h}},{key:"formats",value:function(u){return i.reduce(function(h,m){return u.hasAttribute(m)&&(h[m]=u.getAttribute(m)),h},{})}},{key:"match",value:function(u){return/\.(jpe?g|gif|png)$/.test(u)||/^data:image\/.+;base64/.test(u)}},{key:"sanitize",value:function(u){return(0,v.sanitize)(u,["http","https","data"])?u:"//:0"}},{key:"value",value:function(u){return u.getAttribute("src")}}]),f})(g.default.Embed);o.blotName="image",o.tagName="IMG",b.default=o}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var x=(function(){function y(f,e){for(var u=0;u<e.length;u++){var h=e[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,e,u){return e&&y(f.prototype,e),u&&y(f,u),f}})(),_=function y(f,e,u){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(h===void 0){var m=Object.getPrototypeOf(f);return m===null?void 0:y(m,e,u)}else{if("value"in h)return h.value;var w=h.get;return w===void 0?void 0:w.call(u)}},a=T(4),g=T(27),v=c(g);function c(y){return y&&y.__esModule?y:{default:y}}function d(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function s(y,f){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:y}function n(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}var i=["height","width"],o=(function(y){n(f,y);function f(){return d(this,f),s(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return x(f,[{key:"format",value:function(u,h){i.indexOf(u)>-1?h?this.domNode.setAttribute(u,h):this.domNode.removeAttribute(u):_(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,u,h)}}],[{key:"create",value:function(u){var h=_(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,u);return h.setAttribute("frameborder","0"),h.setAttribute("allowfullscreen",!0),h.setAttribute("src",this.sanitize(u)),h}},{key:"formats",value:function(u){return i.reduce(function(h,m){return u.hasAttribute(m)&&(h[m]=u.getAttribute(m)),h},{})}},{key:"sanitize",value:function(u){return v.default.sanitize(u)}},{key:"value",value:function(u){return u.getAttribute("src")}}]),f})(a.BlockEmbed);o.blotName="video",o.className="ql-video",o.tagName="IFRAME",b.default=o}),(function(P,b,T){"use strict";
124Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.FormulaBlot=void 0;var x=(function(){function u(h,m){for(var w=0;w<m.length;w++){var A=m[w];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(h,A.key,A)}}return function(h,m,w){return m&&u(h.prototype,m),w&&u(h,w),h}})(),_=function u(h,m,w){h===null&&(h=Function.prototype);var A=Object.getOwnPropertyDescriptor(h,m);if(A===void 0){var S=Object.getPrototypeOf(h);return S===null?void 0:u(S,m,w)}else{if("value"in A)return A.value;var I=A.get;return I===void 0?void 0:I.call(w)}},a=T(35),g=n(a),v=T(5),c=n(v),d=T(9),s=n(d);function n(u){return u&&u.__esModule?u:{default:u}}function i(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function o(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function y(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var f=(function(u){y(h,u);function h(){return i(this,h),o(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return x(h,null,[{key:"create",value:function(w){var A=_(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,w);return typeof w=="string"&&(window.katex.render(w,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",w)),A}},{key:"value",value:function(w){return w.getAttribute("data-value")}}]),h})(g.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var e=(function(u){y(h,u),x(h,null,[{key:"register",value:function(){c.default.register(f,!0)}}]);function h(){i(this,h);var m=o(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return m}return h})(s.default);b.FormulaBlot=f,b.default=e}),(function(P,b,T){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.CodeToken=b.CodeBlock=void 0;var x=(function(){function w(A,S){for(var I=0;I<S.length;I++){var R=S[I];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,R.key,R)}}return function(A,S,I){return S&&w(A.prototype,S),I&&w(A,I),A}})(),_=function w(A,S,I){A===null&&(A=Function.prototype);var R=Object.getOwnPropertyDescriptor(A,S);if(R===void 0){var r=Object.getPrototypeOf(A);return r===null?void 0:w(r,S,I)}else{if("value"in R)return R.value;var D=R.get;return D===void 0?void 0:D.call(I)}},a=T(0),g=o(a),v=T(5),c=o(v),d=T(9),s=o(d),n=T(13),i=o(n);function o(w){return w&&w.__esModule?w:{default:w}}function y(w,A){if(!(w instanceof A))throw new TypeError("Cannot call a class as a function")}function f(w,A){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:w}function e(w,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);w.prototype=Object.create(A&&A.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(w,A):w.__proto__=A)}var u=(function(w){e(A,w);function A(){return y(this,A),f(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return x(A,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),_(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),A})(i.default);u.className="ql-syntax";var h=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),m=(function(w){e(A,w),x(A,null,[{key:"register",value:function(){c.default.register(h,!0),c.default.register(u,!0)}}]);function A(S,I){y(this,A);var R=f(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,S,I));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return R.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(r),r=setTimeout(function(){R.highlight(),r=null},R.options.interval)}),R.highlight(),R}return x(A,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(u).forEach(function(r){r.highlight(I.options.highlight)}),this.quill.update(c.default.sources.SILENT),R!=null&&this.quill.setSelection(R,c.default.sources.SILENT)}}}]),A})(s.default);m.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(w){var A=window.hljs.highlightAuto(w);return A.value}})(),interval:1e3},b.CodeBlock=u,b.CodeToken=h,b.default=m}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18">
124 <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(P,b){P.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.
124177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(P,b){P.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(P,b){P.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(P,b){P.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(P,b){P.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(P,b,T){"use strict";
124Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BubbleTooltip=void 0;var x=function A(S,I,R){S===null&&(S=Function.prototype);var r=Object.getOwnPropertyDescriptor(S,I);if(r===void 0){var D=Object.getPrototypeOf(S);return D===null?void 0:A(D,I,R)}else{if("value"in r)return r.value;var B=r.get;return B===void 0?void 0:B.call(R)}},_=(function(){function A(S,I){for(var R=0;R<I.length;R++){var r=I[R];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(S,r.key,r)}}return function(S,I,R){return I&&A(S.prototype,I),R&&A(S,R),S}})(),a=T(3),g=y(a),v=T(8),c=y(v),d=T(43),s=y(d),n=T(15),i=T(41),o=y(i);function y(A){return A&&A.__esModule?A:{default:A}}function f(A,S){if(!(A instanceof S))throw new TypeError("Cannot call a class as a function")}function e(A,S){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:A}function u(A,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);A.prototype=Object.create(S&&S.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(A,S):A.__proto__=S)}var h=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=(function(A){u(S,A);function S(I,R){f(this,S),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=h);var r=e(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,I,R));return r.quill.container.classList.add("ql-bubble"),r}return _(S,[{key:"extendToolbar",value:function(R){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),o.default)}}]),S})(s.default);m.DEFAULTS=(0,g.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=(function(A){u(S,A);function S(I,R){f(this,S);var r=e(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,I,R));return r.quill.on(c.default.events.EDITOR_CHANGE,function(D,B,G,j){if(D===c.default.events.SELECTION_CHANGE)if(B!=null&&B.length>0&&j===c.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var rt=r.quill.getLines(B.index,B.length);if(rt.length===1)r.position(r.quill.getBounds(B));else{var it=rt[rt.length-1],Et=r.quill.getIndex(it),pt=Math.min(it.length()-1,B.index+B.length-Et),tt=r.quill.getBounds(new n.Range(Et,pt));r.position(tt)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return _(S,[{key:"listen",value:function(){var R=this;x(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var r=R.quill.getSelection();r!=null&&R.position(R.quill.getBounds(r))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var r=x(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,R),D=this.root.querySelector(".ql-tooltip-arrow");if(D.style.marginLeft="",r===0)return r;D.style.marginLeft=-1*r-D.offsetWidth/2+"px"}}]),S})(d.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),b.BubbleTooltip=w,b.default=m}),(function(P,b,T){P.exports=T(63)})]).default})},9368(xt,P,b){P.formatArgs=x,P.save=_,P.load=a,P.useColors=T,P.storage=g(),P.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
124CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function T(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function x(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+xt.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;c.splice(1,0,d,"color: inherit");let s=0,n=0;c[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(s++,i==="%c"&&(n=s))}),c.splice(n,0,d)}P.log=console.debug||console.log||(()=>{});function _(c){try{c?P.storage.setItem("debug",c):P.storage.removeItem("debug")}catch{}}function a(){let c;try{c=P.storage.getItem("debug")||P.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function g(){try{return localStorage}catch{}}xt.exports=b(1703)(P);const{formatters:v}=xt.exports;v.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}},1703(xt,P,b){function T(x){a.debug=a,a.default=a,a.coerce=n,a.disable=d,a.enable=v,a.enabled=s,a.humanize=b(6585),a.destroy=i,Object.keys(x).forEach(o=>{a[o]=x[o]}),a.names=[],a.skips=[],a.formatters={};function _(o){let y=0;for(let f=0;f<o.length;f++)y=(y<<5)-y+o.charCodeAt(f),y|=0;return a.colors[Math.abs(y)%a.colors.length]}a.selectColor=_;function a(o){let y,f=null,e,u;function h(...m){if(!h.enabled)return;const w=h,A=Number(new Date),S=A-(y||A);w.diff=S,w.prev=y,w.curr=A,y=A,m[0]=a.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let I=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(r,D)=>{if(r==="%%")return"%";I++;const B=a.formatters[D];if(typeof B=="function"){const G=m[I];r=B.call(w,G),m.splice(I,1),I--}return r}),a.formatArgs.call(w,m),(w.log||a.log).apply(w,m)}return h.namespace=o,h.useColors=a.useColors(),h.color=a.selectColor(o),h.extend=g,h.destroy=a.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(e!==a.namespaces&&(e=a.namespaces,u=a.enabled(o)),u),set:m=>{f=m}}),typeof a.init=="function"&&a.init(h),h}function g(o,y){const f=a(this.namespace+(typeof y>"u"?":":y)+o);return f.log=this.log,f}function v(o){a.save(o),a.namespaces=o,a.names=[],a.skips=[];const y=(typeof o=="string"?o:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of y)f[0]==="-"?a.skips.push(f.slice(1)):a.names.push(f)}function c(o,y){let f=0,e=0,u=-1,h=0;for(;f<o.length;)if(e<y.length&&(y[e]===o[f]||y[e]==="*"))y[e]==="*"?(u=e,h=f,e++):(f++,e++);else if(u!==-1)e=u+1,h++,f=h;else return!1;for(;e<y.length&&y[e]==="*";)e++;return e===y.length}function d(){const o=[...a.names,...a.skips.map(y=>"-"+y)].join(",");return a.enable(""),o}function s(o){for(const y of a.skips)if(c(o,y))return!1;for(const y of a.names)if(c(o,y))return!0;return!1}function n(o){return o instanceof Error?o.stack||o.message:o}function i(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}xt.exports=T},852(xt,P,b){P.formatArgs=x,P.save=_,P.load=a,P.useColors=T,P.storage=g(),P.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),P.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
124CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function T(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function x(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+xt.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;c.splice(1,0,d,"color: inherit");let s=0,n=0;c[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(s++,i==="%c"&&(n=s))}),c.splice(n,0,d)}P.log=console.debug||console.log||(()=>{});function _(c){try{c?P.storage.setItem("debug",c):P.storage.removeItem("debug")}catch{}}function a(){let c;try{c=P.storage.getItem("debug")||P.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function g(){try{return localStorage}catch{}}xt.exports=b(3995)(P);const{formatters:v}=xt.exports;v.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}},3995(xt,P,b){function T(x){a.debug=a,a.default=a,a.coerce=n,a.disable=d,a.enable=v,a.enabled=s,a.humanize=b(6585),a.destroy=i,Object.keys(x).forEach(o=>{a[o]=x[o]}),a.names=[],a.skips=[],a.formatters={};function _(o){let y=0;for(let f=0;f<o.length;f++)y=(y<<5)-y+o.charCodeAt(f),y|=0;return a.colors[Math.abs(y)%a.colors.length]}a.selectColor=_;function a(o){let y,f=null,e,u;function h(...m){if(!h.enabled)return;const w=h,A=Number(new Date),S=A-(y||A);w.diff=S,w.prev=y,w.curr=A,y=A,m[0]=a.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let I=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(r,D)=>{if(r==="%%")return"%";I++;const B=a.formatters[D];if(typeof B=="function"){const G=m[I];r=B.call(w,G),m.splice(I,1),I--}return r}),a.formatArgs.call(w,m),(w.log||a.log).apply(w,m)}return h.namespace=o,h.useColors=a.useColors(),h.color=a.selectColor(o),h.extend=g,h.destroy=a.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(e!==a.namespaces&&(e=a.namespaces,u=a.enabled(o)),u),set:m=>{f=m}}),typeof a.init=="function"&&a.init(h),h}function g(o,y){const f=a(this.namespace+(typeof y>"u"?":":y)+o);return f.log=this.log,f}function v(o){a.save(o),a.namespaces=o,a.names=[],a.skips=[];const y=(typeof o=="string"?o:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const f of y)f[0]==="-"?a.skips.push(f.slice(1)):a.names.push(f)}function c(o,y){let f=0,e=0,u=-1,h=0;for(;f<o.length;)if(e<y.length&&(y[e]===o[f]||y[e]==="*"))y[e]==="*"?(u=e,h=f,e++):(f++,e++);else if(u!==-1)e=u+1,h++,f=h;else return!1;for(;e<y.length&&y[e]==="*";)e++;return e===y.length}function d(){const o=[...a.names,...a.skips.map(y=>"-"+y)].join(",");return a.enable(""),o}function s(o){for(const y of a.skips)if(c(o,y))return!1;for(const y of a.names)if(c(o,y))return!0;return!1}function n(o){return o instanceof Error?o.stack||o.message:o}function i(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}xt.exports=T},5475(xt,P,b){var T,x,_;/**
125* Timeago is a jQuery plugin that makes it easy to support automatically
126* updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
127*
128* @name timeago
129* @version 1.6.7
130* @requires jQuery >=1.5.0 <4.0
131* @author Ryan McGeary
132* @license MIT License - http://www.opensource.org/licenses/mit-license.php
133*
134* For usage and examples, visit:
135* http://timeago.yarp.com/
136*
137* Copyright (c) 2008-2019, Ryan McGeary (ryan -[at]- mcgeary [*dot*] org)
138*/(function(a){x=[b(4692)],T=a,_=typeof T=="function"?T.apply(P,x):T,_!==void 0&&(xt.exports=_)})(function(a){a.timeago=function(i){return i instanceof Date?s(i):s(typeof i=="string"?a.timeago.parse(i):typeof i=="number"?new Date(i):a.timeago.datetime(i))};var g=a.timeago;a.extend(a.timeago,{settings:{refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,autoDispose:!0,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",inPast:"any moment now",
138seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",wordSeparator:" ",numbers:[]}},inWords:function(i){if(!this.settings.allowPast&&!this.settings.allowFuture)throw"timeago allowPast and allowFuture settings can not both be set to false.";var o=this.settings.strings,y=o.prefixAgo,f=o.suffixAgo;if(this.settings.allowFuture&&i<0&&(y=o.prefixFromNow,f=o.suffixFromNow),!this.settings.allowPast&&i>=0)return this.settings.strings.inPast;var e=Math.abs(i)/1e3,u=e/60,h=u/60,m=h/24,w=m/365;function A(R,r){var D=a.isFunction(R)?R(r,i):R,B=o.numbers&&o.numbers[r]||r;return D.replace(/%d/i,B)}var S=e<45&&A(o.seconds,Math.round(e))||e<90&&A(o.minute,1)||u<45&&A(o.minutes,Math.round(u))||u<90&&A(o.hour,1)||h<24&&A(o.hours,Math.round(h))||h<42&&A(o.day,1)||m<30&&A(o.days,Math.round(m))||m<45&&A(o.month,1)||m<365&&A(o.months,Math.round(m/30))||w<1.5&&A(o.year,1)||A(o.years,Math.round(w)),I=o.wordSeparator||"";return o.wordSeparator===void 0&&(I=" "),a.trim([y,S,f].join(I))},parse:function(i){var o=a.trim(i);return o=o.replace(/\.\d+/,""),o=o.replace(/-/,"/").replace(/-/,"/"),o=o.replace(/T/," ").replace(/Z/," UTC"),o=o.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),o=o.replace(/([\+\-]\d\d)$/," $100"),new Date(o)},datetime:function(i){var o=g.isTime(i)?a(i).attr("datetime"):a(i).attr("title");return g.parse(o)},isTime:function(i){return a(i).get(0).tagName.toLowerCase()==="time"}});var v={init:function(){v.dispose.call(this);var i=a.proxy(c,this);i();var o=g.settings;o.refreshMillis>0&&(this._timeagoInterval=setInterval(i,o.refreshMillis))},update:function(i){var o=i instanceof Date?i:g.parse(i);a(this).data("timeago",{datetime:o}),g.settings.localeTitle&&a(this).attr("title",o.toLocaleString()),c.apply(this)},updateFromDOM:function(){a(this).data("timeago",{datetime:g.parse(g.isTime(this)?a(this).attr("datetime"):a(this).attr("title"))}),c.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};a.fn.timeago=function(i,o){var y=i?v[i]:v.init;if(!y)throw new Error("Unknown function name '"+i+"' for timeago");return this.each(function(){y.call(this,o)}),this};function c(){var i=g.settings;if(i.autoDispose&&!a.contains(document.documentElement,this))return a(this).timeago("dispose"),this;var o=d(this);return isNaN(o.datetime)||(i.cutoff===0||Math.abs(n(o.datetime))<i.cutoff?a(this).text(s(o.datetime)):a(this).attr("title").length>0&&a(this).text(a(this).attr("title"))),this}function d(i){if(i=a(i),!i.data("timeago")){i.data("timeago",{datetime:g.datetime(i)});var o=a.trim(i.text());g.settings.localeTitle?i.attr("title",i.data("timeago").datetime.toLocaleString()):o.length>0&&!(g.isTime(i)&&i.attr("title"))&&i.attr("title",o)}return i.data("timeago")}function s(i){return g.inWords(n(i))}function n(i){return new Date().getTime()-i.getTime()}document.createElement("abbr"),document.createElement("time")})},8489(xt,P,b){const T={"./jquery.timeago.af":[5302,[3071]],"./jquery.timeago.af.js":[5302,[3071]],"./jquery.timeago.am":[9755,[4892]],"./jquery.timeago.am.js":[9755,[4892]],"./jquery.timeago.ar":[7546,[7857]],"./jquery.timeago.ar.js":[7546,[7857]],"./jquery.timeago.az":[8754,[643]],"./jquery.timeago.az-short":[8169,[8810]],"./jquery.timeago.az-short.js":[8169,[8810]],"./jquery.timeago.az.js":[8754,[643]],"./jquery.timeago.be":[7092,[9493]],"./jquery.timeago.be.js":[7092,[9493]],"./jquery.timeago.bg":[9486,[1463]],"./jquery.timeago.bg.js":[9486,[1463]],"./jquery.timeago.bs":[8594,[851]],"./jquery.timeago.bs.js":[8594,[851]],"./jquery.timeago.ca":[9473,[8058]],"./jquery.timeago.ca.js":[9473,[8058]],"./jquery.timeago.cs":[495,[3880]],"./jquery.timeago.cs.js":[495,[3880]],"./jquery.timeago.cy":[2313,[7666]],"./jquery.timeago.cy.js":[2313,[7666]],"./jquery.timeago.da":[8250,[7379]],"./jquery.timeago.da.js":[8250,[7379]],"./jquery.timeago.de":[2294,[6551]],"./jquery.timeago.de-short":[4197,[9366]],"./jquery.timeago.de-short.js":[4197,[9366]],"./jquery.timeago.de.js":[2294,[6551]],"./jquery.timeago.dv":[2051,[1628]],"./jquery.timeago.dv.js":[2051,[1628]],"./jquery.timeago.el":[4544,[2681]],"./jquery.timeago.el.js":[4544,[2681]],"./jquery.timeago.en":[2762,[9883]],"./jquery.timeago.en-short":[8081,[6914]],"./jquery.timeago.en-short.js":[8081,[6914]],"./jquery.timeago.en.js":[2762,[9883]],"./jquery.timeago.es":[5901,[6478]],"./jquery.timeago.es-short":[942,[9871]],"./jquery.timeago.es-short.js":[942,[9871]],"./jquery.timeago.es.js":[5901,[6478]],"./jquery.timeago.et":[3464,[4657]],"./jquery.timeago.et.js":[3464,[4657]],"./jquery.timeago.eu":[271,[264]],"./jquery.timeago.eu.js":[271,[264]],"./jquery.timeago.fa":[6380,[6029]],"./jquery.timeago.fa-short":[3255,[1504]],"./jquery.timeago.fa-short.js":[3255,[1504]],"./jquery.timeago.fa.js":[6380,[6029]],"./jquery.timeago.fi":[6708,[4053]],"./jquery.timeago.fi.js":[6708,[4053]],"./jquery.timeago.fr":[3205,[6470]],"./jquery.timeago.fr-short":[310,[1559]],"./jquery.timeago.fr-short.js":[310,[1559]],"./jquery.timeago.fr.js":[3205,[6470]],"./jquery.timeago.gl":[4834,[8963]],"./jquery.timeago.gl.js":[4834,[8963]],"./jquery.timeago.he":[4674,[3419]],"./jquery.timeago.he.js":[4674,[3419]],"./jquery.timeago.hr":[859,[7668]],"./jquery.timeago.hr.js":[859,[7668]],"./jquery.timeago.hu":[7426,[4859]],"./jquery.timeago.hu.js":[7426,[4859]],"./jquery.timeago.hy":[6662,[7287]],"./jquery.timeago.hy.js":[6662,[7287]],"./jquery.timeago.id":[4836,[9173]],"./jquery.timeago.id.js":[4836,[9173]],"./jquery.timeago.is":[5553,[1530]],"./jquery.timeago.is.js":[5553,[1530]],"./jquery.timeago.it":[484,[7733]],"./jquery.timeago.it-sh
138ort":[2895,[9256]],"./jquery.timeago.it-short.js":[2895,[9256]],"./jquery.timeago.it.js":[484,[7733]],"./jquery.timeago.ja":[6544,[7273]],"./jquery.timeago.ja.js":[6544,[7273]],"./jquery.timeago.jv":[6565,[2118]],"./jquery.timeago.jv.js":[6565,[2118]],"./jquery.timeago.ko":[7339,[9484]],"./jquery.timeago.ko.js":[7339,[9484]],"./jquery.timeago.ky":[577,[2586]],"./jquery.timeago.ky.js":[577,[2586]],"./jquery.timeago.lt":[7261,[8502]],"./jquery.timeago.lt.js":[7261,[8502]],"./jquery.timeago.lv":[8667,[6692]],"./jquery.timeago.lv.js":[8667,[6692]],"./jquery.timeago.mk":[3485,[8126]],"./jquery.timeago.mk.js":[3485,[8126]],"./jquery.timeago.nl":[6247,[6992]],"./jquery.timeago.nl.js":[6247,[6992]],"./jquery.timeago.no":[2522,[9384]],"./jquery.timeago.no.js":[2522,[9384]],"./jquery.timeago.pl":[8161,[7250]],"./jquery.timeago.pl.js":[8161,[7250]],"./jquery.timeago.pt":[4825,[522]],"./jquery.timeago.pt-br":[7138,[7499]],"./jquery.timeago.pt-br-short":[2505,[4850]],"./jquery.timeago.pt-br-short.js":[2505,[4850]],"./jquery.timeago.pt-br.js":[7138,[7499]],"./jquery.timeago.pt-short":[6482,[7299]],"./jquery.timeago.pt-short.js":[6482,[7299]],"./jquery.timeago.pt.js":[4825,[522]],"./jquery.timeago.ro":[7958,[3775]],"./jquery.timeago.ro.js":[7958,[3775]],"./jquery.timeago.rs":[8306,[4227]],"./jquery.timeago.rs.js":[8306,[4227]],"./jquery.timeago.ru":[9172,[1429]],"./jquery.timeago.ru.js":[9172,[1429]],"./jquery.timeago.rw":[3054,[7047]],"./jquery.timeago.rw.js":[3054,[7047]],"./jquery.timeago.si":[2329,[898]],"./jquery.timeago.si.js":[2329,[898]],"./jquery.timeago.sk":[3527,[5280]],"./jquery.timeago.sk.js":[3527,[5280]],"./jquery.timeago.sl":[3846,[4303]],"./jquery.timeago.sl.js":[3846,[4303]],"./jquery.timeago.sq":[5313,[2874]],"./jquery.timeago.sq.js":[5313,[2874]],"./jquery.timeago.sr":[216,[65]],"./jquery.timeago.sr.js":[216,[65]],"./jquery.timeago.sv":[7716,[9077]],"./jquery.timeago.sv.js":[7716,[9077]],"./jquery.timeago.th":[3825,[4514]],"./jquery.timeago.th.js":[3825,[4514]],"./jquery.timeago.tr":[4119,[9288]],"./jquery.timeago.tr-short":[2108,[5045]],"./jquery.timeago.tr-short.js":[2108,[5045]],"./jquery.timeago.tr.js":[4119,[9288]],"./jquery.timeago.uk":[2117,[6582]],"./jquery.timeago.uk.js":[2117,[6582]],"./jquery.timeago.ur":[174,[2663]],"./jquery.timeago.ur.js":[174,[2663]],"./jquery.timeago.uz":[7046,[831]],"./jquery.timeago.uz.js":[7046,[831]],"./jquery.timeago.vi":[5188,[7253]],"./jquery.timeago.vi.js":[5188,[7253]],"./jquery.timeago.zh-CN":[5529,[7482]],"./jquery.timeago.zh-CN.js":[5529,[7482]],"./jquery.timeago.zh-TW":[4493,[5254]],"./jquery.timeago.zh-TW.js":[4493,[5254]]};function x(_){try{if(!b.o(T,_))return Promise.resolve().then(()=>{const v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v})}catch(v){return Promise.reject(v)}const a=T[_],g=a[0];return b.e(a[1][0]).then(()=>b.t(g,23))}x.keys=()=>Object.keys(T),x.id=8489,xt.exports=x},4110(xt,P){"use strict";var b;b={value:!0},P.hasCORS=void 0;let T=!1;try{T=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}P.hasCORS=T},8661(xt,P){"use strict";var b;b={value:!0},P.encode=T,P.decode=x;function T(_){let a="";for(let g in _)_.hasOwnProperty(g)&&(a.length&&(a+="&"),a+=encodeURIComponent(g)+"="+encodeURIComponent(_[g]));return a}function x(_){let a={},g=_.split("&");for(let v=0,c=g.length;v<c;v++){let d=g[v].split("=");a[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return a}},1015(xt,P){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.parse=x;const b=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,T=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function x(g){if(g.length>8e3)throw"URI too long";const v=g,c=g.indexOf("["),d=g.indexOf("]");c!=-1&&d!=-1&&(g=g.substring(0,c)+g.substring(c,d).replace(/:/g,";")+g.substring(d,g.length));let s=b.exec(g||""),n={},i=14;for(;i--;)n[T[i]]=s[i]||"";return c!=-1&&d!=-1&&(n.source=v,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=_(n,n.path),n.queryKey=a(n,n.query),n}function _(g,v){const c=/\/{2,9}/g,d=v.replace(c,"/").split("/");return(v.slice(0,1)=="/"||v.length===0)&&d.splice(0,1),v.slice(-1)=="/"&&d.splice(d.length-1,1),d}function a(g,v){const c={};return v.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,s,n){s&&(c[s]=n)}),c}},4624(xt,P){"use strict";
138Object.defineProperty(P,"__esModule",{value:!0}),P.defaultBinaryType=P.globalThisShim=P.nextTick=void 0,P.createCookieJar=b,P.nextTick=typeof Promise=="function"&&typeof Promise.resolve=="function"?x=>Promise.resolve().then(x):(x,_)=>_(x,0),P.globalThisShim=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),P.defaultBinaryType="arraybuffer";function b(){}},4956(xt,P,b){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.WebTransport=P.WebSocket=P.NodeWebSocket=P.XHR=P.NodeXHR=P.Fetch=P.nextTick=P.parse=P.installTimerFunctions=P.transports=P.TransportError=P.Transport=P.protocol=P.Socket=void 0;const T=b(8223);Object.defineProperty(P,"Socket",{enumerable:!0,get:function(){return T.Socket}}),P.protocol=T.Socket.protocol;var x=b(4689);Object.defineProperty(P,"Transport",{enumerable:!0,get:function(){return x.Transport}}),Object.defineProperty(P,"TransportError",{enumerable:!0,get:function(){return x.TransportError}});var _=b(9419);Object.defineProperty(P,"transports",{enumerable:!0,get:function(){return _.transports}});var a=b(5374);Object.defineProperty(P,"installTimerFunctions",{enumerable:!0,get:function(){return a.installTimerFunctions}});var g=b(1015);Object.defineProperty(P,"parse",{enumerable:!0,get:function(){return g.parse}});var v=b(4624);Object.defineProperty(P,"nextTick",{enumerable:!0,get:function(){return v.nextTick}});var c=b(8209);Object.defineProperty(P,"Fetch",{enumerable:!0,get:function(){return c.Fetch}});var d=b(2071);Object.defineProperty(P,"NodeXHR",{enumerable:!0,get:function(){return d.XHR}});var s=b(2071);Object.defineProperty(P,"XHR",{enumerable:!0,get:function(){return s.XHR}});var n=b(8716);Object.defineProperty(P,"NodeWebSocket",{enumerable:!0,get:function(){return n.WS}});var i=b(8716);Object.defineProperty(P,"WebSocket",{enumerable:!0,get:function(){return i.WS}});var o=b(4480);Object.defineProperty(P,"WebTransport",{enumerable:!0,get:function(){return o.WT}})},8223(xt,P,b){"use strict";var T=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(P,"__esModule",{value:!0}),P.Socket=void 0;const x=b(9419),_=b(5374),a=b(8661),g=b(1015),v=b(4454),c=b(6376),d=b(4624),n=(0,T(b(6617)).default)("engine.io-client:socket"),i=typeof addEventListener=="function"&&typeof removeEventListener=="function",o=[];i&&addEventListener("offline",()=>{n("closing %d connection(s) because the network was lost",o.length),o.forEach(f=>f())},!1);class y extends v.Emitter{constructor(e,u={}){var h,m;if(super(),this.binaryType=d.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._upgrades=[],this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(u=e,e=null),e){const w=(0,g.parse)(e);u.hostname=w.host,u.secure=w.protocol==="https"||w.protocol==="wss",u.port=w.port,w.query&&(u.query=w.query)}else u.host&&(u.hostname=(0,g.parse)(u.host).host);if((0,_.installTimerFunctions)(this,u),this.secure=u.secure!=null?u.secure:typeof location<"u"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.hostname=u.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=u.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),u.transportImplementations&&u.transports)throw new Error("specifying both 'transportImplementations' and 'transports' options is not supported");u.transportImplementations||!((h=u.transports)===null||h===void 0)&&h.length&&typeof u.transports[0]=="function"?(this.transports=[],this._transportsByName=Object.create(null),((m=u.transportImplementations)!==null&&m!==void 0?m:u.transports).forEach(w=>{const A=w.prototype.name;this.transports.push(A),this._transportsByName[A]=w})):(this.transports=u.transports?[...u.transports]:["polling","websocket","webtransport"],this._transportsByName=x.transports),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},u),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,a.decode)(this.opts.query)),i&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(n("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},o.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,d.createCookieJar)()),this._open()}createTransport(e){n('creating transport "%s"',e);const u=Object.assign({},this.opts.query);u.EIO=c.protocol,u.transport=e,this.id&&(u.sid=this.id);const h=Object.assign({},this.opts,{query:u,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return n("options: %j",h),new this._transportsByName[e](h)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&y.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const u=this.createTransport(e);u.open(),this.setTransport(u)}setTransport(e){n("setting transport %s",e.name),this.transport&&(n("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",u=>this._onClose("transport close",u))}_probe(e){n('probing transport "%s"',e);let u=this.createTransport(e),h=!1;y.priorWebsocketSuccess=!1;const m=()=>{h||(n('probe transport "%s" opened',e),u.send([{type:"ping",data:"probe"}]),u.once("packet",D=>{if(!h)if(D.type==="pong"&&D.data==="probe"){if(n('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",u),!u)return;y.priorWebsocketSuccess=u.name==="websocket",n('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{h||this.readyState!=="closed"&&(n("changing transport and sending upgrade packet"),r(),this.setTransport(u),u.send([{type:"upgrade"}
138]),this.emitReserved("upgrade",u),u=null,this.upgrading=!1,this.flush())})}else{n('probe transport "%s" failed',e);const B=new Error("probe error");B.transport=u.name,this.emitReserved("upgradeError",B)}}))};function w(){h||(h=!0,r(),u.close(),u=null)}const A=D=>{const B=new Error("probe error: "+D);B.transport=u.name,w(),n('probe transport "%s" failed because of error: %s',e,D),this.emitReserved("upgradeError",B)};function S(){A("transport closed")}function I(){A("socket closed")}function R(D){u&&D.name!==u.name&&(n('"%s" works - aborting "%s"',D.name,u.name),w())}const r=()=>{u.removeListener("open",m),u.removeListener("error",A),u.removeListener("close",S),this.off("close",I),this.off("upgrading",R)};u.once("open",m),u.once("error",A),u.once("close",S),this.once("close",I),this.once("upgrading",R),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{h||u.open()},200):u.open()}onOpen(){if(n("socket open"),this.readyState="open",y.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){n("starting upgrade probes");for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(n('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const u=new Error("server error");u.code=e.data,this._onError(u);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}else n('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._upgrades=this._filterUpgrades(e.upgrades),this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();n("flushing %d packets in socket",e.length),this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let u=1;for(let h=0;h<this.writeBuffer.length;h++){const m=this.writeBuffer[h].data;if(m&&(u+=(0,_.byteLength)(m)),h>0&&u>this._maxPayload)return n("only send %d out of %d packets",h,this.writeBuffer.length),this.writeBuffer.slice(0,h);u+=2}return n("payload size is %d (max: %d)",u,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(n("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,d.nextTick)(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,u,h){return this._sendPacket("message",e,u,h),this}send(e,u,h){return this._sendPacket("message",e,u,h),this}_sendPacket(e,u,h,m){if(typeof u=="function"&&(m=u,u=void 0),typeof h=="function"&&(m=h,h=null),this.readyState==="closing"||this.readyState==="closed")return;h=h||{},h.compress=h.compress!==!1;const w={type:e,data:u,options:h};this.emitReserved("packetCreate",w),this.writeBuffer.push(w),m&&this.once("flush",m),this.flush()}close(){const e=()=>{this._onClose("forced close"),n("socket closing - telling transport to close"),this.transport.close()},u=()=>{this.off("upgrade",u),this.off("upgradeError",u),e()},h=()=>{this.once("upgrade",u),this.once("upgradeError",u)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?h():e()}):this.upgrading?h():e()),this}_onError(e){if(n("socket error %j",e),y.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>
1381&&this.readyState==="opening")return n("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(n('socket close with reason: "%s"',e),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),i&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const h=o.indexOf(this._offlineEventListener);h!==-1&&(n("removing listener for the 'offline' event"),o.splice(h,1))}this.readyState="closed",this.id=null,this.emitReserved("close",e,u),this.writeBuffer=[],this._prevBufferLen=0}}_filterUpgrades(e){const u=[];for(let h=0;h<e.length;h++)~this.transports.indexOf(e[h])&&u.push(e[h]);return u}}P.Socket=y,y.protocol=c.protocol},4689(xt,P,b){"use strict";var T=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(P,"__esModule",{value:!0}),P.Transport=P.TransportError=void 0;const x=b(6376),_=b(4454),a=b(5374),g=b(8661),c=(0,T(b(6617)).default)("engine.io-client:transport");class d extends Error{constructor(i,o,y){super(i),this.description=o,this.context=y,this.type="TransportError"}}P.TransportError=d;class s extends _.Emitter{constructor(i){super(),this.writable=!1,(0,a.installTimerFunctions)(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,o,y){return super.emitReserved("error",new d(i,o,y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"?this.write(i):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const o=(0,x.decodePacket)(i,this.socket.binaryType);this.onPacket(o)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,o={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(o)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const o=(0,g.encode)(i);return o.length?"?"+o:""}}P.Transport=s},9419(xt,P,b){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.transports=void 0;const T=b(2071),x=b(8716),_=b(4480);P.transports={websocket:x.WS,webtransport:_.WT,polling:T.XHR}},8209(xt,P,b){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.Fetch=void 0;const T=b(528);class x extends T.Polling{doPoll(){this._fetch().then(a=>{if(!a.ok)return this.onError("fetch read error",a.status,a);a.text().then(g=>this.onData(g))}).catch(a=>{this.onError("fetch read error",a)})}doWrite(a,g){this._fetch(a).then(v=>{if(!v.ok)return this.onError("fetch write error",v.status,v);g()}).catch(v=>{this.onError("fetch write error",v)})}_fetch(a){var g;const v=a!==void 0,c=new Headers(this.opts.extraHeaders);return v&&c.set("content-type","text/plain;charset=UTF-8"),(g=this.socket._cookieJar)===null||g===void 0||g.appendCookies(c),fetch(this.uri(),{method:v?"POST":"GET",body:v?a:null,headers:c,credentials:this.opts.withCredentials?"include":"omit"}).then(d=>{var s;return(s=this.socket._cookieJar)===null||s===void 0||s.parseCookies(d.headers.getSetCookie()),d})}}P.Fetch=x},2071(xt,P,b){"use strict";var T=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(P,"__esModule",{value:!0}),P.XHR=P.Request=P.BaseXHR=void 0;const x=b(528),_=b(4454),a=b(5374),g=b(4624),v=b(4110),d=(0,T(b(6617)).default)("engine.io-client:polling");function s(){}class n extends x.Polling{constructor(h){if(super(h),typeof location<"u"){const m=location.protocol==="https:";let w=location.port;w||(w=m?"443":"80"),this.xd=typeof location<"u"&&h.hostname!==location.hostname||w!==h.port}}doWrite(h,m){const w=this.request({method:"POST",data:h});w.on("success",m),w.on("error",(A,S)=>{this.onError("xhr post error",A,S)})}doPoll(){d("xhr poll");const h=this.request();h.on("data",this.onData.bind(this)),h.on("error",(m,w)=>{this.onError("xhr poll error",m,w)}),this.pollXhr=h}}P.BaseXHR=n;
138class i extends _.Emitter{constructor(h,m,w){super(),this.createRequest=h,(0,a.installTimerFunctions)(this,w),this._opts=w,this._method=w.method||"GET",this._uri=m,this._data=w.data!==void 0?w.data:null,this._create()}_create(){var h;const m=(0,a.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");m.xdomain=!!this._opts.xd;const w=this._xhr=this.createRequest(m);try{d("xhr open %s: %s",this._method,this._uri),w.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){w.setDisableHeaderCheck&&w.setDisableHeaderCheck(!0);for(let A in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(A)&&w.setRequestHeader(A,this._opts.extraHeaders[A])}}catch{}if(this._method==="POST")try{w.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{w.setRequestHeader("Accept","*/*")}catch{}(h=this._opts.cookieJar)===null||h===void 0||h.addCookies(w),"withCredentials"in w&&(w.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(w.timeout=this._opts.requestTimeout),w.onreadystatechange=()=>{var A;w.readyState===3&&((A=this._opts.cookieJar)===null||A===void 0||A.parseCookies(w.getResponseHeader("set-cookie"))),w.readyState===4&&(w.status===200||w.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof w.status=="number"?w.status:0)},0))},d("xhr data %s",this._data),w.send(this._data)}catch(A){this.setTimeoutFn(()=>{this._onError(A)},0);return}typeof document<"u"&&(this._index=i.requestsCount++,i.requests[this._index]=this)}_onError(h){this.emitReserved("error",h,this._xhr),this._cleanup(!0)}_cleanup(h){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=s,h)try{this._xhr.abort()}catch{}typeof document<"u"&&delete i.requests[this._index],this._xhr=null}}_onLoad(){const h=this._xhr.responseText;h!==null&&(this.emitReserved("data",h),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(P.Request=i,i.requestsCount=0,i.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",o);else if(typeof addEventListener=="function"){const u="onpagehide"in g.globalThisShim?"pagehide":"unload";addEventListener(u,o,!1)}}function o(){for(let u in i.requests)i.requests.hasOwnProperty(u)&&i.requests[u].abort()}const y=(function(){const u=e({xdomain:!1});return u&&u.responseType!==null})();class f extends n{constructor(h){super(h);const m=h&&h.forceBase64;this.supportsBinary=y&&!m}request(h={}){return Object.assign(h,{xd:this.xd},this.opts),new i(e,this.uri(),h)}}P.XHR=f;function e(u){const h=u.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!h||v.hasCORS))return new XMLHttpRequest}catch{}if(!h)try{return new g.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}},528(xt,P,b){"use strict";var T=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(P,"__esModule",{value:!0}),P.Polling=void 0;const x=b(4689),_=b(5374),a=b(6376),v=(0,T(b(6617)).default)("engine.io-client:polling");class c extends x.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(s){this.readyState="pausing";const n=()=>{v("paused"),this.readyState="paused",s()};if(this._polling||!this.writable){let i=0;this._polling&&(v("we are currently polling - waiting to pause"),i++,this.once("pollComplete",function(){v("pre-pause polling complete"),--i||n()})),this.writable||(v("we are currently writing - waiting to pause"),i++,this.once("drain",function(){v("pre-pause writing complete"),--i||n()}))}else n()}_poll(){v("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(s){v("polling got data %s",s);const n=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(i)};(0,a.decodePayload)(s,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this._poll():v('ignoring poll - transport state "%s"',this.readyState))}doClose(){const s=()=>{v("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(v("transport open - closing"),s()):(v("transport not open - deferring close"),this.once("open",s))}write(s){this.writable=!1,(0,a.encodePayload)(s,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const s=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=(0,_.randomString)()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(s,n)}}P.Polling=c},8716(xt,P,b){"use strict";var T=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};
138Object.defineProperty(P,"__esModule",{value:!0}),P.WS=P.BaseWS=void 0;const x=b(4689),_=b(5374),a=b(6376),g=b(4624),c=(0,T(b(6617)).default)("engine.io-client:websocket"),d=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class s extends x.Transport{get name(){return"websocket"}doOpen(){const y=this.uri(),f=this.opts.protocols,e=d?{}:(0,_.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(e.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(y,f,e)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=y=>this.onClose({description:"websocket connection closed",context:y}),this.ws.onmessage=y=>this.onData(y.data),this.ws.onerror=y=>this.onError("websocket error",y)}write(y){this.writable=!1;for(let f=0;f<y.length;f++){const e=y[f],u=f===y.length-1;(0,a.encodePacket)(e,this.supportsBinary,h=>{try{this.doWrite(e,h)}catch{c("websocket closed before onclose event")}u&&(0,g.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const y=this.opts.secure?"wss":"ws",f=this.query||{};return this.opts.timestampRequests&&(f[this.opts.timestampParam]=(0,_.randomString)()),this.supportsBinary||(f.b64=1),this.createUri(y,f)}}P.BaseWS=s;const n=g.globalThisShim.WebSocket||g.globalThisShim.MozWebSocket;class i extends s{createSocket(y,f,e){return d?new n(y,f,e):f?new n(y,f):new n(y)}doWrite(y,f){this.ws.send(f)}}P.WS=i},4480(xt,P,b){"use strict";var T=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(P,"__esModule",{value:!0}),P.WT=void 0;const x=b(4689),_=b(4624),a=b(6376),v=(0,T(b(6617)).default)("engine.io-client:webtransport");class c extends x.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(s){return this.emitReserved("error",s)}this._transport.closed.then(()=>{v("transport closed gracefully"),this.onClose()}).catch(s=>{v("transport closed due to %s",s),this.onError("webtransport error",s)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(s=>{const n=(0,a.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=s.readable.pipeThrough(n).getReader(),o=(0,a.createPacketEncoderStream)();o.readable.pipeTo(s.writable),this._writer=o.writable.getWriter();const y=()=>{i.read().then(({done:e,value:u})=>{if(e){v("session is closed");return}v("received chunk: %o",u),this.onPacket(u),y()}).catch(e=>{v("an error occurred while reading: %s",e)})};y();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(s){this.writable=!1;for(let n=0;n<s.length;n++){const i=s[n],o=n===s.length-1;this._writer.write(i).then(()=>{o&&(0,_.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var s;(s=this._transport)===null||s===void 0||s.close()}}P.WT=c},5374(xt,P,b){"use strict";Object.defineProperty(P,"__esModule",{value:!0}),P.pick=x,P.installTimerFunctions=g,P.byteLength=c,P.randomString=s;const T=b(4624);function x(n,...i){return i.reduce((o,y)=>(n.hasOwnProperty(y)&&(o[y]=n[y]),o),{})}const _=T.globalThisShim.setTimeout,a=T.globalThisShim.clearTimeout;function g(n,i){i.useNativeTimers?(n.setTimeoutFn=_.bind(T.globalThisShim),n.clearTimeoutFn=a.bind(T.globalThisShim)):(n.setTimeoutFn=T.globalThisShim.setTimeout.bind(T.globalThisShim),n.clearTimeoutFn=T.globalThisShim.clearTimeout.bind(T.globalThisShim))}const v=1.33;function c(n){return typeof n=="string"?d(n):Math.ceil((n.byteLength||n.size)*v)}function d(n){let i=0,o=0;for(let y=0,f=n.length;y<f;y++)i=n.charCodeAt(y),i<128?o+=1:i<2048?o+=2:i<55296||i>=57344?o+=3:(y++,o+=4);return o}function s(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}},2046(xt,P){"use strict";var b;b={value:!0},P.ERROR_PACKET=P.PACKET_TYPES_REVERSE=P.PACKET_TYPES=void 0;const T=Object.create(null);P.PACKET_TYPES=T,T.open="0",T.close="1",T.ping="2",T.pong="3",T.message="4",T.upgrade="5",T.noop="6";
138const x=Object.create(null);P.PACKET_TYPES_REVERSE=x,Object.keys(T).forEach(a=>{x[T[a]]=a});const _={type:"error",data:"parser error"};P.ERROR_PACKET=_},2745(xt,P){"use strict";var b;b={value:!0},P.decode=b=void 0;const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let g=0;g<T.length;g++)x[T.charCodeAt(g)]=g;b=g=>{let v=new Uint8Array(g),c,d=v.length,s="";for(c=0;c<d;c+=3)s+=T[v[c]>>2],s+=T[(v[c]&3)<<4|v[c+1]>>4],s+=T[(v[c+1]&15)<<2|v[c+2]>>6],s+=T[v[c+2]&63];return d%3===2?s=s.substring(0,s.length-1)+"=":d%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const a=g=>{let v=g.length*.75,c=g.length,d,s=0,n,i,o,y;g[g.length-1]==="="&&(v--,g[g.length-2]==="="&&v--);const f=new ArrayBuffer(v),e=new Uint8Array(f);for(d=0;d<c;d+=4)n=x[g.charCodeAt(d)],i=x[g.charCodeAt(d+1)],o=x[g.charCodeAt(d+2)],y=x[g.charCodeAt(d+3)],e[s++]=n<<2|i>>4,e[s++]=(i&15)<<4|o>>2,e[s++]=(o&3)<<6|y&63;return f};P.decode=a},2662(xt,P,b){"use strict";var T;T={value:!0},P.decodePacket=void 0;const x=b(2046),_=b(2745),a=typeof ArrayBuffer=="function",g=(d,s)=>{if(typeof d!="string")return{type:"message",data:c(d,s)};const n=d.charAt(0);return n==="b"?{type:"message",data:v(d.substring(1),s)}:x.PACKET_TYPES_REVERSE[n]?d.length>1?{type:x.PACKET_TYPES_REVERSE[n],data:d.substring(1)}:{type:x.PACKET_TYPES_REVERSE[n]}:x.ERROR_PACKET};P.decodePacket=g;const v=(d,s)=>{if(a){const n=(0,_.decode)(d);return c(n,s)}else return{base64:!0,data:d}},c=(d,s)=>s==="blob"?d instanceof Blob?d:new Blob([d]):d instanceof ArrayBuffer?d:d.buffer},2686(xt,P,b){"use strict";var T;T={value:!0},P.encodePacket=void 0,P.encodePacketToBinary=n;const x=b(2046),_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",a=typeof ArrayBuffer=="function",g=i=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer,v=({type:i,data:o},y,f)=>_&&o instanceof Blob?y?f(o):c(o,f):a&&(o instanceof ArrayBuffer||g(o))?y?f(o):c(new Blob([o]),f):f(x.PACKET_TYPES[i]+(o||""));P.encodePacket=v;const c=(i,o)=>{const y=new FileReader;return y.onload=function(){const f=y.result.split(",")[1];o("b"+(f||""))},y.readAsDataURL(i)};function d(i){return i instanceof Uint8Array?i:i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}let s;function n(i,o){if(_&&i.data instanceof Blob)return i.data.arrayBuffer().then(d).then(o);if(a&&(i.data instanceof ArrayBuffer||g(i.data)))return o(d(i.data));v(i,!1,y=>{s||(s=new TextEncoder),o(s.encode(y))})}},6376(xt,P,b){"use strict";var T;T={value:!0},P.decodePayload=P.decodePacket=P.encodePayload=P.encodePacket=P.protocol=void 0,P.createPacketEncoderStream=d,P.createPacketDecoderStream=o;const x=b(2686);Object.defineProperty(P,"encodePacket",{enumerable:!0,get:function(){return x.encodePacket}});const _=b(2662);Object.defineProperty(P,"decodePacket",{enumerable:!0,get:function(){return _.decodePacket}});const a=b(2046),g="�",v=(y,f)=>{const e=y.length,u=new Array(e);let h=0;y.forEach((m,w)=>{(0,x.encodePacket)(m,!1,A=>{u[w]=A,++h===e&&f(u.join(g))})})};P.encodePayload=v;const c=(y,f)=>{const e=y.split(g),u=[];for(let h=0;h<e.length;h++){const m=(0,_.decodePacket)(e[h],f);if(u.push(m),m.type==="error")break}return u};P.decodePayload=c;function d(){return new TransformStream({transform(y,f){(0,x.encodePacketToBinary)(y,e=>{const u=e.length;let h;if(u<126)h=new Uint8Array(1),new DataView(h.buffer).setUint8(0,u);else if(u<65536){h=new Uint8Array(3);const m=new DataView(h.buffer);m.setUint8(0,126),m.setUint16(1,u)}else{h=new Uint8Array(9);const m=new DataView(h.buffer);m.setUint8(0,127),m.setBigUint64(1,BigInt(u))}y.data&&typeof y.data!="string"&&(h[0]|=128),f.enqueue(h),f.enqueue(e)}
138)}})}let s;function n(y){return y.reduce((f,e)=>f+e.length,0)}function i(y,f){if(y[0].length===f)return y.shift();const e=new Uint8Array(f);let u=0;for(let h=0;h<f;h++)e[h]=y[0][u++],u===y[0].length&&(y.shift(),u=0);return y.length&&u<y[0].length&&(y[0]=y[0].slice(u)),e}function o(y,f){s||(s=new TextDecoder);const e=[];let u=0,h=-1,m=!1;return new TransformStream({transform(w,A){for(e.push(w);;){if(u===0){if(n(e)<1)break;const S=i(e,1);m=(S[0]&128)===128,h=S[0]&127,h<126?u=3:h===126?u=1:u=2}else if(u===1){if(n(e)<2)break;const S=i(e,2);h=new DataView(S.buffer,S.byteOffset,S.length).getUint16(0),u=3}else if(u===2){if(n(e)<8)break;const S=i(e,8),I=new DataView(S.buffer,S.byteOffset,S.length),R=I.getUint32(0);if(R>Math.pow(2,21)-1){A.enqueue(a.ERROR_PACKET);break}h=R*Math.pow(2,32)+I.getUint32(4),u=3}else{if(n(e)<h)break;const S=i(e,h);A.enqueue((0,_.decodePacket)(m?S:s.decode(S),f)),u=0}if(h===0||h>y){A.enqueue(a.ERROR_PACKET);break}}}})}P.protocol=4},7743(xt,P){"use strict";var b;b={value:!0},P.Backoff=T;function T(x){x=x||{},this.ms=x.min||100,this.max=x.max||1e4,this.factor=x.factor||2,this.jitter=x.jitter>0&&x.jitter<=1?x.jitter:0,this.attempts=0}T.prototype.duration=function(){var x=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var _=Math.random(),a=Math.floor(_*this.jitter*x);x=(Math.floor(_*10)&1)==0?x-a:x+a}return Math.min(x,this.max)|0},T.prototype.reset=function(){this.attempts=0},T.prototype.setMin=function(x){this.ms=x},T.prototype.setMax=function(x){this.max=x},T.prototype.setJitter=function(x){this.jitter=x}},8007(xt,P,b){"use strict";var T=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(P,"__esModule",{value:!0}),P.WebTransport=P.WebSocket=P.NodeWebSocket=P.XHR=P.NodeXHR=P.Fetch=P.Socket=P.Manager=P.protocol=void 0,P.io=d,P.connect=d,P.default=d;const x=b(6894),_=b(3776);Object.defineProperty(P,"Manager",{enumerable:!0,get:function(){return _.Manager}});const a=b(6214);Object.defineProperty(P,"Socket",{enumerable:!0,get:function(){return a.Socket}});const v=(0,T(b(9368)).default)("socket.io-client"),c={};function d(i,o){typeof i=="object"&&(o=i,i=void 0),o=o||{};const y=(0,x.url)(i,o.path||"/socket.io"),f=y.source,e=y.id,u=y.path,h=c[e]&&u in c[e].nsps,m=o.forceNew||o["force new connection"]||o.multiplex===!1||h;let w;return m?(v("ignoring socket cache for %s",f),w=new _.Manager(f,o)):(c[e]||(v("new io instance for %s",f),c[e]=new _.Manager(f,o)),w=c[e]),y.query&&!o.query&&(o.query=y.queryKey),w.socket(y.path,o)}Object.assign(d,{Manager:_.Manager,Socket:a.Socket,io:d,connect:d});var s=b(4627);Object.defineProperty(P,"protocol",{enumerable:!0,get:function(){return s.protocol}});var n=b(4956);Object.defineProperty(P,"Fetch",{enumerable:!0,get:function(){return n.Fetch}}),Object.defineProperty(P,"NodeXHR",{enumerable:!0,get:function(){return n.NodeXHR}}),Object.defineProperty(P,"XHR",{enumerable:!0,get:function(){return n.XHR}}),Object.defineProperty(P,"NodeWebSocket",{enumerable:!0,get:function(){return n.NodeWebSocket}}),Object.defineProperty(P,"WebSocket",{enumerable:!0,get:function(){return n.WebSocket}}),Object.defineProperty(P,"WebTransport",{enumerable:!0,get:function(){return n.WebTransport}}),xt.exports=d},3776(xt,P,b){"use strict";var T=this&&this.__createBinding||(Object.create?(function(f,e,u,h){h===void 0&&(h=u);var m=Object.getOwnPropertyDescriptor(e,u);(!m||("get"in m?!e.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return e[u]}}),Object.defineProperty(f,h,m)}):(function(f,e,u,h){h===void 0&&(h=u),f[h]=e[u]})),x=this&&this.__setModuleDefault||(Object.create?(function(f,e){Object.defineProperty(f,"default",{enumerable:!0,value:e})}):function(f,e){f.default=e}),_=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var e={};if(f!=null)for(var u in f)u!=="default"&&Object.prototype.hasOwnProperty.call(f,u)&&T(e,f,u);return x(e,f),e},a=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(P,"__esModule",{value:!0}),P.Manager=void 0;const g=b(4956),v=b(6214),c=_(b(4627)),d=b(5942),s=b(7743),n=b(4454),o=(0,a(b(9368)).default)("socket.io-client:manager");class y extends n.Emitter{constructor(e,u){var h;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(u=e,e=void 0),u=u||{},u.path=u.path||"/socket.io",this.opts=u,(0,g.installTimerFunctions)(this,u),this.reconnection(u.reconnection!==!1),this.reconnectionAttempts(u.reconnectionAttempts||1/0),this.reconnectionDelay(u.reconnectionDelay||1e3),this.reconnectionDelayMax(u.reconnectionDelayMax||5e3),this.randomizationFactor((h=u.randomizationFactor)!==null&&h!==void 0?h:.5),this.backoff=new s.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(u.timeout==null?2e4:u.timeout),this._readyState="closed",this.uri=e;const m=u.parser||c;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=u.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var u;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(u=this.backoff)===null||u===void 0||u.setMin(e),this)}randomizationFactor(e){var u;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(u=this.backoff)===null||u===void 0||u.setJitter(e),this)}reconnectionDelayMax(e){var u;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(u=this.backoff)===null||u===void 0||u.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(o("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;o("opening %s",this.uri),this.engine=new g.Socket(this.uri,this.opts);const u=this.engine,h=this;this._readyState="opening",this.skipReconnect=!1;const m=(0,d.on)(u,"open",function(){h.onopen(),e&&e()}),w=S=>{o("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",S),e?e(S):this.maybeReconnectOnOpen()},A=(0,d.on)(u,"error",w);if(this._timeout!==!1){const S=this._timeout;o("connect attempt will timeout after %d",S);const I=this.setTimeoutFn(()=>{o("connect attempt timed out after %d",S),m(),w(new Error("timeout")),u.close()},S);this.opts.autoUnref&&I.unref(),this.subs.push(()=>{this.clearTimeoutFn(I)})}return this.subs.push(m),this.subs.push(A),this}connect(e){return this.open(e)}onopen(){o("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push((0,d.on)(e,"ping",this.onping.bind(this)),(0,d.on)(e,"data",this.ondata.bind(this)),(0,d.on)(e,"error",this.onerror.bind(this)),(0,d.on)(e,"close",this.onclose.bind(this)),(0,d.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(u){this.onclose("parse error",u)}}ondecoded(e){(0,g.nextTick)(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){o("error",e),this.emitReserved("error",e)}socket(e,u){let h=this.nsps[e];return h?this._autoConnect&&!h.active&&h.connect():(h=new v.Socket(this,e,u),this.nsps[e]=h),h}_destroy(e){const u=Object.keys(this.nsps);for(const h of u)if(this.nsps[h].active){o("socket %s is still active, skipping close",h);return}this._close()}_packet(e){o("writing packet %j",e);const u=this.encoder.encode(e);for(let h=0;h<u.length;h++)this.engine.write(u[h],e.options)}
138cleanup(){o("cleanup"),this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){o("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,u){var h;o("closed due to %s",e),this.cleanup(),(h=this.engine)===null||h===void 0||h.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,u),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)o("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const u=this.backoff.duration();o("will wait %dms before reconnect attempt",u),this._reconnecting=!0;const h=this.setTimeoutFn(()=>{e.skipReconnect||(o("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(m=>{m?(o("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",m)):(o("reconnect success"),e.onreconnect())}))},u);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}P.Manager=y},5942(xt,P){"use strict";var b;b={value:!0},P.on=T;function T(x,_,a){return x.on(_,a),function(){x.off(_,a)}}},6214(xt,P,b){"use strict";var T=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(P,"__esModule",{value:!0}),P.Socket=void 0;const x=b(4627),_=b(5942),a=b(4454),v=(0,T(b(9368)).default)("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class d extends a.Emitter{constructor(n,i,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=i,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[(0,_.on)(n,"open",this.onopen.bind(this)),(0,_.on)(n,"packet",this.onpacket.bind(this)),(0,_.on)(n,"error",this.onerror.bind(this)),(0,_.on)(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var o,y,f;if(c.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const e={type:x.PacketType.EVENT,data:i};if(e.options={},e.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const w=this.ids++;v("emitting packet with ack id %d",w);const A=i.pop();this._registerAckCallback(w,A),e.id=w}const u=(y=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||y===void 0?void 0:y.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!u?v("discard packet as the transport is not currently writable"):h?(this.notifyOutgoingListeners(e),this.packet(e)):this.sendBuffer.push(e),this.flags={},this}_registerAckCallback(n,i){var o;const y=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(y===void 0){this.acks[n]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let u=0;u<this.sendBuffer.length;u++)this.sendBuffer[u].id===n&&(v("removing packet with ack id %d from the buffer",n),this.sendBuffer.splice(u,1));v("event with ack id %d has timed out after %d ms",n,y),i.call(this,new Error("operation has timed out"))},y),e=(...u)=>{this.io.clearTimeoutFn(f),i.apply(this,u)};e.withError=!0,this.acks[n]=e}emitWithAck(n,...i){return new Promise((o,y)=>{const f=(e,u)=>e?y(e):o(u);
138f.withError=!0,i.push(f),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((y,...f)=>o!==this._queue[0]?v("packet [%d] already acknowledged",o.id):(y!==null?o.tryCount>this._opts.retries&&(v("packet [%d] is discarded after %d tries",o.id,o.tryCount),this._queue.shift(),i&&i(y)):(v("packet [%d] was successfully sent",o.id),this._queue.shift(),i&&i(null,...f)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(n=!1){if(v("draining queue"),!this.connected||this._queue.length===0)return;const i=this._queue[0];if(i.pending&&!n){v("packet [%d] has already been sent and is waiting for an ack",i.id);return}i.pending=!0,i.tryCount++,v("sending packet [%d] (try n\xB0%d)",i.id,i.tryCount),this.flags=i.flags,this.emit.apply(this,i.args)}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){v("transport is open - connecting"),typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:x.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){v("close (%s)",n),this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}
138_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(o=>String(o.id)===n)){const o=this.acks[n];delete this.acks[n],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case x.PacketType.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case x.PacketType.EVENT:case x.PacketType.BINARY_EVENT:this.onevent(n);break;case x.PacketType.ACK:case x.PacketType.BINARY_ACK:this.onack(n);break;case x.PacketType.DISCONNECT:this.ondisconnect();break;case x.PacketType.CONNECT_ERROR:this.destroy();const o=new Error(n.data.message);o.data=n.data.data,this.emitReserved("connect_error",o);break}}onevent(n){const i=n.data||[];v("emitting event %j",i),n.id!=null&&(v("attaching ack callback to event"),i.push(this.ack(n.id))),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const o of i)o.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let o=!1;return function(...y){o||(o=!0,v("sending ack %j",y),i.packet({type:x.PacketType.ACK,id:n,data:y}))}}onack(n){const i=this.acks[n.id];if(typeof i!="function"){v("bad ack %s",n.id);return}delete this.acks[n.id],v("calling ack %s with %j",n.id,n.data),i.withError&&n.data.unshift(null),i.apply(this,n.data)}onconnect(n,i){v("socket connected with id %s",n),this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){v("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(v("performing disconnect (%s)",this.nsp),this.packet({type:x.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let o=0;o<i.length;o++)if(n===i[o])return i.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let o=0;o<i.length;o++)if(n===i[o])return i.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const o of i)o.apply(this,n.data)}}}P.Socket=d},6894(xt,P,b){"use strict";var T=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(P,"__esModule",{value:!0}),P.url=g;const x=b(4956),a=(0,T(b(9368)).default)("socket.io-client:url");function g(v,c="",d){let s=v;d=d||typeof location<"u"&&location,v==null&&(v=d.protocol+"//"+d.host),typeof v=="string"&&(v.charAt(0)==="/"&&(v.charAt(1)==="/"?v=d.protocol+v:v=d.host+v),/^(https?|wss?):\/\//.test(v)||(a("protocol-less url %s",v),typeof d<"u"?v=d.protocol+"//"+v:v="https://"+v),a("parse %s",v),s=(0,x.parse)(v)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const i=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+i+":"+s.port+c,s.href=s.protocol+"://"+i+(d&&d.port===s.port?"":":"+s.port),s}},4926(xt,P,b){"use strict";var T;T={value:!0},P.deconstructPacket=_,P.reconstructPacket=g;const x=b(9133);function _(c){const d=[],s=c.data,n=c;return n.data=a(s,d),n.attachments=d.length,{packet:n,buffers:d}}
138function a(c,d,s){if(!c)return c;if((0,x.isBinary)(c)){const n={_placeholder:!0,num:d.length};return d.push(c),n}else if(Array.isArray(c)){const n=new Array(c.length);for(let i=0;i<c.length;i++)n[i]=a(c[i],d);return n}else if(typeof c=="object"&&!(c instanceof Date)){if(c.toJSON&&typeof c.toJSON=="function"&&!s)return a(c.toJSON(),d,!0);const n={};for(const i in c)Object.prototype.hasOwnProperty.call(c,i)&&(n[i]=a(c[i],d));return n}return c}function g(c,d){return c.data=v(c.data,d),delete c.attachments,c}function v(c,d){if(!c)return c;if(c&&c._placeholder===!0){if(typeof c.num=="number"&&c.num>=0&&c.num<d.length)return d[c.num];throw new Error("illegal attachments")}else if(Array.isArray(c))for(let s=0;s<c.length;s++)c[s]=v(c[s],d);else if(typeof c=="object")for(const s in c)Object.prototype.hasOwnProperty.call(c,s)&&(c[s]=v(c[s],d));return c}},4627(xt,P,b){"use strict";var T=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(P,"__esModule",{value:!0}),P.Decoder=P.Encoder=P.PacketType=P.protocol=void 0,P.isPacketValid=h;const x=b(4454),_=b(4926),a=b(9133),v=(0,T(b(852)).default)("socket.io-parser"),c=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];P.protocol=5;var d;(function(m){m[m.CONNECT=0]="CONNECT",m[m.DISCONNECT=1]="DISCONNECT",m[m.EVENT=2]="EVENT",m[m.ACK=3]="ACK",m[m.CONNECT_ERROR=4]="CONNECT_ERROR",m[m.BINARY_EVENT=5]="BINARY_EVENT",m[m.BINARY_ACK=6]="BINARY_ACK"})(d||(P.PacketType=d={}));class s{constructor(w){this.replacer=w}encode(w){return v("encoding packet %j",w),(w.type===d.EVENT||w.type===d.ACK)&&(0,a.hasBinary)(w)?this.encodeAsBinary({type:w.type===d.EVENT?d.BINARY_EVENT:d.BINARY_ACK,nsp:w.nsp,data:w.data,id:w.id}):[this.encodeAsString(w)]}encodeAsString(w){let A=""+w.type;return(w.type===d.BINARY_EVENT||w.type===d.BINARY_ACK)&&(A+=w.attachments+"-"),w.nsp&&w.nsp!=="/"&&(A+=w.nsp+","),w.id!=null&&(A+=w.id),w.data!=null&&(A+=JSON.stringify(w.data,this.replacer)),v("encoded %j as %s",w,A),A}encodeAsBinary(w){const A=(0,_.deconstructPacket)(w),S=this.encodeAsString(A.packet),I=A.buffers;return I.unshift(S),I}}P.Encoder=s;class n extends x.Emitter{constructor(w){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof w=="function"?{reviver:w}:w)}add(w){let A;if(typeof w=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");A=this.decodeString(w);const S=A.type===d.BINARY_EVENT;S||A.type===d.BINARY_ACK?(A.type=S?d.EVENT:d.ACK,this.reconstructor=new i(A)):super.emitReserved("decoded",A)}else if((0,a.isBinary)(w)||w.base64)if(this.reconstructor)A=this.reconstructor.takeBinaryData(w),A&&(this.reconstructor=null,super.emitReserved("decoded",A));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+w)}decodeString(w){let A=0;const S={type:Number(w.charAt(0))};if(d[S.type]===void 0)throw new Error("unknown packet type "+S.type);if(S.type===d.BINARY_EVENT||S.type===d.BINARY_ACK){const R=A+1;for(;w.charAt(++A)!=="-"&&A!=w.length;);const r=w.substring(R,A);if(r!=Number(r)||w.charAt(A)!=="-")throw new Error("Illegal attachments");const D=Number(r);if(!y(D)||D<1)throw new Error("Illegal attachments");if(D>this.opts.maxAttachments)throw new Error("too many attachments");S.attachments=D}if(w.charAt(A+1)==="/"){const R=A+1;for(;++A&&!(w.charAt(A)===","||A===w.length););S.nsp=w.substring(R,A)}else S.nsp="/";const I=w.charAt(A+1);if(I!==""&&Number(I)==I){const R=A+1;for(;++A;){const r=w.charAt(A);if(r==null||Number(r)!=r){--A;break}if(A===w.length)break}S.id=Number(w.substring(R,A+1))}if(w.charAt(++A)){const R=this.tryParse(w.substr(A));if(n.isPayloadValid(S.type,R))S.data=R;else throw new Error("invalid payload")}return v("decoded %s as %j",w,S),S}tryParse(w){try{return JSON.parse(w,this.opts.reviver)}catch{return!1}}static isPayloadValid(w,A){switch(w){case d.CONNECT:return e(A);case d.DISCONNECT:return A===void 0;case d.CONNECT_ERROR:return typeof A=="string"||e(A);case d.EVENT:case d.BINARY_EVENT:return Array.isArray(A)&&(typeof A[0]=="number"||typeof A[0]=="string"&&c.indexOf(A[0])===-1);case d.ACK:case d.BINARY_ACK:return Array.isArray(A)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}P.Decoder=n;class i{constructor(w){this.packet=w,this.buffers=[],this.reconPack=w}takeBinaryData(w){if(this.buffers.push(w),this.buffers.length===this.reconPack.attachments){const A=(0,_.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),A}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function o(m){return typeof m=="string"}const y=Number.isInteger||function(m){return typeof m=="number"&&isFinite(m)&&Math.floor(m)===m};function f(m){return m===void 0||y(m)}function e(m){return Object.prototype.toString.call(m)==="[object Object]"}function u(m,w){switch(m){case d.CONNECT:return w===void 0||e(w);case d.DISCONNECT:return w===void 0;case d.EVENT:return Array.isArray(w)&&(typeof w[0]=="number"||typeof w[0]=="string"&&c.indexOf(w[0])===-1);case d.ACK:return Array.isArray(w);case d.CONNECT_ERROR:return typeof w=="string"||e(w);default:return!1}}function h(m){return o(m.nsp)&&f(m.id)&&u(m.type,m.data)}},9133(xt,P){"use strict";var b;b={value:!0},P.isBinary=v,P.hasBinary=c;const T=typeof ArrayBuffer=="function",x=d=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(d):d.buffer instanceof ArrayBuffer,_=Object.prototype.toString,a=typeof Blob=="function"||typeof Blob<"u"&&_.call(Blob)==="[object BlobConstructor]",g=typeof File=="function"||typeof File<"u"&&_.call(File)==="[object FileConstructor]";function v(d){return T&&(d instanceof ArrayBuffer||x(d))||a&&d instanceof Blob||g&&d instanceof File}function c(d,s){if(!d||typeof d!="object")return!1;if(Array.isArray(d)){for(let n=0,i=d.length;n<i;n++)if(c(d[n]))return!0;return!1}if(v(d))return!0;
138if(d.toJSON&&typeof d.toJSON=="function"&&arguments.length===1)return c(d.toJSON(),!0);for(const n in d)if(Object.prototype.hasOwnProperty.call(d,n)&&c(d[n]))return!0;return!1}},4454(xt,P,b){"use strict";b.d(P,{Emitter:()=>T});function T(_){if(_)return x(_)}function x(_){for(var a in T.prototype)_[a]=T.prototype[a];return _}T.prototype.on=T.prototype.addEventListener=function(_,a){return this._callbacks=this._callbacks||{},(this._callbacks["$"+_]=this._callbacks["$"+_]||[]).push(a),this},T.prototype.once=function(_,a){function g(){this.off(_,g),a.apply(this,arguments)}return g.fn=a,this.on(_,g),this},T.prototype.off=T.prototype.removeListener=T.prototype.removeAllListeners=T.prototype.removeEventListener=function(_,a){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var g=this._callbacks["$"+_];if(!g)return this;if(arguments.length==1)return delete this._callbacks["$"+_],this;for(var v,c=0;c<g.length;c++)if(v=g[c],v===a||v.fn===a){g.splice(c,1);break}return g.length===0&&delete this._callbacks["$"+_],this},T.prototype.emit=function(_){this._callbacks=this._callbacks||{};for(var a=new Array(arguments.length-1),g=this._callbacks["$"+_],v=1;v<arguments.length;v++)a[v-1]=arguments[v];if(g){g=g.slice(0);for(var v=0,c=g.length;v<c;++v)g[v].apply(this,a)}return this},T.prototype.emitReserved=T.prototype.emit,T.prototype.listeners=function(_){return this._callbacks=this._callbacks||{},this._callbacks["$"+_]||[]},T.prototype.hasListeners=function(_){return!!this.listeners(_).length}}};const Oo={};function Ae(xt){const P=Oo[xt];if(P!==void 0)return P.exports;const b=Oo[xt]={id:xt,loaded:!1,exports:{}};return _o[xt].call(b.exports,b,b.exports,Ae),b.loaded=!0,b.exports}Ae.m=_o,Ae.amdD=function(){throw new Error("define cannot be used indirect")},Ae.n=xt=>{const P=xt&&xt.__esModule?()=>xt.default:()=>xt;return Ae.d(P,{a:P}),P},(()=>{const xt=Object.getPrototypeOf;let P;Ae.t=function(b,T){if(T&1&&(b=this(b)),T&8||typeof b=="object"&&b&&(T&4&&b.__esModule||T&16&&typeof b.then=="function"))return b;const x=Object.create(null);Ae.r(x);const _={};P=P||[null,xt({}),xt([]),xt(xt)];for(var a=T&2&&b;(typeof a=="object"||typeof a=="function")&&!~P.indexOf(a);a=xt(a))Object.getOwnPropertyNames(a).forEach(g=>_[g]=()=>b[g]);return _.default=()=>b,Ae.d(x,_),x}})(),Ae.d=(xt,P)=>{if(Array.isArray(P))for(var b=0;b<P.length;){var T=P[b++],x=P[b++],_=x===0?{enumerable:!0,value:P[b++]}:{enumerable:!0,get:x};Ae.o(xt,T)||Object.defineProperty(xt,T,_)}else for(var T in P)Ae.o(P,T)&&!Ae.o(xt,T)&&Object.defineProperty(xt,T,{enumerable:!0,get:P[T]})},Ae.f={},Ae.e=xt=>{const P=[];return Ae.f.j(xt,P),Promise.all(P)},Ae.u=xt=>({16:"admin/admin",65:"timeago/jquery-timeago-sr",159:"admin/manage-groups",239:"cropperjs",264:"timeago/jquery-timeago-eu",350:"modules/composer-uploads",363:"modules/fuzzysearch",408:"forum/groups-details",411:"forum/topic-crosspost",479:"admin/manage-categories",522:"timeago/jquery-timeago-pt",619:"forum/account-ignored",623:"forum/account-watched",643:"timeago/jquery-timeago-az",644:"forum/groups-memberlist",653:"admin/plugins-tbb-bans",723:"forum/account-info",739:"modules/logout",755:"forum/world",762:"admin/federation-rules",831:"timeago/jquery-timeago-uz",844:"modules/uploader",851:"timeago/jquery-timeago-bs",894:"forum/reset",896:"admin/plugins-emoji",898:"timeago/jquery-timeago-si",912:"forum/account-tbb-status",954:"modules/topicList",1080:"admin/manage-tags",1091:"modules/chat",1164:"modules/composer-tags",1268:"admin/extend-rewards",1295:"admin/manage-privileges",1307:"modules/notifications",1308:"admin/plugins-harmony",1374:"forum/topic-postTools",1396:"admin/settings",1406:"modules/quill-magic-url",1429:"timeago/jquery-timeago-ru",1462:"forum/chats",1463:"timeago/jquery-timeago-bg",1504:"timeago/jquery-timeago-fa-short",1530:"timeago/jquery-timeago-is",1559:"timeago/jquery-timeago-fr-short",1579:"forum/topic-manage-editors",1628:"timeago/jquery-timeago-dv",1650:"admin/plugins-gameday",1831:"modules/categoryFilter",1838:"admin/federation-hashtags",1848:"modules/settings-number",1852:"forum/account-tags",1861:"modules/messages",1977:"admin/advanced-events",2010:"forum/chats-manage",2032:"modules/sett
138ings-checkbox",2050:"admin/modules-instance",2067:"modules/modals",2075:"admin/manage-users-custom-reasons",2082:"admin/dashboard-searches",2118:"timeago/jquery-timeago-jv",2214:"forum/account-bookmarks",2238:"admin/settings-cookies",2275:"admin/plugins-tbb-achievements",2289:"modules/accounts-moderate",2332:"modules/composer-drafts",2380:"forum/account-settings",2441:"modules/topicThumbs",2533:"forum/topic-diffs",2586:"timeago/jquery-timeago-ky",2619:"forum/account-uploads",2648:"forum/account-sessions",2651:"admin/settings-general",2663:"timeago/jquery-timeago-ur",2681:"timeago/jquery-timeago-el",2687:"forum/compose",2701:"modules/quill-emoji",2717:"modules/search",2765:"forum/topic-images",2804:"forum/registration-queue",2858:"forum/infinitescroll",2874:"timeago/jquery-timeago-sq",3018:"forum/intents",3020:"admin/modules-change-email",3023:"forum/chats-create",3069:"modules/taskbar",3071:"timeago/jquery-timeago-af",3085:"modules/uploadHelpers",3091:"forum/chats-search",3097:"forum/topic-change-owner",3154:"forum/topic-votes",3201:"forum/header-chat",3324:"modules/quill-markdown-shortcuts",3338:"admin/plugins-reactions",3400:"modules/accounts-picture",3417:"modules/autocomplete",3419:"timeago/jquery-timeago-he",3436:"admin/manage-category-analytics",3452:"forum/account-web-push",3487:"admin/federation-analytics",3602:"modules/iconSelect",3696:"modules/resizable",3775:"timeago/jquery-timeago-ro",3827:"admin/federation-safety",3848:"modules/composer-autocomplete",3880:"timeago/jquery-timeago-cs",3931:"admin/manage-category",4037:"admin/dashboard",4053:"timeago/jquery-timeago-fi",4227:"timeago/jquery-timeago-rs",4229:"forum/account-blocks",4271:"modules/api",4303:"timeago/jquery-timeago-sl",4347:"modules/composer-scheduler",4368:"admin/extend-plugins",4514:"timeago/jquery-timeago-th",4526:"modules/topicSelect",4572:"admin/modules-fullscreen",4590:"forum/header",4657:"timeago/jquery-timeago-et",4747:"forum/topic-move-post",4819:"admin/modules-selectable",4832:"admin/plugins-dbsearch",4850:"timeago/jquery-timeago-pt-br-short",4859:"timeago/jquery-timeago-hu",4864:"forum/topic-delete-posts",4866:"modules/groupSearch",4875:"admin/advanced-errors",4884:"forum/account-header",4892:"timeago/jquery-timeago-am",4953:"modules/emoji",5e3:"forum/category-tools",5004:"modules/settings-key",5007:"admin/settings-navigation",5045:"timeago/jquery-timeago-tr-short",5150:"modules/emoji-dialog",5254:"timeago/jquery-timeago-zh-TW",5264:"forum/topic-posts",5274:"modules/settings-array",5280:"timeago/jquery-timeago-sk",5285:"modules/sort",5417:"admin/plugins-sso-google",5431:"forum/topic-fork",5490:"forum/groups-list",5505:"admin/plugins-embed",5512:"forum/account-edit-username",5587:"forum/account-consent",5663:"admin/federation-relays",5672:"admin/plugins-composer-quill",5707:"forum/topic-events",5719:"modules/accounts-delete",5737:"modules/accounts-invite",5738:"forum/tags",5762:"admin/dashboard-users",5764:"modules/composer-categoryList",5860:"forum/account-upvoted",5898:"forum/reset_code",5903:"admin/modules-search",5928:"modules/navigator",5940:"forum/topic-threadTools",5942:"forum/top",5983:"modules/leven",5996:"modules/quill",6029:"timeago/jquery-timeago-fa",6123:"forum/account-edit-password",6131:"forum/users",6171:"forum/account-read",6173:"modules/settings-sorted-list",6174:"modules/slugify",6177:"forum/topic-replies",6198:"modules/categorySelector",6227:"forum/chats-user-list",6228:"forum/flags-detail",6232:"modules/composer-preview",6282:"admin/dashboard-topics",6379:"modules/composer",6406:"forum/account-tbb-badges",6418:"forum/chats-recent",6439:"admin/advanced-logs",6470:"timeago/jquery-timeago-fr",6477:"forum/post-queue",6478:"timeago/jquery-timeago-es",6485:"admin/plugins-poll",6551:"timeago/jquery-timeago-de",6554:"forum/account-theme",6582:"timeago/jquery-timeago-uk",6587:"forum/tag",6595:"admin/plugins-mentions",6601:"admin/plugins-web-push",6692:"timeago/jquery-timeago-lv",6706:"modules/composer-controls",6852:"modules/pictureCropper",6871:"admin/extend-widgets",6874:"modules/userFilter",6914:"timeago/jquery-timeago-en-short",6923:"forum/account-topics",6972:"admin/advanced-cache",6974:"forum/account-profile",6992:"timeago/jquery-timeago-nl",7003:"forum/account-groups",7019:"forum/flags-list",7047:"timeago/jquery-timeago-rw",7082:"modules/coverPhoto",7109:"forum/categories",7147:"forum/chats-user-search",7172:"admin/appearance-customise",7184:"forum/account-followers",7200:"forum/unread",7212:"modules/storage",7250:"timeago/jquery-timeago-pl",7253:"timeago/jquery-timeago-vi",7273:"timeago/jquery-timeago-ja",7282:"modules/flags",7287:"timeago/jquery-timeago-hy",7299:"timeago/jquery-timeago-pt-short",7353:"modules/sett
138ings-textarea",7358:"forum/chats-pinned-messages",7379:"timeago/jquery-timeago-da",7418:"modules/handleBack",7482:"timeago/jquery-timeago-zh-CN",7490:"modules/share",7499:"timeago/jquery-timeago-pt-br",7509:"forum/topic-tag",7549:"forum/pagination",7573:"admin/plugins-s3-uploads",7597:"forum/category",7612:"admin/appearance-skins",7616:"forum/popular",7624:"forum/recent",7650:"modules/scrollStop",7666:"timeago/jquery-timeago-cy",7668:"timeago/jquery-timeago-hr",7733:"timeago/jquery-timeago-it",7759:"admin/manage-admins-mods",7761:"forum/account-best",7810:"forum/topic",7843:"admin/modules-dashboard-line-graph",7857:"timeago/jquery-timeago-ar",7960:"modules/ace-editor",8058:"timeago/jquery-timeago-ca",8087:"admin/settings-notifications",8088:"admin/dashboard-logins",8118:"modules/settings-object",8126:"timeago/jquery-timeago-mk",8189:"modules/composer-formatting",8201:"forum/search",8259:"admin/settings-email",8285:"admin/manage-api",8289:"admin/manage-users",8300:"forum/ip-blacklist",8314:"modules/quickreply",8326:"forum/header-unread",8391:"forum/account-edit",8395:"modules/postSelect",8399:"admin/modules-relogin-timer",8402:"modules/tbb-news-headline",8440:"admin/appearance-themes",8463:"admin/manage-digest",8470:"modules/settings",8502:"timeago/jquery-timeago-lt",8593:"forum/topic-merge",8655:"admin/manage-uploads",8732:"modules/composer-resize",8747:"forum/account-categories",8756:"admin/federation-errors",8772:"modules/composer-post-queue",8783:"forum/notifications",8810:"timeago/jquery-timeago-az-short",8813:"forum/header-notifications",8815:"modules/settings-select",8963:"timeago/jquery-timeago-gl",8981:"modules/tagFilter",9016:"forum/account-posts",9034:"forum/register",9047:"admin/modules-checkboxRowSelector",9064:"admin/modules-listEditor",9076:"forum/chats-events",9077:"timeago/jquery-timeago-sv",9127:"forum/chats-messages",9173:"timeago/jquery-timeago-id",9185:"modules/categorySearch",9256:"timeago/jquery-timeago-it-short",9288:"timeago/jquery-timeago-tr",9366:"timeago/jquery-timeago-de-short",9384:"timeago/jquery-timeago-no",9393:"forum/chats-message-search",9484:"timeago/jquery-timeago-ko",9493:"timeago/jquery-timeago-be",9525:"forum/account-downvoted",9587:"admin/manage-category-federation",9708:"forum/account-following",9718:"modules/intents",9723:"admin/manage-users-custom-fields",9871:"timeago/jquery-timeago-es-short",9883:"timeago/jquery-timeago-en",9888:"forum/topic-move",9980:"admin/manage-group",9992:"forum/login"}[xt]||xt)+"."+{16:"084feae90b6b6194f20c",47:"00c3f7cbf3ffd5226ef0",56:"70c4aaa2d92fceb21f1f",63:"94e52679b237106cf784",65:"7bd1dc08230fe2674a7f",97:"a1eb99a74d6b9cebcd66",106:"2499cfb92bf292800350",159:"e87ba0c9e3433b4c6b65",238:"63e046c16ed269d90a5c",239:"1a969fca48a5776dd617",246:"70b4d8300334201004cc",264:"bba8ccacabc3551a8638",350:"aa5fc3f83cc16efb724d",363:"17c4c3908593f2dac7bb",408:"d210c73427a48ea66469",411:"2a098dcc72d3ad0b3724",419:"901b4b6e28df53de446b",449:"cd6aedbc6fb3eb1a0fe5",479:"39b527d6b73fe68af9fa",522:"98b1b7bf59f075d46dda",619:"7042fe2e897b04c1acd0",623:"0665bc54b58021305689",643:"1f75c189c07f1a3070d3",644:"d825167c9ac83eb7abe7",653:"d90c2e3a4f00d8357d18",675:"bd4706fe6d55871841c9",677:"2f7ca6a2a8f8165a3072",723:"08d7e88b44485b208ccd",739:"940818420e742a2eb56b",755:"1bed7d1235da94ba2f07",762:"ad1403f259908654abbe",831:"1d0df64d7841d788dbe4",844:"b242f066499ba36c7a13",851:"6309545bd6a237c65c08",894:"47b4404525004bb1637d",896:"aa96f09bb37e9f5cdddb",898:"e22a350e71471887b61d",912:"cbaf0a3be9422b12146c",954:"c8329ce5f4a8d97825b8",1080:"c5d375a653e1361a6f2f",1091:"412ea562b9246d4b7cde",1164:"b4e201c83c4f1196375e",1268:"99fa30c6177c00fa9908",1295:"b9755d726ac2410d7d67",1307:"04cd6f64f1031d78d434",1308:"6cea59270b750724a802",1374:"7d06ddfd426c79e3a55c",1396:"c7a6817e73b07da9113d",1406:"d2475aaf672db2ac59b5",1429:"78b509f8a9a4fb2519a7",1444:"0a55eaf8678e5f6fbc1f",1462:"fb12418f449b2f3f16e6",1463:"aadde6c2c88cdcda0296",1468:"7d280472e59ff8b78751",1504:"d803ca34de839f4daa65",1530:"1d5655da6809377818db",1559:"60da9d2163d32751e712",1574:"7f495467e5626525cd93",1579:"bba65c5bd12133b79133",1628:"74378f806a9889d11fec",1650:"5d822affaa02b1841650",1722:"d2ef93839ca877968471",1758:"703f026f1e6764936832",1799:"91f3509df77150e4f57d",1831:"6fcc2c756c31a227eb9b",1838:"d9356f32a441aba57654",1848:"f4dfca8cdb1808286f8a",1852:"92917c001f15fb22cba4",1861:"20730e4dce9e5bb6d0cd",1977:"6b015b361b0eb681228b",2010:"2d09daec7772cc26894c",2032:"a082ac979890f626839a",2050:"d58703d198f87efa8ea8",2067:"577fd6033070fe769ed6",2075:"ba0da7690d841fd289aa",2082:"62ba479192b5fe04cd53",2118:"0aaeaeaf75d4decf67c0",2214:"37ee394915cfa94347e4",2238:"ef4637dd315a6bdc5aab",2275:"270cb4734d30725d7403",2289:"e39b733fb9e8e90a6c6e",2332:"e9c572db2697fcda3458",2380:"9212a556b9584657ba0f",2403:"f739c524291645697531",2441:"dffb8cc3c5c0545fdcaa",2533:"92848f115782ba0a34ef",2586:"0bfe4fcf46c0de20230e",2619:"ab2a26a2e0c8a73bee57",2648:"6ff883c2a805bf5e571f",2651:"f3957fb67267e4f694da",2663:"ed758017549450d72fe6",2681:"3d92968780850b98c968",2687:"e6d60438ed9db78578b6",2701:"f143a6bf0f77008e5e6c",2717:"4d4d2557a0104f7f849d",2747:"83b171001f099dd22393",2765:"090fc5335319ca296c44",2804:"44011b05520daff4dfd4",2858:"a538cdafc5350e562a32",2874:"db1da9cdd40148ef86ac",3018:"a6dd79a1c4047fee727a",3020:"6a2238b89421fb9a20dd",3023:"63ae6f5b6e1c9a780a1c",3069:"c08a42d56785892a6bef",3071:"39df448531f4a42d567c",3085:"95eda05441629d2594a4",3091:"8c58a68860ef14397ae3",3097:"2f037efcf98e0103e74f",3154:"794a7bd9dcee40d60af2",3201:"40d7963e8fc6e5dd97a0",3324:"451b4371ec07235bb651",3338:"200ba14dc9fbfa4d8dc6",3400:"a29f45ca705fec368033",3417:"85d3a26844d358ae9ecb",3419:"db61658412c98fb4ee31",3436:"3af5843e4e19b25db66b",3452:"03ed071e5dd51b7cee0f",3487:"1257d52d2534f1c75c4a",3495:"ddd89549ffb035aa020b",3602:"5
13877fd6033070fe769ed6",3662:"ea08edf950038216464a",3669:"624cb516519b1d423ef1",3696:"cea132d408835540ed19",3775:"dd117d19b169121abd56",3827:"ccc928d414717613a02f",3848:"f6bcd6fe9f1ad533bd5d",3880:"c3342c1722f017cff6a4",3931:"d94b151b4785dbd47081",4037:"92a7758d606a20f96a65",4053:"3dda06fd36aaf4d6e0fc",4227:"e4e97893968c8295d7db",4229:"edb4b549cd89032e5358",4271:"412ea562b9246d4b7cde",4303:"fd669f1f978e35baa596",4347:"58529fad1356d13ba447",4368:"3190a428f6e9be2111d4",4459:"662d708e063ea9b686b0",4514:"2b6864bbd69f468bbd37",4526:"3c7b4dcf34fad0ae93de",4572:"6de623ed72f0bdec6598",4590:"d613c4f65e2478bf3f73",4657:"e61db90fdf91fb923587",4747:"c05932834a6bba513dd0",4819:"a2122bf0f7d84248a6f6",4832:"734344ac22b9a623e0a6",4850:"9ffb25f058a0d706f769",4859:"0279a116c34b7c6361fd",4864:"e83fd40cedd8a75c23dc",4866:"6b408cef53a3d0d8b6d1",4875:"68c490e538cabb57c0de",4884:"37c4cd76cda7c900432d",4892:"abaf49392a5e7f1687ad",4953:"7be9430721b47ed166fb",5e3:"5eacfd55f994b6c852f9",5004:"29369061f1f7cc9f4eb2",5007:"8c45ec47526d6defb611",5045:"d05cbf6e9f486c5e2d5d",5150:"e8e5e7d260ed03f4c21e",5254:"b905015380991df345b2",5264:"e53b0c6e673a2155b80d",5274:"75f504b72fea65b9d990",5280:"0b96e17cc7e7811f2a16",5285:"4709ffbf83247d60bd53",5417:"874f1ab0c3acc4862cc2",5431:"9facc34b11329f9a4388",5490:"bec7c312e275ebdb3e99",5505:"9d236c4b1befdaf910fe",5512:"d4faa4b0b3f65ec2b1d7",5587:"b6796bc6fd47aea796a4",5663:"5c7b7166c309ebcb0039",5672:"7282cf253280025dfab5",5692:"b8be085d6b298ef96a98",5707:"74f9fc4cdd8b9fed8a2e",5719:"542d89ad7d60d839d5ce",5737:"2fdfc0de3e3b13d8dc2d",5738:"fa8e8e967f313c2c8079",5762:"b1434d61b86eb12378ed",5764:"46cb8a28015967f331af",5860:"7f213c198822e827fe5f",5898:"e9f167983abe594a7630",5903:"67b179f5a3f6815315b6",5928:"1ce3c4e69bbd3bb7a87e",5940:"d47470d54f405ed28a4e",5942:"c42690170839853f9be0",5947:"0b0fe38b140de3168eb7",5983:"594e5e01eb94db506647",5996:"4a06075ee579c590260e",6029:"5829b491fec9a4690e62",6123:"381d95e3b4b0d2a9f089",6131:"a8aa0773f4ad994b8374",6159:"455f26582872d9fb76d6",6171:"f70859769a0568191a8e",6173:"6ca651ed05cddf81f8ce",6174:"7d06ddfd426c79e3a55c",6177:"461c5539d992aa96d80b",6198:"1332c8252670ad118efc",6227:"05f78966b234ec4a6d5f",6228:"87c0f7af4fad5950d6b6",6232:"67723a8b69cafb030904",6282:"ee95c71491ffd7d80b88",6379:"a722a4ee78f34c15e876",6382:"a8494e5ae61bd4b17ea8",6387:"150b90bce1b934f08e46",6406:"4b20e9e77941b4de5464",6411:"4b16ea756e5c1c35e991",6418:"fb12418f449b2f3f16e6",6422:"70eed0078797ba027339",6439:"1b90aefdd545519e1f99",6470:"170fd656a7603d529fd1",6477:"7f33a8338dad88028ced",6478:"046c6627b26d5e0189b5",6485:"e5c670c94714c0fd47b4",6551:"c1a2937b27b79088c6a3",6554:"a2793c85a92aa9ebceaf",6574:"44934ac836e4328426fb",6582:"559b8aa1f7140d18b0e8",6587:"ba974c813e315110864c",6595:"1964b088f6a083732a4a",6601:"1d7c6ea236da7e0e84f7",6692:"44bb9a0e0a3194e97e04",6706:"ea44ae46b74cb8e50979",6754:"02e12741cc44238738e5",6832:"d0b939bfa4a2b9d7daa1",6852:"1751668f17f1e6835934",6871:"f7f99a671d283cd84d3f",6874:"955e275cc76cca2c5bfc",6914:"ec8d6e6f20c45a588d12",6923:"65b0ad7df9d1416ef711",6924:"7f86bfe903cbebde24ac",6940:"6d86bb8fdddbaf79d16c",6972:"eb11968975a961d0a676",6974:"afd1ab250af8335b6628",6992:"ea42dd9a836cae363b0e",7003:"e441623769f86c668ba2",7019:"81816cd36ab75e3a066f",7047:"b30ad0d196a2bc2a44e0",7065:"68ffdd39f1086fb6319a",7082:"c5032e6f5c053c48c896",7109:"02f8c64b6dc35945ec73",7147:"2e083c0352d26bbbcf91",7172:"da8282c54325fa5ce438",7184:"ad0c4ecfae1a3faa3cb2",7200:"329beda4d60da13176cb",7205:"805da7344b402e6defe2",7212:"3f2d77b9ae209aeb2654",7250:"04a3a2cb62044daf4ec6",7253:"8c1dc48291d9341e5f92",7273:"bbc8fb69842629767815",7282:"7ef1ebedf6d28e906705",7287:"73e52aff11e7659ce9c2",7299:"a9f6b85383b826afe601",7308:"bcfc950dc66eb7a4e2a3",7325:"b390789b38bffda87695",7346:"30a7215ebf9db98595a9",7353:"f17340b864b20c57d3cb",7358:"41ded2aea2c49b35fe68",7379:"5be453053d01c4ea8f8d",7406:"e1d2ac9e44b13cc84b78",7418:"c1e0a7a15ce37f454f22",7482:"9135588d799da060a22d",7490:"28bc41c4d9190122ce63",7499:"c5b3b660161fce5537c2",7509:"ea162d1b71ab7af21c76",7536:"2525100b3ff9a04ef062",7549:"79f5091e5e6bc3e12155",7573:"e434a5023b204bf5f4d2",7597:"d6aaf9d722dea5920bd1",7612:"eb84fc3fc179a25507b7",7616:"464f27510d267f8ba64a",7624:"f06d44e333f26496479a",7650:"629afcc163bdaa83df6d",7666:"a43e18299a277e3686a2",7668:"8a4e7bf5323cca69d97c",7733:"bfcbf2a8ae3b112d66ca",7759:"05a3172085ebff25c86a",7761:"a849f1c71c79a6c40330",7810:"0f49dbccf37dcd56f0bf",7843:"f520905cdeedd890d4ce",7857:"0a81a28c3013fd8669a1",7960:"2eb73af13f0a3a08153c",8058:"5f69d4e145f764024a69",8087:"534eb2092a0625a543cc",8088:"c2110e571c5c7f485912",8118:"c3043824cdcca1edb1df",8126:"bcc5ec1cb4fce9a979cf",8189:"a722a4ee78f34c15e876",8201:"6de4463fd64bcf41bdf8",8259:"439ae6e52c0aaca4f3bd",8285:"7c5c2203a4d996a59fc7",8289:"19320ad784fdb6db5a4e",8300:"0ca0f3294b7fffc3fb30",8310:"8040047473f44c81334f",8314:"412ea562b9246d4b7cde",8326:"41ee275a7e60ed2517f2",8391:"afbe3f259574775343d8",8395:"e4adfe169264a85ecfad",8399:"3c86087bdb6e03210dad",8402:"0a55eaf8678e5f6fbc1f",8440:"a9154b90378c998dfa41",8454:"97a56360addd77d93b64",8463:"5ad4bb570d8c5294841a",8470:"ef085b53570ca60e5b96",8502:"fd7c96e00ac796d5d8d9",8593:"07130c70ed0a87bccec4",8631:"1726711f2a3f7ca16880",8636:"48f84bc454
1380199230533",8655:"dbffff2b04ff231d172f",8689:"b2d7915ba89e58cb9a7c",8732:"a722a4ee78f34c15e876",8747:"398765ebf33f1e1da269",8756:"87eb32d4150890f3178f",8772:"c1a7b7e1d47bf7b61a2c",8783:"21d1a6bb656929b59a81",8810:"9526981c8cb30ad610e3",8813:"095e7079db24d600bc1d",8815:"970a46b32995cd32a758",8963:"58f20a0926cda718e2de",8981:"895fe2f33d0fe50252c3",9016:"14738ecc3ea49afc7445",9034:"d1f1ede45705661c8744",9047:"d8535fa8e398e11c6c2f",9064:"4fb1f39dff3a8c74b091",9076:"d5d4452c883262df052f",9077:"466d3300c292a6cc944d",9127:"412ea562b9246d4b7cde",9173:"a1a5340120b5fc504ea8",9185:"4d005239898fb2965501",9243:"63ec4185f352c558da68",9256:"5969083fa312b818d969",9288:"e2dda4fd67932f2714ec",9308:"66d047b80e9505c1f42b",9366:"b395833897c5f9020fcf",9384:"1dd73d563091af8417bb",9393:"2cdb96520f310c29d9ea",9484:"55ca9d2e832a711a7f16",9493:"5dbdf9a2380d6aebbbf1",9525:"b174d3ffc935ac68a698",9587:"9f13a6238d744ce56827",9708:"4a383c78bd3a6a59dca5",9718:"12d47a224c06c122d11d",9723:"12fa8087ce741f4f0f89",9749:"c2e57988200f8d130dba",9771:"be77e7dab0a5c47e0787",9871:"e73ba1644fb4116e2277",9883:"1e02dd0ac63a9219f402",9888:"67f0d9a54934ef043b51",9897:"7aaa7f0faa4e3209af62",9980:"3a17fafd909baf5fc4be",9992:"2894223f942e57ab9d5f"}[xt]+".min.js",Ae.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Ae.o=(xt,P)=>Object.prototype.hasOwnProperty.call(xt,P),(()=>{const xt={},P="nodebb:";Ae.l=(b,T,x,_)=>{if(xt[b]){xt[b].push(T);return}let a,g;if(x!==void 0){const s=document.getElementsByTagName("script");for(var v=0;v<s.length;v++){const n=s[v];if(n.getAttribute("src")==b||n.getAttribute("data-webpack")==P+x){a=n;break}}}a||(g=!0,a=document.createElement("script"),a.charset="utf-8",Ae.nc&&a.setAttribute("nonce",Ae.nc),a.setAttribute("data-webpack",P+x),a.src=b),xt[b]=[T];const c=(s,n)=>{a.onerror=a.onload=null,clearTimeout(d);const i=xt[b];if(delete xt[b],a.parentNode?.removeChild(a),i?.forEach(o=>o(n)),s)return s(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),g&&document.head.appendChild(a)}})(),Ae.r=xt=>{Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(xt,"__esModule",{value:!0})},Ae.nmd=xt=>(xt.paths=[],xt.children||(xt.children=[]),xt),Ae.p="/assets/",(()=>{const xt={1303:0,1374:0,1574:0,3069:0,5996:0,6174:0,6379:0,8189:0,8732:0};Ae.f.j=(T,x)=>{let _=Ae.o(xt,T)?xt[T]:void 0;if(_!==0)if(_)x.push(_[2]);else{const a=new Promise((c,d)=>_=xt[T]=[c,d]);x.push(_[2]=a);const g=new Error,v=c=>{if(Ae.o(xt,T)&&(_=xt[T],_!==0&&(xt[T]=void 0),_)){const d=c&&(c.type==="load"?"missing":c.type),s=c&&c.target&&c.target.src;g.message="Loading chunk "+T+` failed.
139(`+d+": "+s+")",g.name="ChunkLoadError",g.type=d,g.request=s,g.event=c,_[1](g)}};Ae.l(Ae.p+Ae.u(T),v,"chunk-"+T,T)}};const P=(T,x)=>{let[_,a,g]=x;var v,c,d=0;if(_.some(n=>xt[n]!==0)){for(v in a)Ae.o(a,v)&&(Ae.m[v]=a[v]);if(g)var s=g(Ae)}for(T&&T(x);d<_.length;d++)c=_[d],Ae.o(xt,c)&&xt[c]&&xt[c][0](),xt[c]=0},b=self.webpackChunknodebb=self.webpackChunknodebb||[];b.forEach(P.bind(null,0)),b.push=P.bind(null,b.push.bind(b))})();let sc={};(()=>{"use strict";Ae(7032),Ae(1692),app.onDomReady()})()})();

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.