From 949891ec2972fdbf60605f33f2816307c51c645b Mon Sep 17 00:00:00 2001 From: Ahmad Afandi Date: Tue, 21 Apr 2026 16:15:38 +0700 Subject: [PATCH 1/5] feat: tambahkan parameter identitas openkab --- public/build-web/assets/vendor-02370d6c.js | 57 ------------- public/build-web/assets/vendor-5c04c9f3.js | 83 +++++++++++++++++++ .../{web-8c49582b.js => web-b4aa1d33.js} | 4 +- public/build-web/manifest.json | 8 +- resources/js/web.js | 11 +++ .../views/layouts/presisi/index.blade.php | 3 +- .../presisi/partials/javascript.blade.php | 13 ++- resources/views/layouts/web.blade.php | 1 + .../views/web/partials/property.blade.php | 18 +--- 9 files changed, 117 insertions(+), 81 deletions(-) delete mode 100644 public/build-web/assets/vendor-02370d6c.js create mode 100644 public/build-web/assets/vendor-5c04c9f3.js rename public/build-web/assets/{web-8c49582b.js => web-b4aa1d33.js} (59%) diff --git a/public/build-web/assets/vendor-02370d6c.js b/public/build-web/assets/vendor-02370d6c.js deleted file mode 100644 index f741b7ad5..000000000 --- a/public/build-web/assets/vendor-02370d6c.js +++ /dev/null @@ -1,57 +0,0 @@ -var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Xs(n){if(n.__esModule)return n;var o=n.default;if(typeof o=="function"){var f=function m(){return this instanceof m?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};f.prototype=o.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(n).forEach(function(m){var w=Object.getOwnPropertyDescriptor(n,m);Object.defineProperty(f,m,w.get?w:{enumerable:!0,get:function(){return n[m]}})}),f}var Qo={exports:{}},Vo={exports:{}};/*! - * jQuery JavaScript Library v3.7.0 - * https://jquery.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2023-05-11T18:29Z - */var $s;function Zs(){return $s||($s=1,function(n){(function(o,f){n.exports=o.document?f(o,!0):function(m){if(!m.document)throw new Error("jQuery requires a window with a document");return f(m)}})(typeof window<"u"?window:ss,function(o,f){var m=[],w=Object.getPrototypeOf,N=m.slice,v=m.flat?function(a){return m.flat.call(a)}:function(a){return m.concat.apply([],a)},J=m.push,ne=m.indexOf,he={},pe=he.toString,xe=he.hasOwnProperty,We=xe.toString,Ve=We.call(Object),Se={},ke=function(l){return typeof l=="function"&&typeof l.nodeType!="number"&&typeof l.item!="function"},Et=function(l){return l!=null&&l===l.window},je=o.document,Tt={type:!0,src:!0,nonce:!0,noModule:!0};function zt(a,l,g){g=g||je;var y,S,E=g.createElement("script");if(E.text=a,l)for(y in Tt)S=l[y]||l.getAttribute&&l.getAttribute(y),S&&E.setAttribute(y,S);g.head.appendChild(E).parentNode.removeChild(E)}function De(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?he[pe.call(a)]||"object":typeof a}var cn="3.7.0",Ae=/HTML$/i,d=function(a,l){return new d.fn.init(a,l)};d.fn=d.prototype={jquery:cn,constructor:d,length:0,toArray:function(){return N.call(this)},get:function(a){return a==null?N.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var l=d.merge(this.constructor(),a);return l.prevObject=this,l},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(l,g){return a.call(l,g,l)}))},slice:function(){return this.pushStack(N.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(a,l){return(l+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(a,l){return l%2}))},eq:function(a){var l=this.length,g=+a+(a<0?l:0);return this.pushStack(g>=0&&g0&&l-1 in a}function L(a,l){return a.nodeName&&a.nodeName.toLowerCase()===l.toLowerCase()}var D=m.pop,T=m.sort,x=m.splice,O="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");d.contains=function(a,l){var g=l&&l.parentNode;return a===g||!!(g&&g.nodeType===1&&(a.contains?a.contains(g):a.compareDocumentPosition&&a.compareDocumentPosition(g)&16))};var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function K(a,l){return l?a==="\0"?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}d.escapeSelector=function(a){return(a+"").replace(Q,K)};var ae=je,ye=J;(function(){var a,l,g,y,S,E=ye,M,z,j,X,oe,se=d.expando,ee=0,ve=0,Ke=Br(),ot=Br(),Qe=Br(),$t=Br(),Wt=function(F,U){return F===U&&(S=!0),0},In="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Pn="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",it="\\["+O+"*("+Pn+")(?:"+O+"*([*^$|!~]?=)"+O+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Pn+"))|)"+O+"*\\]",Pi=":("+Pn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+it+")*)|.*)\\)|)",ut=new RegExp(O+"+","g"),st=new RegExp("^"+O+"*,"+O+"*"),tr=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),di=new RegExp(O+"|>"),Tn=new RegExp(Pi),Gn=new RegExp("^"+Pn+"$"),fn={ID:new RegExp("^#("+Pn+")"),CLASS:new RegExp("^\\.("+Pn+")"),TAG:new RegExp("^("+Pn+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+Pi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+In+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},Ln=/^(?:input|select|textarea|button)$/i,Kn=/^h\d$/i,yn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xr=/[+~]/,Rn=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Fn=function(F,U){var Z="0x"+F.slice(1)-65536;return U||(Z<0?String.fromCharCode(Z+65536):String.fromCharCode(Z>>10|55296,Z&1023|56320))},Li=function(){Qn()},Ua=ir(function(F){return F.disabled===!0&&L(F,"fieldset")},{dir:"parentNode",next:"legend"});function Ri(){try{return M.activeElement}catch{}}try{E.apply(m=N.call(ae.childNodes),ae.childNodes),m[ae.childNodes.length].nodeType}catch{E={apply:function(U,Z){ye.apply(U,N.call(Z))},call:function(U){ye.apply(U,N.call(arguments,1))}}}function nt(F,U,Z,ie){var ce,Te,Me,$e,Oe,Je,Ye,Xe=U&&U.ownerDocument,et=U?U.nodeType:9;if(Z=Z||[],typeof F!="string"||!F||et!==1&&et!==9&&et!==11)return Z;if(!ie&&(Qn(U),U=U||M,j)){if(et!==11&&(Oe=yn.exec(F)))if(ce=Oe[1]){if(et===9)if(Me=U.getElementById(ce)){if(Me.id===ce)return E.call(Z,Me),Z}else return Z;else if(Xe&&(Me=Xe.getElementById(ce))&&nt.contains(U,Me)&&Me.id===ce)return E.call(Z,Me),Z}else{if(Oe[2])return E.apply(Z,U.getElementsByTagName(F)),Z;if((ce=Oe[3])&&U.getElementsByClassName)return E.apply(Z,U.getElementsByClassName(ce)),Z}if(!$t[F+" "]&&(!X||!X.test(F))){if(Ye=F,Xe=U,et===1&&(di.test(F)||tr.test(F))){for(Xe=xr.test(F)&&qt(U.parentNode)||U,(Xe!=U||!Se.scope)&&(($e=U.getAttribute("id"))?$e=d.escapeSelector($e):U.setAttribute("id",$e=se)),Je=Xn(F),Te=Je.length;Te--;)Je[Te]=($e?"#"+$e:":scope")+" "+Cn(Je[Te]);Ye=Je.join(",")}try{return E.apply(Z,Xe.querySelectorAll(Ye)),Z}catch{$t(F,!0)}finally{$e===se&&U.removeAttribute("id")}}}return Ma(F.replace(P,"$1"),U,Z,ie)}function Br(){var F=[];function U(Z,ie){return F.push(Z+" ")>l.cacheLength&&delete U[F.shift()],U[Z+" "]=ie}return U}function sn(F){return F[se]=!0,F}function Fi(F){var U=M.createElement("fieldset");try{return!!F(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function Ga(F){return function(U){return L(U,"input")&&U.type===F}}function nr(F){return function(U){return(L(U,"input")||L(U,"button"))&&U.type===F}}function fi(F){return function(U){return"form"in U?U.parentNode&&U.disabled===!1?"label"in U?"label"in U.parentNode?U.parentNode.disabled===F:U.disabled===F:U.isDisabled===F||U.isDisabled!==!F&&Ua(U)===F:U.disabled===F:"label"in U?U.disabled===F:!1}}function ln(F){return sn(function(U){return U=+U,sn(function(Z,ie){for(var ce,Te=F([],Z.length,U),Me=Te.length;Me--;)Z[ce=Te[Me]]&&(Z[ce]=!(ie[ce]=Z[ce]))})})}function qt(F){return F&&typeof F.getElementsByTagName<"u"&&F}function Qn(F){var U,Z=F?F.ownerDocument||F:ae;return Z==M||Z.nodeType!==9||!Z.documentElement||(M=Z,z=M.documentElement,j=!d.isXMLDoc(M),oe=z.matches||z.webkitMatchesSelector||z.msMatchesSelector,ae!=M&&(U=M.defaultView)&&U.top!==U&&U.addEventListener("unload",Li),Se.getById=Fi(function(ie){return z.appendChild(ie).id=d.expando,!M.getElementsByName||!M.getElementsByName(d.expando).length}),Se.disconnectedMatch=Fi(function(ie){return oe.call(ie,"*")}),Se.scope=Fi(function(){return M.querySelectorAll(":scope")}),Se.cssHas=Fi(function(){try{return M.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),Se.getById?(l.filter.ID=function(ie){var ce=ie.replace(Rn,Fn);return function(Te){return Te.getAttribute("id")===ce}},l.find.ID=function(ie,ce){if(typeof ce.getElementById<"u"&&j){var Te=ce.getElementById(ie);return Te?[Te]:[]}}):(l.filter.ID=function(ie){var ce=ie.replace(Rn,Fn);return function(Te){var Me=typeof Te.getAttributeNode<"u"&&Te.getAttributeNode("id");return Me&&Me.value===ce}},l.find.ID=function(ie,ce){if(typeof ce.getElementById<"u"&&j){var Te,Me,$e,Oe=ce.getElementById(ie);if(Oe){if(Te=Oe.getAttributeNode("id"),Te&&Te.value===ie)return[Oe];for($e=ce.getElementsByName(ie),Me=0;Oe=$e[Me++];)if(Te=Oe.getAttributeNode("id"),Te&&Te.value===ie)return[Oe]}return[]}}),l.find.TAG=function(ie,ce){return typeof ce.getElementsByTagName<"u"?ce.getElementsByTagName(ie):ce.querySelectorAll(ie)},l.find.CLASS=function(ie,ce){if(typeof ce.getElementsByClassName<"u"&&j)return ce.getElementsByClassName(ie)},X=[],Fi(function(ie){var ce;z.appendChild(ie).innerHTML="",ie.querySelectorAll("[selected]").length||X.push("\\["+O+"*(?:value|"+In+")"),ie.querySelectorAll("[id~="+se+"-]").length||X.push("~="),ie.querySelectorAll("a#"+se+"+*").length||X.push(".#.+[+~]"),ie.querySelectorAll(":checked").length||X.push(":checked"),ce=M.createElement("input"),ce.setAttribute("type","hidden"),ie.appendChild(ce).setAttribute("name","D"),z.appendChild(ie).disabled=!0,ie.querySelectorAll(":disabled").length!==2&&X.push(":enabled",":disabled"),ce=M.createElement("input"),ce.setAttribute("name",""),ie.appendChild(ce),ie.querySelectorAll("[name='']").length||X.push("\\["+O+"*name"+O+"*="+O+`*(?:''|"")`)}),Se.cssHas||X.push(":has"),X=X.length&&new RegExp(X.join("|")),Wt=function(ie,ce){if(ie===ce)return S=!0,0;var Te=!ie.compareDocumentPosition-!ce.compareDocumentPosition;return Te||(Te=(ie.ownerDocument||ie)==(ce.ownerDocument||ce)?ie.compareDocumentPosition(ce):1,Te&1||!Se.sortDetached&&ce.compareDocumentPosition(ie)===Te?ie===M||ie.ownerDocument==ae&&nt.contains(ae,ie)?-1:ce===M||ce.ownerDocument==ae&&nt.contains(ae,ce)?1:y?ne.call(y,ie)-ne.call(y,ce):0:Te&4?-1:1)}),M}nt.matches=function(F,U){return nt(F,null,null,U)},nt.matchesSelector=function(F,U){if(Qn(F),j&&!$t[U+" "]&&(!X||!X.test(U)))try{var Z=oe.call(F,U);if(Z||Se.disconnectedMatch||F.document&&F.document.nodeType!==11)return Z}catch{$t(U,!0)}return nt(U,M,null,[F]).length>0},nt.contains=function(F,U){return(F.ownerDocument||F)!=M&&Qn(F),d.contains(F,U)},nt.attr=function(F,U){(F.ownerDocument||F)!=M&&Qn(F);var Z=l.attrHandle[U.toLowerCase()],ie=Z&&xe.call(l.attrHandle,U.toLowerCase())?Z(F,U,!j):void 0;return ie!==void 0?ie:F.getAttribute(U)},nt.error=function(F){throw new Error("Syntax error, unrecognized expression: "+F)},d.uniqueSort=function(F){var U,Z=[],ie=0,ce=0;if(S=!Se.sortStable,y=!Se.sortStable&&N.call(F,0),T.call(F,Wt),S){for(;U=F[ce++];)U===F[ce]&&(ie=Z.push(ce));for(;ie--;)x.call(F,Z[ie],1)}return y=null,F},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(N.apply(this)))},l=d.expr={cacheLength:50,createPseudo:sn,match:fn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(F){return F[1]=F[1].replace(Rn,Fn),F[3]=(F[3]||F[4]||F[5]||"").replace(Rn,Fn),F[2]==="~="&&(F[3]=" "+F[3]+" "),F.slice(0,4)},CHILD:function(F){return F[1]=F[1].toLowerCase(),F[1].slice(0,3)==="nth"?(F[3]||nt.error(F[0]),F[4]=+(F[4]?F[5]+(F[6]||1):2*(F[3]==="even"||F[3]==="odd")),F[5]=+(F[7]+F[8]||F[3]==="odd")):F[3]&&nt.error(F[0]),F},PSEUDO:function(F){var U,Z=!F[6]&&F[2];return fn.CHILD.test(F[0])?null:(F[3]?F[2]=F[4]||F[5]||"":Z&&Tn.test(Z)&&(U=Xn(Z,!0))&&(U=Z.indexOf(")",Z.length-U)-Z.length)&&(F[0]=F[0].slice(0,U),F[2]=Z.slice(0,U)),F.slice(0,3))}},filter:{TAG:function(F){var U=F.replace(Rn,Fn).toLowerCase();return F==="*"?function(){return!0}:function(Z){return L(Z,U)}},CLASS:function(F){var U=Ke[F+" "];return U||(U=new RegExp("(^|"+O+")"+F+"("+O+"|$)"))&&Ke(F,function(Z){return U.test(typeof Z.className=="string"&&Z.className||typeof Z.getAttribute<"u"&&Z.getAttribute("class")||"")})},ATTR:function(F,U,Z){return function(ie){var ce=nt.attr(ie,F);return ce==null?U==="!=":U?(ce+="",U==="="?ce===Z:U==="!="?ce!==Z:U==="^="?Z&&ce.indexOf(Z)===0:U==="*="?Z&&ce.indexOf(Z)>-1:U==="$="?Z&&ce.slice(-Z.length)===Z:U==="~="?(" "+ce.replace(ut," ")+" ").indexOf(Z)>-1:U==="|="?ce===Z||ce.slice(0,Z.length+1)===Z+"-":!1):!0}},CHILD:function(F,U,Z,ie,ce){var Te=F.slice(0,3)!=="nth",Me=F.slice(-4)!=="last",$e=U==="of-type";return ie===1&&ce===0?function(Oe){return!!Oe.parentNode}:function(Oe,Je,Ye){var Xe,et,He,Ct,Dt,Ht=Te!==Me?"nextSibling":"previousSibling",hn=Oe.parentNode,Qt=$e&&Oe.nodeName.toLowerCase(),rr=!Ye&&!$e,Lt=!1;if(hn){if(Te){for(;Ht;){for(He=Oe;He=He[Ht];)if($e?L(He,Qt):He.nodeType===1)return!1;Dt=Ht=F==="only"&&!Dt&&"nextSibling"}return!0}if(Dt=[Me?hn.firstChild:hn.lastChild],Me&&rr){for(et=hn[se]||(hn[se]={}),Xe=et[F]||[],Ct=Xe[0]===ee&&Xe[1],Lt=Ct&&Xe[2],He=Ct&&hn.childNodes[Ct];He=++Ct&&He&&He[Ht]||(Lt=Ct=0)||Dt.pop();)if(He.nodeType===1&&++Lt&&He===Oe){et[F]=[ee,Ct,Lt];break}}else if(rr&&(et=Oe[se]||(Oe[se]={}),Xe=et[F]||[],Ct=Xe[0]===ee&&Xe[1],Lt=Ct),Lt===!1)for(;(He=++Ct&&He&&He[Ht]||(Lt=Ct=0)||Dt.pop())&&!(($e?L(He,Qt):He.nodeType===1)&&++Lt&&(rr&&(et=He[se]||(He[se]={}),et[F]=[ee,Lt]),He===Oe)););return Lt-=ce,Lt===ie||Lt%ie===0&&Lt/ie>=0}}},PSEUDO:function(F,U){var Z,ie=l.pseudos[F]||l.setFilters[F.toLowerCase()]||nt.error("unsupported pseudo: "+F);return ie[se]?ie(U):ie.length>1?(Z=[F,F,"",U],l.setFilters.hasOwnProperty(F.toLowerCase())?sn(function(ce,Te){for(var Me,$e=ie(ce,U),Oe=$e.length;Oe--;)Me=ne.call(ce,$e[Oe]),ce[Me]=!(Te[Me]=$e[Oe])}):function(ce){return ie(ce,0,Z)}):ie}},pseudos:{not:sn(function(F){var U=[],Z=[],ie=hi(F.replace(P,"$1"));return ie[se]?sn(function(ce,Te,Me,$e){for(var Oe,Je=ie(ce,null,$e,[]),Ye=ce.length;Ye--;)(Oe=Je[Ye])&&(ce[Ye]=!(Te[Ye]=Oe))}):function(ce,Te,Me){return U[0]=ce,ie(U,null,Me,Z),U[0]=null,!Z.pop()}}),has:sn(function(F){return function(U){return nt(F,U).length>0}}),contains:sn(function(F){return F=F.replace(Rn,Fn),function(U){return(U.textContent||d.text(U)).indexOf(F)>-1}}),lang:sn(function(F){return Gn.test(F||"")||nt.error("unsupported lang: "+F),F=F.replace(Rn,Fn).toLowerCase(),function(U){var Z;do if(Z=j?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return Z=Z.toLowerCase(),Z===F||Z.indexOf(F+"-")===0;while((U=U.parentNode)&&U.nodeType===1);return!1}}),target:function(F){var U=o.location&&o.location.hash;return U&&U.slice(1)===F.id},root:function(F){return F===z},focus:function(F){return F===Ri()&&M.hasFocus()&&!!(F.type||F.href||~F.tabIndex)},enabled:fi(!1),disabled:fi(!0),checked:function(F){return L(F,"input")&&!!F.checked||L(F,"option")&&!!F.selected},selected:function(F){return F.parentNode&&F.parentNode.selectedIndex,F.selected===!0},empty:function(F){for(F=F.firstChild;F;F=F.nextSibling)if(F.nodeType<6)return!1;return!0},parent:function(F){return!l.pseudos.empty(F)},header:function(F){return Kn.test(F.nodeName)},input:function(F){return Ln.test(F.nodeName)},button:function(F){return L(F,"input")&&F.type==="button"||L(F,"button")},text:function(F){var U;return L(F,"input")&&F.type==="text"&&((U=F.getAttribute("type"))==null||U.toLowerCase()==="text")},first:ln(function(){return[0]}),last:ln(function(F,U){return[U-1]}),eq:ln(function(F,U,Z){return[Z<0?Z+U:Z]}),even:ln(function(F,U){for(var Z=0;ZU?ie=U:ie=Z;--ie>=0;)F.push(ie);return F}),gt:ln(function(F,U,Z){for(var ie=Z<0?Z+U:Z;++ie1?function(U,Z,ie){for(var ce=F.length;ce--;)if(!F[ce](U,Z,ie))return!1;return!0}:F[0]}function Aa(F,U,Z){for(var ie=0,ce=U.length;ie-1&&(Me[Ye]=!($e[Ye]=et))}}else He=wr(He===$e?He.splice(Ht,He.length):He),ce?ce(null,$e,He,Je):E.apply($e,He)})}function la(F){for(var U,Z,ie,ce=F.length,Te=l.relative[F[0].type],Me=Te||l.relative[" "],$e=Te?1:0,Oe=ir(function(Xe){return Xe===U},Me,!0),Je=ir(function(Xe){return ne.call(U,Xe)>-1},Me,!0),Ye=[function(Xe,et,He){var Ct=!Te&&(He||et!=g)||((U=et).nodeType?Oe(Xe,et,He):Je(Xe,et,He));return U=null,Ct}];$e1&&Zn(Ye),$e>1&&Cn(F.slice(0,$e-1).concat({value:F[$e-2].type===" "?"*":""})).replace(P,"$1"),Z,$e0,ie=F.length>0,ce=function(Te,Me,$e,Oe,Je){var Ye,Xe,et,He=0,Ct="0",Dt=Te&&[],Ht=[],hn=g,Qt=Te||ie&&l.find.TAG("*",Je),rr=ee+=hn==null?1:Math.random()||.1,Lt=Qt.length;for(Je&&(g=Me==M||Me||Je);Ct!==Lt&&(Ye=Qt[Ct])!=null;Ct++){if(ie&&Ye){for(Xe=0,!Me&&Ye.ownerDocument!=M&&(Qn(Ye),$e=!j);et=F[Xe++];)if(et(Ye,Me||M,$e)){E.call(Oe,Ye);break}Je&&(ee=rr)}Z&&((Ye=!et&&Ye)&&He--,Te&&Dt.push(Ye))}if(He+=Ct,Z&&Ct!==He){for(Xe=0;et=U[Xe++];)et(Dt,Ht,Me,$e);if(Te){if(He>0)for(;Ct--;)Dt[Ct]||Ht[Ct]||(Ht[Ct]=D.call(Oe));Ht=wr(Ht)}E.apply(Oe,Ht),Je&&!Te&&Ht.length>0&&He+U.length>1&&d.uniqueSort(Oe)}return Je&&(ee=rr,g=hn),Dt};return Z?sn(ce):ce}function hi(F,U){var Z,ie=[],ce=[],Te=Qe[F+" "];if(!Te){for(U||(U=Xn(F)),Z=U.length;Z--;)Te=la(U[Z]),Te[se]?ie.push(Te):ce.push(Te);Te=Qe(F,$i(ce,ie)),Te.selector=F}return Te}function Ma(F,U,Z,ie){var ce,Te,Me,$e,Oe,Je=typeof F=="function"&&F,Ye=!ie&&Xn(F=Je.selector||F);if(Z=Z||[],Ye.length===1){if(Te=Ye[0]=Ye[0].slice(0),Te.length>2&&(Me=Te[0]).type==="ID"&&U.nodeType===9&&j&&l.relative[Te[1].type]){if(U=(l.find.ID(Me.matches[0].replace(Rn,Fn),U)||[])[0],U)Je&&(U=U.parentNode);else return Z;F=F.slice(Te.shift().value.length)}for(ce=fn.needsContext.test(F)?0:Te.length;ce--&&(Me=Te[ce],!l.relative[$e=Me.type]);)if((Oe=l.find[$e])&&(ie=Oe(Me.matches[0].replace(Rn,Fn),xr.test(Te[0].type)&&qt(U.parentNode)||U))){if(Te.splice(ce,1),F=ie.length&&Cn(Te),!F)return E.apply(Z,ie),Z;break}}return(Je||hi(F,Ye))(ie,U,!j,Z,!U||xr.test(F)&&qt(U.parentNode)||U),Z}Se.sortStable=se.split("").sort(Wt).join("")===se,Qn(),Se.sortDetached=Fi(function(F){return F.compareDocumentPosition(M.createElement("fieldset"))&1}),d.find=nt,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,nt.compile=hi,nt.select=Ma,nt.setDocument=Qn,nt.escape=d.escapeSelector,nt.getText=d.text,nt.isXML=d.isXMLDoc,nt.selectors=d.expr,nt.support=d.support,nt.uniqueSort=d.uniqueSort})();var me=function(a,l,g){for(var y=[],S=g!==void 0;(a=a[l])&&a.nodeType!==9;)if(a.nodeType===1){if(S&&d(a).is(g))break;y.push(a)}return y},Le=function(a,l){for(var g=[];a;a=a.nextSibling)a.nodeType===1&&a!==l&&g.push(a);return g},bt=d.expr.match.needsContext,kt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ce(a,l,g){return ke(l)?d.grep(a,function(y,S){return!!l.call(y,S,y)!==g}):l.nodeType?d.grep(a,function(y){return y===l!==g}):typeof l!="string"?d.grep(a,function(y){return ne.call(l,y)>-1!==g}):d.filter(l,a,g)}d.filter=function(a,l,g){var y=l[0];return g&&(a=":not("+a+")"),l.length===1&&y.nodeType===1?d.find.matchesSelector(y,a)?[y]:[]:d.find.matches(a,d.grep(l,function(S){return S.nodeType===1}))},d.fn.extend({find:function(a){var l,g,y=this.length,S=this;if(typeof a!="string")return this.pushStack(d(a).filter(function(){for(l=0;l1?d.uniqueSort(g):g},filter:function(a){return this.pushStack(Ce(this,a||[],!1))},not:function(a){return this.pushStack(Ce(this,a||[],!0))},is:function(a){return!!Ce(this,typeof a=="string"&&bt.test(a)?d(a):a||[],!1).length}});var xt,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,yi=d.fn.init=function(a,l,g){var y,S;if(!a)return this;if(g=g||xt,typeof a=="string")if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?y=[null,a,null]:y=Vt.exec(a),y&&(y[1]||!l))if(y[1]){if(l=l instanceof d?l[0]:l,d.merge(this,d.parseHTML(y[1],l&&l.nodeType?l.ownerDocument||l:je,!0)),kt.test(y[1])&&d.isPlainObject(l))for(y in l)ke(this[y])?this[y](l[y]):this.attr(y,l[y]);return this}else return S=je.getElementById(y[2]),S&&(this[0]=S,this.length=1),this;else return!l||l.jquery?(l||g).find(a):this.constructor(l).find(a);else{if(a.nodeType)return this[0]=a,this.length=1,this;if(ke(a))return g.ready!==void 0?g.ready(a):a(d)}return d.makeArray(a,this)};yi.prototype=d.fn,xt=d(je);var _i=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var l=d(a,this),g=l.length;return this.filter(function(){for(var y=0;y-1:g.nodeType===1&&d.find.matchesSelector(g,a))){E.push(g);break}}return this.pushStack(E.length>1?d.uniqueSort(E):E)},index:function(a){return a?typeof a=="string"?ne.call(d(a),this[0]):ne.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,l){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(a,l))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function Or(a,l){for(;(a=a[l])&&a.nodeType!==1;);return a}d.each({parent:function(a){var l=a.parentNode;return l&&l.nodeType!==11?l:null},parents:function(a){return me(a,"parentNode")},parentsUntil:function(a,l,g){return me(a,"parentNode",g)},next:function(a){return Or(a,"nextSibling")},prev:function(a){return Or(a,"previousSibling")},nextAll:function(a){return me(a,"nextSibling")},prevAll:function(a){return me(a,"previousSibling")},nextUntil:function(a,l,g){return me(a,"nextSibling",g)},prevUntil:function(a,l,g){return me(a,"previousSibling",g)},siblings:function(a){return Le((a.parentNode||{}).firstChild,a)},children:function(a){return Le(a.firstChild)},contents:function(a){return a.contentDocument!=null&&w(a.contentDocument)?a.contentDocument:(L(a,"template")&&(a=a.content||a),d.merge([],a.childNodes))}},function(a,l){d.fn[a]=function(g,y){var S=d.map(this,l,g);return a.slice(-5)!=="Until"&&(y=g),y&&typeof y=="string"&&(S=d.filter(y,S)),this.length>1&&(A[a]||d.uniqueSort(S),_i.test(a)&&S.reverse()),this.pushStack(S)}});var pn=/[^\x20\t\r\n\f]+/g;function Nr(a){var l={};return d.each(a.match(pn)||[],function(g,y){l[y]=!0}),l}d.Callbacks=function(a){a=typeof a=="string"?Nr(a):d.extend({},a);var l,g,y,S,E=[],M=[],z=-1,j=function(){for(S=S||a.once,y=l=!0;M.length;z=-1)for(g=M.shift();++z-1;)E.splice(ee,1),ee<=z&&z--}),this},has:function(oe){return oe?d.inArray(oe,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return S=M=[],E=g="",this},disabled:function(){return!E},lock:function(){return S=M=[],!g&&!l&&(E=g=""),this},locked:function(){return!!S},fireWith:function(oe,se){return S||(se=se||[],se=[oe,se.slice?se.slice():se],M.push(se),l||j()),this},fire:function(){return X.fireWith(this,arguments),this},fired:function(){return!!y}};return X};function ti(a){return a}function Bi(a){throw a}function zi(a,l,g,y){var S;try{a&&ke(S=a.promise)?S.call(a).done(l).fail(g):a&&ke(S=a.then)?S.call(a,l,g):l.apply(void 0,[a].slice(y))}catch(E){g.apply(void 0,[E])}}d.extend({Deferred:function(a){var l=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],g="pending",y={state:function(){return g},always:function(){return S.done(arguments).fail(arguments),this},catch:function(E){return y.then(null,E)},pipe:function(){var E=arguments;return d.Deferred(function(M){d.each(l,function(z,j){var X=ke(E[j[4]])&&E[j[4]];S[j[1]](function(){var oe=X&&X.apply(this,arguments);oe&&ke(oe.promise)?oe.promise().progress(M.notify).done(M.resolve).fail(M.reject):M[j[0]+"With"](this,X?[oe]:arguments)})}),E=null}).promise()},then:function(E,M,z){var j=0;function X(oe,se,ee,ve){return function(){var Ke=this,ot=arguments,Qe=function(){var Wt,In;if(!(oe=j&&(ee!==Bi&&(Ke=void 0,ot=[Wt]),se.rejectWith(Ke,ot))}};oe?$t():(d.Deferred.getErrorHook?$t.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&($t.error=d.Deferred.getStackHook()),o.setTimeout($t))}}return d.Deferred(function(oe){l[0][3].add(X(0,oe,ke(z)?z:ti,oe.notifyWith)),l[1][3].add(X(0,oe,ke(E)?E:ti)),l[2][3].add(X(0,oe,ke(M)?M:Bi))}).promise()},promise:function(E){return E!=null?d.extend(E,y):y}},S={};return d.each(l,function(E,M){var z=M[2],j=M[5];y[M[1]]=z.add,j&&z.add(function(){g=j},l[3-E][2].disable,l[3-E][3].disable,l[0][2].lock,l[0][3].lock),z.add(M[3].fire),S[M[0]]=function(){return S[M[0]+"With"](this===S?void 0:this,arguments),this},S[M[0]+"With"]=z.fireWith}),y.promise(S),a&&a.call(S,S),S},when:function(a){var l=arguments.length,g=l,y=Array(g),S=N.call(arguments),E=d.Deferred(),M=function(z){return function(j){y[z]=this,S[z]=arguments.length>1?N.call(arguments):j,--l||E.resolveWith(y,S)}};if(l<=1&&(zi(a,E.done(M(g)).resolve,E.reject,!l),E.state()==="pending"||ke(S[g]&&S[g].then)))return E.then();for(;g--;)zi(S[g],M(g),E.reject);return E.promise()}});var an=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,l){o.console&&o.console.warn&&a&&an.test(a.name)&&o.console.warn("jQuery.Deferred exception: "+a.message,a.stack,l)},d.readyException=function(a){o.setTimeout(function(){throw a})};var bi=d.Deferred();d.fn.ready=function(a){return bi.then(a).catch(function(l){d.readyException(l)}),this},d.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(a!==!0&&--d.readyWait>0)&&bi.resolveWith(je,[d]))}}),d.ready.then=bi.then;function ni(){je.removeEventListener("DOMContentLoaded",ni),o.removeEventListener("load",ni),d.ready()}je.readyState==="complete"||je.readyState!=="loading"&&!je.documentElement.doScroll?o.setTimeout(d.ready):(je.addEventListener("DOMContentLoaded",ni),o.addEventListener("load",ni));var Ot=function(a,l,g,y,S,E,M){var z=0,j=a.length,X=g==null;if(De(g)==="object"){S=!0;for(z in g)Ot(a,l,z,g[z],!0,E,M)}else if(y!==void 0&&(S=!0,ke(y)||(M=!0),X&&(M?(l.call(a,y),l=null):(X=l,l=function(oe,se,ee){return X.call(d(oe),ee)})),l))for(;z1,null,!0)},removeData:function(a){return this.each(function(){Gt.remove(this,a)})}}),d.extend({queue:function(a,l,g){var y;if(a)return l=(l||"fx")+"queue",y=Fe.get(a,l),g&&(!y||Array.isArray(g)?y=Fe.access(a,l,d.makeArray(g)):y.push(g)),y||[]},dequeue:function(a,l){l=l||"fx";var g=d.queue(a,l),y=g.length,S=g.shift(),E=d._queueHooks(a,l),M=function(){d.dequeue(a,l)};S==="inprogress"&&(S=g.shift(),y--),S&&(l==="fx"&&g.unshift("inprogress"),delete E.stop,S.call(a,M,E)),!y&&E&&E.empty.fire()},_queueHooks:function(a,l){var g=l+"queueHooks";return Fe.get(a,g)||Fe.access(a,g,{empty:d.Callbacks("once memory").add(function(){Fe.remove(a,[l+"queue",g])})})}}),d.fn.extend({queue:function(a,l){var g=2;return typeof a!="string"&&(l=a,a="fx",g--),arguments.length\x20\t\r\n\f]*)/i,_a=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=je.createDocumentFragment(),l=a.appendChild(je.createElement("div")),g=je.createElement("input");g.setAttribute("type","radio"),g.setAttribute("checked","checked"),g.setAttribute("name","t"),l.appendChild(g),Se.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,l.innerHTML="",Se.noCloneChecked=!!l.cloneNode(!0).lastChild.defaultValue,l.innerHTML="",Se.option=!!l.lastChild})();var gn={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};gn.tbody=gn.tfoot=gn.colgroup=gn.caption=gn.thead,gn.th=gn.td,Se.option||(gn.optgroup=gn.option=[1,""]);function on(a,l){var g;return typeof a.getElementsByTagName<"u"?g=a.getElementsByTagName(l||"*"):typeof a.querySelectorAll<"u"?g=a.querySelectorAll(l||"*"):g=[],l===void 0||l&&L(a,l)?d.merge([a],g):g}function Si(a,l){for(var g=0,y=a.length;g-1){S&&S.push(E);continue}if(X=wi(E),M=on(se.appendChild(E),"script"),X&&Si(M),g)for(oe=0;E=M[oe++];)_a.test(E.type||"")&&g.push(E)}return se}var Qr=/^([^.]*)(?:\.(.+)|)/;function ai(){return!0}function Qi(){return!1}function Xr(a,l,g,y,S,E){var M,z;if(typeof l=="object"){typeof g!="string"&&(y=y||g,g=void 0);for(z in l)Xr(a,z,g,y,l[z],E);return a}if(y==null&&S==null?(S=g,y=g=void 0):S==null&&(typeof g=="string"?(S=y,y=void 0):(S=y,y=g,g=void 0)),S===!1)S=Qi;else if(!S)return a;return E===1&&(M=S,S=function(j){return d().off(j),M.apply(this,arguments)},S.guid=M.guid||(M.guid=d.guid++)),a.each(function(){d.event.add(this,l,S,y,g)})}d.event={global:{},add:function(a,l,g,y,S){var E,M,z,j,X,oe,se,ee,ve,Ke,ot,Qe=Fe.get(a);if(tt(a))for(g.handler&&(E=g,g=E.handler,S=E.selector),S&&d.find.matchesSelector(xi,S),g.guid||(g.guid=d.guid++),(j=Qe.events)||(j=Qe.events=Object.create(null)),(M=Qe.handle)||(M=Qe.handle=function($t){return typeof d<"u"&&d.event.triggered!==$t.type?d.event.dispatch.apply(a,arguments):void 0}),l=(l||"").match(pn)||[""],X=l.length;X--;)z=Qr.exec(l[X])||[],ve=ot=z[1],Ke=(z[2]||"").split(".").sort(),ve&&(se=d.event.special[ve]||{},ve=(S?se.delegateType:se.bindType)||ve,se=d.event.special[ve]||{},oe=d.extend({type:ve,origType:ot,data:y,handler:g,guid:g.guid,selector:S,needsContext:S&&d.expr.match.needsContext.test(S),namespace:Ke.join(".")},E),(ee=j[ve])||(ee=j[ve]=[],ee.delegateCount=0,(!se.setup||se.setup.call(a,y,Ke,M)===!1)&&a.addEventListener&&a.addEventListener(ve,M)),se.add&&(se.add.call(a,oe),oe.handler.guid||(oe.handler.guid=g.guid)),S?ee.splice(ee.delegateCount++,0,oe):ee.push(oe),d.event.global[ve]=!0)},remove:function(a,l,g,y,S){var E,M,z,j,X,oe,se,ee,ve,Ke,ot,Qe=Fe.hasData(a)&&Fe.get(a);if(!(!Qe||!(j=Qe.events))){for(l=(l||"").match(pn)||[""],X=l.length;X--;){if(z=Qr.exec(l[X])||[],ve=ot=z[1],Ke=(z[2]||"").split(".").sort(),!ve){for(ve in j)d.event.remove(a,ve+l[X],g,y,!0);continue}for(se=d.event.special[ve]||{},ve=(y?se.delegateType:se.bindType)||ve,ee=j[ve]||[],z=z[2]&&new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=E=ee.length;E--;)oe=ee[E],(S||ot===oe.origType)&&(!g||g.guid===oe.guid)&&(!z||z.test(oe.namespace))&&(!y||y===oe.selector||y==="**"&&oe.selector)&&(ee.splice(E,1),oe.selector&&ee.delegateCount--,se.remove&&se.remove.call(a,oe));M&&!ee.length&&((!se.teardown||se.teardown.call(a,Ke,Qe.handle)===!1)&&d.removeEvent(a,ve,Qe.handle),delete j[ve])}d.isEmptyObject(j)&&Fe.remove(a,"handle events")}},dispatch:function(a){var l,g,y,S,E,M,z=new Array(arguments.length),j=d.event.fix(a),X=(Fe.get(this,"events")||Object.create(null))[j.type]||[],oe=d.event.special[j.type]||{};for(z[0]=j,l=1;l=1)){for(;X!==this;X=X.parentNode||this)if(X.nodeType===1&&!(a.type==="click"&&X.disabled===!0)){for(E=[],M={},g=0;g-1:d.find(S,this,null,[X]).length),M[S]&&E.push(y);E.length&&z.push({elem:X,handlers:E})}}return X=this,j\s*$/g;function Zr(a,l){return L(a,"table")&&L(l.nodeType!==11?l:l.firstChild,"tr")&&d(a).children("tbody")[0]||a}function za(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function jn(a){return(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type"),a}function xa(a,l){var g,y,S,E,M,z,j;if(l.nodeType===1){if(Fe.hasData(a)&&(E=Fe.get(a),j=E.events,j)){Fe.remove(l,"handle events");for(S in j)for(g=0,y=j[S].length;g1&&typeof ve=="string"&&!Se.checkClone&&Hn.test(ve))return a.each(function(ot){var Qe=a.eq(ot);Ke&&(l[0]=ve.call(this,ot,Qe.html())),Ci(Qe,l,g,y)});if(se&&(S=ba(l,a[0].ownerDocument,!1,a,y),E=S.firstChild,S.childNodes.length===1&&(S=E),E||y)){for(M=d.map(on(S,"script"),za),z=M.length;oe0&&Si(M,!j&&on(a,"script")),z},cleanData:function(a){for(var l,g,y,S=d.event.special,E=0;(g=a[E])!==void 0;E++)if(tt(g)){if(l=g[Fe.expando]){if(l.events)for(y in l.events)S[y]?d.event.remove(g,y):d.removeEvent(g,y,l.handle);g[Fe.expando]=void 0}g[Gt.expando]&&(g[Gt.expando]=void 0)}}}),d.fn.extend({detach:function(a){return Jr(this,a,!0)},remove:function(a){return Jr(this,a)},text:function(a){return Ot(this,function(l){return l===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=l)})},null,a,arguments.length)},append:function(){return Ci(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Zr(this,a);l.appendChild(a)}})},prepend:function(){return Ci(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Zr(this,a);l.insertBefore(a,l.firstChild)}})},before:function(){return Ci(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ci(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,l=0;(a=this[l])!=null;l++)a.nodeType===1&&(d.cleanData(on(a,!1)),a.textContent="");return this},clone:function(a,l){return a=a??!1,l=l??a,this.map(function(){return d.clone(this,a,l)})},html:function(a){return Ot(this,function(l){var g=this[0]||{},y=0,S=this.length;if(l===void 0&&g.nodeType===1)return g.innerHTML;if(typeof l=="string"&&!Mn.test(l)&&!gn[(ya.exec(l)||["",""])[1].toLowerCase()]){l=d.htmlPrefilter(l);try{for(;y=0&&(j+=Math.max(0,Math.ceil(a["offset"+l[0].toUpperCase()+l.slice(1)]-E-j-z-.5))||0),j+X}function pr(a,l,g){var y=Pr(a),S=!Se.boxSizingReliable()||g,E=S&&d.css(a,"boxSizing",!1,y)==="border-box",M=E,z=Sn(a,l,y),j="offset"+l[0].toUpperCase()+l.slice(1);if(oi.test(z)){if(!g)return z;z="auto"}return(!Se.boxSizingReliable()&&E||!Se.reliableTrDimensions()&&L(a,"tr")||z==="auto"||!parseFloat(z)&&d.css(a,"display",!1,y)==="inline")&&a.getClientRects().length&&(E=d.css(a,"boxSizing",!1,y)==="border-box",M=j in a,M&&(z=a[j])),z=parseFloat(z)||0,z+ki(a,l,g||(E?"border":"content"),M,y,z)+"px"}d.extend({cssHooks:{opacity:{get:function(a,l){if(l){var g=Sn(a,"opacity");return g===""?"1":g}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,l,g,y){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var S,E,M,z=Ue(l),j=Yn.test(l),X=a.style;if(j||(l=Xi(z)),M=d.cssHooks[l]||d.cssHooks[z],g!==void 0){if(E=typeof g,E==="string"&&(S=qi.exec(g))&&S[1]&&(g=Ui(a,l,S),E="number"),g==null||g!==g)return;E==="number"&&!j&&(g+=S&&S[3]||(d.cssNumber[z]?"":"px")),!Se.clearCloneStyle&&g===""&&l.indexOf("background")===0&&(X[l]="inherit"),(!M||!("set"in M)||(g=M.set(a,g,y))!==void 0)&&(j?X.setProperty(l,g):X[l]=g)}else return M&&"get"in M&&(S=M.get(a,!1,y))!==void 0?S:X[l]}},css:function(a,l,g,y){var S,E,M,z=Ue(l),j=Yn.test(l);return j||(l=Xi(z)),M=d.cssHooks[l]||d.cssHooks[z],M&&"get"in M&&(S=M.get(a,!0,g)),S===void 0&&(S=Sn(a,l,y)),S==="normal"&&l in Di&&(S=Di[l]),g===""||g?(E=parseFloat(S),g===!0||isFinite(E)?E||0:S):S}}),d.each(["height","width"],function(a,l){d.cssHooks[l]={get:function(g,y,S){if(y)return ea.test(d.css(g,"display"))&&(!g.getClientRects().length||!g.getBoundingClientRect().width)?si(g,ta,function(){return pr(g,l,S)}):pr(g,l,S)},set:function(g,y,S){var E,M=Pr(g),z=!Se.scrollboxSize()&&M.position==="absolute",j=z||S,X=j&&d.css(g,"boxSizing",!1,M)==="border-box",oe=S?ki(g,l,S,X,M):0;return X&&z&&(oe-=Math.ceil(g["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(M[l])-ki(g,l,"border",!1,M)-.5)),oe&&(E=qi.exec(y))&&(E[3]||"px")!=="px"&&(g.style[l]=y,y=d.css(g,l)),Lr(g,y,oe)}}}),d.cssHooks.marginLeft=wa(Se.reliableMarginLeft,function(a,l){if(l)return(parseFloat(Sn(a,"marginLeft"))||a.getBoundingClientRect().left-si(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(a,l){d.cssHooks[a+l]={expand:function(g){for(var y=0,S={},E=typeof g=="string"?g.split(" "):[g];y<4;y++)S[a+An[y]+l]=E[y]||E[y-2]||E[0];return S}},a!=="margin"&&(d.cssHooks[a+l].set=Lr)}),d.fn.extend({css:function(a,l){return Ot(this,function(g,y,S){var E,M,z={},j=0;if(Array.isArray(y)){for(E=Pr(g),M=y.length;j1)}});function en(a,l,g,y,S){return new en.prototype.init(a,l,g,y,S)}d.Tween=en,en.prototype={constructor:en,init:function(a,l,g,y,S,E){this.elem=a,this.prop=g,this.easing=S||d.easing._default,this.options=l,this.start=this.now=this.cur(),this.end=y,this.unit=E||(d.cssNumber[g]?"":"px")},cur:function(){var a=en.propHooks[this.prop];return a&&a.get?a.get(this):en.propHooks._default.get(this)},run:function(a){var l,g=en.propHooks[this.prop];return this.options.duration?this.pos=l=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=l=a,this.now=(this.end-this.start)*l+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),g&&g.set?g.set(this):en.propHooks._default.set(this),this}},en.prototype.init.prototype=en.prototype,en.propHooks={_default:{get:function(a){var l;return a.elem.nodeType!==1||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(l=d.css(a.elem,a.prop,""),!l||l==="auto"?0:l)},set:function(a){d.fx.step[a.prop]?d.fx.step[a.prop](a):a.elem.nodeType===1&&(d.cssHooks[a.prop]||a.elem.style[Xi(a.prop)]!=null)?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},en.propHooks.scrollTop=en.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},d.easing={linear:function(a){return a},swing:function(a){return .5-Math.cos(a*Math.PI)/2},_default:"swing"},d.fx=en.prototype.init,d.fx.step={};var Ai,Zi,Rr=/^(?:toggle|show|hide)$/,Ji=/queueHooks$/;function On(){Zi&&(je.hidden===!1&&o.requestAnimationFrame?o.requestAnimationFrame(On):o.setTimeout(On,d.fx.interval),d.fx.tick())}function dn(){return o.setTimeout(function(){Ai=void 0}),Ai=Date.now()}function li(a,l){var g,y=0,S={height:a};for(l=l?1:0;y<4;y+=2-l)g=An[y],S["margin"+g]=S["padding"+g]=a;return l&&(S.opacity=S.width=a),S}function At(a,l,g){for(var y,S=(tn.tweeners[l]||[]).concat(tn.tweeners["*"]),E=0,M=S.length;E1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}}),d.extend({attr:function(a,l,g){var y,S,E=a.nodeType;if(!(E===3||E===8||E===2)){if(typeof a.getAttribute>"u")return d.prop(a,l,g);if((E!==1||!d.isXMLDoc(a))&&(S=d.attrHooks[l.toLowerCase()]||(d.expr.match.bool.test(l)?Fr:void 0)),g!==void 0){if(g===null){d.removeAttr(a,l);return}return S&&"set"in S&&(y=S.set(a,g,l))!==void 0?y:(a.setAttribute(l,g+""),g)}return S&&"get"in S&&(y=S.get(a,l))!==null?y:(y=d.find.attr(a,l),y??void 0)}},attrHooks:{type:{set:function(a,l){if(!Se.radioValue&&l==="radio"&&L(a,"input")){var g=a.value;return a.setAttribute("type",l),g&&(a.value=g),l}}}},removeAttr:function(a,l){var g,y=0,S=l&&l.match(pn);if(S&&a.nodeType===1)for(;g=S[y++];)a.removeAttribute(g)}}),Fr={set:function(a,l,g){return l===!1?d.removeAttr(a,g):a.setAttribute(g,g),g}},d.each(d.expr.match.bool.source.match(/\w+/g),function(a,l){var g=er[l]||d.find.attr;er[l]=function(y,S,E){var M,z,j=S.toLowerCase();return E||(z=er[j],er[j]=M,M=g(y,S,E)!=null?j:null,er[j]=z),M}});var $r=/^(?:input|select|textarea|button)$/i,Wr=/^(?:a|area)$/i;d.fn.extend({prop:function(a,l){return Ot(this,d.prop,a,l,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[d.propFix[a]||a]})}}),d.extend({prop:function(a,l,g){var y,S,E=a.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!d.isXMLDoc(a))&&(l=d.propFix[l]||l,S=d.propHooks[l]),g!==void 0?S&&"set"in S&&(y=S.set(a,g,l))!==void 0?y:a[l]=g:S&&"get"in S&&(y=S.get(a,l))!==null?y:a[l]},propHooks:{tabIndex:{get:function(a){var l=d.find.attr(a,"tabindex");return l?parseInt(l,10):$r.test(a.nodeName)||Wr.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Se.optSelected||(d.propHooks.selected={get:function(a){var l=a.parentNode;return l&&l.parentNode&&l.parentNode.selectedIndex,null},set:function(a){var l=a.parentNode;l&&(l.selectedIndex,l.parentNode&&l.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function En(a){var l=a.match(pn)||[];return l.join(" ")}function zn(a){return a.getAttribute&&a.getAttribute("class")||""}function ui(a){return Array.isArray(a)?a:typeof a=="string"?a.match(pn)||[]:[]}d.fn.extend({addClass:function(a){var l,g,y,S,E,M;return ke(a)?this.each(function(z){d(this).addClass(a.call(this,z,zn(this)))}):(l=ui(a),l.length?this.each(function(){if(y=zn(this),g=this.nodeType===1&&" "+En(y)+" ",g){for(E=0;E-1;)g=g.replace(" "+S+" "," ");M=En(g),y!==M&&this.setAttribute("class",M)}}):this):this.attr("class","")},toggleClass:function(a,l){var g,y,S,E,M=typeof a,z=M==="string"||Array.isArray(a);return ke(a)?this.each(function(j){d(this).toggleClass(a.call(this,j,zn(this),l),l)}):typeof l=="boolean"&&z?l?this.addClass(a):this.removeClass(a):(g=ui(a),this.each(function(){if(z)for(E=d(this),S=0;S-1)return!0;return!1}});var nn=/\r/g;d.fn.extend({val:function(a){var l,g,y,S=this[0];return arguments.length?(y=ke(a),this.each(function(E){var M;this.nodeType===1&&(y?M=a.call(this,E,d(this).val()):M=a,M==null?M="":typeof M=="number"?M+="":Array.isArray(M)&&(M=d.map(M,function(z){return z==null?"":z+""})),l=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!l||!("set"in l)||l.set(this,M,"value")===void 0)&&(this.value=M))})):S?(l=d.valHooks[S.type]||d.valHooks[S.nodeName.toLowerCase()],l&&"get"in l&&(g=l.get(S,"value"))!==void 0?g:(g=S.value,typeof g=="string"?g.replace(nn,""):g??"")):void 0}}),d.extend({valHooks:{option:{get:function(a){var l=d.find.attr(a,"value");return l??En(d.text(a))}},select:{get:function(a){var l,g,y,S=a.options,E=a.selectedIndex,M=a.type==="select-one",z=M?null:[],j=M?E+1:S.length;for(E<0?y=j:y=M?E:0;y-1)&&(g=!0);return g||(a.selectedIndex=-1),E}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,l){if(Array.isArray(l))return a.checked=d.inArray(d(a).val(),l)>-1}},Se.checkOn||(d.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})});var mr=o.location,Ea={guid:Date.now()},Hr=/\?/;d.parseXML=function(a){var l,g;if(!a||typeof a!="string")return null;try{l=new o.DOMParser().parseFromString(a,"text/xml")}catch{}return g=l&&l.getElementsByTagName("parsererror")[0],(!l||g)&&d.error("Invalid XML: "+(g?d.map(g.childNodes,function(y){return y.textContent}).join(` -`):a)),l};var na=/^(?:focusinfocus|focusoutblur)$/,Mi=function(a){a.stopPropagation()};d.extend(d.event,{trigger:function(a,l,g,y){var S,E,M,z,j,X,oe,se,ee=[g||je],ve=xe.call(a,"type")?a.type:a,Ke=xe.call(a,"namespace")?a.namespace.split("."):[];if(E=se=M=g=g||je,!(g.nodeType===3||g.nodeType===8)&&!na.test(ve+d.event.triggered)&&(ve.indexOf(".")>-1&&(Ke=ve.split("."),ve=Ke.shift(),Ke.sort()),j=ve.indexOf(":")<0&&"on"+ve,a=a[d.expando]?a:new d.Event(ve,typeof a=="object"&&a),a.isTrigger=y?2:3,a.namespace=Ke.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=g),l=l==null?[a]:d.makeArray(l,[a]),oe=d.event.special[ve]||{},!(!y&&oe.trigger&&oe.trigger.apply(g,l)===!1))){if(!y&&!oe.noBubble&&!Et(g)){for(z=oe.delegateType||ve,na.test(z+ve)||(E=E.parentNode);E;E=E.parentNode)ee.push(E),M=E;M===(g.ownerDocument||je)&&ee.push(M.defaultView||M.parentWindow||o)}for(S=0;(E=ee[S++])&&!a.isPropagationStopped();)se=E,a.type=S>1?z:oe.bindType||ve,X=(Fe.get(E,"events")||Object.create(null))[a.type]&&Fe.get(E,"handle"),X&&X.apply(E,l),X=j&&E[j],X&&X.apply&&tt(E)&&(a.result=X.apply(E,l),a.result===!1&&a.preventDefault());return a.type=ve,!y&&!a.isDefaultPrevented()&&(!oe._default||oe._default.apply(ee.pop(),l)===!1)&&tt(g)&&j&&ke(g[ve])&&!Et(g)&&(M=g[j],M&&(g[j]=null),d.event.triggered=ve,a.isPropagationStopped()&&se.addEventListener(ve,Mi),g[ve](),a.isPropagationStopped()&&se.removeEventListener(ve,Mi),d.event.triggered=void 0,M&&(g[j]=M)),a.result}},simulate:function(a,l,g){var y=d.extend(new d.Event,g,{type:a,isSimulated:!0});d.event.trigger(y,null,l)}}),d.fn.extend({trigger:function(a,l){return this.each(function(){d.event.trigger(a,l,this)})},triggerHandler:function(a,l){var g=this[0];if(g)return d.event.trigger(a,l,g,!0)}});var mt=/\[\]$/,Oi=/\r?\n/g,qn=/^(?:submit|button|image|reset|file)$/i,ia=/^(?:input|select|textarea|keygen)/i;function jr(a,l,g,y){var S;if(Array.isArray(l))d.each(l,function(E,M){g||mt.test(a)?y(a,M):jr(a+"["+(typeof M=="object"&&M!=null?E:"")+"]",M,g,y)});else if(!g&&De(l)==="object")for(S in l)jr(a+"["+S+"]",l[S],g,y);else y(a,l)}d.param=function(a,l){var g,y=[],S=function(E,M){var z=ke(M)?M():M;y[y.length]=encodeURIComponent(E)+"="+encodeURIComponent(z??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){S(this.name,this.value)});else for(g in a)jr(g,a[g],l,S);return y.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&ia.test(this.nodeName)&&!qn.test(a)&&(this.checked||!Bt.test(a))}).map(function(a,l){var g=d(this).val();return g==null?null:Array.isArray(g)?d.map(g,function(y){return{name:l.name,value:y.replace(Oi,`\r -`)}}):{name:l.name,value:g.replace(Oi,`\r -`)}}).get()}});var vn=/%20/g,Nn=/#.*$/,Ta=/([?&])_=[^&]*/,Ni=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ca=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,qa=/^\/\//,Yr={},vr={},aa="*/".concat("*"),yr=je.createElement("a");yr.href=mr.href;function Da(a){return function(l,g){typeof l!="string"&&(g=l,l="*");var y,S=0,E=l.toLowerCase().match(pn)||[];if(ke(g))for(;y=E[S++];)y[0]==="+"?(y=y.slice(1)||"*",(a[y]=a[y]||[]).unshift(g)):(a[y]=a[y]||[]).push(g)}}function oa(a,l,g,y){var S={},E=a===vr;function M(z){var j;return S[z]=!0,d.each(a[z]||[],function(X,oe){var se=oe(l,g,y);if(typeof se=="string"&&!E&&!S[se])return l.dataTypes.unshift(se),M(se),!1;if(E)return!(j=se)}),j}return M(l.dataTypes[0])||!S["*"]&&M("*")}function Vr(a,l){var g,y,S=d.ajaxSettings.flatOptions||{};for(g in l)l[g]!==void 0&&((S[g]?a:y||(y={}))[g]=l[g]);return y&&d.extend(!0,a,y),a}function ka(a,l,g){for(var y,S,E,M,z=a.contents,j=a.dataTypes;j[0]==="*";)j.shift(),y===void 0&&(y=a.mimeType||l.getResponseHeader("Content-Type"));if(y){for(S in z)if(z[S]&&z[S].test(y)){j.unshift(S);break}}if(j[0]in g)E=j[0];else{for(S in g){if(!j[0]||a.converters[S+" "+j[0]]){E=S;break}M||(M=S)}E=E||M}if(E)return E!==j[0]&&j.unshift(E),g[E]}function ci(a,l,g,y){var S,E,M,z,j,X={},oe=a.dataTypes.slice();if(oe[1])for(M in a.converters)X[M.toLowerCase()]=a.converters[M];for(E=oe.shift();E;)if(a.responseFields[E]&&(g[a.responseFields[E]]=l),!j&&y&&a.dataFilter&&(l=a.dataFilter(l,a.dataType)),j=E,E=oe.shift(),E){if(E==="*")E=j;else if(j!=="*"&&j!==E){if(M=X[j+" "+E]||X["* "+E],!M){for(S in X)if(z=S.split(" "),z[1]===E&&(M=X[j+" "+z[0]]||X["* "+z[0]],M)){M===!0?M=X[S]:X[S]!==!0&&(E=z[0],oe.unshift(z[1]));break}}if(M!==!0)if(M&&a.throws)l=M(l);else try{l=M(l)}catch(se){return{state:"parsererror",error:M?se:"No conversion from "+j+" to "+E}}}}return{state:"success",data:l}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mr.href,type:"GET",isLocal:Ca.test(mr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":aa,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,l){return l?Vr(Vr(a,d.ajaxSettings),l):Vr(d.ajaxSettings,a)},ajaxPrefilter:Da(Yr),ajaxTransport:Da(vr),ajax:function(a,l){typeof a=="object"&&(l=a,a=void 0),l=l||{};var g,y,S,E,M,z,j,X,oe,se,ee=d.ajaxSetup({},l),ve=ee.context||ee,Ke=ee.context&&(ve.nodeType||ve.jquery)?d(ve):d.event,ot=d.Deferred(),Qe=d.Callbacks("once memory"),$t=ee.statusCode||{},Wt={},In={},Pn="canceled",it={readyState:0,getResponseHeader:function(ut){var st;if(j){if(!E)for(E={};st=Ni.exec(S);)E[st[1].toLowerCase()+" "]=(E[st[1].toLowerCase()+" "]||[]).concat(st[2]);st=E[ut.toLowerCase()+" "]}return st==null?null:st.join(", ")},getAllResponseHeaders:function(){return j?S:null},setRequestHeader:function(ut,st){return j==null&&(ut=In[ut.toLowerCase()]=In[ut.toLowerCase()]||ut,Wt[ut]=st),this},overrideMimeType:function(ut){return j==null&&(ee.mimeType=ut),this},statusCode:function(ut){var st;if(ut)if(j)it.always(ut[it.status]);else for(st in ut)$t[st]=[$t[st],ut[st]];return this},abort:function(ut){var st=ut||Pn;return g&&g.abort(st),Pi(0,st),this}};if(ot.promise(it),ee.url=((a||ee.url||mr.href)+"").replace(qa,mr.protocol+"//"),ee.type=l.method||l.type||ee.method||ee.type,ee.dataTypes=(ee.dataType||"*").toLowerCase().match(pn)||[""],ee.crossDomain==null){z=je.createElement("a");try{z.href=ee.url,z.href=z.href,ee.crossDomain=yr.protocol+"//"+yr.host!=z.protocol+"//"+z.host}catch{ee.crossDomain=!0}}if(ee.data&&ee.processData&&typeof ee.data!="string"&&(ee.data=d.param(ee.data,ee.traditional)),oa(Yr,ee,l,it),j)return it;X=d.event&&ee.global,X&&d.active++===0&&d.event.trigger("ajaxStart"),ee.type=ee.type.toUpperCase(),ee.hasContent=!ra.test(ee.type),y=ee.url.replace(Nn,""),ee.hasContent?ee.data&&ee.processData&&(ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ee.data=ee.data.replace(vn,"+")):(se=ee.url.slice(y.length),ee.data&&(ee.processData||typeof ee.data=="string")&&(y+=(Hr.test(y)?"&":"?")+ee.data,delete ee.data),ee.cache===!1&&(y=y.replace(Ta,"$1"),se=(Hr.test(y)?"&":"?")+"_="+Ea.guid+++se),ee.url=y+se),ee.ifModified&&(d.lastModified[y]&&it.setRequestHeader("If-Modified-Since",d.lastModified[y]),d.etag[y]&&it.setRequestHeader("If-None-Match",d.etag[y])),(ee.data&&ee.hasContent&&ee.contentType!==!1||l.contentType)&&it.setRequestHeader("Content-Type",ee.contentType),it.setRequestHeader("Accept",ee.dataTypes[0]&&ee.accepts[ee.dataTypes[0]]?ee.accepts[ee.dataTypes[0]]+(ee.dataTypes[0]!=="*"?", "+aa+"; q=0.01":""):ee.accepts["*"]);for(oe in ee.headers)it.setRequestHeader(oe,ee.headers[oe]);if(ee.beforeSend&&(ee.beforeSend.call(ve,it,ee)===!1||j))return it.abort();if(Pn="abort",Qe.add(ee.complete),it.done(ee.success),it.fail(ee.error),g=oa(vr,ee,l,it),!g)Pi(-1,"No Transport");else{if(it.readyState=1,X&&Ke.trigger("ajaxSend",[it,ee]),j)return it;ee.async&&ee.timeout>0&&(M=o.setTimeout(function(){it.abort("timeout")},ee.timeout));try{j=!1,g.send(Wt,Pi)}catch(ut){if(j)throw ut;Pi(-1,ut)}}function Pi(ut,st,tr,di){var Tn,Gn,fn,Ln,Kn,yn=st;j||(j=!0,M&&o.clearTimeout(M),g=void 0,S=di||"",it.readyState=ut>0?4:0,Tn=ut>=200&&ut<300||ut===304,tr&&(Ln=ka(ee,it,tr)),!Tn&&d.inArray("script",ee.dataTypes)>-1&&d.inArray("json",ee.dataTypes)<0&&(ee.converters["text script"]=function(){}),Ln=ci(ee,Ln,it,Tn),Tn?(ee.ifModified&&(Kn=it.getResponseHeader("Last-Modified"),Kn&&(d.lastModified[y]=Kn),Kn=it.getResponseHeader("etag"),Kn&&(d.etag[y]=Kn)),ut===204||ee.type==="HEAD"?yn="nocontent":ut===304?yn="notmodified":(yn=Ln.state,Gn=Ln.data,fn=Ln.error,Tn=!fn)):(fn=yn,(ut||!yn)&&(yn="error",ut<0&&(ut=0))),it.status=ut,it.statusText=(st||yn)+"",Tn?ot.resolveWith(ve,[Gn,yn,it]):ot.rejectWith(ve,[it,yn,fn]),it.statusCode($t),$t=void 0,X&&Ke.trigger(Tn?"ajaxSuccess":"ajaxError",[it,ee,Tn?Gn:fn]),Qe.fireWith(ve,[it,yn]),X&&(Ke.trigger("ajaxComplete",[it,ee]),--d.active||d.event.trigger("ajaxStop")))}return it},getJSON:function(a,l,g){return d.get(a,l,g,"json")},getScript:function(a,l){return d.get(a,void 0,l,"script")}}),d.each(["get","post"],function(a,l){d[l]=function(g,y,S,E){return ke(y)&&(E=E||S,S=y,y=void 0),d.ajax(d.extend({url:g,type:l,dataType:E,data:y,success:S},d.isPlainObject(g)&&g))}}),d.ajaxPrefilter(function(a){var l;for(l in a.headers)l.toLowerCase()==="content-type"&&(a.contentType=a.headers[l]||"")}),d._evalUrl=function(a,l,g){return d.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){d.globalEval(y,l,g)}})},d.fn.extend({wrapAll:function(a){var l;return this[0]&&(ke(a)&&(a=a.call(this[0])),l=d(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var g=this;g.firstElementChild;)g=g.firstElementChild;return g}).append(this)),this},wrapInner:function(a){return ke(a)?this.each(function(l){d(this).wrapInner(a.call(this,l))}):this.each(function(){var l=d(this),g=l.contents();g.length?g.wrapAll(a):l.append(a)})},wrap:function(a){var l=ke(a);return this.each(function(g){d(this).wrapAll(l?a.call(this,g):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(a){return!d.expr.pseudos.visible(a)},d.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch{}};var Ge={0:200,1223:204},Jt=d.ajaxSettings.xhr();Se.cors=!!Jt&&"withCredentials"in Jt,Se.ajax=Jt=!!Jt,d.ajaxTransport(function(a){var l,g;if(Se.cors||Jt&&!a.crossDomain)return{send:function(y,S){var E,M=a.xhr();if(M.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(E in a.xhrFields)M[E]=a.xhrFields[E];a.mimeType&&M.overrideMimeType&&M.overrideMimeType(a.mimeType),!a.crossDomain&&!y["X-Requested-With"]&&(y["X-Requested-With"]="XMLHttpRequest");for(E in y)M.setRequestHeader(E,y[E]);l=function(z){return function(){l&&(l=g=M.onload=M.onerror=M.onabort=M.ontimeout=M.onreadystatechange=null,z==="abort"?M.abort():z==="error"?typeof M.status!="number"?S(0,"error"):S(M.status,M.statusText):S(Ge[M.status]||M.status,M.statusText,(M.responseType||"text")!=="text"||typeof M.responseText!="string"?{binary:M.response}:{text:M.responseText},M.getAllResponseHeaders()))}},M.onload=l(),g=M.onerror=M.ontimeout=l("error"),M.onabort!==void 0?M.onabort=g:M.onreadystatechange=function(){M.readyState===4&&o.setTimeout(function(){l&&g()})},l=l("abort");try{M.send(a.hasContent&&a.data||null)}catch(z){if(l)throw z}},abort:function(){l&&l()}}}),d.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return d.globalEval(a),a}}}),d.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),d.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var l,g;return{send:function(y,S){l=d(" + \ No newline at end of file diff --git a/resources/views/layouts/web.blade.php b/resources/views/layouts/web.blade.php index a424091db..5cb1f7d12 100644 --- a/resources/views/layouts/web.blade.php +++ b/resources/views/layouts/web.blade.php @@ -7,6 +7,7 @@ + diff --git a/resources/views/web/partials/property.blade.php b/resources/views/web/partials/property.blade.php index 3d22e7e19..56d450ef4 100644 --- a/resources/views/web/partials/property.blade.php +++ b/resources/views/web/partials/property.blade.php @@ -51,7 +51,7 @@ class="fa fa-home text-primary me-2">0 const urlDesaAktif = new URL( "{{ config('app.databaseGabunganUrl') . '/api/v1/desa-aktif' }}"); - $.get(urlDesaAktif, {}, function(result) { + $.get(urlDesaAktif+'?page[size]=6', {}, function(result) { if (result.data.length > 0) { let _elm result.data.forEach((item, index) => { @@ -71,21 +71,7 @@ class="fa fa-home text-primary me-2">0 item.attributes.rtm + ' RTM') }) } - }, 'json') - // $.get('{{ url('index.php/api/v1/desa-aktif') }}', {}, function(result){ - // if (result.data.length > 0){ - // let _elm - // result.data.forEach((item, index) => { - // _elm = $('.replace-content-property .kelurahan-item').eq(index) - // _elm.find('.nama-desa-elm').text(item.attributes.nama_desa) - // _elm.find('.website-elm').attr('href', item.attributes.website ?? '#') - // _elm.find('.penduduk-elm').html(''+item.attributes.penduduk+ ' Penduduk') - // _elm.find('.alamat-elm').html(''+(item.attributes.alamat ?? 'alamat belum ditentukan')) - // _elm.find('.keluarga-elm').html(''+item.attributes.keluarga+ ' Keluarga') - // _elm.find('.rtm-elm').html(''+item.attributes.rtm+ ' RTM') - // }) - // } - // }, 'json') + }, 'json') }); @endpush From a25b53ccb4d77ea31207e787ea76bad80080f623 Mon Sep 17 00:00:00 2001 From: Ahmad Afandi Date: Tue, 21 Apr 2026 16:15:38 +0700 Subject: [PATCH 2/5] feat: tambahkan parameter identitas openkab --- .gitignore | 1 + public/build-web/assets/vendor-02370d6c.js | 57 ------------- public/build-web/assets/vendor-5c04c9f3.js | 83 +++++++++++++++++++ .../{web-8c49582b.js => web-b4aa1d33.js} | 4 +- public/build-web/manifest.json | 8 +- resources/js/web.js | 11 +++ .../views/layouts/presisi/index.blade.php | 3 +- .../presisi/partials/javascript.blade.php | 13 ++- resources/views/layouts/web.blade.php | 1 + .../views/web/partials/property.blade.php | 18 +--- 10 files changed, 118 insertions(+), 81 deletions(-) delete mode 100644 public/build-web/assets/vendor-02370d6c.js create mode 100644 public/build-web/assets/vendor-5c04c9f3.js rename public/build-web/assets/{web-8c49582b.js => web-b4aa1d33.js} (59%) diff --git a/.gitignore b/.gitignore index 9822ca1a8..3ada7ae9c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ package-lock.json /test-results/ /playwright-report/ .env.e2e +/template_ai/ \ No newline at end of file diff --git a/public/build-web/assets/vendor-02370d6c.js b/public/build-web/assets/vendor-02370d6c.js deleted file mode 100644 index f741b7ad5..000000000 --- a/public/build-web/assets/vendor-02370d6c.js +++ /dev/null @@ -1,57 +0,0 @@ -var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Xs(n){if(n.__esModule)return n;var o=n.default;if(typeof o=="function"){var f=function m(){return this instanceof m?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};f.prototype=o.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(n).forEach(function(m){var w=Object.getOwnPropertyDescriptor(n,m);Object.defineProperty(f,m,w.get?w:{enumerable:!0,get:function(){return n[m]}})}),f}var Qo={exports:{}},Vo={exports:{}};/*! - * jQuery JavaScript Library v3.7.0 - * https://jquery.com/ - * - * Copyright OpenJS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2023-05-11T18:29Z - */var $s;function Zs(){return $s||($s=1,function(n){(function(o,f){n.exports=o.document?f(o,!0):function(m){if(!m.document)throw new Error("jQuery requires a window with a document");return f(m)}})(typeof window<"u"?window:ss,function(o,f){var m=[],w=Object.getPrototypeOf,N=m.slice,v=m.flat?function(a){return m.flat.call(a)}:function(a){return m.concat.apply([],a)},J=m.push,ne=m.indexOf,he={},pe=he.toString,xe=he.hasOwnProperty,We=xe.toString,Ve=We.call(Object),Se={},ke=function(l){return typeof l=="function"&&typeof l.nodeType!="number"&&typeof l.item!="function"},Et=function(l){return l!=null&&l===l.window},je=o.document,Tt={type:!0,src:!0,nonce:!0,noModule:!0};function zt(a,l,g){g=g||je;var y,S,E=g.createElement("script");if(E.text=a,l)for(y in Tt)S=l[y]||l.getAttribute&&l.getAttribute(y),S&&E.setAttribute(y,S);g.head.appendChild(E).parentNode.removeChild(E)}function De(a){return a==null?a+"":typeof a=="object"||typeof a=="function"?he[pe.call(a)]||"object":typeof a}var cn="3.7.0",Ae=/HTML$/i,d=function(a,l){return new d.fn.init(a,l)};d.fn=d.prototype={jquery:cn,constructor:d,length:0,toArray:function(){return N.call(this)},get:function(a){return a==null?N.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var l=d.merge(this.constructor(),a);return l.prevObject=this,l},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(l,g){return a.call(l,g,l)}))},slice:function(){return this.pushStack(N.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(d.grep(this,function(a,l){return(l+1)%2}))},odd:function(){return this.pushStack(d.grep(this,function(a,l){return l%2}))},eq:function(a){var l=this.length,g=+a+(a<0?l:0);return this.pushStack(g>=0&&g0&&l-1 in a}function L(a,l){return a.nodeName&&a.nodeName.toLowerCase()===l.toLowerCase()}var D=m.pop,T=m.sort,x=m.splice,O="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");d.contains=function(a,l){var g=l&&l.parentNode;return a===g||!!(g&&g.nodeType===1&&(a.contains?a.contains(g):a.compareDocumentPosition&&a.compareDocumentPosition(g)&16))};var Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function K(a,l){return l?a==="\0"?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a}d.escapeSelector=function(a){return(a+"").replace(Q,K)};var ae=je,ye=J;(function(){var a,l,g,y,S,E=ye,M,z,j,X,oe,se=d.expando,ee=0,ve=0,Ke=Br(),ot=Br(),Qe=Br(),$t=Br(),Wt=function(F,U){return F===U&&(S=!0),0},In="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Pn="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",it="\\["+O+"*("+Pn+")(?:"+O+"*([*^$|!~]?=)"+O+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Pn+"))|)"+O+"*\\]",Pi=":("+Pn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+it+")*)|.*)\\)|)",ut=new RegExp(O+"+","g"),st=new RegExp("^"+O+"*,"+O+"*"),tr=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),di=new RegExp(O+"|>"),Tn=new RegExp(Pi),Gn=new RegExp("^"+Pn+"$"),fn={ID:new RegExp("^#("+Pn+")"),CLASS:new RegExp("^\\.("+Pn+")"),TAG:new RegExp("^("+Pn+"|[*])"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+Pi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+In+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},Ln=/^(?:input|select|textarea|button)$/i,Kn=/^h\d$/i,yn=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xr=/[+~]/,Rn=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Fn=function(F,U){var Z="0x"+F.slice(1)-65536;return U||(Z<0?String.fromCharCode(Z+65536):String.fromCharCode(Z>>10|55296,Z&1023|56320))},Li=function(){Qn()},Ua=ir(function(F){return F.disabled===!0&&L(F,"fieldset")},{dir:"parentNode",next:"legend"});function Ri(){try{return M.activeElement}catch{}}try{E.apply(m=N.call(ae.childNodes),ae.childNodes),m[ae.childNodes.length].nodeType}catch{E={apply:function(U,Z){ye.apply(U,N.call(Z))},call:function(U){ye.apply(U,N.call(arguments,1))}}}function nt(F,U,Z,ie){var ce,Te,Me,$e,Oe,Je,Ye,Xe=U&&U.ownerDocument,et=U?U.nodeType:9;if(Z=Z||[],typeof F!="string"||!F||et!==1&&et!==9&&et!==11)return Z;if(!ie&&(Qn(U),U=U||M,j)){if(et!==11&&(Oe=yn.exec(F)))if(ce=Oe[1]){if(et===9)if(Me=U.getElementById(ce)){if(Me.id===ce)return E.call(Z,Me),Z}else return Z;else if(Xe&&(Me=Xe.getElementById(ce))&&nt.contains(U,Me)&&Me.id===ce)return E.call(Z,Me),Z}else{if(Oe[2])return E.apply(Z,U.getElementsByTagName(F)),Z;if((ce=Oe[3])&&U.getElementsByClassName)return E.apply(Z,U.getElementsByClassName(ce)),Z}if(!$t[F+" "]&&(!X||!X.test(F))){if(Ye=F,Xe=U,et===1&&(di.test(F)||tr.test(F))){for(Xe=xr.test(F)&&qt(U.parentNode)||U,(Xe!=U||!Se.scope)&&(($e=U.getAttribute("id"))?$e=d.escapeSelector($e):U.setAttribute("id",$e=se)),Je=Xn(F),Te=Je.length;Te--;)Je[Te]=($e?"#"+$e:":scope")+" "+Cn(Je[Te]);Ye=Je.join(",")}try{return E.apply(Z,Xe.querySelectorAll(Ye)),Z}catch{$t(F,!0)}finally{$e===se&&U.removeAttribute("id")}}}return Ma(F.replace(P,"$1"),U,Z,ie)}function Br(){var F=[];function U(Z,ie){return F.push(Z+" ")>l.cacheLength&&delete U[F.shift()],U[Z+" "]=ie}return U}function sn(F){return F[se]=!0,F}function Fi(F){var U=M.createElement("fieldset");try{return!!F(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function Ga(F){return function(U){return L(U,"input")&&U.type===F}}function nr(F){return function(U){return(L(U,"input")||L(U,"button"))&&U.type===F}}function fi(F){return function(U){return"form"in U?U.parentNode&&U.disabled===!1?"label"in U?"label"in U.parentNode?U.parentNode.disabled===F:U.disabled===F:U.isDisabled===F||U.isDisabled!==!F&&Ua(U)===F:U.disabled===F:"label"in U?U.disabled===F:!1}}function ln(F){return sn(function(U){return U=+U,sn(function(Z,ie){for(var ce,Te=F([],Z.length,U),Me=Te.length;Me--;)Z[ce=Te[Me]]&&(Z[ce]=!(ie[ce]=Z[ce]))})})}function qt(F){return F&&typeof F.getElementsByTagName<"u"&&F}function Qn(F){var U,Z=F?F.ownerDocument||F:ae;return Z==M||Z.nodeType!==9||!Z.documentElement||(M=Z,z=M.documentElement,j=!d.isXMLDoc(M),oe=z.matches||z.webkitMatchesSelector||z.msMatchesSelector,ae!=M&&(U=M.defaultView)&&U.top!==U&&U.addEventListener("unload",Li),Se.getById=Fi(function(ie){return z.appendChild(ie).id=d.expando,!M.getElementsByName||!M.getElementsByName(d.expando).length}),Se.disconnectedMatch=Fi(function(ie){return oe.call(ie,"*")}),Se.scope=Fi(function(){return M.querySelectorAll(":scope")}),Se.cssHas=Fi(function(){try{return M.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),Se.getById?(l.filter.ID=function(ie){var ce=ie.replace(Rn,Fn);return function(Te){return Te.getAttribute("id")===ce}},l.find.ID=function(ie,ce){if(typeof ce.getElementById<"u"&&j){var Te=ce.getElementById(ie);return Te?[Te]:[]}}):(l.filter.ID=function(ie){var ce=ie.replace(Rn,Fn);return function(Te){var Me=typeof Te.getAttributeNode<"u"&&Te.getAttributeNode("id");return Me&&Me.value===ce}},l.find.ID=function(ie,ce){if(typeof ce.getElementById<"u"&&j){var Te,Me,$e,Oe=ce.getElementById(ie);if(Oe){if(Te=Oe.getAttributeNode("id"),Te&&Te.value===ie)return[Oe];for($e=ce.getElementsByName(ie),Me=0;Oe=$e[Me++];)if(Te=Oe.getAttributeNode("id"),Te&&Te.value===ie)return[Oe]}return[]}}),l.find.TAG=function(ie,ce){return typeof ce.getElementsByTagName<"u"?ce.getElementsByTagName(ie):ce.querySelectorAll(ie)},l.find.CLASS=function(ie,ce){if(typeof ce.getElementsByClassName<"u"&&j)return ce.getElementsByClassName(ie)},X=[],Fi(function(ie){var ce;z.appendChild(ie).innerHTML="",ie.querySelectorAll("[selected]").length||X.push("\\["+O+"*(?:value|"+In+")"),ie.querySelectorAll("[id~="+se+"-]").length||X.push("~="),ie.querySelectorAll("a#"+se+"+*").length||X.push(".#.+[+~]"),ie.querySelectorAll(":checked").length||X.push(":checked"),ce=M.createElement("input"),ce.setAttribute("type","hidden"),ie.appendChild(ce).setAttribute("name","D"),z.appendChild(ie).disabled=!0,ie.querySelectorAll(":disabled").length!==2&&X.push(":enabled",":disabled"),ce=M.createElement("input"),ce.setAttribute("name",""),ie.appendChild(ce),ie.querySelectorAll("[name='']").length||X.push("\\["+O+"*name"+O+"*="+O+`*(?:''|"")`)}),Se.cssHas||X.push(":has"),X=X.length&&new RegExp(X.join("|")),Wt=function(ie,ce){if(ie===ce)return S=!0,0;var Te=!ie.compareDocumentPosition-!ce.compareDocumentPosition;return Te||(Te=(ie.ownerDocument||ie)==(ce.ownerDocument||ce)?ie.compareDocumentPosition(ce):1,Te&1||!Se.sortDetached&&ce.compareDocumentPosition(ie)===Te?ie===M||ie.ownerDocument==ae&&nt.contains(ae,ie)?-1:ce===M||ce.ownerDocument==ae&&nt.contains(ae,ce)?1:y?ne.call(y,ie)-ne.call(y,ce):0:Te&4?-1:1)}),M}nt.matches=function(F,U){return nt(F,null,null,U)},nt.matchesSelector=function(F,U){if(Qn(F),j&&!$t[U+" "]&&(!X||!X.test(U)))try{var Z=oe.call(F,U);if(Z||Se.disconnectedMatch||F.document&&F.document.nodeType!==11)return Z}catch{$t(U,!0)}return nt(U,M,null,[F]).length>0},nt.contains=function(F,U){return(F.ownerDocument||F)!=M&&Qn(F),d.contains(F,U)},nt.attr=function(F,U){(F.ownerDocument||F)!=M&&Qn(F);var Z=l.attrHandle[U.toLowerCase()],ie=Z&&xe.call(l.attrHandle,U.toLowerCase())?Z(F,U,!j):void 0;return ie!==void 0?ie:F.getAttribute(U)},nt.error=function(F){throw new Error("Syntax error, unrecognized expression: "+F)},d.uniqueSort=function(F){var U,Z=[],ie=0,ce=0;if(S=!Se.sortStable,y=!Se.sortStable&&N.call(F,0),T.call(F,Wt),S){for(;U=F[ce++];)U===F[ce]&&(ie=Z.push(ce));for(;ie--;)x.call(F,Z[ie],1)}return y=null,F},d.fn.uniqueSort=function(){return this.pushStack(d.uniqueSort(N.apply(this)))},l=d.expr={cacheLength:50,createPseudo:sn,match:fn,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(F){return F[1]=F[1].replace(Rn,Fn),F[3]=(F[3]||F[4]||F[5]||"").replace(Rn,Fn),F[2]==="~="&&(F[3]=" "+F[3]+" "),F.slice(0,4)},CHILD:function(F){return F[1]=F[1].toLowerCase(),F[1].slice(0,3)==="nth"?(F[3]||nt.error(F[0]),F[4]=+(F[4]?F[5]+(F[6]||1):2*(F[3]==="even"||F[3]==="odd")),F[5]=+(F[7]+F[8]||F[3]==="odd")):F[3]&&nt.error(F[0]),F},PSEUDO:function(F){var U,Z=!F[6]&&F[2];return fn.CHILD.test(F[0])?null:(F[3]?F[2]=F[4]||F[5]||"":Z&&Tn.test(Z)&&(U=Xn(Z,!0))&&(U=Z.indexOf(")",Z.length-U)-Z.length)&&(F[0]=F[0].slice(0,U),F[2]=Z.slice(0,U)),F.slice(0,3))}},filter:{TAG:function(F){var U=F.replace(Rn,Fn).toLowerCase();return F==="*"?function(){return!0}:function(Z){return L(Z,U)}},CLASS:function(F){var U=Ke[F+" "];return U||(U=new RegExp("(^|"+O+")"+F+"("+O+"|$)"))&&Ke(F,function(Z){return U.test(typeof Z.className=="string"&&Z.className||typeof Z.getAttribute<"u"&&Z.getAttribute("class")||"")})},ATTR:function(F,U,Z){return function(ie){var ce=nt.attr(ie,F);return ce==null?U==="!=":U?(ce+="",U==="="?ce===Z:U==="!="?ce!==Z:U==="^="?Z&&ce.indexOf(Z)===0:U==="*="?Z&&ce.indexOf(Z)>-1:U==="$="?Z&&ce.slice(-Z.length)===Z:U==="~="?(" "+ce.replace(ut," ")+" ").indexOf(Z)>-1:U==="|="?ce===Z||ce.slice(0,Z.length+1)===Z+"-":!1):!0}},CHILD:function(F,U,Z,ie,ce){var Te=F.slice(0,3)!=="nth",Me=F.slice(-4)!=="last",$e=U==="of-type";return ie===1&&ce===0?function(Oe){return!!Oe.parentNode}:function(Oe,Je,Ye){var Xe,et,He,Ct,Dt,Ht=Te!==Me?"nextSibling":"previousSibling",hn=Oe.parentNode,Qt=$e&&Oe.nodeName.toLowerCase(),rr=!Ye&&!$e,Lt=!1;if(hn){if(Te){for(;Ht;){for(He=Oe;He=He[Ht];)if($e?L(He,Qt):He.nodeType===1)return!1;Dt=Ht=F==="only"&&!Dt&&"nextSibling"}return!0}if(Dt=[Me?hn.firstChild:hn.lastChild],Me&&rr){for(et=hn[se]||(hn[se]={}),Xe=et[F]||[],Ct=Xe[0]===ee&&Xe[1],Lt=Ct&&Xe[2],He=Ct&&hn.childNodes[Ct];He=++Ct&&He&&He[Ht]||(Lt=Ct=0)||Dt.pop();)if(He.nodeType===1&&++Lt&&He===Oe){et[F]=[ee,Ct,Lt];break}}else if(rr&&(et=Oe[se]||(Oe[se]={}),Xe=et[F]||[],Ct=Xe[0]===ee&&Xe[1],Lt=Ct),Lt===!1)for(;(He=++Ct&&He&&He[Ht]||(Lt=Ct=0)||Dt.pop())&&!(($e?L(He,Qt):He.nodeType===1)&&++Lt&&(rr&&(et=He[se]||(He[se]={}),et[F]=[ee,Lt]),He===Oe)););return Lt-=ce,Lt===ie||Lt%ie===0&&Lt/ie>=0}}},PSEUDO:function(F,U){var Z,ie=l.pseudos[F]||l.setFilters[F.toLowerCase()]||nt.error("unsupported pseudo: "+F);return ie[se]?ie(U):ie.length>1?(Z=[F,F,"",U],l.setFilters.hasOwnProperty(F.toLowerCase())?sn(function(ce,Te){for(var Me,$e=ie(ce,U),Oe=$e.length;Oe--;)Me=ne.call(ce,$e[Oe]),ce[Me]=!(Te[Me]=$e[Oe])}):function(ce){return ie(ce,0,Z)}):ie}},pseudos:{not:sn(function(F){var U=[],Z=[],ie=hi(F.replace(P,"$1"));return ie[se]?sn(function(ce,Te,Me,$e){for(var Oe,Je=ie(ce,null,$e,[]),Ye=ce.length;Ye--;)(Oe=Je[Ye])&&(ce[Ye]=!(Te[Ye]=Oe))}):function(ce,Te,Me){return U[0]=ce,ie(U,null,Me,Z),U[0]=null,!Z.pop()}}),has:sn(function(F){return function(U){return nt(F,U).length>0}}),contains:sn(function(F){return F=F.replace(Rn,Fn),function(U){return(U.textContent||d.text(U)).indexOf(F)>-1}}),lang:sn(function(F){return Gn.test(F||"")||nt.error("unsupported lang: "+F),F=F.replace(Rn,Fn).toLowerCase(),function(U){var Z;do if(Z=j?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return Z=Z.toLowerCase(),Z===F||Z.indexOf(F+"-")===0;while((U=U.parentNode)&&U.nodeType===1);return!1}}),target:function(F){var U=o.location&&o.location.hash;return U&&U.slice(1)===F.id},root:function(F){return F===z},focus:function(F){return F===Ri()&&M.hasFocus()&&!!(F.type||F.href||~F.tabIndex)},enabled:fi(!1),disabled:fi(!0),checked:function(F){return L(F,"input")&&!!F.checked||L(F,"option")&&!!F.selected},selected:function(F){return F.parentNode&&F.parentNode.selectedIndex,F.selected===!0},empty:function(F){for(F=F.firstChild;F;F=F.nextSibling)if(F.nodeType<6)return!1;return!0},parent:function(F){return!l.pseudos.empty(F)},header:function(F){return Kn.test(F.nodeName)},input:function(F){return Ln.test(F.nodeName)},button:function(F){return L(F,"input")&&F.type==="button"||L(F,"button")},text:function(F){var U;return L(F,"input")&&F.type==="text"&&((U=F.getAttribute("type"))==null||U.toLowerCase()==="text")},first:ln(function(){return[0]}),last:ln(function(F,U){return[U-1]}),eq:ln(function(F,U,Z){return[Z<0?Z+U:Z]}),even:ln(function(F,U){for(var Z=0;ZU?ie=U:ie=Z;--ie>=0;)F.push(ie);return F}),gt:ln(function(F,U,Z){for(var ie=Z<0?Z+U:Z;++ie1?function(U,Z,ie){for(var ce=F.length;ce--;)if(!F[ce](U,Z,ie))return!1;return!0}:F[0]}function Aa(F,U,Z){for(var ie=0,ce=U.length;ie-1&&(Me[Ye]=!($e[Ye]=et))}}else He=wr(He===$e?He.splice(Ht,He.length):He),ce?ce(null,$e,He,Je):E.apply($e,He)})}function la(F){for(var U,Z,ie,ce=F.length,Te=l.relative[F[0].type],Me=Te||l.relative[" "],$e=Te?1:0,Oe=ir(function(Xe){return Xe===U},Me,!0),Je=ir(function(Xe){return ne.call(U,Xe)>-1},Me,!0),Ye=[function(Xe,et,He){var Ct=!Te&&(He||et!=g)||((U=et).nodeType?Oe(Xe,et,He):Je(Xe,et,He));return U=null,Ct}];$e1&&Zn(Ye),$e>1&&Cn(F.slice(0,$e-1).concat({value:F[$e-2].type===" "?"*":""})).replace(P,"$1"),Z,$e0,ie=F.length>0,ce=function(Te,Me,$e,Oe,Je){var Ye,Xe,et,He=0,Ct="0",Dt=Te&&[],Ht=[],hn=g,Qt=Te||ie&&l.find.TAG("*",Je),rr=ee+=hn==null?1:Math.random()||.1,Lt=Qt.length;for(Je&&(g=Me==M||Me||Je);Ct!==Lt&&(Ye=Qt[Ct])!=null;Ct++){if(ie&&Ye){for(Xe=0,!Me&&Ye.ownerDocument!=M&&(Qn(Ye),$e=!j);et=F[Xe++];)if(et(Ye,Me||M,$e)){E.call(Oe,Ye);break}Je&&(ee=rr)}Z&&((Ye=!et&&Ye)&&He--,Te&&Dt.push(Ye))}if(He+=Ct,Z&&Ct!==He){for(Xe=0;et=U[Xe++];)et(Dt,Ht,Me,$e);if(Te){if(He>0)for(;Ct--;)Dt[Ct]||Ht[Ct]||(Ht[Ct]=D.call(Oe));Ht=wr(Ht)}E.apply(Oe,Ht),Je&&!Te&&Ht.length>0&&He+U.length>1&&d.uniqueSort(Oe)}return Je&&(ee=rr,g=hn),Dt};return Z?sn(ce):ce}function hi(F,U){var Z,ie=[],ce=[],Te=Qe[F+" "];if(!Te){for(U||(U=Xn(F)),Z=U.length;Z--;)Te=la(U[Z]),Te[se]?ie.push(Te):ce.push(Te);Te=Qe(F,$i(ce,ie)),Te.selector=F}return Te}function Ma(F,U,Z,ie){var ce,Te,Me,$e,Oe,Je=typeof F=="function"&&F,Ye=!ie&&Xn(F=Je.selector||F);if(Z=Z||[],Ye.length===1){if(Te=Ye[0]=Ye[0].slice(0),Te.length>2&&(Me=Te[0]).type==="ID"&&U.nodeType===9&&j&&l.relative[Te[1].type]){if(U=(l.find.ID(Me.matches[0].replace(Rn,Fn),U)||[])[0],U)Je&&(U=U.parentNode);else return Z;F=F.slice(Te.shift().value.length)}for(ce=fn.needsContext.test(F)?0:Te.length;ce--&&(Me=Te[ce],!l.relative[$e=Me.type]);)if((Oe=l.find[$e])&&(ie=Oe(Me.matches[0].replace(Rn,Fn),xr.test(Te[0].type)&&qt(U.parentNode)||U))){if(Te.splice(ce,1),F=ie.length&&Cn(Te),!F)return E.apply(Z,ie),Z;break}}return(Je||hi(F,Ye))(ie,U,!j,Z,!U||xr.test(F)&&qt(U.parentNode)||U),Z}Se.sortStable=se.split("").sort(Wt).join("")===se,Qn(),Se.sortDetached=Fi(function(F){return F.compareDocumentPosition(M.createElement("fieldset"))&1}),d.find=nt,d.expr[":"]=d.expr.pseudos,d.unique=d.uniqueSort,nt.compile=hi,nt.select=Ma,nt.setDocument=Qn,nt.escape=d.escapeSelector,nt.getText=d.text,nt.isXML=d.isXMLDoc,nt.selectors=d.expr,nt.support=d.support,nt.uniqueSort=d.uniqueSort})();var me=function(a,l,g){for(var y=[],S=g!==void 0;(a=a[l])&&a.nodeType!==9;)if(a.nodeType===1){if(S&&d(a).is(g))break;y.push(a)}return y},Le=function(a,l){for(var g=[];a;a=a.nextSibling)a.nodeType===1&&a!==l&&g.push(a);return g},bt=d.expr.match.needsContext,kt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Ce(a,l,g){return ke(l)?d.grep(a,function(y,S){return!!l.call(y,S,y)!==g}):l.nodeType?d.grep(a,function(y){return y===l!==g}):typeof l!="string"?d.grep(a,function(y){return ne.call(l,y)>-1!==g}):d.filter(l,a,g)}d.filter=function(a,l,g){var y=l[0];return g&&(a=":not("+a+")"),l.length===1&&y.nodeType===1?d.find.matchesSelector(y,a)?[y]:[]:d.find.matches(a,d.grep(l,function(S){return S.nodeType===1}))},d.fn.extend({find:function(a){var l,g,y=this.length,S=this;if(typeof a!="string")return this.pushStack(d(a).filter(function(){for(l=0;l1?d.uniqueSort(g):g},filter:function(a){return this.pushStack(Ce(this,a||[],!1))},not:function(a){return this.pushStack(Ce(this,a||[],!0))},is:function(a){return!!Ce(this,typeof a=="string"&&bt.test(a)?d(a):a||[],!1).length}});var xt,Vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,yi=d.fn.init=function(a,l,g){var y,S;if(!a)return this;if(g=g||xt,typeof a=="string")if(a[0]==="<"&&a[a.length-1]===">"&&a.length>=3?y=[null,a,null]:y=Vt.exec(a),y&&(y[1]||!l))if(y[1]){if(l=l instanceof d?l[0]:l,d.merge(this,d.parseHTML(y[1],l&&l.nodeType?l.ownerDocument||l:je,!0)),kt.test(y[1])&&d.isPlainObject(l))for(y in l)ke(this[y])?this[y](l[y]):this.attr(y,l[y]);return this}else return S=je.getElementById(y[2]),S&&(this[0]=S,this.length=1),this;else return!l||l.jquery?(l||g).find(a):this.constructor(l).find(a);else{if(a.nodeType)return this[0]=a,this.length=1,this;if(ke(a))return g.ready!==void 0?g.ready(a):a(d)}return d.makeArray(a,this)};yi.prototype=d.fn,xt=d(je);var _i=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var l=d(a,this),g=l.length;return this.filter(function(){for(var y=0;y-1:g.nodeType===1&&d.find.matchesSelector(g,a))){E.push(g);break}}return this.pushStack(E.length>1?d.uniqueSort(E):E)},index:function(a){return a?typeof a=="string"?ne.call(d(a),this[0]):ne.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,l){return this.pushStack(d.uniqueSort(d.merge(this.get(),d(a,l))))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}});function Or(a,l){for(;(a=a[l])&&a.nodeType!==1;);return a}d.each({parent:function(a){var l=a.parentNode;return l&&l.nodeType!==11?l:null},parents:function(a){return me(a,"parentNode")},parentsUntil:function(a,l,g){return me(a,"parentNode",g)},next:function(a){return Or(a,"nextSibling")},prev:function(a){return Or(a,"previousSibling")},nextAll:function(a){return me(a,"nextSibling")},prevAll:function(a){return me(a,"previousSibling")},nextUntil:function(a,l,g){return me(a,"nextSibling",g)},prevUntil:function(a,l,g){return me(a,"previousSibling",g)},siblings:function(a){return Le((a.parentNode||{}).firstChild,a)},children:function(a){return Le(a.firstChild)},contents:function(a){return a.contentDocument!=null&&w(a.contentDocument)?a.contentDocument:(L(a,"template")&&(a=a.content||a),d.merge([],a.childNodes))}},function(a,l){d.fn[a]=function(g,y){var S=d.map(this,l,g);return a.slice(-5)!=="Until"&&(y=g),y&&typeof y=="string"&&(S=d.filter(y,S)),this.length>1&&(A[a]||d.uniqueSort(S),_i.test(a)&&S.reverse()),this.pushStack(S)}});var pn=/[^\x20\t\r\n\f]+/g;function Nr(a){var l={};return d.each(a.match(pn)||[],function(g,y){l[y]=!0}),l}d.Callbacks=function(a){a=typeof a=="string"?Nr(a):d.extend({},a);var l,g,y,S,E=[],M=[],z=-1,j=function(){for(S=S||a.once,y=l=!0;M.length;z=-1)for(g=M.shift();++z-1;)E.splice(ee,1),ee<=z&&z--}),this},has:function(oe){return oe?d.inArray(oe,E)>-1:E.length>0},empty:function(){return E&&(E=[]),this},disable:function(){return S=M=[],E=g="",this},disabled:function(){return!E},lock:function(){return S=M=[],!g&&!l&&(E=g=""),this},locked:function(){return!!S},fireWith:function(oe,se){return S||(se=se||[],se=[oe,se.slice?se.slice():se],M.push(se),l||j()),this},fire:function(){return X.fireWith(this,arguments),this},fired:function(){return!!y}};return X};function ti(a){return a}function Bi(a){throw a}function zi(a,l,g,y){var S;try{a&&ke(S=a.promise)?S.call(a).done(l).fail(g):a&&ke(S=a.then)?S.call(a,l,g):l.apply(void 0,[a].slice(y))}catch(E){g.apply(void 0,[E])}}d.extend({Deferred:function(a){var l=[["notify","progress",d.Callbacks("memory"),d.Callbacks("memory"),2],["resolve","done",d.Callbacks("once memory"),d.Callbacks("once memory"),0,"resolved"],["reject","fail",d.Callbacks("once memory"),d.Callbacks("once memory"),1,"rejected"]],g="pending",y={state:function(){return g},always:function(){return S.done(arguments).fail(arguments),this},catch:function(E){return y.then(null,E)},pipe:function(){var E=arguments;return d.Deferred(function(M){d.each(l,function(z,j){var X=ke(E[j[4]])&&E[j[4]];S[j[1]](function(){var oe=X&&X.apply(this,arguments);oe&&ke(oe.promise)?oe.promise().progress(M.notify).done(M.resolve).fail(M.reject):M[j[0]+"With"](this,X?[oe]:arguments)})}),E=null}).promise()},then:function(E,M,z){var j=0;function X(oe,se,ee,ve){return function(){var Ke=this,ot=arguments,Qe=function(){var Wt,In;if(!(oe=j&&(ee!==Bi&&(Ke=void 0,ot=[Wt]),se.rejectWith(Ke,ot))}};oe?$t():(d.Deferred.getErrorHook?$t.error=d.Deferred.getErrorHook():d.Deferred.getStackHook&&($t.error=d.Deferred.getStackHook()),o.setTimeout($t))}}return d.Deferred(function(oe){l[0][3].add(X(0,oe,ke(z)?z:ti,oe.notifyWith)),l[1][3].add(X(0,oe,ke(E)?E:ti)),l[2][3].add(X(0,oe,ke(M)?M:Bi))}).promise()},promise:function(E){return E!=null?d.extend(E,y):y}},S={};return d.each(l,function(E,M){var z=M[2],j=M[5];y[M[1]]=z.add,j&&z.add(function(){g=j},l[3-E][2].disable,l[3-E][3].disable,l[0][2].lock,l[0][3].lock),z.add(M[3].fire),S[M[0]]=function(){return S[M[0]+"With"](this===S?void 0:this,arguments),this},S[M[0]+"With"]=z.fireWith}),y.promise(S),a&&a.call(S,S),S},when:function(a){var l=arguments.length,g=l,y=Array(g),S=N.call(arguments),E=d.Deferred(),M=function(z){return function(j){y[z]=this,S[z]=arguments.length>1?N.call(arguments):j,--l||E.resolveWith(y,S)}};if(l<=1&&(zi(a,E.done(M(g)).resolve,E.reject,!l),E.state()==="pending"||ke(S[g]&&S[g].then)))return E.then();for(;g--;)zi(S[g],M(g),E.reject);return E.promise()}});var an=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,l){o.console&&o.console.warn&&a&&an.test(a.name)&&o.console.warn("jQuery.Deferred exception: "+a.message,a.stack,l)},d.readyException=function(a){o.setTimeout(function(){throw a})};var bi=d.Deferred();d.fn.ready=function(a){return bi.then(a).catch(function(l){d.readyException(l)}),this},d.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--d.readyWait:d.isReady)||(d.isReady=!0,!(a!==!0&&--d.readyWait>0)&&bi.resolveWith(je,[d]))}}),d.ready.then=bi.then;function ni(){je.removeEventListener("DOMContentLoaded",ni),o.removeEventListener("load",ni),d.ready()}je.readyState==="complete"||je.readyState!=="loading"&&!je.documentElement.doScroll?o.setTimeout(d.ready):(je.addEventListener("DOMContentLoaded",ni),o.addEventListener("load",ni));var Ot=function(a,l,g,y,S,E,M){var z=0,j=a.length,X=g==null;if(De(g)==="object"){S=!0;for(z in g)Ot(a,l,z,g[z],!0,E,M)}else if(y!==void 0&&(S=!0,ke(y)||(M=!0),X&&(M?(l.call(a,y),l=null):(X=l,l=function(oe,se,ee){return X.call(d(oe),ee)})),l))for(;z1,null,!0)},removeData:function(a){return this.each(function(){Gt.remove(this,a)})}}),d.extend({queue:function(a,l,g){var y;if(a)return l=(l||"fx")+"queue",y=Fe.get(a,l),g&&(!y||Array.isArray(g)?y=Fe.access(a,l,d.makeArray(g)):y.push(g)),y||[]},dequeue:function(a,l){l=l||"fx";var g=d.queue(a,l),y=g.length,S=g.shift(),E=d._queueHooks(a,l),M=function(){d.dequeue(a,l)};S==="inprogress"&&(S=g.shift(),y--),S&&(l==="fx"&&g.unshift("inprogress"),delete E.stop,S.call(a,M,E)),!y&&E&&E.empty.fire()},_queueHooks:function(a,l){var g=l+"queueHooks";return Fe.get(a,g)||Fe.access(a,g,{empty:d.Callbacks("once memory").add(function(){Fe.remove(a,[l+"queue",g])})})}}),d.fn.extend({queue:function(a,l){var g=2;return typeof a!="string"&&(l=a,a="fx",g--),arguments.length\x20\t\r\n\f]*)/i,_a=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=je.createDocumentFragment(),l=a.appendChild(je.createElement("div")),g=je.createElement("input");g.setAttribute("type","radio"),g.setAttribute("checked","checked"),g.setAttribute("name","t"),l.appendChild(g),Se.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,l.innerHTML="",Se.noCloneChecked=!!l.cloneNode(!0).lastChild.defaultValue,l.innerHTML="",Se.option=!!l.lastChild})();var gn={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};gn.tbody=gn.tfoot=gn.colgroup=gn.caption=gn.thead,gn.th=gn.td,Se.option||(gn.optgroup=gn.option=[1,""]);function on(a,l){var g;return typeof a.getElementsByTagName<"u"?g=a.getElementsByTagName(l||"*"):typeof a.querySelectorAll<"u"?g=a.querySelectorAll(l||"*"):g=[],l===void 0||l&&L(a,l)?d.merge([a],g):g}function Si(a,l){for(var g=0,y=a.length;g-1){S&&S.push(E);continue}if(X=wi(E),M=on(se.appendChild(E),"script"),X&&Si(M),g)for(oe=0;E=M[oe++];)_a.test(E.type||"")&&g.push(E)}return se}var Qr=/^([^.]*)(?:\.(.+)|)/;function ai(){return!0}function Qi(){return!1}function Xr(a,l,g,y,S,E){var M,z;if(typeof l=="object"){typeof g!="string"&&(y=y||g,g=void 0);for(z in l)Xr(a,z,g,y,l[z],E);return a}if(y==null&&S==null?(S=g,y=g=void 0):S==null&&(typeof g=="string"?(S=y,y=void 0):(S=y,y=g,g=void 0)),S===!1)S=Qi;else if(!S)return a;return E===1&&(M=S,S=function(j){return d().off(j),M.apply(this,arguments)},S.guid=M.guid||(M.guid=d.guid++)),a.each(function(){d.event.add(this,l,S,y,g)})}d.event={global:{},add:function(a,l,g,y,S){var E,M,z,j,X,oe,se,ee,ve,Ke,ot,Qe=Fe.get(a);if(tt(a))for(g.handler&&(E=g,g=E.handler,S=E.selector),S&&d.find.matchesSelector(xi,S),g.guid||(g.guid=d.guid++),(j=Qe.events)||(j=Qe.events=Object.create(null)),(M=Qe.handle)||(M=Qe.handle=function($t){return typeof d<"u"&&d.event.triggered!==$t.type?d.event.dispatch.apply(a,arguments):void 0}),l=(l||"").match(pn)||[""],X=l.length;X--;)z=Qr.exec(l[X])||[],ve=ot=z[1],Ke=(z[2]||"").split(".").sort(),ve&&(se=d.event.special[ve]||{},ve=(S?se.delegateType:se.bindType)||ve,se=d.event.special[ve]||{},oe=d.extend({type:ve,origType:ot,data:y,handler:g,guid:g.guid,selector:S,needsContext:S&&d.expr.match.needsContext.test(S),namespace:Ke.join(".")},E),(ee=j[ve])||(ee=j[ve]=[],ee.delegateCount=0,(!se.setup||se.setup.call(a,y,Ke,M)===!1)&&a.addEventListener&&a.addEventListener(ve,M)),se.add&&(se.add.call(a,oe),oe.handler.guid||(oe.handler.guid=g.guid)),S?ee.splice(ee.delegateCount++,0,oe):ee.push(oe),d.event.global[ve]=!0)},remove:function(a,l,g,y,S){var E,M,z,j,X,oe,se,ee,ve,Ke,ot,Qe=Fe.hasData(a)&&Fe.get(a);if(!(!Qe||!(j=Qe.events))){for(l=(l||"").match(pn)||[""],X=l.length;X--;){if(z=Qr.exec(l[X])||[],ve=ot=z[1],Ke=(z[2]||"").split(".").sort(),!ve){for(ve in j)d.event.remove(a,ve+l[X],g,y,!0);continue}for(se=d.event.special[ve]||{},ve=(y?se.delegateType:se.bindType)||ve,ee=j[ve]||[],z=z[2]&&new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=E=ee.length;E--;)oe=ee[E],(S||ot===oe.origType)&&(!g||g.guid===oe.guid)&&(!z||z.test(oe.namespace))&&(!y||y===oe.selector||y==="**"&&oe.selector)&&(ee.splice(E,1),oe.selector&&ee.delegateCount--,se.remove&&se.remove.call(a,oe));M&&!ee.length&&((!se.teardown||se.teardown.call(a,Ke,Qe.handle)===!1)&&d.removeEvent(a,ve,Qe.handle),delete j[ve])}d.isEmptyObject(j)&&Fe.remove(a,"handle events")}},dispatch:function(a){var l,g,y,S,E,M,z=new Array(arguments.length),j=d.event.fix(a),X=(Fe.get(this,"events")||Object.create(null))[j.type]||[],oe=d.event.special[j.type]||{};for(z[0]=j,l=1;l=1)){for(;X!==this;X=X.parentNode||this)if(X.nodeType===1&&!(a.type==="click"&&X.disabled===!0)){for(E=[],M={},g=0;g-1:d.find(S,this,null,[X]).length),M[S]&&E.push(y);E.length&&z.push({elem:X,handlers:E})}}return X=this,j\s*$/g;function Zr(a,l){return L(a,"table")&&L(l.nodeType!==11?l:l.firstChild,"tr")&&d(a).children("tbody")[0]||a}function za(a){return a.type=(a.getAttribute("type")!==null)+"/"+a.type,a}function jn(a){return(a.type||"").slice(0,5)==="true/"?a.type=a.type.slice(5):a.removeAttribute("type"),a}function xa(a,l){var g,y,S,E,M,z,j;if(l.nodeType===1){if(Fe.hasData(a)&&(E=Fe.get(a),j=E.events,j)){Fe.remove(l,"handle events");for(S in j)for(g=0,y=j[S].length;g1&&typeof ve=="string"&&!Se.checkClone&&Hn.test(ve))return a.each(function(ot){var Qe=a.eq(ot);Ke&&(l[0]=ve.call(this,ot,Qe.html())),Ci(Qe,l,g,y)});if(se&&(S=ba(l,a[0].ownerDocument,!1,a,y),E=S.firstChild,S.childNodes.length===1&&(S=E),E||y)){for(M=d.map(on(S,"script"),za),z=M.length;oe0&&Si(M,!j&&on(a,"script")),z},cleanData:function(a){for(var l,g,y,S=d.event.special,E=0;(g=a[E])!==void 0;E++)if(tt(g)){if(l=g[Fe.expando]){if(l.events)for(y in l.events)S[y]?d.event.remove(g,y):d.removeEvent(g,y,l.handle);g[Fe.expando]=void 0}g[Gt.expando]&&(g[Gt.expando]=void 0)}}}),d.fn.extend({detach:function(a){return Jr(this,a,!0)},remove:function(a){return Jr(this,a)},text:function(a){return Ot(this,function(l){return l===void 0?d.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=l)})},null,a,arguments.length)},append:function(){return Ci(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Zr(this,a);l.appendChild(a)}})},prepend:function(){return Ci(this,arguments,function(a){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var l=Zr(this,a);l.insertBefore(a,l.firstChild)}})},before:function(){return Ci(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ci(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,l=0;(a=this[l])!=null;l++)a.nodeType===1&&(d.cleanData(on(a,!1)),a.textContent="");return this},clone:function(a,l){return a=a??!1,l=l??a,this.map(function(){return d.clone(this,a,l)})},html:function(a){return Ot(this,function(l){var g=this[0]||{},y=0,S=this.length;if(l===void 0&&g.nodeType===1)return g.innerHTML;if(typeof l=="string"&&!Mn.test(l)&&!gn[(ya.exec(l)||["",""])[1].toLowerCase()]){l=d.htmlPrefilter(l);try{for(;y=0&&(j+=Math.max(0,Math.ceil(a["offset"+l[0].toUpperCase()+l.slice(1)]-E-j-z-.5))||0),j+X}function pr(a,l,g){var y=Pr(a),S=!Se.boxSizingReliable()||g,E=S&&d.css(a,"boxSizing",!1,y)==="border-box",M=E,z=Sn(a,l,y),j="offset"+l[0].toUpperCase()+l.slice(1);if(oi.test(z)){if(!g)return z;z="auto"}return(!Se.boxSizingReliable()&&E||!Se.reliableTrDimensions()&&L(a,"tr")||z==="auto"||!parseFloat(z)&&d.css(a,"display",!1,y)==="inline")&&a.getClientRects().length&&(E=d.css(a,"boxSizing",!1,y)==="border-box",M=j in a,M&&(z=a[j])),z=parseFloat(z)||0,z+ki(a,l,g||(E?"border":"content"),M,y,z)+"px"}d.extend({cssHooks:{opacity:{get:function(a,l){if(l){var g=Sn(a,"opacity");return g===""?"1":g}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(a,l,g,y){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var S,E,M,z=Ue(l),j=Yn.test(l),X=a.style;if(j||(l=Xi(z)),M=d.cssHooks[l]||d.cssHooks[z],g!==void 0){if(E=typeof g,E==="string"&&(S=qi.exec(g))&&S[1]&&(g=Ui(a,l,S),E="number"),g==null||g!==g)return;E==="number"&&!j&&(g+=S&&S[3]||(d.cssNumber[z]?"":"px")),!Se.clearCloneStyle&&g===""&&l.indexOf("background")===0&&(X[l]="inherit"),(!M||!("set"in M)||(g=M.set(a,g,y))!==void 0)&&(j?X.setProperty(l,g):X[l]=g)}else return M&&"get"in M&&(S=M.get(a,!1,y))!==void 0?S:X[l]}},css:function(a,l,g,y){var S,E,M,z=Ue(l),j=Yn.test(l);return j||(l=Xi(z)),M=d.cssHooks[l]||d.cssHooks[z],M&&"get"in M&&(S=M.get(a,!0,g)),S===void 0&&(S=Sn(a,l,y)),S==="normal"&&l in Di&&(S=Di[l]),g===""||g?(E=parseFloat(S),g===!0||isFinite(E)?E||0:S):S}}),d.each(["height","width"],function(a,l){d.cssHooks[l]={get:function(g,y,S){if(y)return ea.test(d.css(g,"display"))&&(!g.getClientRects().length||!g.getBoundingClientRect().width)?si(g,ta,function(){return pr(g,l,S)}):pr(g,l,S)},set:function(g,y,S){var E,M=Pr(g),z=!Se.scrollboxSize()&&M.position==="absolute",j=z||S,X=j&&d.css(g,"boxSizing",!1,M)==="border-box",oe=S?ki(g,l,S,X,M):0;return X&&z&&(oe-=Math.ceil(g["offset"+l[0].toUpperCase()+l.slice(1)]-parseFloat(M[l])-ki(g,l,"border",!1,M)-.5)),oe&&(E=qi.exec(y))&&(E[3]||"px")!=="px"&&(g.style[l]=y,y=d.css(g,l)),Lr(g,y,oe)}}}),d.cssHooks.marginLeft=wa(Se.reliableMarginLeft,function(a,l){if(l)return(parseFloat(Sn(a,"marginLeft"))||a.getBoundingClientRect().left-si(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),d.each({margin:"",padding:"",border:"Width"},function(a,l){d.cssHooks[a+l]={expand:function(g){for(var y=0,S={},E=typeof g=="string"?g.split(" "):[g];y<4;y++)S[a+An[y]+l]=E[y]||E[y-2]||E[0];return S}},a!=="margin"&&(d.cssHooks[a+l].set=Lr)}),d.fn.extend({css:function(a,l){return Ot(this,function(g,y,S){var E,M,z={},j=0;if(Array.isArray(y)){for(E=Pr(g),M=y.length;j1)}});function en(a,l,g,y,S){return new en.prototype.init(a,l,g,y,S)}d.Tween=en,en.prototype={constructor:en,init:function(a,l,g,y,S,E){this.elem=a,this.prop=g,this.easing=S||d.easing._default,this.options=l,this.start=this.now=this.cur(),this.end=y,this.unit=E||(d.cssNumber[g]?"":"px")},cur:function(){var a=en.propHooks[this.prop];return a&&a.get?a.get(this):en.propHooks._default.get(this)},run:function(a){var l,g=en.propHooks[this.prop];return this.options.duration?this.pos=l=d.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=l=a,this.now=(this.end-this.start)*l+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),g&&g.set?g.set(this):en.propHooks._default.set(this),this}},en.prototype.init.prototype=en.prototype,en.propHooks={_default:{get:function(a){var l;return a.elem.nodeType!==1||a.elem[a.prop]!=null&&a.elem.style[a.prop]==null?a.elem[a.prop]:(l=d.css(a.elem,a.prop,""),!l||l==="auto"?0:l)},set:function(a){d.fx.step[a.prop]?d.fx.step[a.prop](a):a.elem.nodeType===1&&(d.cssHooks[a.prop]||a.elem.style[Xi(a.prop)]!=null)?d.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},en.propHooks.scrollTop=en.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},d.easing={linear:function(a){return a},swing:function(a){return .5-Math.cos(a*Math.PI)/2},_default:"swing"},d.fx=en.prototype.init,d.fx.step={};var Ai,Zi,Rr=/^(?:toggle|show|hide)$/,Ji=/queueHooks$/;function On(){Zi&&(je.hidden===!1&&o.requestAnimationFrame?o.requestAnimationFrame(On):o.setTimeout(On,d.fx.interval),d.fx.tick())}function dn(){return o.setTimeout(function(){Ai=void 0}),Ai=Date.now()}function li(a,l){var g,y=0,S={height:a};for(l=l?1:0;y<4;y+=2-l)g=An[y],S["margin"+g]=S["padding"+g]=a;return l&&(S.opacity=S.width=a),S}function At(a,l,g){for(var y,S=(tn.tweeners[l]||[]).concat(tn.tweeners["*"]),E=0,M=S.length;E1)},removeAttr:function(a){return this.each(function(){d.removeAttr(this,a)})}}),d.extend({attr:function(a,l,g){var y,S,E=a.nodeType;if(!(E===3||E===8||E===2)){if(typeof a.getAttribute>"u")return d.prop(a,l,g);if((E!==1||!d.isXMLDoc(a))&&(S=d.attrHooks[l.toLowerCase()]||(d.expr.match.bool.test(l)?Fr:void 0)),g!==void 0){if(g===null){d.removeAttr(a,l);return}return S&&"set"in S&&(y=S.set(a,g,l))!==void 0?y:(a.setAttribute(l,g+""),g)}return S&&"get"in S&&(y=S.get(a,l))!==null?y:(y=d.find.attr(a,l),y??void 0)}},attrHooks:{type:{set:function(a,l){if(!Se.radioValue&&l==="radio"&&L(a,"input")){var g=a.value;return a.setAttribute("type",l),g&&(a.value=g),l}}}},removeAttr:function(a,l){var g,y=0,S=l&&l.match(pn);if(S&&a.nodeType===1)for(;g=S[y++];)a.removeAttribute(g)}}),Fr={set:function(a,l,g){return l===!1?d.removeAttr(a,g):a.setAttribute(g,g),g}},d.each(d.expr.match.bool.source.match(/\w+/g),function(a,l){var g=er[l]||d.find.attr;er[l]=function(y,S,E){var M,z,j=S.toLowerCase();return E||(z=er[j],er[j]=M,M=g(y,S,E)!=null?j:null,er[j]=z),M}});var $r=/^(?:input|select|textarea|button)$/i,Wr=/^(?:a|area)$/i;d.fn.extend({prop:function(a,l){return Ot(this,d.prop,a,l,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[d.propFix[a]||a]})}}),d.extend({prop:function(a,l,g){var y,S,E=a.nodeType;if(!(E===3||E===8||E===2))return(E!==1||!d.isXMLDoc(a))&&(l=d.propFix[l]||l,S=d.propHooks[l]),g!==void 0?S&&"set"in S&&(y=S.set(a,g,l))!==void 0?y:a[l]=g:S&&"get"in S&&(y=S.get(a,l))!==null?y:a[l]},propHooks:{tabIndex:{get:function(a){var l=d.find.attr(a,"tabindex");return l?parseInt(l,10):$r.test(a.nodeName)||Wr.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),Se.optSelected||(d.propHooks.selected={get:function(a){var l=a.parentNode;return l&&l.parentNode&&l.parentNode.selectedIndex,null},set:function(a){var l=a.parentNode;l&&(l.selectedIndex,l.parentNode&&l.parentNode.selectedIndex)}}),d.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){d.propFix[this.toLowerCase()]=this});function En(a){var l=a.match(pn)||[];return l.join(" ")}function zn(a){return a.getAttribute&&a.getAttribute("class")||""}function ui(a){return Array.isArray(a)?a:typeof a=="string"?a.match(pn)||[]:[]}d.fn.extend({addClass:function(a){var l,g,y,S,E,M;return ke(a)?this.each(function(z){d(this).addClass(a.call(this,z,zn(this)))}):(l=ui(a),l.length?this.each(function(){if(y=zn(this),g=this.nodeType===1&&" "+En(y)+" ",g){for(E=0;E-1;)g=g.replace(" "+S+" "," ");M=En(g),y!==M&&this.setAttribute("class",M)}}):this):this.attr("class","")},toggleClass:function(a,l){var g,y,S,E,M=typeof a,z=M==="string"||Array.isArray(a);return ke(a)?this.each(function(j){d(this).toggleClass(a.call(this,j,zn(this),l),l)}):typeof l=="boolean"&&z?l?this.addClass(a):this.removeClass(a):(g=ui(a),this.each(function(){if(z)for(E=d(this),S=0;S-1)return!0;return!1}});var nn=/\r/g;d.fn.extend({val:function(a){var l,g,y,S=this[0];return arguments.length?(y=ke(a),this.each(function(E){var M;this.nodeType===1&&(y?M=a.call(this,E,d(this).val()):M=a,M==null?M="":typeof M=="number"?M+="":Array.isArray(M)&&(M=d.map(M,function(z){return z==null?"":z+""})),l=d.valHooks[this.type]||d.valHooks[this.nodeName.toLowerCase()],(!l||!("set"in l)||l.set(this,M,"value")===void 0)&&(this.value=M))})):S?(l=d.valHooks[S.type]||d.valHooks[S.nodeName.toLowerCase()],l&&"get"in l&&(g=l.get(S,"value"))!==void 0?g:(g=S.value,typeof g=="string"?g.replace(nn,""):g??"")):void 0}}),d.extend({valHooks:{option:{get:function(a){var l=d.find.attr(a,"value");return l??En(d.text(a))}},select:{get:function(a){var l,g,y,S=a.options,E=a.selectedIndex,M=a.type==="select-one",z=M?null:[],j=M?E+1:S.length;for(E<0?y=j:y=M?E:0;y-1)&&(g=!0);return g||(a.selectedIndex=-1),E}}}}),d.each(["radio","checkbox"],function(){d.valHooks[this]={set:function(a,l){if(Array.isArray(l))return a.checked=d.inArray(d(a).val(),l)>-1}},Se.checkOn||(d.valHooks[this].get=function(a){return a.getAttribute("value")===null?"on":a.value})});var mr=o.location,Ea={guid:Date.now()},Hr=/\?/;d.parseXML=function(a){var l,g;if(!a||typeof a!="string")return null;try{l=new o.DOMParser().parseFromString(a,"text/xml")}catch{}return g=l&&l.getElementsByTagName("parsererror")[0],(!l||g)&&d.error("Invalid XML: "+(g?d.map(g.childNodes,function(y){return y.textContent}).join(` -`):a)),l};var na=/^(?:focusinfocus|focusoutblur)$/,Mi=function(a){a.stopPropagation()};d.extend(d.event,{trigger:function(a,l,g,y){var S,E,M,z,j,X,oe,se,ee=[g||je],ve=xe.call(a,"type")?a.type:a,Ke=xe.call(a,"namespace")?a.namespace.split("."):[];if(E=se=M=g=g||je,!(g.nodeType===3||g.nodeType===8)&&!na.test(ve+d.event.triggered)&&(ve.indexOf(".")>-1&&(Ke=ve.split("."),ve=Ke.shift(),Ke.sort()),j=ve.indexOf(":")<0&&"on"+ve,a=a[d.expando]?a:new d.Event(ve,typeof a=="object"&&a),a.isTrigger=y?2:3,a.namespace=Ke.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+Ke.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=g),l=l==null?[a]:d.makeArray(l,[a]),oe=d.event.special[ve]||{},!(!y&&oe.trigger&&oe.trigger.apply(g,l)===!1))){if(!y&&!oe.noBubble&&!Et(g)){for(z=oe.delegateType||ve,na.test(z+ve)||(E=E.parentNode);E;E=E.parentNode)ee.push(E),M=E;M===(g.ownerDocument||je)&&ee.push(M.defaultView||M.parentWindow||o)}for(S=0;(E=ee[S++])&&!a.isPropagationStopped();)se=E,a.type=S>1?z:oe.bindType||ve,X=(Fe.get(E,"events")||Object.create(null))[a.type]&&Fe.get(E,"handle"),X&&X.apply(E,l),X=j&&E[j],X&&X.apply&&tt(E)&&(a.result=X.apply(E,l),a.result===!1&&a.preventDefault());return a.type=ve,!y&&!a.isDefaultPrevented()&&(!oe._default||oe._default.apply(ee.pop(),l)===!1)&&tt(g)&&j&&ke(g[ve])&&!Et(g)&&(M=g[j],M&&(g[j]=null),d.event.triggered=ve,a.isPropagationStopped()&&se.addEventListener(ve,Mi),g[ve](),a.isPropagationStopped()&&se.removeEventListener(ve,Mi),d.event.triggered=void 0,M&&(g[j]=M)),a.result}},simulate:function(a,l,g){var y=d.extend(new d.Event,g,{type:a,isSimulated:!0});d.event.trigger(y,null,l)}}),d.fn.extend({trigger:function(a,l){return this.each(function(){d.event.trigger(a,l,this)})},triggerHandler:function(a,l){var g=this[0];if(g)return d.event.trigger(a,l,g,!0)}});var mt=/\[\]$/,Oi=/\r?\n/g,qn=/^(?:submit|button|image|reset|file)$/i,ia=/^(?:input|select|textarea|keygen)/i;function jr(a,l,g,y){var S;if(Array.isArray(l))d.each(l,function(E,M){g||mt.test(a)?y(a,M):jr(a+"["+(typeof M=="object"&&M!=null?E:"")+"]",M,g,y)});else if(!g&&De(l)==="object")for(S in l)jr(a+"["+S+"]",l[S],g,y);else y(a,l)}d.param=function(a,l){var g,y=[],S=function(E,M){var z=ke(M)?M():M;y[y.length]=encodeURIComponent(E)+"="+encodeURIComponent(z??"")};if(a==null)return"";if(Array.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){S(this.name,this.value)});else for(g in a)jr(g,a[g],l,S);return y.join("&")},d.fn.extend({serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=d.prop(this,"elements");return a?d.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!d(this).is(":disabled")&&ia.test(this.nodeName)&&!qn.test(a)&&(this.checked||!Bt.test(a))}).map(function(a,l){var g=d(this).val();return g==null?null:Array.isArray(g)?d.map(g,function(y){return{name:l.name,value:y.replace(Oi,`\r -`)}}):{name:l.name,value:g.replace(Oi,`\r -`)}}).get()}});var vn=/%20/g,Nn=/#.*$/,Ta=/([?&])_=[^&]*/,Ni=/^(.*?):[ \t]*([^\r\n]*)$/mg,Ca=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ra=/^(?:GET|HEAD)$/,qa=/^\/\//,Yr={},vr={},aa="*/".concat("*"),yr=je.createElement("a");yr.href=mr.href;function Da(a){return function(l,g){typeof l!="string"&&(g=l,l="*");var y,S=0,E=l.toLowerCase().match(pn)||[];if(ke(g))for(;y=E[S++];)y[0]==="+"?(y=y.slice(1)||"*",(a[y]=a[y]||[]).unshift(g)):(a[y]=a[y]||[]).push(g)}}function oa(a,l,g,y){var S={},E=a===vr;function M(z){var j;return S[z]=!0,d.each(a[z]||[],function(X,oe){var se=oe(l,g,y);if(typeof se=="string"&&!E&&!S[se])return l.dataTypes.unshift(se),M(se),!1;if(E)return!(j=se)}),j}return M(l.dataTypes[0])||!S["*"]&&M("*")}function Vr(a,l){var g,y,S=d.ajaxSettings.flatOptions||{};for(g in l)l[g]!==void 0&&((S[g]?a:y||(y={}))[g]=l[g]);return y&&d.extend(!0,a,y),a}function ka(a,l,g){for(var y,S,E,M,z=a.contents,j=a.dataTypes;j[0]==="*";)j.shift(),y===void 0&&(y=a.mimeType||l.getResponseHeader("Content-Type"));if(y){for(S in z)if(z[S]&&z[S].test(y)){j.unshift(S);break}}if(j[0]in g)E=j[0];else{for(S in g){if(!j[0]||a.converters[S+" "+j[0]]){E=S;break}M||(M=S)}E=E||M}if(E)return E!==j[0]&&j.unshift(E),g[E]}function ci(a,l,g,y){var S,E,M,z,j,X={},oe=a.dataTypes.slice();if(oe[1])for(M in a.converters)X[M.toLowerCase()]=a.converters[M];for(E=oe.shift();E;)if(a.responseFields[E]&&(g[a.responseFields[E]]=l),!j&&y&&a.dataFilter&&(l=a.dataFilter(l,a.dataType)),j=E,E=oe.shift(),E){if(E==="*")E=j;else if(j!=="*"&&j!==E){if(M=X[j+" "+E]||X["* "+E],!M){for(S in X)if(z=S.split(" "),z[1]===E&&(M=X[j+" "+z[0]]||X["* "+z[0]],M)){M===!0?M=X[S]:X[S]!==!0&&(E=z[0],oe.unshift(z[1]));break}}if(M!==!0)if(M&&a.throws)l=M(l);else try{l=M(l)}catch(se){return{state:"parsererror",error:M?se:"No conversion from "+j+" to "+E}}}}return{state:"success",data:l}}d.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mr.href,type:"GET",isLocal:Ca.test(mr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":aa,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":d.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,l){return l?Vr(Vr(a,d.ajaxSettings),l):Vr(d.ajaxSettings,a)},ajaxPrefilter:Da(Yr),ajaxTransport:Da(vr),ajax:function(a,l){typeof a=="object"&&(l=a,a=void 0),l=l||{};var g,y,S,E,M,z,j,X,oe,se,ee=d.ajaxSetup({},l),ve=ee.context||ee,Ke=ee.context&&(ve.nodeType||ve.jquery)?d(ve):d.event,ot=d.Deferred(),Qe=d.Callbacks("once memory"),$t=ee.statusCode||{},Wt={},In={},Pn="canceled",it={readyState:0,getResponseHeader:function(ut){var st;if(j){if(!E)for(E={};st=Ni.exec(S);)E[st[1].toLowerCase()+" "]=(E[st[1].toLowerCase()+" "]||[]).concat(st[2]);st=E[ut.toLowerCase()+" "]}return st==null?null:st.join(", ")},getAllResponseHeaders:function(){return j?S:null},setRequestHeader:function(ut,st){return j==null&&(ut=In[ut.toLowerCase()]=In[ut.toLowerCase()]||ut,Wt[ut]=st),this},overrideMimeType:function(ut){return j==null&&(ee.mimeType=ut),this},statusCode:function(ut){var st;if(ut)if(j)it.always(ut[it.status]);else for(st in ut)$t[st]=[$t[st],ut[st]];return this},abort:function(ut){var st=ut||Pn;return g&&g.abort(st),Pi(0,st),this}};if(ot.promise(it),ee.url=((a||ee.url||mr.href)+"").replace(qa,mr.protocol+"//"),ee.type=l.method||l.type||ee.method||ee.type,ee.dataTypes=(ee.dataType||"*").toLowerCase().match(pn)||[""],ee.crossDomain==null){z=je.createElement("a");try{z.href=ee.url,z.href=z.href,ee.crossDomain=yr.protocol+"//"+yr.host!=z.protocol+"//"+z.host}catch{ee.crossDomain=!0}}if(ee.data&&ee.processData&&typeof ee.data!="string"&&(ee.data=d.param(ee.data,ee.traditional)),oa(Yr,ee,l,it),j)return it;X=d.event&&ee.global,X&&d.active++===0&&d.event.trigger("ajaxStart"),ee.type=ee.type.toUpperCase(),ee.hasContent=!ra.test(ee.type),y=ee.url.replace(Nn,""),ee.hasContent?ee.data&&ee.processData&&(ee.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(ee.data=ee.data.replace(vn,"+")):(se=ee.url.slice(y.length),ee.data&&(ee.processData||typeof ee.data=="string")&&(y+=(Hr.test(y)?"&":"?")+ee.data,delete ee.data),ee.cache===!1&&(y=y.replace(Ta,"$1"),se=(Hr.test(y)?"&":"?")+"_="+Ea.guid+++se),ee.url=y+se),ee.ifModified&&(d.lastModified[y]&&it.setRequestHeader("If-Modified-Since",d.lastModified[y]),d.etag[y]&&it.setRequestHeader("If-None-Match",d.etag[y])),(ee.data&&ee.hasContent&&ee.contentType!==!1||l.contentType)&&it.setRequestHeader("Content-Type",ee.contentType),it.setRequestHeader("Accept",ee.dataTypes[0]&&ee.accepts[ee.dataTypes[0]]?ee.accepts[ee.dataTypes[0]]+(ee.dataTypes[0]!=="*"?", "+aa+"; q=0.01":""):ee.accepts["*"]);for(oe in ee.headers)it.setRequestHeader(oe,ee.headers[oe]);if(ee.beforeSend&&(ee.beforeSend.call(ve,it,ee)===!1||j))return it.abort();if(Pn="abort",Qe.add(ee.complete),it.done(ee.success),it.fail(ee.error),g=oa(vr,ee,l,it),!g)Pi(-1,"No Transport");else{if(it.readyState=1,X&&Ke.trigger("ajaxSend",[it,ee]),j)return it;ee.async&&ee.timeout>0&&(M=o.setTimeout(function(){it.abort("timeout")},ee.timeout));try{j=!1,g.send(Wt,Pi)}catch(ut){if(j)throw ut;Pi(-1,ut)}}function Pi(ut,st,tr,di){var Tn,Gn,fn,Ln,Kn,yn=st;j||(j=!0,M&&o.clearTimeout(M),g=void 0,S=di||"",it.readyState=ut>0?4:0,Tn=ut>=200&&ut<300||ut===304,tr&&(Ln=ka(ee,it,tr)),!Tn&&d.inArray("script",ee.dataTypes)>-1&&d.inArray("json",ee.dataTypes)<0&&(ee.converters["text script"]=function(){}),Ln=ci(ee,Ln,it,Tn),Tn?(ee.ifModified&&(Kn=it.getResponseHeader("Last-Modified"),Kn&&(d.lastModified[y]=Kn),Kn=it.getResponseHeader("etag"),Kn&&(d.etag[y]=Kn)),ut===204||ee.type==="HEAD"?yn="nocontent":ut===304?yn="notmodified":(yn=Ln.state,Gn=Ln.data,fn=Ln.error,Tn=!fn)):(fn=yn,(ut||!yn)&&(yn="error",ut<0&&(ut=0))),it.status=ut,it.statusText=(st||yn)+"",Tn?ot.resolveWith(ve,[Gn,yn,it]):ot.rejectWith(ve,[it,yn,fn]),it.statusCode($t),$t=void 0,X&&Ke.trigger(Tn?"ajaxSuccess":"ajaxError",[it,ee,Tn?Gn:fn]),Qe.fireWith(ve,[it,yn]),X&&(Ke.trigger("ajaxComplete",[it,ee]),--d.active||d.event.trigger("ajaxStop")))}return it},getJSON:function(a,l,g){return d.get(a,l,g,"json")},getScript:function(a,l){return d.get(a,void 0,l,"script")}}),d.each(["get","post"],function(a,l){d[l]=function(g,y,S,E){return ke(y)&&(E=E||S,S=y,y=void 0),d.ajax(d.extend({url:g,type:l,dataType:E,data:y,success:S},d.isPlainObject(g)&&g))}}),d.ajaxPrefilter(function(a){var l;for(l in a.headers)l.toLowerCase()==="content-type"&&(a.contentType=a.headers[l]||"")}),d._evalUrl=function(a,l,g){return d.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(y){d.globalEval(y,l,g)}})},d.fn.extend({wrapAll:function(a){var l;return this[0]&&(ke(a)&&(a=a.call(this[0])),l=d(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&l.insertBefore(this[0]),l.map(function(){for(var g=this;g.firstElementChild;)g=g.firstElementChild;return g}).append(this)),this},wrapInner:function(a){return ke(a)?this.each(function(l){d(this).wrapInner(a.call(this,l))}):this.each(function(){var l=d(this),g=l.contents();g.length?g.wrapAll(a):l.append(a)})},wrap:function(a){var l=ke(a);return this.each(function(g){d(this).wrapAll(l?a.call(this,g):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){d(this).replaceWith(this.childNodes)}),this}}),d.expr.pseudos.hidden=function(a){return!d.expr.pseudos.visible(a)},d.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},d.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch{}};var Ge={0:200,1223:204},Jt=d.ajaxSettings.xhr();Se.cors=!!Jt&&"withCredentials"in Jt,Se.ajax=Jt=!!Jt,d.ajaxTransport(function(a){var l,g;if(Se.cors||Jt&&!a.crossDomain)return{send:function(y,S){var E,M=a.xhr();if(M.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(E in a.xhrFields)M[E]=a.xhrFields[E];a.mimeType&&M.overrideMimeType&&M.overrideMimeType(a.mimeType),!a.crossDomain&&!y["X-Requested-With"]&&(y["X-Requested-With"]="XMLHttpRequest");for(E in y)M.setRequestHeader(E,y[E]);l=function(z){return function(){l&&(l=g=M.onload=M.onerror=M.onabort=M.ontimeout=M.onreadystatechange=null,z==="abort"?M.abort():z==="error"?typeof M.status!="number"?S(0,"error"):S(M.status,M.statusText):S(Ge[M.status]||M.status,M.statusText,(M.responseType||"text")!=="text"||typeof M.responseText!="string"?{binary:M.response}:{text:M.responseText},M.getAllResponseHeaders()))}},M.onload=l(),g=M.onerror=M.ontimeout=l("error"),M.onabort!==void 0?M.onabort=g:M.onreadystatechange=function(){M.readyState===4&&o.setTimeout(function(){l&&g()})},l=l("abort");try{M.send(a.hasContent&&a.data||null)}catch(z){if(l)throw z}},abort:function(){l&&l()}}}),d.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return d.globalEval(a),a}}}),d.ajaxPrefilter("script",function(a){a.cache===void 0&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),d.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var l,g;return{send:function(y,S){l=d(" + \ No newline at end of file diff --git a/resources/views/layouts/web.blade.php b/resources/views/layouts/web.blade.php index a424091db..5cb1f7d12 100644 --- a/resources/views/layouts/web.blade.php +++ b/resources/views/layouts/web.blade.php @@ -7,6 +7,7 @@ + diff --git a/resources/views/web/partials/property.blade.php b/resources/views/web/partials/property.blade.php index 3d22e7e19..56d450ef4 100644 --- a/resources/views/web/partials/property.blade.php +++ b/resources/views/web/partials/property.blade.php @@ -51,7 +51,7 @@ class="fa fa-home text-primary me-2">0 const urlDesaAktif = new URL( "{{ config('app.databaseGabunganUrl') . '/api/v1/desa-aktif' }}"); - $.get(urlDesaAktif, {}, function(result) { + $.get(urlDesaAktif+'?page[size]=6', {}, function(result) { if (result.data.length > 0) { let _elm result.data.forEach((item, index) => { @@ -71,21 +71,7 @@ class="fa fa-home text-primary me-2">0 item.attributes.rtm + ' RTM') }) } - }, 'json') - // $.get('{{ url('index.php/api/v1/desa-aktif') }}', {}, function(result){ - // if (result.data.length > 0){ - // let _elm - // result.data.forEach((item, index) => { - // _elm = $('.replace-content-property .kelurahan-item').eq(index) - // _elm.find('.nama-desa-elm').text(item.attributes.nama_desa) - // _elm.find('.website-elm').attr('href', item.attributes.website ?? '#') - // _elm.find('.penduduk-elm').html(''+item.attributes.penduduk+ ' Penduduk') - // _elm.find('.alamat-elm').html(''+(item.attributes.alamat ?? 'alamat belum ditentukan')) - // _elm.find('.keluarga-elm').html(''+item.attributes.keluarga+ ' Keluarga') - // _elm.find('.rtm-elm').html(''+item.attributes.rtm+ ' RTM') - // }) - // } - // }, 'json') + }, 'json') }); @endpush From d2eaf0f249d074448315b7f96f1a29d8c311c192 Mon Sep 17 00:00:00 2001 From: Ahmad Afandi Date: Wed, 22 Apr 2026 06:33:54 +0700 Subject: [PATCH 3/5] Perbaikan sesuai rekomendasi review AI --- .../{web-b4aa1d33.js => web-d3aac2a5.js} | 4 +-- public/build-web/manifest.json | 2 +- resources/js/web.js | 32 +++++++++++++++---- .../presisi/partials/javascript.blade.php | 30 +++++++++++++---- 4 files changed, 53 insertions(+), 15 deletions(-) rename public/build-web/assets/{web-b4aa1d33.js => web-d3aac2a5.js} (52%) diff --git a/public/build-web/assets/web-b4aa1d33.js b/public/build-web/assets/web-d3aac2a5.js similarity index 52% rename from public/build-web/assets/web-b4aa1d33.js rename to public/build-web/assets/web-d3aac2a5.js index 55ff69c00..edb96a410 100644 --- a/public/build-web/assets/web-b4aa1d33.js +++ b/public/build-web/assets/web-d3aac2a5.js @@ -1,5 +1,5 @@ -var Or=(M,$)=>()=>($||M(($={exports:{}}).exports,$),$.exports);import{$ as At,b as xr}from"./vendor-5c04c9f3.js";var kr=Or((ss,hi)=>{/*! +var kr=(M,$)=>()=>($||M(($={exports:{}}).exports,$),$.exports);import{$ as Ot,b as Lr}from"./vendor-5c04c9f3.js";var Sr=kr((rs,pi)=>{/*! * Bootstrap v5.3.2 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(M,$){typeof ss=="object"&&typeof hi<"u"?hi.exports=$():typeof define=="function"&&define.amd?define($):(M=typeof globalThis<"u"?globalThis:M||self).bootstrap=$()})(globalThis,function(){const M=new Map,$={set(i,e,t){M.has(i)||M.set(i,new Map);const n=M.get(i);n.has(e)||n.size===0?n.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,e)=>M.has(i)&&M.get(i).get(e)||null,remove(i,e){if(!M.has(i))return;const t=M.get(i);t.delete(e),t.size===0&&M.delete(i)}},le="transitionend",di=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),ui=i=>{i.dispatchEvent(new Event(le))},ne=i=>!(!i||typeof i!="object")&&(i.jquery!==void 0&&(i=i[0]),i.nodeType!==void 0),ce=i=>ne(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(di(i)):null,Oe=i=>{if(!ne(i)||i.getClientRects().length===0)return!1;const e=getComputedStyle(i).getPropertyValue("visibility")==="visible",t=i.closest("details:not([open])");if(!t)return e;if(t!==i){const n=i.closest("summary");if(n&&n.parentNode!==t||n===null)return!1}return e},he=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(i.disabled!==void 0?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"),fi=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){const e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?fi(i.parentNode):null},tt=()=>{},Re=i=>{i.offsetHeight},pi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Tt=[],R=()=>document.documentElement.dir==="rtl",q=i=>{var e;e=()=>{const t=pi();if(t){const n=i.NAME,s=t.fn[n];t.fn[n]=i.jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=()=>(t.fn[n]=s,i.jQueryInterface)}},document.readyState==="loading"?(Tt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Tt)t()}),Tt.push(e)):e()},F=(i,e=[],t=i)=>typeof i=="function"?i(...e):t,mi=(i,e,t=!0)=>{if(!t)return void F(i);const n=(r=>{if(!r)return 0;let{transitionDuration:a,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(a),u=Number.parseFloat(c);return d||u?(a=a.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener(le,o),F(i))};e.addEventListener(le,o),setTimeout(()=>{s||ui(e)},n)},Ct=(i,e,t,n)=>{const s=i.length;let o=i.indexOf(e);return o===-1?!t&&n?i[s-1]:i[0]:(o+=t?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))])},os=/[^.]*(?=\..*)\.|.*/,rs=/\..*/,as=/::\d+$/,Ot={};let gi=1;const _i={mouseenter:"mouseover",mouseleave:"mouseout"},ls=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 bi(i,e){return e&&`${e}::${gi++}`||i.uidEvent||gi++}function vi(i){const e=bi(i);return i.uidEvent=e,Ot[e]=Ot[e]||{},Ot[e]}function yi(i,e,t=null){return Object.values(i).find(n=>n.callable===e&&n.delegationSelector===t)}function wi(i,e,t){const n=typeof e=="string",s=n?t:e||t;let o=Ai(i);return ls.has(o)||(o=i),[n,s,o]}function Ei(i,e,t,n,s){if(typeof e!="string"||!i)return;let[o,r,a]=wi(e,t,n);e in _i&&(r=(g=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return g.call(this,m)})(r));const c=vi(i),d=c[a]||(c[a]={}),u=yi(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=bi(r,e.replace(os,"")),b=o?function(p,g,m){return function _(C){const k=p.querySelectorAll(g);for(let{target:y}=C;y&&y!==this;y=y.parentNode)for(const E of k)if(E===y)return kt(C,{delegateTarget:y}),_.oneOff&&l.off(p,C.type,g,m),m.apply(y,[C])}}(i,t,r):function(p,g){return function m(_){return kt(_,{delegateTarget:p}),m.oneOff&&l.off(p,_.type,g),g.apply(p,[_])}}(i,r);b.delegationSelector=o?t:null,b.callable=r,b.oneOff=s,b.uidEvent=h,d[h]=b,i.addEventListener(a,b,o)}function xt(i,e,t,n,s){const o=yi(e[t],n,s);o&&(i.removeEventListener(t,o,!!s),delete e[t][o.uidEvent])}function cs(i,e,t,n){const s=e[t]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&xt(i,e,t,r.callable,r.delegationSelector)}function Ai(i){return i=i.replace(rs,""),_i[i]||i}const l={on(i,e,t,n){Ei(i,e,t,n,!1)},one(i,e,t,n){Ei(i,e,t,n,!0)},off(i,e,t,n){if(typeof e!="string"||!i)return;const[s,o,r]=wi(e,t,n),a=r!==e,c=vi(i),d=c[r]||{},u=e.startsWith(".");if(o===void 0){if(u)for(const h of Object.keys(c))cs(i,c,h,e.slice(1));for(const[h,b]of Object.entries(d)){const p=h.replace(as,"");a&&!e.includes(p)||xt(i,c,r,b.callable,b.delegationSelector)}}else{if(!Object.keys(d).length)return;xt(i,c,r,o,s?t:null)}},trigger(i,e,t){if(typeof e!="string"||!i)return null;const n=pi();let s=null,o=!0,r=!0,a=!1;e!==Ai(e)&&n&&(s=n.Event(e,t),n(i).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const c=kt(new Event(e,{bubbles:o,cancelable:!0}),t);return a&&c.preventDefault(),r&&i.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function kt(i,e={}){for(const[t,n]of Object.entries(e))try{i[t]=n}catch{Object.defineProperty(i,t,{configurable:!0,get:()=>n})}return i}function Ti(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function Lt(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const se={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${Lt(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${Lt(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of t){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=Ti(i.dataset[n])}return e},getDataAttribute:(i,e)=>Ti(i.getAttribute(`data-bs-${Lt(e)}`))};class qe{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=ne(t)?se.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...ne(t)?se.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,o]of Object.entries(t)){const r=e[s],a=ne(r)?"element":(n=r)==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${a}" but expected type "${o}".`)}var n}}class Y extends qe{constructor(e,t){super(),(e=ce(e))&&(this._element=e,this._config=this._getConfig(t),$.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){mi(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return $.get(ce(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const St=i=>{let e=i.getAttribute("data-bs-target");if(!e||e==="#"){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?di(t.trim()):null}return e},f={find:(i,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,i)),findOne:(i,e=document.documentElement)=>Element.prototype.querySelector.call(e,i),children:(i,e)=>[].concat(...i.children).filter(t=>t.matches(e)),parents(i,e){const t=[];let n=i.parentNode.closest(e);for(;n;)t.push(n),n=n.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!he(t)&&Oe(t))},getSelectorFromElement(i){const e=St(i);return e&&f.findOne(e)?e:null},getElementFromSelector(i){const e=St(i);return e?f.findOne(e):null},getMultipleElementsFromSelector(i){const e=St(i);return e?f.find(e):[]}},it=(i,e="hide")=>{const t=`click.dismiss${i.EVENT_KEY}`,n=i.NAME;l.on(document,t,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),he(this))return;const o=f.getElementFromSelector(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[e]()})},Ci=".bs.alert",hs=`close${Ci}`,ds=`closed${Ci}`;class Ve extends Y{static get NAME(){return"alert"}close(){if(l.trigger(this._element,hs).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),l.trigger(this._element,ds),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Ve.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}it(Ve,"close"),q(Ve);const Oi='[data-bs-toggle="button"]';class Ke extends Y{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Ke.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}l.on(document,"click.bs.button.data-api",Oi,i=>{i.preventDefault();const e=i.target.closest(Oi);Ke.getOrCreateInstance(e).toggle()}),q(Ke);const xe=".bs.swipe",us=`touchstart${xe}`,fs=`touchmove${xe}`,ps=`touchend${xe}`,ms=`pointerdown${xe}`,gs=`pointerup${xe}`,_s={endCallback:null,leftCallback:null,rightCallback:null},bs={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class nt extends qe{constructor(e,t){super(),this._element=e,e&&nt.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return _s}static get DefaultType(){return bs}static get NAME(){return"swipe"}dispose(){l.off(this._element,xe)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),F(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&F(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(l.on(this._element,ms,e=>this._start(e)),l.on(this._element,gs,e=>this._end(e)),this._element.classList.add("pointer-event")):(l.on(this._element,us,e=>this._start(e)),l.on(this._element,fs,e=>this._move(e)),l.on(this._element,ps,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType==="pen"||e.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const de=".bs.carousel",xi=".data-api",Xe="next",ke="prev",Le="left",st="right",vs=`slide${de}`,Dt=`slid${de}`,ys=`keydown${de}`,ws=`mouseenter${de}`,Es=`mouseleave${de}`,As=`dragstart${de}`,Ts=`load${de}${xi}`,Cs=`click${de}${xi}`,ki="carousel",ot="active",Li=".active",Si=".carousel-item",Os=Li+Si,xs={ArrowLeft:st,ArrowRight:Le},ks={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ls={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Se extends Y{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ki&&this.cycle()}static get Default(){return ks}static get DefaultType(){return Ls}static get NAME(){return"carousel"}next(){this._slide(Xe)}nextWhenVisible(){!document.hidden&&Oe(this._element)&&this.next()}prev(){this._slide(ke)}pause(){this._isSliding&&ui(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?l.one(this._element,Dt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void l.one(this._element,Dt,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e>n?Xe:ke;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&l.on(this._element,ys,e=>this._keydown(e)),this._config.pause==="hover"&&(l.on(this._element,ws,()=>this.pause()),l.on(this._element,Es,()=>this._maybeEnableCycle())),this._config.touch&&nt.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of f.find(".carousel-item img",this._element))l.on(t,As,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Le)),rightCallback:()=>this._slide(this._directionToOrder(st)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new nt(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=xs[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=f.findOne(Li,this._indicatorsElement);t.classList.remove(ot),t.removeAttribute("aria-current");const n=f.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ot),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),s=e===Xe,o=t||Ct(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),a=h=>l.trigger(this._element,h,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(a(vs).defaultPrevented||!n||!o)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?"carousel-item-start":"carousel-item-end",u=s?"carousel-item-next":"carousel-item-prev";o.classList.add(u),Re(o),n.classList.add(d),o.classList.add(d),this._queueCallback(()=>{o.classList.remove(d,u),o.classList.add(ot),n.classList.remove(ot,u,d),this._isSliding=!1,a(Dt)},n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return f.findOne(Os,this._element)}_getItems(){return f.find(Si,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return R()?e===Le?ke:Xe:e===Le?Xe:ke}_orderToDirection(e){return R()?e===ke?Le:st:e===ke?st:Le}static jQueryInterface(e){return this.each(function(){const t=Se.getOrCreateInstance(this,e);if(typeof e!="number"){if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}l.on(document,Cs,"[data-bs-slide], [data-bs-slide-to]",function(i){const e=f.getElementFromSelector(this);if(!e||!e.classList.contains(ki))return;i.preventDefault();const t=Se.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(t.to(n),void t._maybeEnableCycle()):se.getDataAttribute(this,"slide")==="next"?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),l.on(window,Ts,()=>{const i=f.find('[data-bs-ride="carousel"]');for(const e of i)Se.getOrCreateInstance(e)}),q(Se);const Ue=".bs.collapse",Ss=`show${Ue}`,Ds=`shown${Ue}`,$s=`hide${Ue}`,Is=`hidden${Ue}`,Ns=`click${Ue}.data-api`,$t="show",De="collapse",rt="collapsing",Ps=`:scope .${De} .${De}`,It='[data-bs-toggle="collapse"]',js={parent:null,toggle:!0},Ms={parent:"(null|element)",toggle:"boolean"};class $e extends Y{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=f.find(It);for(const s of n){const o=f.getSelectorFromElement(s),r=f.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return js}static get DefaultType(){return Ms}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(s=>s!==this._element).map(s=>$e.getOrCreateInstance(s,{toggle:!1}))),e.length&&e[0]._isTransitioning||l.trigger(this._element,Ss).defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(De),this._element.classList.add(rt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(rt),this._element.classList.add(De,$t),this._element.style[t]="",l.trigger(this._element,Ds)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,$s).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Re(this._element),this._element.classList.add(rt),this._element.classList.remove(De,$t);for(const t of this._triggerArray){const n=f.getElementFromSelector(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(rt),this._element.classList.add(De),l.trigger(this._element,Is)},this._element,!0)}_isShown(e=this._element){return e.classList.contains($t)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=ce(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(It);for(const t of e){const n=f.getElementFromSelector(t);n&&this._addAriaAndCollapsedClass([t],this._isShown(n))}}_getFirstLevelChildren(e){const t=f.find(Ps,this._config.parent);return f.find(e,this._config.parent).filter(n=>!t.includes(n))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=$e.getOrCreateInstance(this,t);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e]()}})}}l.on(document,Ns,It,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(const e of f.getMultipleElementsFromSelector(this))$e.getOrCreateInstance(e,{toggle:!1}).toggle()}),q($e);var I="top",H="bottom",W="right",N="left",at="auto",Ie=[I,H,W,N],me="start",Ne="end",Di="clippingParents",Nt="viewport",Pe="popper",$i="reference",Pt=Ie.reduce(function(i,e){return i.concat([e+"-"+me,e+"-"+Ne])},[]),jt=[].concat(Ie,[at]).reduce(function(i,e){return i.concat([e,e+"-"+me,e+"-"+Ne])},[]),Ii="beforeRead",Ni="read",Pi="afterRead",ji="beforeMain",Mi="main",Fi="afterMain",Hi="beforeWrite",Wi="write",Bi="afterWrite",zi=[Ii,Ni,Pi,ji,Mi,Fi,Hi,Wi,Bi];function J(i){return i?(i.nodeName||"").toLowerCase():null}function B(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function ge(i){return i instanceof B(i).Element||i instanceof Element}function V(i){return i instanceof B(i).HTMLElement||i instanceof HTMLElement}function Mt(i){return typeof ShadowRoot<"u"&&(i instanceof B(i).ShadowRoot||i instanceof ShadowRoot)}const Ft={name:"applyStyles",enabled:!0,phase:"write",fn:function(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];V(o)&&J(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})},effect:function(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(function(a,c){return a[c]="",a},{});V(s)&&J(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(a){s.removeAttribute(a)}))})}},requires:["computeStyles"]};function ee(i){return i.split("-")[0]}var _e=Math.max,lt=Math.min,je=Math.round;function Ht(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ri(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function Me(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=i.getBoundingClientRect(),s=1,o=1;e&&V(i)&&(s=i.offsetWidth>0&&je(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&je(n.height)/i.offsetHeight||1);var r=(ge(i)?B(i):window).visualViewport,a=!Ri()&&t,c=(n.left+(a&&r?r.offsetLeft:0))/s,d=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,h=n.height/o;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function Wt(i){var e=Me(i),t=i.offsetWidth,n=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:n}}function qi(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&Mt(t)){var n=e;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function oe(i){return B(i).getComputedStyle(i)}function Fs(i){return["table","td","th"].indexOf(J(i))>=0}function ue(i){return((ge(i)?i.ownerDocument:i.document)||window.document).documentElement}function ct(i){return J(i)==="html"?i:i.assignedSlot||i.parentNode||(Mt(i)?i.host:null)||ue(i)}function Vi(i){return V(i)&&oe(i).position!=="fixed"?i.offsetParent:null}function Qe(i){for(var e=B(i),t=Vi(i);t&&Fs(t)&&oe(t).position==="static";)t=Vi(t);return t&&(J(t)==="html"||J(t)==="body"&&oe(t).position==="static")?e:t||function(n){var s=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&V(n)&&oe(n).position==="fixed")return null;var o=ct(n);for(Mt(o)&&(o=o.host);V(o)&&["html","body"].indexOf(J(o))<0;){var r=oe(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||s&&r.willChange==="filter"||s&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}(i)||e}function Bt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Ye(i,e,t){return _e(i,lt(e,t))}function Ki(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function Xi(i,e){return e.reduce(function(t,n){return t[n]=i,t},{})}const Ui={name:"arrow",enabled:!0,phase:"main",fn:function(i){var e,t=i.state,n=i.name,s=i.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=ee(t.placement),c=Bt(a),d=[N,W].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(O,T){return Ki(typeof(O=typeof O=="function"?O(Object.assign({},T.rects,{placement:T.placement})):O)!="number"?O:Xi(O,Ie))}(s.padding,t),h=Wt(o),b=c==="y"?I:N,p=c==="y"?H:W,g=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],m=r[c]-t.rects.reference[c],_=Qe(o),C=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,k=g/2-m/2,y=u[b],E=C-h[d]-u[p],v=C/2-h[d]/2+k,w=Ye(y,v,E),A=c;t.modifiersData[n]=((e={})[A]=w,e.centerOffset=w-v,e)}},effect:function(i){var e=i.state,t=i.options.element,n=t===void 0?"[data-popper-arrow]":t;n!=null&&(typeof n!="string"||(n=e.elements.popper.querySelector(n)))&&qi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fe(i){return i.split("-")[1]}var Hs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qi(i){var e,t=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,b=r.x,p=b===void 0?0:b,g=r.y,m=g===void 0?0:g,_=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var C=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=N,E=I,v=window;if(d){var w=Qe(t),A="clientHeight",O="clientWidth";w===B(t)&&oe(w=ue(t)).position!=="static"&&a==="absolute"&&(A="scrollHeight",O="scrollWidth"),(s===I||(s===N||s===W)&&o===Ne)&&(E=H,m-=(h&&w===v&&v.visualViewport?v.visualViewport.height:w[A])-n.height,m*=c?1:-1),s!==N&&(s!==I&&s!==H||o!==Ne)||(y=W,p-=(h&&w===v&&v.visualViewport?v.visualViewport.width:w[O])-n.width,p*=c?1:-1)}var T,S=Object.assign({position:a},d&&Hs),z=u===!0?function(Z,P){var X=Z.x,U=Z.y,L=P.devicePixelRatio||1;return{x:je(X*L)/L||0,y:je(U*L)/L||0}}({x:p,y:m},B(t)):{x:p,y:m};return p=z.x,m=z.y,c?Object.assign({},S,((T={})[E]=k?"0":"",T[y]=C?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((e={})[E]=k?m+"px":"",e[y]=C?p+"px":"",e.transform="",e))}const zt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(i){var e=i.state,t=i.options,n=t.gpuAcceleration,s=n===void 0||n,o=t.adaptive,r=o===void 0||o,a=t.roundOffsets,c=a===void 0||a,d={placement:ee(e.placement),variation:Fe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Qi(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Qi(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ht={passive:!0};const Rt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(i){var e=i.state,t=i.instance,n=i.options,s=n.scroll,o=s===void 0||s,r=n.resize,a=r===void 0||r,c=B(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,ht)}),a&&c.addEventListener("resize",t.update,ht),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,ht)}),a&&c.removeEventListener("resize",t.update,ht)}},data:{}};var Ws={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(i){return i.replace(/left|right|bottom|top/g,function(e){return Ws[e]})}var Bs={start:"end",end:"start"};function Yi(i){return i.replace(/start|end/g,function(e){return Bs[e]})}function qt(i){var e=B(i);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vt(i){return Me(ue(i)).left+qt(i).scrollLeft}function Kt(i){var e=oe(i),t=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+n)}function Gi(i){return["html","body","#document"].indexOf(J(i))>=0?i.ownerDocument.body:V(i)&&Kt(i)?i:Gi(ct(i))}function Ge(i,e){var t;e===void 0&&(e=[]);var n=Gi(i),s=n===((t=i.ownerDocument)==null?void 0:t.body),o=B(n),r=s?[o].concat(o.visualViewport||[],Kt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Ge(ct(r)))}function Xt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Zi(i,e,t){return e===Nt?Xt(function(n,s){var o=B(n),r=ue(n),a=o.visualViewport,c=r.clientWidth,d=r.clientHeight,u=0,h=0;if(a){c=a.width,d=a.height;var b=Ri();(b||!b&&s==="fixed")&&(u=a.offsetLeft,h=a.offsetTop)}return{width:c,height:d,x:u+Vt(n),y:h}}(i,t)):ge(e)?function(n,s){var o=Me(n,!1,s==="fixed");return o.top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o}(e,t):Xt(function(n){var s,o=ue(n),r=qt(n),a=(s=n.ownerDocument)==null?void 0:s.body,c=_e(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=_e(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-r.scrollLeft+Vt(n),h=-r.scrollTop;return oe(a||o).direction==="rtl"&&(u+=_e(o.clientWidth,a?a.clientWidth:0)-c),{width:c,height:d,x:u,y:h}}(ue(i)))}function Ji(i){var e,t=i.reference,n=i.element,s=i.placement,o=s?ee(s):null,r=s?Fe(s):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2;switch(o){case I:e={x:a,y:t.y-n.height};break;case H:e={x:a,y:t.y+t.height};break;case W:e={x:t.x+t.width,y:c};break;case N:e={x:t.x-n.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?Bt(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case me:e[d]=e[d]-(t[u]/2-n[u]/2);break;case Ne:e[d]=e[d]+(t[u]/2-n[u]/2)}}return e}function He(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=n===void 0?i.placement:n,o=t.strategy,r=o===void 0?i.strategy:o,a=t.boundary,c=a===void 0?Di:a,d=t.rootBoundary,u=d===void 0?Nt:d,h=t.elementContext,b=h===void 0?Pe:h,p=t.altBoundary,g=p!==void 0&&p,m=t.padding,_=m===void 0?0:m,C=Ki(typeof _!="number"?_:Xi(_,Ie)),k=b===Pe?$i:Pe,y=i.rects.popper,E=i.elements[g?k:b],v=function(P,X,U,L){var te=X==="clippingParents"?function(x){var j=Ge(ct(x)),Q=["absolute","fixed"].indexOf(oe(x).position)>=0&&V(x)?Qe(x):x;return ge(Q)?j.filter(function(pe){return ge(pe)&&qi(pe,Q)&&J(pe)!=="body"}):[]}(P):[].concat(X),ie=[].concat(te,[U]),ze=ie[0],D=ie.reduce(function(x,j){var Q=Zi(P,j,L);return x.top=_e(Q.top,x.top),x.right=lt(Q.right,x.right),x.bottom=lt(Q.bottom,x.bottom),x.left=_e(Q.left,x.left),x},Zi(P,ze,L));return D.width=D.right-D.left,D.height=D.bottom-D.top,D.x=D.left,D.y=D.top,D}(ge(E)?E:E.contextElement||ue(i.elements.popper),c,u,r),w=Me(i.elements.reference),A=Ji({reference:w,element:y,strategy:"absolute",placement:s}),O=Xt(Object.assign({},y,A)),T=b===Pe?O:w,S={top:v.top-T.top+C.top,bottom:T.bottom-v.bottom+C.bottom,left:v.left-T.left+C.left,right:T.right-v.right+C.right},z=i.modifiersData.offset;if(b===Pe&&z){var Z=z[s];Object.keys(S).forEach(function(P){var X=[W,H].indexOf(P)>=0?1:-1,U=[I,H].indexOf(P)>=0?"y":"x";S[P]+=Z[U]*X})}return S}function zs(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?jt:c,u=Fe(n),h=u?a?Pt:Pt.filter(function(g){return Fe(g)===u}):Ie,b=h.filter(function(g){return d.indexOf(g)>=0});b.length===0&&(b=h);var p=b.reduce(function(g,m){return g[m]=He(i,{placement:m,boundary:s,rootBoundary:o,padding:r})[ee(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}const en={name:"flip",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name;if(!e.modifiersData[n]._skip){for(var s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r===void 0||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,b=t.altBoundary,p=t.flipVariations,g=p===void 0||p,m=t.allowedAutoPlacements,_=e.options.placement,C=ee(_),k=c||(C!==_&&g?function(x){if(ee(x)===at)return[];var j=dt(x);return[Yi(x),j,Yi(j)]}(_):[dt(_)]),y=[_].concat(k).reduce(function(x,j){return x.concat(ee(j)===at?zs(e,{placement:j,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:m}):j)},[]),E=e.rects.reference,v=e.rects.popper,w=new Map,A=!0,O=y[0],T=0;T=0,X=P?"width":"height",U=He(e,{placement:S,boundary:u,rootBoundary:h,altBoundary:b,padding:d}),L=P?Z?W:N:Z?H:I;E[X]>v[X]&&(L=dt(L));var te=dt(L),ie=[];if(o&&ie.push(U[z]<=0),a&&ie.push(U[L]<=0,U[te]<=0),ie.every(function(x){return x})){O=S,A=!1;break}w.set(S,ie)}if(A)for(var ze=function(x){var j=y.find(function(Q){var pe=w.get(Q);if(pe)return pe.slice(0,x).every(function(yt){return yt})});if(j)return O=j,"break"},D=g?3:1;D>0&&ze(D)!=="break";D--);e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function tn(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function nn(i){return[I,W,H,N].some(function(e){return i[e]>=0})}const sn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(i){var e=i.state,t=i.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=He(e,{elementContext:"reference"}),a=He(e,{altBoundary:!0}),c=tn(r,n),d=tn(a,s,o),u=nn(c),h=nn(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},on={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.offset,o=s===void 0?[0,0]:s,r=jt.reduce(function(u,h){return u[h]=function(b,p,g){var m=ee(b),_=[N,I].indexOf(m)>=0?-1:1,C=typeof g=="function"?g(Object.assign({},p,{placement:b})):g,k=C[0],y=C[1];return k=k||0,y=(y||0)*_,[N,W].indexOf(m)>=0?{x:y,y:k}:{x:k,y}}(h,e.rects,o),u},{}),a=r[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=r}},Ut={name:"popperOffsets",enabled:!0,phase:"read",fn:function(i){var e=i.state,t=i.name;e.modifiersData[t]=Ji({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},rn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r!==void 0&&r,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,h=t.padding,b=t.tether,p=b===void 0||b,g=t.tetherOffset,m=g===void 0?0:g,_=He(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),C=ee(e.placement),k=Fe(e.placement),y=!k,E=Bt(C),v=E==="x"?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,O=e.rects.popper,T=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,S=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(w){if(o){var P,X=E==="y"?I:N,U=E==="y"?H:W,L=E==="y"?"height":"width",te=w[E],ie=te+_[X],ze=te-_[U],D=p?-O[L]/2:0,x=k===me?A[L]:O[L],j=k===me?-O[L]:-A[L],Q=e.elements.arrow,pe=p&&Q?Wt(Q):{width:0,height:0},yt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Kn=yt[X],Xn=yt[U],wt=Ye(0,A[L],pe[L]),br=y?A[L]/2-D-wt-Kn-S.mainAxis:x-wt-Kn-S.mainAxis,vr=y?-A[L]/2+D+wt+Xn+S.mainAxis:j+wt+Xn+S.mainAxis,ai=e.elements.arrow&&Qe(e.elements.arrow),yr=ai?E==="y"?ai.clientTop||0:ai.clientLeft||0:0,Un=(P=z==null?void 0:z[E])!=null?P:0,wr=te+vr-Un,Qn=Ye(p?lt(ie,te+br-Un-yr):ie,te,p?_e(ze,wr):ze);w[E]=Qn,Z[E]=Qn-te}if(a){var Yn,Er=E==="x"?I:N,Ar=E==="x"?H:W,Ce=w[v],Et=v==="y"?"height":"width",Gn=Ce+_[Er],Zn=Ce-_[Ar],li=[I,N].indexOf(C)!==-1,Jn=(Yn=z==null?void 0:z[v])!=null?Yn:0,es=li?Gn:Ce-A[Et]-O[Et]-Jn+S.altAxis,ts=li?Ce+A[Et]+O[Et]-Jn-S.altAxis:Zn,is=p&&li?function(Tr,Cr,ci){var ns=Ye(Tr,Cr,ci);return ns>ci?ci:ns}(es,Ce,ts):Ye(p?es:Gn,Ce,p?ts:Zn);w[v]=is,Z[v]=is-Ce}e.modifiersData[n]=Z}},requiresIfExists:["offset"]};function Rs(i,e,t){t===void 0&&(t=!1);var n,s,o=V(e),r=V(e)&&function(h){var b=h.getBoundingClientRect(),p=je(b.width)/h.offsetWidth||1,g=je(b.height)/h.offsetHeight||1;return p!==1||g!==1}(e),a=ue(e),c=Me(i,r,t),d={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!t)&&((J(e)!=="body"||Kt(a))&&(d=(n=e)!==B(n)&&V(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:qt(n)),V(e)?((u=Me(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Vt(a))),{x:c.left+d.scrollLeft-u.x,y:c.top+d.scrollTop-u.y,width:c.width,height:c.height}}function qs(i){var e=new Map,t=new Set,n=[];function s(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(r){if(!t.has(r)){var a=e.get(r);a&&s(a)}}),n.push(o)}return i.forEach(function(o){e.set(o.name,o)}),i.forEach(function(o){t.has(o.name)||s(o)}),n}var an={placement:"bottom",modifiers:[],strategy:"absolute"};function ln(){for(var i=arguments.length,e=new Array(i),t=0;tNumber.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(se.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...F(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(s=>Oe(s));n.length&&Ct(n,t,e===dn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=G.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type==="keyup"&&e.key!=="Tab")return;const t=f.find(Js);for(const n of t){const s=G.getInstance(n);if(!s||s._config.autoClose===!1)continue;const o=e.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!r||s._config.autoClose==="outside"&&r||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key==="Tab"||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};e.type==="click"&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key==="Escape",s=[Xs,dn].includes(e.key);if(!s&&!n||t&&!n)return;e.preventDefault();const o=this.matches(ve)?this:f.prev(this,ve)[0]||f.next(this,ve)[0]||f.findOne(ve,e.delegateTarget.parentNode),r=G.getOrCreateInstance(o);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}l.on(document,fn,ve,G.dataApiKeydownHandler),l.on(document,fn,ft,G.dataApiKeydownHandler),l.on(document,un,G.clearMenus),l.on(document,Zs,G.clearMenus),l.on(document,un,ve,function(i){i.preventDefault(),G.getOrCreateInstance(this).toggle()}),q(G);const pn="backdrop",mn="show",gn=`mousedown.bs.${pn}`,lo={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},co={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class _n extends qe{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return lo}static get DefaultType(){return co}static get NAME(){return pn}show(e){if(!this._config.isVisible)return void F(e);this._append();const t=this._getElement();this._config.isAnimated&&Re(t),t.classList.add(mn),this._emulateAnimation(()=>{F(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(mn),this._emulateAnimation(()=>{this.dispose(),F(e)})):F(e)}dispose(){this._isAppended&&(l.off(this._element,gn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ce(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),l.on(e,gn,()=>{F(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){mi(e,this._getElement(),this._config.isAnimated)}}const pt=".bs.focustrap",ho=`focusin${pt}`,uo=`keydown.tab${pt}`,bn="backward",fo={autofocus:!0,trapElement:null},po={autofocus:"boolean",trapElement:"element"};class vn extends qe{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fo}static get DefaultType(){return po}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,pt),l.on(document,ho,e=>this._handleFocusin(e)),l.on(document,uo,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.off(document,pt))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=f.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===bn?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key==="Tab"&&(this._lastTabNavDirection=e.shiftKey?bn:"forward")}}const yn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",wn=".sticky-top",mt="padding-right",En="margin-right";class Gt{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mt,t=>t+e),this._setElementAttributes(yn,mt,t=>t+e),this._setElementAttributes(wn,En,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,mt),this._resetElementAttributes(yn,mt),this._resetElementAttributes(wn,En)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,t);const r=window.getComputedStyle(o).getPropertyValue(t);o.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&se.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,n=>{const s=se.getDataAttribute(n,t);s!==null?(se.removeDataAttribute(n,t),n.style.setProperty(t,s)):n.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(ne(e))t(e);else for(const n of f.find(e,this._element))t(n)}}const K=".bs.modal",mo=`hide${K}`,go=`hidePrevented${K}`,An=`hidden${K}`,Tn=`show${K}`,_o=`shown${K}`,bo=`resize${K}`,vo=`click.dismiss${K}`,yo=`mousedown.dismiss${K}`,wo=`keydown.dismiss${K}`,Eo=`click${K}.data-api`,Cn="modal-open",On="show",Zt="modal-static",Ao={backdrop:!0,focus:!0,keyboard:!0},To={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ye extends Y{constructor(e,t){super(e,t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Gt,this._addEventListeners()}static get Default(){return Ao}static get DefaultType(){return To}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||l.trigger(this._element,Tn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Cn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(l.trigger(this._element,mo).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(On),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){l.off(window,K),l.off(this._dialog,K),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _n({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=f.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Re(this._element),this._element.classList.add(On),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,l.trigger(this._element,_o,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){l.on(this._element,wo,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),l.on(window,bo,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),l.on(this._element,yo,e=>{l.one(this._element,vo,t=>{this._element===e.target&&this._element===t.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Cn),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,An)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(l.trigger(this._element,go).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t==="hidden"||this._element.classList.contains(Zt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Zt),this._queueCallback(()=>{this._element.classList.remove(Zt),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const s=R()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!n&&e){const s=R()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=ye.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e](t)}})}}l.on(document,Eo,'[data-bs-toggle="modal"]',function(i){const e=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(e,Tn,n=>{n.defaultPrevented||l.one(e,An,()=>{Oe(this)&&this.focus()})});const t=f.findOne(".modal.show");t&&ye.getInstance(t).hide(),ye.getOrCreateInstance(e).toggle(this)}),it(ye),q(ye);const re=".bs.offcanvas",xn=".data-api",Co=`load${re}${xn}`,kn="show",Ln="showing",Sn="hiding",Dn=".offcanvas.show",Oo=`show${re}`,xo=`shown${re}`,ko=`hide${re}`,$n=`hidePrevented${re}`,In=`hidden${re}`,Lo=`resize${re}`,So=`click${re}${xn}`,Do=`keydown.dismiss${re}`,$o={backdrop:!0,keyboard:!0,scroll:!1},Io={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ae extends Y{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return $o}static get DefaultType(){return Io}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||l.trigger(this._element,Oo,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Gt().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ln),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(kn),this._element.classList.remove(Ln),l.trigger(this._element,xo,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(l.trigger(this._element,ko).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Sn),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(kn,Sn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Gt().reset(),l.trigger(this._element,In)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new _n({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{this._config.backdrop!=="static"?this.hide():l.trigger(this._element,$n)}:null})}_initializeFocusTrap(){return new vn({trapElement:this._element})}_addEventListeners(){l.on(this._element,Do,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():l.trigger(this._element,$n))})}static jQueryInterface(e){return this.each(function(){const t=ae.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}l.on(document,So,'[data-bs-toggle="offcanvas"]',function(i){const e=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),he(this))return;l.one(e,In,()=>{Oe(this)&&this.focus()});const t=f.findOne(Dn);t&&t!==e&&ae.getInstance(t).hide(),ae.getOrCreateInstance(e).toggle(this)}),l.on(window,Co,()=>{for(const i of f.find(Dn))ae.getOrCreateInstance(i).show()}),l.on(window,Lo,()=>{for(const i of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&ae.getOrCreateInstance(i).hide()}),it(ae),q(ae);const Nn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},No=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Po=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,jo=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!No.has(t)||!!Po.test(i.nodeValue):e.filter(n=>n instanceof RegExp).some(n=>n.test(t))},Mo={allowList:Nn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Fo={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Ho={entry:"(string|element|function|null)",selector:"(string|element)"};class Wo extends qe{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Mo}static get DefaultType(){return Fo}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Ho)}_setContent(e,t,n){const s=f.findOne(n,e);s&&((t=this._resolvePossibleFunction(t))?ne(t)?this._putElementInTemplate(ce(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,n,s){if(!t.length)return t;if(s&&typeof s=="function")return s(t);const o=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const a of r){const c=a.nodeName.toLowerCase();if(!Object.keys(n).includes(c)){a.remove();continue}const d=[].concat(...a.attributes),u=[].concat(n["*"]||[],n[c]||[]);for(const h of d)jo(h,u)||a.removeAttribute(h.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return F(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Bo=new Set(["sanitize","allowList","sanitizeFn"]),Jt="fade",gt="show",Pn=".modal",jn="hide.bs.modal",Ze="hover",ei="focus",zo={AUTO:"auto",TOP:"top",RIGHT:R()?"left":"right",BOTTOM:"bottom",LEFT:R()?"right":"left"},Ro={allowList:Nn,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:'',title:"",trigger:"hover focus"},qo={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 we extends Y{constructor(e,t){if(cn===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),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 Ro}static get DefaultType(){return qo}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(Pn),jn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=l.trigger(this._element,this.constructor.eventName("show")),t=(fi(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),l.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(gt),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))l.on(o,"mouseover",tt);this._queueCallback(()=>{l.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!l.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(gt),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))l.off(e,"mouseover",tt);this._activeTrigger.click=!1,this._activeTrigger[ei]=!1,this._activeTrigger[Ze]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Jt,gt),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(s=>{do s+=Math.floor(1e6*Math.random());while(document.getElementById(s));return s})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Jt),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Wo({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Jt)}_isShown(){return this.tip&&this.tip.classList.contains(gt)}_createPopper(e){const t=F(this._config.placement,[this,e,this._element]),n=zo[t.toUpperCase()];return Qt(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return F(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...t,...F(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")l.on(this._element,this.constructor.eventName("click"),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(t!=="manual"){const n=t===Ze?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),s=t===Ze?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");l.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?ei:Ze]=!0,r._enter()}),l.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?ei:Ze]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},l.on(this._element.closest(Pn),jn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=se.getDataAttributes(this._element);for(const n of Object.keys(t))Bo.has(n)&&delete t[n];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:ce(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=we.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}q(we);const Vo={...we.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Ko={...we.DefaultType,content:"(null|string|element|function)"};class _t extends we{static get Default(){return Vo}static get DefaultType(){return Ko}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=_t.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}q(_t);const ti=".bs.scrollspy",Xo=`activate${ti}`,Mn=`click${ti}`,Uo=`load${ti}.data-api`,Be="active",ii="[href]",Fn=".nav-link",Qo=`${Fn}, .nav-item > ${Fn}, .list-group-item`,Yo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Go={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Je extends Y{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Yo}static get DefaultType(){return Go}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=ce(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,Mn),l.on(this._config.target,Mn,ii,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(r),!s)return}else o||a||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=f.find(ii,this._config.target);for(const t of e){if(!t.hash||he(t))continue;const n=f.findOne(decodeURI(t.hash),this._element);Oe(n)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Be),this._activateParents(e),l.trigger(this._element,Xo,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))f.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Be);else for(const t of f.parents(e,".nav, .list-group"))for(const n of f.prev(t,Qo))n.classList.add(Be)}_clearActiveClass(e){e.classList.remove(Be);const t=f.find(`${ii}.${Be}`,e);for(const n of t)n.classList.remove(Be)}static jQueryInterface(e){return this.each(function(){const t=Je.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(window,Uo,()=>{for(const i of f.find('[data-bs-spy="scroll"]'))Je.getOrCreateInstance(i)}),q(Je);const Ee=".bs.tab",Zo=`hide${Ee}`,Jo=`hidden${Ee}`,er=`show${Ee}`,tr=`shown${Ee}`,ir=`click${Ee}`,nr=`keydown${Ee}`,sr=`load${Ee}`,or="ArrowLeft",Hn="ArrowRight",rr="ArrowUp",Wn="ArrowDown",ni="Home",Bn="End",Ae="active",zn="fade",si="show",Rn=".dropdown-toggle",oi=`:not(${Rn})`,qn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ri=`.nav-link${oi}, .list-group-item${oi}, [role="tab"]${oi}, ${qn}`,ar=`.${Ae}[data-bs-toggle="tab"], .${Ae}[data-bs-toggle="pill"], .${Ae}[data-bs-toggle="list"]`;class Te extends Y{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,nr,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?l.trigger(t,Zo,{relatedTarget:e}):null;l.trigger(e,er,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ae),this._activate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),l.trigger(e,tr,{relatedTarget:t})):e.classList.add(si)},e,e.classList.contains(zn)))}_deactivate(e,t){e&&(e.classList.remove(Ae),e.blur(),this._deactivate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),l.trigger(e,Jo,{relatedTarget:t})):e.classList.remove(si)},e,e.classList.contains(zn)))}_keydown(e){if(![or,Hn,rr,Wn,ni,Bn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(s=>!he(s));let n;if([ni,Bn].includes(e.key))n=t[e.key===ni?0:t.length-1];else{const s=[Hn,Wn].includes(e.key);n=Ct(t,e.target,s,!0)}n&&(n.focus({preventScroll:!0}),Te.getOrCreateInstance(n).show())}_getChildren(){return f.find(ri,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=f.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(o,r)=>{const a=f.findOne(o,n);a&&a.classList.toggle(r,t)};s(Rn,Ae),s(".dropdown-menu",si),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ae)}_getInnerElement(e){return e.matches(ri)?e:f.findOne(ri,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Te.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(document,ir,qn,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),he(this)||Te.getOrCreateInstance(this).show()}),l.on(window,sr,()=>{for(const i of f.find(ar))Te.getOrCreateInstance(i)}),q(Te);const fe=".bs.toast",lr=`mouseover${fe}`,cr=`mouseout${fe}`,hr=`focusin${fe}`,dr=`focusout${fe}`,ur=`hide${fe}`,fr=`hidden${fe}`,pr=`show${fe}`,mr=`shown${fe}`,Vn="hide",bt="show",vt="showing",gr={animation:"boolean",autohide:"boolean",delay:"number"},_r={animation:!0,autohide:!0,delay:5e3};class et extends Y{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return _r}static get DefaultType(){return gr}static get NAME(){return"toast"}show(){l.trigger(this._element,pr).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Vn),Re(this._element),this._element.classList.add(bt,vt),this._queueCallback(()=>{this._element.classList.remove(vt),l.trigger(this._element,mr),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(l.trigger(this._element,ur).defaultPrevented||(this._element.classList.add(vt),this._queueCallback(()=>{this._element.classList.add(Vn),this._element.classList.remove(vt,bt),l.trigger(this._element,fr)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(bt),super.dispose()}isShown(){return this._element.classList.contains(bt)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){l.on(this._element,lr,e=>this._onInteraction(e,!0)),l.on(this._element,cr,e=>this._onInteraction(e,!1)),l.on(this._element,hr,e=>this._onInteraction(e,!0)),l.on(this._element,dr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=et.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return it(et),q(et),{Alert:Ve,Button:Ke,Carousel:Se,Collapse:$e,Dropdown:G,Modal:ye,Offcanvas:ae,Popover:_t,ScrollSpy:Je,Tab:Te,Toast:et,Tooltip:we}});window.$=At;window.jQuery=At;window.bootstrap=xr;At.ajaxSetup({beforeSend:function(M,$){const le=At('meta[name="identitas-openkab"]').attr("content");$.url.indexOf("?")===-1?$.url+="?kode_kabupaten="+le+"&filter[kode_kabupaten]="+le:$.url+="&kode_kabupaten="+le+"&filter[kode_kabupaten]="+le}})});export default kr(); + */(function(M,$){typeof rs=="object"&&typeof pi<"u"?pi.exports=$():typeof define=="function"&&define.amd?define($):(M=typeof globalThis<"u"?globalThis:M||self).bootstrap=$()})(globalThis,function(){const M=new Map,$={set(i,e,t){M.has(i)||M.set(i,new Map);const n=M.get(i);n.has(e)||n.size===0?n.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,e)=>M.has(i)&&M.get(i).get(e)||null,remove(i,e){if(!M.has(i))return;const t=M.get(i);t.delete(e),t.size===0&&M.delete(i)}},ze="transitionend",Re=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),it=i=>{i.dispatchEvent(new Event(ze))},ne=i=>!(!i||typeof i!="object")&&(i.jquery!==void 0&&(i=i[0]),i.nodeType!==void 0),le=i=>ne(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(Re(i)):null,Ce=i=>{if(!ne(i)||i.getClientRects().length===0)return!1;const e=getComputedStyle(i).getPropertyValue("visibility")==="visible",t=i.closest("details:not([open])");if(!t)return e;if(t!==i){const n=i.closest("summary");if(n&&n.parentNode!==t||n===null)return!1}return e},ce=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(i.disabled!==void 0?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"),mi=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){const e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?mi(i.parentNode):null},nt=()=>{},qe=i=>{i.offsetHeight},gi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,xt=[],R=()=>document.documentElement.dir==="rtl",q=i=>{var e;e=()=>{const t=gi();if(t){const n=i.NAME,s=t.fn[n];t.fn[n]=i.jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=()=>(t.fn[n]=s,i.jQueryInterface)}},document.readyState==="loading"?(xt.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of xt)t()}),xt.push(e)):e()},F=(i,e=[],t=i)=>typeof i=="function"?i(...e):t,_i=(i,e,t=!0)=>{if(!t)return void F(i);const n=(r=>{if(!r)return 0;let{transitionDuration:a,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(a),u=Number.parseFloat(c);return d||u?(a=a.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener(ze,o),F(i))};e.addEventListener(ze,o),setTimeout(()=>{s||it(e)},n)},kt=(i,e,t,n)=>{const s=i.length;let o=i.indexOf(e);return o===-1?!t&&n?i[s-1]:i[0]:(o+=t?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))])},as=/[^.]*(?=\..*)\.|.*/,ls=/\..*/,cs=/::\d+$/,Lt={};let bi=1;const vi={mouseenter:"mouseover",mouseleave:"mouseout"},hs=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 yi(i,e){return e&&`${e}::${bi++}`||i.uidEvent||bi++}function wi(i){const e=yi(i);return i.uidEvent=e,Lt[e]=Lt[e]||{},Lt[e]}function Ai(i,e,t=null){return Object.values(i).find(n=>n.callable===e&&n.delegationSelector===t)}function Ei(i,e,t){const n=typeof e=="string",s=n?t:e||t;let o=Ci(i);return hs.has(o)||(o=i),[n,s,o]}function Ti(i,e,t,n,s){if(typeof e!="string"||!i)return;let[o,r,a]=Ei(e,t,n);e in vi&&(r=(g=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return g.call(this,m)})(r));const c=wi(i),d=c[a]||(c[a]={}),u=Ai(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=yi(r,e.replace(as,"")),b=o?function(p,g,m){return function _(C){const k=p.querySelectorAll(g);for(let{target:y}=C;y&&y!==this;y=y.parentNode)for(const A of k)if(A===y)return Dt(C,{delegateTarget:y}),_.oneOff&&l.off(p,C.type,g,m),m.apply(y,[C])}}(i,t,r):function(p,g){return function m(_){return Dt(_,{delegateTarget:p}),m.oneOff&&l.off(p,_.type,g),g.apply(p,[_])}}(i,r);b.delegationSelector=o?t:null,b.callable=r,b.oneOff=s,b.uidEvent=h,d[h]=b,i.addEventListener(a,b,o)}function St(i,e,t,n,s){const o=Ai(e[t],n,s);o&&(i.removeEventListener(t,o,!!s),delete e[t][o.uidEvent])}function ds(i,e,t,n){const s=e[t]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&St(i,e,t,r.callable,r.delegationSelector)}function Ci(i){return i=i.replace(ls,""),vi[i]||i}const l={on(i,e,t,n){Ti(i,e,t,n,!1)},one(i,e,t,n){Ti(i,e,t,n,!0)},off(i,e,t,n){if(typeof e!="string"||!i)return;const[s,o,r]=Ei(e,t,n),a=r!==e,c=wi(i),d=c[r]||{},u=e.startsWith(".");if(o===void 0){if(u)for(const h of Object.keys(c))ds(i,c,h,e.slice(1));for(const[h,b]of Object.entries(d)){const p=h.replace(cs,"");a&&!e.includes(p)||St(i,c,r,b.callable,b.delegationSelector)}}else{if(!Object.keys(d).length)return;St(i,c,r,o,s?t:null)}},trigger(i,e,t){if(typeof e!="string"||!i)return null;const n=gi();let s=null,o=!0,r=!0,a=!1;e!==Ci(e)&&n&&(s=n.Event(e,t),n(i).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const c=Dt(new Event(e,{bubbles:o,cancelable:!0}),t);return a&&c.preventDefault(),r&&i.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function Dt(i,e={}){for(const[t,n]of Object.entries(e))try{i[t]=n}catch{Object.defineProperty(i,t,{configurable:!0,get:()=>n})}return i}function Oi(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function $t(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const se={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${$t(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${$t(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of t){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=Oi(i.dataset[n])}return e},getDataAttribute:(i,e)=>Oi(i.getAttribute(`data-bs-${$t(e)}`))};class Ve{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(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=ne(t)?se.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...ne(t)?se.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,o]of Object.entries(t)){const r=e[s],a=ne(r)?"element":(n=r)==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${a}" but expected type "${o}".`)}var n}}class Y extends Ve{constructor(e,t){super(),(e=le(e))&&(this._element=e,this._config=this._getConfig(t),$.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){_i(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return $.get(le(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const It=i=>{let e=i.getAttribute("data-bs-target");if(!e||e==="#"){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?Re(t.trim()):null}return e},f={find:(i,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,i)),findOne:(i,e=document.documentElement)=>Element.prototype.querySelector.call(e,i),children:(i,e)=>[].concat(...i.children).filter(t=>t.matches(e)),parents(i,e){const t=[];let n=i.parentNode.closest(e);for(;n;)t.push(n),n=n.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!ce(t)&&Ce(t))},getSelectorFromElement(i){const e=It(i);return e&&f.findOne(e)?e:null},getElementFromSelector(i){const e=It(i);return e?f.findOne(e):null},getMultipleElementsFromSelector(i){const e=It(i);return e?f.find(e):[]}},st=(i,e="hide")=>{const t=`click.dismiss${i.EVENT_KEY}`,n=i.NAME;l.on(document,t,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),ce(this))return;const o=f.getElementFromSelector(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[e]()})},xi=".bs.alert",us=`close${xi}`,fs=`closed${xi}`;class Xe extends Y{static get NAME(){return"alert"}close(){if(l.trigger(this._element,us).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),l.trigger(this._element,fs),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Xe.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}st(Xe,"close"),q(Xe);const ki='[data-bs-toggle="button"]';class Ke extends Y{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Ke.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}l.on(document,"click.bs.button.data-api",ki,i=>{i.preventDefault();const e=i.target.closest(ki);Ke.getOrCreateInstance(e).toggle()}),q(Ke);const Oe=".bs.swipe",ps=`touchstart${Oe}`,ms=`touchmove${Oe}`,gs=`touchend${Oe}`,_s=`pointerdown${Oe}`,bs=`pointerup${Oe}`,vs={endCallback:null,leftCallback:null,rightCallback:null},ys={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ot extends Ve{constructor(e,t){super(),this._element=e,e&&ot.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return vs}static get DefaultType(){return ys}static get NAME(){return"swipe"}dispose(){l.off(this._element,Oe)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),F(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&F(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(l.on(this._element,_s,e=>this._start(e)),l.on(this._element,bs,e=>this._end(e)),this._element.classList.add("pointer-event")):(l.on(this._element,ps,e=>this._start(e)),l.on(this._element,ms,e=>this._move(e)),l.on(this._element,gs,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType==="pen"||e.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const he=".bs.carousel",Li=".data-api",Ue="next",xe="prev",ke="left",rt="right",ws=`slide${he}`,Nt=`slid${he}`,As=`keydown${he}`,Es=`mouseenter${he}`,Ts=`mouseleave${he}`,Cs=`dragstart${he}`,Os=`load${he}${Li}`,xs=`click${he}${Li}`,Si="carousel",at="active",Di=".active",$i=".carousel-item",ks=Di+$i,Ls={ArrowLeft:rt,ArrowRight:ke},Ss={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ds={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Le extends Y{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Si&&this.cycle()}static get Default(){return Ss}static get DefaultType(){return Ds}static get NAME(){return"carousel"}next(){this._slide(Ue)}nextWhenVisible(){!document.hidden&&Ce(this._element)&&this.next()}prev(){this._slide(xe)}pause(){this._isSliding&&it(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?l.one(this._element,Nt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void l.one(this._element,Nt,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e>n?Ue:xe;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&l.on(this._element,As,e=>this._keydown(e)),this._config.pause==="hover"&&(l.on(this._element,Es,()=>this.pause()),l.on(this._element,Ts,()=>this._maybeEnableCycle())),this._config.touch&&ot.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of f.find(".carousel-item img",this._element))l.on(t,Cs,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ke)),rightCallback:()=>this._slide(this._directionToOrder(rt)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ot(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Ls[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=f.findOne(Di,this._indicatorsElement);t.classList.remove(at),t.removeAttribute("aria-current");const n=f.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(at),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),s=e===Ue,o=t||kt(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),a=h=>l.trigger(this._element,h,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(a(ws).defaultPrevented||!n||!o)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?"carousel-item-start":"carousel-item-end",u=s?"carousel-item-next":"carousel-item-prev";o.classList.add(u),qe(o),n.classList.add(d),o.classList.add(d),this._queueCallback(()=>{o.classList.remove(d,u),o.classList.add(at),n.classList.remove(at,u,d),this._isSliding=!1,a(Nt)},n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return f.findOne(ks,this._element)}_getItems(){return f.find($i,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return R()?e===ke?xe:Ue:e===ke?Ue:xe}_orderToDirection(e){return R()?e===xe?ke:rt:e===xe?rt:ke}static jQueryInterface(e){return this.each(function(){const t=Le.getOrCreateInstance(this,e);if(typeof e!="number"){if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}l.on(document,xs,"[data-bs-slide], [data-bs-slide-to]",function(i){const e=f.getElementFromSelector(this);if(!e||!e.classList.contains(Si))return;i.preventDefault();const t=Le.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(t.to(n),void t._maybeEnableCycle()):se.getDataAttribute(this,"slide")==="next"?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),l.on(window,Os,()=>{const i=f.find('[data-bs-ride="carousel"]');for(const e of i)Le.getOrCreateInstance(e)}),q(Le);const Qe=".bs.collapse",$s=`show${Qe}`,Is=`shown${Qe}`,Ns=`hide${Qe}`,Ps=`hidden${Qe}`,js=`click${Qe}.data-api`,Pt="show",Se="collapse",lt="collapsing",Ms=`:scope .${Se} .${Se}`,jt='[data-bs-toggle="collapse"]',Fs={parent:null,toggle:!0},Hs={parent:"(null|element)",toggle:"boolean"};class De extends Y{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=f.find(jt);for(const s of n){const o=f.getSelectorFromElement(s),r=f.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Fs}static get DefaultType(){return Hs}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(s=>s!==this._element).map(s=>De.getOrCreateInstance(s,{toggle:!1}))),e.length&&e[0]._isTransitioning||l.trigger(this._element,$s).defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(Se),this._element.classList.add(lt),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(lt),this._element.classList.add(Se,Pt),this._element.style[t]="",l.trigger(this._element,Is)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,Ns).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qe(this._element),this._element.classList.add(lt),this._element.classList.remove(Se,Pt);for(const t of this._triggerArray){const n=f.getElementFromSelector(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(lt),this._element.classList.add(Se),l.trigger(this._element,Ps)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Pt)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=le(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(jt);for(const t of e){const n=f.getElementFromSelector(t);n&&this._addAriaAndCollapsedClass([t],this._isShown(n))}}_getFirstLevelChildren(e){const t=f.find(Ms,this._config.parent);return f.find(e,this._config.parent).filter(n=>!t.includes(n))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=De.getOrCreateInstance(this,t);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e]()}})}}l.on(document,js,jt,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(const e of f.getMultipleElementsFromSelector(this))De.getOrCreateInstance(e,{toggle:!1}).toggle()}),q(De);var I="top",H="bottom",W="right",N="left",ct="auto",$e=[I,H,W,N],pe="start",Ie="end",Ii="clippingParents",Mt="viewport",Ne="popper",Ni="reference",Ft=$e.reduce(function(i,e){return i.concat([e+"-"+pe,e+"-"+Ie])},[]),Ht=[].concat($e,[ct]).reduce(function(i,e){return i.concat([e,e+"-"+pe,e+"-"+Ie])},[]),Pi="beforeRead",ji="read",Mi="afterRead",Fi="beforeMain",Hi="main",Wi="afterMain",Bi="beforeWrite",zi="write",Ri="afterWrite",qi=[Pi,ji,Mi,Fi,Hi,Wi,Bi,zi,Ri];function Z(i){return i?(i.nodeName||"").toLowerCase():null}function B(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function me(i){return i instanceof B(i).Element||i instanceof Element}function V(i){return i instanceof B(i).HTMLElement||i instanceof HTMLElement}function Wt(i){return typeof ShadowRoot<"u"&&(i instanceof B(i).ShadowRoot||i instanceof ShadowRoot)}const Bt={name:"applyStyles",enabled:!0,phase:"write",fn:function(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];V(o)&&Z(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})},effect:function(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(function(a,c){return a[c]="",a},{});V(s)&&Z(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(a){s.removeAttribute(a)}))})}},requires:["computeStyles"]};function ee(i){return i.split("-")[0]}var ge=Math.max,ht=Math.min,Pe=Math.round;function zt(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Vi(){return!/^((?!chrome|android).)*safari/i.test(zt())}function je(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=i.getBoundingClientRect(),s=1,o=1;e&&V(i)&&(s=i.offsetWidth>0&&Pe(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&Pe(n.height)/i.offsetHeight||1);var r=(me(i)?B(i):window).visualViewport,a=!Vi()&&t,c=(n.left+(a&&r?r.offsetLeft:0))/s,d=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,h=n.height/o;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function Rt(i){var e=je(i),t=i.offsetWidth,n=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:n}}function Xi(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&Wt(t)){var n=e;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function oe(i){return B(i).getComputedStyle(i)}function Ws(i){return["table","td","th"].indexOf(Z(i))>=0}function de(i){return((me(i)?i.ownerDocument:i.document)||window.document).documentElement}function dt(i){return Z(i)==="html"?i:i.assignedSlot||i.parentNode||(Wt(i)?i.host:null)||de(i)}function Ki(i){return V(i)&&oe(i).position!=="fixed"?i.offsetParent:null}function Ye(i){for(var e=B(i),t=Ki(i);t&&Ws(t)&&oe(t).position==="static";)t=Ki(t);return t&&(Z(t)==="html"||Z(t)==="body"&&oe(t).position==="static")?e:t||function(n){var s=/firefox/i.test(zt());if(/Trident/i.test(zt())&&V(n)&&oe(n).position==="fixed")return null;var o=dt(n);for(Wt(o)&&(o=o.host);V(o)&&["html","body"].indexOf(Z(o))<0;){var r=oe(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||s&&r.willChange==="filter"||s&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}(i)||e}function qt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Ge(i,e,t){return ge(i,ht(e,t))}function Ui(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function Qi(i,e){return e.reduce(function(t,n){return t[n]=i,t},{})}const Yi={name:"arrow",enabled:!0,phase:"main",fn:function(i){var e,t=i.state,n=i.name,s=i.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=ee(t.placement),c=qt(a),d=[N,W].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(O,T){return Ui(typeof(O=typeof O=="function"?O(Object.assign({},T.rects,{placement:T.placement})):O)!="number"?O:Qi(O,$e))}(s.padding,t),h=Rt(o),b=c==="y"?I:N,p=c==="y"?H:W,g=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],m=r[c]-t.rects.reference[c],_=Ye(o),C=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,k=g/2-m/2,y=u[b],A=C-h[d]-u[p],v=C/2-h[d]/2+k,w=Ge(y,v,A),E=c;t.modifiersData[n]=((e={})[E]=w,e.centerOffset=w-v,e)}},effect:function(i){var e=i.state,t=i.options.element,n=t===void 0?"[data-popper-arrow]":t;n!=null&&(typeof n!="string"||(n=e.elements.popper.querySelector(n)))&&Xi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Me(i){return i.split("-")[1]}var Bs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gi(i){var e,t=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,b=r.x,p=b===void 0?0:b,g=r.y,m=g===void 0?0:g,_=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var C=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=N,A=I,v=window;if(d){var w=Ye(t),E="clientHeight",O="clientWidth";w===B(t)&&oe(w=de(t)).position!=="static"&&a==="absolute"&&(E="scrollHeight",O="scrollWidth"),(s===I||(s===N||s===W)&&o===Ie)&&(A=H,m-=(h&&w===v&&v.visualViewport?v.visualViewport.height:w[E])-n.height,m*=c?1:-1),s!==N&&(s!==I&&s!==H||o!==Ie)||(y=W,p-=(h&&w===v&&v.visualViewport?v.visualViewport.width:w[O])-n.width,p*=c?1:-1)}var T,S=Object.assign({position:a},d&&Bs),z=u===!0?function(J,P){var K=J.x,U=J.y,L=P.devicePixelRatio||1;return{x:Pe(K*L)/L||0,y:Pe(U*L)/L||0}}({x:p,y:m},B(t)):{x:p,y:m};return p=z.x,m=z.y,c?Object.assign({},S,((T={})[A]=k?"0":"",T[y]=C?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((e={})[A]=k?m+"px":"",e[y]=C?p+"px":"",e.transform="",e))}const Vt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(i){var e=i.state,t=i.options,n=t.gpuAcceleration,s=n===void 0||n,o=t.adaptive,r=o===void 0||o,a=t.roundOffsets,c=a===void 0||a,d={placement:ee(e.placement),variation:Me(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Gi(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Gi(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ut={passive:!0};const Xt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(i){var e=i.state,t=i.instance,n=i.options,s=n.scroll,o=s===void 0||s,r=n.resize,a=r===void 0||r,c=B(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,ut)}),a&&c.addEventListener("resize",t.update,ut),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,ut)}),a&&c.removeEventListener("resize",t.update,ut)}},data:{}};var zs={left:"right",right:"left",bottom:"top",top:"bottom"};function ft(i){return i.replace(/left|right|bottom|top/g,function(e){return zs[e]})}var Rs={start:"end",end:"start"};function Ji(i){return i.replace(/start|end/g,function(e){return Rs[e]})}function Kt(i){var e=B(i);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ut(i){return je(de(i)).left+Kt(i).scrollLeft}function Qt(i){var e=oe(i),t=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+n)}function Zi(i){return["html","body","#document"].indexOf(Z(i))>=0?i.ownerDocument.body:V(i)&&Qt(i)?i:Zi(dt(i))}function Je(i,e){var t;e===void 0&&(e=[]);var n=Zi(i),s=n===((t=i.ownerDocument)==null?void 0:t.body),o=B(n),r=s?[o].concat(o.visualViewport||[],Qt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Je(dt(r)))}function Yt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function en(i,e,t){return e===Mt?Yt(function(n,s){var o=B(n),r=de(n),a=o.visualViewport,c=r.clientWidth,d=r.clientHeight,u=0,h=0;if(a){c=a.width,d=a.height;var b=Vi();(b||!b&&s==="fixed")&&(u=a.offsetLeft,h=a.offsetTop)}return{width:c,height:d,x:u+Ut(n),y:h}}(i,t)):me(e)?function(n,s){var o=je(n,!1,s==="fixed");return o.top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o}(e,t):Yt(function(n){var s,o=de(n),r=Kt(n),a=(s=n.ownerDocument)==null?void 0:s.body,c=ge(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=ge(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-r.scrollLeft+Ut(n),h=-r.scrollTop;return oe(a||o).direction==="rtl"&&(u+=ge(o.clientWidth,a?a.clientWidth:0)-c),{width:c,height:d,x:u,y:h}}(de(i)))}function tn(i){var e,t=i.reference,n=i.element,s=i.placement,o=s?ee(s):null,r=s?Me(s):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2;switch(o){case I:e={x:a,y:t.y-n.height};break;case H:e={x:a,y:t.y+t.height};break;case W:e={x:t.x+t.width,y:c};break;case N:e={x:t.x-n.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?qt(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case pe:e[d]=e[d]-(t[u]/2-n[u]/2);break;case Ie:e[d]=e[d]+(t[u]/2-n[u]/2)}}return e}function Fe(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=n===void 0?i.placement:n,o=t.strategy,r=o===void 0?i.strategy:o,a=t.boundary,c=a===void 0?Ii:a,d=t.rootBoundary,u=d===void 0?Mt:d,h=t.elementContext,b=h===void 0?Ne:h,p=t.altBoundary,g=p!==void 0&&p,m=t.padding,_=m===void 0?0:m,C=Ui(typeof _!="number"?_:Qi(_,$e)),k=b===Ne?Ni:Ne,y=i.rects.popper,A=i.elements[g?k:b],v=function(P,K,U,L){var te=K==="clippingParents"?function(x){var j=Je(dt(x)),Q=["absolute","fixed"].indexOf(oe(x).position)>=0&&V(x)?Ye(x):x;return me(Q)?j.filter(function(fe){return me(fe)&&Xi(fe,Q)&&Z(fe)!=="body"}):[]}(P):[].concat(K),ie=[].concat(te,[U]),Be=ie[0],D=ie.reduce(function(x,j){var Q=en(P,j,L);return x.top=ge(Q.top,x.top),x.right=ht(Q.right,x.right),x.bottom=ht(Q.bottom,x.bottom),x.left=ge(Q.left,x.left),x},en(P,Be,L));return D.width=D.right-D.left,D.height=D.bottom-D.top,D.x=D.left,D.y=D.top,D}(me(A)?A:A.contextElement||de(i.elements.popper),c,u,r),w=je(i.elements.reference),E=tn({reference:w,element:y,strategy:"absolute",placement:s}),O=Yt(Object.assign({},y,E)),T=b===Ne?O:w,S={top:v.top-T.top+C.top,bottom:T.bottom-v.bottom+C.bottom,left:v.left-T.left+C.left,right:T.right-v.right+C.right},z=i.modifiersData.offset;if(b===Ne&&z){var J=z[s];Object.keys(S).forEach(function(P){var K=[W,H].indexOf(P)>=0?1:-1,U=[I,H].indexOf(P)>=0?"y":"x";S[P]+=J[U]*K})}return S}function qs(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?Ht:c,u=Me(n),h=u?a?Ft:Ft.filter(function(g){return Me(g)===u}):$e,b=h.filter(function(g){return d.indexOf(g)>=0});b.length===0&&(b=h);var p=b.reduce(function(g,m){return g[m]=Fe(i,{placement:m,boundary:s,rootBoundary:o,padding:r})[ee(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}const nn={name:"flip",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name;if(!e.modifiersData[n]._skip){for(var s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r===void 0||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,b=t.altBoundary,p=t.flipVariations,g=p===void 0||p,m=t.allowedAutoPlacements,_=e.options.placement,C=ee(_),k=c||(C!==_&&g?function(x){if(ee(x)===ct)return[];var j=ft(x);return[Ji(x),j,Ji(j)]}(_):[ft(_)]),y=[_].concat(k).reduce(function(x,j){return x.concat(ee(j)===ct?qs(e,{placement:j,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:m}):j)},[]),A=e.rects.reference,v=e.rects.popper,w=new Map,E=!0,O=y[0],T=0;T=0,K=P?"width":"height",U=Fe(e,{placement:S,boundary:u,rootBoundary:h,altBoundary:b,padding:d}),L=P?J?W:N:J?H:I;A[K]>v[K]&&(L=ft(L));var te=ft(L),ie=[];if(o&&ie.push(U[z]<=0),a&&ie.push(U[L]<=0,U[te]<=0),ie.every(function(x){return x})){O=S,E=!1;break}w.set(S,ie)}if(E)for(var Be=function(x){var j=y.find(function(Q){var fe=w.get(Q);if(fe)return fe.slice(0,x).every(function(At){return At})});if(j)return O=j,"break"},D=g?3:1;D>0&&Be(D)!=="break";D--);e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sn(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function on(i){return[I,W,H,N].some(function(e){return i[e]>=0})}const rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(i){var e=i.state,t=i.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Fe(e,{elementContext:"reference"}),a=Fe(e,{altBoundary:!0}),c=sn(r,n),d=sn(a,s,o),u=on(c),h=on(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.offset,o=s===void 0?[0,0]:s,r=Ht.reduce(function(u,h){return u[h]=function(b,p,g){var m=ee(b),_=[N,I].indexOf(m)>=0?-1:1,C=typeof g=="function"?g(Object.assign({},p,{placement:b})):g,k=C[0],y=C[1];return k=k||0,y=(y||0)*_,[N,W].indexOf(m)>=0?{x:y,y:k}:{x:k,y}}(h,e.rects,o),u},{}),a=r[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=r}},Gt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(i){var e=i.state,t=i.name;e.modifiersData[t]=tn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},ln={name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r!==void 0&&r,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,h=t.padding,b=t.tether,p=b===void 0||b,g=t.tetherOffset,m=g===void 0?0:g,_=Fe(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),C=ee(e.placement),k=Me(e.placement),y=!k,A=qt(C),v=A==="x"?"y":"x",w=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,T=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,S=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),z=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,J={x:0,y:0};if(w){if(o){var P,K=A==="y"?I:N,U=A==="y"?H:W,L=A==="y"?"height":"width",te=w[A],ie=te+_[K],Be=te-_[U],D=p?-O[L]/2:0,x=k===pe?E[L]:O[L],j=k===pe?-O[L]:-E[L],Q=e.elements.arrow,fe=p&&Q?Rt(Q):{width:0,height:0},At=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Un=At[K],Qn=At[U],Et=Ge(0,E[L],fe[L]),yr=y?E[L]/2-D-Et-Un-S.mainAxis:x-Et-Un-S.mainAxis,wr=y?-E[L]/2+D+Et+Qn+S.mainAxis:j+Et+Qn+S.mainAxis,hi=e.elements.arrow&&Ye(e.elements.arrow),Ar=hi?A==="y"?hi.clientTop||0:hi.clientLeft||0:0,Yn=(P=z==null?void 0:z[A])!=null?P:0,Er=te+wr-Yn,Gn=Ge(p?ht(ie,te+yr-Yn-Ar):ie,te,p?ge(Be,Er):Be);w[A]=Gn,J[A]=Gn-te}if(a){var Jn,Tr=A==="x"?I:N,Cr=A==="x"?H:W,Te=w[v],Tt=v==="y"?"height":"width",Zn=Te+_[Tr],es=Te-_[Cr],di=[I,N].indexOf(C)!==-1,ts=(Jn=z==null?void 0:z[v])!=null?Jn:0,is=di?Zn:Te-E[Tt]-O[Tt]-ts+S.altAxis,ns=di?Te+E[Tt]+O[Tt]-ts-S.altAxis:es,ss=p&&di?function(Or,xr,ui){var os=Ge(Or,xr,ui);return os>ui?ui:os}(is,Te,ns):Ge(p?is:Zn,Te,p?ns:es);w[v]=ss,J[v]=ss-Te}e.modifiersData[n]=J}},requiresIfExists:["offset"]};function Vs(i,e,t){t===void 0&&(t=!1);var n,s,o=V(e),r=V(e)&&function(h){var b=h.getBoundingClientRect(),p=Pe(b.width)/h.offsetWidth||1,g=Pe(b.height)/h.offsetHeight||1;return p!==1||g!==1}(e),a=de(e),c=je(i,r,t),d={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!t)&&((Z(e)!=="body"||Qt(a))&&(d=(n=e)!==B(n)&&V(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Kt(n)),V(e)?((u=je(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Ut(a))),{x:c.left+d.scrollLeft-u.x,y:c.top+d.scrollTop-u.y,width:c.width,height:c.height}}function Xs(i){var e=new Map,t=new Set,n=[];function s(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(r){if(!t.has(r)){var a=e.get(r);a&&s(a)}}),n.push(o)}return i.forEach(function(o){e.set(o.name,o)}),i.forEach(function(o){t.has(o.name)||s(o)}),n}var cn={placement:"bottom",modifiers:[],strategy:"absolute"};function hn(){for(var i=arguments.length,e=new Array(i),t=0;tNumber.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(se.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...F(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(s=>Ce(s));n.length&&kt(n,t,e===fn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=G.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type==="keyup"&&e.key!=="Tab")return;const t=f.find(to);for(const n of t){const s=G.getInstance(n);if(!s||s._config.autoClose===!1)continue;const o=e.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!r||s._config.autoClose==="outside"&&r||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key==="Tab"||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};e.type==="click"&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key==="Escape",s=[Qs,fn].includes(e.key);if(!s&&!n||t&&!n)return;e.preventDefault();const o=this.matches(be)?this:f.prev(this,be)[0]||f.next(this,be)[0]||f.findOne(be,e.delegateTarget.parentNode),r=G.getOrCreateInstance(o);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}l.on(document,mn,be,G.dataApiKeydownHandler),l.on(document,mn,mt,G.dataApiKeydownHandler),l.on(document,pn,G.clearMenus),l.on(document,eo,G.clearMenus),l.on(document,pn,be,function(i){i.preventDefault(),G.getOrCreateInstance(this).toggle()}),q(G);const gn="backdrop",_n="show",bn=`mousedown.bs.${gn}`,ho={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},uo={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class vn extends Ve{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ho}static get DefaultType(){return uo}static get NAME(){return gn}show(e){if(!this._config.isVisible)return void F(e);this._append();const t=this._getElement();this._config.isAnimated&&qe(t),t.classList.add(_n),this._emulateAnimation(()=>{F(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(_n),this._emulateAnimation(()=>{this.dispose(),F(e)})):F(e)}dispose(){this._isAppended&&(l.off(this._element,bn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=le(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),l.on(e,bn,()=>{F(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){_i(e,this._getElement(),this._config.isAnimated)}}const gt=".bs.focustrap",fo=`focusin${gt}`,po=`keydown.tab${gt}`,yn="backward",mo={autofocus:!0,trapElement:null},go={autofocus:"boolean",trapElement:"element"};class wn extends Ve{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return mo}static get DefaultType(){return go}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,gt),l.on(document,fo,e=>this._handleFocusin(e)),l.on(document,po,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.off(document,gt))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=f.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===yn?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key==="Tab"&&(this._lastTabNavDirection=e.shiftKey?yn:"forward")}}const An=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",En=".sticky-top",_t="padding-right",Tn="margin-right";class ei{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,_t,t=>t+e),this._setElementAttributes(An,_t,t=>t+e),this._setElementAttributes(En,Tn,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_t),this._resetElementAttributes(An,_t),this._resetElementAttributes(En,Tn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,t);const r=window.getComputedStyle(o).getPropertyValue(t);o.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&se.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,n=>{const s=se.getDataAttribute(n,t);s!==null?(se.removeDataAttribute(n,t),n.style.setProperty(t,s)):n.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(ne(e))t(e);else for(const n of f.find(e,this._element))t(n)}}const X=".bs.modal",_o=`hide${X}`,bo=`hidePrevented${X}`,Cn=`hidden${X}`,On=`show${X}`,vo=`shown${X}`,yo=`resize${X}`,wo=`click.dismiss${X}`,Ao=`mousedown.dismiss${X}`,Eo=`keydown.dismiss${X}`,To=`click${X}.data-api`,xn="modal-open",kn="show",ti="modal-static",Co={backdrop:!0,focus:!0,keyboard:!0},Oo={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ve extends Y{constructor(e,t){super(e,t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ei,this._addEventListeners()}static get Default(){return Co}static get DefaultType(){return Oo}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||l.trigger(this._element,On,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(xn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(l.trigger(this._element,_o).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){l.off(window,X),l.off(this._dialog,X),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new vn({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=f.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),qe(this._element),this._element.classList.add(kn),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,l.trigger(this._element,vo,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){l.on(this._element,Eo,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),l.on(window,yo,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),l.on(this._element,Ao,e=>{l.one(this._element,wo,t=>{this._element===e.target&&this._element===t.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(xn),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,Cn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(l.trigger(this._element,bo).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t==="hidden"||this._element.classList.contains(ti)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ti),this._queueCallback(()=>{this._element.classList.remove(ti),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const s=R()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!n&&e){const s=R()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=ve.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e](t)}})}}l.on(document,To,'[data-bs-toggle="modal"]',function(i){const e=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(e,On,n=>{n.defaultPrevented||l.one(e,Cn,()=>{Ce(this)&&this.focus()})});const t=f.findOne(".modal.show");t&&ve.getInstance(t).hide(),ve.getOrCreateInstance(e).toggle(this)}),st(ve),q(ve);const re=".bs.offcanvas",Ln=".data-api",xo=`load${re}${Ln}`,Sn="show",Dn="showing",$n="hiding",In=".offcanvas.show",ko=`show${re}`,Lo=`shown${re}`,So=`hide${re}`,Nn=`hidePrevented${re}`,Pn=`hidden${re}`,Do=`resize${re}`,$o=`click${re}${Ln}`,Io=`keydown.dismiss${re}`,No={backdrop:!0,keyboard:!0,scroll:!1},Po={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ae extends Y{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return No}static get DefaultType(){return Po}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||l.trigger(this._element,ko,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new ei().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Dn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Sn),this._element.classList.remove(Dn),l.trigger(this._element,Lo,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(l.trigger(this._element,So).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($n),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Sn,$n),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ei().reset(),l.trigger(this._element,Pn)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new vn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{this._config.backdrop!=="static"?this.hide():l.trigger(this._element,Nn)}:null})}_initializeFocusTrap(){return new wn({trapElement:this._element})}_addEventListeners(){l.on(this._element,Io,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():l.trigger(this._element,Nn))})}static jQueryInterface(e){return this.each(function(){const t=ae.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}l.on(document,$o,'[data-bs-toggle="offcanvas"]',function(i){const e=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ce(this))return;l.one(e,Pn,()=>{Ce(this)&&this.focus()});const t=f.findOne(In);t&&t!==e&&ae.getInstance(t).hide(),ae.getOrCreateInstance(e).toggle(this)}),l.on(window,xo,()=>{for(const i of f.find(In))ae.getOrCreateInstance(i).show()}),l.on(window,Do,()=>{for(const i of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&ae.getOrCreateInstance(i).hide()}),st(ae),q(ae);const jn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},jo=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Fo=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!jo.has(t)||!!Mo.test(i.nodeValue):e.filter(n=>n instanceof RegExp).some(n=>n.test(t))},Ho={allowList:jn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Wo={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Bo={entry:"(string|element|function|null)",selector:"(string|element)"};class zo extends Ve{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ho}static get DefaultType(){return Wo}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Bo)}_setContent(e,t,n){const s=f.findOne(n,e);s&&((t=this._resolvePossibleFunction(t))?ne(t)?this._putElementInTemplate(le(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,n,s){if(!t.length)return t;if(s&&typeof s=="function")return s(t);const o=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const a of r){const c=a.nodeName.toLowerCase();if(!Object.keys(n).includes(c)){a.remove();continue}const d=[].concat(...a.attributes),u=[].concat(n["*"]||[],n[c]||[]);for(const h of d)Fo(h,u)||a.removeAttribute(h.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return F(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const Ro=new Set(["sanitize","allowList","sanitizeFn"]),ii="fade",bt="show",Mn=".modal",Fn="hide.bs.modal",Ze="hover",ni="focus",qo={AUTO:"auto",TOP:"top",RIGHT:R()?"left":"right",BOTTOM:"bottom",LEFT:R()?"right":"left"},Vo={allowList:jn,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:'',title:"",trigger:"hover focus"},Xo={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 ye extends Y{constructor(e,t){if(dn===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),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 Vo}static get DefaultType(){return Xo}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(Mn),Fn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=l.trigger(this._element,this.constructor.eventName("show")),t=(mi(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),l.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(bt),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))l.on(o,"mouseover",nt);this._queueCallback(()=>{l.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!l.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(bt),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))l.off(e,"mouseover",nt);this._activeTrigger.click=!1,this._activeTrigger[ni]=!1,this._activeTrigger[Ze]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ii,bt),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(s=>{do s+=Math.floor(1e6*Math.random());while(document.getElementById(s));return s})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(ii),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new zo({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ii)}_isShown(){return this.tip&&this.tip.classList.contains(bt)}_createPopper(e){const t=F(this._config.placement,[this,e,this._element]),n=qo[t.toUpperCase()];return Jt(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return F(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...t,...F(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")l.on(this._element,this.constructor.eventName("click"),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(t!=="manual"){const n=t===Ze?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),s=t===Ze?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");l.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?ni:Ze]=!0,r._enter()}),l.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?ni:Ze]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},l.on(this._element.closest(Mn),Fn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),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(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=se.getDataAttributes(this._element);for(const n of Object.keys(t))Ro.has(n)&&delete t[n];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:le(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=ye.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}q(ye);const Ko={...ye.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Uo={...ye.DefaultType,content:"(null|string|element|function)"};class vt extends ye{static get Default(){return Ko}static get DefaultType(){return Uo}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=vt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}q(vt);const si=".bs.scrollspy",Qo=`activate${si}`,Hn=`click${si}`,Yo=`load${si}.data-api`,We="active",oi="[href]",Wn=".nav-link",Go=`${Wn}, .nav-item > ${Wn}, .list-group-item`,Jo={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Zo={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class et extends Y{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Jo}static get DefaultType(){return Zo}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=le(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,Hn),l.on(this._config.target,Hn,oi,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(r),!s)return}else o||a||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=f.find(oi,this._config.target);for(const t of e){if(!t.hash||ce(t))continue;const n=f.findOne(decodeURI(t.hash),this._element);Ce(n)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(We),this._activateParents(e),l.trigger(this._element,Qo,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))f.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(We);else for(const t of f.parents(e,".nav, .list-group"))for(const n of f.prev(t,Go))n.classList.add(We)}_clearActiveClass(e){e.classList.remove(We);const t=f.find(`${oi}.${We}`,e);for(const n of t)n.classList.remove(We)}static jQueryInterface(e){return this.each(function(){const t=et.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(window,Yo,()=>{for(const i of f.find('[data-bs-spy="scroll"]'))et.getOrCreateInstance(i)}),q(et);const we=".bs.tab",er=`hide${we}`,tr=`hidden${we}`,ir=`show${we}`,nr=`shown${we}`,sr=`click${we}`,or=`keydown${we}`,rr=`load${we}`,ar="ArrowLeft",Bn="ArrowRight",lr="ArrowUp",zn="ArrowDown",ri="Home",Rn="End",Ae="active",qn="fade",ai="show",Vn=".dropdown-toggle",li=`:not(${Vn})`,Xn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ci=`.nav-link${li}, .list-group-item${li}, [role="tab"]${li}, ${Xn}`,cr=`.${Ae}[data-bs-toggle="tab"], .${Ae}[data-bs-toggle="pill"], .${Ae}[data-bs-toggle="list"]`;class Ee extends Y{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,or,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?l.trigger(t,er,{relatedTarget:e}):null;l.trigger(e,ir,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ae),this._activate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),l.trigger(e,nr,{relatedTarget:t})):e.classList.add(ai)},e,e.classList.contains(qn)))}_deactivate(e,t){e&&(e.classList.remove(Ae),e.blur(),this._deactivate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),l.trigger(e,tr,{relatedTarget:t})):e.classList.remove(ai)},e,e.classList.contains(qn)))}_keydown(e){if(![ar,Bn,lr,zn,ri,Rn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(s=>!ce(s));let n;if([ri,Rn].includes(e.key))n=t[e.key===ri?0:t.length-1];else{const s=[Bn,zn].includes(e.key);n=kt(t,e.target,s,!0)}n&&(n.focus({preventScroll:!0}),Ee.getOrCreateInstance(n).show())}_getChildren(){return f.find(ci,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=f.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(o,r)=>{const a=f.findOne(o,n);a&&a.classList.toggle(r,t)};s(Vn,Ae),s(".dropdown-menu",ai),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ae)}_getInnerElement(e){return e.matches(ci)?e:f.findOne(ci,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Ee.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(document,sr,Xn,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),ce(this)||Ee.getOrCreateInstance(this).show()}),l.on(window,rr,()=>{for(const i of f.find(cr))Ee.getOrCreateInstance(i)}),q(Ee);const ue=".bs.toast",hr=`mouseover${ue}`,dr=`mouseout${ue}`,ur=`focusin${ue}`,fr=`focusout${ue}`,pr=`hide${ue}`,mr=`hidden${ue}`,gr=`show${ue}`,_r=`shown${ue}`,Kn="hide",yt="show",wt="showing",br={animation:"boolean",autohide:"boolean",delay:"number"},vr={animation:!0,autohide:!0,delay:5e3};class tt extends Y{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return vr}static get DefaultType(){return br}static get NAME(){return"toast"}show(){l.trigger(this._element,gr).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Kn),qe(this._element),this._element.classList.add(yt,wt),this._queueCallback(()=>{this._element.classList.remove(wt),l.trigger(this._element,_r),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(l.trigger(this._element,pr).defaultPrevented||(this._element.classList.add(wt),this._queueCallback(()=>{this._element.classList.add(Kn),this._element.classList.remove(wt,yt),l.trigger(this._element,mr)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(yt),super.dispose()}isShown(){return this._element.classList.contains(yt)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){l.on(this._element,hr,e=>this._onInteraction(e,!0)),l.on(this._element,dr,e=>this._onInteraction(e,!1)),l.on(this._element,ur,e=>this._onInteraction(e,!0)),l.on(this._element,fr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=tt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return st(tt),q(tt),{Alert:Xe,Button:Ke,Carousel:Le,Collapse:De,Dropdown:G,Modal:ve,Offcanvas:ae,Popover:vt,ScrollSpy:et,Tab:Ee,Toast:tt,Tooltip:ye}});window.$=Ot;window.jQuery=Ot;window.bootstrap=Lr;const fi={metaTagName:"identitas-openkab",paramNames:["kode_kabupaten","filter[kode_kabupaten]"]},Ct=Ot(`meta[name="${fi.metaTagName}"]`).attr("content")||"";Ot.ajaxSetup({beforeSend:function(M,$){if(!Ct){console.warn(`Meta tag ${fi.metaTagName} tidak ditemukan`);return}if(!Ct||!/^\d{4}$/.test(Ct)){console.error("Invalid kode_kabupaten format");return}const ze=encodeURIComponent(Ct),Re=fi.paramNames.map(it=>`${it}=${ze}`).join("&");$.url+=$.url.indexOf("?")===-1?`?${Re}`:`&${Re}`}})});export default Sr(); diff --git a/public/build-web/manifest.json b/public/build-web/manifest.json index 137b42591..7687f2e20 100644 --- a/public/build-web/manifest.json +++ b/public/build-web/manifest.json @@ -47,7 +47,7 @@ "src": "node_modules/owl.carousel/dist/assets/owl.video.play.png" }, "resources/js/web.js": { - "file": "assets/web-b4aa1d33.js", + "file": "assets/web-d3aac2a5.js", "imports": [ "_vendor-5c04c9f3.js" ], diff --git a/resources/js/web.js b/resources/js/web.js index 639137972..b2346a00f 100644 --- a/resources/js/web.js +++ b/resources/js/web.js @@ -7,13 +7,33 @@ import { filter } from 'lodash'; window.$ = $; window.jQuery = $; window.bootstrap = bootstrap; + +// Definisikan config di top-level atau import dari config file +const AJAX_PARAMS_CONFIG = { + metaTagName: 'identitas-openkab', + paramNames: ['kode_kabupaten', 'filter[kode_kabupaten]'] +}; +const identitasOpenkab = $(`meta[name="${AJAX_PARAMS_CONFIG.metaTagName}"]`).attr('content') || ''; $.ajaxSetup({ beforeSend: function (xhr, settings) { - const identitasOpenkab = $('meta[name="identitas-openkab"]').attr('content'); - if (settings.url.indexOf('?') === -1) { - settings.url += '?kode_kabupaten=' + identitasOpenkab+'&filter[kode_kabupaten]=' + identitasOpenkab; - } else { - settings.url += '&kode_kabupaten=' + identitasOpenkab+'&filter[kode_kabupaten]=' + identitasOpenkab; + if (!identitasOpenkab) { + console.warn(`Meta tag ${AJAX_PARAMS_CONFIG.metaTagName} tidak ditemukan`); + return; + } + + // Validasi format kode kabupaten (hanya angka, 4-6 digit) + if (!identitasOpenkab || !/^\d{4}$/.test(identitasOpenkab)) { + console.error('Invalid kode_kabupaten format'); + return; // Abort jika tidak valid } + + // Encode value sebelum ditambahkan ke URL + const encodedValue = encodeURIComponent(identitasOpenkab); + + const params = AJAX_PARAMS_CONFIG.paramNames + .map(name => `${name}=${encodedValue}`) + .join('&'); + + settings.url += settings.url.indexOf('?') === -1 ? `?${params}` : `&${params}`; } -}); +}); \ No newline at end of file diff --git a/resources/views/layouts/presisi/partials/javascript.blade.php b/resources/views/layouts/presisi/partials/javascript.blade.php index e2bde0e00..51e189ffd 100644 --- a/resources/views/layouts/presisi/partials/javascript.blade.php +++ b/resources/views/layouts/presisi/partials/javascript.blade.php @@ -26,15 +26,33 @@