Shopby/view/adminhtml/ui_component/amshopby_group_listing.xml:106: ShopbyPage/Model/Config/Source/Category.recovery.php:107:$_R['images/addfolder.gif'] = 'R0lGODlhGAAYAOZ/APr6+vj4+P/1xfPZqe3Rn+rOma/hN57VM//rjP/khfTbq+/TobXmOafbNuS2TozTJ5TOMYPTCYDALP/daf/+9v/tnPLy8vHdt//icPf39+3t7//pkqjOe7Xdf//kiJ69UZHYGHzPAMHpf7vpR//ffZHXGKHeMv/olP/pheLi4v/Zcvber4rHLm+zJ+/v7//qiv38/dz4ZcPtT6LfKne5Kf/52+aoMvz8/aHdM+jLl/7gff7+/uvr7OnMl7TmPv39/f/VZvb29u/Vo5HYF/7eev/ZaujKlf/88P/qmv/rn//smfXhu6HdNPfesP/30//41OXl5v/yu7vpRv/kdf/igP/mgP/tov/skf39/v/ecf/wsrPmPv/77f/ljPz8+//UXOvPnOzPnPPkyfXcrfXdrv/BQPbcrf/MU//2xOjo6ezs7v38/P/uqfDVpP/2zPLXpv/ojP/1x9zc3Nra3P/0vf/ZYv/vo//TW//wp+anMf/PVP/BP//KTf/FR////////yH5BAEAAH8ALAAAAAAYABgAAAf/gH+Cg4SFhoeIgyKLIoYuPBqRkho8LoMMMTEMhmp+np+fPIMGMjIGhjxYN14/N2swMDtzHbQNPlsNtB0AgmleGcDBGUEAByNSIzMzxyMHKYJQARbT1NQQJSDY2SBDEHKCKUsX4+TkLCZMOBERJiY4LN9/KxT09fYc+BIhIRL4HE2CyHARQKegwYN0aOyjQQfNkRWCxtTAQ7GiRYotHjxoQbGGGUEKntgZSbLkyA8oP4x0okDQADcVYsqcqeQKghcoULxAEGeAoDcCNggdugFOlSkYkipNquWNICFRPEiVSiXLhKtYs05g00bQAi0kwhIpUqes2bNmrSwQRICNChVFVb7cmUu3bl0kBASBSQLkjp6/gAML1nMijKACJ87wWcy4sePFXQoIypGgj+XLmDNfTtBDkBEie0KLHk06dBkdRgSJcWAjj+vXsGPnseFATKLbuHMfCgQAOw=='; design/frontend/Infortis/base/Magento_Catalog/templates/product/price/amount/default.phtml:46: getAttributeText('stukprijs') == 'Ja'){ echo __("/stuk"); } else { ?>p/m Binary file code-bk.zip matches code/Swissup/AddressFieldManager/composer.json:2: "name": "swissup/module-address-field-manager", code/Swissup/AddressFieldManager/composer.json:14: "swissup/module-field-manager": "^1.2.12" code/Swissup/AddressFieldManager/README.md:22:composer require swissup/module-address-field-manager:dev-master --prefer-source code/Swissup/Stickyfill/composer.json:2: "name": "swissup/module-stickyfill", code/Swissup/Stickyfill/README.md:13:composer require swissup/module-stickyfill code/Swissup/SubscribeAtCheckout/composer.json:2: "name": "swissup/module-subscribe-at-checkout", code/Swissup/SubscribeAtCheckout/composer.json:13: "swissup/module-checkout": "^1.5.1" code/Swissup/FieldManager/composer.json:2: "name": "swissup/module-field-manager", code/Swissup/FieldManager/composer.json:14: "swissup/module-core": "^1.12.9" code/Swissup/Checkout/composer.json:2: "name": "swissup/module-checkout", code/Swissup/Checkout/composer.json:8: "swissup/module-core": "^1.12.1" code/Swissup/Checkout/README.md:18:composer require swissup/module-checkout --prefer-source code/Swissup/Firecheckout/etc/marketplace/installer.xml:5: swissup/module-firecheckout code/Swissup/Firecheckout/composer.json:2: "name": "swissup/module-firecheckout", code/Swissup/Firecheckout/composer.json:13: "swissup/module-checkout": "^1.5.1", code/Swissup/Firecheckout/composer.json:14: "swissup/module-firecheckout-integrations": "^1.4.4", code/Swissup/Firecheckout/composer.json:15: "swissup/module-rtl": "^1.3.4", code/Swissup/Firecheckout/composer.json:16: "swissup/module-stickyfill": "^1.2.2", code/Swissup/Firecheckout/composer.json:17: "swissup/module-tippyjs": "^6.0.0", code/Swissup/Firecheckout/composer.json:18: "swissup/module-codemirror": "^1.1.7" code/Swissup/Firecheckout/README.md:20:composer require swissup/module-firecheckout:dev-master --prefer-source code/Swissup/CheckoutCart/composer.json:2: "name": "swissup/module-checkout-cart", code/Swissup/CheckoutCart/composer.json:12: "swissup/module-checkout": "^1.5.1", code/Swissup/CheckoutCart/composer.json:13: "swissup/module-rtl": "^1.3.4" code/Swissup/CheckoutCart/README.md:22:composer require swissup/module-checkout-cart:dev-master --prefer-source code/Swissup/Codemirror/composer.json:2: "name": "swissup/module-codemirror", code/Swissup/Codemirror/README.md:14:composer require swissup/module-codemirror code/Swissup/Tippyjs/composer.json:2: "name": "swissup/module-tippyjs", code/Swissup/Tippyjs/README.md:9:composer require swissup/module-tippyjs code/Swissup/DeliveryDate/composer.json:2: "name": "swissup/module-delivery-date", code/Swissup/DeliveryDate/composer.json:8: "swissup/module-checkout": "^1.5.1" code/Swissup/DeliveryDate/README.md:24:composer require swissup/module-delivery-date:dev-master --prefer-source code/Swissup/CheckoutSuccess/composer.json:2: "name": "swissup/module-checkout-success", code/Swissup/CheckoutSuccess/composer.json:12: "swissup/module-checkout": "^1.5.1", code/Swissup/CheckoutSuccess/composer.json:13: "swissup/module-codemirror": "^1.1.7" code/Swissup/Orderattachment/composer.json:2: "name": "swissup/module-orderattachment", code/Swissup/Orderattachment/composer.json:8: "swissup/module-checkout": "^1.5.1" code/Swissup/Orderattachment/README.md:29:composer require swissup/module-orderattachment:dev-master --prefer-source code/Swissup/CheckoutRegistration/composer.json:2: "name": "swissup/module-checkout-registration", code/Swissup/CheckoutRegistration/composer.json:8: "swissup/module-checkout": "^1.5.1" code/Swissup/CheckoutRegistration/README.md:30:composer require swissup/module-checkout-registration:dev-master --prefer-source code/Swissup/FirecheckoutIntegrations/composer.json:2: "name": "swissup/module-firecheckout-integrations", code/Swissup/CustomerFieldManager/composer.json:2: "name": "swissup/module-customer-field-manager", code/Swissup/CustomerFieldManager/composer.json:14: "swissup/module-field-manager": "^1.2.9" code/Swissup/Recaptcha/composer.json:2: "name": "swissup/module-recaptcha", code/Swissup/Recaptcha/composer.json:9: "swissup/module-core": "^1.12.16" code/Swissup/Recaptcha/README.md:22:composer require swissup/module-recaptcha code/Swissup/Core/Console/Command/ModuleCommand.php:111: } elseif (in_array('swissup/module-' . $moduleCode, $packages)) { code/Swissup/Core/Console/Command/ModuleCommand.php:112: $moduleCode = 'swissup/module-' . $moduleCode; code/Swissup/Core/composer.json:2: "name": "swissup/module-core", code/Swissup/Core/README.md:9:composer require swissup/module-core code/Swissup/Geoip/Model/Provider/MaxmindDatabase.php:11: const FILENAME_CONFIG = 'geoip/main/filename'; // deprecated code/Swissup/Geoip/Model/Provider/MaxmindService.php:9: const ACCOUNT_ID_CONFIG = 'geoip/main/maxmind_service_account_id'; code/Swissup/Geoip/Model/Provider/MaxmindService.php:10: const LICENSE_KEY_CONFIG = 'geoip/main/maxmind_service_license_key'; code/Swissup/Geoip/Model/Provider/Ipstack.php:12: const API_KEY_CONFIG = 'geoip/main/ipstack_api_key'; code/Swissup/Geoip/Helper/Data.php:12: const ENABLE_CONFIG = 'geoip/main/enable'; code/Swissup/Geoip/Helper/Data.php:13: const PROVIDER_CONFIG = 'geoip/main/provider'; code/Swissup/Geoip/composer.json:2: "name": "swissup/module-geoip", code/Swissup/Geoip/composer.json:15: "swissup/module-checkout": "^1.5.1", code/Swissup/Geoip/Block/Adminhtml/System/Config/DownloadMaxmindDb.php:58: 'url' => $this->_urlBuilder->getUrl('swissup_geoip/maxmind/download'), code/Swissup/Geoip/README.md:24:composer require swissup/module-geoip --prefer-source code/Swissup/AddressAutocomplete/composer.json:2: "name": "swissup/module-address-autocomplete", code/Swissup/AddressAutocomplete/composer.json:13: "swissup/module-checkout": "^1.5.1", code/Swissup/AddressAutocomplete/composer.json:14: "swissup/module-codemirror": "^1.1.6" code/Swissup/AddressAutocomplete/README.md:22:composer require swissup/module-address-autocomplete:dev-master --prefer-source code/Swissup/CheckoutFields/composer.json:2: "name": "swissup/module-checkout-fields", code/Swissup/CheckoutFields/composer.json:13: "swissup/module-checkout": "^1.5.1" code/Swissup/Taxvat/composer.json:2: "name": "swissup/module-taxvat", code/Swissup/Taxvat/composer.json:8: "swissup/module-checkout": "^1.5.0" code/Swissup/Rtl/composer.json:2: "name": "swissup/module-rtl", code/Swissup/Rtl/README.md:45:composer require swissup/module-rtl code/Swissup/Rtl/README.md:57: "swissup/module-rtl": "^1.3.0" Binary file code/amasty-old.zip matches Binary file code/Mirasvit-old.zip matches Binary file code/Amasty_20221201.zip matches Binary file code/Amsty-20-oct-2020.zip matches Binary file code/Amasty-3.0.14.zip matches Binary file code/Swissup01.zip matches code/Amasty/CheckoutCore/view/adminhtml/web/vendor/amcharts/amcharts.js:304:l=a.lineColor;f=d.line(c,k,g,l,a.lineAlpha,a.lineThickness,a.dashLength);e=k;h=g;q=k[1]-k[0];p=g[1]-g[0];0===q&&(q=.01);0===p&&(p=.01);m=q/Math.abs(q);n=p/Math.abs(p);p=90*Math.PI/180-Math.asin(q/(q*p/Math.abs(q*p)*Math.sqrt(Math.pow(q,2)+Math.pow(p,2))));q=Math.abs(5*Math.cos(p));p=Math.abs(5*Math.sin(p));e.push(k[1]-m*p,k[0]-m*p);h.push(g[1]+n*q,g[0]+n*q);g=d.polygon(c,e,h,l,.005,0);c=c.set([g,f]);c.translate(b.marginLeftReal,b.marginTopReal);b.trendLinesSet.push(c);d.setCN(b,f,"trend-line");d.setCN(b, code/Mirasvit/Report/view/adminhtml/web/ui/vendor.min.js:2:(self.webpackChunkapp=self.webpackChunkapp||[]).push([[736],{3496:(e,t)=>{"use strict";t.Hy=function(e){var t=1;return function(){return""+e+t++}}},4823:(e,t,n)=>{"use strict";n.d(t,{S:()=>v});var r=n(7294),i=n(2467),o=n(1667),a=n(3697),s={Item:"Polaris-ActionList__Item",active:"Polaris-ActionList--active",destructive:"Polaris-ActionList--destructive",disabled:"Polaris-ActionList--disabled",Prefix:"Polaris-ActionList__Prefix",Suffix:"Polaris-ActionList__Suffix",Text:"Polaris-ActionList__Text"},l=n(3854),u=n(6324),c=n(5528),d=n(4849),h=n(7283),f=n(5044),p=n(2896);function m({id:e,badge:t,content:n,accessibilityLabel:o,helpText:m,url:g,onAction:y,onMouseEnter:v,icon:O,image:_,prefix:b,suffix:w,disabled:x,external:k,destructive:S,ellipsis:M,active:T,role:P}){const L=(0,a.AK)(s.Item,x&&s.disabled,S&&s.destructive,T&&s.active);let D=null;b?D=r.createElement("span",{className:s.Prefix},b):O?D=r.createElement("span",{className:s.Prefix},r.createElement(d.J,{source:O})):_&&(D=r.createElement("span",{role:"presentation",className:s.Prefix,style:{backgroundImage:`url(${_}`}}));const Y=M&&n?`${n}…`:n,C=m?r.createElement(r.Fragment,null,r.createElement(h.x,null,Y),r.createElement(f.x,{color:"subdued",as:"span"},m)):Y,E=t&&r.createElement("span",{className:s.Suffix},r.createElement(l.C,{status:t.status},t.content)),A=w&&r.createElement(h.x,null,r.createElement("span",{className:s.Suffix},w)),Q=r.createElement("span",{className:s.Text},C),R=r.createElement(c.g,{blockAlign:"center",gap:"4"},D,Q,E,A),j=T?r.createElement(p.R.ScrollTo,null):null,$=g?r.createElement(u.H,{id:e,url:x?null:g,className:L,external:k,"aria-label":o,onClick:x?null:y,role:P},R):r.createElement("button",{id:e,type:"button",className:L,disabled:x,"aria-label":o,onClick:y,onMouseUp:i.i8,role:P,onMouseEnter:v},R);return r.createElement(r.Fragment,null,j,$)}function g({section:e,hasMultipleSections:t,isFirst:n,actionRole:i,onActionAnyItem:o}){const a=e.items.map((({content:e,helpText:t,onAction:n,...a},s)=>{return r.createElement("li",{key:`${e}-${s}`,role:"menuitem"===i?"presentation":void 0},r.createElement(m,Object.assign({content:e,helpText:t,role:i,onAction:(l=n,()=>{l&&l(),o&&o()})},a)));var l})),s=e.title?r.createElement(h.x,{paddingBlockStart:"4",paddingInlineStart:"4",paddingBlockEnd:"2",paddingInlineEnd:"4"},r.createElement(f.x,{as:"p",variant:"headingXs"},e.title)):null;let l;switch(i){case"option":l="presentation";break;case"menuitem":l=t?"presentation":"menu";break;default:l=void 0}const u=r.createElement(r.Fragment,null,s,r.createElement(h.x,Object.assign({as:"ul",padding:"2"},t&&{paddingBlockStart:"0"},l&&{role:l},{tabIndex:t?void 0:-1}),a));return t?r.createElement(h.x,Object.assign({as:"li",role:"presentation"},!n&&{borderBlockStart:"divider"},!e.title&&{paddingBlockStart:"2"}),u):u}var y=n(8235);function v({items:e,sections:t=[],actionRole:n,onActionAnyItem:a}){let s=[];const l=(0,r.useRef)(null);e?s=[{items:e},...t]:t&&(s=t);const u=s.length>1,c=u&&"menuitem"===n?"menu":void 0,d=u&&"menuitem"===n?-1:void 0,f=s.map(((e,t)=>e.items.length>0?r.createElement(g,{key:e.title||t,section:e,hasMultipleSections:u,actionRole:n,onActionAnyItem:a,isFirst:0===t}):null)),p="menuitem"===n?r.createElement(r.Fragment,null,r.createElement(y.n,{keyEvent:"keydown",keyCode:o.s.DownArrow,handler:e=>{e.preventDefault(),l.current&&e.target&&l.current.contains(e.target)&&(0,i.YU)(l.current,e.target)}}),r.createElement(y.n,{keyEvent:"keydown",keyCode:o.s.UpArrow,handler:e=>{e.preventDefault(),l.current&&e.target&&l.current.contains(e.target)&&(0,i.ml)(l.current,e.target)}})):null;return r.createElement(h.x,{as:u?"ul":"div",ref:l,role:c,tabIndex:d},p,f)}v.Item=m},6901:(e,t,n)=>{"use strict";n.d(t,{w:()=>N});var r=n(7294),i=n(6077),o=n(4077);const a="data-lock-scrolling",s="data-lock-scrolling-hidden",l="data-lock-scrolling-wrapper";let u=0;class c{constructor(){this.scrollLocks=0,this.locked=!1}registerScrollLock(){this.scrollLocks+=1,this.handleScrollLocking()}unregisterScrollLock(){this.scrollLocks-=1,this.handleScrollLocking()}handleScrollLocking(){if(o.s)return;const{scrollLocks:e}=this,{body:t}=document,n=t.firstElementChild;0===e?(t.removeAttribute(a),t.removeAttribute(s),n&&n.removeAttribute(l),window.scroll(0,u),this.locked=!1):e>0&&!this.locked&&(u=window.pageYOffset,t.setAttribute(a,""),function(){const{body:e}=document;return e.scrollHeight>e.clientHeight}()||t.setAttribute(s,""),n&&(n.setAttribute(l,""),n.scrollTop=u),this.locked=!0)}resetScrollPosition(){u=0}}class d{constructor(e){this.idGeneratorFactory=void 0,this.idGenerators={},this.idGeneratorFactory=e}nextId(e){return this.idGenerators[e]||(this.idGenerators[e]=this.idGeneratorFactory(e)),this.idGenerators[e]()}}function h(e=""){let t=1;return()=>`Polaris${e}${t++}`}const f=/\[(.*?)\]|(\w+)/g;function p(e,t,n){if(null==e)return;const r=Array.isArray(t)?t:function(e){const t=[];let n;for(;n=f.exec(e);){const[,e,r]=n;t.push(e||r)}return t}(t);let i=e;for(let e=0;e{const r=n.substring(1,n.length-1);if(void 0===t[r]){const n=JSON.stringify(t);throw new Error(`Error in translation for key '${e}'. No replacement found for key '${r}'. The following replacements were passed: '${n}'`)}return t[r]})):n:""}translationKeyExists(e){return Boolean(p(this.translation,e))}}const O=(0,r.createContext)(void 0);var _=n(9139),b=n(554),w=n(9702),x=n(6098),k=n(9600),S=n(3573),M=n(2815),T=n(7996),P=n(9003);const L=function({children:e}){const[t,n]=(0,r.useState)((0,M.RY)().matches),i=(0,r.useCallback)((0,S.D)((()=>{t!==(0,M.RY)().matches&&n(!t)}),40,{trailing:!0,leading:!0,maxWait:40}),[t]);(0,r.useEffect)((()=>{n((0,M.RY)().matches)}),[]);const o=(0,r.useMemo)((()=>({isNavigationCollapsed:t})),[t]);return r.createElement(T.o.Provider,{value:o},r.createElement(P.h,{event:"resize",handler:i}),e)};var D=n(5217);function Y(e,t){return r.createElement("div",{id:"PolarisPortalsContainer",ref:t})}const C=(0,r.forwardRef)(Y);function E({children:e,container:t}){const[n,i]=(0,r.useState)(null),o=null!=t?t:n,a=(0,r.useMemo)((()=>({container:o})),[o]);return r.createElement(D.j.Provider,{value:a},e,t?null:r.createElement(C,{ref:i}))}var A=n(4872);function Q({children:e}){const[t,n]=(0,r.useState)([]),i=(0,r.useCallback)((e=>{n((t=>[...t,e]))}),[]),o=(0,r.useCallback)((e=>{let t=!0;return n((n=>{const r=[...n],i=r.indexOf(e);return-1===i?t=!1:r.splice(i,1),r})),t}),[]),a=(0,r.useMemo)((()=>({trapFocusList:t,add:i,remove:o})),[i,t,o]);return r.createElement(A.K.Provider,{value:a},e)}var R=n(2835);const j={tooltip:0};function $({children:e}){const[t,n]=(0,r.useState)(j),i=(0,r.useCallback)((e=>{n((t=>({...t,[e]:t[e]+1})))}),[]),o=(0,r.useCallback)((e=>{n((t=>({...t,[e]:t[e]-1})))}),[]),a=(0,r.useMemo)((()=>({presenceList:Object.entries(t).reduce(((e,t)=>{const[n,r]=t;return{...e,[n]:r>=1}}),{}),presenceCounter:t,addPresence:i,removePresence:o})),[i,o,t]);return r.createElement(R.o.Provider,{value:a},e)}class N extends r.Component{constructor(e){super(e),this.stickyManager=void 0,this.scrollLockManager=void 0,this.uniqueIdFactory=void 0,this.setBodyStyles=()=>{document.body.style.backgroundColor="var(--p-background)",document.body.style.color="var(--p-text)"},this.stickyManager=new i.s,this.scrollLockManager=new c,this.uniqueIdFactory=new d(h);const{i18n:t,linkComponent:n}=this.props;this.state={link:n,intl:new v(t)}}componentDidMount(){null!=document&&(this.stickyManager.setContainer(document),this.setBodyStyles())}componentDidUpdate({i18n:e,linkComponent:t}){const{i18n:n,linkComponent:r}=this.props;n===e&&r===t||this.setState({link:r,intl:new v(n)})}render(){const{children:e,features:t={}}=this.props,{intl:n,link:i}=this.state;return r.createElement(O.Provider,{value:t},r.createElement(_.O.Provider,{value:n},r.createElement(b.q.Provider,{value:this.scrollLockManager},r.createElement(w.p.Provider,{value:this.stickyManager},r.createElement(x.d.Provider,{value:this.uniqueIdFactory},r.createElement(k.F.Provider,{value:i},r.createElement(L,null,r.createElement(E,null,r.createElement(Q,null,r.createElement($,null,e))))))))))}}},6021:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r=n(7294),i=n(3697),o={Backdrop:"Polaris-Backdrop",transparent:"Polaris-Backdrop--transparent",belowNavigation:"Polaris-Backdrop--belowNavigation"},a=n(8281),s=n(554);function l(e){const t=function(){const e=(0,r.useContext)(s.q);if(!e)throw new a.U("No ScrollLockManager was provided.");return e}();return(0,r.useEffect)((()=>(t.registerScrollLock(),()=>{t.unregisterScrollLock()})),[t]),null}function u(e){const{onClick:t,onTouchStart:n,belowNavigation:a,transparent:s,setClosing:u}=e,c=(0,i.AK)(o.Backdrop,a&&o.belowNavigation,s&&o.transparent);return r.createElement(r.Fragment,null,r.createElement(l,null),r.createElement("div",{className:c,onClick:()=>{u&&u(!1),t&&t()},onTouchStart:n,onMouseDown:()=>{u&&u(!0)}}))}},3854:(e,t,n)=>{"use strict";n.d(t,{C:()=>g});var r=n(7294),i=n(3697);const o=(0,r.createContext)(!1);var a={Badge:"Polaris-Badge",statusSuccess:"Polaris-Badge--statusSuccess",statusInfo:"Polaris-Badge--statusInfo",statusAttention:"Polaris-Badge--statusAttention",statusWarning:"Polaris-Badge--statusWarning",statusCritical:"Polaris-Badge--statusCritical",statusNew:"Polaris-Badge--statusNew",withinFilter:"Polaris-Badge--withinFilter",Icon:"Polaris-Badge__Icon",PipContainer:"Polaris-Badge__PipContainer"};let s,l;function u(e,t,n){let r="",i="";if(!t&&!n)return"";switch(t){case l.Incomplete:r=e.translate("Polaris.Badge.PROGRESS_LABELS.incomplete");break;case l.PartiallyComplete:r=e.translate("Polaris.Badge.PROGRESS_LABELS.partiallyComplete");break;case l.Complete:r=e.translate("Polaris.Badge.PROGRESS_LABELS.complete")}switch(n){case s.Info:i=e.translate("Polaris.Badge.STATUS_LABELS.info");break;case s.Success:i=e.translate("Polaris.Badge.STATUS_LABELS.success");break;case s.Warning:i=e.translate("Polaris.Badge.STATUS_LABELS.warning");break;case s.Critical:i=e.translate("Polaris.Badge.STATUS_LABELS.critical");break;case s.Attention:i=e.translate("Polaris.Badge.STATUS_LABELS.attention");break;case s.New:i=e.translate("Polaris.Badge.STATUS_LABELS.new")}return!n&&t?r:n&&!t?i:e.translate("Polaris.Badge.progressAndStatus",{progressLabel:r,statusLabel:i})}!function(e){e.Info="info",e.Success="success",e.Warning="warning",e.Critical="critical",e.Attention="attention",e.New="new"}(s||(s={})),function(e){e.Incomplete="incomplete",e.PartiallyComplete="partiallyComplete",e.Complete="complete"}(l||(l={}));var c={Pip:"Polaris-Badge-Pip",statusInfo:"Polaris-Badge-Pip--statusInfo",statusSuccess:"Polaris-Badge-Pip--statusSuccess",statusNew:"Polaris-Badge-Pip--statusNew",statusAttention:"Polaris-Badge-Pip--statusAttention",statusWarning:"Polaris-Badge-Pip--statusWarning",statusCritical:"Polaris-Badge-Pip--statusCritical",progressIncomplete:"Polaris-Badge-Pip--progressIncomplete",progressPartiallyComplete:"Polaris-Badge-Pip--progressPartiallyComplete",progressComplete:"Polaris-Badge-Pip--progressComplete"},d=n(5954),h=n(5044);function f({status:e,progress:t="complete",accessibilityLabelOverride:n}){const o=(0,d.Q)(),a=(0,i.AK)(c.Pip,e&&c[(0,i.OZ)("status",e)],t&&c[(0,i.OZ)("progress",t)]),s=n||u(o,t,e);return r.createElement("span",{className:a},r.createElement(h.x,{as:"span",visuallyHidden:!0},s))}var p=n(4849);const m="medium";function g({children:e,status:t,progress:n,icon:s,size:l=m,statusAndProgressLabelOverride:c}){const g=(0,d.Q)(),y=(0,r.useContext)(o),v=(0,i.AK)(a.Badge,t&&a[(0,i.OZ)("status",t)],s&&a.icon,l&&l!==m&&a[(0,i.OZ)("size",l)],y&&a.withinFilter),O=c||u(g,n,t);let _=Boolean(O)&&r.createElement(h.x,{as:"span",visuallyHidden:!0},O);return n&&!s&&(_=r.createElement("span",{className:a.PipContainer},r.createElement(f,{progress:n,status:t,accessibilityLabelOverride:O}))),r.createElement("span",{className:v},_,s&&r.createElement("span",{className:a.Icon},r.createElement(p.J,{source:s})),e&&r.createElement(h.x,{as:"span",variant:"bodySm",fontWeight:"new"===t?"medium":void 0},e))}g.Pip=f},6314:(e,t,n)=>{"use strict";n.d(t,{j:()=>w});var r=n(7294),i=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{fillRule:"evenodd",d:"M0 10a10 10 0 1 0 20 0 10 10 0 0 0-20 0zm15.2-1.8a1 1 0 0 0-1.4-1.4l-4.8 4.8-2.3-2.3a1 1 0 0 0-1.4 1.4l3 3c.4.4 1 .4 1.4 0l5.5-5.5z"}))},o=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{fillRule:"evenodd",d:"M10 20c5.514 0 10-4.486 10-10s-4.486-10-10-10-10 4.486-10 10 4.486 10 10 10zm1-6a1 1 0 1 1-2 0v-4a1 1 0 1 1 2 0v4zm-1-9a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"}))},a=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{fillRule:"evenodd",d:"M10 0c-5.514 0-10 4.486-10 10s4.486 10 10 10 10-4.486 10-10-4.486-10-10-10zm-1 6a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4zm1 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"}))},s=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{d:"M11.768.768a2.5 2.5 0 0 0-3.536 0l-7.464 7.464a2.5 2.5 0 0 0 0 3.536l7.464 7.464a2.5 2.5 0 0 0 3.536 0l7.464-7.464a2.5 2.5 0 0 0 0-3.536l-7.464-7.464zm-2.768 5.232a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0v-4zm2 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}))},l=n(7953),u=n(3697);const c=(0,r.createContext)(!1);var d=n(9585),h={Banner:"Polaris-Banner",statusCritical:"Polaris-Banner--statusCritical",PrimaryAction:"Polaris-Banner__PrimaryAction",Button:"Polaris-Banner__Button",statusWarning:"Polaris-Banner--statusWarning",statusInfo:"Polaris-Banner--statusInfo",statusSuccess:"Polaris-Banner--statusSuccess",ContentWrapper:"Polaris-Banner__ContentWrapper",withinContentContainer:"Polaris-Banner--withinContentContainer",Dismiss:"Polaris-Banner__Dismiss",keyFocused:"Polaris-Banner--keyFocused",withinPage:"Polaris-Banner--withinPage",Ribbon:"Polaris-Banner__Ribbon",hasDismiss:"Polaris-Banner--hasDismiss",SecondaryAction:"Polaris-Banner__SecondaryAction",Text:"Polaris-Banner__Text",pressed:"Polaris-Banner--pressed",loading:"Polaris-Banner--loading",Spinner:"Polaris-Banner__Spinner"},f=n(8123),p=n(5954),m=n(8401),g=n(7283),y=n(1072),v=n(4849),O=n(5044),_=n(7932),b=n(6324);const w=(0,r.forwardRef)((function({icon:e,action:t,secondaryAction:n,title:b,children:w,status:k,onDismiss:S,stopAnnouncements:M,hideIcon:T},P){const L=(0,r.useContext)(d.O),D=(0,p.Q)(),{wrapperRef:Y,handleKeyUp:C,handleBlur:E,handleMouseUp:A,shouldShowFocus:Q}=function(e){const t=(0,r.useRef)(null),[n,i]=(0,r.useState)(!1);(0,r.useImperativeHandle)(e,(()=>({focus:()=>{var e;null===(e=t.current)||void 0===e||e.focus(),i(!0)}})),[]);return{wrapperRef:t,handleKeyUp:e=>{e.target===t.current&&i(!0)},handleBlur:()=>i(!1),handleMouseUp:e=>{e.currentTarget.blur(),i(!1)},shouldShowFocus:n}}(P),{defaultIcon:R,iconColor:j,ariaRoleType:$}=function(e){switch(e){case"success":return{defaultIcon:i,iconColor:"success",ariaRoleType:"status"};case"info":return{defaultIcon:o,iconColor:"highlight",ariaRoleType:"status"};case"warning":return{defaultIcon:a,iconColor:"warning",ariaRoleType:"alert"};case"critical":return{defaultIcon:s,iconColor:"critical",ariaRoleType:"alert"};default:return{defaultIcon:o,iconColor:"base",ariaRoleType:"status"}}}(k),N=e||R,W=(0,u.AK)(h.Banner,k&&h[(0,u.OZ)("status",k)],S&&h.hasDismiss,Q&&h.keyFocused,L?h.withinContentContainer:h.withinPage);let z=null;b&&(z=r.createElement(O.x,{as:"h2",variant:"headingMd"},b));const H=null!=t&&t.loading?r.createElement("button",{disabled:!0,"aria-busy":!0,className:(0,u.AK)(h.Button,h.loading)},r.createElement("span",{className:h.Spinner},r.createElement(m.$,{size:"small",accessibilityLabel:D.translate("Polaris.Button.spinnerAccessibilityLabel")})),t.content):null,I=t?r.createElement(g.x,{paddingInlineEnd:"2"},t.loading?H:function({content:e,onAction:t,...n},i,o){return r.createElement(f.k,Object.assign({key:o,onClick:t},n,i),e)}(t,{className:`${h.Button} ${h.PrimaryAction}`})):null,Z=n?r.createElement(x,{action:n}):null,F=t||n?r.createElement(g.x,{paddingBlockStart:L?"3":"4",paddingBlockEnd:L?"1":void 0},r.createElement(_.h,null,I,Z)):null;let B=null;(w||F)&&(B=r.createElement(g.x,{paddingBlockStart:"05",paddingBlockEnd:"05"},w,F));const U=S&&r.createElement("div",{className:h.Dismiss},r.createElement(y.z,{plain:!0,icon:l.S,onClick:S,accessibilityLabel:"Dismiss notification"}));return r.createElement(c.Provider,{value:!0},r.createElement("div",{className:W,tabIndex:0,ref:Y,role:$,"aria-live":M?"off":"polite",onMouseUp:A,onKeyUp:C,onBlur:E},U,T?null:r.createElement(g.x,{paddingInlineEnd:"4"},r.createElement(v.J,{source:N,color:j})),r.createElement("div",{className:h.ContentWrapper},z,B)))}));function x({action:e}){return e.url?r.createElement(b.H,{className:h.SecondaryAction,url:e.url,external:e.external},r.createElement("span",{className:h.Text},e.content)):r.createElement(f.k,{className:h.SecondaryAction,onClick:e.onAction},r.createElement("span",{className:h.Text},e.content))}},7283:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(7294),i=n(3697);const o=(0,r.forwardRef)((({as:e="div",background:t,border:n,borderBlockEnd:o,borderInlineStart:a,borderInlineEnd:s,borderBlockStart:l,borderWidth:u,borderBlockStartWidth:c,borderBlockEndWidth:d,borderInlineStartWidth:h,borderInlineEndWidth:f,borderRadius:p,borderRadiusEndStart:m,borderRadiusEndEnd:g,borderRadiusStartStart:y,borderRadiusStartEnd:v,children:O,color:_,id:b,minHeight:w,minWidth:x,maxWidth:k,overflowX:S,overflowY:M,outline:T,padding:P,paddingBlockStart:L,paddingBlockEnd:D,paddingInlineStart:Y,paddingInlineEnd:C,role:E,shadow:A,tabIndex:Q,width:R,printHidden:j,visuallyHidden:$,position:N,insetBlockStart:W,insetBlockEnd:z,insetInlineStart:H,insetInlineEnd:I,zIndex:Z,opacity:F,...B},U)=>{const X={"--pc-box-color":_?`var(--p-${_})`:void 0,"--pc-box-background":t?`var(--p-${t})`:void 0,"--pc-box-border":n?`var(--p-border-${n})`:void 0,"--pc-box-border-block-end":o?`var(--p-border-${o})`:void 0,"--pc-box-border-inline-start":a?`var(--p-border-${a})`:void 0,"--pc-box-border-inline-end":s?`var(--p-border-${s})`:void 0,"--pc-box-border-block-start":l?`var(--p-border-${l})`:void 0,"--pc-box-border-radius":p?`var(--p-border-radius-${p})`:void 0,"--pc-box-border-radius-end-start":m?`var(--p-border-radius-${m})`:void 0,"--pc-box-border-radius-end-end":g?`var(--p-border-radius-${g})`:void 0,"--pc-box-border-radius-start-start":y?`var(--p-border-radius-${y})`:void 0,"--pc-box-border-radius-start-end":v?`var(--p-border-radius-${v})`:void 0,"--pc-box-border-width":u?`var(--p-border-width-${u})`:void 0,"--pc-box-border-block-start-width":c?`var(--p-border-width-${c})`:void 0,"--pc-box-border-block-end-width":d?`var(--p-border-width-${d})`:void 0,"--pc-box-border-inline-start-width":h?`var(--p-border-width-${h})`:void 0,"--pc-box-border-inline-end-width":f?`var(--p-border-width-${f})`:void 0,"--pc-box-min-height":w,"--pc-box-min-width":x,"--pc-box-max-width":k,"--pc-box-outline":T?`var(--p-border-${T})`:void 0,"--pc-box-overflow-x":S,"--pc-box-overflow-y":M,...(0,i.jD)("box","padding-block-end","space",D||P),...(0,i.jD)("box","padding-block-start","space",L||P),...(0,i.jD)("box","padding-inline-start","space",Y||P),...(0,i.jD)("box","padding-inline-end","space",C||P),"--pc-box-shadow":A?`var(--p-shadow-${A})`:void 0,"--pc-box-width":R,position:N,"--pc-box-inset-block-start":W?`var(--p-space-${W})`:void 0,"--pc-box-inset-block-end":z?`var(--p-space-${z})`:void 0,"--pc-box-inset-inline-start":H?`var(--p-space-${H})`:void 0,"--pc-box-inset-inline-end":I?`var(--p-space-${I})`:void 0,zIndex:Z,opacity:F},q=(0,i.AK)("Polaris-Box",$&&"Polaris-Box--visuallyHidden",j&&"Polaris-Box--printHidden","ul"===e&&"Polaris-Box--listReset");return(0,r.createElement)(e,{className:q,id:b,ref:U,style:(0,i.vW)(X),role:E,tabIndex:Q,...B},O)}));o.displayName="Box"},1072:(e,t,n)=>{"use strict";n.d(t,{z:()=>v});var r=n(7294),i=n(5031),o=n(5120),a=n(3934),s=n(3697),l=n(2467),u=n(7001),c={Button:"Polaris-Button",pressed:"Polaris-Button--pressed",disabled:"Polaris-Button--disabled",connectedDisclosure:"Polaris-Button--connectedDisclosure",Content:"Polaris-Button__Content",plain:"Polaris-Button--plain",textAlignLeft:"Polaris-Button--textAlignLeft",textAlignStart:"Polaris-Button--textAlignStart",textAlignCenter:"Polaris-Button--textAlignCenter",textAlignRight:"Polaris-Button--textAlignRight",textAlignEnd:"Polaris-Button--textAlignEnd",Icon:"Polaris-Button__Icon",fullWidth:"Polaris-Button--fullWidth",hidden:"Polaris-Button--hidden",Spinner:"Polaris-Button__Spinner",primary:"Polaris-Button--primary",destructive:"Polaris-Button--destructive",outline:"Polaris-Button--outline",loading:"Polaris-Button--loading",removeUnderline:"Polaris-Button--removeUnderline",iconOnly:"Polaris-Button--iconOnly",sizeSlim:"Polaris-Button--sizeSlim",sizeLarge:"Polaris-Button--sizeLarge",monochrome:"Polaris-Button--monochrome",Text:"Polaris-Button__Text",ConnectedDisclosureWrapper:"Polaris-Button__ConnectedDisclosureWrapper",ConnectedDisclosure:"Polaris-Button__ConnectedDisclosure"},d=n(8401),h=n(3855),f=n(4823),p=n(8123),m=n(5954),g=n(4849);const y="medium";function v({id:e,children:t,url:n,disabled:o,external:a,download:v,submit:_,loading:b,pressed:w,accessibilityLabel:x,role:k,ariaControls:S,ariaExpanded:M,ariaDescribedBy:T,ariaChecked:P,onClick:L,onFocus:D,onBlur:Y,onKeyDown:C,onKeyPress:E,onKeyUp:A,onMouseEnter:Q,onTouchStart:R,onPointerDown:j,icon:$,primary:N,outline:W,destructive:z,disclosure:H,plain:I,monochrome:Z,removeUnderline:F,size:B=y,textAlign:U,fullWidth:X,connectedDisclosure:q,dataPrimaryLink:V}){const G=(0,m.Q)(),J=o||b,K=(0,s.AK)(c.Button,N&&c.primary,W&&c.outline,z&&c.destructive,J&&c.disabled,b&&c.loading,I&&c.plain,w&&!o&&!n&&c.pressed,Z&&c.monochrome,B&&B!==y&&c[(0,s.OZ)("size",B)],U&&c[(0,s.OZ)("textAlign",U)],X&&c.fullWidth,$&&null==t&&c.iconOnly,q&&c.connectedDisclosure,F&&c.removeUnderline),ee=H?r.createElement("span",{className:c.Icon},r.createElement("div",{className:(0,s.AK)(c.DisclosureIcon,b&&c.hidden)},r.createElement(g.J,{source:b?"placeholder":O(H)}))):null,te="string"==typeof(ne=$)||"object"==typeof ne&&ne.body||"function"==typeof ne?r.createElement(g.J,{source:b?"placeholder":$}):$;var ne;const re=te?r.createElement("span",{className:(0,s.AK)(c.Icon,b&&c.hidden)},te):null,ie=t?r.createElement("span",{className:(0,s.AK)(c.Text,F&&c.removeUnderline),key:o?"text-disabled":"text"},t):null,oe=b?r.createElement("span",{className:c.Spinner},r.createElement(d.$,{size:"small",accessibilityLabel:G.translate("Polaris.Button.spinnerAccessibilityLabel")})):null,[ae,se]=(0,r.useState)(!1),le=(0,r.useCallback)((()=>{se((e=>!e))}),[]),ue=(0,u.x)(o,le);let ce;if(q){const e=(0,s.AK)(c.Button,N&&c.primary,W&&c.outline,B&&B!==y&&c[(0,s.OZ)("size",B)],U&&c[(0,s.OZ)("textAlign",U)],z&&c.destructive,q.disabled&&c.disabled,c.iconOnly,c.ConnectedDisclosure,Z&&c.monochrome),t=G.translate("Polaris.Button.connectedDisclosureAccessibilityLabel"),{disabled:n,accessibilityLabel:o=t}=q,a=r.createElement("button",{type:"button",className:e,"aria-disabled":n,"aria-label":o,"aria-describedby":T,"aria-checked":P,onClick:ue,onMouseUp:l.i8,tabIndex:n?-1:void 0},r.createElement("span",{className:c.Icon},r.createElement(g.J,{source:i.S})));ce=r.createElement(h.J,{active:ae,onClose:le,activator:a,preferredAlignment:"right"},r.createElement(f.S,{items:q.actions,onActionAnyItem:le}))}const de={id:e,className:K,accessibilityLabel:x,ariaDescribedBy:T,role:k,onClick:L,onFocus:D,onBlur:Y,onMouseUp:l.i8,onMouseEnter:Q,onTouchStart:R,"data-primary-link":V},he={url:n,external:a,download:v},fe={submit:_,disabled:J,loading:b,ariaControls:S,ariaExpanded:M,ariaChecked:P,pressed:w,onKeyDown:C,onKeyUp:A,onKeyPress:E,onPointerDown:j},pe=r.createElement(p.k,Object.assign({},de,he,fe),r.createElement("span",{className:c.Content},oe,re,ie,ee));return ce?r.createElement("div",{className:c.ConnectedDisclosureWrapper},pe,ce):pe}function O(e){return"select"===e?o.S:"up"===e?a.S:i.S}},1821:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,B:()=>o});var r=n(7294),i=n(1072);function o(e,t={}){return Array.isArray(e)?e.map(((e,n)=>a(e,t,n))):a(e,t)}function a({content:e,onAction:t,...n},o,a){return r.createElement(i.z,Object.assign({key:a,onClick:t},n,o),e)}},7932:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r=n(7294),i=n(3697),o=n(3999),a={ButtonGroup:"Polaris-ButtonGroup",Item:"Polaris-ButtonGroup__Item","Item-plain":"Polaris-ButtonGroup__Item--plain",segmented:"Polaris-ButtonGroup--segmented","Item-focused":"Polaris-ButtonGroup__Item--focused",fullWidth:"Polaris-ButtonGroup--fullWidth",extraTight:"Polaris-ButtonGroup--extraTight",tight:"Polaris-ButtonGroup--tight",loose:"Polaris-ButtonGroup--loose",noWrap:"Polaris-ButtonGroup--noWrap"},s=n(4327);function l({button:e}){const{value:t,setTrue:n,setFalse:o}=(0,s.O)(!1),l=(0,i.AK)(a.Item,t&&a["Item-focused"],e.props.plain&&a["Item-plain"]);return r.createElement("div",{className:l,onFocus:n,onBlur:o},e)}function u({children:e,spacing:t,segmented:n,fullWidth:s,connectedTop:u,noWrap:c}){const d=(0,i.AK)(a.ButtonGroup,t&&a[t],n&&a.segmented,s&&a.fullWidth,c&&a.noWrap),h=(0,o.gD)(e).map(((e,t)=>r.createElement(l,{button:e,key:t})));return r.createElement("div",{className:d,"data-buttongroup-segmented":n,"data-buttongroup-connected-top":u,"data-buttongroup-full-width":s,"data-buttongroup-no-wrap":c},h)}},7045:(e,t,n)=>{"use strict";n.d(t,{X:()=>g});var r=n(7294),i=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{d:"M14.167 9h-8.334c-.46 0-.833.448-.833 1s.372 1 .833 1h8.334c.46 0 .833-.448.833-1s-.373-1-.833-1"}))},o=n(9562),a=n(3697),s=n(4327);const l=(0,r.createContext)(!1);var u={Choice:"Polaris-Choice",labelHidden:"Polaris-Choice--labelHidden",Label:"Polaris-Choice__Label",Control:"Polaris-Choice__Control",disabled:"Polaris-Choice--disabled",Descriptions:"Polaris-Choice__Descriptions",HelpText:"Polaris-Choice__HelpText"},c=n(5044),d=n(8484);function h({id:e,label:t,disabled:n,error:i,children:o,labelHidden:s,helpText:l,onClick:h,onMouseOut:p,onMouseOver:m}){const g=(0,a.AK)(u.Choice,s&&u.labelHidden,n&&u.disabled),y=r.createElement("label",{className:g,htmlFor:e,onClick:h,onMouseOver:m,onMouseOut:p},r.createElement("span",{className:u.Control},o),r.createElement("span",{className:u.Label},r.createElement("span",null,t))),v=l?r.createElement("div",{className:u.HelpText,id:f(e)},r.createElement(c.x,{as:"span",color:"subdued"},l)):null,O=i&&"boolean"!=typeof i&&r.createElement("div",{className:u.Error},r.createElement(d.b,{message:i,fieldID:e})),_=v||O?r.createElement("div",{className:u.Descriptions},O,v):null;return _?r.createElement("div",null,y,_):y}function f(e){return`${e}HelpText`}var p=n(372),m=n(4849);const g=(0,r.forwardRef)((function({ariaControls:e,ariaDescribedBy:t,label:n,labelHidden:u,checked:c=!1,helpText:g,disabled:O,id:_,name:b,value:w,error:x,onChange:k,onFocus:S,onBlur:M},T){const P=(0,r.useRef)(null),L=(0,p.L)("Checkbox",_),{value:D,setTrue:Y,setFalse:C}=(0,s.O)(!1),E=(0,r.useContext)(l);(0,r.useImperativeHandle)(T,(()=>({focus:()=>{P.current&&P.current.focus()}})));const A=[];x&&"boolean"!=typeof x&&A.push((0,d.e)(L)),g&&A.push(f(L)),t&&A.push(t);const Q=A.length?A.join(" "):void 0,R=(0,a.AK)("Polaris-Checkbox",x&&"Polaris-Checkbox--error"),j=(0,a.AK)("Polaris-Checkbox__Backdrop",D&&"Polaris-Checkbox--hover"),$="indeterminate"===c,N=!$&&Boolean(c),W=$?{indeterminate:"true","aria-checked":"mixed"}:{"aria-checked":N},z=$?i:o.S,H=(0,a.AK)("Polaris-Checkbox__Input",$&&"Polaris-Checkbox__Input--indeterminate");return r.createElement(h,{id:L,label:n,labelHidden:u,helpText:g,error:x,disabled:O,onMouseOver:Y,onMouseOut:C},r.createElement("span",{className:R},r.createElement("input",Object.assign({ref:P,id:L,name:b,value:w,type:"checkbox",checked:N,disabled:O,className:H,onBlur:()=>{M&&M()},onChange:y,onClick:()=>{null==k||null==P.current||O||(k(P.current.checked,L),P.current.focus())},onFocus:S,"aria-invalid":null!=x,"aria-controls":e,"aria-describedby":Q,role:E?"presentation":"checkbox"},W)),r.createElement("span",{className:j,onClick:v,onKeyUp:v}),r.createElement("span",{className:"Polaris-Checkbox__Icon"},r.createElement(m.J,{source:z}))))}));function y(){}function v(e){e.stopPropagation()}},6516:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var r=n(7294),i=n(3697),o={Collapsible:"Polaris-Collapsible",isFullyClosed:"Polaris-Collapsible--isFullyClosed",expandOnPrint:"Polaris-Collapsible--expandOnPrint"};function a({id:e,expandOnPrint:t,open:n,transition:a=!0,preventMeasuringOnChildrenUpdate:l,children:u,onAnimationEnd:c}){const[d,h]=(0,r.useState)(0),[f,p]=(0,r.useState)(n),[m,g]=(0,r.useState)("idle"),y=(0,r.useRef)(null),v="idle"===m&&n&&f,O="idle"===m&&!n&&!f,_=t||!O?u:null,b=(0,i.AK)(o.Collapsible,O&&o.isFullyClosed,t&&o.expandOnPrint),w=function(e){if("boolean"==typeof e)return!e;const{duration:t}=e;return!(!t||!s.test(t.trim()))}(a),x={..."object"==typeof a&&{transitionDuration:a.duration,transitionTimingFunction:a.timingFunction},maxHeight:v?"none":`${d}px`,overflow:v?"visible":"hidden"},k=(0,r.useCallback)((({target:e})=>{e===y.current&&(g("idle"),p(n),c&&c())}),[c,n]),S=(0,r.useCallback)((()=>{w?(p(n),g("idle"),n&&y.current?h(y.current.scrollHeight):h(0)):g("measuring")}),[n,w]);return(0,r.useEffect)((()=>{n!==f&&S()}),[n,f]),(0,r.useEffect)((()=>{n&&y.current&&h(y.current.scrollHeight)}),[]),(0,r.useEffect)((()=>{if(y.current)switch(m){case"idle":break;case"measuring":h(y.current.scrollHeight),g("animating");break;case"animating":h(n?y.current.scrollHeight:0)}}),[m,n,f]),r.createElement("div",{id:e,style:x,ref:y,className:b,onTransitionEnd:k,"aria-hidden":!n},_)}const s=/^0(ms|s)$/},9003:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var r=n(7294);class i extends r.PureComponent{componentDidMount(){this.attachListener()}componentDidUpdate({passive:e,...t}){this.detachListener(t),this.attachListener()}componentWillUnmount(){this.detachListener()}render(){return null}attachListener(){const{event:e,handler:t,capture:n,passive:r}=this.props;window.addEventListener(e,t,{capture:n,passive:r})}detachListener(e){const{event:t,handler:n,capture:r}=e||this.props;window.removeEventListener(t,n,r)}}},6218:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var r=n(7294),i=n(3999),o={FormLayout:"Polaris-FormLayout",Title:"Polaris-FormLayout__Title",Items:"Polaris-FormLayout__Items",Item:"Polaris-FormLayout__Item",grouped:"Polaris-FormLayout--grouped",condensed:"Polaris-FormLayout--condensed"},a=n(3697);function s({children:e}){return e?r.createElement("div",{className:o.Item},e):null}var l=n(372),u=n(7283);function c({children:e,condensed:t,title:n,helpText:c}){const d=(0,a.AK)(t?o.condensed:o.grouped),h=(0,l.L)("FormLayoutGroup");let f,p,m=null,g=null;c&&(f=`${h}HelpText`,m=r.createElement(u.x,{id:f,paddingBlockStart:"2",paddingInlineStart:"5",paddingBlockEnd:"0",paddingInlineEnd:"5",color:"text-subdued"},c)),n&&(p=`${h}Title`,g=r.createElement("div",{id:p,className:o.Title},n));const y=r.Children.map(e,(e=>(0,i.oh)(e,s,{})));return r.createElement("div",{role:"group",className:d,"aria-labelledby":p,"aria-describedby":f},g,r.createElement("div",{className:o.Items},y),m)}const d=(0,r.memo)((function({children:e}){return r.createElement("div",{className:o.FormLayout},r.Children.map(e,h))}));function h(e,t){if((0,i.Mc)(e,c))return e;const n={key:t};return(0,i.oh)(e,s,n)}d.Group=c},1886:(e,t,n)=>{"use strict";n.d(t,{R:()=>V});var r=n(7294),i=n(49),o=n(7723),a=n(7394),s=n(3697),l=n(9572);function u(e,t,n){document&&(n||document.documentElement).style.setProperty(e,t)}var c="Polaris-Frame__Navigation--enterActive",d=n(5954);function h(){const e=(0,d.Q)(),t=function(){const e=(0,r.useRef)(!1);return(0,r.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),[n,i]=(0,r.useState)(0),[o,a]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n>=99||o||requestAnimationFrame((()=>{if(!t.current)return;const e=Math.max((99-n)/10,1);a(!0),i(n+e)}))}),[n,o,t]);const s={transform:`scaleX(${Math.floor(n)/100})`};return r.createElement("div",{className:"Polaris-Frame-Loading","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,role:"progressbar","aria-label":e.translate("Polaris.Loading.label")},r.createElement("div",{className:"Polaris-Frame-Loading__Level",style:s,onTransitionEnd:()=>a(!1)}))}var f,p={startFade:"Polaris-Frame-CSSAnimation--startFade",endFade:"Polaris-Frame-CSSAnimation--endFade"};function m({in:e,className:t,type:n,children:i}){const[o,a]=(0,r.useState)(e?f.Entering:f.Exited),l=(0,r.useRef)(!1),u=(0,r.useRef)(null);(0,r.useEffect)((()=>{l.current&&o===f.Entering&&h(f.Entered)}),[o]),(0,r.useEffect)((()=>{l.current&&(e&&h(f.Entering),!e&&h(f.Exiting))}),[e]),(0,r.useEffect)((()=>{l.current=!0}),[]);const c=(0,s.AK)(t,p[(0,s.OZ)("start",n)],e&&p[(0,s.OZ)("end",n)]),d=o!==f.Exited||e?i:null;return r.createElement("div",{className:c,ref:u,onTransitionEnd:function(){o===f.Exiting&&h(f.Exited)}},d);function h(e){a(e),e===f.Entering&&u.current&&u.current.getBoundingClientRect()}}function g(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)}function y(e,t){if(!e)return null;const n=Object.keys(e);for(const r of n){if(r===t)return e[t];if(g(e[r])){const n=y(e[r],t);if(n)return n}}return null}function v(e={},t=0,n="width"){const r="number"==typeof e?e:y(e,n);return r?`${r}px`:`${t}px`}!function(e){e.Entering="entering",e.Entered="entered",e.Exiting="exiting",e.Exited="exited"}(f||(f={}));var O=n(4327),_=n(4966);function b({open:e,onDiscard:t,onCancel:n}){const i=(0,d.Q)();return r.createElement(_.u,{title:i.translate("Polaris.DiscardConfirmationModal.title"),open:e,onClose:n,primaryAction:{content:i.translate("Polaris.DiscardConfirmationModal.primaryAction"),destructive:!0,onAction:t},secondaryActions:[{content:i.translate("Polaris.DiscardConfirmationModal.secondaryAction"),onAction:n}],sectioned:!0},i.translate("Polaris.DiscardConfirmationModal.message"))}var w=n(9815),x=n(1072);function k({alt:e,sourceSet:t,source:n,crossOrigin:i,onLoad:o,className:a,...s}){const l=t?t.map((({source:e,descriptor:t})=>`${e} ${t}`)).join(","):null,u=(0,r.useCallback)((()=>{o&&o()}),[o]);return r.createElement("img",Object.assign({alt:e,src:n,crossOrigin:i,className:a,onLoad:u},l?{srcSet:l}:{},s))}var S=n(5044),M=n(1042);function T({alignContentFlush:e,message:t,saveAction:n,discardAction:i,fullWidth:o,contextControl:a,secondaryMenu:l}){const u=(0,d.Q)(),{logo:c}=(0,w.x)(),{value:h,toggle:f,setFalse:p}=(0,O.O)(!1),m=(0,r.useCallback)((()=>{i&&i.onAction&&i.onAction(),p()}),[p,i]),g=i&&i.content?i.content:u.translate("Polaris.ContextualSaveBar.discard");let y;i&&i.discardConfirmationModal?y=f:i&&(y=i.onAction);const _=i&&i.onAction&&i.discardConfirmationModal&&r.createElement(b,{open:h,onCancel:f,onDiscard:m}),T=i&&r.createElement(x.z,{url:i.url,onClick:y,loading:i.loading,disabled:i.disabled,accessibilityLabel:i.content},g),P=n&&n.content?n.content:u.translate("Polaris.ContextualSaveBar.save"),L=n&&r.createElement(x.z,{primary:!0,url:n.url,onClick:n.onAction,loading:n.loading,disabled:n.disabled,accessibilityLabel:n.content},P),D=v(c,104),Y=c&&r.createElement(k,{style:{width:D},source:c.contextualSaveBarSource||"",alt:""}),C=e||a?null:r.createElement("div",{className:"Polaris-Frame-ContextualSaveBar__LogoContainer",style:{width:D}},Y),E=a?r.createElement("div",{className:"Polaris-Frame-ContextualSaveBar__ContextControl"},a):null,A=(0,s.AK)("Polaris-Frame-ContextualSaveBar__Contents",o&&"Polaris-Frame-ContextualSaveBar--fullWidth");return r.createElement(r.Fragment,null,r.createElement("div",{className:"Polaris-Frame-ContextualSaveBar"},E,C,r.createElement("div",{className:A},t&&r.createElement(S.x,{as:"h2",variant:"headingMd",color:"text-inverse",truncate:!0},t),r.createElement("div",{className:"Polaris-Frame-ContextualSaveBar__ActionContainer"},r.createElement(M.D,{spacing:"tight",wrap:!1},l,T,L)))),_)}var P=n(155),L=n(4537),D=n(697),Y=n(1296),C="Polaris-Frame-ToastManager__ToastWrapper",E=n(7953),A=n(6184),Q=n(1667),R=n(4849),j=n(8235),$=n(5528);function N({content:e,onDismiss:t,duration:n,error:i,action:o}){(0,r.useEffect)((()=>{let e=n||5e3;o&&!n?e=1e4:o&&n&&n<1e4&&console.log("Toast with action should persist for at least 10,000 milliseconds to give the merchant enough time to act on it.");const r=setTimeout(t,e);return()=>{clearTimeout(r)}}),[o,n,t]);const a=r.createElement("button",{type:"button",className:"Polaris-Frame-Toast__CloseButton",onClick:t},r.createElement(R.J,{source:E.S})),l=o?r.createElement("div",{className:"Polaris-Frame-Toast__Action"},r.createElement(x.z,{plain:!0,monochrome:!0,size:"slim",onClick:o.onAction},o.content)):null,u=i?r.createElement("div",{className:"Polaris-Frame-Toast__LeadingIcon"},r.createElement(R.J,{source:A.S,color:"base"})):null,c=(0,s.AK)("Polaris-Frame-Toast",i&&"Polaris-Frame-Toast--error");return r.createElement("div",{className:c},r.createElement(j.n,{keyCode:Q.s.Escape,handler:t}),u,r.createElement($.g,{gap:"4",blockAlign:"center"},r.createElement(S.x,{as:"span",fontWeight:"medium"},e)),l,a)}var W=n(3531),z=n(9003);const H=(0,r.memo)((function({toastMessages:e}){const t=[],n=(i=()=>{let n=0;e.forEach(((e,r)=>{const i=t[r];i.current&&(n+=i.current.clientHeight,i.current.style.setProperty("--pc-toast-manager-translate-y-in",`-${n}px`),i.current.style.setProperty("--pc-toast-manager-translate-y-out",150-n+"px"))}))},a=[e,t],(0,r.useCallback)(i,(0,Y.E)(a,undefined)));var i,a;(0,D.H)((()=>{n()}),[e]);const s=e.map(((e,n)=>{const i=(0,r.createRef)();return t[n]=i,r.createElement(o.Z,{nodeRef:t[n],key:e.id,timeout:{enter:0,exit:400},classNames:I},r.createElement("div",{ref:i},r.createElement(N,e)))}));return r.createElement(W.h,null,r.createElement(z.h,{event:"resize",handler:n}),r.createElement("div",{className:"Polaris-Frame-ToastManager","aria-live":"assertive"},r.createElement(L.Z,{component:null},s)))})),I={enter:(0,s.AK)(C,"Polaris-Frame-ToastManager__ToastWrapper--enter"),enterDone:(0,s.AK)(C,"Polaris-Frame-ToastManager--toastWrapperEnterDone"),exit:(0,s.AK)(C,"Polaris-Frame-ToastManager__ToastWrapper--exit")};var Z=n(357),F=n(9180),B=n(6021);const U="AppFrameMain";class X extends r.PureComponent{constructor(...e){super(...e),this.state={skipFocused:!1,globalRibbonHeight:0,loadingStack:0,toastMessages:[],showContextualSaveBar:!1},this.contextualSaveBar=null,this.globalRibbonContainer=null,this.navigationNode=(0,r.createRef)(),this.setGlobalRibbonHeight=()=>{const{globalRibbonContainer:e}=this;e&&this.setState({globalRibbonHeight:e.offsetHeight},this.setGlobalRibbonRootProperty)},this.setOffset=()=>{const{offset:e="0px"}=this.props;u("--pc-frame-offset",e)},this.setGlobalRibbonRootProperty=()=>{const{globalRibbonHeight:e}=this.state;u("--pc-frame-global-ribbon-height",`${e}px`)},this.showToast=e=>{this.setState((({toastMessages:t})=>({toastMessages:null!=t.find((({id:t})=>t===e.id))?t:[...t,e]})))},this.hideToast=({id:e})=>{this.setState((({toastMessages:t})=>({toastMessages:t.filter((({id:t})=>e!==t))})))},this.setContextualSaveBar=e=>{const{showContextualSaveBar:t}=this.state;this.contextualSaveBar={...e},!0===t?this.forceUpdate():this.setState({showContextualSaveBar:!0})},this.removeContextualSaveBar=()=>{this.contextualSaveBar=null,this.setState({showContextualSaveBar:!1})},this.startLoading=()=>{this.setState((({loadingStack:e})=>({loadingStack:e+1})))},this.stopLoading=()=>{this.setState((({loadingStack:e})=>({loadingStack:Math.max(0,e-1)})))},this.handleResize=()=>{this.props.globalRibbon&&this.setGlobalRibbonHeight()},this.handleFocus=()=>{this.setState({skipFocused:!0})},this.handleBlur=()=>{this.setState({skipFocused:!1})},this.handleClick=e=>{const{skipToContentTarget:t}=this.props;t&&t.current&&(t.current.focus(),null==e||e.preventDefault())},this.handleNavigationDismiss=()=>{const{onNavigationDismiss:e}=this.props;null!=e&&e()},this.setGlobalRibbonContainer=e=>{this.globalRibbonContainer=e},this.handleNavKeydown=e=>{const{key:t}=e,{mediaQuery:{isNavigationCollapsed:n},showMobileNavigation:r}=this.props;n&&r&&"Escape"===t&&this.handleNavigationDismiss()}}componentDidMount(){this.handleResize(),this.props.globalRibbon||(this.setGlobalRibbonRootProperty(),this.setOffset())}componentDidUpdate(e){this.props.globalRibbon!==e.globalRibbon&&this.setGlobalRibbonHeight(),this.setOffset()}render(){const{skipFocused:e,loadingStack:t,toastMessages:n,showContextualSaveBar:u}=this.state,{logo:c,children:d,navigation:f,topBar:p,globalRibbon:g,showMobileNavigation:y=!1,skipToContentTarget:v,i18n:O,mediaQuery:{isNavigationCollapsed:_}}=this.props,b=(0,s.AK)("Polaris-Frame__Navigation",y&&"Polaris-Frame__Navigation--visible"),w=_&&!y,x=_&&y,k=x?0:-1,S={...x&&{"aria-modal":!0,role:"dialog"}},M=f?r.createElement(F.F,{trapping:x},r.createElement(o.Z,{nodeRef:this.navigationNode,appear:_,exit:_,in:y,timeout:parseInt(a.EA["duration-300"],10),classNames:q},r.createElement("div",Object.assign({key:"NavContent"},S,{"aria-label":O.translate("Polaris.Frame.navigationLabel"),ref:this.navigationNode,className:b,onKeyDown:this.handleNavKeydown,id:"AppFrameNav",hidden:w}),f,r.createElement("button",{type:"button",className:"Polaris-Frame__NavigationDismiss",onClick:this.handleNavigationDismiss,"aria-hidden":w||!_&&!y,"aria-label":O.translate("Polaris.Frame.Navigation.closeMobileNavigationLabel"),tabIndex:k},r.createElement(R.J,{source:i.S}))))):null,L=t>0?r.createElement("div",{className:"Polaris-Frame__LoadingBar",id:"AppFrameLoadingBar"},r.createElement(h,null)):null,D=r.createElement(m,{in:u,className:"Polaris-Frame__ContextualSaveBar",type:"fade"},r.createElement(T,this.contextualSaveBar)),Y=p?r.createElement("div",Object.assign({className:"Polaris-Frame__TopBar"},l.EY.props,l.VT.props,{id:"AppFrameTopBar"}),p):null,C=g?r.createElement("div",{className:"Polaris-Frame__GlobalRibbonContainer",ref:this.setGlobalRibbonContainer},g):null,E=(0,s.AK)("Polaris-Frame__Skip",e&&"Polaris-Frame--focused"),A=null!=v&&v.current?v.current.id:U,Q=r.createElement("div",{className:E},r.createElement("a",{href:`#${A}`,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick},O.translate("Polaris.Frame.skipToContent"))),j=f?{"data-has-navigation":!0}:{},$=(0,s.AK)("Polaris-Frame",f&&"Polaris-Frame--hasNav",p&&"Polaris-Frame--hasTopBar"),N=y&&_?r.createElement(B.Y,{belowNavigation:!0,onClick:this.handleNavigationDismiss,onTouchStart:this.handleNavigationDismiss}):null,W={logo:c,showToast:this.showToast,hideToast:this.hideToast,startLoading:this.startLoading,stopLoading:this.stopLoading,setContextualSaveBar:this.setContextualSaveBar,removeContextualSaveBar:this.removeContextualSaveBar};return r.createElement(P.l.Provider,{value:W},r.createElement("div",Object.assign({className:$},l.EY.props,j),Q,Y,M,D,L,N,r.createElement("main",{className:"Polaris-Frame__Main",id:U,"data-has-global-ribbon":Boolean(g)},r.createElement("div",{className:"Polaris-Frame__Content"},d)),r.createElement(H,{toastMessages:n}),C,r.createElement(z.h,{event:"resize",handler:this.handleResize})))}}const q={enter:(0,s.AK)("Polaris-Frame__Navigation--enter"),enterActive:(0,s.AK)(c),enterDone:(0,s.AK)(c),exit:(0,s.AK)("Polaris-Frame__Navigation--exit"),exitActive:(0,s.AK)("Polaris-Frame__Navigation--exitActive")};function V(e){const t=(0,d.Q)(),n=(0,Z.a)();return r.createElement(X,Object.assign({},e,{i18n:t,mediaQuery:n}))}},4849:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(7294),i=n(3697),o={Icon:"Polaris-Icon",applyColor:"Polaris-Icon--applyColor",hasBackdrop:"Polaris-Icon--hasBackdrop",colorBase:"Polaris-Icon--colorBase",colorSubdued:"Polaris-Icon--colorSubdued",colorCritical:"Polaris-Icon--colorCritical",colorInteractive:"Polaris-Icon--colorInteractive",colorWarning:"Polaris-Icon--colorWarning",colorHighlight:"Polaris-Icon--colorHighlight",colorSuccess:"Polaris-Icon--colorSuccess",colorPrimary:"Polaris-Icon--colorPrimary",colorMagic:"Polaris-Icon--colorMagic",Svg:"Polaris-Icon__Svg",Img:"Polaris-Icon__Img",Placeholder:"Polaris-Icon__Placeholder"},a=n(5044);const s=["base","critical","highlight","success","warning"];function l({source:e,color:t,backdrop:n,accessibilityLabel:l}){let u;u="function"==typeof e?"function":"placeholder"===e?"placeholder":"external",n&&t&&s.includes(t);const c=(0,i.AK)(o.Icon,t&&o[(0,i.OZ)("color",t)],t&&o.applyColor,n&&o.hasBackdrop),d=e,h={function:r.createElement(d,{className:o.Svg,focusable:"false","aria-hidden":"true"}),placeholder:r.createElement("div",{className:o.Placeholder}),external:r.createElement("img",{className:o.Img,src:`data:image/svg+xml;utf8,${e}`,alt:"","aria-hidden":"true"})};return r.createElement("span",{className:c},r.createElement(a.x,{as:"span",visuallyHidden:!0},l),h[u])}},5528:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(7294),i=n(3697);const o=function({align:e,blockAlign:t,gap:n,wrap:o=!0,children:a}){const s={"--pc-inline-align":e,"--pc-inline-block-align":t,"--pc-inline-wrap":o?"wrap":"nowrap",...(0,i.jD)("inline","gap","space",n)};return r.createElement("div",{className:"Polaris-Inline",style:s},a)}},8484:(e,t,n)=>{"use strict";n.d(t,{b:()=>s,e:()=>l});var r=n(7294),i=n(6184),o={InlineError:"Polaris-InlineError",Icon:"Polaris-InlineError__Icon"},a=n(4849);function s({message:e,fieldID:t}){return e?r.createElement("div",{id:l(t),className:o.InlineError},r.createElement("div",{className:o.Icon},r.createElement(a.J,{source:i.S})),e):null}function l(e){return`${e}Error`}},8235:(e,t,n)=>{"use strict";n.d(t,{n:()=>o});var r=n(7294),i=n(2078);function o({keyCode:e,handler:t,keyEvent:n="keyup",options:o,useCapture:a}){const s=(0,r.useRef)({handler:t,keyCode:e});(0,i.L)((()=>{s.current={handler:t,keyCode:e}}),[t,e]);const l=(0,r.useCallback)((e=>{const{handler:t,keyCode:n}=s.current;e.keyCode===n&&t(e)}),[]);return(0,r.useEffect)((()=>(document.addEventListener(n,l,a||o),()=>{document.removeEventListener(n,l,a||o)})),[n,l,a,o]),null}},4997:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,n:()=>a});var r=n(7294),i=n(3697),o={Label:"Polaris-Label",hidden:"Polaris-Label--hidden",Text:"Polaris-Label__Text",RequiredIndicator:"Polaris-Label__RequiredIndicator"};function a(e){return`${e}Label`}function s({children:e,id:t,hidden:n,requiredIndicator:s}){const l=(0,i.AK)(o.Label,n&&o.hidden);return r.createElement("div",{className:l},r.createElement("label",{id:a(t),htmlFor:t,className:(0,i.AK)(o.Text,s&&o.RequiredIndicator)},e))}},4727:(e,t,n)=>{"use strict";n.d(t,{jN:()=>c,Nh:()=>d});var r=n(7294),i=n(3697),o={hidden:"Polaris-Labelled--hidden",LabelWrapper:"Polaris-Labelled__LabelWrapper",HelpText:"Polaris-Labelled__HelpText",Error:"Polaris-Labelled__Error",Action:"Polaris-Labelled__Action"},a=n(8484),s=n(4997),l=n(1821),u=n(5044);function c({id:e,label:t,error:n,action:c,helpText:h,children:f,labelHidden:p,requiredIndicator:m,...g}){const y=(0,i.AK)(p&&o.hidden),v=c?r.createElement("div",{className:o.Action},(0,l.h)(c,{plain:!0})):null,O=h?r.createElement("div",{className:o.HelpText,id:d(e)},r.createElement(u.x,{as:"span",color:"subdued",breakWord:!0},h)):null,_=n&&"boolean"!=typeof n&&r.createElement("div",{className:o.Error},r.createElement(a.b,{message:n,fieldID:e})),b=t?r.createElement("div",{className:o.LabelWrapper},r.createElement(s._,Object.assign({id:e,requiredIndicator:m},g,{hidden:!1}),t),v):null;return r.createElement("div",{className:y},b,f,_,O)}function d(e){return`${e}HelpText`}},7909:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(7294),i=n(3697),o={TextContainer:"Polaris-TextContainer",spacingTight:"Polaris-TextContainer--spacingTight",spacingLoose:"Polaris-TextContainer--spacingLoose"};function a({spacing:e,children:t}){const n=(0,i.AK)(o.TextContainer,e&&o[(0,i.OZ)("spacing",e)]);return r.createElement("div",{className:n},t)}var s=n(5044),l=n(7283);function u({children:e,secondary:t,fullWidth:n,oneHalf:o,oneThird:a}){const s=(0,i.AK)("Polaris-Layout__Section",t&&"Polaris-Layout__Section--secondary",n&&"Polaris-Layout__Section--fullWidth",o&&"Polaris-Layout__Section--oneHalf",a&&"Polaris-Layout__Section--oneThird");return r.createElement("div",{className:s},e)}const c=function({sectioned:e,children:t}){const n=e?r.createElement(u,null,t):t;return r.createElement("div",{className:"Polaris-Layout"},n)};c.AnnotatedSection=function({children:e,title:t,description:n,id:i}){const o="string"==typeof n?r.createElement("p",null,n):n;return r.createElement("div",{className:"Polaris-Layout__AnnotatedSection"},r.createElement("div",{className:"Polaris-Layout__AnnotationWrapper"},r.createElement("div",{className:"Polaris-Layout__Annotation"},r.createElement(a,null,r.createElement(s.x,{id:i,variant:"headingMd",as:"h2"},t),o&&r.createElement(l.x,{color:"text-subdued"},o))),r.createElement("div",{className:"Polaris-Layout__AnnotationContent"},e)))},c.Section=u},2722:(e,t,n)=>{"use strict";n.d(t,{z:()=>y});var r=n(7294),i=n(3697),o=n(4327),a=n(9585),s=n(1821),l=n(1042),u=n(7932),c=n(5044);function d({children:e,title:t,actions:n}){const i=n?r.createElement(u.h,null,(0,s.B)(n,{plain:!0})):null,o=(0,r.isValidElement)(t)?t:r.createElement(c.x,{variant:"headingMd",as:"h2"},t),a=i||e?r.createElement(l.D,{alignment:"baseline"},r.createElement(l.D.Item,{fill:!0},o),i,e):o;return r.createElement("div",{className:"Polaris-LegacyCard__Header"},a)}function h({children:e,title:t,subdued:n,flush:o,fullWidth:a,actions:d,hideOnPrint:h}){const f=(0,i.AK)("Polaris-LegacyCard__Section",o&&"Polaris-LegacyCard__Section--flush",n&&"Polaris-LegacyCard__Section--subdued",a&&"Polaris-LegacyCard__Section--fullWidth",h&&"Polaris-LegacyCard__Section--hideOnPrint"),p=d?r.createElement(u.h,null,(0,s.B)(d,{plain:!0})):null,m="string"==typeof t?r.createElement(c.x,{variant:"headingSm",as:"h3"},t):t,g=m||p?r.createElement("div",{className:"Polaris-LegacyCard__SectionHeader"},p?r.createElement(l.D,{alignment:"baseline"},r.createElement(l.D.Item,{fill:!0},m),p):m):null;return r.createElement("div",{className:f},g,e)}var f=n(5954),p=n(3855),m=n(1072),g=n(4823);const y=function({children:e,hideOnPrint:t,title:n,subdued:l,sectioned:c,actions:y,primaryFooterAction:v,secondaryFooterActions:O,secondaryFooterActionsDisclosureText:_,footerActionAlignment:b="right"}){const w=(0,f.Q)(),{value:x,toggle:k}=(0,o.O)(!1),S=(0,i.AK)("Polaris-LegacyCard",l&&"Polaris-LegacyCard--subdued",t&&"Polaris-LegacyCard--hideOnPrint"),M=n||y?r.createElement(d,{actions:y,title:n}):null,T=c?r.createElement(h,null,e):e,P=v?(0,s.h)(v,{primary:!0}):null;let L=null;O&&O.length&&(L=1===O.length?(0,s.h)(O[0]):r.createElement(r.Fragment,null,r.createElement(p.J,{active:x,activator:r.createElement(m.z,{disclosure:!0,onClick:k},_||w.translate("Polaris.Common.more")),onClose:k},r.createElement(g.S,{items:O}))));const D=P||L?r.createElement("div",{className:(0,i.AK)("Polaris-LegacyCard__Footer","left"===b&&"Polaris-LegacyCard__LeftJustified")},"right"===b?r.createElement(u.h,null,L,P):r.createElement(u.h,null,P,L)):null;return r.createElement(a.O.Provider,{value:!0},r.createElement("div",{className:S},M,T,D))};y.Header=d,y.Section=h,y.Subsection=function({children:e}){return r.createElement("div",{className:"Polaris-LegacyCard__Subsection"},e)}},1042:(e,t,n)=>{"use strict";n.d(t,{D:()=>l});var r=n(7294),i=n(3697),o=n(3999),a={LegacyStack:"Polaris-LegacyStack",Item:"Polaris-LegacyStack__Item",noWrap:"Polaris-LegacyStack--noWrap",spacingNone:"Polaris-LegacyStack--spacingNone",spacingExtraTight:"Polaris-LegacyStack--spacingExtraTight",spacingTight:"Polaris-LegacyStack--spacingTight",spacingBaseTight:"Polaris-LegacyStack--spacingBaseTight",spacingLoose:"Polaris-LegacyStack--spacingLoose",spacingExtraLoose:"Polaris-LegacyStack--spacingExtraLoose",distributionLeading:"Polaris-LegacyStack--distributionLeading",distributionTrailing:"Polaris-LegacyStack--distributionTrailing",distributionCenter:"Polaris-LegacyStack--distributionCenter",distributionEqualSpacing:"Polaris-LegacyStack--distributionEqualSpacing",distributionFill:"Polaris-LegacyStack--distributionFill",distributionFillEvenly:"Polaris-LegacyStack--distributionFillEvenly",alignmentLeading:"Polaris-LegacyStack--alignmentLeading",alignmentTrailing:"Polaris-LegacyStack--alignmentTrailing",alignmentCenter:"Polaris-LegacyStack--alignmentCenter",alignmentFill:"Polaris-LegacyStack--alignmentFill",alignmentBaseline:"Polaris-LegacyStack--alignmentBaseline",vertical:"Polaris-LegacyStack--vertical","Item-fill":"Polaris-LegacyStack__Item--fill"};function s({children:e,fill:t}){const n=(0,i.AK)(a.Item,t&&a["Item-fill"]);return r.createElement("div",{className:n},e)}const l=(0,r.memo)((function({children:e,vertical:t,spacing:n,distribution:l,alignment:u,wrap:c}){const d=(0,i.AK)(a.LegacyStack,t&&a.vertical,n&&a[(0,i.OZ)("spacing",n)],l&&a[(0,i.OZ)("distribution",l)],u&&a[(0,i.OZ)("alignment",u)],!1===c&&a.noWrap),h=(0,o.gD)(e).map(((e,t)=>{const n={key:t};return(0,o.oh)(e,s,n)}));return r.createElement("div",{className:d},h)}));l.Item=s},4966:(e,t,n)=>{"use strict";n.d(t,{u:()=>H});var r=n(7294),i=n(4537),o=n(2467),a=n(372),s=n(9585),l=n(3999),u=n(3697),c=n(7283);function d({children:e,flush:t=!1,subdued:n=!1,titleHidden:i=!1}){const o=(0,u.AK)("Polaris-Modal-Section",i&&"Polaris-Modal-Section--titleHidden");return r.createElement("div",{className:o},r.createElement(c.x,Object.assign({as:"section",padding:t?"0":"5"},i&&{paddingInlineEnd:"0"},n&&{background:"surface-subdued"}),e))}var h=n(2666),f=n(7723),p=n(7394),m=n(1667),g="Polaris-Modal-Dialog--animateFadeUp",y="Polaris-Modal-Dialog--entering",v="Polaris-Modal-Dialog--entered",O=n(9180),_=n(8235);function b({instant:e,labelledBy:t,children:n,onClose:i,onExited:a,onEntered:s,large:l,small:c,limitHeight:d,fullScreen:f,setClosing:g,...y}){const v=(0,r.useRef)(null),b=(0,u.AK)("Polaris-Modal-Dialog__Modal",c&&"Polaris-Modal-Dialog--sizeSmall",l&&"Polaris-Modal-Dialog--sizeLarge",d&&"Polaris-Modal-Dialog--limitHeight",f&&"Polaris-Modal-Dialog--fullScreen"),w=e?h.ZP:x;return(0,r.useEffect)((()=>{v.current&&!v.current.contains(document.activeElement)&&(0,o.vr)(v.current)}),[]),r.createElement(w,Object.assign({},y,{nodeRef:v,mountOnEnter:!0,unmountOnExit:!0,timeout:parseInt(p.EA["duration-200"],10),onEntered:s,onExited:a}),r.createElement("div",{className:"Polaris-Modal-Dialog__Container","data-polaris-layer":!0,"data-polaris-overlay":!0,ref:v},r.createElement(O.F,null,r.createElement("div",{role:"dialog","aria-modal":!0,"aria-label":t,"aria-labelledby":t,tabIndex:-1,className:"Polaris-Modal-Dialog"},r.createElement("div",{className:b},r.createElement(_.n,{keyCode:m.s.Escape,keyEvent:"keydown",handler:()=>{g&&g(!0)}}),r.createElement(_.n,{keyCode:m.s.Escape,handler:()=>{g&&g(!1),i()}}),n)))))}const w={appear:(0,u.AK)(g,y),appearActive:(0,u.AK)(g,v),enter:(0,u.AK)(g,y),enterActive:(0,u.AK)(g,v),exit:(0,u.AK)(g,"Polaris-Modal-Dialog--exiting"),exitActive:(0,u.AK)(g,"Polaris-Modal-Dialog--exited")};function x({children:e,...t}){return r.createElement(f.Z,Object.assign({},t,{classNames:w}),e)}var k={Columns:"Polaris-Columns"};function S({children:e,columns:t,gap:n,alignItems:i}){const o={...(0,u.OX)("columns","grid-template-columns",M(t)),...(0,u.jD)("columns","gap","space",n),"--pc-columns-align-items":i};return r.createElement("div",{className:k.Columns,style:(0,u.vW)(o)},e)}function M(e){return"object"!=typeof e||null===e||Array.isArray(e)?T(e):Object.fromEntries(Object.entries(e).map((([e,t])=>[e,T(t)])))}function T(e){if(e)return"number"!=typeof e&&isNaN(Number(e))?"string"==typeof e?e:e.map((e=>{switch(e){case"oneThird":case"oneHalf":return"minmax(0, 1fr)";case"twoThirds":return"minmax(0, 2fr)"}})).join(" "):`repeat(${Number(e)}, minmax(0, 1fr))`}var P=n(49),L={CloseButton:"Polaris-Modal-CloseButton",pressed:"Polaris-Modal-CloseButton--pressed",titleHidden:"Polaris-Modal-CloseButton--titleHidden"},D=n(5954),Y=n(4849);function C({pressed:e,titleHidden:t=!1,onClick:n}){const i=(0,D.Q)();return r.createElement("button",{onClick:n,className:(0,u.AK)(L.CloseButton,t&&L.titleHidden,e&&L.pressed),"aria-label":i.translate("Polaris.Common.close")},r.createElement(Y.J,{source:P.S,color:"base"}))}var E=n(5528),A=n(5044);function Q({id:e,children:t,closing:n,titleHidden:i,onClose:o}){const a=r.createElement(c.x,{position:"absolute",insetInlineEnd:"0",zIndex:"1"},r.createElement(E.g,{gap:"4",align:"end",blockAlign:"center"},r.createElement(C,{titleHidden:i,onClick:o})));return i||!t?a:r.createElement(c.x,{paddingBlockStart:"4",paddingBlockEnd:"4",paddingInlineStart:"5",paddingInlineEnd:"5",borderBlockEnd:"divider"},r.createElement(S,{columns:{xs:"1fr auto"},gap:"4"},r.createElement(E.g,{gap:"4",blockAlign:"center"},r.createElement(A.x,{id:e,as:"h2",variant:"headingLg",breakWord:!0},t)),r.createElement(C,{pressed:n,titleHidden:i,onClick:o})))}var R=n(1821);function j({primaryAction:e,secondaryActions:t,children:n}){const i=e&&(0,R.B)(e,{primary:!0})||null,o=t&&(0,R.B)(t)||null,a=i||o?r.createElement(E.g,{gap:"2"},o,i):null;return r.createElement(E.g,{gap:"4",blockAlign:"center"},r.createElement(c.x,{borderBlockStart:"divider",minHeight:"var(--p-space-16)",padding:"4",width:"100%"},r.createElement(E.g,{gap:"4",blockAlign:"center",align:"space-between"},r.createElement(c.x,null,n),a)))}var $=n(2896),N=n(3531),W=n(8401),z=n(6021);const H=function({children:e,title:t,titleHidden:n=!1,src:u,iFrameName:h,open:f,instant:p,sectioned:m,loading:g,large:y,small:v,limitHeight:O,footer:_,primaryAction:w,secondaryActions:x,onScrolledToBottom:k,activator:S,onClose:M,onIFrameLoad:T,onTransitionEnd:P,noScroll:L,fullScreen:Y}){const[C,A]=(0,r.useState)(200),[R,H]=(0,r.useState)(!1),Z=(0,a.L)("modal-header"),F=(0,r.useRef)(null),B=(0,D.Q)().translate("Polaris.Modal.iFrameTitle");let U,X;const q=(0,r.useCallback)((()=>{P&&P()}),[P]),V=(0,r.useCallback)((()=>{A(200);const e=S&&I(S)?S&&S.current:F.current;e&&requestAnimationFrame((()=>(0,o.vr)(e)))}),[S]),G=(0,r.useCallback)((e=>{const t=e.target;if(t&&t.contentWindow)try{A(t.contentWindow.document.body.scrollHeight)}catch(e){A(400)}null!=T&&T(e)}),[T]);if(f){const i=_||w||x?r.createElement(j,{primaryAction:w,secondaryActions:x},_):null,o=m?(0,l.oh)(e,d,{titleHidden:n}):e,a=g?r.createElement(c.x,{padding:"4"},r.createElement(E.g,{gap:"4",align:"center",blockAlign:"center"},r.createElement(W.$,null))):o,s=L?r.createElement(c.x,{width:"100%",overflowX:"hidden"},a):r.createElement($.R,{shadow:!0,className:"Polaris-Modal__Body",onScrolledToBottom:k},a),f=u?r.createElement("iframe",{name:h,title:B,src:u,className:"Polaris-Modal__IFrame",onLoad:G,style:{height:`${C}px`}}):s;U=r.createElement(b,{instant:p,labelledBy:Z,onClose:M,onEntered:q,onExited:V,large:y,small:v,limitHeight:O,fullScreen:Y,setClosing:H},r.createElement(Q,{titleHidden:n,id:Z,closing:R,onClose:M},t),f,i),X=r.createElement(z.Y,{setClosing:H,onClick:M})}const J=!p,K=S&&!I(S)?r.createElement(c.x,{ref:F},S):null;return r.createElement(s.O.Provider,{value:!0},K,r.createElement(N.h,{idPrefix:"modal"},r.createElement(i.Z,{appear:J,enter:J,exit:J},U),X))};function I(e){return Object.prototype.hasOwnProperty.call(e,"current")}H.Section=d},2524:(e,t,n)=>{"use strict";n.d(t,{X:()=>_});var r=n(7294);function i(e){return"object"==typeof e[0]&&Object.prototype.hasOwnProperty.call(e[0],"options")}function o(e,t,n){return e.length===t.length&&e.every(((e,r)=>{const i=t[r];return null!=n?n(e,i):e===i}))}var a=n(697),s=n(4327),l=n(3697),u={Option:"Polaris-OptionList-Option",SingleSelectOption:"Polaris-OptionList-Option__SingleSelectOption",focused:"Polaris-OptionList-Option--focused",active:"Polaris-OptionList-Option--active",select:"Polaris-OptionList-Option--select",disabled:"Polaris-OptionList-Option--disabled",Media:"Polaris-OptionList-Option__Media",Label:"Polaris-OptionList-Option__Label",Checkbox:"Polaris-OptionList-Option__Checkbox",verticalAlignTop:"Polaris-OptionList-Option--verticalAlignTop",verticalAlignCenter:"Polaris-OptionList-Option--verticalAlignCenter",verticalAlignBottom:"Polaris-OptionList-Option--verticalAlignBottom"},c=n(9562),d={Checkbox:"Polaris-OptionList-Checkbox",active:"Polaris-OptionList-Checkbox--active",Backdrop:"Polaris-OptionList-Checkbox__Backdrop",Input:"Polaris-OptionList-Checkbox__Input","Input-indeterminate":"Polaris-OptionList-Checkbox__Input--indeterminate",Icon:"Polaris-OptionList-Checkbox__Icon",hover:"Polaris-OptionList-Checkbox--hover"},h=n(372),f=n(4849);function p({id:e,checked:t=!1,disabled:n,active:i,onChange:o,name:a,value:s,role:u}){const p=(0,h.L)("Checkbox",e),m=(0,l.AK)(d.Checkbox,i&&d.active),g=(0,l.AK)(d.Input);return r.createElement("div",{className:m},r.createElement("input",{id:p,name:a,value:s,type:"checkbox",checked:t,disabled:n,className:g,"aria-checked":t,onChange:o,role:u}),r.createElement("div",{className:d.Backdrop}),r.createElement("div",{className:d.Icon},r.createElement(f.J,{source:c.S})))}var m=n(2896);function g({label:e,value:t,id:n,select:i,active:o,allowMultiple:a,disabled:c,role:d,media:h,onClick:f,section:g,index:y,verticalAlign:v}){const{value:O,toggle:_}=(0,s.O)(!1),b=(0,r.useCallback)((()=>{c||f(g,y)}),[c,y,f,g]),w=h?r.createElement("div",{className:u.Media},h):null,x=(0,l.AK)(u.SingleSelectOption,O&&u.focused,c&&u.disabled,i&&u.select,o&&u.active,v&&u[(0,l.OZ)("verticalAlign",v)]),k=(0,l.AK)(u.Label,c&&u.disabled,o&&u.active,i&&u.select,v&&u[(0,l.OZ)("verticalAlign",v)]),S="option"===d?"presentation":void 0,M=a?r.createElement("label",{htmlFor:n,className:k},r.createElement("div",{className:u.Checkbox},r.createElement(p,{id:n,value:t,checked:i,active:o,disabled:c,onChange:b,role:S})),w,e):r.createElement("button",{id:n,type:"button",className:x,onClick:b,disabled:c,onFocus:_,onBlur:_,"aria-pressed":o},w,e),T=o?r.createElement(m.R.ScrollTo,null):null;return r.createElement("li",{key:n,className:u.Option,tabIndex:-1},T,M)}var y=n(7283);const v=({marginInline:e,marginBlock:t,marginBlockStart:n,marginBlockEnd:i,marginInlineStart:o,marginInlineEnd:a,children:s})=>{const u=r=>{const s={marginBlockStart:n,marginBlockEnd:i,marginInlineStart:o,marginInlineEnd:a,marginInline:e,marginBlock:t};return s[r]?s[r]:["marginInlineStart","marginInlineEnd"].includes(r)&&e?s.marginInline:["marginBlockStart","marginBlockEnd"].includes(r)&&t?s.marginBlock:void 0},c=u("marginBlockStart"),d=u("marginBlockEnd"),h=u("marginInlineStart"),f=u("marginInlineEnd"),p={...(0,l.jD)("bleed","margin-block-start","space",c),...(0,l.jD)("bleed","margin-block-end","space",d),...(0,l.jD)("bleed","margin-inline-start","space",h),...(0,l.jD)("bleed","margin-inline-end","space",f)};return r.createElement("div",{className:"Polaris-Bleed",style:(0,l.vW)(p)},s)};var O=n(5044);function _({options:e,sections:t,title:n,selected:i,allowMultiple:o,role:s,optionRole:l,verticalAlign:u,onChange:c,id:d}){const[f,p]=(0,r.useState)(b(e,t,n)),m=(0,h.L)("OptionList",d);(0,a.H)((()=>{p(b(e||[],t||[],n))}),[e,t,n],w);const _=(0,r.useCallback)(((e,t)=>{const n=f[e].options[t].value,r=i.indexOf(n);if(o){const e=-1===r?[n,...i]:[...i.slice(0,r),...i.slice(r+1,i.length)];c(e)}else c([n])}),[f,i,o,c]),x=f.length>0?f.map((({title:e,options:t},n)=>{const a=0===n,c=e?r.createElement(y.x,{paddingBlockStart:a?"2":"4",paddingInlineStart:"2",paddingBlockEnd:"2",paddingInlineEnd:"2",borderBlockStart:a?void 0:"divider"},r.createElement(O.x,{as:"p",variant:"headingXs"},e)):null,d=t&&t.map(((e,t)=>{const a=i.includes(e.value),s=e.id||`${m}-${n}-${t}`;return r.createElement(g,Object.assign({key:s},e,{id:s,section:n,index:t,onClick:_,select:a,allowMultiple:o,verticalAlign:u,role:l}))}));return r.createElement(y.x,{key:e||`noTitle-${n}`,as:"li",paddingBlockStart:a?void 0:"2"},c,r.createElement(v,{marginBlockStart:e?void 0:"05"},r.createElement(y.x,{as:"ul",id:`${m}-${n}`,role:s},d)))})):null;return r.createElement(y.x,{as:"ul",role:s,padding:"2"},x)}function b(e,t,n){return null==e?null==t?[]:[{options:[],title:n},...t]:null==t?[{title:n,options:e}]:[{title:n,options:e},...t]}function w(e,t){return i(e)&&i(t)?o(e,t,x):o(e,t)}function x(e,t){const{options:n}=e,{options:r}=t,i=o(n,r),a=e.title===t.title;return i&&a}},4443:(e,t,n)=>{"use strict";n.d(t,{T:()=>ae});var r=n(7294),i=n(3697),o=n(7152),a=n(3295),s={Page:"Polaris-Page",fullWidth:"Polaris-Page--fullWidth",narrowWidth:"Polaris-Page--narrowWidth",Content:"Polaris-Page__Content",divider:"Polaris-Page--divider"},l=n(3999),u={TitleWrapper:"Polaris-Page-Header__TitleWrapper",BreadcrumbWrapper:"Polaris-Page-Header__BreadcrumbWrapper",PaginationWrapper:"Polaris-Page-Header__PaginationWrapper",PrimaryActionWrapper:"Polaris-Page-Header__PrimaryActionWrapper",Row:"Polaris-Page-Header__Row",mobileView:"Polaris-Page-Header--mobileView",RightAlign:"Polaris-Page-Header__RightAlign",noBreadcrumbs:"Polaris-Page-Header--noBreadcrumbs",AdditionalMetaData:"Polaris-Page-Header__AdditionalMetaData",Actions:"Polaris-Page-Header__Actions",longTitle:"Polaris-Page-Header--longTitle",mediumTitle:"Polaris-Page-Header--mediumTitle",isSingleRow:"Polaris-Page-Header--isSingleRow"},c=n(4799),d=n(2467),h={Breadcrumb:"Polaris-Breadcrumbs__Breadcrumb",Icon:"Polaris-Breadcrumbs__Icon",Content:"Polaris-Breadcrumbs__Content"},f=n(4849),p=n(5044),m=n(6324);function g({breadcrumbs:e,backAction:t}){const n=null!=t?t:Array.isArray(e)?e[e.length-1]:e;if(null==n)return null;const{content:i}=n,o=r.createElement(r.Fragment,null,r.createElement("span",{className:h.Icon},r.createElement(f.J,{source:c.S})),r.createElement(p.x,{as:"span",visuallyHidden:!0},i)),a="url"in n?r.createElement(m.H,{key:i,url:n.url,className:h.Breadcrumb,onMouseUp:d.i8,"aria-label":n.accessibilityLabel},o):r.createElement("button",{key:i,className:h.Breadcrumb,onClick:n.onAction,onMouseUp:d.i8,type:"button","aria-label":n.accessibilityLabel},o);return r.createElement("nav",{role:"navigation"},a)}var y,v=n(3378),O=n(6711);!function(e){e.Input="INPUT",e.Textarea="TEXTAREA",e.Select="SELECT",e.ContentEditable="contenteditable"}(y||(y={}));var _=n(5954),b=n(8235),w=n(7932),x=n(8691),k=n(1072);function S({hasNext:e,hasPrevious:t,nextURL:n,previousURL:i,onNext:o,onPrevious:a,nextTooltip:s,previousTooltip:l,nextKeys:u,previousKeys:c,accessibilityLabel:d,accessibilityLabels:h,label:f}){const m=(0,_.Q)(),g=(0,r.createRef)(),y=d||m.translate("Polaris.Pagination.pagination"),S=(null==h?void 0:h.previous)||m.translate("Polaris.Pagination.previous"),L=(null==h?void 0:h.next)||m.translate("Polaris.Pagination.next"),D=r.createElement(k.z,{outline:!0,icon:v.S,accessibilityLabel:S,url:i,onClick:a,disabled:!t,id:"previousURL"}),Y=l&&t?r.createElement(x.u,{activatorWrapper:"span",content:l},D):D,C=r.createElement(k.z,{outline:!0,icon:O.S,accessibilityLabel:L,url:n,onClick:o,disabled:!e,id:"nextURL"}),E=s&&e?r.createElement(x.u,{activatorWrapper:"span",content:s},C):C,A=a||P,Q=c&&(i||a)&&t&&c.map((e=>r.createElement(b.n,{key:e,keyCode:e,handler:T(i?M("previousURL",g):A)}))),R=o||P,j=u&&(n||o)&&e&&u.map((e=>r.createElement(b.n,{key:e,keyCode:e,handler:T(n?M("nextURL",g):R)}))),$=e&&t?r.createElement("span",null,f):r.createElement(p.x,{color:"subdued",as:"span"},f),N=f?r.createElement("div",{"aria-live":"polite"},$):null;return r.createElement("nav",{"aria-label":y,ref:g},Q,j,r.createElement(w.h,{segmented:!f},Y,N,E))}function M(e,t){return()=>{if(null==t.current)return;const n=t.current.querySelector(`#${e}`);n&&n.click()}}function T(e){return()=>{(function(){if(null==document||null==document.activeElement)return!1;const{tagName:e}=document.activeElement;return e===y.Input||e===y.Textarea||e===y.Select||document.activeElement.hasAttribute(y.ContentEditable)})()||e()}}function P(){}var L={Title:"Polaris-Header-Title",TitleWithSubtitle:"Polaris-Header-Title__TitleWithSubtitle",SubTitle:"Polaris-Header-Title__SubTitle",SubtitleCompact:"Polaris-Header-Title__SubtitleCompact",TitleWithMetadataWrapper:"Polaris-Header-Title__TitleWithMetadataWrapper",TitleMetadata:"Polaris-Header-Title__TitleMetadata"};function D({title:e,subtitle:t,titleMetadata:n,compactTitle:o}){const a=(0,i.AK)(L.Title,t&&L.TitleWithSubtitle),s=e?r.createElement("h1",{className:a},e):null,l=n?r.createElement("div",{className:L.TitleMetadata},n):null,u=n?r.createElement("div",{className:L.TitleWithMetadataWrapper},s,l):s,c=t?r.createElement("div",{className:(0,i.AK)(L.SubTitle,o&&L.SubtitleCompact)},r.createElement("p",null,t)):null;return r.createElement(r.Fragment,null,u,c)}var Y={ActionMenu:"Polaris-ActionMenu"},C=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{d:"M6 10a2 2 0 1 1-4.001-.001 2 2 0 0 1 4.001.001zm6 0a2 2 0 1 1-4.001-.001 2 2 0 0 1 4.001.001zm6 0a2 2 0 1 1-4.001-.001 2 2 0 0 1 4.001.001z"}))},E=n(4327),A={RollupActivator:"Polaris-ActionMenu-RollupActions__RollupActivator"},Q=n(3855),R=n(4823);function j({accessibilityLabel:e,items:t=[],sections:n=[]}){const i=(0,_.Q)(),{value:o,toggle:a}=(0,E.O)(!1);if(0===t.length&&0===n.length)return null;const s=r.createElement("div",{className:A.RollupActivator},r.createElement(k.z,{outline:!0,icon:C,accessibilityLabel:e||i.translate("Polaris.ActionMenu.RollupActions.rollupButton"),onClick:a}));return r.createElement(Q.J,{active:o,activator:s,preferredAlignment:"right",onClose:a,hideOnPrint:!0},r.createElement(R.S,{items:t,sections:n,onActionAnyItem:a}))}var $=n(3573),N=n(7662),W=n(2078),z={ActionsLayout:"Polaris-ActionMenu-Actions__ActionsLayout"},H={Details:"Polaris-ActionMenu-MenuGroup__Details"},I={SecondaryAction:"Polaris-ActionMenu-SecondaryAction",destructive:"Polaris-ActionMenu-SecondaryAction--destructive"};function Z({children:e,destructive:t,helpText:n,onAction:o,getOffsetWidth:a,...s}){const l=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;a&&l.current&&a(null===(e=l.current)||void 0===e?void 0:e.offsetWidth)}),[a]);const u=r.createElement(k.z,Object.assign({onClick:o},s),e),c=n?r.createElement(x.u,{content:n},u):u;return r.createElement("span",{className:(0,i.AK)(I.SecondaryAction,t&&I.destructive),ref:l},c)}function F({accessibilityLabel:e,active:t,actions:n,details:i,title:o,icon:a,disabled:s,onClick:l,onClose:u,onOpen:c,getOffsetWidth:d,sections:h}){const f=(0,r.useCallback)((()=>{u(o)}),[u,o]),p=(0,r.useCallback)((()=>{c(o)}),[c,o]),m=(0,r.useCallback)((()=>{l?l(p):p()}),[l,p]),g=(0,r.useCallback)((e=>{d&&d(e)}),[d]),y=r.createElement(Z,{disclosure:!0,disabled:s,icon:a,accessibilityLabel:e,onClick:m,getOffsetWidth:g},o);return r.createElement(Q.J,{active:Boolean(t),activator:y,preferredAlignment:"left",onClose:f,hideOnPrint:!0},r.createElement(R.S,{items:n,sections:h,onActionAnyItem:f}),i&&r.createElement("div",{className:H.Details},i))}const B=8;function U({actions:e=[],groups:t=[],onActionRollup:n}){const i=(0,_.Q)(),o=(0,r.useRef)(null),a=(0,r.useRef)(0),s=(0,r.useRef)(0),l=(0,r.useRef)(0),u=(0,r.useRef)(0),c=(0,r.useRef)([]),d=(0,r.useRef)(null),[h,f]=(0,r.useState)(void 0),[p,m]=(0,r.useState)({showable:[],rolledUp:[]}),g={title:i.translate("Polaris.ActionMenu.Actions.moreActions"),actions:[]},y=[...t].pop(),v=[...c.current].pop()||0,O=(0,r.useCallback)((e=>{c.current=[...c.current,e]}),[]),b=(0,r.useCallback)((e=>f(h?void 0:e)),[h]),x=(0,r.useCallback)((()=>f(void 0)),[]),k=(0,r.useCallback)((()=>{let n=[...e,...t];t.length>0&&(n=[...n].slice(0,n.length-1)),m((e=>({showable:n.slice(0,e.showable.length),rolledUp:n.slice(e.showable.length,n.length)})))}),[e,t]),S=(0,r.useCallback)((()=>{if(0===c.current.length||0===s.current)return;const r=[...e,...t];if(1===r.length)return void m({showable:r,rolledUp:[]});let i=s.current,o=[],h=[];if(r.forEach(((e,t)=>{if(c.current[t]+a.current+B+v<=i)i-=c.current[t]+2*B,o=[...o,e];else{if(i=0,e===y)return;h=[...h,e]}})),n){const e=o.length(0,$.D)((()=>{o.current&&(s.current=o.current.offsetWidth,u.current=0,S())}),50,{leading:!1,trailing:!0})),[S]);(0,N.O)("resize",M),(0,W.L)((()=>{o.current&&(s.current=o.current.offsetWidth,u.current>=2&&[...e,...t].length===l.current?k():S())}),[e,t,S,k]);const T=e.map((e=>{if(p.showable.length>0||p.rolledUp.includes(e))return null;const{content:t,onAction:n,...i}=e;return r.createElement(Z,Object.assign({key:t,onClick:n},i,{getOffsetWidth:O}),t)})),P=p.showable.length>0?p.showable.map((e=>e.content&&r.createElement(Z,Object.assign({key:e.content},e,{getOffsetWidth:O}),e.content))):null,L=[...t,g].filter((e=>0===t.length?e:e===y||!p.rolledUp.some((t=>X(t)&&t.title===e.title)))).map((e=>{const{title:n,actions:i,...o}=e,a=e===g,s=e===y,[l,u]=p.rolledUp.reduce((([e,t],n)=>(X(n)?t.push({title:n.title,items:n.actions.map((e=>({...e,disabled:n.disabled||e.disabled})))}):e.push(n),[e,t])),[[],[]]);return a||s?!a&&s?r.createElement(F,Object.assign({key:n,title:n,active:n===h,actions:[...l,...i],sections:u},o,{onOpen:b,onClose:x,getOffsetWidth:O})):a&&0===t.length&&l.length?r.createElement(F,Object.assign({key:n,title:n,active:n===h,actions:l,sections:u},o,{onOpen:b,onClose:x,getOffsetWidth:O})):void 0:r.createElement(F,Object.assign({key:n,title:n,active:n===h,actions:i},o,{onOpen:b,onClose:x,getOffsetWidth:O}))})),D=r.createElement(w.h,{spacing:"extraTight"},P,T,L);return r.createElement("div",{className:z.ActionsLayout,ref:o},D)}function X(e){return"title"in e}function q({actions:e=[],groups:t=[],rollup:n,rollupActionsLabel:o,onActionRollup:a}){if(0===e.length&&0===t.length)return null;const s=(0,i.AK)(Y.ActionMenu,n&&Y.rollup),l=t.map((e=>function({title:e,actions:t,disabled:n}){return{title:e,items:t.map((e=>({...e,disabled:n||e.disabled})))}}(e)));return r.createElement("div",{className:s},n?r.createElement(j,{accessibilityLabel:o,items:e,sections:l}):r.createElement(U,{actions:e,groups:t,onActionRollup:a}))}var V=n(357),G=n(7283),J=n(5528),K=n(1821);const ee=20,te=8,ne=34;function re({title:e,subtitle:t,titleMetadata:n,additionalMetadata:s,titleHidden:c=!1,primaryAction:d,pagination:h,additionalNavigation:f,breadcrumbs:m,backAction:y,secondaryActions:v=[],actionGroups:O=[],compactTitle:b=!1,onActionRollup:w}){const x=(0,_.Q)(),{isNavigationCollapsed:k}=(0,V.a)(),M=!d&&!h&&((0,o.Q)(v)&&!v.length||(0,a.v)(v))&&!O.length;let T=null;y?T=r.createElement("div",{className:u.BreadcrumbWrapper},r.createElement(G.x,{maxWidth:"100%",paddingInlineEnd:"4",printHidden:!0},r.createElement(g,{backAction:y}))):(Array.isArray(m)&&m.length>0||!Array.isArray(m)&&m)&&(T=r.createElement("div",{className:u.BreadcrumbWrapper},r.createElement(G.x,{maxWidth:"100%",paddingInlineEnd:"4",printHidden:!0},r.createElement(g,{breadcrumbs:m}))));const P=h&&!k?r.createElement("div",{className:u.PaginationWrapper},r.createElement(G.x,{printHidden:!0},r.createElement(S,h))):null,L=f?r.createElement(J.g,{gap:"4",align:"end"},r.createElement(G.x,{printHidden:!0},f)):null,Y=r.createElement("div",{className:u.TitleWrapper},r.createElement(D,{title:e,subtitle:t,titleMetadata:n,compactTitle:b})),C=d?r.createElement(ie,{primaryAction:d}):null;let E=null;(0,o.Q)(v)&&(v.length>0||function(e=[]){return 0!==e.length&&e.some((e=>e.actions.length>0))}(O))?E=r.createElement(q,{actions:v,groups:O,rollup:k,rollupActionsLabel:e?x.translate("Polaris.Page.Header.rollupActionsLabel",{title:e}):void 0,onActionRollup:w}):(0,a.v)(v)&&(E=r.createElement(r.Fragment,null,v));const A=T||P||L?r.createElement(G.x,{printHidden:!0,paddingBlockEnd:"1",paddingInlineEnd:E&&k?"10":void 0},r.createElement(J.g,{gap:"4",align:"space-between",blockAlign:"center"},T,L,P)):null,Q=s?r.createElement("div",{className:u.AdditionalMetaData},r.createElement(p.x,{color:"subdued",as:"span"},s)):null,R=(0,i.AK)(M&&u.isSingleRow,A&&u.hasNavigation,E&&u.hasActionMenu,k&&u.mobileView,!T&&u.noBreadcrumbs,e&&e.lengthne&&u.longTitle),{slot1:j,slot2:$,slot3:N,slot4:W,slot5:z,slot6:H}=function({actionMenuMarkup:e,additionalMetadataMarkup:t,additionalNavigationMarkup:n,breadcrumbMarkup:i,isNavigationCollapsed:o,pageTitleMarkup:a,paginationMarkup:s,primaryActionMarkup:l,title:u}){const c={mobileCompact:{slots:{slot1:null,slot2:a,slot3:e,slot4:l,slot5:t,slot6:n},condition:o&&null==i&&null!=u&&u.length<=te},mobileDefault:{slots:{slot1:i,slot2:a,slot3:e,slot4:l,slot5:t,slot6:n},condition:o},desktopCompact:{slots:{slot1:i,slot2:a,slot3:e,slot4:l,slot5:t,slot6:n},condition:!o&&null==s&&null==e&&null!=u&&u.length<=ee},desktopDefault:{slots:{slot1:i,slot2:a,slot3:r.createElement(r.Fragment,null,e,l),slot4:s,slot5:t,slot6:n},condition:!o}};return(Object.values(c).find((e=>e.condition))||c.desktopDefault).slots}({actionMenuMarkup:E,additionalMetadataMarkup:Q,additionalNavigationMarkup:L,breadcrumbMarkup:T,isNavigationCollapsed:k,pageTitleMarkup:Y,paginationMarkup:P,primaryActionMarkup:C,title:e});return r.createElement(G.x,{position:"relative",paddingBlockStart:{xs:"4",md:"5"},paddingBlockEnd:{xs:"4",md:"5"},paddingInlineStart:{xs:"4",sm:"0"},paddingInlineEnd:{xs:"4",sm:"0"},visuallyHidden:c},r.createElement("div",{className:R},r.createElement(l.Vr,{condition:[j,$,N,W].some(oe)},r.createElement("div",{className:u.Row},j,$,r.createElement(l.Vr,{condition:[N,W].some(oe)},r.createElement("div",{className:u.RightAlign},r.createElement(l.M2,{condition:[N,W].every(oe),wrapper:e=>r.createElement("div",{className:u.Actions},e)},N,W))))),r.createElement(l.Vr,{condition:[z,H].some(oe)},r.createElement("div",{className:u.Row},r.createElement(J.g,{gap:"4"},z),r.createElement(l.Vr,{condition:null!=H},r.createElement("div",{className:u.RightAlign},H))))))}function ie({primaryAction:e}){const{isNavigationCollapsed:t}=(0,V.a)();let n;if((0,o.Q)(e)){const{primary:i,helpText:o}=e,a=void 0===i||i,s=(0,K.h)(function(e,t){let{content:n,accessibilityLabel:r,icon:i}=t;return null==i?{...t,icon:void 0}:(e?(r=r||n,n=void 0):i=void 0,{...t,content:n,accessibilityLabel:r,icon:i})}(t,e),{primary:a});n=o?r.createElement(x.u,{content:o},s):s}else n=e;return r.createElement("div",{className:u.PrimaryActionWrapper},r.createElement(G.x,{printHidden:!0},n))}function oe(e){return null!=e}function ae({children:e,fullWidth:t,narrowWidth:n,divider:l,...u}){const c=(0,i.AK)(s.Page,t&&s.fullWidth,n&&s.narrowWidth),d=null!=u.title&&""!==u.title||null!=u.subtitle&&""!==u.subtitle||null!=u.primaryAction||null!=u.secondaryActions&&((0,o.Q)(u.secondaryActions)&&u.secondaryActions.length>0||(0,a.v)(u.secondaryActions))||null!=u.actionGroups&&u.actionGroups.length>0||null!=u.breadcrumbs&&Array.isArray(u.breadcrumbs)&&u.breadcrumbs.length>0||null!=u.breadcrumbs||null!=u.backAction,h=(0,i.AK)(!d&&s.Content,l&&d&&s.divider),f=d?r.createElement(re,u):null;return r.createElement("div",{className:c},f,r.createElement("div",{className:h},e))}},4576:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(7294),i=n(7152),o=n(3295),a={PageActions:"Polaris-PageActions"},s=n(1821),l=n(7932),u=n(1042);function c({primaryAction:e,secondaryActions:t}){let n=null;(0,o.v)(e)?n=r.createElement(r.Fragment,null,e):e&&(n=(0,s.B)(e,{primary:!0}));let c=null;return(0,i.Q)(t)&&t.length>0?c=r.createElement(l.h,null,(0,s.B)(t)):(0,o.v)(t)&&(c=r.createElement(r.Fragment,null,t)),r.createElement("div",{className:a.PageActions},r.createElement(u.D,{distribution:"trailing",spacing:"tight"},c,n))}},3855:(e,t,n)=>{"use strict";n.d(t,{J:()=>P});var r=n(7294),i=n(2467),o=n(9572),a=n(3531),s=n(7394),l=n(3697),u=n(3999),c=n(1667),d={Popover:"Polaris-Popover",PopoverOverlay:"Polaris-Popover__PopoverOverlay","PopoverOverlay-entering":"Polaris-Popover__PopoverOverlay--entering","PopoverOverlay-open":"Polaris-Popover__PopoverOverlay--open","PopoverOverlay-exiting":"Polaris-Popover__PopoverOverlay--exiting",measuring:"Polaris-Popover--measuring",fullWidth:"Polaris-Popover--fullWidth",Content:"Polaris-Popover__Content",positionedAbove:"Polaris-Popover--positionedAbove","Content-fullHeight":"Polaris-Popover__Content--fullHeight","Content-fluidContent":"Polaris-Popover__Content--fluidContent",Pane:"Polaris-Popover__Pane","Pane-fixed":"Polaris-Popover__Pane--fixed","Pane-captureOverscroll":"Polaris-Popover__Pane--captureOverscroll",Section:"Polaris-Popover__Section",FocusTracker:"Polaris-Popover__FocusTracker","PopoverOverlay-hideOnPrint":"Polaris-Popover__PopoverOverlay--hideOnPrint"},h=n(8235),f=n(9599),p=n(7283);function m({children:e}){return r.createElement("div",{className:d.Section},r.createElement(p.x,{padding:"4"},e))}var g=n(2896);function y({captureOverscroll:e=!1,fixed:t,sectioned:n,children:i,height:o,onScrolledToBottom:a}){const s=(0,l.AK)(d.Pane,t&&d["Pane-fixed"],e&&d["Pane-captureOverscroll"]),c=n?(0,u.oh)(i,m,{}):i,h=o?{height:o,maxHeight:o,minHeight:o}:void 0;return t?r.createElement("div",{style:h,className:s},c):r.createElement(g.R,{shadow:!0,className:s,style:h,onScrolledToBottom:a},c)}var v=n(5217),O=n(9003);let _;var b;!function(e){e[e.Click=0]="Click",e[e.EscapeKeypress=1]="EscapeKeypress",e[e.FocusOut=2]="FocusOut",e[e.ScrollOut=3]="ScrollOut"}(_||(_={})),function(e){e.Entering="entering",e.Entered="entered",e.Exiting="exiting",e.Exited="exited"}(b||(b={}));class w extends r.PureComponent{constructor(e){super(e),this.context=void 0,this.state={transitionStatus:this.props.active?b.Entering:b.Exited},this.contentNode=(0,r.createRef)(),this.enteringTimer=void 0,this.exitingTimer=void 0,this.overlayRef=void 0,this.renderPopover=e=>{const{measuring:t,desiredHeight:n,positioning:i}=e,{id:a,children:s,sectioned:f,fullWidth:m,fullHeight:g,fluidContent:v,hideOnPrint:_,autofocusTarget:b,captureOverscroll:w}=this.props,x=(0,l.AK)(d.Popover,"above"===i&&d.positionedAbove,m&&d.fullWidth,t&&d.measuring,_&&d["PopoverOverlay-hideOnPrint"]),k=t?void 0:{height:n},S=(0,l.AK)(d.Content,g&&d["Content-fullHeight"],v&&d["Content-fluidContent"]),M=r.createElement("div",{id:a,tabIndex:"none"===b?void 0:-1,className:S,style:k,ref:this.contentNode},function(e,t){const n=r.Children.toArray(e);return(0,u.Mc)(n[0],y)?n:(0,u.oh)(n,y,t)}(s,{captureOverscroll:w,sectioned:f}));return r.createElement("div",Object.assign({className:x},o.IJ.props),r.createElement(O.h,{event:"click",handler:this.handleClick}),r.createElement(O.h,{event:"touchstart",handler:this.handleClick}),r.createElement(h.n,{keyCode:c.s.Escape,handler:this.handleEscape}),r.createElement("div",{className:d.FocusTracker,tabIndex:0,onFocus:this.handleFocusFirstItem}),r.createElement(p.x,{position:"relative",overflowX:"hidden",overflowY:"hidden",background:"surface",borderRadius:"2",outline:"transparent"},M),r.createElement("div",{className:d.FocusTracker,tabIndex:0,onFocus:this.handleFocusLastItem}))},this.handleClick=e=>{const t=e.target,{contentNode:n,props:{activator:r,onClose:i,preventCloseOnChildOverlayClick:o}}=this,a=e.composedPath(),s=o?function(e,t){return e.some((e=>e instanceof Node&&(null==t?void 0:t.contains(e))))}(a,this.context.container):k(a,n),l=x(r,t);s||l||this.state.transitionStatus!==b.Entered||i(_.Click)},this.handleScrollOut=()=>{this.props.onClose(_.ScrollOut)},this.handleEscape=e=>{const t=e.target,{contentNode:n,props:{activator:r}}=this,i=k(e.composedPath(),n),o=x(r,t);(i||o)&&this.props.onClose(_.EscapeKeypress)},this.handleFocusFirstItem=()=>{this.props.onClose(_.FocusOut)},this.handleFocusLastItem=()=>{this.props.onClose(_.FocusOut)},this.overlayRef=(0,r.createRef)()}forceUpdatePosition(){var e;null===(e=this.overlayRef.current)||void 0===e||e.forceUpdatePosition()}changeTransitionStatus(e,t){this.setState({transitionStatus:e},t),this.contentNode.current&&this.contentNode.current.getBoundingClientRect()}componentDidMount(){this.props.active&&(this.focusContent(),this.changeTransitionStatus(b.Entered))}componentDidUpdate(e){this.props.active&&!e.active&&(this.focusContent(),this.changeTransitionStatus(b.Entering,(()=>{this.clearTransitionTimeout(),this.enteringTimer=window.setTimeout((()=>{this.setState({transitionStatus:b.Entered})}),parseInt(s.EA["duration-100"],10))}))),!this.props.active&&e.active&&this.changeTransitionStatus(b.Exiting,(()=>{this.clearTransitionTimeout(),this.exitingTimer=window.setTimeout((()=>{this.setState({transitionStatus:b.Exited})}),parseInt(s.EA["duration-100"],10))}))}componentWillUnmount(){this.clearTransitionTimeout()}render(){const{active:e,activator:t,fullWidth:n,preferredPosition:i="below",preferredAlignment:o="center",preferInputActivator:a=!0,fixed:s,zIndexOverride:u}=this.props,{transitionStatus:c}=this.state;if(c===b.Exited&&!e)return null;const h=(0,l.AK)(d.PopoverOverlay,c===b.Entering&&d["PopoverOverlay-entering"],c===b.Entered&&d["PopoverOverlay-open"],c===b.Exiting&&d["PopoverOverlay-exiting"]);return r.createElement(f.u,{ref:this.overlayRef,fullWidth:n,active:e,activator:t,preferInputActivator:a,preferredPosition:i,preferredAlignment:o,render:this.renderPopover.bind(this),fixed:s,onScrollOut:this.handleScrollOut,classNames:h,zIndexOverride:u})}clearTransitionTimeout(){this.enteringTimer&&window.clearTimeout(this.enteringTimer),this.exitingTimer&&window.clearTimeout(this.exitingTimer)}focusContent(){const{autofocusTarget:e="container"}=this.props;"none"!==e&&null!=this.contentNode&&requestAnimationFrame((()=>{if(null==this.contentNode.current)return;const t=(0,i.Y_)(this.contentNode.current);t&&"first-node"===e?t.focus({preventScroll:!1}):this.contentNode.current.focus({preventScroll:!1})}))}}function x(e,t){if(e===t)return!0;let n=t.parentNode;for(;null!=n;){if(n===e)return!0;n=n.parentNode}return!1}function k(e,t){return null!=t.current&&e.includes(t.current)}w.contextType=v.j;var S=n(372);const M=(0,r.forwardRef)((function({activatorWrapper:e="div",children:t,onClose:n,activator:o,preventFocusOnClose:s,active:l,fixed:u,ariaHaspopup:c,preferInputActivator:d=!0,zIndexOverride:h,...f},p){const[m,g]=(0,r.useState)(),y=(0,r.useRef)(null),v=(0,r.useRef)(null),O=e,b=(0,S.L)("popover");function x(){var e;null===(e=y.current)||void 0===e||e.forceUpdatePosition()}(0,r.useImperativeHandle)(p,(()=>({forceUpdatePosition:x})));const k=(0,r.useCallback)((()=>{if(null==v.current)return;const e=(0,i.IT)(v.current)||v.current,t="disabled"in e&&Boolean(e.disabled);!function(e,{id:t,active:n=!1,ariaHaspopup:r,activatorDisabled:i=!1}){i||(e.tabIndex=e.tabIndex||0),e.setAttribute("aria-controls",t),e.setAttribute("aria-owns",t),e.setAttribute("aria-expanded",String(n)),null!=r&&e.setAttribute("aria-haspopup",String(r))}(e,{id:b,active:l,ariaHaspopup:c,activatorDisabled:t})}),[b,l,c]);(0,r.useEffect)((()=>{(!m&&v.current||m&&v.current&&!v.current.contains(m))&&g(v.current.firstElementChild),k()}),[m,k]),(0,r.useEffect)((()=>{m&&v.current&&g(v.current.firstElementChild),k()}),[m,k]);const M=m?r.createElement(a.h,{idPrefix:"popover"},r.createElement(w,Object.assign({ref:y,id:b,activator:m,preferInputActivator:d,onClose:e=>{if(n(e),null!=v.current&&!s)if(e===_.FocusOut&&m){const e=(0,i.IT)(m)||(0,i.IT)(v.current)||v.current;(0,i.v)(e,T)||e.focus()}else if(e===_.EscapeKeypress&&m){const e=(0,i.IT)(m)||(0,i.IT)(v.current)||v.current;e?e.focus():(0,i.v)(e,T)}},active:l,fixed:u,zIndexOverride:h},f),t)):null;return r.createElement(O,{ref:v},r.Children.only(o),M)}));function T(e){let t=e.parentElement;for(;t;){if(t.matches(o.l4.selector))return!1;t=t.parentElement}return!0}const P=Object.assign(M,{Pane:y,Section:m})},3531:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(7294),i=n(3935),o=n(5217),a=n(372);function s({children:e,idPrefix:t="",onPortalCreated:n=l}){const{container:s}=function(){const e=(0,r.useContext)(o.j);if(!e)throw new Error("No portals manager was provided. Your application must be wrapped in an component. See https://polaris.shopify.com/components/app-provider for implementation instructions.");return e}(),u=(0,a.L)("portal"),c=""!==t?`${t}-${u}`:u;return(0,r.useEffect)((()=>{n()}),[n]),s?(0,i.createPortal)(r.createElement("div",{"data-portal-id":c},e),s):null}function l(){}},9599:(e,t,n)=>{"use strict";n.d(t,{u:()=>f});var r=n(7294),i=n(3697),o=n(4999),a=n(9572);function s(e,t){const{center:n}=e;return n.yt.top+t.height}function l(e,t=u()){const n=Math.max(e.top,0),r=Math.max(e.left,0),i=Math.min(e.top+e.height,t.height),a=Math.min(e.left+e.width,t.width);return new o.U({top:n,left:r,height:i-n,width:a-r})}function u(){return new o.U({top:window.scrollY,left:window.scrollX,height:window.innerHeight,width:document.body.clientWidth})}var c=n(2896),d=n(9003);const h={childList:!0,subtree:!0,characterData:!0};class f extends r.PureComponent{constructor(e){super(e),this.state={measuring:!0,activatorRect:(0,o.P)(this.props.activator),right:void 0,left:void 0,top:0,height:0,width:null,positioning:"below",zIndex:null,outsideScrollableContainer:!1,lockPosition:!1,chevronOffset:0},this.overlay=null,this.scrollableContainers=[],this.observer=void 0,this.overlayDetails=()=>{const{measuring:e,left:t,right:n,positioning:r,height:i,activatorRect:o,chevronOffset:a}=this.state;return{measuring:e,left:t,right:n,desiredHeight:i,positioning:r,activatorRect:o,chevronOffset:a}},this.setOverlay=e=>{this.overlay=e},this.setScrollableContainers=()=>{const e=[];let t=c.R.forNode(this.props.activator);if(t)for(e.push(t);null!==(n=t)&&void 0!==n&&n.parentElement;){var n;t=c.R.forNode(t.parentElement),e.push(t)}this.scrollableContainers=e},this.registerScrollHandlers=()=>{this.scrollableContainers.forEach((e=>{e.addEventListener("scroll",this.handleMeasurement)}))},this.unregisterScrollHandlers=()=>{this.scrollableContainers.forEach((e=>{e.removeEventListener("scroll",this.handleMeasurement)}))},this.handleMeasurement=()=>{const{lockPosition:e,top:t}=this.state;this.observer.disconnect(),this.setState((({left:e,top:t,right:n})=>({left:e,right:n,top:t,height:0,positioning:"below",measuring:!0})),(()=>{if(null==this.overlay||null==this.firstScrollableContainer)return;const{activator:n,preferredPosition:r="below",preferredAlignment:i="center",onScrollOut:c,fullWidth:d,fixed:f,preferInputActivator:p=!0}=this.props,m=p&&n.querySelector("input")||n,g=(0,o.P)(m),y=(0,o.P)(this.overlay),v=this.firstScrollableContainer===document?document.body:this.firstScrollableContainer,O=(0,o.P)(v),_=d?new o.U({...y,width:g.width}):y;v===document.body&&(O.height=document.body.scrollHeight);let b=0;const w=v.querySelector(`${a.VT.selector}`);w&&(b=w.clientHeight);const x=this.overlay.firstElementChild&&this.overlay.firstChild instanceof HTMLElement?function(e){const t=window.getComputedStyle(e);return{activator:parseFloat(t.marginTop||"0"),container:parseFloat(t.marginBottom||"0"),horizontal:parseFloat(t.marginLeft||"0")}}(this.overlay.firstElementChild):{activator:0,container:0,horizontal:0},k=u(),S=function(e){const t=e.closest(a.EY.selector)||document.body,n=t===document.body?"auto":parseInt(window.getComputedStyle(t).zIndex||"0",10);return"auto"===n||isNaN(n)?null:n}(n),M=null==S?S:S+1,T=function(e,t,n,r,i,o,a,s=0){const l=e.top,u=l+e.height,c=e.top-s,d=i.height-e.top-e.height,h=t.height,f=n.activator+n.container,p=n.container,m=e.top-Math.max(r.top,0),g=i.top+Math.min(i.height,r.top+r.height)-(e.top+e.height),y=m>=p,v=g>=p,O=Math.min(d,h),_=Math.min(c,h),b=a?0:i.top,w={height:_-f,top:l+b-_,positioning:"above"},x={height:O-f,top:u+b,positioning:"below"};return"above"===o?(y||m>=g&&!v)&&(c>h||c>d)?w:x:"below"===o?(v||g>=m&&!y)&&(d>h||d>c)?x:w:y&&v?c>d?w:x:m>p?w:x}(g,_,x,O,k,r,f,b),P=function(e,t,n,r,i){const o=n.width-t.width;if("left"===i)return Math.min(o,Math.max(0,e.left-r.horizontal));if("right"===i){const t=n.width-(e.left+e.width);return Math.min(o,Math.max(0,t-r.horizontal))}return Math.min(o,Math.max(0,e.center.x-t.width/2))}(g,_,k,x,i),L=g.center.x-P;this.setState({measuring:!1,activatorRect:(0,o.P)(n),left:"right"!==i?P:void 0,right:"right"===i?P:void 0,top:e?t:T.top,lockPosition:Boolean(f),height:T.height||0,width:d?_.width:null,positioning:T.positioning,outsideScrollableContainer:null!=c&&s(g,l(O)),zIndex:M,chevronOffset:L},(()=>{this.overlay&&(this.observer.observe(this.overlay,h),this.observer.observe(n,h))}))}))},this.observer=new MutationObserver(this.handleMeasurement)}componentDidMount(){this.setScrollableContainers(),this.scrollableContainers.length&&!this.props.fixed&&this.registerScrollHandlers(),this.handleMeasurement()}componentWillUnmount(){this.observer.disconnect(),this.scrollableContainers.length&&!this.props.fixed&&this.unregisterScrollHandlers()}componentDidUpdate(){const{outsideScrollableContainer:e,top:t}=this.state,{onScrollOut:n,active:r}=this.props;r&&null!=n&&0!==t&&e&&n()}render(){const{left:e,right:t,top:n,zIndex:o,width:a}=this.state,{render:s,fixed:l,preventInteraction:u,classNames:c,zIndexOverride:h}=this.props,f={top:null==n||isNaN(n)?void 0:n,left:null==e||isNaN(e)?void 0:e,right:null==t||isNaN(t)?void 0:t,width:null==a||isNaN(a)?void 0:a,zIndex:h||o||void 0},p=(0,i.AK)("Polaris-PositionedOverlay",l&&"Polaris-PositionedOverlay--fixed",u&&"Polaris-PositionedOverlay--preventInteraction",c);return r.createElement("div",{className:p,style:f,ref:this.setOverlay},r.createElement(d.h,{event:"resize",handler:this.handleMeasurement}),s(this.overlayDetails()))}get firstScrollableContainer(){var e;return null!==(e=this.scrollableContainers[0])&&void 0!==e?e:null}forceUpdatePosition(){requestAnimationFrame(this.handleMeasurement)}}},2896:(e,t,n)=>{"use strict";n.d(t,{R:()=>g});var r=n(7294),i=n(3573),o=n(3697),a=n(9572);const s=Symbol("unique_identifier");var l=n(6938);const u=(0,r.createContext)(void 0);var c=n(372),d=n(6077),h=n(9702);const f=100,p=(0,r.forwardRef)((({children:e,className:t,horizontal:n=!0,vertical:c=!0,shadow:p,hint:g,focusable:y,onScrolledToBottom:v,...O},_)=>{const[b,w]=(0,r.useState)(!1),[x,k]=(0,r.useState)(!1),S=function(e){const t=(0,r.useRef)(s);return t.current===s&&(t.current=new d.s),t}(),M=(0,r.useRef)(null),T=(0,r.useCallback)(((e,t={})=>{var n;const r=t.behavior||"smooth",i=m()?"auto":r;null===(n=M.current)||void 0===n||n.scrollTo({top:e,behavior:i})}),[]),P=(0,r.useRef)();(0,r.useImperativeHandle)(_||P,(()=>({scrollTo:T})));const L=(0,r.useCallback)((()=>{const e=M.current;e&&requestAnimationFrame((()=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e,i=Boolean(r>n),o=Boolean(t>0),a=Boolean(t+n>=r-2);w(o),k(!a),i&&a&&v&&v()}))}),[v]);!function(e){const t=(0,l.u)(),n=(0,r.useRef)(!1);t&&!n.current&&(n.current=!0,L(),g&&requestAnimationFrame((()=>function(e){if(!e||m())return;const t=e.scrollHeight-e.clientHeight,n=Math.min(f,t)-2,r=()=>{requestAnimationFrame((()=>{e.scrollTop>=n&&(e.removeEventListener("scroll",r),e.scrollTo({top:0,behavior:"smooth"}))}))};e.addEventListener("scroll",r),e.scrollTo({top:f,behavior:"smooth"})}(M.current))))}(),(0,r.useEffect)((()=>{var e;const t=M.current;if(!t)return;const n=(0,i.D)(L,50,{trailing:!0});return null===(e=S.current)||void 0===e||e.setContainer(t),t.addEventListener("scroll",L),globalThis.addEventListener("resize",n),()=>{t.removeEventListener("scroll",L),globalThis.removeEventListener("resize",n)}}),[S,L]);const D=(0,o.AK)(t,"Polaris-Scrollable",c&&"Polaris-Scrollable--vertical",n&&"Polaris-Scrollable--horizontal",p&&b&&"Polaris-Scrollable--hasTopShadow",p&&x&&"Polaris-Scrollable--hasBottomShadow");return r.createElement(u.Provider,{value:T},r.createElement(h.p.Provider,{value:S.current},r.createElement("div",Object.assign({className:D},a.fm.props,O,{ref:M,tabIndex:y?0:void 0}),e)))}));function m(){try{return window.matchMedia("(prefers-reduced-motion: reduce)").matches}catch(e){return!1}}p.displayName="Scrollable";const g=p;g.ScrollTo=function(){const e=(0,r.useRef)(null),t=(0,r.useContext)(u);(0,r.useEffect)((()=>{t&&e.current&&t(e.current.offsetTop)}),[t]);const n=(0,c.L)("ScrollTo");return r.createElement("a",{id:n,ref:e})},g.forNode=e=>{const t=e.closest(a.fm.selector);return t instanceof HTMLElement?t:document}},5489:(e,t,n)=>{"use strict";n.d(t,{P:()=>f});var r=n(7294),i=n(5120),o=n(3697),a={Select:"Polaris-Select",disabled:"Polaris-Select--disabled",Content:"Polaris-Select__Content",InlineLabel:"Polaris-Select__InlineLabel",Icon:"Polaris-Select__Icon",Backdrop:"Polaris-Select__Backdrop",SelectedOption:"Polaris-Select__SelectedOption",Prefix:"Polaris-Select__Prefix",Input:"Polaris-Select__Input",error:"Polaris-Select--error",hover:"Polaris-Select--hover"},s=n(372),l=n(4849),u=n(4727),c=n(7283),d=n(5044);const h="";function f({options:e,label:t,labelAction:n,labelHidden:f,labelInline:p,disabled:g,helpText:v,placeholder:_,id:b,name:w,value:x=h,error:k,onChange:S,onFocus:M,onBlur:T,requiredIndicator:P}){const L=(0,s.L)("Select",b),D=!!p||f,Y=(0,o.AK)(a.Select,k&&a.error,g&&a.disabled),C=S?e=>S(e.currentTarget.value,L):void 0,E=[];v&&E.push((0,u.Nh)(L)),k&&E.push(`${L}Error`);let A=(e||[]).map(y);_&&(A=[{label:_,value:h,disabled:!0},...A]);const Q=p&&r.createElement(c.x,{paddingInlineEnd:"1"},r.createElement(d.x,{as:"span",color:"subdued",truncate:!0},t)),R=function(e,t){const n=function(e){let t=[];return e.forEach((e=>{m(e)?t=t.concat(e.options):t.push(e)})),t}(e);let r=n.find((e=>t===e.value));return void 0===r&&(r=n.find((e=>!e.hidden))),r||{value:"",label:""}}(A,x),j=R.prefix&&r.createElement("div",{className:a.Prefix},R.prefix),$=r.createElement("div",{className:a.Content,"aria-hidden":!0,"aria-disabled":g},Q,j,r.createElement("span",{className:a.SelectedOption},R.label),r.createElement("span",{className:a.Icon},r.createElement(l.J,{source:i.S}))),N=A.map(O);return r.createElement(u.jN,{id:L,label:t,error:k,action:n,labelHidden:D,helpText:v,requiredIndicator:P},r.createElement("div",{className:Y},r.createElement("select",{id:L,name:w,value:x,className:a.Input,disabled:g,onFocus:M,onBlur:T,onChange:C,"aria-invalid":Boolean(k),"aria-describedby":E.length?E.join(" "):void 0,"aria-required":P},N),$,r.createElement("div",{className:a.Backdrop})))}function p(e){return"string"==typeof e}function m(e){return"object"==typeof e&&"options"in e&&null!=e.options}function g(e){return{label:e,value:e}}function y(e){if(p(e))return g(e);if(m(e)){const{title:t,options:n}=e;return{title:t,options:n.map((e=>p(e)?g(e):e))}}return e}function v(e){const{value:t,label:n,prefix:i,...o}=e;return r.createElement("option",Object.assign({key:t,value:t},o),n)}function O(e){if(m(e)){const{title:t,options:n}=e;return r.createElement("optgroup",{label:t,key:t},n.map(v))}return v(e)}},8401:(e,t,n)=>{"use strict";n.d(t,{$:()=>l});var r=n(7294),i=n(3697),o=n(6938),a={Spinner:"Polaris-Spinner",sizeSmall:"Polaris-Spinner--sizeSmall",sizeLarge:"Polaris-Spinner--sizeLarge"},s=n(5044);function l({size:e="large",accessibilityLabel:t,hasFocusableParent:n}){const l=(0,o.u)(),u=(0,i.AK)(a.Spinner,e&&a[(0,i.OZ)("size",e)]),c="large"===e?r.createElement("svg",{viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M15.542 1.487A21.507 21.507 0 00.5 22c0 11.874 9.626 21.5 21.5 21.5 9.847 0 18.364-6.675 20.809-16.072a1.5 1.5 0 00-2.904-.756C37.803 34.755 30.473 40.5 22 40.5 11.783 40.5 3.5 32.217 3.5 22c0-8.137 5.3-15.247 12.942-17.65a1.5 1.5 0 10-.9-2.863z"})):r.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M7.229 1.173a9.25 9.25 0 1011.655 11.412 1.25 1.25 0 10-2.4-.698 6.75 6.75 0 11-8.506-8.329 1.25 1.25 0 10-.75-2.385z"})),d={...!n&&{role:"status"}},h=(l||!n)&&r.createElement(s.x,{as:"span",visuallyHidden:!0},t);return r.createElement(r.Fragment,null,r.createElement("span",{className:u},c),r.createElement("span",d,h))}},5044:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(7294),i=n(3697),o={root:"Polaris-Text--root",block:"Polaris-Text--block",truncate:"Polaris-Text--truncate",visuallyHidden:"Polaris-Text--visuallyHidden",start:"Polaris-Text--start",center:"Polaris-Text--center",end:"Polaris-Text--end",justify:"Polaris-Text--justify",success:"Polaris-Text--success",critical:"Polaris-Text--critical",warning:"Polaris-Text--warning",subdued:"Polaris-Text--subdued","text-inverse":"Polaris-Text__text--inverse",headingXs:"Polaris-Text--headingXs",headingSm:"Polaris-Text--headingSm",headingMd:"Polaris-Text--headingMd",headingLg:"Polaris-Text--headingLg",headingXl:"Polaris-Text--headingXl",heading2xl:"Polaris-Text--heading2xl",heading3xl:"Polaris-Text--heading3xl",heading4xl:"Polaris-Text--heading4xl",bodySm:"Polaris-Text--bodySm",bodyMd:"Polaris-Text--bodyMd",bodyLg:"Polaris-Text--bodyLg",regular:"Polaris-Text--regular",medium:"Polaris-Text--medium",semibold:"Polaris-Text--semibold",bold:"Polaris-Text--bold",break:"Polaris-Text--break",numeric:"Polaris-Text--numeric"};const a=({alignment:e,as:t,breakWord:n,children:a,color:s,fontWeight:l,id:u,numeric:c=!1,truncate:d=!1,variant:h,visuallyHidden:f=!1})=>{const p=t||(f?"span":"p"),m=(0,i.AK)(o.root,h&&o[h],l&&o[l],(e||d)&&o.block,e&&o[e],n&&o.break,s&&o[s],c&&o.numeric,d&&o.truncate,f&&o.visuallyHidden);return r.createElement(p,Object.assign({className:m},u&&{id:u}),a)}},4497:(e,t,n)=>{"use strict";n.d(t,{n:()=>Y});var r=n(7294),i=function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),r.createElement("path",{fillRule:"evenodd",d:"M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm-2.293 4.293a1 1 0 0 0-1.414 1.414l2.293 2.293-2.293 2.293a1 1 0 1 0 1.414 1.414l2.293-2.293 2.293 2.293a1 1 0 1 0 1.414-1.414l-2.293-2.293 2.293-2.293a1 1 0 0 0-1.414-1.414l-2.293 2.293-2.293-2.293z"}))},o=n(3697),a=n(6938),s=n(1667),l=n(7662),u={TextField:"Polaris-TextField",multiline:"Polaris-TextField--multiline",Input:"Polaris-TextField__Input",hasValue:"Polaris-TextField--hasValue",focus:"Polaris-TextField--focus",VerticalContent:"Polaris-TextField__VerticalContent",Backdrop:"Polaris-TextField__Backdrop",error:"Polaris-TextField--error",readOnly:"Polaris-TextField--readOnly",disabled:"Polaris-TextField--disabled",Prefix:"Polaris-TextField__Prefix",suggestion:"Polaris-TextField--suggestion","Input-hasClearButton":"Polaris-TextField__Input--hasClearButton","Input-suffixed":"Polaris-TextField__Input--suffixed","Input-alignRight":"Polaris-TextField__Input--alignRight","Input-alignLeft":"Polaris-TextField__Input--alignLeft","Input-alignCenter":"Polaris-TextField__Input--alignCenter",Suffix:"Polaris-TextField__Suffix",CharacterCount:"Polaris-TextField__CharacterCount",AlignFieldBottom:"Polaris-TextField__AlignFieldBottom",ClearButton:"Polaris-TextField__ClearButton",Spinner:"Polaris-TextField__Spinner",SpinnerIcon:"Polaris-TextField__SpinnerIcon",Resizer:"Polaris-TextField__Resizer",DummyInput:"Polaris-TextField__DummyInput",Segment:"Polaris-TextField__Segment",monospaced:"Polaris-TextField--monospaced"},c=n(3934),d=n(5031),h=n(4849);const f=r.forwardRef((function({onChange:e,onClick:t,onMouseDown:n,onMouseUp:i,onBlur:o},a){function s(t){return()=>e(t)}function l(e){return t=>{0===t.button&&n(e)}}return r.createElement("div",{className:u.Spinner,onClick:t,"aria-hidden":!0,ref:a},r.createElement("div",{role:"button",className:u.Segment,tabIndex:-1,onClick:s(1),onMouseDown:l(s(1)),onMouseUp:i,onBlur:o},r.createElement("div",{className:u.SpinnerIcon},r.createElement(h.J,{source:c.S}))),r.createElement("div",{role:"button",className:u.Segment,tabIndex:-1,onClick:s(-1),onMouseDown:l(s(-1)),onMouseUp:i,onBlur:o},r.createElement("div",{className:u.SpinnerIcon},r.createElement(h.J,{source:d.S}))))}));var p=n(4727),m={Connected:"Polaris-Connected",Item:"Polaris-Connected__Item","Item-primary":"Polaris-Connected__Item--primary","Item-focused":"Polaris-Connected__Item--focused"},g=n(4327);function y({children:e,position:t}){const{value:n,setTrue:i,setFalse:a}=(0,g.O)(!1),s=(0,o.AK)(m.Item,n&&m["Item-focused"],"primary"===t?m["Item-primary"]:m["Item-connection"]);return r.createElement("div",{onBlur:a,onFocus:i,className:s},e)}function v({children:e,left:t,right:n}){const i=t?r.createElement(y,{position:"left"},t):null,o=n?r.createElement(y,{position:"right"},n):null;return r.createElement("div",{className:m.Connected},i,r.createElement(y,{position:"primary"},e),o)}var O=n(2078),_=n(9003);function b({contents:e,currentHeight:t=null,minimumLines:n,onHeightChange:i}){const o=(0,r.useRef)(null),a=(0,r.useRef)(null),s=(0,r.useRef)(),l=(0,r.useRef)(t);t!==l.current&&(l.current=t),(0,r.useEffect)((()=>()=>{s.current&&cancelAnimationFrame(s.current)}),[]);const c=n?r.createElement("div",{ref:a,className:u.DummyInput,dangerouslySetInnerHTML:{__html:S(n)}}):null,d=(0,r.useCallback)((()=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame((()=>{if(!o.current||!a.current)return;const e=Math.max(o.current.offsetHeight,a.current.offsetHeight);e!==l.current&&i(e)}))}),[i]);return(0,O.L)((()=>{d()})),r.createElement("div",{"aria-hidden":!0,className:u.Resizer},r.createElement(_.h,{event:"resize",handler:d}),r.createElement("div",{ref:o,className:u.DummyInput,dangerouslySetInnerHTML:{__html:M(e)}}),c)}const w={"&":"&","<":"<",">":">","\n":"
","\r":""},x=new RegExp(`[${Object.keys(w).join()}]`,"g");function k(e){return w[e]}function S(e){let t="";for(let n=0;n";return t}function M(e){return e?`${e.replace(x,k)}
`:"
"}var T=n(4997),P=n(5954),L=n(372),D=n(5044);function Y({prefix:e,suffix:t,verticalContent:n,placeholder:c,value:d="",helpText:m,label:g,labelAction:y,labelHidden:O,disabled:_,clearButton:w,readOnly:x,autoFocus:k,focused:S,multiline:M,error:Y,connectedRight:A,connectedLeft:Q,type:R="text",name:j,id:$,role:N,step:W,autoComplete:z,max:H,maxLength:I,maxHeight:Z,min:F,minLength:B,pattern:U,inputMode:X,spellCheck:q,ariaOwns:V,ariaControls:G,ariaExpanded:J,ariaActiveDescendant:K,ariaAutocomplete:ee,showCharacterCount:te,align:ne,requiredIndicator:re,monospaced:ie,selectTextOnFocus:oe,suggestion:ae,onClearButtonClick:se,onChange:le,onFocus:ue,onBlur:ce}){const de=(0,P.Q)(),[he,fe]=(0,r.useState)(null),[pe,me]=(0,r.useState)(Boolean(S)),ge=(0,a.u)(),ye=(0,L.L)("TextField",$),ve=(0,r.useRef)(null),Oe=(0,r.useRef)(null),_e=(0,r.useRef)(null),be=(0,r.useRef)(null),we=(0,r.useRef)(null),xe=(0,r.useRef)(),ke=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=M?Oe.current:ve.current;e&&void 0!==S&&(S?e.focus():e.blur())}),[S,n,M]),(0,r.useEffect)((()=>{const e=ve.current;e&&("text"===R||"tel"===R||"search"===R||"url"===R||"password"===R)&&ae&&e.setSelectionRange(d.length,ae.length)}),[pe,d,R,ae]);const Se=ae||d,Me=null!=W?W:1,Te=null!=H?H:1/0,Pe=null!=F?F:-1/0,Le=(0,o.AK)(u.TextField,Boolean(Se)&&u.hasValue,_&&u.disabled,x&&u.readOnly,Y&&u.error,M&&u.multiline,pe&&u.focus),De="currency"===R?"text":R,Ye=e?r.createElement("div",{className:u.Prefix,id:`${ye}-Prefix`,ref:_e},e):null,Ce=t?r.createElement("div",{className:u.Suffix,id:`${ye}-Suffix`,ref:be},t):null;let Ee=null;if(te){const e=Se.length,t=I?de.translate("Polaris.TextField.characterCountWithMaxLength",{count:e,limit:I}):de.translate("Polaris.TextField.characterCount",{count:e}),n=(0,o.AK)(u.CharacterCount,M&&u.AlignFieldBottom),i=I?`${e}/${I}`:e;Ee=r.createElement("div",{id:`${ye}-CharacterCounter`,className:n,"aria-label":t,"aria-live":pe?"polite":"off","aria-atomic":"true",onClick:Ge},i)}const Ae=w&&""!==Se?r.createElement("button",{type:"button",className:u.ClearButton,onClick:function(){se&&se(ye)},disabled:_},r.createElement(D.x,{as:"span",visuallyHidden:!0},de.translate("Polaris.Common.clear")),r.createElement(h.J,{source:i,color:"base"})):null,Qe=(0,r.useCallback)((e=>{if(null==le)return;const t=e=>(e.toString().split(".")[1]||[]).length,n=d?parseFloat(d):0;if(isNaN(n))return;const r=Math.max(t(n),t(Me)),i=Math.min(Number(Te),Math.max(n+e*Me,Number(Pe)));le(String(i.toFixed(r)),ye)}),[ye,Te,Pe,le,Me,d]),Re=(0,r.useCallback)((()=>{clearTimeout(xe.current)}),[]),je=(0,r.useCallback)((e=>{let t=200;const n=()=>{t>50&&(t-=10),e(0),xe.current=window.setTimeout(n,t)};xe.current=window.setTimeout(n,t),document.addEventListener("mouseup",Re,{once:!0})}),[Re]),$e="number"!==R||0===W||_||x?null:r.createElement(f,{onClick:Ge,onChange:Qe,onMouseDown:je,onMouseUp:Re,ref:ke,onBlur:Je}),Ne=M&&he?{height:he,maxHeight:Z}:null,We=(0,r.useCallback)((e=>{fe(e)}),[]),ze=M&&ge?r.createElement(b,{contents:Se||c,currentHeight:he,minimumLines:"number"==typeof M?M:1,onHeightChange:We}):null,He=[];Y&&He.push(`${ye}Error`),m&&He.push((0,p.Nh)(ye)),te&&He.push(`${ye}-CharacterCounter`);const Ie=[];e&&Ie.push(`${ye}-Prefix`),t&&Ie.push(`${ye}-Suffix`),n&&Ie.push(`${ye}-VerticalContent`),Ie.unshift((0,T.n)(ye));const Ze=(0,o.AK)(u.Input,ne&&u[(0,o.OZ)("Input-align",ne)],t&&u["Input-suffixed"],w&&u["Input-hasClearButton"],ie&&u.monospaced,ae&&u.suggestion),Fe=e=>{if(me(!0),oe&&!ae){const e=M?Oe.current:ve.current;null==e||e.select()}ue&&ue(e)};(0,l.O)("wheel",(function(e){document.activeElement===e.target&&"number"===R&&e.stopPropagation()}),ve);const Be=(0,r.createElement)(M?"textarea":"input",{name:j,id:ye,disabled:_,readOnly:x,role:N,autoFocus:k,value:Se,placeholder:c,style:Ne,autoComplete:z,className:Ze,ref:M?Oe:ve,min:F,max:H,step:W,minLength:B,maxLength:I,spellCheck:q,pattern:U,inputMode:X,type:De,rows:C(M),"aria-describedby":He.length?He.join(" "):void 0,"aria-labelledby":Ie.join(" "),"aria-invalid":Boolean(Y),"aria-owns":V,"aria-activedescendant":K,"aria-autocomplete":ee,"aria-controls":G,"aria-expanded":J,"aria-required":re,...E(M),onFocus:Fe,onBlur:Je,onClick:Ge,onKeyPress:function(e){const{key:t,which:n}=e;"number"!==R||n===s.s.Enter||/[\d.eE+-]$/.test(t)||e.preventDefault()},onChange:ae?void 0:Ve,onInput:ae?Ve:void 0}),Ue=n?r.createElement("div",{className:u.VerticalContent,id:`${ye}-VerticalContent`,ref:we,onClick:Ge},n,Be):null,Xe=n?Ue:Be,qe=r.createElement("div",{className:(0,o.AK)(u.Backdrop,Q&&u["Backdrop-connectedLeft"],A&&u["Backdrop-connectedRight"])});return r.createElement(p.jN,{label:g,id:ye,error:Y,action:y,labelHidden:O,helpText:m,requiredIndicator:re},r.createElement(v,{left:Q,right:A},r.createElement("div",{className:Le,onClick:function(e){var t,n;const{target:r}=e,i=null==ve||null===(t=ve.current)||void 0===t?void 0:t.getAttribute("role");var o;if(r===ve.current&&"combobox"===i)return null===(o=ve.current)||void 0===o||o.focus(),void Fe(e);et(r)||nt(r)||Ke(r)||tt(r)||pe||null===(n=ve.current)||void 0===n||n.focus()}},Ye,Xe,Ce,Ee,Ae,$e,qe,ze)));function Ve(e){le&&le(e.currentTarget.value,ye)}function Ge(e){tt(e.target)||Ke(e.target)||e.stopPropagation(),et(e.target)||nt(e.target)||Ke(e.target)||pe||me(!0)}function Je(e){me(!1),ce&&ce(e)}function Ke(e){return e instanceof HTMLElement&&ve.current&&(ve.current.contains(e)||ve.current.contains(document.activeElement))}function et(e){return e instanceof Element&&(_e.current&&_e.current.contains(e)||be.current&&be.current.contains(e))}function tt(e){return e instanceof Element&&ke.current&&ke.current.contains(e)}function nt(e){return e instanceof Element&&we.current&&(we.current.contains(e)||we.current.contains(document.activeElement))}}function C(e){if(e)return"number"==typeof e?e:1}function E(e){if(e)return Boolean(e)||e>0?{"aria-multiline":!0}:void 0}},4787:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(7294),i=n(697),o=n(372),a=n(9815);const s=(0,r.memo)((function(e){const t=(0,o.L)("Toast"),{showToast:n,hideToast:r}=(0,a.x)();return(0,i.H)((()=>(n({id:t,...e}),()=>{r({id:t})})),[e]),null}))},8691:(e,t,n)=>{"use strict";n.d(t,{u:()=>y});var r=n(7294),i=n(2467),o=n(4327),a=n(3697),s={TooltipContainer:"Polaris-Tooltip__TooltipContainer",HasUnderline:"Polaris-Tooltip__HasUnderline"},l=n(2835);var u=n(9572),c={TooltipOverlay:"Polaris-Tooltip-TooltipOverlay",positionedAbove:"Polaris-Tooltip-TooltipOverlay--positionedAbove",measuring:"Polaris-Tooltip-TooltipOverlay--measuring",measured:"Polaris-Tooltip-TooltipOverlay--measured",instant:"Polaris-Tooltip-TooltipOverlay--instant",Content:"Polaris-Tooltip-TooltipOverlay__Content",default:"Polaris-Tooltip-TooltipOverlay--default",wide:"Polaris-Tooltip-TooltipOverlay--wide"},d=n(5954),h=n(9599);function f({active:e,activator:t,preferredPosition:n="below",preventInteraction:i,id:o,children:s,accessibilityLabel:l,width:f,padding:p,borderRadius:m,zIndexOverride:g,instant:y}){const v=(0,d.Q)();return e?r.createElement(h.u,{active:e,activator:t,preferredPosition:n,preventInteraction:i,render:function(e){const{measuring:t,desiredHeight:n,positioning:i,chevronOffset:d}=e,h=(0,a.AK)(c.TooltipOverlay,t&&c.measuring,!t&&c.measured,y&&c.instant,"above"===i&&c.positionedAbove),g=(0,a.AK)(c.Content,f&&c[f]),O=t?void 0:{minHeight:n},_={"--pc-tooltip-chevron-x-pos":`${d}px`,"--pc-tooltip-border-radius":m?`var(--p-border-radius-${m})`:void 0,"--pc-tooltip-padding":p&&"default"===p?"var(--p-space-1) var(--p-space-2)":`var(--p-space-${p})`};return r.createElement("div",Object.assign({style:_,className:h},u.EY.props),r.createElement("div",{id:o,role:"tooltip",className:g,style:{...O,..._},"aria-label":l?v.translate("Polaris.TooltipOverlay.accessibilityLabel",{label:l}):void 0},s))},zIndexOverride:g}):null}var p=n(372),m=n(3531);const g=150;function y({children:e,content:t,dismissOnMouseOut:n,active:u,hoverDelay:c,preferredPosition:d="below",activatorWrapper:h="span",accessibilityLabel:y,width:O="default",padding:_="default",borderRadius:b="1",zIndexOverride:w,hasUnderline:x,persistOnClick:k,onOpen:S,onClose:M}){const T=h,{value:P,setTrue:L,setFalse:D}=(0,o.O)(Boolean(u)),{value:Y,toggle:C}=(0,o.O)(Boolean(u)&&Boolean(k)),[E,A]=(0,r.useState)(null),{presenceList:Q,addPresence:R,removePresence:j}=function(){const e=(0,r.useContext)(l.o);if(!e)throw new Error("No ephemeral presence manager was provided. Your application must be wrapped in an component. See https://polaris.shopify.com/components/app-provider for implementation instructions.");return e}(),$=(0,p.L)("TooltipContent"),N=(0,r.useRef)(null),W=(0,r.useRef)(!1),[z,H]=(0,r.useState)(Boolean(!u)),I=(0,r.useRef)(null),Z=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=(N.current?(0,i.so)(N.current):null)||N.current;e&&(e.tabIndex=0,e.setAttribute("aria-describedby",$),e.setAttribute("data-polaris-tooltip-activator","true"))}),[$,e]),(0,r.useEffect)((()=>()=>{I.current&&clearTimeout(I.current),Z.current&&clearTimeout(Z.current)}),[]);const F=(0,r.useCallback)((()=>{H(!Q.tooltip&&!P),null==S||S(),R("tooltip")}),[R,Q.tooltip,S,P]),B=(0,r.useCallback)((()=>{null==M||M(),H(!1),Z.current=setTimeout((()=>{j("tooltip")}),g)}),[j,M]),U=(0,r.useCallback)((e=>{"Escape"===e.key&&(null==B||B(),D(),k&&C())}),[D,B,k,C]),X=E?r.createElement(m.h,{idPrefix:"tooltip"},r.createElement(f,{id:$,preferredPosition:d,activator:E,active:P,accessibilityLabel:y,onClose:v,preventInteraction:n,width:O,padding:_,borderRadius:b,zIndexOverride:w,instant:!z},t)):null,q=(0,a.AK)("div"===h&&s.TooltipContainer,x&&s.HasUnderline);return r.createElement(T,{onFocus:()=>{F(),L()},onBlur:()=>{B(),D(),k&&C()},onMouseLeave:function(){I.current&&(clearTimeout(I.current),I.current=null),W.current=!1,B(),Y||D()},onMouseOver:function(){!W.current&&(W.current=!0,c&&!Q.tooltip?I.current=setTimeout((()=>{F(),L()}),c):(F(),L()))},onMouseDown:k&&C,ref:function(e){const t=N;if(null==e)return t.current=null,void A(null);e.firstElementChild instanceof HTMLElement&&A(e.firstElementChild),t.current=e},onKeyUp:U,className:q},e,X)}function v(){}},9180:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(7294),i=n(1667),o=n(2467),a=n(9572),s=n(8281),l=n(4872),u=n(372);const c=(0,r.memo)((function({children:e,disabled:t,root:n}){return(0,r.useEffect)((()=>{if(t||!n)return;const e=void 0!==n.current?n.current:n;e&&!e.querySelector("[autofocus]")&&(0,o.vr)(e,!1)}),[t,n]),r.createElement(r.Fragment,null,e)}));var d=n(9003),h=n(8235);function f({trapping:e=!0,children:t}){const{canSafelyFocus:n}=function({trapping:e}){const t=(0,r.useContext)(l.K),n=(0,u.L)();if(!t)throw new s.U("No FocusManager was provided.");const{trapFocusList:i,add:o,remove:a}=t,c=i[0]===n,d=(0,r.useMemo)((()=>({canSafelyFocus:c})),[c]);return(0,r.useEffect)((()=>{if(e)return o(n),()=>{a(n)}}),[o,n,a,e]),d}({trapping:e}),f=(0,r.useRef)(null),[p,m]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{const t=!!(!n||f.current&&f.current.contains(document.activeElement))||!e;m(t)}),[n,e]),r.createElement(c,{disabled:p,root:f.current},r.createElement("div",{ref:f},r.createElement(d.h,{event:"focusin",handler:t=>{const r=f.current&&f.current.contains(document.activeElement);!1===e||!f.current||r||t.target instanceof Element&&t.target.matches(`${a.l4.selector} *`)||n&&t.target instanceof HTMLElement&&f.current!==t.target&&!f.current.contains(t.target)&&(0,o.vr)(f.current)}}),r.createElement(h.n,{keyCode:i.s.Tab,keyEvent:"keydown",handler:t=>{if(!1===e||!f.current)return;const n=(0,o.Y_)(f.current),r=(0,o.T7)(f.current);t.target!==r||t.shiftKey||(t.preventDefault(),(0,o.TA)(f.current)),t.target===n&&t.shiftKey&&(t.preventDefault(),(0,o.c7)(f.current))}}),t))}},8123:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(7294),i=n(2467),o=n(7001),a=n(6324);function s({id:e,children:t,className:n,url:s,external:l,download:u,submit:c,disabled:d,loading:h,pressed:f,accessibilityLabel:p,role:m,ariaControls:g,ariaExpanded:y,ariaDescribedBy:v,ariaChecked:O,onClick:_,onFocus:b,onBlur:w,onKeyDown:x,onKeyPress:k,onKeyUp:S,onMouseEnter:M,onTouchStart:T,...P}){let L;const D={id:e,className:n,"aria-label":p},Y={...D,role:m,onClick:_,onFocus:b,onBlur:w,onMouseUp:i.i8,onMouseEnter:M,onTouchStart:T},C=(0,o.x)(d,_);return L=s?d?r.createElement("a",D,t):r.createElement(a.H,Object.assign({},Y,{url:s,external:l,download:u},P),t):r.createElement("button",Object.assign({},Y,{"aria-disabled":d,type:c?"submit":"button","aria-busy":!!h||void 0,"aria-controls":g,"aria-expanded":y,"aria-describedby":v,"aria-checked":O,"aria-pressed":f,onKeyDown:x,onKeyUp:S,onKeyPress:k,onClick:C,tabIndex:d?-1:void 0},P),t),L}},6324:(e,t,n)=>{"use strict";n.d(t,{H:()=>a});var r=n(7294),i=n(9572),o=n(9600);const a=(0,r.memo)((0,r.forwardRef)((function(e,t){const n=(0,r.useContext)(o.F);if(n)return r.createElement(n,Object.assign({},i.Wo.props,e));const{external:a,url:s,...l}=e,u=a?"_blank":void 0,c=a?"noopener noreferrer":void 0;return r.createElement("a",Object.assign({target:u},l,{href:s,rel:c},i.Wo.props))})))},9572:(e,t,n)=>{"use strict";n.d(t,{VT:()=>s,EY:()=>o,IJ:()=>i,l4:()=>l,fm:()=>r,Wo:()=>a});const r={props:{"data-polaris-scrollable":!0},selector:"[data-polaris-scrollable]"},i={props:{"data-polaris-overlay":!0},selector:"[data-polaris-overlay]"},o={props:{"data-polaris-layer":!0},selector:"[data-polaris-layer]"},a={props:{"data-polaris-unstyled":!0},selector:"[data-polaris-unstyled]"},s={props:{"data-polaris-top-bar":!0},selector:"[data-polaris-top-bar]"},l={props:["data-portal-id"],selector:"[data-portal-id]"}},1667:(e,t,n)=>{"use strict";let r;n.d(t,{s:()=>r}),function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.Pause=19]="Pause",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Key0=48]="Key0",e[e.Key1=49]="Key1",e[e.Key2=50]="Key2",e[e.Key3=51]="Key3",e[e.Key4=52]="Key4",e[e.Key5=53]="Key5",e[e.Key6=54]="Key6",e[e.Key7=55]="Key7",e[e.Key8=56]="Key8",e[e.Key9=57]="Key9",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.LeftMeta=91]="LeftMeta",e[e.RightMeta=92]="RightMeta",e[e.Select=93]="Select",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.Decimal=110]="Decimal",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.Semicolon=186]="Semicolon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.ForwardSlash=191]="ForwardSlash",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.BackSlash=220]="BackSlash",e[e.CloseBracket=221]="CloseBracket",e[e.SingleQuote=222]="SingleQuote"}(r||(r={}))},2815:(e,t,n)=>{"use strict";n.d(t,{RY:()=>s,uw:()=>l}),n(7294);var r=n(7394);const i={navigationBarCollapsed:"767.95px",stackedContent:"1039.95px"},o={media:"",addListener:a,removeListener:a,matches:!1,onchange:a,addEventListener:a,removeEventListener:a,dispatchEvent:e=>!0};function a(){}function s(){return"undefined"==typeof window?o:window.matchMedia(`(max-width: ${i.navigationBarCollapsed})`)}function l(){return"undefined"==typeof window?o:window.matchMedia(`(max-width: ${i.stackedContent})`)}var u;u=r.AV,Object.entries((0,r.lo)(u)).map((([e,t])=>Object.entries(t).map((([t,n])=>{var r;return[`${e.split("-")[1]}${r=t,r.charAt(0).toUpperCase()+r.slice(1)}`,n]})))).flat()},3999:(e,t,n)=>{"use strict";n.d(t,{Vr:()=>u,M2:()=>l,gD:()=>s,Mc:()=>a,oh:()=>i});var r=n(7294);function i(e,t,n){return null==e?null:a(e,t)?e:r.createElement(t,n,e)}const o=(e,t)=>e===t;function a(e,t){var n;if(null==e||!(0,r.isValidElement)(e)||"string"==typeof e.type)return!1;const{type:i}=e,a=(null===(n=e.props)||void 0===n?void 0:n.__type__)||i;return(Array.isArray(t)?t:[t]).some((e=>"string"!=typeof a&&o(e,a)))}function s(e,t=(()=>!0)){return r.Children.toArray(e).filter((e=>(0,r.isValidElement)(e)&&t(e)))}function l({condition:e,wrapper:t,children:n}){return e?t(n):n}function u({condition:e,children:t}){return e?t:null}},3697:(e,t,n)=>{"use strict";function r(...e){return e.filter(Boolean).join(" ")}function i(e,t){return`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`}function o(e){const t=Object.entries(e).filter((([e,t])=>null!=t));return t.length?Object.fromEntries(t):void 0}function a(e,t,n,r){return r?"string"==typeof r?{[`--pc-${e}-${t}-xs`]:`var(--p-${n}-${r})`}:Object.fromEntries(Object.entries(r).map((([r,i])=>[`--pc-${e}-${t}-${r}`,`var(--p-${n}-${i})`]))):{}}function s(e,t,n){return n?"string"==typeof n?{[`--pc-${e}-${t}-xs`]:n}:Object.fromEntries(Object.entries(n).map((([n,r])=>[`--pc-${e}-${t}-${n}`,r]))):{}}n.d(t,{AK:()=>r,jD:()=>a,OX:()=>s,vW:()=>o,OZ:()=>i})},3573:(e,t,n)=>{"use strict";function r(e,t,n){let r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;const f=!t&&0!==t;if("function"!=typeof e)throw new TypeError("Expected a function");const p=t||0;function m(t){const n=r,o=i;return r=void 0,i=void 0,u=t,a=e.apply(o,n),a}function g(e,t){return f?(cancelAnimationFrame(s),requestAnimationFrame(e)):setTimeout(e,t)}function y(e){const t=e-l;return void 0===l||t>=p||t<0||d&&o&&e-u>=o}function v(){const e=Date.now();if(y(e))return O(e);s=g(v,function(e){const t=e-u,n=p-(e-l);return d&&o?Math.min(n,o-t):n}(e))}function O(e){return s=void 0,h&&r?m(e):(r=i=void 0,a)}function _(...e){const t=Date.now(),n=y(t);if(r=e,i=this,l=t,n){if(void 0===s)return function(e){return u=e,s=g(v,p),c?m(e):a}(l);if(d)return s=g(v,p),m(l)}return void 0===s&&(s=g(v,p)),a}return"object"==typeof n&&(c=Boolean(n.leading),d="maxWait"in n,o=d?Math.max(Number(n.maxWait)||0,p):void 0,h="trailing"in n?Boolean(n.trailing):h),_.cancel=function(){void 0!==s&&function(e){if(f)return cancelAnimationFrame(e);clearTimeout(e)}(s),u=0,r=l=i=s=void 0},_.flush=function(){return void 0===s?a:O(Date.now())},_.pending=function(){return void 0!==s},_}n.d(t,{D:()=>r})},2835:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=(0,n(7294).createContext)(void 0)},8281:(e,t,n)=>{"use strict";n.d(t,{U:()=>r});class r extends Error{constructor(e=""){super(`${e?`${e} `:e}Your application must be wrapped in an component. See https://polaris.shopify.com/components/app-provider for implementation instructions.`),this.name="MissingAppProviderError"}}},4872:(e,t,n)=>{"use strict";n.d(t,{K:()=>r});const r=(0,n(7294).createContext)(void 0)},2467:(e,t,n)=>{"use strict";function r(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect();return t>=0&&i<=window.innerWidth&&r<=window.innerHeight&&n>=0}n.d(t,{so:()=>l,IT:()=>u,Y_:()=>h,T7:()=>p,vr:()=>c,TA:()=>f,c7:()=>m,v:()=>d,i8:()=>s,YU:()=>y,ml:()=>g});const i='a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"]),*[tabindex]',o='a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"]),*[tabindex]:not([tabindex="-1"])',a='a[role="menuitem"],frame[role="menuitem"],iframe[role="menuitem"],input[role="menuitem"]:not([type=hidden]):not(:disabled),select[role="menuitem"]:not(:disabled),textarea[role="menuitem"]:not(:disabled),button[role="menuitem"]:not(:disabled),*[tabindex]:not([tabindex="-1"])',s=({currentTarget:e})=>e.blur();function l(e,t=!0){return!t&&_(e,i)?e:e.querySelector(i)}function u(e){const t="a,button,frame,iframe,input:not([type=hidden]),select,textarea,*[tabindex]";return _(e,t)?e:e.querySelector(t)}function c(e,t=!0){var n;null===(n=l(e,t))||void 0===n||n.focus()}function d(e,t){const n=function(e,t){const n=[...document.querySelectorAll(i)],o=n.indexOf(e)+1,a=n.slice(o);for(const e of a)if(r(e)&&(!t||t&&t(e)))return e;return null}(e,t);return!!(n&&n instanceof HTMLElement)&&(n.focus(),!0)}function h(e,t=!0){return!t&&_(e,o)?e:e.querySelector(o)}function f(e,t=!0){const n=h(e,t);return!!n&&(n.focus(),!0)}function p(e,t=!0){if(!t&&_(e,o))return e;const n=e.querySelectorAll(o);return n[n.length-1]}function m(e,t=!0){const n=p(e,t);return!!n&&(n.focus(),!0)}function g(e,t){const n=v(e),r=O(n,t);-1===r?n[0].focus():n[(r-1+n.length)%n.length].focus()}function y(e,t){const n=v(e),r=O(n,t);-1===r?n[0].focus():n[(r+1)%n.length].focus()}function v(e){return e.querySelectorAll(a)}function O(e,t){let n=0;for(const r of e){if(r===t)break;n++}return n===e.length?-1:n}function _(e,t){if(e.matches)return e.matches(t);const n=(e.ownerDocument||document).querySelectorAll(t);let r=n.length;for(;--r>=0&&n.item(r)!==e;)return r>-1}},155:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});const r=(0,n(7294).createContext)(void 0)},9815:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(7294),i=n(155);function o(){const e=(0,r.useContext)(i.l);if(!e)throw new Error("No Frame context was provided. Your component must be wrapped in a component. See https://polaris.shopify.com/components/frame for implementation instructions.");return e}},4999:(e,t,n)=>{"use strict";n.d(t,{U:()=>r,P:()=>i});class r{static get zero(){return new r}constructor({top:e=0,left:t=0,width:n=0,height:r=0}={}){this.top=void 0,this.left=void 0,this.width=void 0,this.height=void 0,this.top=e,this.left=t,this.width=n,this.height=r}get center(){return{x:this.left+this.width/2,y:this.top+this.height/2}}}function i(e){if(!(e instanceof Element))return new r({width:window.innerWidth,height:window.innerHeight});const t=e.getBoundingClientRect();return new r({top:t.top,left:t.left,width:t.width,height:t.height})}},9139:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=(0,n(7294).createContext)(void 0)},5954:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var r=n(7294),i=n(8281),o=n(9139);function a(){const e=(0,r.useContext)(o.O);if(!e)throw new i.U("No i18n was provided.");return e}},7152:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(7294);function i(e){return!(0,r.isValidElement)(e)&&void 0!==e}},3295:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});var r=n(7294);function i(e){return(0,r.isValidElement)(e)&&void 0!==e}},9600:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});const r=(0,n(7294).createContext)(void 0)},7996:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});const r=(0,n(7294).createContext)(void 0)},357:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(7294),i=n(7996);function o(){const e=(0,r.useContext)(i.o);if(!e)throw new Error("No mediaQuery was provided. Your application must be wrapped in an component. See https://polaris.shopify.com/components/app-provider for implementation instructions.");return e}},5217:(e,t,n)=>{"use strict";n.d(t,{j:()=>r});const r=(0,n(7294).createContext)(void 0)},554:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=(0,n(7294).createContext)(void 0)},9702:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});const r=(0,n(7294).createContext)(void 0)},6077:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(7394),i=n(3573),o=n(9572),a=n(2815),s=n(4999);const l=1e3/60;class u{constructor(e){this.stickyItems=[],this.stuckItems=[],this.container=null,this.topBarOffset=0,this.handleResize=(0,i.D)((()=>{this.manageStickyItems()}),l,{leading:!0,trailing:!0,maxWait:l}),this.handleScroll=(0,i.D)((()=>{this.manageStickyItems()}),l,{leading:!0,trailing:!0,maxWait:l}),e&&this.setContainer(e)}registerStickyItem(e){this.stickyItems.push(e)}unregisterStickyItem(e){const t=this.stickyItems.findIndex((({stickyNode:t})=>e===t));this.stickyItems.splice(t,1)}setContainer(e){this.container=e,c(e)&&this.setTopBarOffset(e),this.container.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize),this.manageStickyItems()}removeScrollListener(){this.container&&(this.container.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize))}manageStickyItems(){if(this.stickyItems.length<=0)return;const e=this.container?c(t=this.container)?document.body.scrollTop||document.documentElement.scrollTop:t.scrollTop:0;var t;const n=(0,s.P)(this.container).top+this.topBarOffset;this.stickyItems.forEach((t=>{const{handlePositioning:r}=t,{sticky:i,top:o,left:a,width:s}=this.evaluateStickyItem(t,e,n);this.updateStuckItems(t,i),r(i,o,a,s)}))}evaluateStickyItem(e,t,n){const{stickyNode:i,placeHolderNode:o,boundingElement:s,offset:l,disableWhenStacked:u}=e;if(u&&(0,a.uw)().matches)return{sticky:!1,top:0,left:0,width:"auto"};const c=l?this.getOffset(i)+parseInt(r.W0["space-5"],10):this.getOffset(i),d=t+c,h=o.getBoundingClientRect().top-n+t,f=n+c,p=o.getBoundingClientRect().width,m=o.getBoundingClientRect().left;let g;if(null==s)g=d>=h;else{var y;const e=i.getBoundingClientRect().height||(null===(y=i.firstElementChild)||void 0===y?void 0:y.getBoundingClientRect().height)||0,r=s.getBoundingClientRect().bottom-e+t-n;g=d>=h&&dt===e));this.stuckItems.splice(n,1)}getOffset(e){if(0===this.stuckItems.length)return 0;let t=0,n=0;const r=this.stuckItems.length,i=(0,s.P)(e);for(;ne===t))>=0}setTopBarOffset(e){const t=e.querySelector(`:not(${o.fm.selector}) ${o.VT.selector}`);this.topBarOffset=t?t.clientHeight:0}}function c(e){return e===document}function d(e,t){const n=e.left,r=e.left+e.width,i=t.left;return t.left+t.width{"use strict";n.d(t,{s:()=>r});const r="undefined"==typeof window||"undefined"==typeof document},6098:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});const r=(0,n(7294).createContext)(void 0)},372:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(7294),i=n(8281),o=n(6098);function a(e="",t=""){const n=(0,r.useContext)(o.d),a=(0,r.useRef)(null);if(!n)throw new i.U("No UniqueIdFactory was provided.");return t||(a.current||(a.current=n.nextId(e)),a.current)}},1296:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var r=n(7294),i=n(9590),o=n.n(i);function a(e,t=o()){const n=(0,r.useRef)(e);return t(n.current,e)||(n.current=e),n.current}},697:(e,t,n)=>{"use strict";n.d(t,{H:()=>o});var r=n(7294),i=n(1296);function o(e,t,n){(0,r.useEffect)(e,(0,i.E)(t,n))}},7001:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var r=n(7294);function i(e,t){const n=(0,r.useCallback)((t=>{e&&(t.preventDefault(),t.stopPropagation())}),[e]);return e?n:t}},7662:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(7294),i=n(2078);function o(e,t,n,o){const a=(0,r.useRef)(t),s=(0,r.useRef)(o);(0,i.L)((()=>{a.current=t}),[t]),(0,i.L)((()=>{s.current=o}),[o]),(0,r.useEffect)((()=>{if("string"!=typeof e||null===n)return;let t;if(void 0===n)t=window;else if("current"in n){if(null===n.current)return;t=n.current}else t=n;const r=s.current,i=e=>a.current(e);return t.addEventListener(e,i,r),()=>{t.removeEventListener(e,i,r)}}),[e,n])}},6938:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(7294);function i(){const[e,t]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{t(!0)}),[]),e}},2078:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(7294);const i=n(4077).s?r.useEffect:r.useLayoutEffect},4327:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(7294);function i(e){const[t,n]=(0,r.useState)(e);return{value:t,toggle:(0,r.useCallback)((()=>n((e=>!e))),[]),setTrue:(0,r.useCallback)((()=>n(!0)),[]),setFalse:(0,r.useCallback)((()=>n(!1)),[])}}},9585:(e,t,n)=>{"use strict";n.d(t,{O:()=>r});const r=(0,n(7294).createContext)(!1)},4709:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Dn});var r=n(7462),i=n(3366),o=n(7294),a=n(8120),s=n(6485),l=n(9119),u=n(1113);function c(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const d=c(y,0),h=c(g,0),f=c(((e,t)=>g(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function p(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const m=50;function g(e,t,n=t.selection.ranges){let r=n.map((e=>p(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,a,s=e.sliceDoc(r-m,r),l=e.sliceDoc(i,i+m),u=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(l)[0].length,d=s.length-u;if(s.slice(d-t.length,d)==t&&l.slice(c,c+n.length)==n)return{open:{pos:r-u,margin:u&&1},close:{pos:i+c,margin:c&&1}};i-r<=2*m?o=a=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+m),a=e.sliceDoc(i-m,i));let h=/^\s*/.exec(o)[0].length,f=/\s*$/.exec(a)[0].length,p=a.length-f-n.length;return o.slice(h,h+t.length)==t&&a.slice(p,p+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(o.charAt(h+t.length))?1:0},close:{pos:i-f-n.length,margin:/\s/.test(a.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;ni&&(e==o||o>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,n=l.text.slice(e,e+s.length)==s?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:i,empty:o,single:a}of r)!a&&o||e.push({from:t.from+i,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const v=a.q6.define(),O=a.q6.define(),_=a.r$.define(),b=a.r$.define({combine:e=>(0,a.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),w=a.QQ.define({create:()=>$.empty,update(e,t){let n=t.state.facet(b),r=t.annotation(v);if(r){let i=P.fromTransaction(t,r.selection),o=r.side,a=0==o?e.undone:e.done;return a=i?L(a,a.length,n.minDepth,i):E(a,t.startState.selection),new $(0==o?r.rest:a,0==o?a:r.rest)}let i=t.annotation(O);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(a.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=P.fromTransaction(t),s=t.annotation(a.YW.time),l=t.annotation(a.YW.userEvent);return o?e=e.addChanges(o,s,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,l,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new $(e.done.map(P.fromJSON),e.undone.map(P.fromJSON))});function x(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(w,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const k=x(0,!1),S=x(1,!1),M=x(0,!0),T=x(1,!0);class P{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new P(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new P(e.changes&&a.as.fromJSON(e.changes),[],e.mapped&&a.n0.fromJSON(e.mapped),e.startSelection&&a.jT.fromJSON(e.startSelection),e.selectionsAfter.map(a.jT.fromJSON))}static fromTransaction(e,t){let n=Y;for(let t of e.startState.facet(_)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new P(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Y)}static selection(e){return new P(void 0,Y,void 0,void 0,e)}}function L(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function D(e,t){return e.length?t.length?e.concat(t):e:t}const Y=[],C=200;function E(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-C));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),L(e,e.length-1,1e9,n.setSelAfter(r)))}return[P.selection([t])]}function A(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Q(e,t){if(!e.length)return e;let n=e.length,r=Y;for(;n;){let i=R(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[P.selection(r)]:Y}function R(e,t,n){let r=D(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Y,n);if(!e.changes)return P.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new P(i,a.Py.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const j=/^(input\.type|delete)($|\.)/;class ${constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new $(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||j.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}})),r}(a.changes,e.changes))||"input.type.compose"==n)?L(o,o.length-1,r.minDepth,new P(e.changes.compose(a.changes),D(e.effects,a.effects),a.mapped,a.startSelection,Y)):L(o,o.length,r.minDepth,e),new $(o,Y,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Y;return i.length>0&&t-this.prevTimee.empty!=a.ranges[t].empty)).length)?this:new $(E(this.done,e),this.undone,t,n);var o,a}addMapping(e){return new $(Q(this.done,e),Q(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:v.of({side:e,rest:A(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Y:r.slice(0,r.length-1);return i.mapped&&(n=Q(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:v.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}$.empty=new $(Y,Y);const N=[{key:"Mod-z",run:k,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:S,preventDefault:!0},{linux:"Ctrl-Shift-z",run:S,preventDefault:!0},{key:"Mod-u",run:M,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:T,preventDefault:!0}];function W(e,t){return a.jT.create(e.ranges.map(t),e.mainIndex)}function z(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function H({state:e,dispatch:t},n){let r=W(e.selection,n);return!r.eq(e.selection,!0)&&(t(z(e,r)),!0)}function I(e,t){return a.jT.cursor(t?e.to:e.from)}function Z(e,t){return H(e,(n=>n.empty?e.moveByChar(n,t):I(n,t)))}function F(e){return e.textDirectionAt(e.state.selection.main.head)==s.Nm.LTR}const B=e=>Z(e,!F(e)),U=e=>Z(e,F(e));function X(e,t){return H(e,(n=>n.empty?e.moveByGroup(n,t):I(n,t)))}function q(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function V(e,t,n){let r,i,o=(0,l.qz)(e).resolveInner(t.head),s=n?u.md.closedBy:u.md.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;q(e,t,s)?o=t:r=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?(0,l.Um)(e,o.from,1):(0,l.Um)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,a.jT.cursor(i,n?-1:1)}function G(e,t){return H(e,(n=>{if(!n.empty)return I(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const J=e=>G(e,!1),K=e=>G(e,!0);function ee(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):I(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),l=a.top+r.marginTop,u=a.bottom-r.marginBottom;t&&t.top>l&&t.bottomte(e,!1),re=e=>te(e,!0);function ie(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=a.jT.cursor(r.from+n))}return i}function oe(e,t){let n=W(e.state.selection,(e=>{let n=t(e);return a.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(z(e.state,n)),!0)}function ae(e,t){return oe(e,(n=>e.moveByChar(n,t)))}const se=e=>ae(e,!F(e)),le=e=>ae(e,F(e));function ue(e,t){return oe(e,(n=>e.moveByGroup(n,t)))}function ce(e,t){return oe(e,(n=>e.moveVertically(n,t)))}const de=e=>ce(e,!1),he=e=>ce(e,!0);function fe(e,t){return oe(e,(n=>e.moveVertically(n,t,ee(e).height)))}const pe=e=>fe(e,!1),me=e=>fe(e,!0),ge=({state:e,dispatch:t})=>(t(z(e,{anchor:0})),!0),ye=({state:e,dispatch:t})=>(t(z(e,{anchor:e.doc.length})),!0),ve=({state:e,dispatch:t})=>(t(z(e,{anchor:e.selection.main.anchor,head:0})),!0),Oe=({state:e,dispatch:t})=>(t(z(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function _e(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let a=t(r);ai&&(n="delete.forward",a=be(e,a,!0)),i=Math.min(i,a),o=Math.max(o,a)}else i=be(e,i,!1),o=be(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:a.jT.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const we=(e,t,n)=>_e(e,(r=>{let i,o,s=r.from,{state:u}=e,c=u.doc.lineAt(s);if(n&&!t&&s>c.from&&swe(e,!1,!0),ke=e=>we(e,!0,!1),Se=(e,t)=>_e(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=(0,a.cp)(o.text,r-o.from,t)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=s(u);if(null!=e&&c!=e)break;" "==u&&r==n.head||(e=c),r=l}return r})),Me=e=>Se(e,!1);function Te(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Pe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of Te(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),s=o.length+1;if(n){r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)i.push(a.jT.range(Math.min(e.doc.length,n.anchor+s),Math.min(e.doc.length,n.head+s)))}else{r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)i.push(a.jT.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:a.jT.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Le(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of Te(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const De=Ye(!1);function Ye(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,l.qz)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(u.md.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let c=new l.Gn(t,{simulateBreak:r,simulateDoubleBreak:!!s}),d=(0,l.K0)(c,r);for(null==d&&(d=(0,a.IS)(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));io.from&&r{let i=[];for(let o=r.from;o<=r.to;){let a=e.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}let o=e.changes(i);return{changes:i,range:a.jT.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const Ee=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ce(e,((t,n)=>{n.push({from:t.from,insert:e.facet(l.c)})})),{userEvent:"input.indent"})),!0),Ae=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ce(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=(0,a.IS)(r,e.tabSize),o=0,s=(0,l.SS)(e,Math.max(0,i-(0,l.y1)(e)));for(;oH(e,(t=>V(e.state,t,!F(e)))),shift:e=>oe(e,(t=>V(e.state,t,!F(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>H(e,(t=>V(e.state,t,F(e)))),shift:e=>oe(e,(t=>V(e.state,t,F(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Pe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Le(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Pe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Le(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=a.jT.create([n.main]):n.main.empty||(r=a.jT.create([a.jT.cursor(n.main.head)])),!!r&&(t(z(e,r)),!0)}},{key:"Mod-Enter",run:Ye(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Te(e).map((({from:t,to:n})=>a.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:a.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=W(e.selection,(t=>{var n;for(let r=(0,l.qz)(e).resolveStack(t.from,1);r;r=r.next){let{node:e}=r;if((e.from=t.to||e.to>t.to&&e.from<=t.from)&&(null===(n=e.parent)||void 0===n?void 0:n.parent))return a.jT.range(e.to,e.from)}return t}));return t(z(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:Ae},{key:"Mod-]",run:Ee},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new l.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=Ce(e,((t,i,o)=>{let a=(0,l.K0)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let s=/^\s*/.exec(t.text)[0],u=(0,l.SS)(e,a);(s!=u||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Te(t).map((({from:e,to:n})=>(e>0?e--:n{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,n){let r=!1,i=W(e.selection,(t=>{let i=(0,l.Um)(e,t.head,-1)||(0,l.Um)(e,t.head,1)||t.head>0&&(0,l.Um)(e,t.head-1,1)||t.head{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=p(e.state,n.from);return r.line?d(e):!!r.block&&f(e)}},{key:"Alt-A",run:h},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:B,shift:se,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>X(e,!F(e)),shift:e=>ue(e,!F(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>H(e,(t=>ie(e,t,!F(e)))),shift:e=>oe(e,(t=>ie(e,t,!F(e)))),preventDefault:!0},{key:"ArrowRight",run:U,shift:le,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>X(e,F(e)),shift:e=>ue(e,F(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>H(e,(t=>ie(e,t,F(e)))),shift:e=>oe(e,(t=>ie(e,t,F(e)))),preventDefault:!0},{key:"ArrowUp",run:J,shift:de,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ge,shift:ve},{mac:"Ctrl-ArrowUp",run:ne,shift:pe},{key:"ArrowDown",run:K,shift:he,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ye,shift:Oe},{mac:"Ctrl-ArrowDown",run:re,shift:me},{key:"PageUp",run:ne,shift:pe},{key:"PageDown",run:re,shift:me},{key:"Home",run:e=>H(e,(t=>ie(e,t,!1))),shift:e=>oe(e,(t=>ie(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:ge,shift:ve},{key:"End",run:e=>H(e,(t=>ie(e,t,!0))),shift:e=>oe(e,(t=>ie(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:ye,shift:Oe},{key:"Enter",run:De},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:xe,shift:xe},{key:"Delete",run:ke},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Me},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Se(e,!0)},{mac:"Mod-Backspace",run:e=>_e(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>_e(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.headH(e,(t=>a.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>oe(e,(t=>a.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>H(e,(t=>a.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>oe(e,(t=>a.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:ke},{key:"Ctrl-h",run:xe},{key:"Ctrl-k",run:e=>_e(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:a.xv.of(["",""])},range:a.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:(0,a.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,a.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:a.jT.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:re}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),Re={key:"Tab",run:Ee,shift:Ae};function je(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class We{constructor(e,t,n=0,r=e.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(Ne(e)):Ne,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,a.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,a.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,a.nZ)(e);let r=this.normalize(t);for(let e=0,i=n;;e++){let o=r.charCodeAt(e),a=this.match(o,i,this.bufferPos+this.bufferStart);if(e==r.length-1){if(a)return this.value=a,this;break}i==n&&ethis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Ue(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new Fe(t,e.sliceString(t,n));return Ze.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Ue(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Fe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Ue(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Xe(e){let t=je("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,l,u,c]=n,d=u?+u.slice(1):0,h=l?+l:i.number;if(l&&c){let e=h/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),h=Math.round(r.doc.lines*e)}else l&&o&&(h=h*("-"==o?-1:1)+i.number);let f=r.doc.line(Math.max(1,Math.min(r.doc.lines,h))),p=a.jT.cursor(f.from+Math.max(0,Math.min(d,f.length)));e.dispatch({effects:[qe.of(!1),s.tk.scrollIntoView(p.from,{y:"center"})],selection:p}),e.focus()}return{dom:je("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:qe.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},je("label",e.state.phrase("Go to line"),": ",t)," ",je("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Ie.prototype[Symbol.iterator]=Be.prototype[Symbol.iterator]=function(){return this});const qe=a.Py.define(),Ve=a.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(qe)&&(e=n.value);return e},provide:e=>s.mH.from(e,(e=>e?Xe:null))}),Ge=s.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Je={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ke=a.r$.define({combine:e=>(0,a.BO)(e,Je,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),et=s.p.mark({class:"cm-selectionMatch"}),tt=s.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function nt(e,t,n,r){return!(0!=n&&e(t.sliceDoc(n-1,n))==a.D0.Word||r!=t.doc.length&&e(t.sliceDoc(r,r+1))==a.D0.Word)}const rt=s.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Ke),{state:n}=e,r=n.selection;if(r.ranges.length>1)return s.p.none;let i,o=r.main,l=null;if(o.empty){if(!t.highlightWordAroundCursor)return s.p.none;let e=n.wordAt(o.head);if(!e)return s.p.none;l=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return s.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),l=n.charCategorizer(o.head),!nt(l,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==a.D0.Word&&e(t.sliceDoc(r-1,r))==a.D0.Word}(l,n,o.from,o.to))return s.p.none}else if(i=n.sliceDoc(o.from,o.to),!i)return s.p.none}let u=[];for(let r of e.visibleRanges){let e=new We(n.doc,i,r.from,r.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!l||nt(l,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?u.push(tt.range(r,i)):(r>=o.to||i<=o.from)&&u.push(et.range(r,i)),u.length>t.maxMatches))return s.p.none}}return s.p.set(u)}},{decorations:e=>e.decorations}),it=s.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ot=a.r$.define({combine:e=>(0,a.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new At(e),scrollToMatch:e=>s.tk.scrollIntoView(e)})});class at{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,He),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new ft(this):new ut(this)}getCursor(e,t=0,n){let r=e.doc?e:a.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?ct(this,r,t,n):lt(this,r,t,n)}}class st{constructor(e){this.spec=e}}function lt(e,t,n,r){return new We(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=lt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function ct(e,t,n,r){return new Ie(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(dt(n.input,n.index))!=a.D0.Word||i(ht(n.input,n.index))!=a.D0.Word)&&(i(ht(n.input,n.index+n[0].length))!=a.D0.Word||i(dt(n.input,n.index+n[0].length))!=a.D0.Word)):void 0},n,r);var i}function dt(e,t){return e.slice((0,a.cp)(e,t,!1),t)}function ht(e,t){return e.slice(t,(0,a.cp)(e,t))}class ft extends st{nextMatch(e,t,n){let r=ct(this.spec,e,n,e.doc.length).next();return r.done&&(r=ct(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=ct(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=ct(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const pt=a.Py.define(),mt=a.Py.define(),gt=a.QQ.define({create:e=>new yt(Pt(e).create(),null),update(e,t){for(let n of t.effects)n.is(pt)?e=new yt(n.value.create(),e.panel):n.is(mt)&&(e=new yt(e.query,n.value?Tt:null));return e},provide:e=>s.mH.from(e,(e=>e.panel))});class yt{constructor(e,t){this.query=e,this.panel=t}}const vt=s.p.mark({class:"cm-searchMatch"}),Ot=s.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),_t=s.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(gt))}update(e){let t=e.state.field(gt);(t!=e.startState.field(gt)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return s.p.none;let{view:n}=this,r=new a.f_;for(let t=0,i=n.visibleRanges,o=i.length;ti[t+1].from-500;)s=i[++t].to;e.highlight(n.state,a,s,((e,t)=>{let i=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));r.add(e,t,i?Ot:vt)}))}return r.finish()}},{decorations:e=>e.decorations});function bt(e){return t=>{let n=t.state.field(gt,!1);return n&&n.query.spec.valid?e(t,n):Yt(t)}}const wt=bt(((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=a.jT.single(r.from,r.to),o=e.state.facet(ot);return e.dispatch({selection:i,effects:[$t(e,r),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),Dt(e),!0})),xt=bt(((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let o=a.jT.single(i.from,i.to),s=e.state.facet(ot);return e.dispatch({selection:o,effects:[$t(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),Dt(e),!0})),kt=bt(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length||(e.dispatch({selection:a.jT.create(n.map((e=>a.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),St=bt(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n,r,r);if(!o)return!1;let l,u,c=[],d=[];if(o.from==r&&o.to==i&&(u=n.toText(t.getReplacement(o)),c.push({from:o.from,to:o.to,insert:u}),o=t.nextMatch(n,o.from,o.to),d.push(s.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let t=0==c.length||c[0].from>=o.to?0:o.to-o.from-u.length;l=a.jT.single(o.from-t,o.to-t),d.push($t(e,o)),d.push(n.facet(ot).scrollToMatch(l.main,e))}return e.dispatch({changes:c,selection:l,effects:d,userEvent:"input.replace"}),!0})),Mt=bt(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:s.tk.announce.of(r),userEvent:"input.replace.all"}),!0}));function Tt(e){return e.state.facet(ot).createPanel(e)}function Pt(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let u=e.facet(ot);return new at({search:(null!==(n=null==t?void 0:t.literal)&&void 0!==n?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null==t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null==t?void 0:t.literal)&&void 0!==i?i:u.literal,regexp:null!==(o=null==t?void 0:t.regexp)&&void 0!==o?o:u.regexp,wholeWord:null!==(a=null==t?void 0:t.wholeWord)&&void 0!==a?a:u.wholeWord})}function Lt(e){let t=(0,s.Sd)(e,Tt);return t&&t.dom.querySelector("[main-field]")}function Dt(e){let t=Lt(e);t&&t==e.root.activeElement&&t.select()}const Yt=e=>{let t=e.state.field(gt,!1);if(t&&t.panel){let n=Lt(e);if(n&&n!=e.root.activeElement){let r=Pt(e.state,t.query.spec);r.valid&&e.dispatch({effects:pt.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[mt.of(!0),t?pt.of(Pt(e.state,t.query.spec)):a.Py.appendConfig.of(Wt)]});return!0},Ct=e=>{let t=e.state.field(gt,!1);if(!t||!t.panel)return!1;let n=(0,s.Sd)(e,Tt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:mt.of(!1)}),!0},Et=[{key:"Mod-f",run:Yt,scope:"editor search-panel"},{key:"F3",run:wt,shift:xt,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:wt,shift:xt,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ct,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],s=0;for(let t=new We(e.doc,e.sliceDoc(r,i));!t.next().done;){if(o.length>1e3)return!1;t.value.from==r&&(s=o.length),o.push(a.jT.range(t.value.from,t.value.to))}return t(e.update({selection:a.jT.create(o,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,s.Sd)(e,Xe);if(!t){let n=[qe.of(!0)];null==e.state.field(Ve,!1)&&n.push(a.Py.appendConfig.of([Ve,Ge])),e.dispatch({effects:n}),t=(0,s.Sd)(e,Xe)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=a.jT.create(n.ranges.map((t=>e.wordAt(t.head)||a.jT.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=r)))return!1;let i=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new We(e.doc,t,r[r.length-1].to);;){if(i.next(),!i.done){if(n&&r.some((e=>e.from==i.value.from)))continue;if(o){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}if(n)return null;i=new We(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}}(e,r);return!!i&&(t(e.update({selection:e.selection.addRange(a.jT.range(i.from,i.to),!1),effects:s.tk.scrollIntoView(i.to)})),!0)},preventDefault:!0}];class At{constructor(e){this.view=e;let t=this.query=e.state.field(gt).query.spec;function n(e,t,n){return je("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=je("input",{value:t.search,placeholder:Qt(e,"Find"),"aria-label":Qt(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=je("input",{value:t.replace,placeholder:Qt(e,"Replace"),"aria-label":Qt(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=je("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=je("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=je("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=je("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>wt(e)),[Qt(e,"next")]),n("prev",(()=>xt(e)),[Qt(e,"previous")]),n("select",(()=>kt(e)),[Qt(e,"all")]),je("label",null,[this.caseField,Qt(e,"match case")]),je("label",null,[this.reField,Qt(e,"regexp")]),je("label",null,[this.wordField,Qt(e,"by word")]),...e.state.readOnly?[]:[je("br"),this.replaceField,n("replace",(()=>St(e)),[Qt(e,"replace")]),n("replaceAll",(()=>Mt(e)),[Qt(e,"replace all")])],je("button",{name:"close",onclick:()=>Ct(e),"aria-label":Qt(e,"close"),type:"button"},["×"])])}commit(){let e=new at({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:pt.of(e)}))}keydown(e){(0,s.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?xt:wt)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),St(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(pt)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ot).top}}function Qt(e,t){return e.state.phrase(t)}const Rt=30,jt=/[\s\.,:;?!]/;function $t(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-Rt),a=Math.min(i,n+Rt),l=e.state.sliceDoc(o,a);if(o!=r.from)for(let e=0;el.length-Rt;e--)if(!jt.test(l[e-1])&&jt.test(l[e])){l=l.slice(0,e);break}return s.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${r.number}.`)}const Nt=s.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Wt=[gt,a.Wl.low(_t),Nt];var zt=n(4790);class Ht{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class It{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(en).markerFilter;i&&(r=i(r,n));let o=s.p.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?s.p.widget({widget:new rn(e),diagnostic:e}).range(e.from):s.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new It(o,t,Zt(o))}}function Zt(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new Ht(e,n,i.diagnostic),!1})),r}const Ft=a.Py.define(),Bt=a.Py.define(),Ut=a.Py.define(),Xt=a.QQ.define({create:()=>new It(s.p.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Zt(n,e.selected.diagnostic,i)||Zt(n,null,i)}!n.size&&i&&t.state.facet(en).autoPanel&&(i=null),e=new It(n,i,r)}for(let n of t.effects)if(n.is(Ft)){let r=t.state.facet(en).autoPanel?n.value.length?an.open:null:e.panel;e=It.init(n.value,r,t.state)}else n.is(Bt)?e=new It(e.diagnostics,n.value?an.open:null,e.selected):n.is(Ut)&&(e=new It(e.diagnostics,e.panel,n.value));return e},provide:e=>[s.mH.from(e,(e=>e.panel)),s.tk.decorations.from(e,(e=>e.diagnostics))]}),qt=s.p.mark({class:"cm-lintRange cm-lintRange-active"});function Vt(e,t,n){let{diagnostics:r}=e.state.field(Xt),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:s})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:Gt(e,i)})}:null}function Gt(e,t){return je("ul",{class:"cm-tooltip-lint"},t.map((t=>nn(e,t,!1))))}const Jt=e=>{let t=e.state.field(Xt,!1);return!(!t||!t.panel||(e.dispatch({effects:Bt.of(!1)}),0))},Kt=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Xt,!1);var n,r;t&&t.panel||e.dispatch({effects:(n=e.state,r=[Bt.of(!0)],n.field(Xt,!1)?r:r.concat(a.Py.appendConfig.of(un)))});let i=(0,s.Sd)(e,an.open);return i&&i.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Xt,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)||(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),0))}}],en=a.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,a.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function tn(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function nn(e,t,n){var r;let i=n?tn(t.actions):[];return je("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},je("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,a=r=>{if(r.preventDefault(),o)return;o=!0;let i=Zt(e.state.field(Xt).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,l=i[r]?s.indexOf(i[r]):-1,u=l<0?s:[s.slice(0,l),je("u",s.slice(l,l+1)),s.slice(l+1)];return je("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${i[r]})"`}.`},u)})),t.source&&je("div",{class:"cm-diagnosticSource"},t.source))}class rn extends s.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return je("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class on{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=nn(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class an{constructor(e){this.view=e,this.items=[],this.list=je("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Jt(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=tn(n.actions);for(let i=0;i{for(let t=0;tJt(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Xt).selected;if(!e)return-1;for(let t=0;t{let s,l=-1;for(let e=n;en&&(this.items.splice(n,l-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.topt.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Zt(this.view.state.field(Xt).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Ut.of(t)})}static open(e){return new an(e)}}function sn(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}(``,'width="6" height="3"')}const ln=s.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:sn("#d11")},".cm-lintRange-warning":{backgroundImage:sn("orange")},".cm-lintRange-info":{backgroundImage:sn("#999")},".cm-lintRange-hint":{backgroundImage:sn("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});s.SJ;const un=[Xt,s.tk.decorations.compute([Xt],(e=>{let{selected:t,panel:n}=e.field(Xt);return t&&n&&t.from!=t.to?s.p.set([qt.range(t.from,t.to)]):s.p.none})),(0,s.bF)(Vt,{hideOn:function(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(en).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Ft)))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}}),ln];var cn=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(zt.GA)),!1!==e.defaultKeymap&&(n=n.concat(Qe)),!1!==e.searchKeymap&&(n=n.concat(Et)),!1!==e.historyKeymap&&(n=n.concat(N)),!1!==e.foldKeymap&&(n=n.concat(l.e7)),!1!==e.completionKeymap&&(n=n.concat(zt.B1)),!1!==e.lintKeymap&&(n=n.concat(Kt));var r=[];return!1!==e.lineNumbers&&r.push((0,s.Eu)()),!1!==e.highlightActiveLineGutter&&r.push((0,s.HQ)()),!1!==e.highlightSpecialChars&&r.push((0,s.AE)()),!1!==e.history&&r.push(function(e={}){return[w,b.of(e),s.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?k:"historyRedo"==e.inputType?S:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,l.mi)()),!1!==e.drawSelection&&r.push((0,s.Uw)()),!1!==e.dropCursor&&r.push((0,s.qr)()),!1!==e.allowMultipleSelections&&r.push(a.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,l.nY)()),!1!==e.syntaxHighlighting&&r.push((0,l.nF)(l.R_,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,l.n$)()),!1!==e.closeBrackets&&r.push((0,zt.vQ)()),!1!==e.autocompletion&&r.push((0,zt.ys)()),!1!==e.rectangularSelection&&r.push((0,s.Zs)()),!1!==t&&r.push((0,s.S2)()),!1!==e.highlightActiveLine&&r.push((0,s.ZO)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[it,rt];return t}()),e.tabSize&&"number"==typeof e.tabSize&&r.push(l.c.of(" ".repeat(e.tabSize))),r.concat([s.$f.of(n.flat())]).filter(Boolean)},dn=n(5524);const hn="#e06c75",fn="#abb2bf",pn="#7d8799",mn="#d19a66",gn="#2c313a",yn="#282c34",vn="#353a42",On="#528bff",_n=s.tk.theme({"&":{color:fn,backgroundColor:yn},".cm-content":{caretColor:On},".cm-cursor, .cm-dropCursor":{borderLeftColor:On},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:fn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:yn,color:pn,border:"none"},".cm-activeLineGutter":{backgroundColor:gn},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:vn},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:vn,borderBottomColor:vn},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:gn,color:fn}}},{dark:!0}),bn=l.Qf.define([{tag:dn.pJ.keyword,color:"#c678dd"},{tag:[dn.pJ.name,dn.pJ.deleted,dn.pJ.character,dn.pJ.propertyName,dn.pJ.macroName],color:hn},{tag:[dn.pJ.function(dn.pJ.variableName),dn.pJ.labelName],color:"#61afef"},{tag:[dn.pJ.color,dn.pJ.constant(dn.pJ.name),dn.pJ.standard(dn.pJ.name)],color:mn},{tag:[dn.pJ.definition(dn.pJ.name),dn.pJ.separator],color:fn},{tag:[dn.pJ.typeName,dn.pJ.className,dn.pJ.number,dn.pJ.changed,dn.pJ.annotation,dn.pJ.modifier,dn.pJ.self,dn.pJ.namespace],color:"#e5c07b"},{tag:[dn.pJ.operator,dn.pJ.operatorKeyword,dn.pJ.url,dn.pJ.escape,dn.pJ.regexp,dn.pJ.link,dn.pJ.special(dn.pJ.string)],color:"#56b6c2"},{tag:[dn.pJ.meta,dn.pJ.comment],color:pn},{tag:dn.pJ.strong,fontWeight:"bold"},{tag:dn.pJ.emphasis,fontStyle:"italic"},{tag:dn.pJ.strikethrough,textDecoration:"line-through"},{tag:dn.pJ.link,color:pn,textDecoration:"underline"},{tag:dn.pJ.heading,fontWeight:"bold",color:hn},{tag:[dn.pJ.atom,dn.pJ.bool,dn.pJ.special(dn.pJ.variableName)],color:mn},{tag:[dn.pJ.processingInstruction,dn.pJ.string,dn.pJ.inserted],color:"#98c379"},{tag:dn.pJ.invalid,color:"#ffffff"}]),wn=[_n,(0,l.nF)(bn)];var xn=s.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),kn=a.q6.define(),Sn=[];function Mn(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:l,onUpdate:u,extensions:c=Sn,autoFocus:d,theme:h="light",height:f=null,minHeight:p=null,maxHeight:m=null,width:g=null,minWidth:y=null,maxWidth:v=null,placeholder:O="",editable:_=!0,readOnly:b=!1,indentWithTab:w=!0,basicSetup:x=!0,root:k,initialState:S}=e,[M,T]=(0,o.useState)(),[P,L]=(0,o.useState)(),[D,Y]=(0,o.useState)(),C=s.tk.theme({"&":{height:f,minHeight:p,maxHeight:m,width:g,minWidth:y,maxWidth:v},"& .cm-scroller":{height:"100% !important"}}),E=s.tk.updateListener.of((e=>{if(e.docChanged&&"function"==typeof r&&!e.transactions.some((e=>e.annotation(kn)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),A=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:l=!0}=e,u=[];switch(t&&u.unshift(s.$f.of([Re])),l&&("boolean"==typeof l?u.unshift(cn()):u.unshift(cn(l))),o&&u.unshift((0,s.W$)(o)),i){case"light":u.push(xn);break;case"dark":u.push(wn);break;case"none":break;default:u.push(i)}return!1===n&&u.push(s.tk.editable.of(!1)),r&&u.push(a.yy.readOnly.of(!0)),[...u]}({theme:h,editable:_,readOnly:b,placeholder:O,indentWithTab:w,basicSetup:x}),Q=[E,C,...A];return u&&"function"==typeof u&&Q.push(s.tk.updateListener.of(u)),Q=Q.concat(c),(0,o.useEffect)((()=>{if(M&&!D){var e={doc:t,selection:n,extensions:Q},r=S?a.yy.fromJSON(S.json,e,S.fields):a.yy.create(e);if(Y(r),!P){var i=new s.tk({state:r,parent:M,root:k});L(i),l&&l(i,r)}}return()=>{P&&(Y(void 0),L(void 0))}}),[M,D]),(0,o.useEffect)((()=>T(e.container)),[e.container]),(0,o.useEffect)((()=>()=>{P&&(P.destroy(),L(void 0))}),[P]),(0,o.useEffect)((()=>{d&&P&&P.focus()}),[d,P]),(0,o.useEffect)((()=>{P&&P.dispatch({effects:a.Py.reconfigure.of(Q)})}),[h,c,f,p,m,g,y,v,O,_,b,w,x,r,u]),(0,o.useEffect)((()=>{if(void 0!==t){var e=P?P.state.doc.toString():"";P&&t!==e&&P.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[kn.of(!0)]})}}),[t,P]),{state:D,setState:Y,view:P,setView:L,container:M,setContainer:T}}var Tn=n(8521),Pn=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Ln=(0,o.forwardRef)(((e,t)=>{var{className:n,value:a="",selection:s,extensions:l=[],onChange:u,onStatistics:c,onCreateEditor:d,onUpdate:h,autoFocus:f,theme:p="light",height:m,minHeight:g,maxHeight:y,width:v,minWidth:O,maxWidth:_,basicSetup:b,placeholder:w,indentWithTab:x,editable:k,readOnly:S,root:M,initialState:T}=e,P=(0,i.Z)(e,Pn),L=(0,o.useRef)(null),{state:D,view:Y,container:C}=Mn({container:L.current,root:M,value:a,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:y,width:v,minWidth:O,maxWidth:_,basicSetup:b,placeholder:w,indentWithTab:x,editable:k,readOnly:S,selection:s,onChange:u,onStatistics:c,onCreateEditor:d,onUpdate:h,extensions:l,initialState:T});if((0,o.useImperativeHandle)(t,(()=>({editor:L.current,state:D,view:Y})),[L,C,D,Y]),"string"!=typeof a)throw new Error("value must be typeof string but got "+typeof a);var E="string"==typeof p?"cm-theme-"+p:"cm-theme";return(0,Tn.jsx)("div",(0,r.Z)({ref:L,className:E+(n?" "+n:"")},P))}));Ln.displayName="CodeMirror";const Dn=Ln},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),i=n(6026),o=n(5327),a=n(4109),s=n(7985),l=n(5061);e.exports=function(e){return new Promise((function(t,u){var c=e.data,d=e.headers;r.isFormData(c)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",p=e.auth.password||"";d.Authorization="Basic "+btoa(f+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,r),h=null}},h.onerror=function(){u(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var m=n(4372),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===c&&(c=null),h.send(c)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),i=n(1849),o=n(321),a=n(5655);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=o,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(5655),i=n(4867),o=n(782),a=n(3572);function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},782:(e,t,n)=>{"use strict";var r=n(4867);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},3572:(e,t,n)=>{"use strict";var r=n(4867),i=n(8527),o=n(6502),a=n(5655),s=n(1793),l=n(7303);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),i=n(6016),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process)&&(s=n(5448)),s),transformRequest:[function(e,t){return i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4867);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4867:(e,t,n)=>{"use strict";var r=n(1849),i=n(8778),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},2048:(e,t,n)=>{"use strict";var r=n(210),i=n(5559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),i=n(210),o=n(7771),a=n(4453),s=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||r.call(l,s),c=n(4429),d=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(r,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h},7757:function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=i[o].channels,s=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:a}),Object.defineProperty(i[o],"labels",{value:s})}i.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s===a?t=0:r===s?t=(i-o)/l:i===s?t=2+(o-r)/l:o===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},i.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(a,s,l),c=u-Math.min(a,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?i=o=0:(o=c/u,t=d(a),n=d(s),r=d(l),a===u?i=r-n:s===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*u]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var r=n[e];if(r)return r;var i,o,a,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var u=(o=e,a=t[l],Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],o=t[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*o;return i},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(t=(2-o)*s)<=1?t:2-t)||0),100*(r/=2)]},i.hwb.rgb=function(e){var t,n,r,i,o,a,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,d=u+c;switch(d>1&&(u/=d,c/=d),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:o=n,a=i,s=u;break;case 1:o=i,a=n,s=u;break;case 2:o=u,a=n,s=i;break;case 3:o=u,a=i,s=n;break;case 4:o=i,a=u,s=n;break;case 5:o=n,a=u,s=i}return[255*o,255*a,255*s]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],o=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return t=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?a/(1-s):0)]},i.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=t%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function r(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,i=0;i1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var s=a,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},u={getRgba:c,getHsla:d,getRgb:function(e){var t=c(e);return t&&t.slice(0,3)},getHsl:function(e){var t=d(e);return t&&t.slice(0,3)},getHwb:h,getAlpha:function(e){var t=c(e);return t||(t=d(e))||(t=h(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+y(e[0])+y(e[1])+y(e[2])+(t>=0&&t<1?y(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:f,percentString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:p,hslString:function(e,t){return t<1||e[3]&&e[3]<1?m(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:m,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return v[e.slice(0,3)]}};function c(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;on?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,i=void 0===t?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,l=1-s;return this.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new _,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],"[object Array]"===(t={}.toString.call(e))?i[o]=e.slice(0):"[object Number]"===t?i[o]=e:console.error("unexpected color value:",e));return n}},_.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},_.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},_.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r=0;i--)t.call(n,e[i],i);else for(i=0;i=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-S.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*S.easeInBounce(2*e):.5*S.easeOutBounce(2*e-1)+.5}},M={effects:S};k.easingEffects=S;var T=Math.PI,P=T/180,L=2*T,D=T/2,Y=T/4,C=2*T/3,E={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=t+a,l=n+a,u=t+r-a,c=n+i-a;e.moveTo(t,l),st.left-n&&e.xt.top-n&&e.y0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,i=this.animations,o=0;o=n?(z.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},J=z.options.resolve,K=["push","pop","shift","splice","unshift"];function ee(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(K.forEach((function(t){delete e[t]})),delete e._chartjs)}}var te=function(e,t){this.initialize(e,t)};z.extend(te.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,i=e.getDataset(),o=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!i.xAxisID||(t.xAxisID=i.xAxisID||o.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!i.yAxisID||(t.yAxisID=i.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&ee(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),i=n.getDataset().data||[],o=r.data;for(e=0,t=i.length;er&&e.insertElements(r,i-r)},insertElements:function(e,t){for(var n=0;ni?(o=i/t.innerRadius,e.arc(a,s,t.innerRadius-i,r+o,n-o,!0)):e.arc(a,s,i,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function oe(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,r){var i,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+re,ie(e,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=re,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+re,n.startAngle,!0),i=0;is;)i-=re;for(;i=a&&i<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/re)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+re,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;ee.x&&(t=ye(t,"left","right")):e.basen?n:r,r:l.right||i<0?0:i>t?t:i,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>t?t:a}}function Oe(e,t,n){var r=null===t,i=null===n,o=!(!e||r&&i)&&ge(e);return o&&(r||t>=o.left&&t<=o.right)&&(i||n>=o.top&&n<=o.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:pe,borderColor:pe,borderSkipped:"bottom",borderWidth:0}}});var _e=X.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=ge(e),n=t.right-t.left,r=t.bottom-t.top,i=ve(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(t),r=n.outer,i=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return Oe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return me(n)?Oe(n,e,null):Oe(n,null,t)},inXRange:function(e){return Oe(this._view,e,null)},inYRange:function(e){return Oe(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return me(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return me(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),be={},we=ae,xe=ue,ke=fe,Se=_e;be.Arc=we,be.Line=xe,be.Point=ke,be.Rectangle=Se;var Me=z._deprecated,Te=z.valueOrDefault;function Pe(e,t,n){var r,i,o=n.barThickness,a=t.stackCount,s=t.pixels[e],l=z.isNullOrUndef(o)?function(e,t){var n,r,i,o,a=e._length;for(i=1,o=t.length;i0?Math.min(a,Math.abs(r-n)):a,n=r;return a}(t.scale,t.pixels):-1;return z.isNullOrUndef(o)?(r=l*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Le=ne.extend({dataElementType:be.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ne.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,Me("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Me("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Me("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Me("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Me("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,i=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=i.length;t=0&&g.min>=0?g.min:g.max,b=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,w=m.length;if(v||void 0===v&&void 0!==O)for(r=0;r=0&&u.max>=0?u.max:u.min,(g.min<0&&o<0||g.max>=0&&o>0)&&(_+=o));return a=h.getPixelForValue(_),l=(s=h.getPixelForValue(_+b))-a,void 0!==y&&Math.abs(l)=0&&!f||b<0&&f?a-y:a+y),{size:l,base:a,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,r){var i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e=Ae?-Qe:v<-Ae?Qe:0)+g,_=Math.cos(v),b=Math.sin(v),w=Math.cos(O),x=Math.sin(O),k=v<=0&&O>=0||O>=Qe,S=v<=Re&&O>=Re||O>=Qe+Re,M=v<=-Re&&O>=-Re||O>=Ae+Re,T=v===-Ae||O>=Ae?-1:Math.min(_,_*m,w,w*m),P=M?-1:Math.min(b,b*m,x,x*m),L=k?1:Math.max(_,_*m,w,w*m),D=S?1:Math.max(b,b*m,x,x*m);u=(L-T)/2,c=(D-P)/2,d=-(L+T)/2,h=-(D+P)/2}for(r=0,i=p.length;r0&&!isNaN(e)?Qe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,i,o,a,s,l,u=0,c=this.chart;if(!e)for(t=0,n=c.data.datasets.length;t(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=z.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ee(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Ee(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Ee(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n0&&ze(l[e-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),e0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return tt(e,t,{intersect:!1})},point:function(e,t){return Je(e,Ve(t,e))},nearest:function(e,t,n){var r=Ve(t,e);n.axis=n.axis||"xy";var i=et(n.axis);return Ke(e,r,n.intersect,i)},x:function(e,t,n){var r=Ve(t,e),i=[],o=!1;return Ge(e,(function(e){e.inXRange(r.x)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(e,t,n){var r=Ve(t,e),i=[],o=!1;return Ge(e,(function(e){e.inYRange(r.y)&&i.push(e),e.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}},rt=z.extend;function it(e,t){return z.where(e,(function(e){return e.pos===t}))}function ot(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function at(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function st(e,t,n){var r,i,o=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,e[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=t.outerWidth-at(a,e,"left","right"),i=t.outerHeight-at(a,e,"top","bottom"),r!==e.w||i!==e.h)return e.w=r,e.h=i,n.horizontal?r!==e.w:i!==e.h}function lt(e,t){var n,r=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach((function(e){n[e]=Math.max(t[e],r[e])})),n}function ut(e,t,n){var r,i,o,a,s,l,u=[];for(r=0,i=e.length;r div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&dt.default||dt,pt="$chartjs",mt="chartjs-",gt=mt+"size-monitor",yt=mt+"render-monitor",vt=mt+"render-animation",Ot=["animationstart","webkitAnimationStart"],_t={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function bt(e,t){var n=z.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var wt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function xt(e,t,n){e.addEventListener(t,n,wt)}function kt(e,t,n){e.removeEventListener(t,n,wt)}function St(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Mt(e){var t=document.createElement("div");return t.className=e||"",t}function Tt(e,t,n){var r,i,o,a,s=e[pt]||(e[pt]={}),l=s.resizer=function(e){var t=1e6,n=Mt(gt),r=Mt(gt+"-expand"),i=Mt(gt+"-shrink");r.appendChild(Mt()),i.appendChild(Mt()),n.appendChild(r),n.appendChild(i),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,i.scrollLeft=t,i.scrollTop=t};var o=function(){n._reset(),e()};return xt(r,"scroll",o.bind(r,"expand")),xt(i,"scroll",o.bind(i,"shrink")),n}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,i=r?r.clientWidth:0;t(St("resize",n)),r&&r.clientWidth0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index-1?e.split("\n"):e}function Nt(e){var t=R.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:At(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:At(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:At(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:At(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:At(e.titleFontStyle,t.defaultFontStyle),titleFontSize:At(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:At(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:At(e.footerFontStyle,t.defaultFontStyle),footerFontSize:At(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Wt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function zt(e){return jt([],$t(e))}var Ht=X.extend({initialize:function(){this._model=Nt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),i=t.afterTitle.apply(e,arguments),o=[];return o=jt(o,$t(n)),o=jt(o,$t(r)),jt(o,$t(i))},getBeforeBody:function(){return zt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return z.each(e,(function(e){var o={before:[],lines:[],after:[]};jt(o.before,$t(r.beforeLabel.call(n,e,t))),jt(o.lines,r.label.call(n,e,t)),jt(o.after,$t(r.afterLabel.call(n,e,t))),i.push(o)})),i},getAfterBody:function(){return zt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),o=[];return o=jt(o,$t(n)),o=jt(o,$t(r)),jt(o,$t(i))},update:function(e){var t,n,r,i,o,a,s,l,u,c,d=this,h=d._options,f=d._model,p=d._model=Nt(h),m=d._active,g=d._data,y={xAlign:f.xAlign,yAlign:f.yAlign},v={x:f.x,y:f.y},O={width:f.width,height:f.height},_={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var b=[],w=[];_=Rt[h.position].call(d,m,d._eventPosition);var x=[];for(t=0,n=m.length;tr.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===c?o+=d:o-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===u?i+=d:"right"===u&&(i-=d):"left"===u?i-=h:"right"===u&&(i+=h),{x:i,y:o}}(p,O=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,o=t.body,a=o.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;r+=s*u,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*d,r+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){i=Math.max(i,n.measureText(e).width+h)};return n.font=z.fontString(u,t._titleFontStyle,t._titleFontFamily),z.each(t.title,f),n.font=z.fontString(c,t._bodyFontStyle,t._bodyFontFamily),z.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?c+2:0,z.each(o,(function(e){z.each(e.before,f),z.each(e.lines,f),z.each(e.after,f)})),h=0,n.font=z.fontString(d,t._footerFontStyle,t._footerFontFamily),z.each(t.footer,f),{width:i+=2*t.xPadding,height:r}}(this,p),y=function(e,t){var n,r,i,o,a,s=e._model,l=e._chart,u=e._chart.chartArea,c="center",d="center";s.yl.height-t.height&&(d="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===d?(n=function(e){return e<=h},r=function(e){return e>h}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=f?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",d=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",d=a(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,O),d._chart)}else p.opacity=0;return p.xAlign=y.xAlign,p.yAlign=y.yAlign,p.x=v.x,p.y=v.y,p.width=O.width,p.height=O.height,p.caretX=_.x,p.caretY=_.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,o,a,s,l,u=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,m=t.width,g=t.height;if("center"===h)s=p+g/2,"left"===d?(i=(r=f)-u,o=r,a=s+u,l=s-u):(i=(r=f+m)+u,o=r,a=s-u,l=s+u);else if("left"===d?(r=(i=f+c+u)-u,o=i+u):"right"===d?(r=(i=f+m-c-u)-u,o=i+u):(r=(i=n.caretX)-u,o=i+u),"top"===h)s=(a=p)-u,l=a;else{s=(a=p+g)+u,l=a;var y=o;o=r,r=y}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n){var r,i,o,a=t.title,s=a.length;if(s){var l=Qt(t.rtl,t.x,t.width);for(e.x=Wt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,i=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=z.fontString(r,t._titleFontStyle,t._titleFontFamily),o=0;o0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(r,t,e,n),r.y+=t.yPadding,z.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),z.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),r.reverse&&n._active.reverse()),(t=!z.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),It=Rt,Zt=Ht;Zt.positioners=It;var Ft=z.valueOrDefault;function Bt(){return z.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,o,a,s=n[e].length;for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?z.merge(t[e][i],[Et.getScaleDefaults(o),a]):z.merge(t[e][i],a)}else z._merger(e,t,n,r)}})}function Ut(){return z.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||{},o=n[e];"scales"===e?t[e]=Bt(i,o):"scale"===e?t[e]=z.merge(i,[Et.getScaleDefaults(o.type),o]):z._merger(e,t,n,r)}})}function Xt(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(z.findIndex(e,i)>=0);return r}function qt(e){return"top"===e||"bottom"===e}function Vt(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Gt=function(e,t){return this.construct(e,t),this};z.extend(Gt.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ut(R.global,R[e.type],e.options||{}),e}(t);var r=Yt.acquireContext(e,t),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=z.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Gt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Ct.notify(e,"beforeInit"),z.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),Ct.notify(e,"afterInit"),e},clear:function(){return z.canvas.clear(this),this},stop:function(){return G.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(z.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:z.getMaximumHeight(r)));if((t.width!==o||t.height!==a)&&(r.width=t.width=o,r.height=t.height=a,r.style.width=o+"px",r.style.height=a+"px",z.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};Ct.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;z.each(t.xAxes,(function(e,n){e.id||(e.id=Xt(t.xAxes,"x-axis-",n))})),z.each(t.yAxes,(function(e,n){e.id||(e.id=Xt(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),z.each(r,(function(t){var r=t.options,o=r.id,a=Ft(r.type,t.dtype);qt(r.position)!==qt(t.dposition)&&(r.position=t.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Et.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),z.each(i,(function(e,t){e||delete n[t]})),e.scales=n,Et.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e=0;--n)r.drawDataset(t[n],e);Ct.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==Ct.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),Ct.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==Ct.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),Ct.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return nt.modes.single(this,e)},getElementsAtEvent:function(e){return nt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return nt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=nt.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return nt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var i=z.log10(Math.abs(r)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=z.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(i);s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var l=-1*Math.floor(i);l=Math.max(Math.min(l,20),0),o=e.toFixed(l)}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(z.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},rn=z.isArray,on=z.isNullOrUndef,an=z.valueOrDefault,sn=z.valueAtIndexOrDefault;function ln(e,t,n){var r,i=e.getTicks().length,o=Math.min(t,i-1),a=e.getPixelForTick(o),s=e._startPixel,l=e._endPixel,u=1e-6;if(!(n&&(r=1===i?Math.max(a-s,l-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=ol+u)))return a}function un(e,t,n,r){var i,o,a,s,l,u,c,d,h,f,p,m,g,y=n.length,v=[],O=[],_=[];for(i=0;it){for(n=0;n=h||c<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=l.offset?s.maxWidth/c:r/(c-1))&&(i=r/(c-(l.offset?.5:1)),o=s.maxHeight-cn(l.gridLines)-u.padding-dn(l.scaleLabel),a=Math.sqrt(t*t+n*n),f=z.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){z.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){z.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=e._isVisible(),l="bottom"===r.position,u=e.isHorizontal();if(u?t.width=e.maxWidth:s&&(t.width=cn(a)+dn(o)),u?s&&(t.height=cn(a)+dn(o)):t.height=e.maxHeight,i.display&&s){var c=fn(i),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,y=i.padding;if(u){var v=0!==e.labelRotation,O=z.toRadians(e.labelRotation),_=Math.cos(O),b=Math.sin(O),w=b*p.width+_*(m.height-(v?m.offset:0))+(v?0:g);t.height=Math.min(e.maxHeight,t.height+w+y);var x,k,S=e.getPixelForTick(0)-e.left,M=e.right-e.getPixelForTick(e.getTicks().length-1);v?(x=l?_*h.width+b*h.offset:b*(h.height-h.offset),k=l?b*(f.height-f.offset):_*f.width+b*f.offset):(x=h.width/2,k=f.width/2),e.paddingLeft=Math.max((x-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((k-M)*e.width/(e.width-M),0)+3}else{var T=i.mirror?0:p.width+y+g;t.width=Math.min(e.maxWidth,t.width+T),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}}e.handleMargins(),u?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){z.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(on(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,i=this;for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion(),t=i.convertTicksToLabels(e)||i.ticks,i.afterTickToLabelConversion(),n=0,r=e.length;nr-1?null:t.getPixelForDecimal(e*i+(n?i/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,i,o=this,a=o.options.ticks,s=o._length,l=a.maxTicksLimit||s/o._tickSize()+1,u=a.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;tl)return function(e,t,n){var r,i,o=0,a=t[0];for(n=Math.ceil(n),r=0;ru)return o;return Math.max(u,1)}(u,e,0,l),c>0){for(t=0,n=c-1;t1?(h-d)/(c-1):null,mn(e,r,z.isNullOrUndef(i)?0:d-i,d),mn(e,r,h,z.isNullOrUndef(i)?e.length:h+i),pn(e)}return mn(e,r),pn(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=z.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=e._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,l=o?o.highest.height+a:0;return e.isHorizontal()?l*r>s*i?s/r:l/i:l*i=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;yn.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,o,a=this;return vn(t)||vn(n)||(e=a.chart.data.datasets[n].data[t]),vn(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=z.valueOrDefault(r,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),_n={position:"bottom"};On._defaults=_n;var bn=z.noop,wn=z.isNullOrUndef;var xn=yn.extend({getRightValue:function(e){return"string"==typeof e?+e:yn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=z.sign(e.min),r=z.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==o&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,i=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:bn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:z.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var n,r,i,o,a=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,c=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,m=z.niceNum((p-f)/u/l)*l;if(m<1e-14&&wn(c)&&wn(d))return[f,p];(o=Math.ceil(p/m)-Math.floor(f/m))>u&&(m=z.niceNum(o*m/u/l)*l),s||wn(h)?n=Math.pow(10,z._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),r=Math.floor(f/m)*m,i=Math.ceil(p/m)*m,s&&(!wn(c)&&z.almostWhole(c/m,m/1e3)&&(r=c),!wn(d)&&z.almostWhole(d/m,m/1e3)&&(i=d)),o=(i-r)/m,o=z.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(wn(c)?r:c);for(var g=1;gt.length-1?null:this.getPixelForValue(t[e])}}),Pn=kn;Tn._defaults=Pn;var Ln=z.valueOrDefault,Dn=z.math.log10;var Yn={position:"left",ticks:{callback:nn.formatters.logarithmic}};function Cn(e,t){return z.isFinite(e)&&e>=0?e:t}var En=yn.extend({determineDataLimits:function(){var e,t,n,r,i,o,a=this,s=a.options,l=a.chart,u=l.data.datasets,c=a.isHorizontal();function d(e){return c?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e0){var t=z.min(e),n=z.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Dn(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Cn(t.min),max:Cn(t.max)},i=e.ticks=function(e,t){var n,r,i=[],o=Ln(e.min,Math.pow(10,Math.floor(Dn(t.min)))),a=Math.floor(Dn(t.max)),s=Math.ceil(t.max/Math.pow(10,a));0===o?(n=Math.floor(Dn(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(Dn(o)),r=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10==++r&&(r=1,l=++n>=0?1:l),o=Math.round(r*Math.pow(10,n)*l)/l}while(nt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Dn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;yn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Ln(e.options.ticks.fontSize,R.global.defaultFontSize)/e._length),e._startValue=Dn(t),e._valueOffset=n,e._valueRange=(Dn(e.max)-Dn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(Dn(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),An=Yn;En._defaults=An;var Qn=z.valueOrDefault,Rn=z.valueAtIndexOrDefault,jn=z.options.resolve,$n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:nn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Nn(e){var t=e.ticks;return t.display&&e.display?Qn(t.fontSize,R.global.defaultFontSize)+2*t.backdropPaddingY:0}function Wn(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function zn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Hn(e,t,n,r){var i,o,a=n.y+r/2;if(z.isArray(t))for(i=0,o=t.length;i270||e<90)&&(n.y-=t.h)}function Zn(e){return z.isNumber(e)?e:0}var Fn=xn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Nn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;z.each(t.data.datasets,(function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o);z.each(i.data,(function(t,i){var o=+e.getRightValue(t);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Nn(this.options))},convertTicksToLabels:function(){var e=this;xn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=z.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?function(e){var t,n,r,i=z.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=i.string,e._pointLabelSizes=[];var s,l,u,c=e.chart.data.labels.length;for(t=0;to.r&&(o.r=f.end,a.r=d),p.starto.b&&(o.b=p.end,a.b=d)}e.setReductions(e.drawingArea,o,a)}(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Zn(i),o=Zn(o),a=Zn(a),s=Zn(s),r.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(z.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,l=Qn(s.lineWidth,a.lineWidth),u=Qn(s.color,a.color);if(o.pointLabels.display&&function(e){var t=e.ctx,n=e.options,r=n.pointLabels,i=Nn(n),o=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=z.options._parseFont(r);t.save(),t.font=a.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=0===s?i/2:0,u=e.getPointPosition(s,o+l+5),c=Rn(r.fontColor,s,R.global.defaultFontColor);t.fillStyle=c;var d=e.getIndexAngle(s),h=z.toDegrees(d);t.textAlign=zn(h),In(h,e._pointLabelSizes[s],u),Hn(t,e.pointLabels[s],u,a.lineHeight)}t.restore()}(r),a.display&&z.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(e,t,n,r){var i,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,l=Rn(t.color,r-1),u=Rn(t.lineWidth,r-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{i=e.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c=0;e--)t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,o=e.getIndexAngle(0),a=z.options._parseFont(n),s=Qn(n.fontColor,R.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",z.each(e.ticks,(function(o,l){(0!==l||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(i=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-r))})),t.restore()}},_drawTitle:z.noop}),Bn=$n;Fn._defaults=Bn;var Un=z._deprecated,Xn=z.options.resolve,qn=z.valueOrDefault,Vn=Number.MIN_SAFE_INTEGER||-9007199254740991,Gn=Number.MAX_SAFE_INTEGER||9007199254740991,Jn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Kn=Object.keys(Jn);function er(e,t){return e-t}function tr(e){return z.valueOrDefault(e.time.min,e.ticks.min)}function nr(e){return z.valueOrDefault(e.time.max,e.ticks.max)}function rr(e,t,n,r){var i=function(e,t,n){for(var r,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(r=a+s>>1)-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,u=(a[r]-o[r])*l;return o[r]+u}function ir(e,t){var n=e._adapter,r=e.options.time,i=r.parser,o=i||r.format,a=t;return"function"==typeof i&&(a=i(a)),z.isFinite(a)||(a="string"==typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(t),z.isFinite(a)||(a=n.parse(a))),a)}function or(e,t){if(z.isNullOrUndef(t))return null;var n=e.options.time,r=ir(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function ar(e,t,n,r){var i,o,a,s=Kn.length;for(i=Kn.indexOf(e);i=0&&(t[o].major=!0);return t}(e,o,a,n):o}var lr=yn.extend({initialize:function(){this.mergeTicksOptions(),yn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new tn._date(t.adapters.date);return Un("time scale",n.format,"time.format","time.parser"),Un("time scale",n.min,"time.min","ticks.min"),Un("time scale",n.max,"time.max","ticks.max"),z.mergeIf(n.displayFormats,r.formats()),yn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),yn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,i,o,a,s=this,l=s.chart,u=s._adapter,c=s.options,d=c.time.unit||"day",h=Gn,f=Vn,p=[],m=[],g=[],y=s._getLabels();for(e=0,n=y.length;e1?function(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t1e5*u)throw t+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(i=d;i=i&&n<=o&&c.push(n);return r.min=i,r.max=o,r._unit=l.unit||(s.autoSkip?ar(l.minUnit,r.min,r.max,d):function(e,t,n,r,i){var o,a;for(o=Kn.length-1;o>=Kn.indexOf(n);o--)if(a=Kn[o],Jn[a].common&&e._adapter.diff(i,r,a)>=t-1)return a;return Kn[n?Kn.indexOf(n):0]}(r,c.length,l.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(e){for(var t=Kn.indexOf(e)+1,n=Kn.length;tt&&s=0&&e0?s:1}}),ur={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};lr._defaults=ur;var cr={category:On,linear:Tn,logarithmic:En,radialLinear:Fn,time:lr},dr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};tn._date.override("function"==typeof e?{_id:"moment",formats:function(){return dr},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var hr={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=i.length||0;return o?function(e,t){return t=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function pr(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,r,i,o,a=e.el._scale,s=a.options,l=a.chart.data.labels.length,u=e.fill,c=[];if(!l)return null;for(t=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,t),i=0;i0;--o)z.canvas.lineTo(e,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=i-1;o>0;--o)e.arc(a,s,l,n[o].angle,n[o-1].angle,!0)}}function Or(e,t,n,r,i,o){var a,s,l,u,c,d,h,f,p=t.length,m=r.spanGaps,g=[],y=[],v=0,O=0;for(e.beginPath(),a=0,s=p;a=0;--n)(t=l[n].$filler)&&t.visible&&(i=(r=t.el)._view,o=r._children||[],a=t.mapper,s=i.backgroundColor||R.global.defaultColor,a&&s&&o.length&&(z.canvas.clipArea(u,e.chartArea),Or(u,o,a,i,s,r._loop),z.canvas.unclipArea(u)))}},br=z.rtl.getRtlAdapter,wr=z.noop,xr=z.valueOrDefault;function kr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),o=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=o.length;tl.width)&&(d+=a+n.padding,c[c.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],m=n.padding,g=0,y=0;z.each(e.legendItems,(function(e,t){var r=kr(n,a)+a/2+i.measureText(e.text).width;t>0&&y+a+2*h>l.height&&(m+=g+n.padding,f.push(g),p.push(y),g=0,y=0),g=Math.max(g,r),y+=a+h,s[t]={left:0,top:0,width:r,height:a}})),m+=g,f.push(g),p.push(y),l.width+=m}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:wr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=R.global,i=r.defaultColor,o=r.elements.line,a=e.height,s=e.columnHeights,l=e.width,u=e.lineWidths;if(t.display){var c,d=br(t.rtl,e.left,e.minSize.width),h=e.ctx,f=xr(n.fontColor,r.defaultFontColor),p=z.options._parseFont(n),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=kr(n,m),y=e.legendHitBoxes,v=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},O=e.isHorizontal();c=O?{x:e.left+v(l,u[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+v(a,s[0]),line:0},z.rtl.overrideTextDirection(e.ctx,t.textDirection);var _=m+n.padding;z.each(e.legendItems,(function(t,r){var f=h.measureText(t.text).width,p=g+m/2+f,b=c.x,w=c.y;d.setWidth(e.minSize.width),O?r>0&&b+p+n.padding>e.left+e.minSize.width&&(w=c.y+=_,c.line++,b=c.x=e.left+v(l,u[c.line])):r>0&&w+_>e.top+e.minSize.height&&(b=c.x=b+e.columnWidths[c.line]+n.padding,c.line++,w=c.y=e.top+v(a,s[c.line]));var x=d.x(b);(function(e,t,r){if(!(isNaN(g)||g<=0)){h.save();var a=xr(r.lineWidth,o.borderWidth);if(h.fillStyle=xr(r.fillStyle,i),h.lineCap=xr(r.lineCap,o.borderCapStyle),h.lineDashOffset=xr(r.lineDashOffset,o.borderDashOffset),h.lineJoin=xr(r.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=xr(r.strokeStyle,i),h.setLineDash&&h.setLineDash(xr(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,l=d.xPlus(e,g/2),u=t+m/2;z.canvas.drawPoint(h,r.pointStyle,s,l,u,r.rotation)}else h.fillRect(d.leftForLtr(e,g),t,g,m),0!==a&&h.strokeRect(d.leftForLtr(e,g),t,g,m);h.restore()}})(x,w,t),y[r].left=d.leftForLtr(x,y[r].width),y[r].top=w,function(e,t,n,r){var i=m/2,o=d.xPlus(e,g+i),a=t+i;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,r),a),h.stroke())}(x,w,t,f),O?c.x+=p+n.padding:c.y+=_})),z.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,i,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(i=o.legendHitBoxes,n=0;n=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,i="mouseup"===e.type?"click":e.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===i?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function Mr(e,t){var n=new Sr({ctx:e.ctx,options:t,chart:e});ht.configure(e,n,t),ht.addBox(e,n),e.legend=n}var Tr={id:"legend",_element:Sr,beforeInit:function(e){var t=e.options.legend;t&&Mr(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(z.mergeIf(t,R.global.legend),n?(ht.configure(e,n,t),n.options=t):Mr(e,t)):n&&(ht.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},Pr=z.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Lr=X.extend({initialize:function(e){z.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Pr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Pr,beforeSetDimensions:Pr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Pr,beforeBuildLabels:Pr,buildLabels:Pr,afterBuildLabels:Pr,beforeFit:Pr,fit:function(){var e,t=this,n=t.options,r=t.minSize={},i=t.isHorizontal();n.display?(e=(z.isArray(n.text)?n.text.length:1)*z.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=i?t.maxWidth:e,t.height=r.height=i?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:Pr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,i,o,a=z.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,u=0,c=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=z.valueOrDefault(n.fontColor,R.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=d+(f-d)/2,o=c+l,r=f-d):(i="left"===n.position?d+l:f-l,o=c+(h-c)/2,r=h-c,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(z.isArray(p))for(var m=0,g=0;g=0;r--){var i=e[r];if(t(i))return i}},z.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},z.almostEquals=function(e,t,n){return Math.abs(e-t)=e},z.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},z.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},z.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},z.toRadians=function(e){return e*(Math.PI/180)},z.toDegrees=function(e){return e*(180/Math.PI)},z._decimalPlaces=function(e){if(z.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},z.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},z.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},z.aliasPixel=function(e){return e%2==0?0:.5},z._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,i=n/2;return Math.round((t-i)*r)/r+i},z.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l),d=r*(u=isNaN(u)?0:u),h=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}},z.EPSILON=Number.EPSILON||1e-14,z.splineCurveMonotone=function(e){var t,n,r,i,o,a,s,l,u,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=c.length;for(t=0;t0?c[t-1]:null,(i=t0?c[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},z.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},z.niceNum=function(e,t){var n=Math.floor(z.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},z.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},z.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(z.getStyle(o,"padding-left")),u=parseFloat(z.getStyle(o,"padding-top")),c=parseFloat(z.getStyle(o,"padding-right")),d=parseFloat(z.getStyle(o,"padding-bottom")),h=a.right-a.left-l-c,f=a.bottom-a.top-u-d;return{x:n=Math.round((n-a.left-l)/h*o.width/t.currentDevicePixelRatio),y:r=Math.round((r-a.top-u)/f*o.height/t.currentDevicePixelRatio)}},z.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},z.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},z._calculatePadding=function(e,t,n){return(t=z.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},z._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},z.getMaximumWidth=function(e){var t=z._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-z._calculatePadding(t,"padding-left",n)-z._calculatePadding(t,"padding-right",n),i=z.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},z.getMaximumHeight=function(e){var t=z._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-z._calculatePadding(t,"padding-top",n)-z._calculatePadding(t,"padding-bottom",n),i=z.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},z.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},z.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},z.fontString=function(e,t,n){return t+" "+e+"px "+n},z.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var a,s,l,u,c,d=0,h=n.length;for(a=0;an.length){for(a=0;ar&&(r=o),r},z.numberOfLabelLines=function(e){var t=1;return z.each(e,(function(e){z.isArray(e)&&e.length>t&&(t=e.length)})),t},z.color=w?function(e){return e instanceof CanvasGradient&&(e=R.global.defaultColor),w(e)}:function(e){return console.error("Color.js not found!"),e},z.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:z.color(e).saturate(.5).darken(.1).rgbString()}}(),Jt._adapters=tn,Jt.Animation=V,Jt.animationService=G,Jt.controllers=qe,Jt.DatasetController=ne,Jt.defaults=R,Jt.Element=X,Jt.elements=be,Jt.Interaction=nt,Jt.layouts=ht,Jt.platform=Yt,Jt.plugins=Ct,Jt.Scale=yn,Jt.scaleService=Et,Jt.Ticks=nn,Jt.Tooltip=Zt,Jt.helpers.each(cr,(function(e,t){Jt.scaleService.registerScaleType(t,e,e._defaults)})),Yr)Yr.hasOwnProperty(Qr)&&Jt.plugins.register(Yr[Qr]);Jt.platform.initialize();var Rr=Jt;return"undefined"!=typeof window&&(window.Chart=Jt),Jt.Chart=Jt,Jt.Legend=Yr.legend._element,Jt.Title=Yr.title._element,Jt.pluginService=Jt.plugins,Jt.PluginBase=Jt.Element.extend({}),Jt.canvasHelpers=Jt.helpers.canvas,Jt.layoutService=Jt.layouts,Jt.LinearScaleBase=xn,Jt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Jt[e]=function(t,n){return new Jt(t,Jt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Rr}(function(){try{return n(381)}catch(e){}}())},4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ti,default:()=>o});const o=i},4286:(e,t,n)=>{"use strict";n.d(t,{E4:()=>u,zI:()=>g,Bc:()=>y,i9:()=>v,wY:()=>p,Dy:()=>O,iX:()=>_,Vf:()=>w,vV:()=>b,WU:()=>q,Ax:()=>G,RR:()=>J,KC:()=>K,QD:()=>ee,_w:()=>te,Fp:()=>ne,VV:()=>re,q0:()=>se,Mq:()=>le,b7:()=>d,Nm:()=>ue,zJ:()=>c});var r=36e5,i=6e4,o=2,a={dateTimeDelimeter:/[T ]/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function s(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},s=void 0===n.additionalDigits?o:Number(n.additionalDigits);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date)return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var u,c,d,h=function(e){var t,n={},r=e.split(a.dateTimeDelimeter);if(a.plainTime.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]),t){var i=a.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e),f=function(e,t){var n,r=a.YYY[t],i=a.YYYYY[t];if(n=a.YYYY.exec(e)||i.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=a.YY.exec(e)||r.exec(e)){var s=n[1];return{year:100*parseInt(s,10),restDateString:e.slice(s.length)}}return{year:null}}(h.date,s),p=f.year,m=function(e,t){if(null===t)return null;var n,r,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=a.MM.exec(e))return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(t,i),r;if(n=a.DDD.exec(e)){r=new Date(0);var o=parseInt(n[1],10);return r.setUTCFullYear(t,0,o),r}if(n=a.MMDD.exec(e)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(t,i,s),r}return(n=a.Www.exec(e))?l(t,parseInt(n[1],10)-1):(n=a.WwwD.exec(e))?l(t,parseInt(n[1],10)-1,parseInt(n[2],10)-1):null}(f.restDateString,p);if(m){var g,y=m.getTime(),v=0;return h.time&&(v=function(e){var t,n,o;if(t=a.HH.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*r;if(t=a.HHMM.exec(e))return n=parseInt(t[1],10),o=parseFloat(t[2].replace(",",".")),n%24*r+o*i;if(t=a.HHMMSS.exec(e)){n=parseInt(t[1],10),o=parseInt(t[2],10);var s=parseFloat(t[3].replace(",","."));return n%24*r+o*i+1e3*s}return null}(h.time)),h.timezone?(u=h.timezone,g=(c=a.timezoneZ.exec(u))?0:(c=a.timezoneHH.exec(u))?(d=60*parseInt(c[2],10),"+"===c[1]?-d:d):(c=a.timezoneHHMM.exec(u))?(d=60*parseInt(c[2],10)+parseInt(c[3],10),"+"===c[1]?-d:d):0):(g=new Date(y+v).getTimezoneOffset(),g=new Date(y+v+g*i).getTimezoneOffset()),new Date(y+v+g*i)}return new Date(e)}function l(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}function u(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=s(e,n),i=Number(t);return r.setDate(r.getDate()+i),r}function c(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=void 0===i?0:Number(i),a=void 0===n.weekStartsOn?o:Number(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=s(e,n),u=l.getDay(),c=(u=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=s(e,n),u=l.getDay(),c=6+(u0?"in "+r:r+" ago":r},formatLong:P,formatRelative:function(e,t,n,r){return L[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},weekday:D(E,"long"),weekdays:Y(E,"long"),month:D(A,"long"),months:Y(A,"long"),timeOfDay:D(Q,"long",(function(e){return e/12>=1?1:0})),timesOfDay:Y(Q,"long")},match:{ordinalNumbers:(C=/^(\d+)(th|st|nd|rd)?/i,function(e){return String(e).match(C)}),ordinalNumber:function(e){return parseInt(e[1],10)},weekdays:R({narrow:/^(su|mo|tu|we|th|fr|sa)/i,short:/^(sun|mon|tue|wed|thu|fri|sat)/i,long:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},"long"),weekday:j({any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},"any"),months:R({short:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,long:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},"long"),month:j({any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},"any"),timesOfDay:R({short:/^(am|pm)/i,long:/^([ap]\.?\s?m\.?)/i},"long"),timeOfDay:j({any:[/^a/i,/^p/i]},"any")},options:{weekStartsOn:0,firstWeekContainsDate:1}};function N(e,t){var n=s(e,t),r=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var i=r-n.getTime();return Math.floor(i/864e5)+1}function W(e,t){var n=s(e,t),r=n.getUTCDay(),i=(r<1?7:0)+r-1;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function z(e,t){var n=s(e,t),r=n.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(r+1,0,4),i.setUTCHours(0,0,0,0);var o=W(i,t),a=new Date(0);a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0);var l=W(a,t);return n.getTime()>=o.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function H(e,t){var n=s(e,t),r=W(n,t).getTime()-function(e,t){var n=z(e,t),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),W(r,t)}(n,t).getTime();return Math.round(r/6048e5)+1}var I={M:function(e){return e.getUTCMonth()+1},Mo:function(e,t){var n=e.getUTCMonth()+1;return t.locale.localize.ordinalNumber(n,{unit:"month"})},MM:function(e){return F(e.getUTCMonth()+1,2)},MMM:function(e,t){return t.locale.localize.month(e.getUTCMonth(),{type:"short"})},MMMM:function(e,t){return t.locale.localize.month(e.getUTCMonth(),{type:"long"})},Q:function(e){return Math.ceil((e.getUTCMonth()+1)/3)},Qo:function(e,t){var n=Math.ceil((e.getUTCMonth()+1)/3);return t.locale.localize.ordinalNumber(n,{unit:"quarter"})},D:function(e){return e.getUTCDate()},Do:function(e,t){return t.locale.localize.ordinalNumber(e.getUTCDate(),{unit:"dayOfMonth"})},DD:function(e){return F(e.getUTCDate(),2)},DDD:function(e){return N(e)},DDDo:function(e,t){return t.locale.localize.ordinalNumber(N(e),{unit:"dayOfYear"})},DDDD:function(e){return F(N(e),3)},dd:function(e,t){return t.locale.localize.weekday(e.getUTCDay(),{type:"narrow"})},ddd:function(e,t){return t.locale.localize.weekday(e.getUTCDay(),{type:"short"})},dddd:function(e,t){return t.locale.localize.weekday(e.getUTCDay(),{type:"long"})},d:function(e){return e.getUTCDay()},do:function(e,t){return t.locale.localize.ordinalNumber(e.getUTCDay(),{unit:"dayOfWeek"})},E:function(e){return e.getUTCDay()||7},W:function(e){return H(e)},Wo:function(e,t){return t.locale.localize.ordinalNumber(H(e),{unit:"isoWeek"})},WW:function(e){return F(H(e),2)},YY:function(e){return F(e.getUTCFullYear(),4).substr(2)},YYYY:function(e){return F(e.getUTCFullYear(),4)},GG:function(e){return String(z(e)).substr(2)},GGGG:function(e){return z(e)},H:function(e){return e.getUTCHours()},HH:function(e){return F(e.getUTCHours(),2)},h:function(e){var t=e.getUTCHours();return 0===t?12:t>12?t%12:t},hh:function(e){return F(I.h(e),2)},m:function(e){return e.getUTCMinutes()},mm:function(e){return F(e.getUTCMinutes(),2)},s:function(e){return e.getUTCSeconds()},ss:function(e){return F(e.getUTCSeconds(),2)},S:function(e){return Math.floor(e.getUTCMilliseconds()/100)},SS:function(e){return F(Math.floor(e.getUTCMilliseconds()/10),2)},SSS:function(e){return F(e.getUTCMilliseconds(),3)},Z:function(e,t){return Z((t._originalDate||e).getTimezoneOffset(),":")},ZZ:function(e,t){return Z((t._originalDate||e).getTimezoneOffset())},X:function(e,t){var n=t._originalDate||e;return Math.floor(n.getTime()/1e3)},x:function(e,t){return(t._originalDate||e).getTime()},A:function(e,t){return t.locale.localize.timeOfDay(e.getUTCHours(),{type:"uppercase"})},a:function(e,t){return t.locale.localize.timeOfDay(e.getUTCHours(),{type:"lowercase"})},aa:function(e,t){return t.locale.localize.timeOfDay(e.getUTCHours(),{type:"long"})}};function Z(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),i=r%60;return n+F(Math.floor(r/60),2)+t+F(i,2)}function F(e,t){for(var n=Math.abs(e).toString();n.lengthi.getTime()}function J(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=s(e,n),i=s(t,n);return r.getTime()=o&&i<=a}function ne(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n;return(null==e?[]:"function"==typeof e.forEach?e:Array.prototype.slice.call(e)).forEach((function(e){var r=s(e,t);(void 0===n||nr||isNaN(r))&&(n=r)})),n}var ie={M:/^(1[0-2]|0?\d)/,D:/^(3[0-1]|[0-2]?\d)/,DDD:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,W:/^(5[0-3]|[0-4]?\d)/,YYYY:/^(\d{1,4})/,H:/^(2[0-3]|[0-1]?\d)/,m:/^([0-5]?\d)/,Z:/^([+-])(\d{2}):(\d{2})/,ZZ:/^([+-])(\d{2})(\d{2})/,singleDigit:/^(\d)/,twoDigits:/^(\d{2})/,threeDigits:/^(\d{3})/,fourDigits:/^(\d{4})/,anyDigits:/^(\d+)/};function oe(e){return parseInt(e[1],10)}var ae={YY:{unit:"twoDigitYear",match:ie.twoDigits,parse:function(e){return oe(e)}},YYYY:{unit:"year",match:ie.YYYY,parse:oe},GG:{unit:"isoYear",match:ie.twoDigits,parse:function(e){return oe(e)+1900}},GGGG:{unit:"isoYear",match:ie.YYYY,parse:oe},Q:{unit:"quarter",match:ie.singleDigit,parse:oe},Qo:{unit:"quarter",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"quarter"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"quarter"})}},M:{unit:"month",match:ie.M,parse:function(e){return oe(e)-1}},Mo:{unit:"month",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"month"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"month"})-1}},MM:{unit:"month",match:ie.twoDigits,parse:function(e){return oe(e)-1}},MMM:{unit:"month",match:function(e,t){return t.locale.match.months(e,{type:"short"})},parse:function(e,t){return t.locale.match.month(e,{type:"short"})}},MMMM:{unit:"month",match:function(e,t){return t.locale.match.months(e,{type:"long"})||t.locale.match.months(e,{type:"short"})},parse:function(e,t){var n=t.locale.match.month(e,{type:"long"});return null==n&&(n=t.locale.match.month(e,{type:"short"})),n}},W:{unit:"isoWeek",match:ie.W,parse:oe},Wo:{unit:"isoWeek",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"isoWeek"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"isoWeek"})}},WW:{unit:"isoWeek",match:ie.twoDigits,parse:oe},d:{unit:"dayOfWeek",match:ie.singleDigit,parse:oe},do:{unit:"dayOfWeek",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"dayOfWeek"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"dayOfWeek"})}},dd:{unit:"dayOfWeek",match:function(e,t){return t.locale.match.weekdays(e,{type:"narrow"})},parse:function(e,t){return t.locale.match.weekday(e,{type:"narrow"})}},ddd:{unit:"dayOfWeek",match:function(e,t){return t.locale.match.weekdays(e,{type:"short"})||t.locale.match.weekdays(e,{type:"narrow"})},parse:function(e,t){var n=t.locale.match.weekday(e,{type:"short"});return null==n&&(n=t.locale.match.weekday(e,{type:"narrow"})),n}},dddd:{unit:"dayOfWeek",match:function(e,t){return t.locale.match.weekdays(e,{type:"long"})||t.locale.match.weekdays(e,{type:"short"})||t.locale.match.weekdays(e,{type:"narrow"})},parse:function(e,t){var n=t.locale.match.weekday(e,{type:"long"});return null==n&&null==(n=t.locale.match.weekday(e,{type:"short"}))&&(n=t.locale.match.weekday(e,{type:"narrow"})),n}},E:{unit:"dayOfISOWeek",match:ie.singleDigit,parse:function(e){return oe(e)}},D:{unit:"dayOfMonth",match:ie.D,parse:oe},Do:{unit:"dayOfMonth",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"dayOfMonth"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"dayOfMonth"})}},DD:{unit:"dayOfMonth",match:ie.twoDigits,parse:oe},DDD:{unit:"dayOfYear",match:ie.DDD,parse:oe},DDDo:{unit:"dayOfYear",match:function(e,t){return t.locale.match.ordinalNumbers(e,{unit:"dayOfYear"})},parse:function(e,t){return t.locale.match.ordinalNumber(e,{unit:"dayOfYear"})}},DDDD:{unit:"dayOfYear",match:ie.threeDigits,parse:oe},A:{unit:"timeOfDay",match:function(e,t){return t.locale.match.timesOfDay(e,{type:"short"})},parse:function(e,t){return t.locale.match.timeOfDay(e,{type:"short"})}},aa:{unit:"timeOfDay",match:function(e,t){return t.locale.match.timesOfDay(e,{type:"long"})||t.locale.match.timesOfDay(e,{type:"short"})},parse:function(e,t){var n=t.locale.match.timeOfDay(e,{type:"long"});return null==n&&(n=t.locale.match.timeOfDay(e,{type:"short"})),n}},H:{unit:"hours",match:ie.H,parse:oe},HH:{unit:"hours",match:ie.twoDigits,parse:oe},h:{unit:"timeOfDayHours",match:ie.M,parse:oe},hh:{unit:"timeOfDayHours",match:ie.twoDigits,parse:oe},m:{unit:"minutes",match:ie.m,parse:oe},mm:{unit:"minutes",match:ie.twoDigits,parse:oe},s:{unit:"seconds",match:ie.m,parse:oe},ss:{unit:"seconds",match:ie.twoDigits,parse:oe},S:{unit:"milliseconds",match:ie.singleDigit,parse:function(e){return 100*oe(e)}},SS:{unit:"milliseconds",match:ie.twoDigits,parse:function(e){return 10*oe(e)}},SSS:{unit:"milliseconds",match:ie.threeDigits,parse:oe},Z:{unit:"timezone",match:ie.Z,parse:function(e){var t=e[1],n=60*parseInt(e[2],10)+parseInt(e[3],10);return"+"===t?n:-n}},ZZ:{unit:"timezone",match:ie.ZZ,parse:function(e){var t=e[1],n=60*parseInt(e[2],10)+parseInt(e[3],10);return"+"===t?n:-n}},X:{unit:"timestamp",match:ie.anyDigits,parse:function(e){return 1e3*oe(e)}},x:{unit:"timestamp",match:ie.anyDigits,parse:oe}};function se(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=s(e,n),i=Number(t),o=r.getFullYear(),a=r.getDate(),l=new Date(0);l.setFullYear(o,i,15),l.setHours(0,0,0,0);var u=m(l,n);return r.setMonth(i,Math.min(a,u)),r}function le(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=s(e,n),i=Number(t);return isNaN(r)?new Date(NaN):(r.setFullYear(i),r)}function ue(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=s(e,t);return n.setDate(1),n.setHours(0,0,0,0),n}ae.a=ae.A},289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={LTS:e.LTS,LT:e.LT,L:e.L,LL:e.LL,LLL:e.LLL,LLLL:e.LLLL,l:e.l||r(e.L),ll:e.ll||r(e.LL),lll:e.lll||r(e.LLL),llll:e.llll||r(e.LLLL)};return function(e){return t[e]}};var n=/MMMM|MM|DD|dddd/g;function r(e){return e.replace(n,(function(e){return e.slice(1)}))}e.exports=t.default},5148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){var r=n||{},i=r.type?String(r.type):t;return e[i]||e[t]}},e.exports=t.default},6245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return function(r,i){var o=i||{},a=o.type?String(o.type):t;return(e[a]||e[t])[n?n(Number(r)):Number(r)]}},e.exports=t.default},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,r){var i=r||{},o=i.type?String(i.type):t,a=e[o]||e[t];return String(n).match(a)}},e.exports=t.default},8926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){return String(t).match(e)}},e.exports=t.default},5601:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n,r){var i=r||{},o=i.type?String(i.type):t,a=e[o]||e[t],s=n[1];return a.findIndex((function(e){return e.test(s)}))}},e.exports=t.default},5255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return parseInt(e[1],10)},e.exports=t.default},1924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var i;return r=r||{},i="string"==typeof n[e]?n[e]:1===t?n[e].one:n[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?"in "+i:i+" ago":i};var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};e.exports=t.default},5062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(0,((r=n(289))&&r.__esModule?r:{default:r}).default)({LT:"h:mm aa",LTS:"h:mm:ss aa",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY h:mm aa",LLLL:"dddd, MMMM D YYYY h:mm aa"});t.default=i,e.exports=t.default},5102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,i){return n[e]};var n={lastWeek:"[last] dddd [at] LT",yesterday:"[yesterday at] LT",today:"[today at] LT",tomorrow:"[tomorrow at] LT",nextWeek:"dddd [at] LT",other:"L"};e.exports=t.default},7839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(6245)),i=o(n(5148));function o(e){return e&&e.__esModule?e:{default:e}}var a={narrow:["Su","Mo","Tu","We","Th","Fr","Sa"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},s={short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},l={uppercase:["AM","PM"],lowercase:["am","pm"],long:["a.m.","p.m."]},u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},weekday:(0,r.default)(a,"long"),weekdays:(0,i.default)(a,"long"),month:(0,r.default)(s,"long"),months:(0,i.default)(s,"long"),timeOfDay:(0,r.default)(l,"long",(function(e){return e/12>=1?1:0})),timesOfDay:(0,i.default)(l,"long")};t.default=u,e.exports=t.default},9796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(3421)),i=s(n(5601)),o=s(n(8926)),a=s(n(5255));function s(e){return e&&e.__esModule?e:{default:e}}var l={ordinalNumbers:(0,o.default)(/^(\d+)(th|st|nd|rd)?/i),ordinalNumber:a.default,weekdays:(0,r.default)({narrow:/^(su|mo|tu|we|th|fr|sa)/i,short:/^(sun|mon|tue|wed|thu|fri|sat)/i,long:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},"long"),weekday:(0,i.default)({any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},"any"),months:(0,r.default)({short:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,long:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},"long"),month:(0,i.default)({any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},"any"),timesOfDay:(0,r.default)({short:/^(am|pm)/i,long:/^([ap]\.?\s?m\.?)/i},"long"),timeOfDay:(0,i.default)({any:[/^a/i,/^p/i]},"any")};t.default=l,e.exports=t.default},2512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(1924)),i=l(n(5062)),o=l(n(5102)),a=l(n(7839)),s=l(n(9796));function l(e){return e&&e.__esModule?e:{default:e}}var u={formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=u,e.exports=t.default},2296:(e,t,n)=>{"use strict";var r=n(4429),i=n(3464),o=n(4453),a=n(7296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&d?d.configurable:!u,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!c&&(s||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4429:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3981:e=>{"use strict";e.exports=EvalError},1648:e=>{"use strict";e.exports=Error},4726:e=>{"use strict";e.exports=RangeError},6712:e=>{"use strict";e.exports=ReferenceError},3464:e=>{"use strict";e.exports=SyntaxError},4453:e=>{"use strict";e.exports=TypeError},3915:e=>{"use strict";e.exports=URIError},7648:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,i=n(1648),o=n(3981),a=n(4726),s=n(6712),l=n(3464),u=n(4453),c=n(3915),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var p=function(){throw new u},m=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(e){return p}}}():p,g=n(1405)(),y=n(8185)(),v=Object.getPrototypeOf||(y?function(e){return e.__proto__}:null),O={},_="undefined"!=typeof Uint8Array&&v?v(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":O,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(e){var w=v(v(e));b["%Error.prototype%"]=w}var x=function e(t){var n;if("%AsyncFunction%"===t)n=h("async function () {}");else if("%GeneratorFunction%"===t)n=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=h("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&v&&(n=v(i.prototype))}return b[t]=n,n},k={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=n(8612),M=n(8824),T=S.call(Function.call,Array.prototype.concat),P=S.call(Function.apply,Array.prototype.splice),L=S.call(Function.call,String.prototype.replace),D=S.call(Function.call,String.prototype.slice),Y=S.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,A=function(e,t){var n,r=e;if(M(k,r)&&(r="%"+(n=k[r])[0]+"%"),M(b,r)){var i=b[r];if(i===O&&(i=x(r)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===Y(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=D(e,0,1),n=D(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,C,(function(e,t,n,i){r[r.length]=n?L(i,E,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=A("%"+r+"%",t),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],P(n,T([0,1],c)));for(var d=1,h=!0;d=n.length){var y=f(a,p);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else h=M(a,p),a=a[p];h&&!s&&(b[o]=a)}}return a}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1044:(e,t,n)=>{"use strict";var r=n(4429),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},8185:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(5419);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},8824:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(8612);e.exports=o.call(r,i)},2426:(e,t,n)=>{"use strict";n.d(t,{lX:()=>m});var r=n(7462);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;h--){var f=a[h];"."===f?o(a,h):".."===f?(o(a,h),d++):d&&(o(a,h),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};var s=!0,l="Invariant failed";function u(e,t,n,i){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);function d(e,t){t(window.confirm(e))}var h="popstate",f="hashchange";function p(){try{return window.history.state||{}}catch(e){return{}}}function m(e){void 0===e&&(e={}),c||function(e,t){if(s)throw new Error(l);throw new Error(l)}();var t,n,i=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),m=e,g=m.forceRefresh,y=void 0!==g&&g,v=m.getUserConfirmation,O=void 0===v?d:v,_=m.keyLength,b=void 0===_?6:_,w=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}("/"===(n=e.basename).charAt(0)?n:"/"+n):"";function x(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return w&&(o=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(o,w)),u(o,r,n)}function k(){return Math.random().toString(36).substr(2,b)}var S,M,T=(S=null,M=[],{setPrompt:function(e){return S=e,function(){S===e&&(S=null)}},confirmTransitionTo:function(e,t,n,r){if(null!=S){var i="function"==typeof S?S(e,t):S;"string"==typeof i?"function"==typeof n?n(i,r):r(!0):r(!1!==i)}else r(!0)},appendListener:function(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return M.push(n),function(){t=!1,M=M.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var r=n(9864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},O=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||O).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var x="3.5.1",k=function(e,t){return new k.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:x,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n+~]|"+j+")"+j+"*"),F=new RegExp(j+"|>"),B=new RegExp(W),U=new RegExp("^"+$+"$"),X={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},q=/HTML$/i,V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{E.apply(D=A.call(b.childNodes),b.childNodes),D[b.childNodes.length].nodeType}catch(e){E={apply:D.length?function(e,t){C.apply(e,A.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,d,p,y,v=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!i&&(h(t),t=t||f,m)){if(11!==b&&(d=K.exec(e)))if(o=d[1]){if(9===b){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(v&&(u=v.getElementById(o))&&O(t,u)&&u.id===o)return r.push(u),r}else{if(d[2])return E.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===b&&(F.test(e)||Z.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=_)),s=(p=a(e)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+Oe(p[s]);y=p.join(",")}try{return E.apply(r,v.querySelectorAll(y)),r}catch(t){T(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[_]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!q.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:b;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,m=!o(f),b!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ce((function(e){return p.appendChild(e).id=_,!f.getElementsByName||!f.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ce((function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",W)})),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=J.test(p.compareDocumentPosition),O=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==b&&O(b,e)?-1:t==f||t.ownerDocument==b&&O(b,t)?1:c?Q(c,e)-Q(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:c?Q(c,e)-Q(c,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]==b?-1:s[r]==b?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!T[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){T(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),O(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(P),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,f,p,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s,O=!1;if(g){if(o){for(;m;){for(h=t;h=h[m];)if(s?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&v){for(O=(f=(u=(c=(d=(h=g)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(O=f=0)||p.pop();)if(1===h.nodeType&&++O&&h===t){c[e]=[w,f,O];break}}else if(v&&(O=f=(u=(c=(d=(h=t)[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===O)for(;(h=++f&&h&&h[m]||(O=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++O||(v&&((c=(d=h[_]||(h[_]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[w,O]),h!==t)););return(O-=i)===r||O%r==0&&O/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=Q(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[_]?ue((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return U.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;nt?t:n;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function we(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s-1&&(o[u]=!(a[u]=d))}}else y=we(y===a?y.splice(p,y.length):y),i?i(null,a,y,l):E.apply(a,y)}))}function ke(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=_e((function(e){return e===t}),s,!0),d=_e((function(e){return Q(t,e)>-1}),s,!0),h=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):d(e,n,r));return t=null,i}];l1&&be(h),l>1&&Oe(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l0,i=e.length>0,o=function(o,a,s,l,c){var d,p,g,y=0,v="0",O=o&&[],_=[],b=u,x=o||i&&r.find.TAG("*",c),k=w+=null==b?1:Math.random()||.1,S=x.length;for(c&&(u=a==f||a||c);v!==S&&null!=(d=x[v]);v++){if(i&&d){for(p=0,a||d.ownerDocument==f||(h(d),s=!m);g=e[p++];)if(g(d,a||f,s)){l.push(d);break}c&&(w=k)}n&&((d=!g&&d)&&y--,o&&O.push(d))}if(y+=v,n&&v!==y){for(p=0;g=t[p++];)g(O,_,a,s);if(o){if(y>0)for(;v--;)O[v]||_[v]||(_[v]=Y.call(l));_=we(_)}E.apply(l,_),c&&!o&&_.length>0&&y+t.length>1&&se.uniqueSort(l)}return c&&(w=k,u=b),O};return n?ue(o):o}(o,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var o,l,u,c,d,h="function"==typeof e&&e,f=!i&&a(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(u=l[o],!r.relative[c=u.type]);)if((d=r.find[c])&&(i=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&Oe(l)))return E.apply(n,i),n;break}}return(h||s(e,f))(i,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=_.split("").sort(P).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ce((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||de(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);k.find=M,k.expr=M.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=M.uniqueSort,k.text=M.getText,k.isXMLDoc=M.isXML,k.contains=M.contains,k.escapeSelector=M.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},L=k.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,t,n){return y(t)?k.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return c.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&L.test(e)?k(e):e||[],!1).length}});var E,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:O,!0)),Y.test(r[1])&&k.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=O.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,E=k(O);var Q=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(k(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(R[e]||k.uniqueSort(i),Q.test(e)&&i.reverse()),this.pushStack(i)}}));var $=/[^\x20\t\r\n\f]+/g;function N(e){return e}function W(e){throw e}function z(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match($)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e=o&&(n!==W&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),r.setTimeout(c))}}return k.Deferred((function(r){t[0][3].add(a(0,r,y(i)?i:N,r.notifyWith)),t[1][3].add(a(0,r,y(e)?e:N)),t[2][3].add(a(0,r,y(n)?n:W))})).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&H.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){r.setTimeout((function(){throw e}))};var I=k.Deferred();function Z(){O.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),k.ready()}k.fn.ready=function(e){return I.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||I.resolveWith(O,[k]))}}),k.ready.then=I.then,"complete"===O.readyState||"loading"!==O.readyState&&!O.documentElement.doScroll?r.setTimeout(k.ready):(O.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var F=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===w(n))for(s in i=!0,n)F(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(k(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){K.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){k.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:k.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=O.createDocumentFragment().appendChild(O.createElement("div")),(me=O.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="",g.option=!!pe.lastChild;var Oe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?k.merge([e],n):n}function be(e,t){for(var n=0,r=e.length;n",""]);var we=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f-1)i&&i.push(o);else if(u=se(o),a=_e(d.appendChild(o),"script"),u&&be(a),n)for(c=0;o=a[c++];)ve.test(o.type||"")&&n.push(o);return d}var ke=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Pe(){return!1}function Le(e,t){return e===function(){try{return O.activeElement}catch(e){}}()==("focus"===t)}function De(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Pe;else if(!i)return e;return 1===o&&(a=i,i=function(e){return k().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=k.guid++)),e.each((function(){k.event.add(this,t,i,r,n)}))}function Ye(e,t,n){n?(J.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=J.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),J.set(this,t,o),r=n(this,t),this[t](),o!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(J.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&k.event.add(e,t,Te)}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,h,f,p,m,g=J.get(e);if(V(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ae,i),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match($)||[""]).length;u--;)f=m=(s=Me.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},c=k.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),k.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,h,f,p,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match($)||[""]).length;u--;)if(f=m=(s=Me.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||k.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[u],n,r,!0);k.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=k.event.fix(e),u=(J.get(this,"events")||Object.create(null))[l.type]||[],c=k.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n-1:k.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l\s*$/g;function Qe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $e(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(i in J.remove(t,"handle events"),s)for(n=0,r=s[i].length;n1&&"string"==typeof p&&!g.checkClone&&Ee.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),We(o,t,n,r)}));if(h&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(_e(i,"script"),Re)).length;d0&&be(a,!l&&_e(e,"script")),s},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),k.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return F(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return We(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Qe(this,e).appendChild(e)}))},prepend:function(){return We(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Qe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return We(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(_e(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return F(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!Oe[(ye.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n3,ae.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],qe=O.createElement("div").style,Ve={};function Ge(e){return k.cssProps[e]||Ve[e]||(e in qe?e:Ve[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in qe)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+oe[a],!0,i)),r?("content"===n&&(l-=k.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(l-=k.css(e,"border"+oe[a]+"Width",!0,i))):(l+=k.css(e,"padding"+oe[a],!0,i),"padding"!==n?l+=k.css(e,"border"+oe[a]+"Width",!0,i):s+=k.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=Ie(e),i=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&D(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=q(t),l=Ke.test(t),u=e.style;if(l||(t=Ge(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=q(t);return Ke.test(t)||(t=Ge(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ze(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=Ie(e),a=!g.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),l=r?rt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),nt(0,n,l)}}})),k.cssHooks.marginLeft=Ue(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=nt)})),k.fn.extend({css:function(e,t){return F(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a1)}}),k.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ge(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ot.prototype.init,k.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ct(){st&&(!1===O.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ct):r.setTimeout(ct,k.fx.interval),k.fx.tick())}function dt(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function ht(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match($);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||k.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}}));var yt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;function Ot(e){return(e.match($)||[]).join(" ")}function _t(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match($)||[]}k.fn.extend({prop:function(e,t){return F(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(y(e))return this.each((function(t){k(this).addClass(e.call(this,t,_t(this)))}));if((t=bt(e)).length)for(;n=this[l++];)if(i=_t(n),r=1===n.nodeType&&" "+Ot(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=Ot(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(y(e))return this.each((function(t){k(this).removeClass(e.call(this,t,_t(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[l++];)if(i=_t(n),r=1===n.nodeType&&" "+Ot(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=Ot(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,_t(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=bt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=_t(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Ot(_t(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:Ot(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in r;var xt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,d,h,p=[n||O],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||O,3!==n.nodeType&&8!==n.nodeType&&!xt.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,xt.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||O)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||m,(c=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&V(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!V(n)||u&&y(n[m])&&!v(n)&&((s=n[u])&&(n[u]=null),k.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,kt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,kt),k.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var St=r.location,Mt={guid:Date.now()},Tt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Pt=/\[\]$/,Lt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,r){var i;if(Array.isArray(t))k.each(t,(function(t,i){n||Pt.test(e)?r(e,i):Ct(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==w(t))r(e,t);else for(i in t)Ct(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ct(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Yt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Et=/%20/g,At=/#.*$/,Qt=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,$t=/^\/\//,Nt={},Wt={},zt="*/".concat("*"),Ht=O.createElement("a");function It(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match($)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Zt(e,t,n,r){var i={},o=e===Wt;function a(s){var l;return i[s]=!0,k.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ft(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}Ht.href=St.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,k.ajaxSettings),t):Ft(k.ajaxSettings,e)},ajaxPrefilter:It(Nt),ajaxTransport:It(Wt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,d,h,f=k.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?k(p):k.event,g=k.Deferred(),y=k.Callbacks("once memory"),v=f.statusCode||{},_={},b={},w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Rt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),S(0,t),this}};if(g.promise(x),f.url=((e||f.url||St.href)+"").replace($t,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match($)||[""],null==f.crossDomain){l=O.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Zt(Nt,f,t,x),u)return x;for(d in(c=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),i=f.url.replace(At,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Et,"+")):(h=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Tt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Qt,"$1"),h=(Tt.test(i)?"&":"?")+"_="+Mt.guid+++h),f.url=i+h),f.ifModified&&(k.lastModified[i]&&x.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&x.setRequestHeader("If-None-Match",k.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+zt+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,x,f)||u))return x.abort();if(w="abort",y.add(f.complete),x.done(f.success),x.fail(f.error),n=Zt(Wt,f,t,x)){if(x.readyState=1,c&&m.trigger("ajaxSend",[x,f]),u)return x;f.async&&f.timeout>0&&(s=r.setTimeout((function(){x.abort("timeout")}),f.timeout));try{u=!1,n.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var d,h,O,_,b,w=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",x.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,x,a)),!d&&k.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,_,x,d),d?(f.ifModified&&((b=x.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=b),(b=x.getResponseHeader("etag"))&&(k.etag[i]=b)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=_.state,h=_.data,d=!(O=_.error))):(O=w,!e&&w||(w="error",e<0&&(e=0))),x.status=e,x.statusText=(t||w)+"",d?g.resolveWith(p,[h,w,x]):g.rejectWith(p,[x,w,O]),x.statusCode(v),v=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[x,f,d?h:O]),y.fireWith(p,[x,w]),c&&(m.trigger("ajaxComplete",[x,f]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},Ut=k.ajaxSettings.xhr();g.cors=!!Ut&&"withCredentials"in Ut,g.ajax=Ut=!!Ut,k.ajaxTransport((function(e){var t,n;if(g.cors||Ut&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Bt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("