jekyll-theme-chirpy 7.4.1 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +33 -40
- data/_data/locales/ar.yml +7 -1
- data/_data/locales/bg-BG.yml +7 -1
- data/_data/locales/ca-ES.yml +7 -1
- data/_data/locales/cs-CZ.yml +7 -1
- data/_data/locales/da-DK.yml +7 -1
- data/_data/locales/de-DE.yml +7 -1
- data/_data/locales/dv/342/200/221MV.yml +7 -1
- data/_data/locales/el-GR.yml +7 -1
- data/_data/locales/en.yml +7 -1
- data/_data/locales/es-ES.yml +7 -1
- data/_data/locales/fa-IR.yml +7 -1
- data/_data/locales/fi-FI.yml +7 -1
- data/_data/locales/fr-FR.yml +7 -1
- data/_data/locales/hu-HU.yml +7 -1
- data/_data/locales/id-ID.yml +7 -1
- data/_data/locales/it-IT.yml +7 -1
- data/_data/locales/ja-JP.yml +7 -1
- data/_data/locales/ko-KR.yml +7 -1
- data/_data/locales/ku-IQ.yml +7 -1
- data/_data/locales/my-MM.yml +7 -1
- data/_data/locales/nl-NL.yml +7 -1
- data/_data/locales/ps/342/200/221AF.yml +7 -1
- data/_data/locales/pt-BR.yml +7 -1
- data/_data/locales/ru-RU.yml +7 -1
- data/_data/locales/sl-SI.yml +7 -1
- data/_data/locales/sv-SE.yml +7 -1
- data/_data/locales/th.yml +7 -1
- data/_data/locales/tr-TR.yml +7 -1
- data/_data/locales/uk-UA.yml +7 -1
- data/_data/locales/ur-PK.yml +7 -1
- data/_data/locales/vi-VN.yml +7 -1
- data/_data/locales/zh-CN.yml +7 -1
- data/_data/locales/zh-TW.yml +7 -1
- data/_data/origin/cors.yml +18 -15
- data/_includes/comments/disqus.html +2 -2
- data/_includes/comments/giscus.html +17 -7
- data/_includes/comments/utterances.html +4 -4
- data/_includes/datetime.html +1 -1
- data/_includes/head.html +16 -5
- data/_includes/js-selector.html +0 -1
- data/_includes/language-alias.html +7 -9
- data/_includes/media-url.html +1 -1
- data/_includes/notification.html +13 -9
- data/_includes/post-edit.html +23 -0
- data/_includes/post-paginator.html +1 -1
- data/_includes/refactor-content.html +1 -1
- data/_includes/sidebar.html +48 -6
- data/_layouts/default.html +7 -6
- data/_layouts/post.html +16 -13
- data/_sass/abstracts/_mixins.scss +6 -0
- data/_sass/abstracts/_variables.scss +6 -0
- data/_sass/base/_base.scss +28 -20
- data/_sass/base/_syntax.scss +7 -4
- data/_sass/components/_popups.scss +17 -28
- data/_sass/layout/_sidebar.scss +97 -9
- data/_sass/pages/_archives.scss +1 -1
- data/_sass/pages/_post.scss +11 -1
- data/_sass/themes/_dark.scss +7 -2
- data/_sass/themes/_light.scss +7 -2
- data/_sass/vendors/_bootstrap.scss +1 -1
- data/assets/css/jekyll-theme-chirpy.scss +4 -0
- data/assets/img/favicons/site.webmanifest +1 -1
- data/assets/js/dist/app.min.js +2 -2
- data/assets/js/dist/categories.min.js +2 -2
- data/assets/js/dist/commons.min.js +2 -2
- data/assets/js/dist/home.min.js +2 -2
- data/assets/js/dist/misc.min.js +2 -2
- data/assets/js/dist/page.min.js +2 -2
- data/assets/js/dist/post.min.js +2 -2
- data/assets/js/dist/sw.min.js +1 -1
- data/assets/js/dist/theme.min.js +2 -2
- metadata +4 -7
data/assets/js/dist/post.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jekyll-theme-chirpy v7.
|
|
2
|
+
* jekyll-theme-chirpy v7.6.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
|
3
3
|
*/
|
|
4
|
-
!function(){"use strict";const t=new Map;var e={set(e,n,i){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(n)||0===o.size?o.set(n,i):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(o.keys())[0],"."))},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const i=t.get(e);i.delete(n),0===i.size&&t.delete(e)}};const n="transitionend",i=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>"#".concat(CSS.escape(e)))),t),o=t=>null==t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),r=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>r(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(i(t)):null,a=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?a(t.parentNode):null},c=()=>{},l=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],f=()=>"rtl"===document.documentElement.dir,d=t=>{var e;e=()=>{const e=l();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(u.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of u)t()}),u.push(e)):e()},p=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return"function"==typeof t?t.call(...e):n},h=function(t,e){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void p(t);const i=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const i=Number.parseFloat(e),o=Number.parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0})(e)+5;let o=!1;const r=i=>{let{target:s}=i;s===e&&(o=!0,e.removeEventListener(n,r),p(t))};e.addEventListener(n,r),setTimeout(()=>{o||e.dispatchEvent(new Event(n))},i)},m=/[^.]*(?=\..*)\.|.*/,g=/\..*/,b=/::\d+$/,v={};let y=1;const _={mouseenter:"mouseover",mouseleave:"mouseout"},w=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 E(t,e){return e&&"".concat(e,"::").concat(y++)||t.uidEvent||y++}function O(t){const e=E(t);return t.uidEvent=e,v[e]=v[e]||{},v[e]}function A(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function x(t,e,n){const i="string"==typeof e,o=i?n:e||n;let r=S(t);return w.has(r)||(r=t),[i,o,r]}function C(t,e,n,i,o){if("string"!=typeof e||!t)return;let[r,s,a]=x(e,n,i);if(e in _){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s=t(s)}const c=O(t),l=c[a]||(c[a]={}),u=A(l,s,r?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const f=E(s,e.replace(m,"")),d=r?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return D(o,{delegateTarget:s}),i.oneOff&&j.off(t,o.type,e,n),n.apply(s,[o])}}(t,n,s):function(t,e){return function n(i){return D(i,{delegateTarget:t}),n.oneOff&&j.off(t,i.type,e),e.apply(t,[i])}}(t,s);d.delegationSelector=r?n:null,d.callable=s,d.oneOff=o,d.uidEvent=f,l[f]=d,t.addEventListener(a,d,r)}function T(t,e,n,i,o){const r=A(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function L(t,e,n,i){const o=e[n]||{};for(const[r,s]of Object.entries(o))r.includes(i)&&T(t,e,n,s.callable,s.delegationSelector)}function S(t){return t=t.replace(g,""),_[t]||t}const j={on(t,e,n,i){C(t,e,n,i,!1)},one(t,e,n,i){C(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const[o,r,s]=x(e,n,i),a=s!==e,c=O(t),l=c[s]||{},u=e.startsWith(".");if(void 0===r){if(u)for(const n of Object.keys(c))L(t,c,n,e.slice(1));for(const[n,i]of Object.entries(l)){const o=n.replace(b,"");a&&!e.includes(o)||T(t,c,s,i.callable,i.delegationSelector)}}else{if(!Object.keys(l).length)return;T(t,c,s,r,o?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=l();let o=null,r=!0,s=!0,a=!1;e!==S(e)&&i&&(o=i.Event(e,n),i(t).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const c=D(new Event(e,{bubbles:r,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const[n,i]of Object.entries(e))try{t[n]=i}catch(e){Object.defineProperty(t,n,{configurable:!0,get:()=>i})}return t}function k(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function P(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach(function(e){P(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function B(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function I(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const F={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(I(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(I(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=B(t.dataset[i])}return e},getDataAttribute:(t,e)=>B(t.getAttribute("data-bs-".concat(I(e))))};class H{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=r(e)?F.getDataAttribute(e,"config"):{};return M(M(M(M({},this.constructor.Default),"object"==typeof n?n:{}),r(e)?F.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const[n,i]of Object.entries(e)){const e=t[n],s=r(e)?"element":o(e);if(!new RegExp(i).test(s))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(n,'" provided type "').concat(s,'" but expected type "').concat(i,'".'))}}}class q extends H{constructor(t,n){super(),(t=s(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),j.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){h(t,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(t){return"".concat(t).concat(this.EVENT_KEY)}}const z=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>i(t)).join(","):null},W={find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(e,t)},children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>"".concat(t,':not([tabindex^="-"])')).join(",");return this.find(e,t).filter(t=>!(t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")))(t)&&(t=>{if(!r(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e})(t))},getSelectorFromElement(t){const e=z(t);return e&&W.findOne(e)?e:null},getElementFromSelector(t){const e=z(t);return e?W.findOne(e):null},getMultipleElementsFromSelector(t){const e=z(t);return e?W.find(e):[]}},R=".".concat("bs.collapse"),V="show".concat(R),Y="shown".concat(R),U="hide".concat(R),K="hidden".concat(R),Q="click".concat(R).concat(".data-api"),G="show",X="collapse",$="collapsing",J=":scope .".concat(X," .").concat(X),Z='[data-bs-toggle="collapse"]',tt={parent:null,toggle:!0},et={parent:"(null|element)",toggle:"boolean"};class nt extends q{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=W.find(Z);for(const t of n){const e=W.getSelectorFromElement(t),n=W.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return tt}static get DefaultType(){return et}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>nt.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(j.trigger(this._element,V).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(X),this._element.classList.add($),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=e[0].toUpperCase()+e.slice(1),i="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove($),this._element.classList.add(X,G),this._element.style[e]="",j.trigger(this._element,Y)},this._element,!0),this._element.style[e]="".concat(this._element[i],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(j.trigger(this._element,U).defaultPrevented)return;const t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),this._element.offsetHeight,this._element.classList.add($),this._element.classList.remove(X,G);for(const t of this._triggerArray){const e=W.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove($),this._element.classList.add(X),j.trigger(this._element,K)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(G)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=s(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Z);for(const e of t){const t=W.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=W.find(J,this._config.parent);return W.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=nt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}})}}j.on(document,Q,Z,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of W.getMultipleElementsFromSelector(this))nt.getOrCreateInstance(t,{toggle:!1}).toggle()}),d(nt),document.getElementsByClassName("collapse");var it="top",ot="bottom",rt="right",st="left",at="auto",ct=[it,ot,rt,st],lt="start",ut="end",ft="clippingParents",dt="viewport",pt="popper",ht="reference",mt=ct.reduce(function(t,e){return t.concat([e+"-"+lt,e+"-"+ut])},[]),gt=[].concat(ct,[at]).reduce(function(t,e){return t.concat([e,e+"-"+lt,e+"-"+ut])},[]),bt="beforeRead",vt="read",yt="afterRead",_t="beforeMain",wt="main",Et="afterMain",Ot="beforeWrite",At="write",xt="afterWrite",Ct=[bt,vt,yt,_t,wt,Et,Ot,At,xt];function Tt(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function St(t){return t instanceof Lt(t).Element||t instanceof Element}function jt(t){return t instanceof Lt(t).HTMLElement||t instanceof HTMLElement}function Dt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Lt(t).ShadowRoot||t instanceof ShadowRoot)}var kt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];jt(o)&&Tt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});jt(i)&&Tt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function Pt(t){return t.split("-")[0]}var Nt=Math.max,Mt=Math.min,Bt=Math.round;function It(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ft(){return!/^((?!chrome|android).)*safari/i.test(It())}function Ht(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&jt(t)&&(o=t.offsetWidth>0&&Bt(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Bt(i.height)/t.offsetHeight||1);var s=(St(t)?Lt(t):window).visualViewport,a=!Ft()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,f=i.height/r;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function qt(t){var e=Ht(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function zt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Dt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Wt(t){return Lt(t).getComputedStyle(t)}function Rt(t){return["table","td","th"].indexOf(Tt(t))>=0}function Vt(t){return((St(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yt(t){return"html"===Tt(t)?t:t.assignedSlot||t.parentNode||(Dt(t)?t.host:null)||Vt(t)}function Ut(t){return jt(t)&&"fixed"!==Wt(t).position?t.offsetParent:null}function Kt(t){for(var e=Lt(t),n=Ut(t);n&&Rt(n)&&"static"===Wt(n).position;)n=Ut(n);return n&&("html"===Tt(n)||"body"===Tt(n)&&"static"===Wt(n).position)?e:n||function(t){var e=/firefox/i.test(It());if(/Trident/i.test(It())&&jt(t)&&"fixed"===Wt(t).position)return null;var n=Yt(t);for(Dt(n)&&(n=n.host);jt(n)&&["html","body"].indexOf(Tt(n))<0;){var i=Wt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Qt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Gt(t,e,n){return Nt(t,Mt(e,n))}function Xt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function $t(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var Jt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Pt(n.placement),c=Qt(a),l=[st,rt].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return Xt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:$t(t,ct))}(o.padding,n),f=qt(r),d="y"===c?it:st,p="y"===c?ot:rt,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=Kt(r),b=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[d],_=b-f[l]-u[p],w=b/2-f[l]/2+v,E=Gt(y,w,_),O=c;n.modifiersData[i]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&zt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zt(t){return t.split("-")[1]}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,d=s.x,p=void 0===d?0:d,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=st,_=it,w=window;if(l){var E=Kt(n),O="clientHeight",A="clientWidth";if(E===Lt(n)&&"static"!==Wt(E=Vt(n)).position&&"absolute"===a&&(O="scrollHeight",A="scrollWidth"),o===it||(o===st||o===rt)&&r===ut)_=ot,m-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-i.height,m*=c?1:-1;if(o===st||(o===it||o===ot)&&r===ut)y=rt,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,p*=c?1:-1}var x,C=Object.assign({position:a},l&&te),T=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:Bt(n*o)/o||0,y:Bt(i*o)/o||0}}({x:p,y:m},Lt(n)):{x:p,y:m};return p=T.x,m=T.y,c?Object.assign({},C,((x={})[_]=v?"0":"",x[y]=b?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},C,((e={})[_]=v?m+"px":"",e[y]=b?p+"px":"",e.transform="",e))}var ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:Pt(e.placement),variation:Zt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ee(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ee(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ie={passive:!0};var oe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=Lt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,ie)}),a&&c.addEventListener("resize",n.update,ie),function(){r&&l.forEach(function(t){t.removeEventListener("scroll",n.update,ie)}),a&&c.removeEventListener("resize",n.update,ie)}},data:{}},re={left:"right",right:"left",bottom:"top",top:"bottom"};function se(t){return t.replace(/left|right|bottom|top/g,function(t){return re[t]})}var ae={start:"end",end:"start"};function ce(t){return t.replace(/start|end/g,function(t){return ae[t]})}function le(t){var e=Lt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ue(t){return Ht(Vt(t)).left+le(t).scrollLeft}function fe(t){var e=Wt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function de(t){return["html","body","#document"].indexOf(Tt(t))>=0?t.ownerDocument.body:jt(t)&&fe(t)?t:de(Yt(t))}function pe(t,e){var n;void 0===e&&(e=[]);var i=de(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Lt(i),s=o?[r].concat(r.visualViewport||[],fe(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(pe(Yt(s)))}function he(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function me(t,e,n){return e===dt?he(function(t,e){var n=Lt(t),i=Vt(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=Ft();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+ue(t),y:c}}(t,n)):St(e)?function(t,e){var n=Ht(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):he(function(t){var e,n=Vt(t),i=le(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=Nt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Nt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+ue(t),c=-i.scrollTop;return"rtl"===Wt(o||n).direction&&(a+=Nt(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(Vt(t)))}function ge(t,e,n,i){var o="clippingParents"===e?function(t){var e=pe(Yt(t)),n=["absolute","fixed"].indexOf(Wt(t).position)>=0&&jt(t)?Kt(t):t;return St(n)?e.filter(function(t){return St(t)&&zt(t,n)&&"body"!==Tt(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=me(t,n,i);return e.top=Nt(o.top,e.top),e.right=Mt(o.right,e.right),e.bottom=Mt(o.bottom,e.bottom),e.left=Nt(o.left,e.left),e},me(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function be(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?Pt(o):null,s=o?Zt(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case it:e={x:a,y:n.y-i.height};break;case ot:e={x:a,y:n.y+n.height};break;case rt:e={x:n.x+n.width,y:c};break;case st:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Qt(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case lt:e[l]=e[l]-(n[u]/2-i[u]/2);break;case ut:e[l]=e[l]+(n[u]/2-i[u]/2)}}return e}function ve(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?ft:a,l=n.rootBoundary,u=void 0===l?dt:l,f=n.elementContext,d=void 0===f?pt:f,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,b=Xt("number"!=typeof g?g:$t(g,ct)),v=d===pt?ht:pt,y=t.rects.popper,_=t.elements[h?v:d],w=ge(St(_)?_:_.contextElement||Vt(t.elements.popper),c,u,s),E=Ht(t.elements.reference),O=be({reference:E,element:y,placement:o}),A=he(Object.assign({},y,O)),x=d===pt?A:E,C={top:w.top-x.top+b.top,bottom:x.bottom-w.bottom+b.bottom,left:w.left-x.left+b.left,right:x.right-w.right+b.right},T=t.modifiersData.offset;if(d===pt&&T){var L=T[o];Object.keys(C).forEach(function(t){var e=[rt,ot].indexOf(t)>=0?1:-1,n=[it,ot].indexOf(t)>=0?"y":"x";C[t]+=L[n]*e})}return C}function ye(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?gt:c,u=Zt(i),f=u?a?mt:mt.filter(function(t){return Zt(t)===u}):ct,d=f.filter(function(t){return l.indexOf(t)>=0});0===d.length&&(d=f);var p=d.reduce(function(e,n){return e[n]=ve(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[Pt(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var _e={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,b=Pt(g),v=c||(b===g||!h?[se(g)]:function(t){if(Pt(t)===at)return[];var e=se(t);return[ce(t),e,ce(e)]}(g)),y=[g].concat(v).reduce(function(t,n){return t.concat(Pt(n)===at?ye(e,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)},[]),_=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,A=y[0],x=0;x<y.length;x++){var C=y[x],T=Pt(C),L=Zt(C)===lt,S=[it,ot].indexOf(T)>=0,j=S?"width":"height",D=ve(e,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),k=S?L?rt:st:L?ot:it;_[j]>w[j]&&(k=se(k));var P=se(k),N=[];if(r&&N.push(D[T]<=0),a&&N.push(D[k]<=0,D[P]<=0),N.every(function(t){return t})){A=C,O=!1;break}E.set(C,N)}if(O)for(var M=function(t){var e=y.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},B=h?3:1;B>0;B--){if("break"===M(B))break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function we(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ee(t){return[it,rt,ot,st].some(function(e){return t[e]>=0})}var Oe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=ve(e,{elementContext:"reference"}),a=ve(e,{altBoundary:!0}),c=we(s,i),l=we(a,o,r),u=Ee(c),f=Ee(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var Ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=gt.reduce(function(t,n){return t[n]=function(t,e,n){var i=Pt(t),o=[st,it].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[st,rt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t},{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}};var xe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=be({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var Ce={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,m=void 0===h?0:h,g=ve(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),b=Pt(e.placement),v=Zt(e.placement),y=!v,_=Qt(b),w="x"===_?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,A=e.rects.popper,x="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===_?it:st,D="y"===_?ot:rt,k="y"===_?"height":"width",P=E[_],N=P+g[j],M=P-g[D],B=p?-A[k]/2:0,I=v===lt?O[k]:A[k],F=v===lt?-A[k]:-O[k],H=e.elements.arrow,q=p&&H?qt(H):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},W=z[j],R=z[D],V=Gt(0,O[k],q[k]),Y=y?O[k]/2-B-V-W-C.mainAxis:I-V-W-C.mainAxis,U=y?-O[k]/2+B+V+R+C.mainAxis:F+V+R+C.mainAxis,K=e.elements.arrow&&Kt(e.elements.arrow),Q=K?"y"===_?K.clientTop||0:K.clientLeft||0:0,G=null!=(S=null==T?void 0:T[_])?S:0,X=P+U-G,$=Gt(p?Mt(N,P+Y-G-Q):N,P,p?Nt(M,X):M);E[_]=$,L[_]=$-P}if(a){var J,Z="x"===_?it:st,tt="x"===_?ot:rt,et=E[w],nt="y"===w?"height":"width",at=et+g[Z],ct=et-g[tt],ut=-1!==[it,st].indexOf(b),ft=null!=(J=null==T?void 0:T[w])?J:0,dt=ut?at:et-O[nt]-A[nt]-ft+C.altAxis,pt=ut?et+O[nt]+A[nt]-ft-C.altAxis:ct,ht=p&&ut?function(t,e,n){var i=Gt(t,e,n);return i>n?n:i}(dt,et,pt):Gt(p?dt:at,et,p?pt:ct);E[w]=ht,L[w]=ht-et}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function Te(t,e,n){void 0===n&&(n=!1);var i,o,r=jt(e),s=jt(e)&&function(t){var e=t.getBoundingClientRect(),n=Bt(e.width)/t.offsetWidth||1,i=Bt(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Vt(e),c=Ht(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==Tt(e)||fe(a))&&(l=(i=e)!==Lt(i)&&jt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:le(i)),jt(e)?((u=Ht(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=ue(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Le(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var Se={placement:"bottom",modifiers:[],strategy:"absolute"};function je(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function De(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Se:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Se,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:St(t)?pe(t):t.contextElement?pe(t.contextElement):[],popper:pe(e)};var s,l,d=function(t){var e=Le(t);return Ct.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),l=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=d.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i}),s=function(){};c.push(r||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(je(e,n)){a.rects={reference:Te(e,Kt(n),"fixed"===a.options.strategy),popper:qt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,c=void 0===s?{}:s,f=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){f(),l=!0}};if(!je(t,e))return u;function f(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var ke=De(),Pe=De({defaultModifiers:[oe,xe,ne,kt]}),Ne=De({defaultModifiers:[oe,xe,ne,kt,Ae,_e,Ce,Jt,Oe]}),Me=Object.freeze({__proto__:null,afterMain:Et,afterRead:yt,afterWrite:xt,applyStyles:kt,arrow:Jt,auto:at,basePlacements:ct,beforeMain:_t,beforeRead:bt,beforeWrite:Ot,bottom:ot,clippingParents:ft,computeStyles:ne,createPopper:Ne,createPopperBase:ke,createPopperLite:Pe,detectOverflow:ve,end:ut,eventListeners:oe,flip:_e,hide:Oe,left:st,main:wt,modifierPhases:Ct,offset:Ae,placements:gt,popper:pt,popperGenerator:De,popperOffsets:xe,preventOverflow:Ce,read:vt,reference:ht,right:rt,start:lt,top:it,variationPlacements:mt,viewport:dt,write:At});const Be={"*":["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:[]},Ie=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Fe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,He=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!Ie.has(n)||Boolean(Fe.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const qe={allowList:Be,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ze={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},We={entry:"(string|element|function|null)",selector:"(string|element)"};class Re extends H{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return qe}static get DefaultType(){return ze}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=M(M({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,n]of Object.entries(this._config.content))this._setContent(t,n,e);const e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},We)}_setContent(t,e,n){const i=W.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?r(e)?this._putElementInTemplate(s(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const t of o){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[n]||[]);for(const e of i)He(e,o)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return p(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Ve=new Set(["sanitize","allowList","sanitizeFn"]),Ye="fade",Ue="show",Ke=".tooltip-inner",Qe=".".concat("modal"),Ge="hide.bs.modal",Xe="hover",$e="focus",Je="click",Ze={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},tn={allowList:Be,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"},en={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 nn extends q{constructor(t,e){if(void 0===Me)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),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 tn}static get DefaultType(){return en}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),j.off(this._element.closest(Qe),Ge,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=j.trigger(this._element,this.constructor.eventName("show")),e=(a(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),j.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ue),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.on(t,"mouseover",c);this._queueCallback(()=>{j.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(j.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Ue),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))j.off(t,"mouseover",c);this._activeTrigger[Je]=!1,this._activeTrigger[$e]=!1,this._activeTrigger[Xe]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),j.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ye,Ue),e.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ye),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Re(M(M({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Ke]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ye)}_isShown(){return this.tip&&this.tip.classList.contains(Ue)}_createPopper(t){const e=p(this._config.placement,[this,t,this._element]),n=Ze[e.toUpperCase()];return Ne(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return p(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,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:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return M(M({},e),p(this._config.popperConfig,[void 0,e]))}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)j.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[Je]=!(e._isShown()&&e._activeTrigger[Je]),e.toggle()});else if("manual"!==e){const t=e===Xe?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===Xe?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");j.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?$e:Xe]=!0,e._enter()}),j.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?$e:Xe]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},j.on(this._element.closest(Qe),Ge,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=F.getDataAttributes(this._element);for(const t of Object.keys(e))Ve.has(t)&&delete e[t];return t=M(M({},e),"object"==typeof t&&t?t:{}),t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:s(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=nn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}d(nn);const on=".code-header>button",rn="timeout",sn="data-title-succeed",an="data-bs-original-title",cn=2e3;function ln(t){if(t.hasAttribute(rn)){let e=t.getAttribute(rn);if(Number(e)>Date.now())return!0}return!1}function un(t){t.setAttribute(rn,Date.now()+cn)}function fn(t){t.removeAttribute(rn)}function dn(){const t=document.querySelectorAll(on);if(0===t.length)return;const e=new ClipboardJS(on,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...t].map(t=>new nn(t,{placement:"left"})),e.on("success",t=>{const e=t.trigger;(t.clearSelection(),ln(e))||(e.children[0].setAttribute("class","fas fa-check"),function(t){const e=t.getAttribute(sn);t.setAttribute(an,e),nn.getInstance(t).show()}(e),un(e),setTimeout(()=>{!function(t){nn.getInstance(t).hide(),t.removeAttribute(an)}(e),function(t){t.children[0].setAttribute("class","far fa-clipboard")}(e),fn(e)},cn))})}const pn="data-src",hn="data-lqip",mn="shimmer",gn="blur";function bn(t){this.parentElement.classList.remove(t)}function vn(){this.complete&&(this.hasAttribute(hn)?bn.call(this,gn):bn.call(this,mn))}function yn(){const t=this.getAttribute(pn);this.setAttribute("src",encodeURI(t)),this.removeAttribute(pn)}const _n=".popup:not(.dark)",wn=".popup:not(.light)";let En=_n;class On{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return document.documentElement.getAttribute("lang").substring(0,2)}static getTimestamp(t){return Number(t.getAttribute(this.attrTimestamp))}static getDateFormat(t){return t.getAttribute(this.attrDateFormat)}}var An;const xn=document.getElementById("toc-bar"),Cn=document.getElementById("toc-solo-trigger"),Tn=document.getElementsByClassName("toc-trigger"),Ln=document.getElementById("toc-popup"),Sn=document.getElementById("toc-popup-close"),jn="overflow-hidden",Dn="closing";class kn{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{xn.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(k(kn,this,Nn)._,"px 0px 0px 0px")}).observe(Cn),Pn._=k(kn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){k(kn,this,Pn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return Ln.open}static showPopup(){this.lockScroll(!0),Ln.showModal();Ln.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){Ln.toggleAttribute(Dn),Ln.addEventListener("animationend",()=>{Ln.toggleAttribute(Dn),Ln.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(t){document.documentElement.classList.toggle(jn,t),document.body.classList.toggle(jn,t)}static clickBackdrop(t){if(Ln.hasAttribute(Dn))return;const e=t.target.getBoundingClientRect();(t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom)&&this.hidePopup()}static initComponents(){this.initBar(),[...Tn].forEach(t=>{t.onclick=()=>this.showPopup()}),Ln.onclick=t=>this.clickBackdrop(t),Sn.onclick=()=>this.hidePopup(),Ln.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var Pn={_:!0},Nn={_:48};P(kn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:k(An=kn,An,Nn)._});class Mn{static refresh(){tocbot.refresh(this.options)}static init(){tocbot.init(this.options)}}P(Mn,"options",{tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,headingsOffset:32});const Bn=matchMedia("(min-width: 1200px)");function In(t){t.matches?(kn.popupOpened&&kn.hidePopup(),Mn.refresh()):kn.refresh()}const Fn="mermaid",Hn=Theme.getThemeMapper("default","dark");function qn(t){if(t.source===window&&t.data&&t.data.id===Theme.ID){[...document.getElementsByClassName(Fn)].forEach(t=>{const e=t.previousSibling.children.item(0).textContent;t.textContent=e,t.removeAttribute("data-processed")});const t=Hn[Theme.visualState];mermaid.initialize({theme:t}),mermaid.init(null,".".concat(Fn))}}function zn(t){const e=t.textContent,n=t.parentElement;n.classList.add("d-none");const i=document.createElement("pre");i.classList.add(Fn);const o=document.createTextNode(e);i.appendChild(o),n.after(i)}const Wn=document.getElementById("mode-toggle");const Rn=document.getElementById("sidebar"),Vn=document.getElementById("sidebar-trigger"),Yn=document.getElementById("mask");class Un{static toggle(){Kn._=k(Un,this,!k(Un,this,Kn)._),document.body.toggleAttribute("sidebar-display",k(Un,this,Kn)._),Rn.classList.toggle("z-2",k(Un,this,Kn)._),Yn.classList.toggle("d-none",!k(Un,this,Kn)._)}}var Kn={_:!1};const Qn=document.getElementById("sidebar-trigger"),Gn=document.getElementById("search-trigger"),Xn=document.getElementById("search-cancel"),$n=document.querySelectorAll("#main-wrapper>.container>.row"),Jn=document.getElementById("topbar-title"),Zn=document.getElementById("search"),ti=document.getElementById("search-result-wrapper"),ei=document.getElementById("search-results"),ni=document.getElementById("search-input"),ii=document.getElementById("search-hints"),oi="d-block",ri="d-none",si="input-focus",ai="d-flex";class ci{static on(){Qn.classList.add(ri),Jn.classList.add(ri),Gn.classList.add(ri),Zn.classList.add(ai),Xn.classList.add(oi)}static off(){Xn.classList.remove(oi),Zn.classList.remove(ai),Qn.classList.remove(ri),Jn.classList.remove(ri),Gn.classList.remove(ri)}}class li{static on(){this.resultVisible||(ti.classList.remove(ri),$n.forEach(t=>{t.classList.add(ri)}),this.resultVisible=!0)}static off(){this.resultVisible&&(ei.innerHTML="",ii.classList.contains(ri)&&ii.classList.remove(ri),ti.classList.add(ri),$n.forEach(t=>{t.classList.remove(ri)}),ni.textContent="",this.resultVisible=!1)}}function ui(){return Xn.classList.contains(oi)}P(li,"resultVisible",!1),function(){const t=document.querySelectorAll("article img");if(0===t.length)return;t.forEach(t=>{t.addEventListener("load",vn)}),document.querySelectorAll('article img[loading="lazy"]').forEach(t=>{t.complete&&bn.call(t,mn)});const e=document.querySelectorAll("article img[".concat(hn,'="true"]'));e.length&&e.forEach(t=>{yn.call(t)})}(),function(){if(null===document.querySelector('main>article[data-toc="true"]'))return;Bn.matches?Mn.init():kn.init(),document.getElementById("toc-wrapper").classList.remove("invisible"),Bn.onchange=In}(),function(){if(null===document.querySelector(".popup"))return;const t=!(null===document.querySelector(".popup.light")&&null===document.querySelector(".popup.dark"));Theme.visualState===Theme.DARK&&(En=wn);let e=GLightbox({selector:"".concat(En)});if(t&&Theme.switchable){let t=null;window.addEventListener("message",n=>{n.source===window&&n.data&&n.data.id===Theme.ID&&function(t,e){En=En===_n?wn:_n,null===e&&(e=GLightbox({selector:"".concat(En)})),[t,e]=[e,t]}(e,t)})}}(),Vn.onclick=Yn.onclick=()=>Un.toggle(),dayjs.locale(On.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),document.querySelectorAll("[".concat(On.attrTimestamp,"]")).forEach(t=>{const e=dayjs.unix(On.getTimestamp(t)),n=e.format(On.getDateFormat(t));if(t.textContent=n,t.removeAttribute(On.attrTimestamp),t.removeAttribute(On.attrDateFormat),t.hasAttribute("data-bs-toggle")&&"tooltip"===t.getAttribute("data-bs-toggle")){const n=e.format("llll");t.setAttribute("data-bs-title",n)}}),dn(),function(){const t=document.getElementById("copy-link");null!==t&&(t.addEventListener("click",t=>{const e=t.target;ln(e)||navigator.clipboard.writeText(window.location.href).then(()=>{const t=e.getAttribute(an),n=e.getAttribute(sn);e.setAttribute(an,n),nn.getInstance(e).show(),un(e),setTimeout(()=>{e.setAttribute(an,t),fn(e)},cn)})}),t.addEventListener("mouseleave",t=>{nn.getInstance(t.target).hide()}))}(),Gn.addEventListener("click",()=>{ci.on(),li.on(),ni.focus()}),Xn.addEventListener("click",()=>{ci.off(),li.off()}),ni.addEventListener("focus",()=>{Zn.classList.add(si)}),ni.addEventListener("focusout",()=>{Zn.classList.remove(si)}),ni.addEventListener("input",()=>{""===ni.value?ui()?ii.classList.remove(ri):li.off():(li.on(),ui()&&ii.classList.add(ri))}),function(){if("undefined"==typeof mermaid||"function"!=typeof mermaid.initialize)return;let t={theme:Hn[Theme.visualState]};[...document.getElementsByClassName("language-mermaid")].forEach(zn),mermaid.initialize(t),Theme.switchable&&window.addEventListener("message",qn)}(),Wn&&Wn.addEventListener("click",()=>{Theme.flip()}),function(){const t=document.getElementById("back-to-top");window.addEventListener("scroll",()=>{window.scrollY>50?t.classList.add("show"):t.classList.remove("show")}),t.addEventListener("click",()=>{window.scrollTo({top:0})})}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(t=>new nn(t))}();
|
|
4
|
+
!function(){"use strict";const t=new Map;var e={set(e,n,i){t.has(e)||t.set(e,new Map);const o=t.get(e);o.has(n)||0===o.size?o.set(n,i):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(o.keys())[0],"."))},get:(e,n)=>t.has(e)&&t.get(e).get(n)||null,remove(e,n){if(!t.has(e))return;const i=t.get(e);i.delete(n),0===i.size&&t.delete(e)}};function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,s,a=[],c=!0,l=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(a.push(i.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c="transitionend",l=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>"#".concat(CSS.escape(e)))),t),u=t=>null==t?"".concat(t):Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),d=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),f=t=>d(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(l(t)):null,p=t=>{if(!d(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),m=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?m(t.parentNode):null},g=()=>{},b=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,v=[],y=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=()=>{const e=b();if(e){const n=t.NAME,i=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=i,t.jQueryInterface)}},"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of v)t()}),v.push(e)):e()},w=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;return"function"==typeof t?t.call(...e):n},E=function(t,e){if(!(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]))return void w(t);const n=(t=>{if(!t)return 0;let e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay;const o=Number.parseFloat(n),r=Number.parseFloat(i);return o||r?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0})(e)+5;let i=!1;const o=n=>{n.target===e&&(i=!0,e.removeEventListener(c,o),w(t))};e.addEventListener(c,o),setTimeout(()=>{i||e.dispatchEvent(new Event(c))},n)},O=/[^.]*(?=\..*)\.|.*/,A=/\..*/,x=/::\d+$/,C={};let T=1;const L={mouseenter:"mouseover",mouseleave:"mouseout"},S=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 j(t,e){return e&&"".concat(e,"::").concat(T++)||t.uidEvent||T++}function k(t){const e=j(t);return t.uidEvent=e,C[e]=C[e]||{},C[e]}function D(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===n)}function P(t,e,n){const i="string"==typeof e,o=i?n:e||n;let r=B(t);return S.has(r)||(r=t),[i,o,r]}function N(t,e,n,i,o){if("string"!=typeof e||!t)return;let r=a(P(e,n,i),3),s=r[0],c=r[1],l=r[2];if(e in L){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};c=t(c)}const u=k(t),d=u[l]||(u[l]={}),f=D(d,c,s?n:null);if(f)return void(f.oneOff=f.oneOff&&o);const p=j(c,e.replace(O,"")),h=s?function(t,e,n){return function i(o){const r=t.querySelectorAll(e);for(let s=o.target;s&&s!==this;s=s.parentNode)for(const a of r)if(a===s)return H(o,{delegateTarget:s}),i.oneOff&&F.off(t,o.type,e,n),n.apply(s,[o])}}(t,n,c):function(t,e){return function n(i){return H(i,{delegateTarget:t}),n.oneOff&&F.off(t,i.type,e),e.apply(t,[i])}}(t,c);h.delegationSelector=s?n:null,h.callable=c,h.oneOff=o,h.uidEvent=p,d[p]=h,t.addEventListener(l,h,s)}function M(t,e,n,i,o){const r=D(e[n],i,o);r&&(t.removeEventListener(n,r,Boolean(o)),delete e[n][r.uidEvent])}function I(t,e,n,i){const o=e[n]||{};for(const s of Object.entries(o)){var r=a(s,2);const o=r[0],c=r[1];o.includes(i)&&M(t,e,n,c.callable,c.delegationSelector)}}function B(t){return t=t.replace(A,""),L[t]||t}const F={on(t,e,n,i){N(t,e,n,i,!1)},one(t,e,n,i){N(t,e,n,i,!0)},off(t,e,n,i){if("string"!=typeof e||!t)return;const o=a(P(e,n,i),3),r=o[0],s=o[1],c=o[2],l=c!==e,u=k(t),d=u[c]||{},f=e.startsWith(".");if(void 0===s){if(f)for(const n of Object.keys(u))I(t,u,n,e.slice(1));for(const n of Object.entries(d)){var p=a(n,2);const i=p[0],o=p[1],r=i.replace(x,"");l&&!e.includes(r)||M(t,u,c,o.callable,o.delegationSelector)}}else{if(!Object.keys(d).length)return;M(t,u,c,s,r?n:null)}},trigger(t,e,n){if("string"!=typeof e||!t)return null;const i=b();let o=null,r=!0,s=!0,a=!1;e!==B(e)&&i&&(o=i.Event(e,n),i(t).trigger(o),r=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const c=H(new Event(e,{bubbles:r,cancelable:!0}),n);return a&&c.preventDefault(),s&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function H(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const i of Object.entries(e)){var n=a(i,2);const e=n[0],o=n[1];try{t[e]=o}catch(n){Object.defineProperty(t,e,{configurable:!0,get:()=>o})}}return t}function q(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function z(t){return t.replace(/[A-Z]/g,t=>"-".concat(t.toLowerCase()))}const R={setDataAttribute(t,e,n){t.setAttribute("data-bs-".concat(z(e)),n)},removeDataAttribute(t,e){t.removeAttribute("data-bs-".concat(z(e)))},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),e[n]=q(t.dataset[i])}return e},getDataAttribute:(t,e)=>q(t.getAttribute("data-bs-".concat(z(e))))};class W{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const n=d(e)?R.getDataAttribute(e,"config"):{};return s(s(s(s({},this.constructor.Default),"object"==typeof n?n:{}),d(e)?R.getDataAttributes(e):{}),"object"==typeof t?t:{})}_typeCheckConfig(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.constructor.DefaultType;for(const i of Object.entries(e)){var n=a(i,2);const e=n[0],o=n[1],r=t[e],s=d(r)?"element":u(r);if(!new RegExp(o).test(s))throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),': Option "').concat(e,'" provided type "').concat(s,'" but expected type "').concat(o,'".'))}}}class V extends W{constructor(t,n){super(),(t=f(t))&&(this._element=t,this._config=this._getConfig(n),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),F.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e){E(t,e,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return e.get(f(t),this.DATA_KEY)}static getOrCreateInstance(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return"bs.".concat(this.NAME)}static get EVENT_KEY(){return".".concat(this.DATA_KEY)}static eventName(t){return"".concat(t).concat(this.EVENT_KEY)}}const Y=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),e=n&&"#"!==n?n.trim():null}return e?e.split(",").map(t=>l(t)).join(","):null},U={find(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(e,t)},children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const n=[];let i=t.parentNode.closest(e);for(;i;)n.push(i),i=i.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>"".concat(t,':not([tabindex^="-"])')).join(",");return this.find(e,t).filter(t=>!h(t)&&p(t))},getSelectorFromElement(t){const e=Y(t);return e&&U.findOne(e)?e:null},getElementFromSelector(t){const e=Y(t);return e?U.findOne(e):null},getMultipleElementsFromSelector(t){const e=Y(t);return e?U.find(e):[]}},K=".".concat("bs.collapse"),Q="show".concat(K),G="shown".concat(K),X="hide".concat(K),$="hidden".concat(K),J="click".concat(K).concat(".data-api"),Z="show",tt="collapse",et="collapsing",nt=":scope .".concat(tt," .").concat(tt),it='[data-bs-toggle="collapse"]',ot={parent:null,toggle:!0},rt={parent:"(null|element)",toggle:"boolean"};class st extends V{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=U.find(it);for(const t of n){const e=U.getSelectorFromElement(t),n=U.find(e).filter(t=>t===this._element);null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ot}static get DefaultType(){return rt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>st.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(F.trigger(this._element,Q).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(tt),this._element.classList.add(et),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=e[0].toUpperCase()+e.slice(1),i="scroll".concat(n);this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt,Z),this._element.style[e]="",F.trigger(this._element,G)},this._element,!0),this._element.style[e]="".concat(this._element[i],"px")}hide(){if(this._isTransitioning||!this._isShown())return;if(F.trigger(this._element,X).defaultPrevented)return;const t=this._getDimension();this._element.style[t]="".concat(this._element.getBoundingClientRect()[t],"px"),this._element.offsetHeight,this._element.classList.add(et),this._element.classList.remove(tt,Z);for(const t of this._triggerArray){const e=U.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(et),this._element.classList.add(tt),F.trigger(this._element,$)},this._element,!0)}_isShown(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._element).classList.contains(Z)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=f(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(it);for(const e of t){const t=U.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=U.find(nt,this._config.parent);return U.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const n of t)n.classList.toggle("collapsed",!e),n.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const n=st.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'.concat(t,'"'));n[t]()}})}}F.on(document,J,it,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of U.getMultipleElementsFromSelector(this))st.getOrCreateInstance(t,{toggle:!1}).toggle()}),_(st),document.getElementsByClassName("collapse");var at="top",ct="bottom",lt="right",ut="left",dt="auto",ft=[at,ct,lt,ut],pt="start",ht="end",mt="clippingParents",gt="viewport",bt="popper",vt="reference",yt=ft.reduce(function(t,e){return t.concat([e+"-"+pt,e+"-"+ht])},[]),_t=[].concat(ft,[dt]).reduce(function(t,e){return t.concat([e,e+"-"+pt,e+"-"+ht])},[]),wt="beforeRead",Et="read",Ot="afterRead",At="beforeMain",xt="main",Ct="afterMain",Tt="beforeWrite",Lt="write",St="afterWrite",jt=[wt,Et,Ot,At,xt,Ct,Tt,Lt,St];function kt(t){return t?(t.nodeName||"").toLowerCase():null}function Dt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pt(t){return t instanceof Dt(t).Element||t instanceof Element}function Nt(t){return t instanceof Dt(t).HTMLElement||t instanceof HTMLElement}function Mt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Dt(t).ShadowRoot||t instanceof ShadowRoot)}var It={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];Nt(o)&&kt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach(function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce(function(t,e){return t[e]="",t},{});Nt(i)&&kt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach(function(t){i.removeAttribute(t)}))})}},requires:["computeStyles"]};function Bt(t){return t.split("-")[0]}var Ft=Math.max,Ht=Math.min,qt=Math.round;function zt(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Rt(){return!/^((?!chrome|android).)*safari/i.test(zt())}function Wt(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&Nt(t)&&(o=t.offsetWidth>0&&qt(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&qt(i.height)/t.offsetHeight||1);var s=(Pt(t)?Dt(t):window).visualViewport,a=!Rt()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,d=i.height/r;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Vt(t){var e=Wt(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Yt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Mt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ut(t){return Dt(t).getComputedStyle(t)}function Kt(t){return["table","td","th"].indexOf(kt(t))>=0}function Qt(t){return((Pt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Gt(t){return"html"===kt(t)?t:t.assignedSlot||t.parentNode||(Mt(t)?t.host:null)||Qt(t)}function Xt(t){return Nt(t)&&"fixed"!==Ut(t).position?t.offsetParent:null}function $t(t){for(var e=Dt(t),n=Xt(t);n&&Kt(n)&&"static"===Ut(n).position;)n=Xt(n);return n&&("html"===kt(n)||"body"===kt(n)&&"static"===Ut(n).position)?e:n||function(t){var e=/firefox/i.test(zt());if(/Trident/i.test(zt())&&Nt(t)&&"fixed"===Ut(t).position)return null;var n=Gt(t);for(Mt(n)&&(n=n.host);Nt(n)&&["html","body"].indexOf(kt(n))<0;){var i=Ut(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Jt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Zt(t,e,n){return Ft(t,Ht(e,n))}function te(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ee(t,e){return e.reduce(function(e,n){return e[n]=t,e},{})}var ne={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Bt(n.placement),c=Jt(a),l=[ut,lt].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return te("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ee(t,ft))}(o.padding,n),d=Vt(r),f="y"===c?at:ut,p="y"===c?ct:lt,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],g=$t(r),b=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[f],_=b-d[l]-u[p],w=b/2-d[l]/2+v,E=Zt(y,w,_),O=c;n.modifiersData[i]=((e={})[O]=E,e.centerOffset=E-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Yt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(t){return t.split("-")[1]}var oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,m=void 0===h?0:h,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),y=ut,_=at,w=window;if(l){var E=$t(n),O="clientHeight",A="clientWidth";if(E===Dt(n)&&"static"!==Ut(E=Qt(n)).position&&"absolute"===a&&(O="scrollHeight",A="scrollWidth"),o===at||(o===ut||o===lt)&&r===ht)_=ct,m-=(d&&E===w&&w.visualViewport?w.visualViewport.height:E[O])-i.height,m*=c?1:-1;if(o===ut||(o===at||o===ct)&&r===ht)y=lt,p-=(d&&E===w&&w.visualViewport?w.visualViewport.width:E[A])-i.width,p*=c?1:-1}var x,C=Object.assign({position:a},l&&oe),T=!0===u?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:qt(n*o)/o||0,y:qt(i*o)/o||0}}({x:p,y:m},Dt(n)):{x:p,y:m};return p=T.x,m=T.y,c?Object.assign({},C,((x={})[_]=v?"0":"",x[y]=b?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",x)):Object.assign({},C,((e={})[_]=v?m+"px":"",e[y]=b?p+"px":"",e.transform="",e))}var se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:Bt(e.placement),variation:ie(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,re(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,re(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ae={passive:!0};var ce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=Dt(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach(function(t){t.addEventListener("scroll",n.update,ae)}),a&&c.addEventListener("resize",n.update,ae),function(){r&&l.forEach(function(t){t.removeEventListener("scroll",n.update,ae)}),a&&c.removeEventListener("resize",n.update,ae)}},data:{}},le={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(t){return t.replace(/left|right|bottom|top/g,function(t){return le[t]})}var de={start:"end",end:"start"};function fe(t){return t.replace(/start|end/g,function(t){return de[t]})}function pe(t){var e=Dt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function he(t){return Wt(Qt(t)).left+pe(t).scrollLeft}function me(t){var e=Ut(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ge(t){return["html","body","#document"].indexOf(kt(t))>=0?t.ownerDocument.body:Nt(t)&&me(t)?t:ge(Gt(t))}function be(t,e){var n;void 0===e&&(e=[]);var i=ge(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=Dt(i),s=o?[r].concat(r.visualViewport||[],me(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(be(Gt(s)))}function ve(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ye(t,e,n){return e===gt?ve(function(t,e){var n=Dt(t),i=Qt(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=Rt();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+he(t),y:c}}(t,n)):Pt(e)?function(t,e){var n=Wt(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ve(function(t){var e,n=Qt(t),i=pe(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=Ft(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ft(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+he(t),c=-i.scrollTop;return"rtl"===Ut(o||n).direction&&(a+=Ft(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(Qt(t)))}function _e(t,e,n,i){var o="clippingParents"===e?function(t){var e=be(Gt(t)),n=["absolute","fixed"].indexOf(Ut(t).position)>=0&&Nt(t)?$t(t):t;return Pt(n)?e.filter(function(t){return Pt(t)&&Yt(t,n)&&"body"!==kt(t)}):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce(function(e,n){var o=ye(t,n,i);return e.top=Ft(o.top,e.top),e.right=Ht(o.right,e.right),e.bottom=Ht(o.bottom,e.bottom),e.left=Ft(o.left,e.left),e},ye(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function we(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?Bt(o):null,s=o?ie(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case at:e={x:a,y:n.y-i.height};break;case ct:e={x:a,y:n.y+n.height};break;case lt:e={x:n.x+n.width,y:c};break;case ut:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Jt(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case pt:e[l]=e[l]-(n[u]/2-i[u]/2);break;case ht:e[l]=e[l]+(n[u]/2-i[u]/2)}}return e}function Ee(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?mt:a,l=n.rootBoundary,u=void 0===l?gt:l,d=n.elementContext,f=void 0===d?bt:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,b=te("number"!=typeof g?g:ee(g,ft)),v=f===bt?vt:bt,y=t.rects.popper,_=t.elements[h?v:f],w=_e(Pt(_)?_:_.contextElement||Qt(t.elements.popper),c,u,s),E=Wt(t.elements.reference),O=we({reference:E,element:y,placement:o}),A=ve(Object.assign({},y,O)),x=f===bt?A:E,C={top:w.top-x.top+b.top,bottom:x.bottom-w.bottom+b.bottom,left:w.left-x.left+b.left,right:x.right-w.right+b.right},T=t.modifiersData.offset;if(f===bt&&T){var L=T[o];Object.keys(C).forEach(function(t){var e=[lt,ct].indexOf(t)>=0?1:-1,n=[at,ct].indexOf(t)>=0?"y":"x";C[t]+=L[n]*e})}return C}function Oe(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?_t:c,u=ie(i),d=u?a?yt:yt.filter(function(t){return ie(t)===u}):ft,f=d.filter(function(t){return l.indexOf(t)>=0});0===f.length&&(f=d);var p=f.reduce(function(e,n){return e[n]=Ee(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[Bt(n)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}var Ae={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,b=Bt(g),v=c||(b===g||!h?[ue(g)]:function(t){if(Bt(t)===dt)return[];var e=ue(t);return[fe(t),e,fe(e)]}(g)),y=[g].concat(v).reduce(function(t,n){return t.concat(Bt(n)===dt?Oe(e,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):n)},[]),_=e.rects.reference,w=e.rects.popper,E=new Map,O=!0,A=y[0],x=0;x<y.length;x++){var C=y[x],T=Bt(C),L=ie(C)===pt,S=[at,ct].indexOf(T)>=0,j=S?"width":"height",k=Ee(e,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),D=S?L?lt:ut:L?ct:at;_[j]>w[j]&&(D=ue(D));var P=ue(D),N=[];if(r&&N.push(k[T]<=0),a&&N.push(k[D]<=0,k[P]<=0),N.every(function(t){return t})){A=C,O=!1;break}E.set(C,N)}if(O)for(var M=function(t){var e=y.find(function(e){var n=E.get(e);if(n)return n.slice(0,t).every(function(t){return t})});if(e)return A=e,"break"},I=h?3:1;I>0;I--){if("break"===M(I))break}e.placement!==A&&(e.modifiersData[i]._skip=!0,e.placement=A,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function xe(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ce(t){return[at,lt,ct,ut].some(function(e){return t[e]>=0})}var Te={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=Ee(e,{elementContext:"reference"}),a=Ee(e,{altBoundary:!0}),c=xe(s,i),l=xe(a,o,r),u=Ce(c),d=Ce(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Le={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=_t.reduce(function(t,n){return t[n]=function(t,e,n){var i=Bt(t),o=[ut,at].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[ut,lt].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t},{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}};var Se={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=we({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}};var je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=Ee(e,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),b=Bt(e.placement),v=ie(e.placement),y=!v,_=Jt(b),w="x"===_?"y":"x",E=e.modifiersData.popperOffsets,O=e.rects.reference,A=e.rects.popper,x="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,C="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(E){if(r){var S,j="y"===_?at:ut,k="y"===_?ct:lt,D="y"===_?"height":"width",P=E[_],N=P+g[j],M=P-g[k],I=p?-A[D]/2:0,B=v===pt?O[D]:A[D],F=v===pt?-A[D]:-O[D],H=e.elements.arrow,q=p&&H?Vt(H):{width:0,height:0},z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=z[j],W=z[k],V=Zt(0,O[D],q[D]),Y=y?O[D]/2-I-V-R-C.mainAxis:B-V-R-C.mainAxis,U=y?-O[D]/2+I+V+W+C.mainAxis:F+V+W+C.mainAxis,K=e.elements.arrow&&$t(e.elements.arrow),Q=K?"y"===_?K.clientTop||0:K.clientLeft||0:0,G=null!=(S=null==T?void 0:T[_])?S:0,X=P+U-G,$=Zt(p?Ht(N,P+Y-G-Q):N,P,p?Ft(M,X):M);E[_]=$,L[_]=$-P}if(a){var J,Z="x"===_?at:ut,tt="x"===_?ct:lt,et=E[w],nt="y"===w?"height":"width",it=et+g[Z],ot=et-g[tt],rt=-1!==[at,ut].indexOf(b),st=null!=(J=null==T?void 0:T[w])?J:0,dt=rt?it:et-O[nt]-A[nt]-st+C.altAxis,ft=rt?et+O[nt]+A[nt]-st-C.altAxis:ot,ht=p&&rt?function(t,e,n){var i=Zt(t,e,n);return i>n?n:i}(dt,et,ft):Zt(p?dt:it,et,p?ft:ot);E[w]=ht,L[w]=ht-et}e.modifiersData[i]=L}},requiresIfExists:["offset"]};function ke(t,e,n){void 0===n&&(n=!1);var i,o,r=Nt(e),s=Nt(e)&&function(t){var e=t.getBoundingClientRect(),n=qt(e.width)/t.offsetWidth||1,i=qt(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=Qt(e),c=Wt(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==kt(e)||me(a))&&(l=(i=e)!==Dt(i)&&Nt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:pe(i)),Nt(e)?((u=Wt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=he(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function De(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}}),i.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){n.has(t.name)||o(t)}),i}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Me(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Pe:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;d(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Pt(t)?be(t):t.contextElement?be(t.contextElement):[],popper:be(e)};var s,l,f=function(t){var e=De(t);return jt.reduce(function(t,n){return t.concat(e.filter(function(t){return t.phase===n}))},[])}((s=[].concat(i,a.options.modifiers),l=s.reduce(function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t},{}),Object.keys(l).map(function(t){return l[t]})));return a.orderedModifiers=f.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:u,options:i}),s=function(){};c.push(r||s)}}),u.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(Ne(e,n)){a.rects={reference:ke(e,$t(n),"fixed"===a.options.strategy),popper:Vt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,c=void 0===s?{}:s,d=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:d,instance:u})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise(function(t){u.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){d(),l=!0}};if(!Ne(t,e))return u;function d(){c.forEach(function(t){return t()}),c=[]}return u.setOptions(n).then(function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)}),u}}var Ie=Me({defaultModifiers:[ce,Se,se,It,Le,Ae,je,ne,Te]}),Be=Object.freeze({__proto__:null,afterMain:Ct,afterRead:Ot,afterWrite:St,applyStyles:It,arrow:ne,auto:dt,basePlacements:ft,beforeMain:At,beforeRead:wt,beforeWrite:Tt,bottom:ct,clippingParents:mt,computeStyles:se,createPopper:Ie,detectOverflow:Ee,end:ht,eventListeners:ce,flip:Ae,hide:Te,left:ut,main:xt,modifierPhases:jt,offset:Le,placements:_t,popper:bt,popperGenerator:Me,popperOffsets:Se,preventOverflow:je,read:Et,reference:vt,right:lt,start:pt,top:at,variationPlacements:yt,viewport:gt,write:Lt});const Fe={"*":["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:[]},He=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ze=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?!He.has(n)||Boolean(qe.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(n))};const Re={allowList:Fe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},We={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ve={entry:"(string|element|function|null)",selector:"(string|element)"};class Ye extends W{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Re}static get DefaultType(){return We}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content=s(s({},this._config.content),t),this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const n of Object.entries(this._config.content)){var e=a(n,2);const i=e[0],o=e[1];this._setContent(t,o,i)}const n=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&n.classList.add(...i.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const n of Object.entries(t)){var e=a(n,2);const t=e[0],i=e[1];super._typeCheckConfig({selector:t,entry:i},Ve)}}_setContent(t,e,n){const i=U.findOne(n,t);i&&((e=this._resolvePossibleFunction(e))?d(e)?this._putElementInTemplate(f(e),i):this._config.html?i.innerHTML=this._maybeSanitize(e):i.textContent=e:i.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,n){if(!t.length)return t;if(n&&"function"==typeof n)return n(t);const i=(new window.DOMParser).parseFromString(t,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const t of o){const n=t.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){t.remove();continue}const i=[].concat(...t.attributes),o=[].concat(e["*"]||[],e[n]||[]);for(const e of i)ze(e,o)||t.removeAttribute(e.nodeName)}return i.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return w(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Ue=new Set(["sanitize","allowList","sanitizeFn"]),Ke="fade",Qe="show",Ge=".tooltip-inner",Xe=".".concat("modal"),$e="hide.bs.modal",Je="hover",Ze="focus",tn="click",en={AUTO:"auto",TOP:"top",RIGHT:y()?"left":"right",BOTTOM:"bottom",LEFT:y()?"right":"left"},nn={allowList:Fe,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"},on={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 rn extends V{constructor(t,e){if(void 0===Be)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),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 nn}static get DefaultType(){return on}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),F.off(this._element.closest(Xe),$e,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("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=F.trigger(this._element,this.constructor.eventName("show")),e=(m(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const i=this._config.container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),F.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.on(t,"mouseover",g);this._queueCallback(()=>{F.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(F.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Qe),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",g);this._activeTrigger[tn]=!1,this._activeTrigger[Ze]=!1,this._activeTrigger[Je]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),F.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ke,Qe),e.classList.add("bs-".concat(this.constructor.NAME,"-auto"));const n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Ke),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ye(s(s({},this._config),{},{content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)})),this._templateFactory}_getContentForTemplate(){return{[Ge]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ke)}_isShown(){return this.tip&&this.tip.classList.contains(Qe)}_createPopper(t){const e=w(this._config.placement,[this,t,this._element]),n=en[e.toUpperCase()];return Ie(this._element,t,this._getPopperConfig(n))}_getOffset(){const t=this._config.offset;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return w(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,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:".".concat(this.constructor.NAME,"-arrow")}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return s(s({},e),w(this._config.popperConfig,[void 0,e]))}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)F.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[tn]=!(e._isShown()&&e._activeTrigger[tn]),e.toggle()});else if("manual"!==e){const t=e===Je?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=e===Je?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");F.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?Ze:Je]=!0,e._enter()}),F.on(this._element,n,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?Ze:Je]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},F.on(this._element.closest(Xe),$e,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=R.getDataAttributes(this._element);for(const t of Object.keys(e))Ue.has(t)&&delete e[t];return t=s(s({},e),"object"==typeof t&&t?t:{}),t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:f(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const n of Object.entries(this._config)){var e=a(n,2);const i=e[0],o=e[1];this.constructor.Default[i]!==o&&(t[i]=o)}return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=rn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}}_(rn);const sn=".code-header>button",an="timeout",cn="data-title-succeed",ln="data-bs-original-title",un=2e3;function dn(t){if(t.hasAttribute(an)){let e=t.getAttribute(an);if(Number(e)>Date.now())return!0}return!1}function fn(t){t.setAttribute(an,Date.now()+un)}function pn(t){t.removeAttribute(an)}function hn(){const t=document.querySelectorAll(sn);if(0===t.length)return;const e=new ClipboardJS(sn,{target:t=>t.parentNode.nextElementSibling.querySelector("code .rouge-code")});[...t].map(t=>new rn(t,{placement:"left"})),e.on("success",t=>{const e=t.trigger;(t.clearSelection(),dn(e))||(e.children[0].setAttribute("class","fas fa-check"),function(t){const e=t.getAttribute(cn);t.setAttribute(ln,e),rn.getInstance(t).show()}(e),fn(e),setTimeout(()=>{!function(t){rn.getInstance(t).hide(),t.removeAttribute(ln)}(e),function(t){t.children[0].setAttribute("class","far fa-clipboard")}(e),pn(e)},un))})}const mn="data-src",gn="data-lqip",bn="shimmer",vn="blur";function yn(t){this.parentElement.classList.remove(t)}function _n(){this.complete&&(this.hasAttribute(gn)?yn.call(this,vn):yn.call(this,bn))}function wn(){const t=this.getAttribute(mn);this.setAttribute("src",encodeURI(t)),this.removeAttribute(mn)}const En=".popup:not(.dark)",On=".popup:not(.light)";let An=En;class xn{static get attrTimestamp(){return"data-ts"}static get attrDateFormat(){return"data-df"}static get locale(){return document.documentElement.getAttribute("lang").substring(0,2)}static getTimestamp(t){return Number(t.getAttribute(this.attrTimestamp))}static getDateFormat(t){return t.getAttribute(this.attrDateFormat)}}var Cn;const Tn=document.getElementById("toc-bar"),Ln=document.getElementById("toc-solo-trigger"),Sn=document.getElementsByClassName("toc-trigger"),jn=document.getElementById("toc-popup"),kn=document.getElementById("toc-popup-close"),Dn="overflow-hidden",Pn="closing";class Nn{static initBar(){new IntersectionObserver(t=>{t.forEach(t=>{Tn.classList.toggle("invisible",t.isIntersecting)})},{rootMargin:"-".concat(i(Nn,this,In)._,"px 0px 0px 0px")}).observe(Ln),Mn._=i(Nn,this,!1)}static listenAnchors(){[...document.getElementsByClassName("toc-link")].forEach(t=>{t.onclick=()=>this.hidePopup()})}static refresh(){i(Nn,this,Mn)._&&this.initComponents(),tocbot.refresh(this.options),this.listenAnchors()}static get popupOpened(){return jn.open}static showPopup(){this.lockScroll(!0),jn.showModal(),kn.blur();jn.querySelector("li.is-active-li").scrollIntoView({block:"center"})}static hidePopup(){jn.toggleAttribute(Pn),jn.addEventListener("animationend",()=>{jn.toggleAttribute(Pn),jn.close()},{once:!0}),this.lockScroll(!1)}static lockScroll(t){document.documentElement.classList.toggle(Dn,t),document.body.classList.toggle(Dn,t)}static clickBackdrop(t){if(jn.hasAttribute(Pn))return;const e=t.target.getBoundingClientRect();(t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom)&&this.hidePopup()}static initComponents(){this.initBar(),[...Sn].forEach(t=>{t.onclick=()=>this.showPopup()}),jn.onclick=t=>this.clickBackdrop(t),kn.onclick=()=>this.hidePopup(),jn.oncancel=t=>{t.preventDefault(),this.hidePopup()}}static init(){tocbot.init(this.options),this.listenAnchors(),this.initComponents()}}var Mn={_:!0},In={_:48};o(Nn,"options",{tocSelector:"#toc-popup-content",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,collapseDepth:4,headingsOffset:i(Cn=Nn,Cn,In)._});class Bn{static refresh(){tocbot.refresh(this.options)}static init(){tocbot.init(this.options)}}o(Bn,"options",{tocSelector:"#toc",contentSelector:".content",ignoreSelector:"[data-toc-skip]",headingSelector:"h2, h3, h4",orderedList:!1,scrollSmooth:!1,headingsOffset:32});const Fn=matchMedia("(min-width: 1200px)");function Hn(t){t.matches?(Nn.popupOpened&&Nn.hidePopup(),Bn.refresh()):Nn.refresh()}const qn="mermaid",zn=Theme.newThemeMap("default","dark");function Rn(t){if(t.source===window&&t.data&&t.data.id===Theme.eventId){[...document.getElementsByClassName(qn)].forEach(t=>{const e=t.previousSibling.children.item(0).textContent;t.textContent=e,t.removeAttribute("data-processed")});const t=zn[Theme.resolvedTheme];mermaid.initialize({theme:t}),mermaid.init(null,".".concat(qn))}}function Wn(t){const e=t.textContent,n=t.parentElement;n.classList.add("d-none");const i=document.createElement("pre");i.classList.add(qn);const o=document.createTextNode(e);i.appendChild(o),n.after(i)}const Vn="dropdown",Yn=".".concat("bs.dropdown"),Un=".data-api",Kn="ArrowUp",Qn="ArrowDown",Gn="hide".concat(Yn),Xn="hidden".concat(Yn),$n="show".concat(Yn),Jn="shown".concat(Yn),Zn="click".concat(Yn).concat(Un),ti="keydown".concat(Yn).concat(Un),ei="keyup".concat(Yn).concat(Un),ni="show",ii='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',oi="".concat(ii,".").concat(ni),ri=".dropdown-menu",si=y()?"top-end":"top-start",ai=y()?"top-start":"top-end",ci=y()?"bottom-end":"bottom-start",li=y()?"bottom-start":"bottom-end",ui=y()?"left-start":"right-start",di=y()?"right-start":"left-start",fi={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},pi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class hi extends V{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,ri)[0]||U.prev(this._element,ri)[0]||U.findOne(ri,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return fi}static get DefaultType(){return pi}static get NAME(){return Vn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(h(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!F.trigger(this._element,$n,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))F.on(t,"mouseover",g);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ni),this._element.classList.add(ni),F.trigger(this._element,Jn,t)}}hide(){if(h(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!F.trigger(this._element,Gn,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))F.off(t,"mouseover",g);this._popper&&this._popper.destroy(),this._menu.classList.remove(ni),this._element.classList.remove(ni),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),F.trigger(this._element,Xn,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!d(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError("".concat(Vn.toUpperCase(),': Option "reference" provided type "object" without a required "getBoundingClientRect" method.'));return t}_createPopper(){if(void 0===Be)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:d(this._config.reference)?t=f(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Ie(t,this._menu,e)}_isShown(){return this._menu.classList.contains(ni)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return ui;if(t.classList.contains("dropstart"))return di;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ai:si:e?li:ci}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config.offset;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),s(s({},t),w(this._config.popperConfig,[void 0,t]))}_selectMenuItem(t){let e=t.key,n=t.target;const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>p(t));i.length&&((t,e,n,i)=>{const o=t.length;let r=t.indexOf(e);return-1===r?!n&&i?t[o-1]:t[0]:(r+=n?1:-1,i&&(r=(r+o)%o),t[Math.max(0,Math.min(r,o-1))])})(i,n,e===Qn,!i.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const e=hi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'.concat(t,'"'));e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=U.find(oi);for(const n of e){const e=hi.getInstance(n);if(!e||!1===e._config.autoClose)continue;const i=t.composedPath(),o=i.includes(e._menu);if(i.includes(e._element)||"inside"===e._config.autoClose&&!o||"outside"===e._config.autoClose&&o)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const r={relatedTarget:e._element};"click"===t.type&&(r.clickEvent=t),e._completeHide(r)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),n="Escape"===t.key,i=[Kn,Qn].includes(t.key);if(!i&&!n)return;if(e&&!n)return;t.preventDefault();const o=this.matches(ii)?this:U.prev(this,ii)[0]||U.next(this,ii)[0]||U.findOne(ii,t.delegateTarget.parentNode),r=hi.getOrCreateInstance(o);if(i)return t.stopPropagation(),r.show(),void r._selectMenuItem(t);r._isShown()&&(t.stopPropagation(),r.hide(),o.focus())}}F.on(document,ti,ii,hi.dataApiKeydownHandler),F.on(document,ti,ri,hi.dataApiKeydownHandler),F.on(document,Zn,hi.clearMenus),F.on(document,ei,hi.clearMenus),F.on(document,Zn,ii,function(t){t.preventDefault(),hi.getOrCreateInstance(this).toggle()}),_(hi);const mi="active",gi=document.querySelector("#mode-toggle + .dropdown-menu"),bi=Theme.isSystemTheme?Theme.Mode.SYSTEM:Theme.resolvedTheme;const vi=document.getElementById("sidebar"),yi=document.getElementById("sidebar-trigger"),_i=document.getElementById("mask");class wi{static toggle(){Ei._=i(wi,this,!i(wi,this,Ei)._),document.body.toggleAttribute("sidebar-display",i(wi,this,Ei)._),vi.classList.toggle("z-2",i(wi,this,Ei)._),_i.classList.toggle("d-none",!i(wi,this,Ei)._)}}var Ei={_:!1};const Oi=document.getElementById("sidebar-trigger"),Ai=document.getElementById("search-trigger"),xi=document.getElementById("search-cancel"),Ci=document.querySelectorAll("#main-wrapper>.container>.row"),Ti=document.getElementById("topbar-title"),Li=document.getElementById("search"),Si=document.getElementById("search-result-wrapper"),ji=document.getElementById("search-results"),ki=document.getElementById("search-input"),Di=document.getElementById("search-hints"),Pi="d-block",Ni="d-none",Mi="input-focus",Ii="d-flex";class Bi{static on(){Oi.classList.add(Ni),Ti.classList.add(Ni),Ai.classList.add(Ni),Li.classList.add(Ii),xi.classList.add(Pi)}static off(){xi.classList.remove(Pi),Li.classList.remove(Ii),Oi.classList.remove(Ni),Ti.classList.remove(Ni),Ai.classList.remove(Ni)}}class Fi{static on(){this.resultVisible||(Si.classList.remove(Ni),Ci.forEach(t=>{t.classList.add(Ni)}),this.resultVisible=!0)}static off(){this.resultVisible&&(ji.innerHTML="",Di.classList.contains(Ni)&&Di.classList.remove(Ni),Si.classList.add(Ni),Ci.forEach(t=>{t.classList.remove(Ni)}),ki.textContent="",this.resultVisible=!1)}}function Hi(){return xi.classList.contains(Pi)}o(Fi,"resultVisible",!1),function(){const t=document.querySelectorAll("article img");if(0===t.length)return;t.forEach(t=>{t.addEventListener("load",_n)}),document.querySelectorAll('article img[loading="lazy"]').forEach(t=>{t.complete&&yn.call(t,bn)});const e=document.querySelectorAll("article img[".concat(gn,'="true"]'));e.length&&e.forEach(t=>{wn.call(t)})}(),function(){if(null===document.querySelector('main>article[data-toc="true"]'))return;Fn.matches?Bn.init():Nn.init(),document.getElementById("toc-wrapper").classList.remove("invisible"),Fn.onchange=Hn}(),function(){if(null===document.querySelector(".popup"))return;const t=!(null===document.querySelector(".popup.light")&&null===document.querySelector(".popup.dark"));Theme.isDark&&(An=On);let e=GLightbox({selector:"".concat(An)});if(t&&Theme.isToggleable){let t=null;window.addEventListener("message",n=>{if(n.source===window&&n.data&&n.data.id===Theme.eventId){var i=function(t,e){return An=An===En?On:En,null===e&&(e=GLightbox({selector:"".concat(An)})),[e,t]}(e,t),o=a(i,2);e=o[0],t=o[1]}})}}(),yi.onclick=_i.onclick=()=>wi.toggle(),dayjs.locale(xn.locale),dayjs.extend(window.dayjs_plugin_localizedFormat),document.querySelectorAll("[".concat(xn.attrTimestamp,"]")).forEach(t=>{const e=dayjs.unix(xn.getTimestamp(t)),n=e.format(xn.getDateFormat(t));if(t.textContent=n,t.removeAttribute(xn.attrTimestamp),t.removeAttribute(xn.attrDateFormat),t.hasAttribute("data-bs-toggle")&&"tooltip"===t.getAttribute("data-bs-toggle")){const n=e.format("llll");t.setAttribute("data-bs-title",n)}}),hn(),function(){const t=document.getElementById("copy-link");null!==t&&(t.addEventListener("click",t=>{const e=t.target;dn(e)||navigator.clipboard.writeText(window.location.href).then(()=>{const t=e.getAttribute(ln),n=e.getAttribute(cn);e.setAttribute(ln,n),rn.getInstance(e).show(),fn(e),setTimeout(()=>{e.setAttribute(ln,t),pn(e)},un)})}),t.addEventListener("mouseleave",t=>{rn.getInstance(t.target).hide()}))}(),Ai.addEventListener("click",()=>{Bi.on(),Fi.on(),ki.focus()}),xi.addEventListener("click",()=>{Bi.off(),Fi.off()}),ki.addEventListener("focus",()=>{Li.classList.add(Mi)}),ki.addEventListener("focusout",()=>{Li.classList.remove(Mi)}),ki.addEventListener("input",()=>{""===ki.value?Hi()?Di.classList.remove(Ni):Fi.off():(Fi.on(),Hi()&&Di.classList.add(Ni))}),function(){if("undefined"==typeof mermaid||"function"!=typeof mermaid.initialize)return;let t={theme:zn[Theme.resolvedTheme]};[...document.getElementsByClassName("language-mermaid")].forEach(Wn),mermaid.initialize(t),Theme.isToggleable&&window.addEventListener("message",Rn)}(),Theme.isToggleable&&(gi.querySelectorAll(".dropdown-item").forEach(t=>{t.dataset.themeMode!==bi||t.classList.add(mi)}),gi.addEventListener("click",t=>{const e=t.target.closest(".dropdown-item");if(!e)return;const n=gi.querySelector(".".concat(mi));n!==e&&(n.classList.remove(mi),e.classList.add(mi),Theme.update(e.dataset.themeMode))})),function(){const t=document.getElementById("back-to-top");window.addEventListener("scroll",()=>{window.scrollY>50?t.classList.add("show"):t.classList.remove("show")}),t.addEventListener("click",()=>{window.scrollTo({top:0})})}(),[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].map(t=>new rn(t))}();
|
data/assets/js/dist/sw.min.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
permalink: /:basename
|
|
3
3
|
---
|
|
4
4
|
/*!
|
|
5
|
-
* jekyll-theme-chirpy v7.
|
|
5
|
+
* jekyll-theme-chirpy v7.6.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
|
6
6
|
*/
|
|
7
7
|
!function(){"use strict";importScripts("./assets/js/data/swconf.js");const e=swconf.purge,t=swconf.interceptor;self.addEventListener("install",t=>{e||t.waitUntil(caches.open(swconf.cacheName).then(e=>e.addAll(swconf.resources)))}),self.addEventListener("activate",t=>{t.waitUntil(caches.keys().then(t=>Promise.all(t.map(t=>e||t!==swconf.cacheName?caches.delete(t):void 0))))}),self.addEventListener("message",e=>{"SKIP_WAITING"===e.data&&self.skipWaiting()}),self.addEventListener("fetch",s=>{s.request.headers.has("range")||s.respondWith(caches.match(s.request).then(n=>n||fetch(s.request).then(n=>{const r=s.request.url;if(e||"GET"!==s.request.method||!function(e){const s=new URL(e),n=s.pathname;if(!s.protocol.startsWith("http"))return!1;for(const e of t.urlPrefixes)if(s.href.startsWith(e))return!1;for(const e of t.paths)if(n.startsWith(e))return!1;return!0}(r))return n;let a=n.clone();return caches.open(swconf.cacheName).then(e=>{e.put(s.request,a)}),n})))})}();
|
data/assets/js/dist/theme.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* jekyll-theme-chirpy v7.
|
|
2
|
+
* jekyll-theme-chirpy v7.6.0 | © 2019 Cotes Chung | MIT Licensed | https://github.com/cotes2020/jekyll-theme-chirpy/
|
|
3
3
|
*/
|
|
4
|
-
var Theme=function(){"use strict";function t(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function e(e,i,s){return s(t(e,i))}var i;
|
|
4
|
+
var Theme=function(){"use strict";function t(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function e(e,i,s){return s(t(e,i))}function i(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var s;class r{static get resolvedTheme(){return e(r,this,n)||e(r,this,o)}static get isSystemTheme(){return null===e(r,this,n)}static get isDark(){return this.resolvedTheme===this.Mode.DARK}static newThemeMap(t,e){return{[this.Mode.LIGHT]:t,[this.Mode.DARK]:e}}static init(){if(!this.isToggleable)return void t(r,this,l).call(this);const i=e(r,this,n);i?t(r,this,a).call(this,i,{domPersist:!0}):t(r,this,a).call(this,e(r,this,o)),t(r,this,m)._.addEventListener("change",()=>{e(r,this,n)||(t(r,this,a).call(this,e(r,this,o)),t(r,this,c).call(this))})}static update(i){const s=i===this.Mode.SYSTEM?e(r,this,o):i;s!==this.resolvedTheme&&t(r,this,c).call(this),t(r,this,a).call(this,s,{persist:i!==this.Mode.SYSTEM}),i===this.Mode.SYSTEM&&t(r,this,l).call(this)}}function n(e){return localStorage.getItem(t(s,e,u)._)}function o(t){return e(s,t,h)?t.Mode.DARK:t.Mode.LIGHT}function h(e){return t(s,e,m)._.matches}function a(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.persist,n=void 0!==r&&r,o=i.domPersist,h=void 0!==o&&o;t(s,this,d)._.dataset.bsTheme=e,n&&localStorage.setItem(t(s,this,u)._,e),(h||n)&&t(s,this,d)._.toggleAttribute("data-theme-persisted",!0)}function l(){localStorage.removeItem(t(s,this,u)._),t(s,this,d)._.toggleAttribute("data-theme-persisted",!1)}function c(){window.postMessage({id:this.eventId},"*")}s=r;var u={_:"theme"};i(r,"Mode",Object.freeze({DARK:"dark",LIGHT:"light",SYSTEM:"system"}));var d={_:document.documentElement},m={_:window.matchMedia("(prefers-color-scheme: dark)")};return i(r,"isToggleable",null===e(s,s,function(e){return t(s,e,d)._.dataset.bsTheme||null})),i(r,"eventId","theme-updated"),r.init(),r}();
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-chirpy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cotes Chung
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: jekyll
|
|
@@ -94,7 +93,6 @@ dependencies:
|
|
|
94
93
|
- - "~>"
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: '0.2'
|
|
97
|
-
description:
|
|
98
96
|
email:
|
|
99
97
|
- cotes.chung@gmail.com
|
|
100
98
|
executables: []
|
|
@@ -167,6 +165,7 @@ files:
|
|
|
167
165
|
- _includes/notification.html
|
|
168
166
|
- _includes/origin-type.html
|
|
169
167
|
- _includes/pageviews/goatcounter.html
|
|
168
|
+
- _includes/post-edit.html
|
|
170
169
|
- _includes/post-nav.html
|
|
171
170
|
- _includes/post-paginator.html
|
|
172
171
|
- _includes/post-sharing.html
|
|
@@ -256,7 +255,6 @@ metadata:
|
|
|
256
255
|
source_code_uri: https://github.com/cotes2020/jekyll-theme-chirpy
|
|
257
256
|
wiki_uri: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
|
|
258
257
|
plugin_type: theme
|
|
259
|
-
post_install_message:
|
|
260
258
|
rdoc_options: []
|
|
261
259
|
require_paths:
|
|
262
260
|
- lib
|
|
@@ -271,8 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
271
269
|
- !ruby/object:Gem::Version
|
|
272
270
|
version: '0'
|
|
273
271
|
requirements: []
|
|
274
|
-
rubygems_version: 3.
|
|
275
|
-
signing_key:
|
|
272
|
+
rubygems_version: 3.6.9
|
|
276
273
|
specification_version: 4
|
|
277
274
|
summary: A minimal, responsive, and feature-rich Jekyll theme for technical writing.
|
|
278
275
|
test_files: []
|