@arcgis/map-components 6.0.0-next.40 → 6.0.0-next.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/cdn/{WVRIR3PK.js → 4KLAFS2R.js} +1 -1
  2. package/dist/cdn/{5XZKVLHC.js → 5ATTOWK4.js} +1 -1
  3. package/dist/cdn/{JBD7Q5YD.js → 6NCSWYYX.js} +1 -1
  4. package/dist/cdn/72KS3TKM.js +2 -0
  5. package/dist/cdn/7WUY57GO.js +2 -0
  6. package/dist/cdn/{AMRGLUBB.js → AKSCONMP.js} +1 -1
  7. package/dist/cdn/{YEPFWDQQ.js → BLC3NFIQ.js} +1 -1
  8. package/dist/cdn/DSINA62N.js +4 -0
  9. package/dist/cdn/{7PMJ7HCH.js → F4QPMY2N.js} +1 -1
  10. package/dist/cdn/{IZFEOYED.js → H2PXK4AT.js} +1 -1
  11. package/dist/cdn/JUTSSJJF.js +2 -0
  12. package/dist/cdn/JZYDXRQ6.js +4 -0
  13. package/dist/cdn/OUFB4LJK.js +2 -0
  14. package/dist/cdn/{GFC6LS4L.js → OYG42YJL.js} +1 -1
  15. package/dist/cdn/QEAEEU72.js +2 -0
  16. package/dist/cdn/{DYKRS7YX.js → QW37JDSG.js} +1 -1
  17. package/dist/cdn/{CNUAMIZQ.js → T5RX6NXT.js} +2 -2
  18. package/dist/cdn/UPXNXNTT.js +2 -0
  19. package/dist/cdn/V34ZYXUI.js +2 -0
  20. package/dist/cdn/{7P24CQF4.js → XOWOMVSW.js} +1 -1
  21. package/dist/cdn/index.js +1 -1
  22. package/dist/cdn/main.css +1 -1
  23. package/dist/chunks/slots.js +1 -1
  24. package/dist/components/arcgis-editor/customElement.d.ts +0 -1
  25. package/dist/components/arcgis-link-chart/customElement.d.ts +0 -1
  26. package/dist/components/arcgis-map/customElement.d.ts +0 -1
  27. package/dist/components/arcgis-scene/customElement.d.ts +0 -1
  28. package/dist/components/arcgis-sketch/customElement.d.ts +0 -1
  29. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +9 -9
  30. package/dist/docs/api.json +1 -1
  31. package/dist/docs/docs.json +1 -1
  32. package/dist/docs/web-types.json +1 -1
  33. package/dist/index.d.ts +0 -10
  34. package/dist/loader.js +0 -1
  35. package/dist/types/lumina.d.ts +0 -8
  36. package/dist/types/preact.d.ts +0 -9
  37. package/dist/types/react.d.ts +0 -10
  38. package/dist/types/stencil.d.ts +0 -8
  39. package/package.json +7 -7
  40. package/dist/cdn/27TSPXYV.js +0 -2
  41. package/dist/cdn/2JSC2QUL.js +0 -2
  42. package/dist/cdn/43IGD6V3.js +0 -2
  43. package/dist/cdn/6KYZMT4A.js +0 -2
  44. package/dist/cdn/BJUFDQGX.js +0 -2
  45. package/dist/cdn/DFNH6YRR.js +0 -2
  46. package/dist/cdn/HKKNU4CX.js +0 -2
  47. package/dist/cdn/PYBUTNHM.js +0 -2
  48. package/dist/cdn/UYDXI4AK.js +0 -4
  49. package/dist/cdn/YAWLVMV6.js +0 -2
  50. package/dist/components/arcgis-slider-scale-range/spriteSheetsUtils.d.ts +0 -10
  51. package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +0 -100
  52. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +0 -44
  53. package/dist/components/arcgis-utility-network-validate-topology/index.d.ts +0 -1
  54. package/dist/components/arcgis-utility-network-validate-topology/index.js +0 -1
  55. /package/dist/cdn/{SLQPDAGN.js → 237ZYFAI.js} +0 -0
  56. /package/dist/cdn/{AYQJ2LTV.js → 4LNUUNTS.js} +0 -0
  57. /package/dist/cdn/{OLSESBZ7.js → 4RG2L4NX.js} +0 -0
  58. /package/dist/cdn/{N2YWWQOS.js → 6F6UDFL6.js} +0 -0
  59. /package/dist/cdn/{62HMPABL.js → 6FZQAFDW.js} +0 -0
  60. /package/dist/cdn/{RTDY3HLR.js → 6RNYBJQG.js} +0 -0
  61. /package/dist/cdn/{ZCL4XHIZ.js → 6YT2MRU6.js} +0 -0
  62. /package/dist/cdn/{XQ2WXTW7.js → AAF7U7C7.js} +0 -0
  63. /package/dist/cdn/{IRFIHD5X.js → AZFQTGM4.js} +0 -0
  64. /package/dist/cdn/{XCSF7KJK.js → BVR6RYPL.js} +0 -0
  65. /package/dist/cdn/{DPEWQQEB.js → C3VCBV5R.js} +0 -0
  66. /package/dist/cdn/{ZSKO7HLH.js → COJJ4ST7.js} +0 -0
  67. /package/dist/cdn/{NVN2CATF.js → CSLBASOL.js} +0 -0
  68. /package/dist/cdn/{2P5AJORF.js → DDUJHOQ5.js} +0 -0
  69. /package/dist/cdn/{DLUFAV4S.js → F25B6VFT.js} +0 -0
  70. /package/dist/cdn/{PWZHB6VD.js → FC4U5FYO.js} +0 -0
  71. /package/dist/cdn/{SLNXNVPI.js → H3SNBMDP.js} +0 -0
  72. /package/dist/cdn/{QWMDZDQA.js → HDNFEQXP.js} +0 -0
  73. /package/dist/cdn/{FJMXBIN5.js → HMAEKQ63.js} +0 -0
  74. /package/dist/cdn/{T34W3GKP.js → HRKFC3ZC.js} +0 -0
  75. /package/dist/cdn/{5GTPIPN7.js → ID3JLPN6.js} +0 -0
  76. /package/dist/cdn/{KOMTNQPT.js → IKNNVF57.js} +0 -0
  77. /package/dist/cdn/{OFBWNR54.js → J3U6IFQO.js} +0 -0
  78. /package/dist/cdn/{CHMBPPHS.js → JUG5VVPL.js} +0 -0
  79. /package/dist/cdn/{MEISDI2H.js → KYUDUFNZ.js} +0 -0
  80. /package/dist/cdn/{4LWSF6AI.js → L63YJ5AF.js} +0 -0
  81. /package/dist/cdn/{LVIYMA67.js → LGPNCTTW.js} +0 -0
  82. /package/dist/cdn/{LS4U4GD5.js → LH4SQVC2.js} +0 -0
  83. /package/dist/cdn/{XGWYQ7FU.js → LNUFIKD5.js} +0 -0
  84. /package/dist/cdn/{7YT5W57B.js → NIASADUV.js} +0 -0
  85. /package/dist/cdn/{UDXDE3LW.js → NJ3CJS46.js} +0 -0
  86. /package/dist/cdn/{6SL7YNKF.js → NXC47WWQ.js} +0 -0
  87. /package/dist/cdn/{ZNIMZP5R.js → O527UXXI.js} +0 -0
  88. /package/dist/cdn/{G4IKO2R6.js → OXZOWO5A.js} +0 -0
  89. /package/dist/cdn/{SFDCS6A2.js → PHFJU5KL.js} +0 -0
  90. /package/dist/cdn/{TP2KQRW6.js → QHK5I5OO.js} +0 -0
  91. /package/dist/cdn/{IAYL44LK.js → RB3QNSQJ.js} +0 -0
  92. /package/dist/cdn/{ECA47Z37.js → T4CJDMMZ.js} +0 -0
  93. /package/dist/cdn/{AKTIOEYM.js → TAU22PX7.js} +0 -0
  94. /package/dist/cdn/{ZHYXFOYU.js → VP47DYTR.js} +0 -0
  95. /package/dist/cdn/{NVKOZL7X.js → WMP77MLQ.js} +0 -0
  96. /package/dist/cdn/{5GGAWGSN.js → WMRMVZHH.js} +0 -0
  97. /package/dist/cdn/{GCPR7XFU.js → YEEPGAEP.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as w}from"./UDXDE3LW.js";import{K as _,N as E,O as N,f as L,g as y,m as A,p as H}from"./6SL7YNKF.js";import{a as ee}from"./TAVTDQ6S.js";function te(e,t){let r=0,n=0,o=1,i=0,s=0,a=0,l=0,u=0;return e.formatToParts(t).forEach(c=>{switch(c.type){case"year":r=+c.value;break;case"month":n=+c.value-1;break;case"day":o=+c.value;break;case"hour":i=+c.value;break;case"minute":s=+c.value;break;case"second":a=+c.value;break;case"fractionalSecond":l=+c.value;break;case"weekday":switch(c.value){case"Sun":u=0;break;case"Mon":u=1;break;case"Tue":u=2;break;case"Wed":u=3;break;case"Thu":u=4;break;case"Fri":u=5;break;case"Sat":u=6;break}}}),i===24&&(i=0),{year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:l,weekday:u}}function re(e,t){let{year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:l}=te(e,t);return h(r,n,o,i,s,a,l)}function h(e,t,r,n,o,i,s){if(e>=100||e<0)return Date.UTC(e,t,r,n,o,i,s);let a=new Date(Date.UTC(e+400,t,r,n,o,i,s));return a.setUTCFullYear(a.getUTCFullYear()-400),a.getTime()}var x=864e5,I=class{constructor(t,r){if(this._offsets=new Map,!r)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){let r=this.offsetUTC(t),n=t.getTimezoneOffset(),o=new Date(t);o.setUTCMinutes(o.getUTCMinutes()-(r-n));let i=o.getTimezoneOffset();return n!=i&&o.setUTCMinutes(o.getUTCMinutes()+i-n),o}offsetUTC(t){let r=t.getTime();if(!isFinite(r))return NaN;let n=Math.floor(r/x),o=this._offsets.get(n);if(o===void 0){let i=this._offsetAt(n*x),s=this._offsetAt(n*x+x-1);o=i===s?i:null,this._offsets.set(n,o)}return o===null?this._offsetAt(r):o}_offsetAt(t){return(t-re(this._dtf,new Date(t)))/6e4}parseDate(t){let r=new Date(t.getTime()-Math.round(this.offsetUTC(t)*6e4));return{year:r.getUTCFullYear(),month:r.getUTCMonth(),day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds(),weekday:r.getUTCDay()}}};var q={};ee(q,{StyleRule:()=>O,StyleSheet:()=>P,addClass:()=>Te,addEventListener:()=>B,addSpacing:()=>ke,alternativeColor:()=>R,blur:()=>ce,brighten:()=>$,capitalizeFirst:()=>Be,classNameWords:()=>qe,cleanFormat:()=>Pe,contains:()=>G,decimalPlaces:()=>Ee,escapeForRgex:()=>$e,focus:()=>le,get12Hours:()=>Ie,getBrightnessStep:()=>Ze,getDayFromWeek:()=>Ne,getEventKey:()=>be,getEventTarget:()=>ge,getFormat:()=>Oe,getLightnessStep:()=>m,getMonthWeek:()=>He,getPointerId:()=>ue,getRendererEvent:()=>fe,getSafeResolution:()=>Se,getShadowRoot:()=>we,getStyle:()=>de,getTimeZone:()=>Ye,getTimezoneOffset:()=>ze,getWeek:()=>j,getWeekYear:()=>Ae,getYearDay:()=>Le,hslToHsv:()=>We,hslToRgb:()=>v,hsvToHsl:()=>Ge,htmlToText:()=>Me,iOS:()=>W,isLight:()=>U,isLocalEvent:()=>ye,isTouchEvent:()=>pe,lighten:()=>F,mergeTags:()=>Ve,onZoom:()=>ae,padString:()=>b,plainText:()=>Ue,ready:()=>ie,relativeToValue:()=>Ce,removeClass:()=>ve,removeElement:()=>se,rgbToHsl:()=>S,sameBounds:()=>Ke,sanitizeHTML:()=>Fe,saturate:()=>k,setInteractive:()=>me,setStyle:()=>he,splitString:()=>Re,stripFormatTags:()=>je,stripTags:()=>K,supports:()=>T,trim:()=>M,trimLeft:()=>Z,trimRight:()=>V,truncateTextWithEllipsis:()=>De});function ie(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function B(e,t,r,n){return e.addEventListener(t,r,n||!1),new N(()=>{e.removeEventListener(t,r,n||!1)})}function ae(e){return B(window,"resize",t=>{e()})}function T(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function ue(e){return e.pointerId||0}function ce(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function le(e){e&&e.focus()}function fe(e){if(T("pointerevents"))return e;if(T("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(T("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function pe(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function he(e,t,r){e.style[t]=r}function de(e,t){return e.style[t]}function ge(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function G(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function ye(e,t){return e.target&&G(t.root.dom,e.target)}function me(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function be(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function we(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var D;function _e(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function xe(e,t=""){if(e===null){if(D==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),D=r.sheet}return D}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function Y(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var O=class extends E{constructor(t,r,n,o=""){super(),this._root=xe(t,o);try{this._rule=Y(this._root,r)}catch{this._rule=Y(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=A(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},P=class extends E{constructor(t,r,n=""){super(),this._element=_e(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function Te(e,t){if(e)if(e.classList){let r=t.split(" ");H(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function ve(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function W(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function Se(){return W()?1:void 0}function Ce(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function Ee(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function Z(e){return e.replace(/^[\s]*/,"")}function V(e){return e.replace(/[\s]*$/,"")}function M(e){return Z(V(e))}function De(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+n:e.substring(0,t)+n}else return e}function Oe(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Pe(e){return e.replace(/\/(date|number|duration)$/i,"")}function K(e){return e&&e.replace(/<[^>]*>/g,"")}function Me(e){return!e||e.indexOf("<")==-1&&e.indexOf("&")==-1?e:new DOMParser().parseFromString(e,"text/html").documentElement.textContent||""}function je(e){return e&&e.replace(/\[[^\]]*\]/g,"")}function Ue(e){return e&&K((""+e).replace(/[\n\r]+/g,". "))}var z="script|iframe|frame|frameset|object|embed|applet|noscript|template|link|meta|base|form";function Fe(e){return e==null||e===""?e:(""+e).replace(new RegExp("<\\s*("+z+")\\b[^>]*>[\\s\\S]*?<\\s*\\/\\s*\\1\\s*>","gi"),"").replace(new RegExp("<\\s*\\/?\\s*(?:"+z+")\\b[^>]*>","gi"),"").replace(/\son[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/((?:href|src|xlink:href|action|formaction|data|background|poster|srcdoc|ping)\s*=\s*)(?:"[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^"]*"|'[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^']*'|(?:javascript|vbscript|livescript|mocha):[^\s>]*)/gi,'$1"#"').replace(/\ssrcdoc\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\sstyle\s*=\s*(?:"[^"]*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^"]*"|'[^']*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^']*')/gi,"")}function $e(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function ke(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Re(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))i===" "&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(a=>a!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function Le(e,t=!1){if(t)return Math.floor((e.getTime()-h(e.getUTCFullYear(),0,0,0,0,0,0))/864e5);let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function j(e,t=!1){let r=t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)):new Date(h(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(h(r.getUTCFullYear(),0,1,0,0,0,0));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function Ae(e,t=!1){let r=t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)):new Date(h(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),r.getUTCFullYear()}function He(e,t=!1){let r=j(t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),1,0,0,0,0)):new Date(e.getFullYear(),e.getMonth(),1),t),n=j(e,t);return n==1&&(n=53),n-r+1}function Ne(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Ie(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function Ye(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let a=e.toLocaleString("en-US",{timeZone:o}),l=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return M(l.substr(a.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),M(s)}function ze(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Be(e){return e.charAt(0).toUpperCase()+e.slice(1)}function v(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let a=function(f,C,p){return p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?f+(C-f)*6*p:p<.5?C:p<.6666666666666666?f+(C-f)*(.6666666666666666-p)*6:f},l=s<.5?s*(1+i):s+i-s*i,u=2*s-l;t=a(u,l,o+1/3),r=a(u,l,o),n=a(u,l,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function S(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,a=0,l=(o+i)/2;if(o===i)s=a=0;else{let u=o-i;switch(a=l>.5?u/(2-o-i):u/(o+i),o){case t:s=(r-n)/u+(r<n?6:0);break;case r:s=(n-t)/u+2;break;case n:s=(t-r)/u+4;break}s/=6}return{h:s,s:a,l}}function Ge(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function We(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function F(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+m(e.r,t))),g:Math.max(0,Math.min(255,e.g+m(e.g,t))),b:Math.max(0,Math.min(255,e.b+m(e.b,t))),a:e.a}}function m(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function $(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=m(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ze(e,t){return Math.round(255*t)}function U(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function k(e,t){if(e===void 0||t==1)return e;let r=S(e);return r.s=t,v(r)}function R(e,t={r:255,g:255,b:255},r={r:0,g:0,b:0}){let n=t,o=r;return U(r)&&(n=r,o=t),U(e)?o:n}function Ve(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ke(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function qe(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function J(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function ct(e){return J(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function d(e,t,r){return t+e*(r-t)}function Je(e,t,r){return e>=1?r:t}function Qe(e,t,r){return new w(d(e,t.percent,r.percent))}function Xe(e,t,r){return g.interpolate(e,t,r)}function lt(e,t){return typeof e=="number"&&typeof t=="number"?d:e instanceof w&&t instanceof w?Qe:e instanceof g&&t instanceof g?Xe:Je}var Q;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(Q||(Q={}));function X(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function et(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return X(r)}function ht(e){return g.fromAny(e)}var g=class e{constructor(t){this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return S({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=v({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(X(t))}static fromCSS(t){return new e(et(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(d(t,i.h,s.h),d(t,i.s,s.s),d(t,i.l,s.l))}else return e.fromRGB(d(t,r.r,n.r),d(t,r.g,n.g),d(t,r.b,n.b))}static interpolateColors(t,r,n="rgb"){let o=r.length-1;if(o<1)return r[0];let i=(t>0?Math.min(1,t):0)*o,s=Math.min(Math.floor(i),o-1);return e.interpolate(i-s,r[s],r[s+1],n)}static lighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=k({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{J as a,h as b,I as c,ie as d,se as e,B as f,ae as g,T as h,ue as i,ce as j,le as k,fe as l,pe as m,he as n,de as o,ge as p,G as q,ye as r,me as s,be as t,we as u,O as v,Se as w,Ce as x,Ee as y,b as z,M as A,De as B,Oe as C,Pe as D,K as E,je as F,Fe as G,$e as H,Re as I,Le as J,j as K,Ae as L,He as M,Ne as N,Ie as O,Ye as P,ze as Q,Be as R,Ve as S,Ke as T,qe as U,q as V,ht as W,g as X,ct as Y,Qe as Z,lt as _,Q as $};
2
+ import{a as w}from"./NJ3CJS46.js";import{K as _,N as E,O as N,f as L,g as y,m as A,p as H}from"./NXC47WWQ.js";import{a as ee}from"./TAVTDQ6S.js";function te(e,t){let r=0,n=0,o=1,i=0,s=0,a=0,l=0,u=0;return e.formatToParts(t).forEach(c=>{switch(c.type){case"year":r=+c.value;break;case"month":n=+c.value-1;break;case"day":o=+c.value;break;case"hour":i=+c.value;break;case"minute":s=+c.value;break;case"second":a=+c.value;break;case"fractionalSecond":l=+c.value;break;case"weekday":switch(c.value){case"Sun":u=0;break;case"Mon":u=1;break;case"Tue":u=2;break;case"Wed":u=3;break;case"Thu":u=4;break;case"Fri":u=5;break;case"Sat":u=6;break}}}),i===24&&(i=0),{year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:l,weekday:u}}function re(e,t){let{year:r,month:n,day:o,hour:i,minute:s,second:a,millisecond:l}=te(e,t);return h(r,n,o,i,s,a,l)}function h(e,t,r,n,o,i,s){if(e>=100||e<0)return Date.UTC(e,t,r,n,o,i,s);let a=new Date(Date.UTC(e+400,t,r,n,o,i,s));return a.setUTCFullYear(a.getUTCFullYear()-400),a.getTime()}var x=864e5,I=class{constructor(t,r){if(this._offsets=new Map,!r)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){let r=this.offsetUTC(t),n=t.getTimezoneOffset(),o=new Date(t);o.setUTCMinutes(o.getUTCMinutes()-(r-n));let i=o.getTimezoneOffset();return n!=i&&o.setUTCMinutes(o.getUTCMinutes()+i-n),o}offsetUTC(t){let r=t.getTime();if(!isFinite(r))return NaN;let n=Math.floor(r/x),o=this._offsets.get(n);if(o===void 0){let i=this._offsetAt(n*x),s=this._offsetAt(n*x+x-1);o=i===s?i:null,this._offsets.set(n,o)}return o===null?this._offsetAt(r):o}_offsetAt(t){return(t-re(this._dtf,new Date(t)))/6e4}parseDate(t){let r=new Date(t.getTime()-Math.round(this.offsetUTC(t)*6e4));return{year:r.getUTCFullYear(),month:r.getUTCMonth(),day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds(),weekday:r.getUTCDay()}}};var q={};ee(q,{StyleRule:()=>O,StyleSheet:()=>P,addClass:()=>Te,addEventListener:()=>B,addSpacing:()=>ke,alternativeColor:()=>R,blur:()=>ce,brighten:()=>$,capitalizeFirst:()=>Be,classNameWords:()=>qe,cleanFormat:()=>Pe,contains:()=>G,decimalPlaces:()=>Ee,escapeForRgex:()=>$e,focus:()=>le,get12Hours:()=>Ie,getBrightnessStep:()=>Ze,getDayFromWeek:()=>Ne,getEventKey:()=>be,getEventTarget:()=>ge,getFormat:()=>Oe,getLightnessStep:()=>m,getMonthWeek:()=>He,getPointerId:()=>ue,getRendererEvent:()=>fe,getSafeResolution:()=>Se,getShadowRoot:()=>we,getStyle:()=>de,getTimeZone:()=>Ye,getTimezoneOffset:()=>ze,getWeek:()=>j,getWeekYear:()=>Ae,getYearDay:()=>Le,hslToHsv:()=>We,hslToRgb:()=>v,hsvToHsl:()=>Ge,htmlToText:()=>Me,iOS:()=>W,isLight:()=>U,isLocalEvent:()=>ye,isTouchEvent:()=>pe,lighten:()=>F,mergeTags:()=>Ve,onZoom:()=>ae,padString:()=>b,plainText:()=>Ue,ready:()=>ie,relativeToValue:()=>Ce,removeClass:()=>ve,removeElement:()=>se,rgbToHsl:()=>S,sameBounds:()=>Ke,sanitizeHTML:()=>Fe,saturate:()=>k,setInteractive:()=>me,setStyle:()=>he,splitString:()=>Re,stripFormatTags:()=>je,stripTags:()=>K,supports:()=>T,trim:()=>M,trimLeft:()=>Z,trimRight:()=>V,truncateTextWithEllipsis:()=>De});function ie(e){if(document.readyState!=="loading")e();else{let t=()=>{document.readyState!=="loading"&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function se(e){e.parentNode&&e.parentNode.removeChild(e)}function B(e,t,r,n){return e.addEventListener(t,r,n||!1),new N(()=>{e.removeEventListener(t,r,n||!1)})}function ae(e){return B(window,"resize",t=>{e()})}function T(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function ue(e){return e.pointerId||0}function ce(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function le(e){e&&e.focus()}function fe(e){if(T("pointerevents"))return e;if(T("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(T("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function pe(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&e.pointerType!=null)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(e.type!=null&&e.type.match(/^mouse/))return!1;return!0}function he(e,t,r){e.style[t]=r}function de(e,t){return e.style[t]}function ge(e){if(e.composedPath){let t=e.composedPath();return t.length===0?null:t[0]}else return e.target}function G(e,t){let r=t;for(;;){if(e===r)return!0;if(r.parentNode===null){if(r.host==null)return!1;r=r.host}else r=r.parentNode}}function ye(e,t){return e.target&&G(t.root.dom,e.target)}function me(e,t){t?e.style.pointerEvents="auto":e.style.pointerEvents="none"}function be(e){if(e.key!==void 0)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function we(e){let t=e;for(;;){if(t.parentNode===null)return t.host!=null?t:null;t=t.parentNode}}var D;function _e(e,t,r=""){let n=document.createElement("style");return n.type="text/css",r!=""&&n.setAttribute("nonce",r),n.textContent=t,e===null?document.head.appendChild(n):e.appendChild(n),n}function xe(e,t=""){if(e===null){if(D==null){let r=document.createElement("style");r.type="text/css",t!=""&&r.setAttribute("nonce",t),document.head.appendChild(r),D=r.sheet}return D}else{let r=document.createElement("style");return r.type="text/css",t!=""&&r.setAttribute("nonce",t),e.appendChild(r),r.sheet}}function Y(e,t){let r=e.cssRules.length;return e.insertRule(t+"{}",r),e.cssRules[r]}var O=class extends E{constructor(t,r,n,o=""){super(),this._root=xe(t,o);try{this._rule=Y(this._root,r)}catch{this._rule=Y(this._root,":not(*)")}_(n,(i,s)=>{this.setStyle(i,s)})}set selector(t){this._rule.selectorText=t}get selector(){return this._rule.selectorText}_dispose(){let t=A(this._root.cssRules,this._rule);if(t===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(t)}_setVendorPrefixName(t,r){let n=this._rule.style;n.setProperty("-webkit-"+t,r,""),n.setProperty("-moz-"+t,r,""),n.setProperty("-ms-"+t,r,""),n.setProperty("-o-"+t,r,""),n.setProperty(t,r,"")}setStyle(t,r){t==="transition"?this._setVendorPrefixName(t,r):this._rule.style.setProperty(t,r,"")}},P=class extends E{constructor(t,r,n=""){super(),this._element=_e(t,r,n)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}};function Te(e,t){if(e)if(e.classList){let r=t.split(" ");H(r,n=>{e.classList.add(n)})}else{let r=e.getAttribute("class");r?e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" ")+" "+t):e.setAttribute("class",t)}}function ve(e,t){if(e)if(e.classList)e.classList.remove(t);else{let r=e.getAttribute("class");r&&e.setAttribute("class",r.split(" ").filter(n=>n!==t).join(" "))}}function W(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function Se(){return W()?1:void 0}function Ce(e,t){return y(e)?e:e!=null&&y(e.value)&&y(t)?t*e.value:0}function Ee(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function b(e,t=0,r="0"){return typeof e!="string"&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(r)+e:e}function Z(e){return e.replace(/^[\s]*/,"")}function V(e){return e.replace(/[\s]*$/,"")}function M(e){return Z(V(e))}function De(e,t,r=!1,n="..."){if(e.length>t){let o=t-1;for(;o>=0&&e.charAt(o).match(/\w/);)o--;return o>=0&&r==!1?e.substring(0,o+1)+n:e.substring(0,t)+n}else return e}function Oe(e){if(typeof e>"u")return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:e==="number"?"number":e==="date"?"date":e==="duration"?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function Pe(e){return e.replace(/\/(date|number|duration)$/i,"")}function K(e){return e&&e.replace(/<[^>]*>/g,"")}function Me(e){return!e||e.indexOf("<")==-1&&e.indexOf("&")==-1?e:new DOMParser().parseFromString(e,"text/html").documentElement.textContent||""}function je(e){return e&&e.replace(/\[[^\]]*\]/g,"")}function Ue(e){return e&&K((""+e).replace(/[\n\r]+/g,". "))}var z="script|iframe|frame|frameset|object|embed|applet|noscript|template|link|meta|base|form";function Fe(e){return e==null||e===""?e:(""+e).replace(new RegExp("<\\s*("+z+")\\b[^>]*>[\\s\\S]*?<\\s*\\/\\s*\\1\\s*>","gi"),"").replace(new RegExp("<\\s*\\/?\\s*(?:"+z+")\\b[^>]*>","gi"),"").replace(/\son[a-z]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/((?:href|src|xlink:href|action|formaction|data|background|poster|srcdoc|ping)\s*=\s*)(?:"[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^"]*"|'[\s]*j[\s]*a[\s]*v[\s]*a[\s]*s[\s]*c[\s]*r[\s]*i[\s]*p[\s]*t[\s]*:[^']*'|(?:javascript|vbscript|livescript|mocha):[^\s>]*)/gi,'$1"#"').replace(/\ssrcdoc\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,"").replace(/\sstyle\s*=\s*(?:"[^"]*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^"]*"|'[^']*(?:expression|javascript:|vbscript:|behavior|-moz-binding)[^']*')/gi,"")}function $e(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function ke(e){let t="";for(let r=0;r<e.length;r++){let n=e.charAt(r);n.toUpperCase()==n&&r!=0&&(t+=" "),t+=n}return t}function Re(e){let t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,r=/([^اأدذرزو]*[اأدذرزو])/gi,n=e.split(/(\s+)/),o=[];return n.forEach(i=>{if(i.match(/^\s+$/))i===" "&&(i=" "),o.push(i);else if(t.test(i)){let s=i.split(r).filter(a=>a!=="");o=o.concat(s)}else o=o.concat([...i])}),o}function Le(e,t=!1){if(t)return Math.floor((e.getTime()-h(e.getUTCFullYear(),0,0,0,0,0,0))/864e5);let r=new Date(e.getFullYear(),0,0),n=e.getTime()-r.getTime()+(r.getTimezoneOffset()-e.getTimezoneOffset())*60*1e3,o=1e3*60*60*24;return Math.floor(n/o)}function j(e,t=!1){let r=t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)):new Date(h(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),n=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-n);let o=new Date(h(r.getUTCFullYear(),0,1,0,0,0,0));return Math.ceil(((r.getTime()-o.getTime())/864e5+1)/7)}function Ae(e,t=!1){let r=t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)):new Date(h(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)),n=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+4-n),r.getUTCFullYear()}function He(e,t=!1){let r=j(t?new Date(h(e.getUTCFullYear(),e.getUTCMonth(),1,0,0,0,0)):new Date(e.getFullYear(),e.getMonth(),1),t),n=j(e,t);return n==1&&(n=53),n-r+1}function Ne(e,t,r=1,n=!1){let o=new Date(t,0,4,0,0,0,0);return n&&o.setUTCFullYear(t),e*7+r-((o.getDay()||7)+3)}function Ie(e,t){return e>12?e-=12:e===0&&(e=12),t!=null?e+(t-1):e}function Ye(e,t=!1,r=!1,n=!1,o){if(n)return t?"Coordinated Universal Time":"UTC";if(o){let a=e.toLocaleString("en-US",{timeZone:o}),l=e.toLocaleString("en-US",{timeZone:o,timeZoneName:t?"long":"short"});return M(l.substr(a.length))}let i=e.toLocaleString("UTC"),s=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return r===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),M(s)}function ze(e,t){let r=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(r.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(r.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function Be(e){return e.charAt(0).toUpperCase()+e.slice(1)}function v(e){let t,r,n,o=e.h,i=e.s,s=e.l;if(i==0)t=r=n=s;else{let a=function(f,C,p){return p<0&&(p+=1),p>1&&(p-=1),p<.16666666666666666?f+(C-f)*6*p:p<.5?C:p<.6666666666666666?f+(C-f)*(.6666666666666666-p)*6:f},l=s<.5?s*(1+i):s+i-s*i,u=2*s-l;t=a(u,l,o+1/3),r=a(u,l,o),n=a(u,l,o-1/3)}return{r:Math.round(t*255),g:Math.round(r*255),b:Math.round(n*255)}}function S(e){let t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=0,a=0,l=(o+i)/2;if(o===i)s=a=0;else{let u=o-i;switch(a=l>.5?u/(2-o-i):u/(o+i),o){case t:s=(r-n)/u+(r<n?6:0);break;case r:s=(n-t)/u+2;break;case n:s=(t-r)/u+4;break}s/=6}return{h:s,s:a,l}}function Ge(e){let t=e.v*(1-e.s/2),r=t===0||t===1?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:r,l:t,a:e.a}}function We(e){let t=e.l+e.s*Math.min(e.l,1-e.l),r=t===0?0:2*(1-e.l/t);return{h:e.h,s:r,v:t,a:e.a}}function F(e,t){return e&&{r:Math.max(0,Math.min(255,e.r+m(e.r,t))),g:Math.max(0,Math.min(255,e.g+m(e.g,t))),b:Math.max(0,Math.min(255,e.b+m(e.b,t))),a:e.a}}function m(e,t){let r=t>0?255-e:e;return Math.round(r*t)}function $(e,t){if(e){let r=Math.min(Math.max(e.r,e.g,e.b),230),n=m(r,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}else return e}function Ze(e,t){return Math.round(255*t)}function U(e){return(e.r*299+e.g*587+e.b*114)/1e3>=128}function k(e,t){if(e===void 0||t==1)return e;let r=S(e);return r.s=t,v(r)}function R(e,t={r:255,g:255,b:255},r={r:0,g:0,b:0}){let n=t,o=r;return U(r)&&(n=r,o=t),U(e)?o:n}function Ve(e,t){return e||(e=[]),[...e,...t].filter((r,n,o)=>o.indexOf(r)===n)}function Ke(e,t){return!(!t||e.left!=t.left||e.right!=t.right||e.top!=t.top||e.bottom!=t.bottom)}function qe(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}function J(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function ct(e){return J(this,void 0,void 0,function*(){if(e!==void 0){let t=[];_(e,(r,n)=>{t.push(n.waitForStop())}),yield Promise.all(t)}})}function d(e,t,r){return t+e*(r-t)}function Je(e,t,r){return e>=1?r:t}function Qe(e,t,r){return new w(d(e,t.percent,r.percent))}function Xe(e,t,r){return g.interpolate(e,t,r)}function lt(e,t){return typeof e=="number"&&typeof t=="number"?d:e instanceof w&&t instanceof w?Qe:e instanceof g&&t instanceof g?Xe:Je}var Q;(function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"})(Q||(Q={}));function X(e){return e[0]==="#"&&(e=e.substr(1)),e.length==3&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function et(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let r="";for(let n=1;n<=3;n++){let o=parseInt(t[n]).toString(16);o.length==1&&(o="0"+o),r+=o}return X(r)}function ht(e){return g.fromAny(e)}var g=class e{constructor(t){this._hex=t|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(t=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+t+")"}toCSSHex(){return"#"+b(this.r.toString(16),2)+b(this.g.toString(16),2)+b(this.b.toString(16),2)}toHSL(t=1){return S({r:this.r,g:this.g,b:this.b,a:t})}static fromHSL(t,r,n){let o=v({h:t,s:r,l:n});return this.fromRGB(o.r,o.g,o.b)}toString(){return this.toCSSHex()}static fromHex(t){return new e(t)}static fromRGB(t,r,n){return new e((n|0)+(r<<8)+(t<<16))}static fromString(t){return new e(X(t))}static fromCSS(t){return new e(et(t))}static fromAny(t){if(L(t)){if(t[0]=="#")return e.fromString(t);if(t.substr(0,3)=="rgb")return e.fromCSS(t)}else{if(y(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}static alternative(t,r,n){let o=R({r:t.r,g:t.g,b:t.b},r?{r:r.r,g:r.g,b:r.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(o.r,o.g,o.b)}static interpolate(t,r,n,o="rgb"){if(o=="hsl"){let i=r.toHSL(),s=n.toHSL();return e.fromHSL(d(t,i.h,s.h),d(t,i.s,s.s),d(t,i.l,s.l))}else return e.fromRGB(d(t,r.r,n.r),d(t,r.g,n.g),d(t,r.b,n.b))}static interpolateColors(t,r,n="rgb"){let o=r.length-1;if(o<1)return r[0];let i=(t>0?Math.min(1,t):0)*o,s=Math.min(Math.floor(i),o-1);return e.interpolate(i-s,r[s],r[s+1],n)}static lighten(t,r){let n=F({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static brighten(t,r){let n=$({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}static saturate(t,r){let n=k({r:t.r,g:t.g,b:t.b},r);return e.fromRGB(n.r,n.g,n.b)}};export{J as a,h as b,I as c,ie as d,se as e,B as f,ae as g,T as h,ue as i,ce as j,le as k,fe as l,pe as m,he as n,de as o,ge as p,G as q,ye as r,me as s,be as t,we as u,O as v,Se as w,Ce as x,Ee as y,b as z,M as A,De as B,Oe as C,Pe as D,K as E,je as F,Fe as G,$e as H,Re as I,Le as J,j as K,Ae as L,He as M,Ne as N,Ie as O,Ye as P,ze as Q,Be as R,Ve as S,Ke as T,qe as U,q as V,ht as W,g as X,ct as Y,Qe as Z,lt as _,Q as $};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as D,c as H}from"./2JSC2QUL.js";import{c as O}from"./Y6WTYXVP.js";import a from"./SKV3CQSZ.js";import{b as G,c as R,f as M}from"./FY7P5YLX.js";import{b as x,d as L}from"./LXME6MU5.js";import{D as E,P as y,b as S,x as w,z as C}from"./IW3P4TGM.js";export default $arcgis.t(([{initializeProjection:k},{signal:q},{watch:v,when:B},j,U,{b:F,c:A}])=>{async function*W(n,t){for(let e of n){let o=await E(e,t).catch(()=>{});if(t.aborted)return;yield*Array.isArray(o)?o.filter(i=>i instanceof U):[]}}async function*T(){yield*[]}async function*$(n,t){await E(n,t).catch(()=>{})}async function z(n,t,e,o){let i;if(e instanceof j?(await k(e.spatialReference,n.spatialReference),F(o.signal),i=n.toScreen(e)):i=e,!i)return T();let s=Promise.withResolvers(),r=n.fetchPopupFeatures(i,{...o,defaultPopupTemplateEnabled:t.defaultPopupTemplateEnabled,hitTestResolver:s})??T();return await s.promise,r}function P(n,t){if(t instanceof j)return t;let e="width"in t?{x:t.x+t.width/2,y:t.y+t.height/2}:t;return n.toMap(e)??void 0}async function K(n,t,e,o){let i={};return{diagnostics:i,featureStream:await z(n,t,e,{diagnostics:i,signal:o}),location:P(n,e)}}var V=class extends C{constructor(t){super(t),this.direction=M(),this.popupRef=y(),this.uiContainerRef=y(),this.#p=q(void 0),this.#t=null,this.#n=null,this.#r=0,this.slotGroupRefs=D(),this.attributionHeight=0,this.component.listenOn(globalThis,"unhandledrejection",e=>{let o=e.reason;if(o?.name==="webgl:required"){let{name:i}=o;this.webGLError={name:i}}})}#p;#i;get#l(){return!this.component.popupDisabled&&(this.component.popupComponentEnabled||!!this.popupElement&&this.popupElement!==this.#i)}get popupElement(){return this.#p.value}set popupElement(t){this.#p.value=t}#t;#n;#r;hostLifecycle(){let{view:t}=this.component,e=t.focusRegionShortcutEnabled;return[v(()=>this.component.focusRegionShortcutEnabled??this.#l,o=>{this.component.view.focusRegionShortcutEnabled=o},{initial:!0,sync:!0}),B(()=>this.component.view.ready,()=>{this.#o()}),v(()=>this.component.view.popup?.visible,(o,i)=>{(o||i)&&this.#e(),o&&this.popupElement?.open&&(this.popupElement.open=!1)},{initial:!0}),v(()=>this.component.popupElement?.open,(o,i)=>{i&&!o&&this.#e()},{initial:!0,sync:!0}),this.component.view.on("focus-region-select",o=>this.#g(o)),this.component.view.on("click",[],o=>{let i=o.native;o.button!==0||i?.ctrlKey||i?.metaKey||this.#b(o).catch(()=>{})},-2),{remove:()=>{t.focusRegionShortcutEnabled=e}}]}hostConnected(){this.#c()}hostUpdated(){this.component.el.isConnected&&this.#c(),this.component.popupComponentEnabled?this.#o():(this.popupElement===this.#i&&(this.#e(),this.#f(),this.popupElement=void 0),this.#i=void 0)}hostDestroy(){this.#e(),this.#d()}hostDisconnected(){this.#d()}async openPopup(t={}){this.#o();let e=this.popupElement,o=t.location??e?.location,i=!!e&&!t.featureStream&&!t.promises?.length&&!!t.fetchFeatures&&!!o;this.#e();let s=new AbortController;if(this.#n=s,e){let{fetchFeatures:r,shouldFocus:a,title:p,featureStream:d,promises:c,location:l,...f}=t,u=l?P(this.component.view,l):void 0,b=l??o,h=i&&b?K(this.component.view,e,b,s.signal):null,g=h?Promise.withResolvers():null;h&&g&&(h.catch(()=>{}),e.featureStream=$(g.promise,s.signal));try{await e.componentOnReady()}catch(m){throw h&&this.#s(s)&&(s.abort(),e.open=!1,await e.clear()),m}if(!this.#s(s))return;if(h)try{let m=await h;if(!this.#s(s))return;Object.assign(e,f),p!==void 0&&(e.heading=p),await e.openFeatureStream(m)}catch(m){if(!A(m))throw this.#s(s)&&(e.open=!1,await e.clear()),m;return}finally{g?.resolve()}else Object.assign(e,f),p!==void 0&&(e.heading=p),d?await e.openFeatureStream({featureStream:d,location:u}):c?.length?await e.openFeatureStream({featureStream:W(c,s.signal),location:u}):(e.featureStream=null,l!==void 0&&(e.location=u),e.open=!0);a&&this.#s(s)&&await e.setFocus()}else{let{location:r,...a}=t;await this.component.view.openPopup({...a,location:r?P(this.component.view,r):void 0})}}closePopup(){this.#e(),this.popupElement?(this.popupElement.open=!1,this.popupElement.clear()):this.component.view.closePopup()}#e(){this.#n?.abort(),this.#n=null}#s(t){return this.#n===t&&!t.signal.aborted}#o(){this.component.popupComponentEnabled&&this.popupRef.value&&!this.popupElement&&(this.#i=this.popupRef.value,this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){this.attributionHeight!==t&&(this.attributionHeight=t,this.#h()?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`))}#c(){let t=this.#h(),{topLeft:e,topRight:o,bottomLeft:i,bottomRight:s}=this.slotGroupRefs,r=[e.value,o.value,i.value,s.value];if(t){this.#t??=new ResizeObserver(()=>this.#u()),this.#t.disconnect(),this.#t.observe(t);for(let a of r)a&&this.#t.observe(a,{box:"border-box"});this.#u()}}#u(){let t=this.#h(),{topLeft:e,topRight:o,bottomLeft:i,bottomRight:s}=this.slotGroupRefs;if(!(t&&e.value&&o.value&&i.value&&s.value))return;let r=t.getBoundingClientRect(),a=this.#m(r,e.value,o.value),p=this.#m(r,i.value,s.value,!0);this.#a(t,"--arcgis-internal-top-center-max-width",a.maxWidth),this.#a(t,"--arcgis-internal-top-center-position",a.position),this.#a(t,"--arcgis-internal-bottom-center-max-width",p.maxWidth),this.#a(t,"--arcgis-internal-bottom-center-position",p.position)}#a(t,e,o){let i=`${o}px`;t.style.getPropertyValue(e)!==i&&t.style.setProperty(e,i)}#m(t,e,o,i=!1){let s=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=b=>Array.from(b.querySelectorAll("slot")).some(h=>h.assignedElements().length>0),p=i?a(e):s.width>0,d=i?a(o):r.width>0,c=(p?s.right:s.left)-t.left,l=t.right-(d?r.left:r.right),f=p&&d,u=f?Math.max(0,t.width-2*Math.max(c,l)):Math.max(0,t.width-c-l);return{maxWidth:u,position:f?t.width/2:c+u/2}}#d(){this.#t?.disconnect(),this.#t=null}#h(){return this.uiContainerRef.value}#v(){this.component.view&&(this.component.popupComponentEnabled||this.popupElement)&&(this.previousViewPopupEnabled??=this.component.view.popupEnabled,this.component.view.popupEnabled=!1)}#f(){this.component.view&&this.previousViewPopupEnabled!==void 0&&(this.component.view.popupEnabled=this.previousViewPopupEnabled,this.previousViewPopupEnabled=void 0)}async#b(t){if(this.#o(),!this.component.popupDisabled){this.#r++,this.#v();try{this.popupElement&&await this.openPopup({fetchFeatures:!0,location:{x:t.x,y:t.y}})}finally{this.#r--,this.#r||this.#f()}}}#g(t){this.#o(),!(!this.#l||!this.popupElement)&&queueMicrotask(()=>{let{focusRegion:e}=this.component.view;!t.defaultPrevented&&e&&this.openPopup({fetchFeatures:!0,location:e}).catch(()=>{})})}#w(t){let e=O(t.target,"arcgis-popup")[0];e?this.popupElement=e:this.popupElement!==this.#i&&(this.popupElement=void 0,this.#o())}#E(){return this.webGLError?S`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return H({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:t=>this.#w(t),webGLErrorElement:this.#E(),popupElement:this.popupRef})}};function rt(n){G((t,e)=>{let o=()=>{if(n.attributionMode!=="auto")return;let i=L(n.el);n.view.attributionMode!==i&&(n.view.attributionMode=i)};e.onLifecycle(()=>(o(),x(n.el,["class"],o))),e.onUpdate(i=>{i.has("attributionMode")&&n.attributionMode==="auto"&&o()})})}var at=R((n,t)=>{let e=w();return t.onLifecycle(()=>v(()=>{let{map:o}=n;if(!o||o.destroyed)return[];let i=[];return o.loadError&&i.push(o),o.basemap?.loadError&&i.push(o.basemap),o.ground.loadError&&i.push(o.ground),[...o.allLayers,...o.allTables].forEach(s=>{s.loadError&&i.push(s)}),i},o=>{o.length&&(n.loadErrorSources=o,e.emit())})),e}),pt=R((n,t)=>{let e=w();return t.onLifecycle(()=>v(()=>n.view?.readyState,o=>{(o==="map-content-error"||o==="rendering-error")&&e.emit()})),e});return{a:V,b:rt,c:at,d:pt}},"applications/Components/featureUtils","applications/Components/reactiveUtils","core/reactiveUtils","geometry/Point","Graphic",a)
2
+ import{b as D,c as H}from"./JUTSSJJF.js";import{c as O}from"./Y6WTYXVP.js";import a from"./SKV3CQSZ.js";import{b as G,c as R,f as M}from"./FY7P5YLX.js";import{b as x,d as L}from"./LXME6MU5.js";import{D as E,P as y,b as S,x as w,z as C}from"./IW3P4TGM.js";export default $arcgis.t(([{initializeProjection:k},{signal:q},{watch:v,when:B},j,U,{b:F,c:A}])=>{async function*W(n,t){for(let e of n){let o=await E(e,t).catch(()=>{});if(t.aborted)return;yield*Array.isArray(o)?o.filter(i=>i instanceof U):[]}}async function*T(){yield*[]}async function*$(n,t){await E(n,t).catch(()=>{})}async function z(n,t,e,o){let i;if(e instanceof j?(await k(e.spatialReference,n.spatialReference),F(o.signal),i=n.toScreen(e)):i=e,!i)return T();let s=Promise.withResolvers(),r=n.fetchPopupFeatures(i,{...o,defaultPopupTemplateEnabled:t.defaultPopupTemplateEnabled,hitTestResolver:s})??T();return await s.promise,r}function P(n,t){if(t instanceof j)return t;let e="width"in t?{x:t.x+t.width/2,y:t.y+t.height/2}:t;return n.toMap(e)??void 0}async function K(n,t,e,o){let i={};return{diagnostics:i,featureStream:await z(n,t,e,{diagnostics:i,signal:o}),location:P(n,e)}}var V=class extends C{constructor(t){super(t),this.direction=M(),this.popupRef=y(),this.uiContainerRef=y(),this.#p=q(void 0),this.#t=null,this.#n=null,this.#r=0,this.slotGroupRefs=D(),this.attributionHeight=0,this.component.listenOn(globalThis,"unhandledrejection",e=>{let o=e.reason;if(o?.name==="webgl:required"){let{name:i}=o;this.webGLError={name:i}}})}#p;#i;get#l(){return!this.component.popupDisabled&&(this.component.popupComponentEnabled||!!this.popupElement&&this.popupElement!==this.#i)}get popupElement(){return this.#p.value}set popupElement(t){this.#p.value=t}#t;#n;#r;hostLifecycle(){let{view:t}=this.component,e=t.focusRegionShortcutEnabled;return[v(()=>this.component.focusRegionShortcutEnabled??this.#l,o=>{this.component.view.focusRegionShortcutEnabled=o},{initial:!0,sync:!0}),B(()=>this.component.view.ready,()=>{this.#o()}),v(()=>this.component.view.popup?.visible,(o,i)=>{(o||i)&&this.#e(),o&&this.popupElement?.open&&(this.popupElement.open=!1)},{initial:!0}),v(()=>this.component.popupElement?.open,(o,i)=>{i&&!o&&this.#e()},{initial:!0,sync:!0}),this.component.view.on("focus-region-select",o=>this.#g(o)),this.component.view.on("click",[],o=>{let i=o.native;o.button!==0||i?.ctrlKey||i?.metaKey||this.#b(o).catch(()=>{})},-2),{remove:()=>{t.focusRegionShortcutEnabled=e}}]}hostConnected(){this.#c()}hostUpdated(){this.component.el.isConnected&&this.#c(),this.component.popupComponentEnabled?this.#o():(this.popupElement===this.#i&&(this.#e(),this.#f(),this.popupElement=void 0),this.#i=void 0)}hostDestroy(){this.#e(),this.#d()}hostDisconnected(){this.#d()}async openPopup(t={}){this.#o();let e=this.popupElement,o=t.location??e?.location,i=!!e&&!t.featureStream&&!t.promises?.length&&!!t.fetchFeatures&&!!o;this.#e();let s=new AbortController;if(this.#n=s,e){let{fetchFeatures:r,shouldFocus:a,title:p,featureStream:d,promises:c,location:l,...f}=t,u=l?P(this.component.view,l):void 0,b=l??o,h=i&&b?K(this.component.view,e,b,s.signal):null,g=h?Promise.withResolvers():null;h&&g&&(h.catch(()=>{}),e.featureStream=$(g.promise,s.signal));try{await e.componentOnReady()}catch(m){throw h&&this.#s(s)&&(s.abort(),e.open=!1,await e.clear()),m}if(!this.#s(s))return;if(h)try{let m=await h;if(!this.#s(s))return;Object.assign(e,f),p!==void 0&&(e.heading=p),await e.openFeatureStream(m)}catch(m){if(!A(m))throw this.#s(s)&&(e.open=!1,await e.clear()),m;return}finally{g?.resolve()}else Object.assign(e,f),p!==void 0&&(e.heading=p),d?await e.openFeatureStream({featureStream:d,location:u}):c?.length?await e.openFeatureStream({featureStream:W(c,s.signal),location:u}):(e.featureStream=null,l!==void 0&&(e.location=u),e.open=!0);a&&this.#s(s)&&await e.setFocus()}else{let{location:r,...a}=t;await this.component.view.openPopup({...a,location:r?P(this.component.view,r):void 0})}}closePopup(){this.#e(),this.popupElement?(this.popupElement.open=!1,this.popupElement.clear()):this.component.view.closePopup()}#e(){this.#n?.abort(),this.#n=null}#s(t){return this.#n===t&&!t.signal.aborted}#o(){this.component.popupComponentEnabled&&this.popupRef.value&&!this.popupElement&&(this.#i=this.popupRef.value,this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){this.attributionHeight!==t&&(this.attributionHeight=t,this.#h()?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`))}#c(){let t=this.#h(),{topLeft:e,topRight:o,bottomLeft:i,bottomRight:s}=this.slotGroupRefs,r=[e.value,o.value,i.value,s.value];if(t){this.#t??=new ResizeObserver(()=>this.#u()),this.#t.disconnect(),this.#t.observe(t);for(let a of r)a&&this.#t.observe(a,{box:"border-box"});this.#u()}}#u(){let t=this.#h(),{topLeft:e,topRight:o,bottomLeft:i,bottomRight:s}=this.slotGroupRefs;if(!(t&&e.value&&o.value&&i.value&&s.value))return;let r=t.getBoundingClientRect(),a=this.#m(r,e.value,o.value),p=this.#m(r,i.value,s.value,!0);this.#a(t,"--arcgis-internal-top-center-max-width",a.maxWidth),this.#a(t,"--arcgis-internal-top-center-position",a.position),this.#a(t,"--arcgis-internal-bottom-center-max-width",p.maxWidth),this.#a(t,"--arcgis-internal-bottom-center-position",p.position)}#a(t,e,o){let i=`${o}px`;t.style.getPropertyValue(e)!==i&&t.style.setProperty(e,i)}#m(t,e,o,i=!1){let s=e.getBoundingClientRect(),r=o.getBoundingClientRect(),a=b=>Array.from(b.querySelectorAll("slot")).some(h=>h.assignedElements().length>0),p=i?a(e):s.width>0,d=i?a(o):r.width>0,c=(p?s.right:s.left)-t.left,l=t.right-(d?r.left:r.right),f=p&&d,u=f?Math.max(0,t.width-2*Math.max(c,l)):Math.max(0,t.width-c-l);return{maxWidth:u,position:f?t.width/2:c+u/2}}#d(){this.#t?.disconnect(),this.#t=null}#h(){return this.uiContainerRef.value}#v(){this.component.view&&(this.component.popupComponentEnabled||this.popupElement)&&(this.previousViewPopupEnabled??=this.component.view.popupEnabled,this.component.view.popupEnabled=!1)}#f(){this.component.view&&this.previousViewPopupEnabled!==void 0&&(this.component.view.popupEnabled=this.previousViewPopupEnabled,this.previousViewPopupEnabled=void 0)}async#b(t){if(this.#o(),!this.component.popupDisabled){this.#r++,this.#v();try{this.popupElement&&await this.openPopup({fetchFeatures:!0,location:{x:t.x,y:t.y}})}finally{this.#r--,this.#r||this.#f()}}}#g(t){this.#o(),!(!this.#l||!this.popupElement)&&queueMicrotask(()=>{let{focusRegion:e}=this.component.view;!t.defaultPrevented&&e&&this.openPopup({fetchFeatures:!0,location:e}).catch(()=>{})})}#w(t){let e=O(t.target,"arcgis-popup")[0];e?this.popupElement=e:this.popupElement!==this.#i&&(this.popupElement=void 0,this.#o())}#E(){return this.webGLError?S`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return H({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:t=>this.#w(t),webGLErrorElement:this.#E(),popupElement:this.popupRef})}};function rt(n){G((t,e)=>{let o=()=>{if(n.attributionMode!=="auto")return;let i=L(n.el);n.view.attributionMode!==i&&(n.view.attributionMode=i)};e.onLifecycle(()=>(o(),x(n.el,["class"],o))),e.onUpdate(i=>{i.has("attributionMode")&&n.attributionMode==="auto"&&o()})})}var at=R((n,t)=>{let e=w();return t.onLifecycle(()=>v(()=>{let{map:o}=n;if(!o||o.destroyed)return[];let i=[];return o.loadError&&i.push(o),o.basemap?.loadError&&i.push(o.basemap),o.ground.loadError&&i.push(o.ground),[...o.allLayers,...o.allTables].forEach(s=>{s.loadError&&i.push(s)}),i},o=>{o.length&&(n.loadErrorSources=o,e.emit())})),e}),pt=R((n,t)=>{let e=w();return t.onLifecycle(()=>v(()=>n.view?.readyState,o=>{(o==="map-content-error"||o==="rendering-error")&&e.emit()})),e});return{a:V,b:rt,c:at,d:pt}},"applications/Components/featureUtils","applications/Components/reactiveUtils","core/reactiveUtils","geometry/Point","Graphic",a)
@@ -0,0 +1,4 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as Ot}from"./OYG42YJL.js";import{$ as Xt,E as Wt,F as lt,Q as bt,S as Ht,T as Vt,Z as st,_ as wt,aa as Ft,ba as Ct,c as q,e as Pt,i as z,j as B,k as X,l as Nt,m as kt,n as Bt,na as Lt,o as dt,qa as Yt,xa as Dt,ya as xt,za as jt}from"./7WUY57GO.js";import{S as U,a as et,x as V}from"./AKSCONMP.js";import{a as mt,b as gt,d as F,e as D}from"./NJ3CJS46.js";import{K as Rt,X as Z,Y as zt,g as it,n as _t,p as T}from"./NXC47WWQ.js";import"./TAVTDQ6S.js";var pt=class extends zt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:jt.new(this._root,{}),width:F,height:F}),t("PieChart").setAll({radius:gt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:D}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:D,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:D,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:D}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:D,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:D,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:D}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:D,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:D,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),Vt(i,"fill",e,"alternativeBackground")}}};var G=class extends Dt{_afterNew(){this._defaultThemes.push(pt.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};G.className="PercentChart";G.classNames=Dt.classNames.concat([G.className]);var K=class extends Lt{constructor(){super(...arguments),this.slicesContainer=this.children.push(bt.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.labelsContainer=this.children.push(bt.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.ticksContainer=this.children.push(bt.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;T(this._dataItems,n=>{let r=n.get("valueWorking",0);e+=r,t+=Math.abs(r)}),T(this._dataItems,n=>{let r=n.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let h=r/t;t==0&&(h=0),n.setRaw("valuePercentTotal",h*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return et(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return et(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&T(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&T(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),T(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return et(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];it(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),n=e.get("value"),r=e.animate({key:"valueWorking",to:n,duration:t,easing:a});r&&s.push(r.waitForStop());let h=e.get("tick");h&&s.push(h.show(t));let u=e.get("label");u&&s.push(u.show(t));let l=e.get("slice");l&&s.push(l.show(t)),l.get("active")&&l.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return et(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});it(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let n=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:n});r&&s.push(r.waitForStop());let h=e.get("tick");h&&s.push(h.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let l=e.get("slice");l.hideTooltip(),l&&s.push(l.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");T(Wt,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),T(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),T(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),T(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),T(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};K.className="PercentSeries";K.classNames=Lt.classNames.concat([K.className]);var ot=class extends G{constructor(){super(...arguments),this._maxRadius=1,this._fits={},this._arcBounds={left:-1,right:1,top:-1,bottom:1}}_fitPie(e,t,i=0){let s=this._fits,a=s[e.uid];if(t==null){if(!a)return;delete s[e.uid]}else{if(a&&Math.abs(a.radius-t)<.5&&Math.abs(a.dx-i)<.5)return;s[e.uid]={radius:t,dx:i}}this.markDirtyKey("radius")}_fullRadius(){return V(this.get("radius",0),this._maxRadius)}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:D,y:D})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),n=this.get("innerRadius"),r=kt(0,0,s,a,1),h=t/(r.right-r.left),u=i/(r.bottom-r.top),l={left:0,right:0,top:0,bottom:0};if(n instanceof mt&&n.value!==0){let g=n.value,o=Math.min(h,u);g=Math.max(o*g,o-Math.min(i,t))/o,l=kt(0,0,s,a,g),this.setPrivateRaw("irModifyer",g/n.value)}else this.setPrivateRaw("irModifyer",1);r=Bt([r,l]),this._arcBounds=r;let f=this._maxRadius;this._maxRadius=Math.min(h,u);let d=this.radius(),y=0;this.series.each(g=>{let o=this._fits[g.uid];o&&!y&&(y=o.dx)}),this.seriesContainer.setAll({dy:-d*(r.bottom+r.top)/2,dx:-d*(r.right+r.left)/2+y}),(this.isDirty("startAngle")||this.isDirty("endAngle")||f!=this._maxRadius)&&this.series.each(g=>{g._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(g=>{g._markDirtyKey("innerRadius")})}radius(e){let t=this._fullRadius();Rt(this._fits,(s,a)=>{t=Math.min(t,a.radius)});let i=V(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,n=e.get("radius");return n!=null?i+V(n,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=V(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,n=e.get("innerRadius");return n!=null?i+V(n,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};ot.className="PieChart";ot.classNames=G.classNames.concat([ot.className]);var ht=class extends K{constructor(){super(...arguments),this._fitOn=!1,this._fitMode=0,this._labelBoxes={},this._fitFrames=0,this._fitSize="",this._relayout=0}_makeSlices(){return new q(Z.new({}),()=>Ot._new(this._root,{themeTags:U(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new q(Z.new({}),()=>Yt._new(this._root,{themeTags:U(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new q(Z.new({}),()=>xt._new(this._root,{themeTags:U(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?this._fitMode?e.chartContainer.innerHeight()/2-e.seriesContainer.get("dy",0):e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?this._fitMode?-e.chartContainer.innerHeight()/2-e.seriesContainer.get("dy",0):-e._maxRadius:-this.labelsContainer.maxHeight()/2}_beforeChanged(){super._beforeChanged(),this.get("autoLabels")&&!this._fitOn&&(this._fitOn=!0,this._disposers.push(this._root.events.on("frameended",()=>{this._autoFit()})))}_dispose(){let e=this.chart;e&&!e.isDisposed()&&e._fitPie(this),super._dispose()}_labelEndAngle(e){if(this.get("autoLabels")&&(this.isHidden()||this.isShowing()||this.isHiding())){let t=this.states.lookup("default"),i=t?t.get("endAngle"):void 0;if(i!=null)return i}return e}_autoFit(){let e=this.chart;if(!e||e.isDisposed()||this.isDisposed())return;let t=!this.get("autoLabels")||e.series.indexOf(this)<0?0:this.get("alignLabels")?1:2;if(t!=this._fitMode){this._fitMode=t,this._releaseLabels(e);return}if(!t)return;if(this._fitHoleLabels(e),_t(this._dataItems,r=>{let h=r.get("slice");return h!=null&&(h.isShowing()||h.isHiding())})){this._fitFrames=3,this.markDirty();return}let i=e.chartContainer,s=i.innerWidth(),a=i.innerHeight();if(!(s>0&&a>0&&e.radius()>0))return;let n=[s,a,this._root._fontLoads].join();this._fitFrames<=0&&this._relayout<=0&&n==this._fitSize||(this._fitSize=n,this._fitFrames--,this._relayout>0&&(this._relayout--,this.markDirtyKey("radius")),(t==1?this._fitAligned(e,s,a):this._fitAround(e,s,a))&&(this._relayout=2))}_releaseLabels(e){e._fitPie(this),T(this._dataItems,t=>{let i=t.get("label");i&&(this._showLabel(t,!0),this._fitLabel(i))}),this._fitHoleLabels(e,!0),this._labelBoxes={},this.markDirtyKey("radius")}_fitHoleLabels(e,t){let i=e.innerRadius(this)*e.getPrivate("irModifyer",1);i<0&&(i=e.radius(this)+i);let s=["maxWidth","maxHeight","oversizedBehavior"];T(e.series.indexOf(this)==0?[this,e.seriesContainer]:[this],a=>{a.children.each(n=>{let r=n;if(n.className!="Label"||n.isDisposed()||_t(s,y=>r.isUserSetting(y)&&!r.isComputedSetting(y)))return;let h=wt(r.text),u=h.widest,l=h.height,f=!t&&i>0&&u>0?1.8*i/Math.sqrt(u*u+l*l):1,d=f<.999;st(r,s[0],d?u*f+r.get("paddingLeft",0)+r.get("paddingRight",0):void 0,.5),st(r,s[1],d?l*f+r.get("paddingTop",0)+r.get("paddingBottom",0):void 0,.5),st(r,s[2],d?"fit":void 0)})})}_showLabel(e,t){let i=t?void 0:!0,s=e.get("tick"),a=st(e.get("label"),"forceHidden",i);return s!=null&&st(s,"forceHidden",i)||a}_labelGone(e,t){return e.isHidden()||t.isHidden()||t.isHiding()||t.get("forceHidden",!1)&&!t.isComputedSetting("forceHidden")}_templateValue(e,t){let i=e.template,s=i?i.get(t):void 0;return s??this.labels.template.get(t)}_fitWays(e){let t=s=>e.isUserSetting(s)&&!e.isComputedSetting(s),i=this._templateValue(e,"oversizedBehavior");return t("maxWidth")||t("oversizedBehavior")?0:i=="truncate"?1:i==null||i=="wrap"||i=="wrap-no-break"?2:0}_oneLine(e){let t=wt(e.text);return{full:t.width&&t.width+(t.count-1)*t.tallest*.3,line:t.tallest}}_fitLabel(e,t,i){let s;if(t!=null){t=Math.min(t,this._templateValue(e,"maxWidth")||1/0);let n=this._templateValue(e,"oversizedBehavior");n!="truncate"&&!(n&&i)&&(s=i?"wrap":"truncate")}let a=st(e,"maxWidth",t,.5);return st(e,"oversizedBehavior",s)||a}_countLines(e,t,i){let s=this._textWeight(e);if(i<=0||s<=0)return 1/0;let a=t/s,n=a/2,r=i*.95,h=1,u=0;return T(e.replace(/\[[^\[\]]*\]/g,"").split(/\s/),l=>{let f=this._textWeight(l)*a;f>r&&(h=1/0),u>0&&u+n+f>r&&(h++,u=0),u+=(u>0?n:0)+f}),h}_textWeight(e){e=e.replace(/\[[^\[\]]*\]/g,"");let t=0;for(let i=0;i<e.length;i++){let s=e.charAt(i);t+=` ijl.,:;'!|
3
+ `.indexOf(s)!=-1?.5:"frtI()[]-/".indexOf(s)!=-1?.65:"mwMW%@".indexOf(s)!=-1?1.5:s>="A"&&s<="Z"?1.2:1}return t}_labelBox(e,t,i,s){let a=Xt(e),n=this._labelBoxes[e.uid];n&&(n.font!==a||Math.abs((n.share==null?i:n.share)-i)>.1)&&(n=void 0);let r=e.isComputedSetting("maxWidth")||e.isComputedSetting("forceHidden")?void 0:s();if(r)r.font=a,r.share=i;else if(n&&(r=n,n.text!=t)){let h=this._textWeight(n.text),u=h>0?this._textWeight(t)/h:1,l=(n.right-n.left)*(u-1);r={text:t,left:n.left-l*i,right:n.right+l*(1-i),top:n.top,bottom:n.bottom,full:n.full*u,line:n.line,font:a,share:n.share}}return r}_fitAligned(e,t,i){let s=e._fullRadius(),a=Math.min(s,Math.min(t,i)/4),n=this.labelsContainer,r=40,h=[[],[]],u={},l=[0,0],f=[0,0],d=!1;T(this._dataItems,x=>{let _=x.get("label");if(!_||_.isDisposed())return;let p=_.text._getText(),c=_.get("paddingLeft",0)+_.get("paddingRight",0),k=_.get("paddingTop",0)+_.get("paddingBottom",0),C=this._labelGone(x,_),w=this._labelBox(_,p,0,()=>{let R=_.width();if(C||!(R>0))return;let A=_.adjustedLocalBounds(),S=A.bottom-A.top,P=this._oneLine(_);return{text:p,left:0,right:R,top:0,bottom:S,full:P.full||R-c,line:P.line||S-k}});if(w&&(u[_.uid]=w),C)return;if(!w){this._showLabel(x,!0),this._fitLabel(_),d=!0;return}let L=_.getPrivate("left")?0:1,M=_.get("radius",0)+n.get(L?"paddingRight":"paddingLeft",0);l[L]=Math.max(l[L],w.right+M),f[L]=Math.max(f[L],M),h[L].push({dataItem:x,label:_,box:w,value:Math.abs(x.get("value",0)),pad:c,padV:k,show:!1})}),this._labelBoxes=u;let y=e._arcBounds,g=s,o=t/2,m=o,b=[0,0];for(let x=0;x<3;x++){let _=l[0]+l[1],p=[l[0]>0?1:-y.left,l[1]>0?1:y.right];g=Math.max(a,Math.min(s,(t-_)/(p[0]+p[1])));let c=g*p[0],k=c+g*p[1];m=t/2-g*(y.left+y.right)/2,o=_+k>t?c+(t-k)*l[0]/_:Math.min(Math.max(m,l[0]+c),t-l[1]-g*p[1]),b[0]=o-g-f[0],b[1]=t-o-g-f[1];let C=!1;if(T(b,(w,L)=>{l[L]>0&&w<r&&(l[L]=0,C=!0)}),!C)break}let v=0;T(h,(x,_)=>{x.sort((c,k)=>k.value-c.value);let p=0;T(x,c=>{c.show=l[_]>0&&p+c.box.bottom<=i+.5,c.show&&(p+=c.box.bottom)}),T(x,c=>{let k=c.label,C=c.box,w,L=!1;if(c.show&&C.right>b[_]){let M=this._fitWays(k);w=b[_];let R=M>1?this._countLines(C.text,C.full,w-c.pad):1/0,A=Math.max(0,R*C.line+c.padV-C.bottom);R<=3&&p+A<=i+.5&&(L=!0,p+=A),M||(c.show=!1,p-=C.bottom)}c.show&&v++,this._showLabel(c.dataItem,c.show)&&(d=!0),this._fitLabel(k,c.show?w:void 0,L)&&(d=!0)})});let $=v?o-m:0;return e._fitPie(this,v&&(g<s-.5||Math.abs($)>.5)?g:void 0,$),d}_fitAround(e,t,i){let s=e.radius(),a=e._fullRadius(),n=Math.min(a,Math.min(t,i)/4),r=e.chartContainer.globalBounds(),h=this.labelsContainer,u=h.toGlobal({x:0,y:0}),l=h.toGlobal({x:1,y:0}).x-u.x,f=e._arcBounds,d={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},y=40,g=(p,c)=>Math.min(1+c>.01?2*(r.right-p)/(1+c):1/0,1-c>.01?2*(p-r.left)/(1-c):1/0),o=[],m={},b=!1,v=a;T(this._dataItems,p=>{let c=p.get("label");if(!c||c.isDisposed())return;let k=c.text._getText(),C=this._labelGone(p,c),w=c.get("labelAngle",0),L=X(w),M=z(w),R=c.baseRadius(),A=R==0?0:c.radius(),S=u.x+l*A*L,P=u.y+l*A*M,Y=c.get("textType"),N=Y=="adjusted"&&!c.get("inside"),O=c.get("centerX"),W=this._labelBox(c,k,N?(1-L)/2:O instanceof mt?O.value:0,()=>{let H=C?void 0:c._arcGlobalBounds()||c.text.globalBounds();if(!H||!(H.right>H.left))return;let ft=this._oneLine(c);return{text:k,left:H.left-S,right:H.right-S,top:H.top-P,bottom:H.bottom-P,full:ft.full*l||H.right-H.left,line:ft.line*l||H.bottom-H.top}});if(W&&(m[c.uid]=W),C)return;if(!W){this._showLabel(p,!0),this._fitLabel(c),b=!0;return}let j={left:S+W.left,right:S+W.right,top:P+W.top,bottom:P+W.bottom},tt=R/s,at=l*(tt*L-d.x),nt=l*(tt*M-d.y),Tt=(H,ft)=>{let vt=1/0;return T([[r.right-ft,at],[H-r.left,-at],[r.bottom-j.bottom,nt],[j.top-r.top,-nt]],Mt=>{let St=Y=="circular"?l*tt:Mt[1];St>.01&&(vt=Math.min(vt,s+Mt[0]/St))}),vt},At=H=>Tt(S-H*(1-L)/2,S+H*(1+L)/2),$t=N&&k.indexOf(`
4
+ `)==-1?this._fitWays(c):0,rt=Tt(j.left,j.right);rt<n-.5&&$t&&(rt=At(Math.max(y,(j.right-j.left)/2)),rt<n&&At(y)>=n&&(rt=n)),rt>=n-.5&&(v=Math.min(v,rt)),o.push({dataItem:p,label:c,value:Math.abs(p.get("value",0)),box:j,own:W,x:S,y:P,vx:at,vy:nt,grow:tt,cos:L,sin:M,ways:$t})}),this._labelBoxes=m,v=Math.max(v,n),b&&(v=Math.min(v,s)),e._fitPie(this,v<a-.5?v:void 0);let $=(p,c)=>{if(p.inner>=c.outer-.5||c.inner>=p.outer-.5)return!1;let k=Math.max(2,Math.min(p.outer-p.inner,c.outer-c.inner)*.3)/Math.max(1,Math.min(p.inner,c.inner))*Pt,C=(w,L)=>((L.start-w.start)%360+360)%360<w.end-w.start+k;return C(p,c)||C(c,p)},x=[],_=e.radius()-s;return o.sort((p,c)=>c.value-p.value),T(o,p=>{let c=p.label,k=p.own,C=p.x+_*p.vx,w=p.y+_*p.vy,L=c._arcSize(),M=L?c._arc(L,c.radius()+_*p.grow):void 0,R=N=>Ct(N,r)&&!_t(x,O=>M&&O.arc?$(M,O.arc):Ft(N,O.box)),A={left:C+k.left,right:C+k.right,top:w+k.top,bottom:w+k.bottom},S,P=!1;if(p.ways&&!Ct(A,r)){let N=g(C,p.cos),O=(c.get("paddingLeft",0)+c.get("paddingRight",0))*l,W=(c.get("paddingTop",0)+c.get("paddingBottom",0))*l,j=tt=>{let at=C+N/2*p.cos,nt=w+tt/2*p.sin;return{left:at-N/2,right:at+N/2,top:nt-tt/2,bottom:nt+tt/2}};A=void 0,N>=y&&N<k.right-k.left+O&&(S=N/l,A=j((p.ways>1?this._countLines(k.text,k.full,N-O):1/0)*k.line+W),P=A.bottom-A.top<=3*k.line+W+.5&&R(A),P||(A=j(k.bottom-k.top)))}let Y=A!=null&&R(A);Y&&x.push({box:A,arc:M}),this._showLabel(p.dataItem,Y),this._fitLabel(c,Y?S:void 0,P)}),b}_prepareChildren(){super._prepareChildren(),this._fitMode&&(this._fitFrames=3);let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),i=this.get("endAngle",e.get("endAngle",270)),s=i-t,a=t,n=this._labelEndAngle(i)-t,r=t,h=e.radius(this);this.setPrivateRaw("radius",h);let u=e.innerRadius(this)*e.getPrivate("irModifyer",1);u<0&&(u=h+u),T(this._dataItems,l=>{this.updateLegendValue(l);let f=s*l.get("valuePercentTotal")/100,d=l.get("slice");if(d){d.set("radius",h),d.set("innerRadius",u),d.set("startAngle",a),d.set("arc",f);let m=l.get("fill");d._setDefault("fill",m),d._setDefault("stroke",m);let b=l.get("fillPattern");d._setDefault("fillPattern",b)}let y=n*l.get("valuePercentTotal")/100,g=Nt(r+y/2);r+=y;let o=l.get("label");if(o&&(o.setPrivate("radius",h),o.setPrivate("innerRadius",u),o.set("labelAngle",g),o.get("textType")=="aligned")){let m=h+o.get("radius",0),b=h*z(g);g>90&&g<=270?(!o.isHidden()&&!o.isHiding()&&!o.get("forceHidden")&&this._lLabels.push({label:o,y:b}),m*=-1,m-=this.labelsContainer.get("paddingLeft",0),o.set("centerX",F),o.setPrivateRaw("left",!0)):(!o.isHidden()&&!o.isHiding()&&!o.get("forceHidden")&&this._rLabels.push({label:o,y:b}),m+=this.labelsContainer.get("paddingRight",0),o.set("centerX",0),o.setPrivateRaw("left",!1)),o.set("x",m),o.set("y",h*z(g))}a+=f,this._updateTick(l)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let n=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),h=X(r),u=z(r),l=this.labelsContainer,f=l.get("paddingLeft",0),d=l.get("paddingRight",0),y=0,g=0;y=i.x(),g=i.y();let o=[];if(y!=0||g!=0){if(i.get("textType")=="circular"){let b=i.radius()-i.get("paddingBottom",0),v=i.get("labelAngle",0);y=b*X(v),g=b*z(v)}let m=-d;i.getPrivate("left")&&(m=f),o=[{x:s.x()+n*h,y:s.y()+n*u},{x:y+m,y:g},{x:y,y:g}]}t.set("points",o)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),n=s.get("radius",0),r=s.get("startAngle",0),h=s.get("arc",0),u=e.get("locationX",.5),l=e.get("locationY",.5),f=r+h*u,d=a+(n-a)*l;t.setAll({x:X(f)*d,y:z(f)*d})}}}};ht.className="PieSeries";ht.classNames=K.classNames.concat([ht.className]);var J=class extends lt{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=V(this.get("cornerRadiusTL",0),s),n=V(this.get("cornerRadiusTR",0),s),r=V(this.get("cornerRadiusBR",0),s),h=V(this.get("cornerRadiusBL",0),s),u=this._trx,l=this._try,f=this._tlx,d=this._tly,y=this._brx,g=this._bry,o=this._blx,m=this._bly;l==d&&(l=l-.01),g==m&&(g=g-.01);let b=dt({x:f,y:d},{x:u,y:l}),v=dt({x:u,y:l},{x:y,y:g}),$=dt({x:y,y:g},{x:o,y:m}),x=dt({x:o,y:m},{x:f,y:d});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(d-l)/2),n=Math.min(n,Math.abs(d-l)/2),r=Math.min(r,Math.abs(m-g)/2),h=Math.min(h,Math.abs(m-g)/2)):(a=Math.min(a,Math.abs(f-u)/2),n=Math.min(n,Math.abs(f-u)/2),r=Math.min(r,Math.abs(o-y)/2),h=Math.min(h,Math.abs(o-y)/2));let _=f-a*B((b-x)/2)*X(x),p=d-a*B((b-x)/2)*z(x),c=f-a*B((x-b)/2)*X(b),k=d-a*B((x-b)/2)*z(b),C=u-n*B((v-b)/2)*X(b),w=l-n*B((v-b)/2)*z(b),L=u-n*B((b-v)/2)*X(v),M=l-n*B((b-v)/2)*z(v),R=y-r*B(($-v)/2)*X(v),A=g-r*B(($-v)/2)*z(v),S=y-r*B((v-$)/2)*X($),P=g-r*B((v-$)/2)*z($),Y=o-h*B((x-$)/2)*X($),N=m-h*B((x-$)/2)*z($),O=o-h*B(($-x)/2)*X(x),W=m-h*B(($-x)/2)*z(x);e.moveTo(c,k),e.lineTo(C,w),e.arcTo(u,l,L,M,n),e.quadraticCurveTo(this._cprx,this._cpry,R,A),e.arcTo(y,g,S,P,r),e.lineTo(Y,N),e.arcTo(o,m,O,W,h),e.quadraticCurveTo(this._cplx,this._cply,_,p),e.arcTo(f,d,c,k,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),n=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,h=a/2,u=n/2,l=-n/2,f=r+(l-r)*t,d=h+(u-h)*t;return{x:f+(d-f)*e,y:s*t}}else{let r=-a/2,h=a/2,u=n/2,l=-n/2,f=r+(l-r)*e,d=h+(u-h)*e;return{x:i*e,y:f+(d-f)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};J.className="FunnelSlice";J.classNames=lt.classNames.concat([J.className]);var Q=class extends K{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new q(Z.new({}),()=>J._new(this._root,{themeTags:U(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new q(Z.new({}),()=>Ht._new(this._root,{themeTags:U(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new q(Z.new({}),()=>xt._new(this._root,{themeTags:U(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new q(Z.new({}),()=>J._new(this._root,{themeTags:U(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e._setCAll({isMeasured:!0,position:"relative",width:gt(100),height:gt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(T(this.dataItems,i=>{let s=i.get("value");it(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this._sliceBox();this.get("orientation")=="vertical"?this._nextCoord=i.top+this.get("startLocation",0)*(i.bottom-i.top):this._nextCoord=i.left+this.get("startLocation",0)*(i.right-i.left),this.markDirtyBounds();let s=0;T(this._dataItems,a=>{this.updateLegendValue(a),a.set("index",s),s++;let n=a.get("slice"),r=a.get("tick"),h=a.get("label"),u=a.get("link"),l=a.get("fill"),f=a.get("fillPattern");n._setDefault("fill",l),n._setDefault("stroke",l),n._setDefault("fillPattern",f),u._setDefault("fill",l),u._setDefault("stroke",l);let d=a.get("value");it(d)&&(d==0&&this.get("ignoreZeroValues")?(n.setPrivate("visible",!1),r.setPrivate("visible",!1),h.setPrivate("visible",!1)):(n.setPrivate("visible",!0),r.setPrivate("visible",!0),h.setPrivate("visible",!0),this.decorateSlice(a),this.isLast(a)?u.setPrivate("visible",!1):a.isHidden()||u.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:F,x:F})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:D}),i._setCAll({centerX:D,x:0})):(t._setCAll({y:D}),i._setCAll({centerX:D,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),n=this._sliceBox(),r=n.right-n.left,h=n.bottom-n.top,u=r;t=="horizontal"&&(u=h);let l=this.getNextValue(e),f=e.get("value",0),d=Math.abs(e.get("valueWorking",f)),y=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),o=1;f!=0?o=d/Math.abs(f):e.isHidden()&&(o=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let m=d/g*u,b=(d-(d-l)*y)/g*u;i._setCAll({topWidth:m,bottomWidth:b,orientation:t}),a._setCAll({topWidth:b,bottomWidth:(d-(d-l))/g*u,orientation:t});let v=this.get("startLocation",0),$=this.get("endLocation",1);if(t=="vertical"){let x=a.height()*o;h=h*($-v)+x,i._setC("y",this._nextCoord);let _=Math.min(1e5,Math.max(0,h/this._count*o/this._total-x));i._setCAll({height:_,x:n.left+r/2});let p=this._nextCoord+_/2;s._setC("y",p),this._nextCoord+=_+x,a._setCAll({y:this._nextCoord-x,x:n.left+r/2})}else{let x=a.width()*o;r=r*($-v)+x,i._setC("x",this._nextCoord);let _=Math.min(1e5,Math.max(0,r/this._count*o/this._total-x));i._setCAll({width:_,y:n.top+h/2});let p=this._nextCoord+_/2;s._setC("x",p),this._nextCoord+=_+x,a._setCAll({x:this._nextCoord-x,y:n.top+h/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return et(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return et(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_sliceBox(){let e=this.slicesContainer;return{left:0,top:0,right:e.innerWidth(),bottom:e.innerHeight()}}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,n=this.slicesContainer,r=t.get("location",.5),h=a.width(),u=a.height(),l=a.get("paddingLeft",0),f=a.get("paddingRight",0),d=a.get("paddingTop",0),y=a.get("paddingBottom",0),g={x:0,y:0},o={x:0,y:0},m={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+n.x(),g.y+=s.y()+n.y(),this._opposite?(o.x=h,o.y=i.y(),m.x=h-l,m.y=o.y):(o.x=n.x()+n.width(),o.y=i.y(),m.x=o.x+h-i.width()-f,m.y=o.y)):(g=s.getPoint(.5,r),g.x+=s.x()+n.x(),g.y+=s.y()+n.y(),this._opposite?(o.y=u,o.x=i.x(),m.y=u-d,m.x=o.x):(o.y=n.y()+n.height(),o.x=i.x(),m.y=o.y+u-i.height()-y,m.x=o.x)),t.set("points",[g,o,m])}}else{let t=e.get("tick");t&&t._setC("points",[])}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};Q.className="FunnelSeries";Q.classNames=K.classNames.concat([Q.className]);var I=class extends Q{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),n=this.get("valueIs","area"),r=this.getPrivate("valueAbsoluteSum",0);if(r==0)return;let h=this.get("startLocation",0),u=this.get("endLocation",1),l=this.get("topWidth",0),f=this.get("bottomWidth",F),d=Math.abs(e.get("valueWorking",0)),y=e.get("value",0),g,o,m=this._sliceBox(),b=m.bottom-m.top,v=m.right-m.left,$=m.left,x=a.width(),_=a.height();t=="horizontal"&&([v,b]=[b,v],[x,_]=[_,x],$=m.top);let p=$+v/2,c=1;y!=0?c=d/Math.abs(y):e.isHidden()&&(c=1e-6),_*=c,b=b*(u-h)-_*(this._count*this._total-1);let k=V(l,v);it(this._nextSize)||(this._nextSize=k);let C=V(f,v),w=this._nextSize,L=Math.atan2(b,k-C),M=Math.tan(Math.PI/2-L);if(M==0&&(M=1e-8),n=="area"){let W=(k+C)/2*b*d/r,j=Math.abs(w*w-2*W*M);g=(w-Math.sqrt(j))/M,g>0?o=(2*W-g*w)/g:o=w}else g=b*d/r,o=w-g*M;let R=this._nextCoord+g/2,A=p,S=this._nextCoord,P=p,Y=S+g,N=this.get("alignLabels")&&s.get("opacity")>0;t=="vertical"?(s.set("y",R),N&&this._rLabels.push({label:s,y:R}),i.set("height",g)):(s.set("x",R),N&&this._hLabels.push({label:s,y:R}),[A,S]=[S,A],[P,Y]=[Y,P],i.set("width",g)),i.setAll({orientation:t,bottomWidth:o,topWidth:w,x:A,y:S}),a.setAll({orientation:t,x:P,y:Y,topWidth:o,bottomWidth:o}),this._nextSize=o,this._nextCoord+=g+_}};I.className="PyramidSeries";I.classNames=Q.classNames.concat([I.className]);var ct=class extends I{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=lt.new(this._root,{position:"absolute",x:D,y:D,centerX:D,centerY:D}),this.seriesGraphics=this.slicesContainer.children.push(lt.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:D,y:D,centerX:D,centerY:D})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",F),this._setC("bottomWidth",F),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,n=s.get("scale",1),r=s.localBounds(),h=r.right-r.left,u=r.bottom-r.top;n=Math.min(t/h,i/u),n!=1/0&&!Number.isNaN(n)&&(n!=s.get("scale")&&this.markDirtySize(),s.set("scale",n),s.set("x",t/2),s.set("y",i/2),a._setC("scale",n),a._setC("x",t/2),a._setC("y",i/2))}_sliceBox(){let e=super._sliceBox(),t=this.seriesMask.localBounds(),i=this.seriesMask.get("scale",1),s=(t.right-t.left)*i,a=(t.bottom-t.top)*i;if(!(s>0&&a>0))return e;let n=(e.left+e.right)/2,r=(e.top+e.bottom)/2;return{left:n-s/2,right:n+s/2,top:r-a/2,bottom:r+a/2}}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};ct.className="PictorialStackedSeries";ct.classNames=I.classNames.concat([ct.className]);var ut=class extends G{_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};ut.className="SlicedChart";ut.classNames=G.classNames.concat([ut.className]);export{pt as DefaultTheme,Q as FunnelSeries,J as FunnelSlice,G as PercentChart,K as PercentSeries,ct as PictorialStackedSeries,ot as PieChart,ht as PieSeries,I as PyramidSeries,ut as SlicedChart};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import i from"./YEPFWDQQ.js";import{a as R}from"./2JSC2QUL.js";import{a as g}from"./JB6WQEFJ.js";import{a as L}from"./NITCLRB6.js";import"./Y6WTYXVP.js";import h from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import e from"./ANB7YZCR.js";import d from"./3VFPLRD3.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import"./LXME6MU5.js";import{P as b,Q as w,R as f,T as v,_,b as c,x as p}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:n},Q,x,{fetchKnowledgeGraph:z},Z,{isAbortError:P},F,{d:V,e:I,f:E,g:A},{c:m,e:C},i,{b:u},{a:M,b:k,c:D,d:U}])=>{var O=m(x,{}),G=m(Q,{}),d=class extends f{constructor(){super(),this._attributionMode=null,this._mapRef=b(),this._uiController=new M(this),this._activeLoadAbortController=null,this.arcgisLoadError=D(this),this.arcgisViewReadyError=U(this),this._map=O(this),this._baseCypherQuery="",this._serviceUrl="",this._propItemId="",this.view=G(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.graphics=this.view.graphics,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.focusRegionVisible=this.view.focusRegionVisible,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.arcgisViewAnalysisViewCreate=i(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=i(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=i(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=p(),this.arcgisViewClick=i(()=>this.view,"click"),this.arcgisViewDoubleClick=i(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=i(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=i(()=>this.view,"focus-region-select"),this.arcgisViewDrag=i(()=>this.view,"drag"),this.arcgisViewHold=i(()=>this.view,"hold"),this.arcgisViewImmediateClick=i(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=i(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=i(()=>this.view,"key-down"),this.arcgisViewKeyUp=i(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=i(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=i(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=i(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=i(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=i(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=i(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=i(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=i(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=i(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=p(),this.arcgisViewVerticalTwoFingerDrag=i(()=>this.view,"vertical-two-finger-drag"),k(this),this.view.ui={components:[]}}static{this.properties={_map:16,_baseCypherQuery:16,_serviceUrl:16,_propItemId:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,focusAreas:0,graphics:0,hideAttribution:5,highlights:0,interacting:32,itemId:3,baseCypherQuery:3,serviceUrl:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,selectionManager:32,focusRegionVisible:5,focusRegionShortcutEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewpoint:0,zoom:9,loadErrorSources:0}}static{this.styles=[L,R]}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get aria(){return this.view?.aria}set aria(e){this.view&&(this.view.aria=e)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(e){this._attributionMode=e,e!=="auto"&&(this.view.attributionMode=e)}get center(){return this.view.center}set center(e){if(I(e,this._center))return;this._center=E(e);let t=A(e,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(e){this.extent?.equals(e)||(this.view.extent=e)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(e){this.map&&(this.map.focusAreas=e)}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(e){this.view.attributionVisible=!e}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(e){this._propItemId=e}get baseCypherQuery(){return this._baseCypherQuery}set baseCypherQuery(e){this._baseCypherQuery=e}get serviceUrl(){return this._serviceUrl}set serviceUrl(e){this._serviceUrl=e}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(e){this.view.scale=e}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(e){V(this.viewpoint,e)&&(this.view.viewpoint=e)}get zoom(){return this.view.zoom}set zoom(e){this.view.zoom=e}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(e,t){return this.view.fetchPopupFeatures(e,t)}async goTo(e,t){return await this.view.goTo(e,t)}async openPopup(e){await this._uiController.openPopup(e)}toMap(e){return this.view.toMap(e)}toScreen(e,t){return this.view.toScreen(e,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(e,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>e?.()).catch(t)}async whenAnalysisView(e){return await this.view.whenAnalysisView(e)}async whenLayerView(e){return await this.view.whenLayerView(e)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}willUpdate(e){let t=()=>{this._activeLoadAbortController?.abort();let a=new AbortController;return this._activeLoadAbortController=a,a};if(e.has("_propItemId")||e.has("_serviceUrl")||e.has("_baseCypherQuery")){if(e.has("_propItemId")&&this._propItemId||e.has("_propItemId")&&!this._serviceUrl)t(),s.reCreateAccessor(this._map,this),s.setPortalItem(this._map,this._propItemId),s.setMap(this.view,this._map);else if(!this._propItemId)if(this._serviceUrl&&!this._baseCypherQuery){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{let h=new s.WebLinkChart,o=new s.LinkChartLayer({url:l.url});o.load({signal:a?.signal});try{u(a.signal),h.add(o),this._setLinkChartAndZoom(h)}catch(y){if(!P(y))throw y}})}else if(this._baseCypherQuery&&this._serviceUrl){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{s.WebLinkChart.fromCypherQuery(l,new Z({openCypherQuery:this._baseCypherQuery}),void 0,{signal:a?.signal}).then(async h=>{try{u(a.signal),this._setLinkChartAndZoom(h)}catch(o){if(!P(o))throw o}})})}else!this._serviceUrl&&e.has("_serviceUrl")&&(t(),s.setMap(this.view,null))}}loaded(){let e=this;e.el.childElem=this._mapRef.value,this.view.container??=e.el.childElem,s.setLocalPublicMap(this,this._map),this.manager.onLifecycle(()=>[n(()=>this.map,t=>{t&&s.setLocalPrivateMap(this,t)},{initial:!0,sync:!0}),n(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),n(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),n(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}_setLinkChartAndZoom(e){s.reCreateAccessor(this._map,this),s.setLocalPrivateMap(this,e),s.setMap(this.view,e),this._map&&this.view.when(()=>{e.diagramNodesExtent&&this.view.goTo(e.diagramNodesExtent)})}renderMain(){return c`<div class=${v(g.base)} ${w(this._mapRef)}></div>`}render(){return c`${this.renderMain()}<section class=${v(g.containerUI)} ${w(this._uiController.uiContainerRef)}>${this._uiController.render()}</section>`}},s={fetchKnowledgeGraph:async r=>await z(r),WebLinkChart:x,LinkChartLayer:F,setMap:(r,e)=>{r.map=e},setLocalPrivateMap:(r,e)=>{r._map=e},setLocalPublicMap:(r,e)=>{r.map||=e},setPortalItem(r,e){r.portalItem={id:e}},reCreateAccessor:C};_("arcgis-link-chart",d);return{ArcgisLinkChart:d,exportsForTests:s}},"core/reactiveUtils","views/LinkChartView","WebLinkChart","rest/knowledgeGraphService","rest/knowledgeGraph/GraphQueryStreaming","core/promiseUtils","layers/LinkChartLayer",a,d,e,h,i)
2
+ import i from"./BLC3NFIQ.js";import{a as R}from"./JUTSSJJF.js";import{a as g}from"./JB6WQEFJ.js";import{a as L}from"./NITCLRB6.js";import"./Y6WTYXVP.js";import h from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import e from"./ANB7YZCR.js";import d from"./3VFPLRD3.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import"./LXME6MU5.js";import{P as b,Q as w,R as f,T as v,_,b as c,x as p}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:n},Q,x,{fetchKnowledgeGraph:z},Z,{isAbortError:P},F,{d:V,e:I,f:E,g:A},{c:m,e:C},i,{b:u},{a:M,b:k,c:D,d:U}])=>{var O=m(x,{}),G=m(Q,{}),d=class extends f{constructor(){super(),this._attributionMode=null,this._mapRef=b(),this._uiController=new M(this),this._activeLoadAbortController=null,this.arcgisLoadError=D(this),this.arcgisViewReadyError=U(this),this._map=O(this),this._baseCypherQuery="",this._serviceUrl="",this._propItemId="",this.view=G(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.graphics=this.view.graphics,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.focusRegionVisible=this.view.focusRegionVisible,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.arcgisViewAnalysisViewCreate=i(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=i(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=i(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=p(),this.arcgisViewClick=i(()=>this.view,"click"),this.arcgisViewDoubleClick=i(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=i(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=i(()=>this.view,"focus-region-select"),this.arcgisViewDrag=i(()=>this.view,"drag"),this.arcgisViewHold=i(()=>this.view,"hold"),this.arcgisViewImmediateClick=i(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=i(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=i(()=>this.view,"key-down"),this.arcgisViewKeyUp=i(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=i(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=i(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=i(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=i(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=i(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=i(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=i(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=i(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=i(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=p(),this.arcgisViewVerticalTwoFingerDrag=i(()=>this.view,"vertical-two-finger-drag"),k(this),this.view.ui={components:[]}}static{this.properties={_map:16,_baseCypherQuery:16,_serviceUrl:16,_propItemId:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,focusAreas:0,graphics:0,hideAttribution:5,highlights:0,interacting:32,itemId:3,baseCypherQuery:3,serviceUrl:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,selectionManager:32,focusRegionVisible:5,focusRegionShortcutEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewpoint:0,zoom:9,loadErrorSources:0}}static{this.styles=[L,R]}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get aria(){return this.view?.aria}set aria(e){this.view&&(this.view.aria=e)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(e){this._attributionMode=e,e!=="auto"&&(this.view.attributionMode=e)}get center(){return this.view.center}set center(e){if(I(e,this._center))return;this._center=E(e);let t=A(e,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(e){this.extent?.equals(e)||(this.view.extent=e)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(e){this.map&&(this.map.focusAreas=e)}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(e){this.view.attributionVisible=!e}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(e){this._propItemId=e}get baseCypherQuery(){return this._baseCypherQuery}set baseCypherQuery(e){this._baseCypherQuery=e}get serviceUrl(){return this._serviceUrl}set serviceUrl(e){this._serviceUrl=e}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(e){this.view.scale=e}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(e){V(this.viewpoint,e)&&(this.view.viewpoint=e)}get zoom(){return this.view.zoom}set zoom(e){this.view.zoom=e}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(e,t){return this.view.fetchPopupFeatures(e,t)}async goTo(e,t){return await this.view.goTo(e,t)}async openPopup(e){await this._uiController.openPopup(e)}toMap(e){return this.view.toMap(e)}toScreen(e,t){return this.view.toScreen(e,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(e,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>e?.()).catch(t)}async whenAnalysisView(e){return await this.view.whenAnalysisView(e)}async whenLayerView(e){return await this.view.whenLayerView(e)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}willUpdate(e){let t=()=>{this._activeLoadAbortController?.abort();let a=new AbortController;return this._activeLoadAbortController=a,a};if(e.has("_propItemId")||e.has("_serviceUrl")||e.has("_baseCypherQuery")){if(e.has("_propItemId")&&this._propItemId||e.has("_propItemId")&&!this._serviceUrl)t(),s.reCreateAccessor(this._map,this),s.setPortalItem(this._map,this._propItemId),s.setMap(this.view,this._map);else if(!this._propItemId)if(this._serviceUrl&&!this._baseCypherQuery){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{let h=new s.WebLinkChart,o=new s.LinkChartLayer({url:l.url});o.load({signal:a?.signal});try{u(a.signal),h.add(o),this._setLinkChartAndZoom(h)}catch(y){if(!P(y))throw y}})}else if(this._baseCypherQuery&&this._serviceUrl){let a=t();s.fetchKnowledgeGraph(this._serviceUrl).then(l=>{s.WebLinkChart.fromCypherQuery(l,new Z({openCypherQuery:this._baseCypherQuery}),void 0,{signal:a?.signal}).then(async h=>{try{u(a.signal),this._setLinkChartAndZoom(h)}catch(o){if(!P(o))throw o}})})}else!this._serviceUrl&&e.has("_serviceUrl")&&(t(),s.setMap(this.view,null))}}loaded(){let e=this;e.el.childElem=this._mapRef.value,this.view.container??=e.el.childElem,s.setLocalPublicMap(this,this._map),this.manager.onLifecycle(()=>[n(()=>this.map,t=>{t&&s.setLocalPrivateMap(this,t)},{initial:!0,sync:!0}),n(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),n(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),n(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}_setLinkChartAndZoom(e){s.reCreateAccessor(this._map,this),s.setLocalPrivateMap(this,e),s.setMap(this.view,e),this._map&&this.view.when(()=>{e.diagramNodesExtent&&this.view.goTo(e.diagramNodesExtent)})}renderMain(){return c`<div class=${v(g.base)} ${w(this._mapRef)}></div>`}render(){return c`${this.renderMain()}<section class=${v(g.containerUI)} ${w(this._uiController.uiContainerRef)}>${this._uiController.render()}</section>`}},s={fetchKnowledgeGraph:async r=>await z(r),WebLinkChart:x,LinkChartLayer:F,setMap:(r,e)=>{r.map=e},setLocalPrivateMap:(r,e)=>{r._map=e},setLocalPublicMap:(r,e)=>{r.map||=e},setPortalItem(r,e){r.portalItem={id:e}},reCreateAccessor:C};_("arcgis-link-chart",d);return{ArcgisLinkChart:d,exportsForTests:s}},"core/reactiveUtils","views/LinkChartView","WebLinkChart","rest/knowledgeGraphService","rest/knowledgeGraph/GraphQueryStreaming","core/promiseUtils","layers/LinkChartLayer",a,d,e,h,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{X as e}from"./AMRGLUBB.js";import"./UDXDE3LW.js";import{Y as o}from"./6SL7YNKF.js";import"./TAVTDQ6S.js";var r=class extends o{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944),warning:e.fromHex(15909424)})}};var b=r;export{b as default};
2
+ import{X as e}from"./AKSCONMP.js";import"./NJ3CJS46.js";import{Y as o}from"./NXC47WWQ.js";import"./TAVTDQ6S.js";var r=class extends o{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944),warning:e.fromHex(15909424)})}};var b=r;export{b as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a,b as e}from"./JB6WQEFJ.js";import{P as r,Q as t,T as i,X as n,a as o,b as l}from"./IW3P4TGM.js";var x=o`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-space-lg);--arcgis-internal-panel-actions-gap: var(--calcite-space-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:block;position:relative;height:100%;width:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);container:arcgis-map-container/size;contain:layout;--arcgis-layout-overlay-center-max-width: var(--arcgis-internal-top-max-width);--arcgis-view-top-left-direction: column;--arcgis-view-top-right-direction: column;--arcgis-view-bottom-left-direction: row;--arcgis-view-bottom-right-direction: row-reverse;--arcgis-internal-attribution-space-top: 0px}:host(:dir(rtl)){--arcgis-view-bottom-left-direction: row-reverse;--arcgis-view-bottom-right-direction: row}::slotted(:is([closed],[closed="true"])){display:none}:dir(rtl) ::slotted(:not(arcgis-swipe)){direction:rtl}::slotted(*){--esri-widget-padding-x: var(--calcite-space-lg);--esri-widget-padding-y: var(--calcite-space-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-attachments,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-coordinate-conversion,arcgis-coordinate-conversion-next,arcgis-daylight,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-elevation-profile,arcgis-expand,arcgis-feature-form,arcgis-features,arcgis-feature-table,arcgis-filter-builder,arcgis-fullscreen,arcgis-grid-controls,arcgis-home,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-link-chart-layout-switcher,arcgis-locate,arcgis-exploratory-analysis,arcgis-navigation-toggle,arcgis-oriented-imagery-viewer,arcgis-print,arcgis-search,arcgis-selection-list,arcgis-selection-toolbar,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-time-slider,arcgis-time-zone-label,arcgis-track,arcgis-utility-network-associations,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-video-player,arcgis-volume-measurement,arcgis-weather,arcgis-zoom)){box-shadow:var(--arcgis-internal-box-shadow);--arcgis-internal-padding: var(--esri-widget-padding);--arcgis-internal-padding-md: var(--calcite-space-md)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend:not([card-style-layout]),arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-internal-panel-overflow: hidden;--arcgis-internal-panel-min-width: 0}::slotted(:is(arcgis-exploratory-analysis)){width:var(--arcgis-internal-exploratory-analysis-width, fit-content);transition:max-height .25s ease-in-out;overflow-y:auto;--arcgis-internal-panel-overflow: hidden;--arcgis-internal-panel-min-width: 0}.arcgis-map{position:relative;z-index:0}.arcgis-map-container-ui{position:absolute;inset:var(--calcite-spacing-none);padding:var(--calcite-spacing-none);z-index:var(--calcite-z-index);pointer-events:none;background:none}.arcgis-map-container-ui__element{display:flex;flex-direction:column;pointer-events:none;width:max-content;max-width:100%}.arcgis-map-container-ui__element .esri-widget--panel{min-width:var(--arcgis-internal-panel-width)}.arcgis-map-container-ui__element-popup,.arcgis-map-container-ui__element-default{pointer-events:none;max-width:100%;position:absolute;display:block;inset:var(--calcite-spacing-none);width:100%;::slotted(:not(arcgis-swipe,arcgis-presentation)){pointer-events:auto}}.arcgis-map-container-ui__top{position:absolute;top:var(--calcite-spacing-none);left:var(--calcite-spacing-none);right:var(--calcite-spacing-none);display:flex;flex-direction:column;align-items:center;height:max-content;margin-top:var(--calcite-space-lg);padding-top:var(--arcgis-internal-layout-overlay-space-top)}.arcgis-map-container-ui__top-left-column{position:absolute;top:100%;left:var(--calcite-spacing-none);display:flex;flex-direction:var(--arcgis-view-top-left-direction);gap:var(--calcite-space-sm-plus);justify-content:flex-start;align-items:flex-start;margin-left:var(--calcite-space-lg);padding-left:var(--arcgis-internal-layout-overlay-space-left);padding-right:var(--calcite-space-sm-plus);::slotted(*){max-width:var(--arcgis-internal-top-max-width)}::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column wrap}}.arcgis-map-container-ui__top-left-column:dir(rtl){align-items:flex-end;::slotted(arcgis-floor-filter){--arcgis-internal-row-direction: row-reverse}}.arcgis-map-container-ui__top-center-column{position:absolute;top:100%;left:var(--arcgis-internal-top-center-position, 50%);transform:translate(-50%);display:flex;flex-direction:column;justify-content:center;align-items:center;::slotted(*){max-width:var(--arcgis-layout-overlay-center-max-width);min-width:0}}.arcgis-map-container-ui__top-right-column{position:absolute;top:100%;right:var(--calcite-spacing-none);display:flex;flex-direction:var(--arcgis-view-top-right-direction);gap:var(--calcite-space-sm-plus);align-items:flex-end;margin-right:var(--calcite-space-lg);padding-left:var(--calcite-space-sm-plus);padding-right:var(--arcgis-internal-layout-overlay-space-right);::slotted(*){max-width:var(--arcgis-internal-top-max-width)}::slotted(arcgis-expand){--arcgis-internal-sketch-justify-content: flex-end}}.arcgis-map-container-ui__top-right-column:dir(rtl){align-items:flex-start;::slotted(arcgis-floor-filter){--arcgis-internal-row-direction: row}}@container arcgis-map-container style(--arcgis-view-top-left-direction: row){.arcgis-map-container-ui__top-left-column{align-items:flex-start}.arcgis-map-container-ui__top-left-column:dir(rtl){align-items:flex-start}}@container arcgis-map-container style(--arcgis-view-top-left-direction: row-reverse){.arcgis-map-container-ui__top-left-column{align-items:flex-start}.arcgis-map-container-ui__top-left-column:dir(rtl){align-items:flex-start}}@container arcgis-map-container style(--arcgis-view-top-right-direction: row){.arcgis-map-container-ui__top-right-column{align-items:flex-start}}@container arcgis-map-container style(--arcgis-view-top-right-direction: row-reverse){.arcgis-map-container-ui__top-right-column{align-items:flex-start}}.arcgis-map-container-ui__element-top{max-width:calc(100% - 2 * var(--calcite-space-lg) - var(--arcgis-internal-layout-overlay-space-left) - var(--arcgis-internal-layout-overlay-space-right));>slot{display:flex;gap:var(--calcite-space-sm-plus);max-width:var(--arcgis-layout-overlay-center-max-width)}::slotted(*){min-width:0;margin-bottom:var(--calcite-space-sm-plus)}}.arcgis-map-container-ui__element-top-center{>slot{display:flex;gap:var(--calcite-space-sm-plus);max-width:var(--arcgis-internal-top-center-max-width, 100%)}}.arcgis-map-container-ui__element-top-left,.arcgis-map-container-ui__element-top-start{display:contents;width:auto;align-items:start;justify-items:left;>slot{display:contents;flex-direction:var(--arcgis-view-top-left-direction);gap:var(--calcite-space-sm-plus)}::slotted(arcgis-expand){--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: calc(-1 * var(--calcite-space-xs))}::slotted(:is(arcgis-floor-filter,arcgis-expand)){--arcgis-internal-collapse-icon-flip: scaleX(-1)}}.arcgis-map-container-ui__element-top-left{top:var(--calcite-spacing-none);left:var(--calcite-spacing-none);::slotted(arcgis-sketch){--sketch-pad-flex-flow: wrap}}.arcgis-map-container-ui__element-top-right,.arcgis-map-container-ui__element-top-end{position:relative;display:contents;width:auto;align-items:start;justify-items:right;>slot{display:contents;flex-direction:var(--arcgis-view-top-right-direction);gap:var(--calcite-space-sm-plus)}::slotted(arcgis-coordinate-conversion){--arcgis-internal-coordinate-conversion-flex-direction: column-reverse}::slotted(arcgis-expand){--arcgis-internal-expand-icon-number-spacing-left: calc(-1 * var(--calcite-space-xs));--arcgis-internal-expand-icon-number-spacing-right: none}::slotted(arcgis-floor-filter){--arcgis-internal-row-direction: row-reverse}::slotted(arcgis-sketch){--sketch-pad-flex-flow: row-reverse wrap}::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column wrap-reverse}}.arcgis-map-container-ui__element-top-right{margin-left:auto}.arcgis-map-container-ui__element-top-start{position:relative;::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column wrap}}.arcgis-map-container-ui__element-top-start:dir(rtl){--arcgis-internal-sketch-justify-content: flex-start;::slotted(arcgis-sketch){--sketch-pad-flex-flow: row-reverse wrap-reverse}}.arcgis-map-container-ui__element-top-end:dir(rtl){--arcgis-internal-sketch-justify-content: flex-end}.arcgis-map-container-ui__bottom{position:absolute;right:var(--calcite-spacing-none);bottom:var(--calcite-spacing-none);left:var(--calcite-spacing-none);display:flex;flex-direction:column;align-items:center;height:max-content;margin-bottom:calc(var(--arcgis-internal-attribution-space-top) + var(--calcite-space-lg));padding-bottom:var(--arcgis-internal-layout-overlay-space-bottom)}.arcgis-map-container-ui__bottom-left-row{position:absolute;bottom:100%;left:var(--calcite-spacing-none);display:flex;flex-direction:var(--arcgis-view-bottom-left-direction);gap:var(--calcite-space-sm-plus);align-items:flex-end;max-width:100%;margin-left:var(--calcite-space-lg);padding-left:var(--arcgis-internal-layout-overlay-space-left);padding-right:var(--calcite-space-sm-plus);::slotted(arcgis-floor-filter){--arcgis-internal-floor-filter-column-direction: column-reverse;--arcgis-internal-floor-filter-button-border-width: 0 0 1px}::slotted(*){max-width:var(--arcgis-internal-top-max-width)}}.arcgis-map-container-ui__bottom-left-row:dir(rtl){::slotted(arcgis-floor-filter){--arcgis-internal-row-direction: row-reverse}}.arcgis-map-container-ui__bottom-center-row{position:absolute;bottom:100%;left:var(--arcgis-internal-bottom-center-position, 50%);transform:translate(-50%);display:flex;flex-direction:row-reverse;align-items:flex-end;max-width:100%;::slotted(*){max-width:var(--arcgis-layout-overlay-center-max-width);min-width:0}}.arcgis-map-container-ui__bottom-right-row{position:absolute;bottom:100%;right:var(--calcite-spacing-none);display:flex;flex-direction:var(--arcgis-view-bottom-right-direction);gap:var(--calcite-space-sm-plus);align-items:flex-end;max-width:100%;margin-right:var(--calcite-space-lg);padding-left:var(--calcite-space-sm-plus);padding-right:var(--arcgis-internal-layout-overlay-space-right);::slotted(arcgis-floor-filter){--arcgis-internal-floor-filter-column-direction: column-reverse;--arcgis-internal-floor-filter-button-border-width: 0 0 1px}::slotted(*){max-width:var(--arcgis-internal-top-max-width)}::slotted(arcgis-expand){--arcgis-internal-sketch-justify-content: flex-end}::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column-reverse wrap-reverse}}.arcgis-map-container-ui__bottom-right-row:dir(rtl){::slotted(arcgis-floor-filter){--arcgis-internal-row-direction: row}}.arcgis-map-container-ui__element-bottom{max-width:calc(100% - 2 * var(--calcite-space-lg) - var(--arcgis-internal-layout-overlay-space-left) - var(--arcgis-internal-layout-overlay-space-right));>slot{display:flex;align-items:flex-end;gap:var(--calcite-space-sm-plus);max-width:var(--arcgis-layout-overlay-center-max-width)}::slotted(*){min-width:0;margin-top:var(--calcite-space-sm-plus)}}.arcgis-map-container-ui__element-bottom-center{>slot{display:flex;align-items:flex-end;gap:var(--calcite-space-sm-plus);max-width:var(--arcgis-internal-bottom-center-max-width, 100%)}}.arcgis-map-container-ui__element-top,.arcgis-map-container-ui__element-top-center,.arcgis-map-container-ui__element-bottom-center,.arcgis-map-container-ui__element-bottom{::slotted(:is(arcgis-compass,arcgis-fullscreen,arcgis-home,arcgis-locate,arcgis-track,arcgis-zoom)){flex-shrink:0}}.arcgis-map-container-ui__element-bottom-left,.arcgis-map-container-ui__element-bottom-start{bottom:var(--calcite-spacing-none);left:var(--calcite-spacing-none);display:contents;width:auto;align-items:end;justify-items:left;>slot{display:contents;flex-direction:var(--arcgis-view-bottom-left-direction);align-items:flex-start;gap:var(--calcite-space-sm-plus)}::slotted(arcgis-coordinate-conversion){--arcgis-internal-coordinate-conversion-flex-direction: column-reverse}::slotted(arcgis-expand){--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: calc(-1 * var(--calcite-space-xs))}::slotted(:is(arcgis-floor-filter,arcgis-expand)){--arcgis-internal-collapse-icon-flip: scaleX(-1)}::slotted(arcgis-sketch){--sketch-pad-flex-flow: wrap-reverse}::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column-reverse wrap}::slotted(arcgis-floor-filter){--arcgis-internal-floor-filter-align-items: flex-end}}.arcgis-map-container-ui__element-bottom-left:dir(rtl),.arcgis-map-container-ui__element-bottom-start:dir(rtl){>slot{align-items:flex-end}}@container arcgis-map-container style(--arcgis-view-bottom-left-direction: row){.arcgis-map-container-ui__element-bottom-left,.arcgis-map-container-ui__element-bottom-start{>slot{align-items:flex-end}}}@container arcgis-map-container style(--arcgis-view-bottom-left-direction: row-reverse){.arcgis-map-container-ui__element-bottom-left,.arcgis-map-container-ui__element-bottom-start{>slot{align-items:flex-end}}}@container arcgis-map-container style(--arcgis-view-bottom-left-direction: column){.arcgis-map-container-ui__bottom-left-row{align-items:flex-start}.arcgis-map-container-ui__bottom-left-row:dir(rtl){align-items:flex-end}}@container arcgis-map-container style(--arcgis-view-bottom-left-direction: column-reverse){.arcgis-map-container-ui__bottom-left-row{align-items:flex-start}.arcgis-map-container-ui__bottom-left-row:dir(rtl){align-items:flex-end}}.arcgis-map-container-ui__element-bottom-left{::slotted(arcgis-view-popover:dir(rtl)){order:-1;margin-right:calc(var(--calcite-space-2xl) - var(--calcite-space-sm-plus))}}.arcgis-map-container-ui__element-bottom-right,.arcgis-map-container-ui__element-bottom-end{bottom:var(--calcite-spacing-none);right:var(--calcite-spacing-none);display:contents;width:auto;align-items:end;justify-items:right;margin-left:auto;>slot{display:contents;flex-direction:var(--arcgis-view-bottom-right-direction);align-items:flex-end;gap:var(--calcite-space-sm-plus)}::slotted(arcgis-coordinate-conversion){--arcgis-internal-coordinate-conversion-flex-direction: column-reverse}::slotted(arcgis-expand){--arcgis-internal-expand-icon-number-spacing-left: calc(-1 * var(--calcite-space-xs));--arcgis-internal-expand-icon-number-spacing-right: none}::slotted(arcgis-sketch){--sketch-pad-flex-flow: row-reverse wrap-reverse}::slotted(arcgis-sketch[layout="vertical"]){--sketch-pad-flex-flow: column-reverse wrap-reverse}::slotted(arcgis-floor-filter){--arcgis-internal-floor-filter-align-items: flex-end;--arcgis-internal-row-direction: row-reverse}}@container arcgis-map-container style(--arcgis-view-bottom-right-direction: column){.arcgis-map-container-ui__element-bottom-right:dir(rtl),.arcgis-map-container-ui__element-bottom-end:dir(rtl){>slot{align-items:flex-start}}}@container arcgis-map-container style(--arcgis-view-bottom-right-direction: column-reverse){.arcgis-map-container-ui__element-bottom-right:dir(rtl),.arcgis-map-container-ui__element-bottom-end:dir(rtl){>slot{align-items:flex-start}}}@container arcgis-map-container style(--arcgis-view-bottom-right-direction: column){.arcgis-map-container-ui__bottom-right-row:dir(rtl){align-items:flex-start}}@container arcgis-map-container style(--arcgis-view-bottom-right-direction: column-reverse){.arcgis-map-container-ui__bottom-right-row:dir(rtl){align-items:flex-start}}.arcgis-map-container-ui__element-bottom-right{::slotted(arcgis-view-popover:dir(rtl)){order:-1;margin-left:calc(var(--calcite-space-2xl) - var(--calcite-space-sm-plus))}}.arcgis-map-container-ui__element-bottom-start{::slotted(:dir(rtl)){--arcgis-internal-sketch-justify-content: flex-start}}.arcgis-map-container-ui__element-bottom-end{::slotted(:dir(rtl)){--arcgis-internal-sketch-justify-content: flex-end}}.arcgis-map-container-ui__element>*{pointer-events:auto}@container arcgis-map-container (height >= 0){::slotted(arcgis-sketch){--responsive-toolbar-vert-width: var(--calcite-spacing-none);--responsive-toolbar-vert-height: min(100vh - 120px, 100cqh - 120px);--responsive-toolbar-horiz-width: min(100vw - 60px, 100cqw - 60px);--responsive-toolbar-horiz-height: var(--calcite-spacing-none)}}@container arcgis-map-container (max-height: 544px) or (max-width: 544px){::slotted(:is(arcgis-floor-filter)){--arcgis-internal-floor-filter-button-display: none;--arcgis-internal-floor-filter-menu-width: 225px}}@container arcgis-map-container (max-height: 499.99px){.arcgis-map-container-ui__element>*{--arcgis-internal-expand-max-height: var(--arcgis-internal-panel-height-sm);--arcgis-internal-panel-height: var(--arcgis-internal-panel-height-sm)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){max-height:var(--arcgis-internal-panel-height-sm)}}@container arcgis-map-container (min-height: 500px){.arcgis-map-container-ui__element>*{--arcgis-internal-expand-max-height: var(--arcgis-internal-panel-height-md);--arcgis-internal-panel-height: var(--arcgis-internal-panel-height-md)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){max-height:var(--arcgis-internal-panel-height-md)}::slotted(:is(arcgis-floor-filter)){--arcgis-internal-floor-filter-menu-max-height: 320px;--arcgis-internal-floor-filter-levels-max-height: 320px}}@container arcgis-map-container (min-height: 768px){.arcgis-map-container-ui__element>*{--arcgis-internal-expand-max-height: var(--arcgis-internal-panel-height-lg);--arcgis-internal-panel-height: var(--arcgis-internal-panel-height-lg)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){max-height:var(--arcgis-internal-panel-height-lg)}::slotted(:is(arcgis-floor-filter)){--arcgis-internal-floor-filter-menu-max-height: 420px;--arcgis-internal-floor-filter-levels-max-height: 420px}}@container arcgis-map-container (min-height: 992px){.arcgis-map-container-ui__element>*{--arcgis-internal-expand-max-height: var(--arcgis-internal-panel-height-lg);--arcgis-internal-panel-height: var(--arcgis-internal-panel-height-lg)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){max-height:var(--arcgis-internal-panel-height-lg)}}@container arcgis-map-container (min-height: 1200px){.arcgis-map-container-ui__element>*{--arcgis-internal-expand-max-height: var(--arcgis-internal-panel-height-xl);--arcgis-internal-panel-height: var(--arcgis-internal-panel-height-xl)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){max-height:var(--arcgis-internal-panel-height-xl)}}@container arcgis-map-container (min-width: 544px){::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width)}}@container arcgis-map-container (min-width: 768px){::slotted(:is(arcgis-legend[card-style-layout="auto"])){--arcgis-internal-legend-width: auto}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width)}}@container arcgis-map-container (min-width: 992px){::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width)}}@container arcgis-map-container (min-width: 1200px){::slotted(:is(arcgis-basemap-gallery)){width:var(--arcgis-internal-basemap-gallery-width-lg)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-layer-list,arcgis-basemap-layer-list-next,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-catalog-layer-list-next,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-filter-builder,arcgis-layer-list,arcgis-layer-list-next,arcgis-line-of-sight,arcgis-print,arcgis-selection-list,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-table-list-next,arcgis-utility-network-trace,arcgis-utility-network-trace-analysis,arcgis-utility-network-trace-analysis,arcgis-utility-network-validate-network-topology,arcgis-version-management,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width)}}`;function w(){return{topCenter:r(),topLeft:r(),topRight:r(),bottomCenter:r(),bottomLeft:r(),bottomRight:r()}}function b(g){let{direction:c,popupComponentEnabled:m=!1,handlePopupSlotChange:p,webGLErrorElement:d,popupElement:u,slotGroupRefs:s}=g;return l`<div class=${i({[a.containerElementPopupSlot]:!0})}>${m?l`<arcgis-popup ${t(u)}></arcgis-popup>`:null}<slot name=${e.popup} @slotchange=${p}></slot></div><div class=${i({[a.containerElementDefaultSlot]:!0})}>${d}<slot></slot></div><div class=${i({[a.containerTop]:!0})}><div class=${i({[a.containerElement]:!0,[a.containerElementTop]:!0})}><slot name=${e.top}></slot></div><div class=${i({[a.containerTopLeftColumn]:!0})} ${t(s?.topLeft)}><div class=${i({[a.containerElement]:!0,[a.containerElementTopLeft]:!0})}><slot name=${e.topLeft}></slot></div><div class=${i({[a.containerElement]:!0,[a.containerElementTopStart]:!0})}><slot name=${(c==="ltr"?e.topStart:e.topEnd)??n}></slot></div></div><div class=${i({[a.containerTopCenterColumn]:!0})} ${t(s?.topCenter)}><div class=${i({[a.containerElement]:!0,[a.containerElementTopCenter]:!0})}><slot name=${e.topCenter}></slot></div></div><div class=${i({[a.containerTopRightColumn]:!0})} ${t(s?.topRight)}><div class=${i({[a.containerElement]:!0,[a.containerElementTopRight]:!0})}><slot name=${e.topRight}></slot></div><div class=${i({[a.containerElement]:!0,[a.containerElementTopEnd]:!0})}><slot name=${(c==="ltr"?e.topEnd:e.topStart)??n}></slot></div></div></div><div class=${i({[a.containerBottom]:!0})}><div class=${i({[a.containerElement]:!0,[a.containerElementBottom]:!0})}><slot name=${e.bottom}></slot></div><div class=${i({[a.containerBottomLeftRow]:!0})} ${t(s?.bottomLeft)}><div class=${i({[a.containerElement]:!0,[a.containerElementBottomLeft]:!0})}><slot name=${e.bottomLeft}></slot></div><div class=${i({[a.containerElement]:!0,[a.containerElementBottomStart]:!0})}><slot name=${(c==="ltr"?e.bottomStart:e.bottomEnd)??n}></slot></div></div><div class=${i({[a.containerBottomCenterRow]:!0})} ${t(s?.bottomCenter)}><div class=${i({[a.containerElement]:!0,[a.containerElementBottomCenter]:!0})}><slot name=${e.bottomCenter}></slot></div></div><div class=${i({[a.containerBottomRightRow]:!0})} ${t(s?.bottomRight)}><div class=${i({[a.containerElement]:!0,[a.containerElementBottomRight]:!0})}><slot name=${e.bottomRight}></slot></div><div class=${i({[a.containerElement]:!0,[a.containerElementBottomEnd]:!0})}><slot name=${(c==="ltr"?e.bottomEnd:e.bottomStart)??n}></slot></div></div></div>`}export{x as a,w as b,b as c};