Files
ADHA_mobile_project/assets/calcite-list-eca0cd56.js
2024-02-28 17:06:42 +05:00

66 lines
93 KiB
JavaScript

import{bB as Me,bC as Ve,dd as ve,bE as f,bG as oi,bD as si,iS as li,dg as Z,ff as Pt,iR as Wi,fe as Nt,fd as Xi,bF as Yi}from"./index-b5c8f851.js";import{c as wt,d as xt,u as It}from"./interactive-3caa9409.js";import{c as ci}from"./observers-c5d3b3aa.js";import{u as Ki,a as Gi,M as qi}from"./utils3-7b57e505.js";import{s as St,a as Ct,c as Dt}from"./loadable-3ebcbea1.js";import{S as Ht,i as Tt,r as Zi,b as kt,f as Qi,a as Ji,c as ui,d as di}from"./debounce-49101817.js";import{n as W,e as ce,p as en,f as tn,h as nn,u as hi,c as fi,a as pi,d as mi,b as gi,s as bi,B as an,g as ke,j as rn}from"./t9n-0922c59a.js";import{d as At}from"./icon-8ad9147a.js";import{s as on,c as sn,a as ln,d as cn,b as un,g as Mt,H as dn}from"./label2-60192bf8.js";import{d as hn}from"./loader-f61cd56d.js";import{d as fn}from"./scrim-f377044b.js";/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*//**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Vt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,n)}return i}function K(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(i),!0).forEach(function(n){pn(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Vt(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}function Ye(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ye=function(t){return typeof t}:Ye=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(e)}function pn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},J.apply(this,arguments)}function mn(e,t){if(e==null)return{};var i={},n=Object.keys(e),a,r;for(r=0;r<n.length;r++)a=n[r],!(t.indexOf(a)>=0)&&(i[a]=e[a]);return i}function gn(e,t){if(e==null)return{};var i=mn(e,t),n,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var bn="1.15.0";function Q(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ee=Q(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Be=Q(/Edge/i),Bt=Q(/firefox/i),Le=Q(/safari/i)&&!Q(/chrome/i)&&!Q(/android/i),vi=Q(/iP(ad|od|hone)/i),yi=Q(/chrome/i)&&Q(/android/i),Ei={capture:!1,passive:!1};function E(e,t,i){e.addEventListener(t,i,!ee&&Ei)}function y(e,t,i){e.removeEventListener(t,i,!ee&&Ei)}function Qe(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function vn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function X(e,t,i,n){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Qe(e,t):Qe(e,t))||n&&e===i)return e;if(e===i)break}while(e=vn(e))}return null}var jt=/\s+/g;function H(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(jt," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(jt," ")}}function p(e,t,i){var n=e&&e.style;if(n){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=i+(typeof i=="string"?"":"px")}}function we(e,t){var i="";if(typeof e=="string")i=e;else do{var n=p(e,"transform");n&&n!=="none"&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(i)}function wi(e,t,i){if(e){var n=e.getElementsByTagName(t),a=0,r=n.length;if(i)for(;a<r;a++)i(n[a],a);return n}return[]}function Y(){var e=document.scrollingElement;return e||document.documentElement}function k(e,t,i,n,a){if(!(!e.getBoundingClientRect&&e!==window)){var r,o,l,s,c,h,d;if(e!==window&&e.parentNode&&e!==Y()?(r=e.getBoundingClientRect(),o=r.top,l=r.left,s=r.bottom,c=r.right,h=r.height,d=r.width):(o=0,l=0,s=window.innerHeight,c=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(t||i)&&e!==window&&(a=a||e.parentNode,!ee))do if(a&&a.getBoundingClientRect&&(p(a,"transform")!=="none"||i&&p(a,"position")!=="static")){var b=a.getBoundingClientRect();o-=b.top+parseInt(p(a,"border-top-width")),l-=b.left+parseInt(p(a,"border-left-width")),s=o+r.height,c=l+r.width;break}while(a=a.parentNode);if(n&&e!==window){var x=we(a||e),v=x&&x.a,w=x&&x.d;x&&(o/=w,l/=v,d/=v,h/=w,s=o+h,c=l+d)}return{top:o,left:l,bottom:s,right:c,width:d,height:h}}}function Rt(e,t,i){for(var n=re(e,!0),a=k(e)[t];n;){var r=k(n)[i],o=void 0;if(i==="top"||i==="left"?o=a>=r:o=a<=r,!o)return n;if(n===Y())break;n=re(n,!1)}return!1}function xe(e,t,i,n){for(var a=0,r=0,o=e.children;r<o.length;){if(o[r].style.display!=="none"&&o[r]!==m.ghost&&(n||o[r]!==m.dragged)&&X(o[r],i.draggable,e,!1)){if(a===t)return o[r];a++}r++}return null}function _t(e,t){for(var i=e.lastElementChild;i&&(i===m.ghost||p(i,"display")==="none"||t&&!Qe(i,t));)i=i.previousElementSibling;return i||null}function B(e,t){var i=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==m.clone&&(!t||Qe(e,t))&&i++;return i}function Ut(e){var t=0,i=0,n=Y();if(e)do{var a=we(e),r=a.a,o=a.d;t+=e.scrollLeft*r,i+=e.scrollTop*o}while(e!==n&&(e=e.parentNode));return[t,i]}function yn(e,t){for(var i in e)if(e.hasOwnProperty(i)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i)}return-1}function re(e,t){if(!e||!e.getBoundingClientRect)return Y();var i=e,n=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var a=p(i);if(i.clientWidth<i.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Y();if(n||t)return i;n=!0}}while(i=i.parentNode);return Y()}function En(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function ot(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Fe;function xi(e,t){return function(){if(!Fe){var i=arguments,n=this;i.length===1?e.call(n,i[0]):e.apply(n,i),Fe=setTimeout(function(){Fe=void 0},t)}}}function wn(){clearTimeout(Fe),Fe=void 0}function Ii(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Si(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}var V="Sortable"+new Date().getTime();function xn(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(a){if(!(p(a,"display")==="none"||a===m.ghost)){e.push({target:a,rect:k(a)});var r=K({},e[e.length-1].rect);if(a.thisAnimationDuration){var o=we(a,!0);o&&(r.top-=o.f,r.left-=o.e)}a.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(yn(e,{target:n}),1)},animateAll:function(n){var a=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,o=0;e.forEach(function(l){var s=0,c=l.target,h=c.fromRect,d=k(c),b=c.prevFromRect,x=c.prevToRect,v=l.rect,w=we(c,!0);w&&(d.top-=w.f,d.left-=w.e),c.toRect=d,c.thisAnimationDuration&&ot(b,d)&&!ot(h,d)&&(v.top-d.top)/(v.left-d.left)===(h.top-d.top)/(h.left-d.left)&&(s=Sn(v,b,x,a.options)),ot(d,h)||(c.prevFromRect=h,c.prevToRect=d,s||(s=a.options.animation),a.animate(c,v,d,s)),s&&(r=!0,o=Math.max(o,s),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},s),c.thisAnimationDuration=s)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,a,r,o){if(o){p(n,"transition",""),p(n,"transform","");var l=we(this.el),s=l&&l.a,c=l&&l.d,h=(a.left-r.left)/(s||1),d=(a.top-r.top)/(c||1);n.animatingX=!!h,n.animatingY=!!d,p(n,"transform","translate3d("+h+"px,"+d+"px,0)"),this.forRepaintDummy=In(n),p(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),p(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){p(n,"transition",""),p(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function In(e){return e.offsetWidth}function Sn(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var pe=[],st={initializeByDefault:!0},je={mount:function(t){for(var i in st)st.hasOwnProperty(i)&&!(i in t)&&(t[i]=st[i]);pe.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),pe.push(t)},pluginEvent:function(t,i,n){var a=this;this.eventCanceled=!1,n.cancel=function(){a.eventCanceled=!0};var r=t+"Global";pe.forEach(function(o){i[o.pluginName]&&(i[o.pluginName][r]&&i[o.pluginName][r](K({sortable:i},n)),i.options[o.pluginName]&&i[o.pluginName][t]&&i[o.pluginName][t](K({sortable:i},n)))})},initializePlugins:function(t,i,n,a){pe.forEach(function(l){var s=l.pluginName;if(!(!t.options[s]&&!l.initializeByDefault)){var c=new l(t,i,t.options);c.sortable=t,c.options=t.options,t[s]=c,J(n,c.defaults)}});for(var r in t.options)if(t.options.hasOwnProperty(r)){var o=this.modifyOption(t,r,t.options[r]);typeof o<"u"&&(t.options[r]=o)}},getEventProperties:function(t,i){var n={};return pe.forEach(function(a){typeof a.eventProperties=="function"&&J(n,a.eventProperties.call(i[a.pluginName],t))}),n},modifyOption:function(t,i,n){var a;return pe.forEach(function(r){t[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[i]=="function"&&(a=r.optionListeners[i].call(t[r.pluginName],n))}),a}};function Cn(e){var t=e.sortable,i=e.rootEl,n=e.name,a=e.targetEl,r=e.cloneEl,o=e.toEl,l=e.fromEl,s=e.oldIndex,c=e.newIndex,h=e.oldDraggableIndex,d=e.newDraggableIndex,b=e.originalEvent,x=e.putSortable,v=e.extraEventProperties;if(t=t||i&&i[V],!!t){var w,j=t.options,G="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ee&&!Be?w=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(n,!0,!0)),w.to=o||i,w.from=l||i,w.item=a||i,w.clone=r,w.oldIndex=s,w.newIndex=c,w.oldDraggableIndex=h,w.newDraggableIndex=d,w.originalEvent=b,w.pullMode=x?x.lastPutMode:void 0;var L=K(K({},v),je.getEventProperties(n,t));for(var R in L)w[R]=L[R];i&&i.dispatchEvent(w),j[G]&&j[G].call(t,w)}}var Dn=["evt"],z=function(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,r=gn(n,Dn);je.pluginEvent.bind(m)(t,i,K({dragEl:u,parentEl:D,ghostEl:g,rootEl:S,nextEl:fe,lastDownEl:Ke,cloneEl:C,cloneHidden:ae,dragStarted:Ae,putSortable:A,activeSortable:m.active,originalEvent:a,oldIndex:ye,oldDraggableIndex:ze,newIndex:M,newDraggableIndex:ne,hideGhostForTarget:ki,unhideGhostForTarget:Ai,cloneNowHidden:function(){ae=!0},cloneNowShown:function(){ae=!1},dispatchSortableEvent:function(l){F({sortable:i,name:l,originalEvent:a})}},r))};function F(e){Cn(K({putSortable:A,cloneEl:C,targetEl:u,rootEl:S,oldIndex:ye,oldDraggableIndex:ze,newIndex:M,newDraggableIndex:ne},e))}var u,D,g,S,fe,Ke,C,ae,ye,M,ze,ne,Ue,A,be=!1,Je=!1,et=[],ue,U,lt,ct,$t,Wt,Ae,me,Pe,Ne=!1,$e=!1,Ge,_,ut=[],gt=!1,tt=[],nt=typeof document<"u",We=vi,Xt=Be||ee?"cssFloat":"float",Tn=nt&&!yi&&!vi&&"draggable"in document.createElement("div"),Ci=function(){if(nt){if(ee)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Di=function(t,i){var n=p(t),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=xe(t,0,i),o=xe(t,1,i),l=r&&p(r),s=o&&p(o),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+k(r).width,h=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+k(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||c>=a&&n[Xt]==="none"||o&&n[Xt]==="none"&&c+h>a)?"vertical":"horizontal"},kn=function(t,i,n){var a=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,l=n?i.left:i.top,s=n?i.right:i.bottom,c=n?i.width:i.height;return a===l||r===s||a+o/2===l+c/2},An=function(t,i){var n;return et.some(function(a){var r=a[V].options.emptyInsertThreshold;if(!(!r||_t(a))){var o=k(a),l=t>=o.left-r&&t<=o.right+r,s=i>=o.top-r&&i<=o.bottom+r;if(l&&s)return n=a}}),n},Ti=function(t){function i(r,o){return function(l,s,c,h){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return i(r(l,s,c,h),o)(l,s,c,h);var b=(o?l:s).options.group.name;return r===!0||typeof r=="string"&&r===b||r.join&&r.indexOf(b)>-1}}var n={},a=t.group;(!a||Ye(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=i(a.pull,!0),n.checkPut=i(a.put),n.revertClone=a.revertClone,t.group=n},ki=function(){!Ci&&g&&p(g,"display","none")},Ai=function(){!Ci&&g&&p(g,"display","")};nt&&!yi&&document.addEventListener("click",function(e){if(Je)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Je=!1,!1},!0);var de=function(t){if(u){t=t.touches?t.touches[0]:t;var i=An(t.clientX,t.clientY);if(i){var n={};for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a]);n.target=n.rootEl=i,n.preventDefault=void 0,n.stopPropagation=void 0,i[V]._onDragOver(n)}}},_n=function(t){u&&u.parentNode[V]._isOutsideThisEl(t.target)};function m(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=J({},t),e[V]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Di(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,l){o.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:m.supportPointer!==!1&&"PointerEvent"in window&&!Le,emptyInsertThreshold:5};je.initializePlugins(this,e,i);for(var n in i)!(n in t)&&(t[n]=i[n]);Ti(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:Tn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?E(e,"pointerdown",this._onTapStart):(E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),et.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),J(this,xn())}m.prototype={constructor:m,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(me=null)},_getDirection:function(t,i){return typeof this.options.direction=="function"?this.options.direction.call(this,t,i,u):this.options.direction},_onTapStart:function(t){if(t.cancelable){var i=this,n=this.el,a=this.options,r=a.preventOnFilter,o=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,h=a.filter;if(Mn(n),!u&&!(/mousedown|pointerdown/.test(o)&&t.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Le&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=X(s,a.draggable,n,!1),!(s&&s.animated)&&Ke!==s)){if(ye=B(s),ze=B(s,a.draggable),typeof h=="function"){if(h.call(this,t,s,this)){F({sortable:i,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),z("filter",i,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(h&&(h=h.split(",").some(function(d){if(d=X(c,d.trim(),n,!1),d)return F({sortable:i,rootEl:d,name:"filter",targetEl:s,fromEl:n,toEl:n}),z("filter",i,{evt:t}),!0}),h)){r&&t.cancelable&&t.preventDefault();return}a.handle&&!X(c,a.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,i,n){var a=this,r=a.el,o=a.options,l=r.ownerDocument,s;if(n&&!u&&n.parentNode===r){var c=k(n);if(S=r,u=n,D=u.parentNode,fe=u.nextSibling,Ke=n,Ue=o.group,m.dragged=u,ue={target:u,clientX:(i||t).clientX,clientY:(i||t).clientY},$t=ue.clientX-c.left,Wt=ue.clientY-c.top,this._lastX=(i||t).clientX,this._lastY=(i||t).clientY,u.style["will-change"]="all",s=function(){if(z("delayEnded",a,{evt:t}),m.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Bt&&a.nativeDraggable&&(u.draggable=!0),a._triggerDragStart(t,i),F({sortable:a,name:"choose",originalEvent:t}),H(u,o.chosenClass,!0)},o.ignore.split(",").forEach(function(h){wi(u,h.trim(),dt)}),E(l,"dragover",de),E(l,"mousemove",de),E(l,"touchmove",de),E(l,"mouseup",a._onDrop),E(l,"touchend",a._onDrop),E(l,"touchcancel",a._onDrop),Bt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,u.draggable=!0),z("delayStart",this,{evt:t}),o.delay&&(!o.delayOnTouchOnly||i)&&(!this.nativeDraggable||!(Be||ee))){if(m.eventCanceled){this._onDrop();return}E(l,"mouseup",a._disableDelayedDrag),E(l,"touchend",a._disableDelayedDrag),E(l,"touchcancel",a._disableDelayedDrag),E(l,"mousemove",a._delayedDragTouchMoveHandler),E(l,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&E(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var i=t.touches?t.touches[0]:t;Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){u&&dt(u),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._disableDelayedDrag),y(t,"touchend",this._disableDelayedDrag),y(t,"touchcancel",this._disableDelayedDrag),y(t,"mousemove",this._delayedDragTouchMoveHandler),y(t,"touchmove",this._delayedDragTouchMoveHandler),y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,i){i=i||t.pointerType=="touch"&&t,!this.nativeDraggable||i?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):i?E(document,"touchmove",this._onTouchMove):E(document,"mousemove",this._onTouchMove):(E(u,"dragend",this),E(S,"dragstart",this._onDragStart));try{document.selection?qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,i){if(be=!1,S&&u){z("dragStarted",this,{evt:i}),this.nativeDraggable&&E(document,"dragover",_n);var n=this.options;!t&&H(u,n.dragClass,!1),H(u,n.ghostClass,!0),m.active=this,t&&this._appendGhost(),F({sortable:this,name:"start",originalEvent:i})}else this._nulling()},_emulateDragOver:function(){if(U){this._lastX=U.clientX,this._lastY=U.clientY,ki();for(var t=document.elementFromPoint(U.clientX,U.clientY),i=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(U.clientX,U.clientY),t!==i);)i=t;if(u.parentNode[V]._isOutsideThisEl(t),i)do{if(i[V]){var n=void 0;if(n=i[V]._onDragOver({clientX:U.clientX,clientY:U.clientY,target:t,rootEl:i}),n&&!this.options.dragoverBubble)break}t=i}while(i=i.parentNode);Ai()}},_onTouchMove:function(t){if(ue){var i=this.options,n=i.fallbackTolerance,a=i.fallbackOffset,r=t.touches?t.touches[0]:t,o=g&&we(g,!0),l=g&&o&&o.a,s=g&&o&&o.d,c=We&&_&&Ut(_),h=(r.clientX-ue.clientX+a.x)/(l||1)+(c?c[0]-ut[0]:0)/(l||1),d=(r.clientY-ue.clientY+a.y)/(s||1)+(c?c[1]-ut[1]:0)/(s||1);if(!m.active&&!be){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(g){o?(o.e+=h-(lt||0),o.f+=d-(ct||0)):o={a:1,b:0,c:0,d:1,e:h,f:d};var b="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");p(g,"webkitTransform",b),p(g,"mozTransform",b),p(g,"msTransform",b),p(g,"transform",b),lt=h,ct=d,U=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!g){var t=this.options.fallbackOnBody?document.body:S,i=k(u,!0,We,!0,t),n=this.options;if(We){for(_=t;p(_,"position")==="static"&&p(_,"transform")==="none"&&_!==document;)_=_.parentNode;_!==document.body&&_!==document.documentElement?(_===document&&(_=Y()),i.top+=_.scrollTop,i.left+=_.scrollLeft):_=Y(),ut=Ut(_)}g=u.cloneNode(!0),H(g,n.ghostClass,!1),H(g,n.fallbackClass,!0),H(g,n.dragClass,!0),p(g,"transition",""),p(g,"transform",""),p(g,"box-sizing","border-box"),p(g,"margin",0),p(g,"top",i.top),p(g,"left",i.left),p(g,"width",i.width),p(g,"height",i.height),p(g,"opacity","0.8"),p(g,"position",We?"absolute":"fixed"),p(g,"zIndex","100000"),p(g,"pointerEvents","none"),m.ghost=g,t.appendChild(g),p(g,"transform-origin",$t/parseInt(g.style.width)*100+"% "+Wt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(t,i){var n=this,a=t.dataTransfer,r=n.options;if(z("dragStart",this,{evt:t}),m.eventCanceled){this._onDrop();return}z("setupClone",this),m.eventCanceled||(C=Si(u),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),H(C,this.options.chosenClass,!1),m.clone=C),n.cloneId=qe(function(){z("clone",n),!m.eventCanceled&&(n.options.removeCloneOnHide||S.insertBefore(C,u),n._hideClone(),F({sortable:n,name:"clone"}))}),!i&&H(u,r.dragClass,!0),i?(Je=!0,n._loopId=setInterval(n._emulateDragOver,50)):(y(document,"mouseup",n._onDrop),y(document,"touchend",n._onDrop),y(document,"touchcancel",n._onDrop),a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,u)),E(document,"drop",n),p(u,"transform","translateZ(0)")),be=!0,n._dragStartId=qe(n._dragStarted.bind(n,i,t)),E(document,"selectstart",n),Ae=!0,Le&&p(document.body,"user-select","none")},_onDragOver:function(t){var i=this.el,n=t.target,a,r,o,l=this.options,s=l.group,c=m.active,h=Ue===s,d=l.sort,b=A||c,x,v=this,w=!1;if(gt)return;function j(Te,Ui){z(Te,v,K({evt:t,isOwner:h,axis:x?"vertical":"horizontal",revert:o,dragRect:a,targetRect:r,canSort:d,fromSortable:b,target:n,completed:L,onMove:function(zt,$i){return Xe(S,i,u,a,zt,k(zt),t,$i)},changed:R},Ui))}function G(){j("dragOverAnimationCapture"),v.captureAnimationState(),v!==b&&b.captureAnimationState()}function L(Te){return j("dragOverCompleted",{insertion:Te}),Te&&(h?c._hideClone():c._showClone(v),v!==b&&(H(u,A?A.options.ghostClass:c.options.ghostClass,!1),H(u,l.ghostClass,!0)),A!==v&&v!==m.active?A=v:v===m.active&&A&&(A=null),b===v&&(v._ignoreWhileAnimating=n),v.animateAll(function(){j("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==b&&(b.animateAll(),b._ignoreWhileAnimating=null)),(n===u&&!u.animated||n===i&&!n.animated)&&(me=null),!l.dragoverBubble&&!t.rootEl&&n!==document&&(u.parentNode[V]._isOutsideThisEl(t.target),!Te&&de(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),w=!0}function R(){M=B(u),ne=B(u,l.draggable),F({sortable:v,name:"change",toEl:i,newIndex:M,newDraggableIndex:ne,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=X(n,l.draggable,i,!0),j("dragOver"),m.eventCanceled)return w;if(u.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||v._ignoreWhileAnimating===n)return L(!1);if(Je=!1,c&&!l.disabled&&(h?d||(o=D!==S):A===this||(this.lastPutMode=Ue.checkPull(this,c,u,t))&&s.checkPut(this,c,u,t))){if(x=this._getDirection(t,n)==="vertical",a=k(u),j("dragOverValid"),m.eventCanceled)return w;if(o)return D=S,G(),this._hideClone(),j("revert"),m.eventCanceled||(fe?S.insertBefore(u,fe):S.appendChild(u)),L(!0);var P=_t(i,l.draggable);if(!P||zn(t,x,this)&&!P.animated){if(P===u)return L(!1);if(P&&i===t.target&&(n=P),n&&(r=k(n)),Xe(S,i,u,a,n,r,t,!!n)!==!1)return G(),P&&P.nextSibling?i.insertBefore(u,P.nextSibling):i.appendChild(u),D=i,R(),L(!0)}else if(P&&Fn(t,x,this)){var oe=xe(i,0,l,!0);if(oe===u)return L(!1);if(n=oe,r=k(n),Xe(S,i,u,a,n,r,t,!1)!==!1)return G(),i.insertBefore(u,oe),D=i,R(),L(!0)}else if(n.parentNode===i){r=k(n);var $=0,se,Ie=u.parentNode!==i,N=!kn(u.animated&&u.toRect||a,n.animated&&n.toRect||r,x),Se=x?"top":"left",te=Rt(n,"top","top")||Rt(u,"top","top"),Ce=te?te.scrollTop:void 0;me!==n&&(se=r[Se],Ne=!1,$e=!N&&l.invertSwap||Ie),$=Pn(t,n,r,x,N?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,$e,me===n);var q;if($!==0){var le=B(u);do le-=$,q=D.children[le];while(q&&(p(q,"display")==="none"||q===g))}if($===0||q===n)return L(!1);me=n,Pe=$;var De=n.nextElementSibling,ie=!1;ie=$===1;var Re=Xe(S,i,u,a,n,r,t,ie);if(Re!==!1)return(Re===1||Re===-1)&&(ie=Re===1),gt=!0,setTimeout(Ln,30),G(),ie&&!De?i.appendChild(u):n.parentNode.insertBefore(u,ie?De:n),te&&Ii(te,0,Ce-te.scrollTop),D=u.parentNode,se!==void 0&&!$e&&(Ge=Math.abs(se-k(n)[Se])),R(),L(!0)}if(i.contains(u))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",de),y(document,"mousemove",de),y(document,"touchmove",de)},_offUpEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._onDrop),y(t,"touchend",this._onDrop),y(t,"pointerup",this._onDrop),y(t,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(t){var i=this.el,n=this.options;if(M=B(u),ne=B(u,n.draggable),z("drop",this,{evt:t}),D=u&&u.parentNode,M=B(u),ne=B(u,n.draggable),m.eventCanceled){this._nulling();return}be=!1,$e=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),bt(this.cloneId),bt(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(i,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Le&&p(document.body,"user-select",""),p(u,"transform",""),t&&(Ae&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(S===D||A&&A.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),u&&(this.nativeDraggable&&y(u,"dragend",this),dt(u),u.style["will-change"]="",Ae&&!be&&H(u,A?A.options.ghostClass:this.options.ghostClass,!1),H(u,this.options.chosenClass,!1),F({sortable:this,name:"unchoose",toEl:D,newIndex:null,newDraggableIndex:null,originalEvent:t}),S!==D?(M>=0&&(F({rootEl:D,name:"add",toEl:D,fromEl:S,originalEvent:t}),F({sortable:this,name:"remove",toEl:D,originalEvent:t}),F({rootEl:D,name:"sort",toEl:D,fromEl:S,originalEvent:t}),F({sortable:this,name:"sort",toEl:D,originalEvent:t})),A&&A.save()):M!==ye&&M>=0&&(F({sortable:this,name:"update",toEl:D,originalEvent:t}),F({sortable:this,name:"sort",toEl:D,originalEvent:t})),m.active&&((M==null||M===-1)&&(M=ye,ne=ze),F({sortable:this,name:"end",toEl:D,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){z("nulling",this),S=u=D=g=fe=C=Ke=ae=ue=U=Ae=M=ne=ye=ze=me=Pe=A=Ue=m.dragged=m.ghost=m.clone=m.active=null,tt.forEach(function(t){t.checked=!0}),tt.length=lt=ct=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":u&&(this._onDragOver(t),On(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],i,n=this.el.children,a=0,r=n.length,o=this.options;a<r;a++)i=n[a],X(i,o.draggable,this.el,!1)&&t.push(i.getAttribute(o.dataIdAttr)||Hn(i));return t},sort:function(t,i){var n={},a=this.el;this.toArray().forEach(function(r,o){var l=a.children[o];X(l,this.options.draggable,a,!1)&&(n[r]=l)},this),i&&this.captureAnimationState(),t.forEach(function(r){n[r]&&(a.removeChild(n[r]),a.appendChild(n[r]))}),i&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,i){return X(t,i||this.options.draggable,this.el,!1)},option:function(t,i){var n=this.options;if(i===void 0)return n[t];var a=je.modifyOption(this,t,i);typeof a<"u"?n[t]=a:n[t]=i,t==="group"&&Ti(n)},destroy:function(){z("destroy",this);var t=this.el;t[V]=null,y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart),y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(i){i.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),et.splice(et.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ae){if(z("hideClone",this),m.eventCanceled)return;p(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),ae=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ae){if(z("showClone",this),m.eventCanceled)return;u.parentNode==S&&!this.options.group.revertClone?S.insertBefore(C,u):fe?S.insertBefore(C,fe):S.appendChild(C),this.options.group.revertClone&&this.animate(u,C),p(C,"display",""),ae=!1}}};function On(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Xe(e,t,i,n,a,r,o,l){var s,c=e[V],h=c.options.onMove,d;return window.CustomEvent&&!ee&&!Be?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=i,s.draggedRect=n,s.related=a||t,s.relatedRect=r||k(t),s.willInsertAfter=l,s.originalEvent=o,e.dispatchEvent(s),h&&(d=h.call(c,s,o)),d}function dt(e){e.draggable=!1}function Ln(){gt=!1}function Fn(e,t,i){var n=k(xe(i.el,0,i.options,!0)),a=10;return t?e.clientX<n.left-a||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-a||e.clientY<n.bottom&&e.clientX<n.left}function zn(e,t,i){var n=k(_t(i.el,i.options.draggable)),a=10;return t?e.clientX>n.right+a||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+a}function Pn(e,t,i,n,a,r,o,l){var s=n?e.clientY:e.clientX,c=n?i.height:i.width,h=n?i.top:i.left,d=n?i.bottom:i.right,b=!1;if(!o){if(l&&Ge<c*a){if(!Ne&&(Pe===1?s>h+c*r/2:s<d-c*r/2)&&(Ne=!0),Ne)b=!0;else if(Pe===1?s<h+Ge:s>d-Ge)return-Pe}else if(s>h+c*(1-a)/2&&s<d-c*(1-a)/2)return Nn(t)}return b=b||o,b&&(s<h+c*r/2||s>d-c*r/2)?s>h+c/2?1:-1:0}function Nn(e){return B(u)<B(e)?1:-1}function Hn(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;i--;)n+=t.charCodeAt(i);return n.toString(36)}function Mn(e){tt.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var n=t[i];n.checked&&tt.push(n)}}function qe(e){return setTimeout(e,0)}function bt(e){return clearTimeout(e)}nt&&E(document,"touchmove",function(e){(m.active||be)&&e.cancelable&&e.preventDefault()});m.utils={on:E,off:y,css:p,find:wi,is:function(t,i){return!!X(t,i,t,!1)},extend:En,throttle:xi,closest:X,toggleClass:H,clone:Si,index:B,nextTick:qe,cancelNextTick:bt,detectDirection:Di,getChild:xe};m.get=function(e){return e[V]};m.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(m.utils=K(K({},m.utils),n.utils)),je.mount(n)})};m.create=function(e,t){return new m(e,t)};m.version=bn;var T=[],_e,vt,yt=!1,ht,ft,it,Oe;function Vn(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(i){var n=i.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):n.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(i){var n=i.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),Yt(),Ze(),wn()},nulling:function(){it=vt=_e=yt=Oe=ht=ft=null,T.length=0},_handleFallbackAutoScroll:function(i){this._handleAutoScroll(i,!0)},_handleAutoScroll:function(i,n){var a=this,r=(i.touches?i.touches[0]:i).clientX,o=(i.touches?i.touches[0]:i).clientY,l=document.elementFromPoint(r,o);if(it=i,n||this.options.forceAutoScrollFallback||Be||ee||Le){pt(i,this.options,l,n);var s=re(l,!0);yt&&(!Oe||r!==ht||o!==ft)&&(Oe&&Yt(),Oe=setInterval(function(){var c=re(document.elementFromPoint(r,o),!0);c!==s&&(s=c,Ze()),pt(i,a.options,c,n)},10),ht=r,ft=o)}else{if(!this.options.bubbleScroll||re(l,!0)===Y()){Ze();return}pt(i,this.options,re(l,!1),!1)}}},J(e,{pluginName:"scroll",initializeByDefault:!0})}function Ze(){T.forEach(function(e){clearInterval(e.pid)}),T=[]}function Yt(){clearInterval(Oe)}var pt=xi(function(e,t,i,n){if(t.scroll){var a=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,l=t.scrollSpeed,s=Y(),c=!1,h;vt!==i&&(vt=i,Ze(),_e=t.scroll,h=t.scrollFn,_e===!0&&(_e=re(i,!0)));var d=0,b=_e;do{var x=b,v=k(x),w=v.top,j=v.bottom,G=v.left,L=v.right,R=v.width,P=v.height,oe=void 0,$=void 0,se=x.scrollWidth,Ie=x.scrollHeight,N=p(x),Se=x.scrollLeft,te=x.scrollTop;x===s?(oe=R<se&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),$=P<Ie&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(oe=R<se&&(N.overflowX==="auto"||N.overflowX==="scroll"),$=P<Ie&&(N.overflowY==="auto"||N.overflowY==="scroll"));var Ce=oe&&(Math.abs(L-a)<=o&&Se+R<se)-(Math.abs(G-a)<=o&&!!Se),q=$&&(Math.abs(j-r)<=o&&te+P<Ie)-(Math.abs(w-r)<=o&&!!te);if(!T[d])for(var le=0;le<=d;le++)T[le]||(T[le]={});(T[d].vx!=Ce||T[d].vy!=q||T[d].el!==x)&&(T[d].el=x,T[d].vx=Ce,T[d].vy=q,clearInterval(T[d].pid),(Ce!=0||q!=0)&&(c=!0,T[d].pid=setInterval((function(){n&&this.layer===0&&m.active._onTouchMove(it);var De=T[this.layer].vy?T[this.layer].vy*l:0,ie=T[this.layer].vx?T[this.layer].vx*l:0;typeof h=="function"&&h.call(m.dragged.parentNode[V],ie,De,e,it,T[this.layer].el)!=="continue"||Ii(T[this.layer].el,ie,De)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&b!==s&&(b=re(b,!1)));yt=c}},30),_i=function(t){var i=t.originalEvent,n=t.putSortable,a=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,l=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(i){var c=n||r;l();var h=i.changedTouches&&i.changedTouches.length?i.changedTouches[0]:i,d=document.elementFromPoint(h.clientX,h.clientY);s(),c&&!c.el.contains(d)&&(o("spill"),this.onSpill({dragEl:a,putSortable:n}))}};function Ot(){}Ot.prototype={startIndex:null,dragStart:function(t){var i=t.oldDraggableIndex;this.startIndex=i},onSpill:function(t){var i=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var a=xe(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(i,a):this.sortable.el.appendChild(i),this.sortable.animateAll(),n&&n.animateAll()},drop:_i};J(Ot,{pluginName:"revertOnSpill"});function Lt(){}Lt.prototype={onSpill:function(t){var i=t.dragEl,n=t.putSortable,a=n||this.sortable;a.captureAnimationState(),i.parentNode&&i.parentNode.removeChild(i),a.animateAll()},drop:_i};J(Lt,{pluginName:"removeOnSpill"});m.mount(new Vn);m.mount(Lt,Ot);const at=new Set,Bn={ghostClass:"calcite-sortable--ghost",chosenClass:"calcite-sortable--chosen",dragClass:"calcite-sortable--drag"};function jn(e){Oi(e),at.add(e);const t="id",{group:i,handleSelector:n,dragSelector:a}=e;e.sortable=m.create(e.el,{dataIdAttr:t,...Bn,...!!a&&{draggable:a},...!!i&&{group:{name:i,...!!e.canPull&&{pull:(r,o,l,{newIndex:s,oldIndex:c})=>e.canPull({toEl:r.el,fromEl:o.el,dragEl:l,newIndex:s,oldIndex:c})},...!!e.canPut&&{put:(r,o,l,{newIndex:s,oldIndex:c})=>e.canPut({toEl:r.el,fromEl:o.el,dragEl:l,newIndex:s,oldIndex:c})}}},handle:n,onStart:()=>{Et.active=!0,Rn()},onEnd:()=>{Et.active=!1,Un()},onSort:({from:r,item:o,to:l,newIndex:s,oldIndex:c})=>{e.onDragSort({fromEl:r,dragEl:o,toEl:l,newIndex:s,oldIndex:c})}})}function Oi(e){var t;at.delete(e),(t=e.sortable)==null||t.destroy(),e.sortable=null}const Et={active:!1};function Kt(e){return e.dragEnabled&&Et.active}function Rn(){Array.from(at).forEach(e=>e.onDragStart())}function Un(){Array.from(at).forEach(e=>e.onDragEnd())}/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const ge={container:"container",actionsStart:"actions-start",contentStart:"content-start",content:"content",contentEnd:"content-end",actionsEnd:"actions-end"},Ee={actionsStart:"actions-start",contentStart:"content-start",contentEnd:"content-end",actionsEnd:"actions-end"},$n=":host([disabled]) .content{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .content *,:host([disabled]) .content ::slotted(*){pointer-events:none}:host{display:flex;flex:1 1 0%;flex-direction:column}.container{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}.content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:flex;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){margin-inline:0.75rem;align-self:center}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-handle),.actions-end ::slotted(calcite-dropdown){align-self:stretch;color:inherit}:host([hidden]){display:none}[hidden]{display:none}",Wn=Me(class extends Ve{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleActionsStartSlotChange=e=>{this.hasActionsStart=ve(e)},this.handleActionsEndSlotChange=e=>{this.hasActionsEnd=ve(e)},this.handleContentStartSlotChange=e=>{this.hasContentStart=ve(e)},this.handleContentEndSlotChange=e=>{this.hasContentEnd=ve(e)},this.disabled=!1,this.hasActionsStart=!1,this.hasActionsEnd=!1,this.hasContentStart=!1,this.hasContentEnd=!1}renderActionsStart(){const{hasActionsStart:e}=this;return f("div",{class:ge.actionsStart,hidden:!e,key:"actions-start-container"},f("slot",{name:Ee.actionsStart,onSlotchange:this.handleActionsStartSlotChange}))}renderActionsEnd(){const{hasActionsEnd:e}=this;return f("div",{class:ge.actionsEnd,hidden:!e,key:"actions-end-container"},f("slot",{name:Ee.actionsEnd,onSlotchange:this.handleActionsEndSlotChange}))}renderContentStart(){const{hasContentStart:e}=this;return f("div",{class:ge.contentStart,hidden:!e},f("slot",{name:Ee.contentStart,onSlotchange:this.handleContentStartSlotChange}))}renderDefaultContent(){return f("div",{class:ge.content},f("slot",null))}renderContentEnd(){const{hasContentEnd:e}=this;return f("div",{class:ge.contentEnd,hidden:!e},f("slot",{name:Ee.contentEnd,onSlotchange:this.handleContentEndSlotChange}))}render(){return f(oi,null,f("div",{class:ge.container},this.renderActionsStart(),this.renderContentStart(),this.renderDefaultContent(),this.renderContentEnd(),this.renderActionsEnd()))}static get style(){return $n}},[1,"calcite-stack",{disabled:[516],hasActionsStart:[32],hasActionsEnd:[32],hasContentStart:[32],hasContentEnd:[32]}]);function Li(){if(typeof customElements>"u")return;["calcite-stack"].forEach(t=>{switch(t){case"calcite-stack":customElements.get(t)||customElements.define(t,Wn);break}})}Li();/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/function Xn(e,t){for(var i=-1,n=e==null?0:e.length,a=Array(n);++i<n;)a[i]=t(e[i],i,e);return a}var Fi=Array.isArray,Yn=1/0,Gt=Ht?Ht.prototype:void 0,qt=Gt?Gt.toString:void 0;function zi(e){if(typeof e=="string")return e;if(Fi(e))return Xn(e,zi)+"";if(Ji(e))return qt?qt.call(e):"";var t=e+"";return t=="0"&&1/e==-Yn?"-0":t}function Kn(e){return e}var Gn="[object AsyncFunction]",qn="[object Function]",Zn="[object GeneratorFunction]",Qn="[object Proxy]";function Jn(e){if(!ui(e))return!1;var t=kt(e);return t==qn||t==Zn||t==Gn||t==Qn}var ea=9007199254740991,ta=/^(?:0|[1-9]\d*)$/;function ia(e,t){var i=typeof e;return t=t??ea,!!t&&(i=="number"||i!="symbol"&&ta.test(e))&&e>-1&&e%1==0&&e<t}var na=9007199254740991;function Pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=na}function aa(e){return e!=null&&Pi(e.length)&&!Jn(e)}var ra=Object.prototype;function oa(e){var t=e&&e.constructor,i=typeof t=="function"&&t.prototype||ra;return e===i}function sa(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}var la="[object Arguments]";function Zt(e){return Tt(e)&&kt(e)==la}var Ni=Object.prototype,ca=Ni.hasOwnProperty,ua=Ni.propertyIsEnumerable,da=Zt(function(){return arguments}())?Zt:function(e){return Tt(e)&&ca.call(e,"callee")&&!ua.call(e,"callee")};function ha(){return!1}var Hi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qt=Hi&&typeof module=="object"&&module&&!module.nodeType&&module,fa=Qt&&Qt.exports===Hi,Jt=fa?Zi.Buffer:void 0,pa=Jt?Jt.isBuffer:void 0,ma=pa||ha,ga="[object Arguments]",ba="[object Array]",va="[object Boolean]",ya="[object Date]",Ea="[object Error]",wa="[object Function]",xa="[object Map]",Ia="[object Number]",Sa="[object Object]",Ca="[object RegExp]",Da="[object Set]",Ta="[object String]",ka="[object WeakMap]",Aa="[object ArrayBuffer]",_a="[object DataView]",Oa="[object Float32Array]",La="[object Float64Array]",Fa="[object Int8Array]",za="[object Int16Array]",Pa="[object Int32Array]",Na="[object Uint8Array]",Ha="[object Uint8ClampedArray]",Ma="[object Uint16Array]",Va="[object Uint32Array]",I={};I[Oa]=I[La]=I[Fa]=I[za]=I[Pa]=I[Na]=I[Ha]=I[Ma]=I[Va]=!0;I[ga]=I[ba]=I[Aa]=I[va]=I[_a]=I[ya]=I[Ea]=I[wa]=I[xa]=I[Ia]=I[Sa]=I[Ca]=I[Da]=I[Ta]=I[ka]=!1;function Ba(e){return Tt(e)&&Pi(e.length)&&!!I[kt(e)]}function ja(e){return function(t){return e(t)}}var Mi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,He=Mi&&typeof module=="object"&&module&&!module.nodeType&&module,Ra=He&&He.exports===Mi,mt=Ra&&Qi.process,ei=function(){try{var e=He&&He.require&&He.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch{}}(),ti=ei&&ei.isTypedArray,Ua=ti?ja(ti):Ba,$a=Object.prototype,Wa=$a.hasOwnProperty;function Xa(e,t){var i=Fi(e),n=!i&&da(e),a=!i&&!n&&ma(e),r=!i&&!n&&!a&&Ua(e),o=i||n||a||r,l=o?sa(e.length,String):[],s=l.length;for(var c in e)(t||Wa.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||r&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ia(c,s)))&&l.push(c);return l}function Ya(e){var t=[];if(e!=null)for(var i in Object(e))t.push(i);return t}var Ka=Object.prototype,Ga=Ka.hasOwnProperty;function qa(e){if(!ui(e))return Ya(e);var t=oa(e),i=[];for(var n in e)n=="constructor"&&(t||!Ga.call(e,n))||i.push(n);return i}function Za(e){return aa(e)?Xa(e,!0):qa(e)}function Qa(e){return e==null?"":zi(e)}function Ja(e){return function(t,i,n){for(var a=-1,r=Object(t),o=n(t),l=o.length;l--;){var s=o[e?l:++a];if(i(r[s],s,r)===!1)break}return t}}var er=Ja();function tr(e){return typeof e=="function"?e:Kn}var Vi=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Vi.source);function nr(e){return e=Qa(e),e&&ir.test(e)?e.replace(Vi,"\\$&"):e}function ar(e,t){return e==null?e:er(e,tr(t),Za)}const ii=(e,t)=>{const i=nr(t),n=new RegExp(i,"i");e.length===0&&console.warn(`No data was passed to the filter function.
The data argument should be an array of objects`);const a=(o,l)=>{if(o!=null&&o.constant||o!=null&&o.filterDisabled)return!0;let s=!1;return ar(o,c=>{typeof c=="function"||c==null||(Array.isArray(c)||typeof c=="object"&&c!==null?a(c,l)&&(s=!0):l.test(c)&&(s=!0))}),s};return e.filter(o=>a(o,n))};/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const rr=":host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-app-z-index);inline-size:100%;overflow:hidden;background:var(--calcite-ui-border-3)}.bar{z-index:var(--calcite-app-z-index);background-color:var(--calcite-ui-brand)}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(-600%, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}",or=Me(class extends Ve{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.value=0,this.label=void 0,this.text=void 0,this.reversed=!1}render(){const t=this.type==="determinate"?{width:`${this.value*100}%`}:{},i=si(this.el);return f("div",{"aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},f("div",{class:"track"},f("div",{class:{bar:!0,indeterminate:this.type==="indeterminate",[li.rtl]:i==="rtl",reversed:this.reversed},style:t})),this.text?f("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return rr}},[1,"calcite-progress",{type:[513],value:[2],label:[1],text:[1],reversed:[516]}]);function rt(){if(typeof customElements>"u")return;["calcite-progress"].forEach(t=>{switch(t){case"calcite-progress":customElements.get(t)||customElements.define(t,or);break}})}rt();/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const O={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"},ni={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},sr={action:"action"},lr=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}textarea,input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-ui-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1)}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input,textarea{text-overflow:ellipsis;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);color:var(--calcite-ui-text-1)}input:placeholder-shown,textarea:placeholder-shown{text-overflow:ellipsis}input:focus,textarea:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-1)}input[readonly],textarea[readonly]{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-ui-text-1)}calcite-icon{color:var(--calcite-ui-text-3)}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(
-2px *
calc(
1 -
2 * clamp(
0,
var(--calcite-ui-focus-offset-invert),
1
)
)
)}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-ui-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-ui-danger);outline-offset:calc(
-2px *
calc(
1 -
2 * clamp(
0,
var(--calcite-ui-focus-offset-invert),
1
)
)
)}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.icon,.resize-icon-wrapper{z-index:var(--calcite-app-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-ui-foreground-2);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:hover calcite-icon{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.clear-button:active{background-color:var(--calcite-ui-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-ui-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(
-2px *
calc(
1 -
2 * clamp(
0,
var(--calcite-ui-focus-offset-invert),
1
)
)
)}.clear-button:disabled{opacity:var(--calcite-ui-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-ui-text-2)}.prefix{order:2;border-inline-end-width:0px}.suffix{order:5;border-inline-start-width:0px}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-ui-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-ui-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-ui-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-ui-text-1)}.number-button-item:active{background-color:var(--calcite-ui-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:input::-webkit-calendar-picker-indicator{display:none}input[type=date]::-webkit-input-placeholder{visibility:hidden !important}textarea::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:0.5rem}:host([type=file][scale=m]) input{padding-block:0.25rem;padding-inline:0.75rem}:host([type=file][scale=l]) input{padding-block:0.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-ui-border-1)}input.inline-child{background-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}`,cr=Me(class extends Ve{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalInputFocus=Z(this,"calciteInternalInputFocus",6),this.calciteInternalInputBlur=Z(this,"calciteInternalInputBlur",6),this.calciteInputInput=Z(this,"calciteInputInput",7),this.calciteInputChange=Z(this,"calciteInputChange",6),this.childElType="input",this.previousValueOrigin="initial",this.mutationObserver=ci("mutation",()=>this.setDisabledAction()),this.userChangedValue=!1,this.keyDownHandler=e=>{this.readOnly||this.disabled||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&!e.defaultPrevented&&on(this)&&e.preventDefault())},this.clearInputValue=e=>{this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputBlurHandler=()=>{this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=e=>{if(this.disabled)return;const t=Pt(this.el,"action");e.target!==t&&this.setFocus()},this.inputFocusHandler=()=>{this.calciteInternalInputFocus.emit()},this.inputChangeHandler=()=>{this.type==="file"&&(this.files=this.childEl.files)},this.inputInputHandler=e=>{this.disabled||this.readOnly||this.setValue({nativeEvent:e,origin:"user",value:e.target.value})},this.inputKeyDownHandler=e=>{this.disabled||this.readOnly||e.key==="Enter"&&this.emitChangeIfUserModified()},this.inputNumberInputHandler=e=>{if(this.disabled||this.readOnly)return;const t=e.target.value;W.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};const i=W.delocalize(t);e.inputType==="insertFromPaste"?(ce(i)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:en(i)}),this.childNumberEl.value=this.localizedValue):this.setValue({nativeEvent:e,origin:"user",value:i})},this.inputNumberKeyDownHandler=e=>{if(this.type!=="number"||this.disabled||this.readOnly)return;if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){this.nudgeNumberValue("down",e);return}const t=[...rn,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&e.key==="Tab";if(t.includes(e.key)||i){e.key==="Enter"&&this.emitChangeIfUserModified();return}W.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===W.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(W.decimal)===-1))&&(/[eE]/.test(e.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||e.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault())},this.nudgeNumberValue=(e,t)=>{if(t instanceof KeyboardEvent&&t.repeat||this.type!=="number")return;const i=this.maxString?parseFloat(this.maxString):null,n=this.minString?parseFloat(this.minString):null,a=150;this.incrementOrDecrementNumberValue(e,i,n,t),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let r=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(r){r=!1;return}this.incrementOrDecrementNumberValue(e,i,n,t)},a)},this.numberButtonPointerUpAndOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonPointerDownHandler=e=>{if(!Wi(e))return;e.preventDefault();const t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)},this.hiddenInputChangeHandler=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),e.stopPropagation()},this.setChildElRef=e=>{this.childEl=e},this.setChildNumberElRef=e=>{this.childNumberEl=e},this.setInputValue=e=>{this.type==="text"&&!this.childEl||this.type==="number"&&!this.childNumberEl||(this[`child${this.type==="number"?"Number":""}El`].value=e)},this.setPreviousEmittedValue=e=>{this.previousEmittedValue=this.normalizeValue(e)},this.setPreviousValue=e=>{this.previousValue=this.normalizeValue(e)},this.setValue=({committing:e=!1,nativeEvent:t,origin:i,previousValue:n,value:a})=>{var r,o;if(this.setPreviousValue(n??this.value),this.previousValueOrigin=i,this.type==="number"){W.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};const l=((r=this.previousValue)==null?void 0:r.length)>a.length||((o=this.value)==null?void 0:o.length)>a.length,s=a.charAt(a.length-1)===".",c=s&&l?a:tn(a),h=a&&!c?ce(this.previousValue)?this.previousValue:"":c;let d=W.localize(h);i!=="connected"&&!s&&(d=nn(d,h,W)),this.localizedValue=s&&l?`${d}${W.decimal}`:d,this.userChangedValue=i==="user"&&this.value!==h,this.value=["-","."].includes(h)?"":h}else this.userChangedValue=i==="user"&&this.value!==a,this.value=a;i==="direct"&&(this.setInputValue(a),this.previousEmittedValue=a),t&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.localizedValue=this.type==="number"?W.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())},this.inputKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=!1,this.clearable=!1,this.disabled=!1,this.form=void 0,this.groupSeparator=!1,this.hidden=!1,this.icon=void 0,this.iconFlipRtl=!1,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.pattern=void 0,this.accept=void 0,this.multiple=!1,this.inputMode="text",this.enterKeyHint=void 0,this.suffixText=void 0,this.editingEnabled=!1,this.type="text",this.value="",this.files=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.localizedValue=void 0,this.slottedActionElDisabledInternally=!1}disabledWatcher(){this.setDisabledAction()}maxWatcher(){var e;this.maxString=((e=this.max)==null?void 0:e.toString())||null}minWatcher(){var e;this.minString=((e=this.min)==null?void 0:e.toString())||null}onMessagesChange(){}valueWatcher(e,t){this.userChangedValue||(this.setValue({origin:"direct",previousValue:t,value:e==null||e==""?"":this.type==="number"?ce(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)),this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=Nt(ni,this.icon,this.type)}get isClearable(){var e;return!this.isTextarea&&(this.clearable||this.type==="search")&&((e=this.value)==null?void 0:e.length)>0}get isTextarea(){return this.childElType==="textarea"}effectiveLocaleChange(){hi(this,this.effectiveLocale)}connectedCallback(){var e;wt(this),fi(this),pi(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),sn(this),ln(this),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:ce(this.value)?this.value:""})),(e=this.mutationObserver)==null||e.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}disconnectedCallback(){var e;xt(this),cn(this),un(this),mi(this),gi(this),(e=this.mutationObserver)==null||e.disconnect(),this.el.removeEventListener("calciteInternalHiddenInputChange",this.hiddenInputChangeHandler)}async componentWillLoad(){var e,t;St(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=(e=this.max)==null?void 0:e.toString(),this.minString=(t=this.min)==null?void 0:t.toString(),this.requestedIcon=Nt(ni,this.icon,this.type),await bi(this)}componentDidLoad(){Ct(this)}componentShouldUpdate(e,t,i){return this.type==="number"&&i==="value"&&e&&!ce(e)?(this.setValue({origin:"reset",value:t}),!1):!0}componentDidRender(){It(this)}async setFocus(){var e,t;await Dt(this),this.type==="number"?(e=this.childNumberEl)==null||e.focus():(t=this.childEl)==null||t.focus()}async selectText(){var e,t;this.type==="number"?(e=this.childNumberEl)==null||e.select():(t=this.childEl)==null||t.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,n){const{value:a}=this,r=e==="up"?1:-1,o=this.step==="any"?1:Math.abs(this.step||1),s=new an(a!==""?a:"0").add(`${o*r}`),c=()=>typeof i=="number"&&!isNaN(i)&&s.subtract(`${i}`).isNegative,h=()=>typeof t=="number"&&!isNaN(t)&&!s.subtract(`${t}`).isNegative,d=c()?`${i}`:h()?`${t}`:s.toString();this.setValue({committing:!0,nativeEvent:n,origin:"user",value:d})}onFormReset(){this.setValue({origin:"reset",value:this.defaultValue})}syncHiddenFormInput(e){var i,n;const{type:t}=this;e.type=t,t==="number"?(e.min=((i=this.min)==null?void 0:i.toString(10))??"",e.max=((n=this.max)==null?void 0:n.toString(10))??""):t==="text"&&(this.minLength!=null&&(e.minLength=this.minLength),this.maxLength!=null&&(e.maxLength=this.maxLength))}setDisabledAction(){const e=Pt(this.el,"action");e&&(this.disabled?(e.getAttribute("disabled")==null&&(this.slottedActionElDisabledInternally=!0),e.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(e.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(e){return this.type==="number"?ce(e)?e:"":e}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!ce(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){const e=si(this.el),t=f("div",{class:O.loader},f("calcite-progress",{label:this.messages.loading,type:"indeterminate"})),i=f("button",{"aria-label":this.messages.clear,class:O.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},f("calcite-icon",{icon:"x",scale:ke(this.scale)})),n=f("calcite-icon",{class:O.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:ke(this.scale)}),a=this.numberButtonType==="horizontal",r=f("button",{"aria-hidden":"true",class:{[O.numberButtonItem]:!0,[O.buttonItemHorizontal]:a},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},f("calcite-icon",{icon:"chevron-up",scale:ke(this.scale)})),o=f("button",{"aria-hidden":"true",class:{[O.numberButtonItem]:!0,[O.buttonItemHorizontal]:a},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},f("calcite-icon",{icon:"chevron-down",scale:ke(this.scale)})),l=f("div",{class:O.numberButtonWrapper},r,o),s=f("div",{class:O.prefix},this.prefixText),c=f("div",{class:O.suffix},this.suffixText),h=this.type==="number"?f("input",{accept:this.accept,"aria-label":Mt(this),autocomplete:this.autocomplete,autofocus:this.autofocus?!0:null,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:this.enterKeyHint,inputMode:this.inputMode,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,multiple:this.multiple,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,type:"text",value:this.localizedValue,ref:this.setChildNumberElRef}):null,d=this.type!=="number"?[f(this.childElType,{accept:this.accept,"aria-label":Mt(this),autocomplete:this.autocomplete,autofocus:this.autofocus?!0:null,class:{[O.editingEnabled]:this.editingEnabled,[O.inlineChild]:!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:this.enterKeyHint,inputMode:this.inputMode,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,multiple:this.multiple,name:this.name,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,required:this.required?!0:null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value,ref:this.setChildElRef}),this.isTextarea?f("div",{class:O.resizeIconWrapper},f("calcite-icon",{icon:"chevron-down",scale:ke(this.scale)})):null]:null;return f(oi,{onClick:this.clickHandler,onKeyDown:this.keyDownHandler},f("div",{class:{[O.inputWrapper]:!0,[li.rtl]:e==="rtl"}},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?o:null,this.prefixText?s:null,f("div",{class:O.wrapper},h,d,this.isClearable?i:null,this.requestedIcon?n:null,this.loading?t:null),f("div",{class:O.actionWrapper},f("slot",{name:sr.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?l:null,this.suffixText?c:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?r:null,f(dn,{component:this})))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return lr}},[1,"calcite-input",{alignment:[513],autofocus:[516],clearable:[516],disabled:[516],form:[513],groupSeparator:[516,"group-separator"],hidden:[516],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],label:[1],loading:[516],numberingSystem:[513,"numbering-system"],localeFormat:[4,"locale-format"],max:[514],min:[514],maxLength:[514,"max-length"],minLength:[514,"min-length"],name:[513],numberButtonType:[513,"number-button-type"],placeholder:[1],prefixText:[1,"prefix-text"],readOnly:[516,"read-only"],required:[516],scale:[513],status:[513],step:[520],autocomplete:[1],pattern:[1],accept:[1],multiple:[4],inputMode:[1,"input-mode"],enterKeyHint:[1,"enter-key-hint"],suffixText:[1,"suffix-text"],editingEnabled:[1540,"editing-enabled"],type:[513],value:[1025],files:[16],messages:[1040],messageOverrides:[1040],defaultMessages:[32],effectiveLocale:[32],localizedValue:[32],slottedActionElDisabledInternally:[32],setFocus:[64],selectText:[64]}]);function Ft(){if(typeof customElements>"u")return;["calcite-input","calcite-icon","calcite-progress"].forEach(t=>{switch(t){case"calcite-input":customElements.get(t)||customElements.define(t,cr);break;case"calcite-icon":customElements.get(t)||At();break;case"calcite-progress":customElements.get(t)||rt();break}})}Ft();/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const ur={container:"container",searchIcon:"search-icon"},dr={search:"search",close:"x"},hr=250,fr=":host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{display:flex;inline-size:100%;padding:0.5rem}label{position:relative;margin-inline:0.25rem;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:0.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:0.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);padding-inline-end:0.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing), box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-ui-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing), inset-inline-end var(--calcite-animation-timing), opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-ui-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:0.25rem}input[type=text]:focus~.search-icon{inset-inline-start:calc(1rem * -1);opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-ui-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-ui-text-1)}:host([hidden]){display:none}[hidden]{display:none}",pr=Me(class extends Ve{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteFilterChange=Z(this,"calciteFilterChange",6),this.filterDebounced=di((e,t=!1,i)=>this.updateFiltered(ii(this.items,e),t,i),hr),this.inputHandler=e=>{const t=e.target;this.value=t.value,this.filterDebounced(t.value,!0)},this.keyDownHandler=e=>{e.key==="Escape"&&(this.clear(),e.preventDefault()),e.key==="Enter"&&e.preventDefault()},this.clear=()=>{this.value="",this.filterDebounced("",!0),this.setFocus()},this.items=[],this.disabled=!1,this.filteredItems=[],this.placeholder=void 0,this.scale="m",this.value="",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}watchItemsHandler(){this.filterDebounced(this.value)}onMessagesChange(){}valueHandler(e){this.filterDebounced(e)}effectiveLocaleChange(){hi(this,this.effectiveLocale)}async componentWillLoad(){St(this),this.updateFiltered(ii(this.items,this.value)),await bi(this)}connectedCallback(){wt(this),fi(this),pi(this)}componentDidRender(){It(this)}disconnectedCallback(){xt(this),mi(this),gi(this),this.filterDebounced.cancel()}componentDidLoad(){Ct(this)}async filter(e=this.value){return new Promise(t=>{this.value=e,this.filterDebounced(e,!1,t)})}async setFocus(){var e;await Dt(this),(e=this.el)==null||e.focus()}updateFiltered(e,t=!1,i){this.filteredItems=e,t&&this.calciteFilterChange.emit(),i==null||i()}render(){const{disabled:e,scale:t}=this;return f(Xi,null,f("div",{class:ur.container},f("label",null,f("calcite-input",{clearable:!0,disabled:e,icon:dr.search,label:this.messages.label,messageOverrides:{clear:this.messages.clear},onCalciteInputInput:this.inputHandler,onKeyDown:this.keyDownHandler,placeholder:this.placeholder,scale:t,type:"text",value:this.value,ref:i=>{this.textInput=i}}))))}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{items:["watchItemsHandler"],messageOverrides:["onMessagesChange"],value:["valueHandler"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return fr}},[17,"calcite-filter",{items:[16],disabled:[516],filteredItems:[1040],placeholder:[1],scale:[513],value:[1025],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],filter:[64],setFocus:[64]}]);function Bi(){if(typeof customElements>"u")return;["calcite-filter","calcite-icon","calcite-input","calcite-progress"].forEach(t=>{switch(t){case"calcite-filter":customElements.get(t)||customElements.define(t,pr);break;case"calcite-icon":customElements.get(t)||At();break;case"calcite-input":customElements.get(t)||Ft();break;case"calcite-progress":customElements.get(t)||rt();break}})}Bi();/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
* v1.11.0
*/const he={container:"container",table:"table",scrim:"scrim",stack:"stack",tableContainer:"table-container",sticky:"sticky-pos",assistiveText:"assistive-text"},mr=0,ai={filterActionsStart:"filter-actions-start",filterActionsEnd:"filter-actions-end"},gr=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.container{position:relative}.table-container{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}.table-container *{box-sizing:border-box}.table{inline-size:100%;border-collapse:collapse}.stack{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}::slotted(calcite-list-item){--tw-shadow:0 -1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}::slotted(calcite-list-item:first-of-type){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item[data-filter]){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}.sticky-pos{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky);background-color:var(--calcite-ui-foreground-1)}.sticky-pos th{padding:0px}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}",ri="calcite-list-item",br=":scope > calcite-list-item",vr="calcite-list-item-group, calcite-list-item",ji=Me(class extends Ve{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteListChange=Z(this,"calciteListChange",6),this.calciteListFilter=Z(this,"calciteListFilter",6),this.calciteListOrderChange=Z(this,"calciteListOrderChange",6),this.calciteInternalListDefaultSlotChange=Z(this,"calciteInternalListDefaultSlotChange",6),this.dragSelector="calcite-list-item",this.enabledListItems=[],this.handleSelector="calcite-handle",this.listItems=[],this.mutationObserver=ci("mutation",()=>this.updateListItems()),this.handleDefaultSlotChange=e=>{Ki(Gi(e.target)),this.parentListEl&&this.calciteInternalListDefaultSlotChange.emit()},this.handleFilterActionsStartSlotChange=e=>{this.hasFilterActionsStart=ve(e)},this.handleFilterActionsEndSlotChange=e=>{this.hasFilterActionsEnd=ve(e)},this.setActiveListItem=()=>{const{enabledListItems:e}=this;e.some(t=>t.active)||e[0]&&(e[0].active=!0)},this.updateSelectedItems=(e=!1)=>{this.selectedItems=this.enabledListItems.filter(t=>t.selected),e&&this.calciteListChange.emit()},this.updateFilteredItems=(e=!1)=>{const{listItems:t,filteredData:i,filterText:n}=this,a=i.map(s=>s.value),r=t==null?void 0:t.filter(s=>t.every(c=>c===s||!s.contains(c))),o=t.filter(s=>!n||a.includes(s.value))||[],l=new WeakSet;r.forEach(s=>this.filterElements({el:s,filteredItems:o,visibleParents:l})),o.length>0&&this.findAncestorOfFirstFilteredItem(o),this.filteredItems=o,e&&this.calciteListFilter.emit()},this.setFilterEl=e=>{this.filterEl=e,this.performFilter()},this.handleFilterChange=e=>{e.stopPropagation();const{value:t}=e.currentTarget;this.filterText=t,this.updateFilteredData(!0)},this.getItemData=()=>this.listItems.map(e=>({label:e.label,description:e.description,metadata:e.metadata,value:e.value})),this.updateListItems=di((e=!1)=>{const{selectionAppearance:t,selectionMode:i,dragEnabled:n}=this;if(this.parentListEl){this.queryListItems(!0).forEach(l=>{l.dragHandle=n}),this.setUpSorting();return}const a=this.queryListItems();a.forEach(o=>{o.selectionAppearance=t,o.selectionMode=i}),this.queryListItems(!0).forEach(o=>{o.dragHandle=n}),this.listItems=a,this.filterEnabled&&(this.dataForFilter=this.getItemData(),this.filterEl&&(this.filterEl.items=this.dataForFilter)),this.updateFilteredItems(e),this.enabledListItems=this.filteredItems.filter(o=>!o.disabled&&!o.closed),this.setActiveListItem(),this.updateSelectedItems(e),this.setUpSorting()},mr),this.queryListItems=(e=!1)=>Array.from(this.el.querySelectorAll(e?br:ri)),this.focusRow=e=>{const{enabledListItems:t}=this;e&&(t.forEach(i=>i.active=i===e),e.setFocus())},this.isNavigable=e=>{var i;const t=(i=e.parentElement)==null?void 0:i.closest(ri);return t?t.open&&this.isNavigable(t):!0},this.handleListKeydown=e=>{var a;if(e.defaultPrevented||this.parentListEl)return;const{key:t}=e,i=this.enabledListItems.filter(r=>this.isNavigable(r)),n=i.findIndex(r=>r.active);if(t==="ArrowDown"){e.preventDefault();const r=e.target===this.filterEl?0:n+1;i[r]&&this.focusRow(i[r])}else if(t==="ArrowUp"){if(e.preventDefault(),n===0&&this.filterEnabled){(a=this.filterEl)==null||a.setFocus();return}const r=n-1;i[r]&&this.focusRow(i[r])}else if(t==="Home"){e.preventDefault();const r=i[0];r&&this.focusRow(r)}else if(t==="End"){e.preventDefault();const r=i[i.length-1];r&&this.focusRow(r)}},this.findAncestorOfFirstFilteredItem=e=>{var t,i;(t=this.ancestorOfFirstFilteredItem)==null||t.removeAttribute("data-filter"),e.forEach(n=>{n.removeAttribute("data-filter")}),this.ancestorOfFirstFilteredItem=this.getTopLevelAncestorItemElement(e[0]),e[0].setAttribute("data-filter","0"),(i=this.ancestorOfFirstFilteredItem)==null||i.setAttribute("data-filter","0")},this.getTopLevelAncestorItemElement=e=>{let t=e.parentElement.closest("calcite-list-item");for(;t;){const i=t.parentElement.closest("calcite-list-item");if(i)t=i;else return t}return null},this.disabled=!1,this.canPull=void 0,this.canPut=void 0,this.dragEnabled=!1,this.group=void 0,this.filterEnabled=!1,this.filteredItems=[],this.filteredData=[],this.filterPlaceholder=void 0,this.filterText=void 0,this.label=void 0,this.loading=!1,this.openable=!1,this.selectedItems=[],this.selectionMode="none",this.selectionAppearance="icon",this.assistiveText=void 0,this.dataForFilter=[],this.hasFilterActionsEnd=!1,this.hasFilterActionsStart=!1}async handleFilterTextChange(){this.performFilter()}handleListItemChange(){this.updateListItems()}handleCalciteInternalFocusPreviousItem(e){if(this.parentListEl)return;e.stopPropagation();const{enabledListItems:t}=this,n=t.findIndex(a=>a.active)-1;t[n]&&this.focusRow(t[n])}handleCalciteInternalListItemActive(e){if(this.parentListEl)return;e.stopPropagation();const t=e.target,{listItems:i}=this;i.forEach(n=>{n.active=n===t})}handleCalciteListItemSelect(){this.parentListEl||this.updateSelectedItems(!0)}handleCalciteInternalHandleChange(e){this.assistiveText=e.detail.message,e.stopPropagation()}handleCalciteHandleNudge(e){this.parentListEl||this.handleNudgeEvent(e)}handleCalciteInternalListItemSelect(e){if(this.parentListEl)return;e.stopPropagation();const t=e.target,{listItems:i,selectionMode:n}=this;t.selected&&(n==="single"||n==="single-persist")&&i.forEach(a=>a.selected=a===t),this.updateSelectedItems()}handleCalciteInternalListItemChange(e){this.parentListEl||(e.stopPropagation(),this.updateListItems())}handleCalciteInternalListItemGroupDefaultSlotChange(e){e.stopPropagation()}connectedCallback(){Kt(this)||(this.connectObserver(),this.updateListItems(),this.setUpSorting(),wt(this),this.setParentList())}disconnectedCallback(){Kt(this)||(this.disconnectObserver(),Oi(this),xt(this))}componentWillLoad(){St(this)}componentDidRender(){It(this)}componentDidLoad(){Ct(this)}async setFocus(){var e,t;return await Dt(this),this.filterEnabled?(e=this.filterEl)==null?void 0:e.setFocus():(t=this.enabledListItems.find(i=>i.active))==null?void 0:t.setFocus()}render(){const{loading:e,label:t,disabled:i,dataForFilter:n,filterEnabled:a,filterPlaceholder:r,filterText:o,hasFilterActionsStart:l,hasFilterActionsEnd:s}=this;return f("div",{class:he.container},this.dragEnabled?f("span",{"aria-live":"assertive",class:he.assistiveText},this.assistiveText):null,e?f("calcite-scrim",{class:he.scrim,loading:e}):null,f("table",{"aria-busy":Yi(e),"aria-label":t||"",class:he.table,onKeyDown:this.handleListKeydown,role:"treegrid"},a||l||s?f("thead",null,f("tr",{class:{[he.sticky]:!0}},f("th",{colSpan:qi},f("calcite-stack",{class:he.stack},f("slot",{name:ai.filterActionsStart,onSlotchange:this.handleFilterActionsStartSlotChange,slot:Ee.actionsStart}),f("calcite-filter",{"aria-label":r,disabled:e||i,items:n,onCalciteFilterChange:this.handleFilterChange,placeholder:r,value:o,ref:this.setFilterEl}),f("slot",{name:ai.filterActionsEnd,onSlotchange:this.handleFilterActionsEndSlotChange,slot:Ee.actionsEnd}))))):null,f("tbody",{class:he.tableContainer},f("slot",{onSlotchange:this.handleDefaultSlotChange}))))}connectObserver(){var e;(e=this.mutationObserver)==null||e.observe(this.el,{childList:!0,subtree:!0})}disconnectObserver(){var e;(e=this.mutationObserver)==null||e.disconnect()}setUpSorting(){const{dragEnabled:e}=this;e&&jn(this)}onDragStart(){this.disconnectObserver()}onDragEnd(){this.connectObserver()}onDragSort(e){this.setParentList(),this.updateListItems(),this.calciteListOrderChange.emit(e)}setParentList(){var e;this.parentListEl=(e=this.el.parentElement)==null?void 0:e.closest("calcite-list")}filterElements({el:e,filteredItems:t,visibleParents:i}){const n=!i.has(e)&&!t.includes(e);e.hidden=n;const a=e.parentElement.closest(vr);a&&(n||i.add(a),this.filterElements({el:a,filteredItems:t,visibleParents:i}))}updateFilteredData(e=!1){const{filterEl:t}=this;t&&(t.filteredItems&&(this.filteredData=t.filteredItems),this.updateListItems(e))}async performFilter(){const{filterEl:e,filterText:t}=this;e&&(e.value=t,await e.filter(t),this.updateFilteredData())}handleNudgeEvent(e){const{direction:t}=e.detail,i=e.composedPath(),n=i.find(b=>b.tagName==="CALCITE-HANDLE"),a=i.find(b=>b.tagName==="CALCITE-LIST-ITEM"),r=a==null?void 0:a.parentElement;if(!r)return;const{enabledListItems:o}=this,l=o.filter(b=>b.parentElement===r),s=l.length-1,c=l.indexOf(a);let h=!1,d;t==="up"?c===0?(h=!0,d=s):d=c-1:c===s?d=0:c===s-1?(h=!0,d=s):d=c+2,this.disconnectObserver(),h?r.appendChild(a):r.insertBefore(a,l[d]),this.updateListItems(),this.connectObserver(),this.calciteListOrderChange.emit({dragEl:a,fromEl:r,toEl:r,newIndex:d,oldIndex:c}),n.setFocus().then(()=>{n.activated=!0})}get el(){return this}static get watchers(){return{filterText:["handleFilterTextChange"],filterEnabled:["handleListItemChange"],group:["handleListItemChange"],dragEnabled:["handleListItemChange"],selectionMode:["handleListItemChange"],selectionAppearance:["handleListItemChange"]}}static get style(){return gr}},[1,"calcite-list",{disabled:[516],canPull:[16],canPut:[16],dragEnabled:[516,"drag-enabled"],group:[513],filterEnabled:[516,"filter-enabled"],filteredItems:[1040],filteredData:[1040],filterPlaceholder:[513,"filter-placeholder"],filterText:[1537,"filter-text"],label:[1],loading:[516],openable:[4],selectedItems:[1040],selectionMode:[513,"selection-mode"],selectionAppearance:[513,"selection-appearance"],assistiveText:[32],dataForFilter:[32],hasFilterActionsEnd:[32],hasFilterActionsStart:[32],setFocus:[64]},[[0,"calciteInternalFocusPreviousItem","handleCalciteInternalFocusPreviousItem"],[0,"calciteInternalListItemActive","handleCalciteInternalListItemActive"],[0,"calciteListItemSelect","handleCalciteListItemSelect"],[0,"calciteInternalHandleChange","handleCalciteInternalHandleChange"],[0,"calciteHandleNudge","handleCalciteHandleNudge"],[0,"calciteInternalListItemSelect","handleCalciteInternalListItemSelect"],[0,"calciteInternalListItemChange","handleCalciteInternalListItemChange"],[0,"calciteInternalListItemGroupDefaultSlotChange","handleCalciteInternalListItemGroupDefaultSlotChange"]]]);function Ri(){if(typeof customElements>"u")return;["calcite-list","calcite-filter","calcite-icon","calcite-input","calcite-loader","calcite-progress","calcite-scrim","calcite-stack"].forEach(t=>{switch(t){case"calcite-list":customElements.get(t)||customElements.define(t,ji);break;case"calcite-filter":customElements.get(t)||Bi();break;case"calcite-icon":customElements.get(t)||At();break;case"calcite-input":customElements.get(t)||Ft();break;case"calcite-loader":customElements.get(t)||hn();break;case"calcite-progress":customElements.get(t)||rt();break;case"calcite-scrim":customElements.get(t)||fn();break;case"calcite-stack":customElements.get(t)||Li();break}})}Ri();const Or=ji,Lr=Ri;export{Or as CalciteList,Lr as defineCustomElement};